@mkbabb/glass-ui 3.12.0 → 3.13.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 (360) hide show
  1. package/dist/{CardAction-DuArVky-.js → CardAction-Cj2eycQ2.js} +2 -2
  2. package/dist/{CommandShortcut-CefCj5mt.js → CommandShortcut-RowNEO6i.js} +4 -4
  3. package/dist/{ContextMenuSubContent-Bhg4f5jX.js → ContextMenuSubContent-BQmxTAdw.js} +4 -4
  4. package/dist/{DataTable-CUHMukiQ.js → DataTable-BCddn3T3.js} +3 -3
  5. package/dist/{DialogContent-BRkT1cjP.js → DialogContent-Dl9WkAoS.js} +3 -3
  6. package/dist/{DialogFooter-Gprw8H_A.js → DialogFooter-Blu4t7tJ.js} +2 -2
  7. package/dist/{HoverPopover-2LOIW34a.js → HoverPopover-CISOJQuZ.js} +1 -1
  8. package/dist/{IconTooltip-Cus0fvK0.js → IconTooltip-DPzE09X9.js} +1 -1
  9. package/dist/MetricBadge-C9QMz1KT.js +79 -0
  10. package/dist/{Notification-DLMhblXR.js → Notification-DdwNxIrI.js} +2 -2
  11. package/dist/{NumberFieldContent-BbLOh8RU.js → NumberFieldContent-CqaN-SvN.js} +3 -3
  12. package/dist/{PopoverContent-BId6ggf_.js → PopoverContent-BYwt2-4x.js} +1 -1
  13. package/dist/{ScrollingText-BPP84wKo.js → ScrollingText-DfFrwSph.js} +1 -1
  14. package/dist/{SelectScrollDownButton-T32cVFeM.js → SelectScrollDownButton-CiDUxfEj.js} +6 -6
  15. package/dist/{Switch-Ch-k3Rv-.js → Switch-CsIuYP_e.js} +1 -1
  16. package/dist/{TabsList-B8CVOQPC.js → TabsList-Dttss653.js} +9 -5
  17. package/dist/{Toaster-1rYWrmAm.js → Toaster-D6q4HtXu.js} +50 -47
  18. package/dist/{ToggleGroupItem-COu_4IW4.js → ToggleGroupItem-D_AHlRw9.js} +18 -22
  19. package/dist/animated-digit.js +2 -2
  20. package/dist/api/index.d.ts +5 -2
  21. package/dist/api.js +2 -2
  22. package/dist/aurora.js +69 -69
  23. package/dist/{badge-CaoFJzRb.js → badge-UILT_3pZ.js} +1 -1
  24. package/dist/badge.js +1 -1
  25. package/dist/{button-DN39cGqL.js → button-ChXMfsud.js} +12 -12
  26. package/dist/button.js +1 -1
  27. package/dist/card.js +1 -1
  28. package/dist/carousel.js +8 -8
  29. package/dist/{check-BBKKKSTf.js → check-njhk-vfu.js} +1 -1
  30. package/dist/{chevron-down-BSkTP2aL.js → chevron-down-DKkxb4VV.js} +1 -1
  31. package/dist/{chevron-right-sDM0Yvrf.js → chevron-right-CPXbqQQz.js} +1 -1
  32. package/dist/{chevron-up-CCOD_FTz.js → chevron-up-n_24SqI-.js} +1 -1
  33. package/dist/coalesceMetric-5qIeZnTx.js +13 -0
  34. package/dist/{color-C5ls_QF7.js → color-CUYeFbgd.js} +9 -7
  35. package/dist/color.js +1 -1
  36. package/dist/command.js +1 -1
  37. package/dist/components/custom/animated-digit/AnimatedDigit.vue.d.ts +8 -0
  38. package/dist/components/custom/aurora/constants/presets.d.ts +5 -62
  39. package/dist/components/custom/aurora/constants/shaders/mediums.glsl.d.ts +1 -1
  40. package/dist/components/custom/aurora/constants/shaders/vangogh-medium.glsl.d.ts +1 -0
  41. package/dist/components/custom/aurora/index.d.ts +1 -1
  42. package/dist/components/custom/configurator/ConfiguratorRow.vue.d.ts +16 -0
  43. package/dist/components/custom/constellation/Constellation.vue.d.ts +74 -6
  44. package/dist/components/custom/constellation/composables/createConstellationField.d.ts +41 -0
  45. package/dist/components/custom/constellation/composables/useConstellationPointer.d.ts +35 -0
  46. package/dist/components/custom/constellation/constants.d.ts +61 -0
  47. package/dist/components/custom/constellation/constellationDraw.d.ts +30 -0
  48. package/dist/components/custom/constellation/constellationField.d.ts +116 -149
  49. package/dist/components/custom/constellation/constellationInteraction.d.ts +132 -0
  50. package/dist/components/custom/constellation/index.d.ts +5 -2
  51. package/dist/components/custom/controls/DarkModeToggle.vue.d.ts +11 -0
  52. package/dist/components/custom/dock/DockRail.vue.d.ts +88 -0
  53. package/dist/components/custom/dock/DockTabButton.vue.d.ts +3 -4
  54. package/dist/components/custom/dock/GlassDock.vue.d.ts +5 -118
  55. package/dist/components/custom/dock/composables/dockMorphContext.d.ts +36 -0
  56. package/dist/components/custom/dock/composables/index.d.ts +1 -0
  57. package/dist/components/custom/dock/composables/useDockClickIntegrity.d.ts +23 -0
  58. package/dist/components/custom/dock/composables/useDockMorphWindow.d.ts +15 -0
  59. package/dist/components/custom/dock/composables/useDockOrientationMorph.d.ts +44 -0
  60. package/dist/components/custom/dock/composables/useDockShellProps.d.ts +165 -0
  61. package/dist/components/custom/dock/composables/useLayerTransition.d.ts +44 -0
  62. package/dist/components/custom/dock/constants.d.ts +48 -0
  63. package/dist/components/custom/dock/index.d.ts +3 -0
  64. package/dist/components/custom/expandable-container/ExpandableContainer.vue.d.ts +5 -37
  65. package/dist/components/custom/fourier-field/index.d.ts +1 -1
  66. package/dist/components/custom/fourier-field/math.d.ts +17 -0
  67. package/dist/components/custom/fourier-field/presets.d.ts +54 -0
  68. package/dist/components/custom/goo-blob/composables/buildMetaballProgram.d.ts +18 -0
  69. package/dist/components/custom/goo-blob/composables/uploadBlobUniforms.d.ts +41 -0
  70. package/dist/components/custom/goo-blob/composables/useBlobPointer.d.ts +4 -3
  71. package/dist/components/custom/goo-blob/composables/useMetaballRenderer.d.ts +11 -8
  72. package/dist/components/custom/goo-blob/constants.d.ts +52 -0
  73. package/dist/components/custom/goo-blob/shaders/metaball-uniforms.glsl.d.ts +1 -0
  74. package/dist/components/custom/instrument-chassis/InstrumentChassis.vue.d.ts +2 -2
  75. package/dist/components/custom/labeled-field/LabeledField.vue.d.ts +37 -0
  76. package/dist/components/custom/labeled-field/LabeledSelect.vue.d.ts +6 -0
  77. package/dist/components/custom/labeled-field/LabeledSlider.vue.d.ts +6 -0
  78. package/dist/components/custom/labeled-field/LabeledSwitch.vue.d.ts +6 -0
  79. package/dist/components/custom/metric-badge/MetricBadge.vue.d.ts +11 -18
  80. package/dist/components/custom/metric-badge/index.d.ts +1 -0
  81. package/dist/components/custom/metric-cell/MetricCell.vue.d.ts +15 -4
  82. package/dist/components/custom/metric-stack/MetricRow.vue.d.ts +6 -4
  83. package/dist/components/custom/tabs/constants.d.ts +12 -0
  84. package/dist/components/custom/underline/GlassUnderline.vue.d.ts +84 -0
  85. package/dist/components/custom/underline/index.d.ts +2 -0
  86. package/dist/components/custom/underline/types.d.ts +56 -0
  87. package/dist/components/ui/card/Card.vue.d.ts +15 -3
  88. package/dist/components/ui/drawer/Drawer.vue.d.ts +1 -0
  89. package/dist/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +2 -2
  90. package/dist/components/ui/metric-pill/MetricPill.vue.d.ts +6 -3
  91. package/dist/components/ui/slider/index.d.ts +22 -19
  92. package/dist/components/ui/tabs/TabsIndicator.vue.d.ts +4 -1
  93. package/dist/components/ui/toast/use-toast.d.ts +2 -2
  94. package/dist/components/ui/toggle/Toggle.vue.d.ts +1 -1
  95. package/dist/components/ui/toggle/index.d.ts +1 -1
  96. package/dist/components/ui/toggle-group/ToggleGroup.vue.d.ts +1 -7
  97. package/dist/components/ui/toggle-group/ToggleGroupItem.vue.d.ts +1 -3
  98. package/dist/components/ui/toggle-group/toggleGroupContext.d.ts +0 -13
  99. package/dist/composables/color/index.d.ts +12 -0
  100. package/dist/composables/dark/index.d.ts +1 -1
  101. package/dist/composables/dark/useGlobalDark.d.ts +1 -21
  102. package/dist/composables/glass/index.d.ts +0 -1
  103. package/dist/composables/glass/useGlassBackdropLuminance.d.ts +59 -0
  104. package/dist/composables/glass/useSpecularTracking.d.ts +12 -3
  105. package/dist/composables/motion/core/index.d.ts +1 -1
  106. package/dist/composables/motion/curves.d.ts +48 -0
  107. package/dist/composables/motion/index.d.ts +2 -0
  108. package/dist/composables/motion/springPresets.d.ts +33 -0
  109. package/dist/composables/motion/suite.d.ts +2 -0
  110. package/dist/composables/motion/useLiquidFlex.d.ts +85 -0
  111. package/dist/composables/motion/useSpringMount.d.ts +1 -1
  112. package/dist/configurator.js +1 -1
  113. package/dist/confirm-dialog.js +2 -2
  114. package/dist/constellation.js +336 -222
  115. package/dist/context-menu.js +2 -2
  116. package/dist/controls.js +48 -20
  117. package/dist/dark.d.ts +1 -1
  118. package/dist/dark.js +1 -1
  119. package/dist/data-table.js +1 -1
  120. package/dist/dialog.js +2 -2
  121. package/dist/dock.js +705 -365
  122. package/dist/dockContext-BegmJVmx.js +17 -0
  123. package/dist/dom.js +5 -5
  124. package/dist/{dropdown-menu-D77jX6Df.js → dropdown-menu-DzkkyBwX.js} +11 -8
  125. package/dist/dropdown-menu.js +1 -1
  126. package/dist/expandable-container.js +39 -80
  127. package/dist/forms.js +5 -5
  128. package/dist/fourier-field.js +134 -99
  129. package/dist/fourier-math.js +2 -2
  130. package/dist/glass-panel.js +86 -20
  131. package/dist/glass-ui.css +1 -1
  132. package/dist/glass-ui.js +222 -212
  133. package/dist/goo-blob.js +243 -212
  134. package/dist/hover-card.js +1 -1
  135. package/dist/hover-popover.js +1 -1
  136. package/dist/icon-tooltip.js +1 -1
  137. package/dist/index.d.ts +1 -3
  138. package/dist/instrument-chassis.js +1 -1
  139. package/dist/keyboard.js +1 -1
  140. package/dist/label.js +1 -1
  141. package/dist/labeled-field.js +28 -18
  142. package/dist/{math-DTpRVC0e.js → math-U6-RrLmV.js} +18 -2
  143. package/dist/metric-badge.js +1 -1
  144. package/dist/metric-cell.js +25 -21
  145. package/dist/metric-stack.js +35 -34
  146. package/dist/{minimize-2-lcXOuc6V.js → minimize-2-BV31Ob_h.js} +1 -1
  147. package/dist/motion-core.js +32 -137
  148. package/dist/motion-curves.d.ts +1 -0
  149. package/dist/motion-curves.js +130 -0
  150. package/dist/motion.js +38 -37
  151. package/dist/notification.js +1 -1
  152. package/dist/number-field.js +1 -1
  153. package/dist/paper-backdrop.js +1 -1
  154. package/dist/popover.js +1 -1
  155. package/dist/{presets-BP_ALM0m.js → presets-BKVyQfbt.js} +1 -14
  156. package/dist/progress.js +1 -1
  157. package/dist/reactive.js +2 -2
  158. package/dist/scrolling-text.js +1 -1
  159. package/dist/{search-nbkvr2dC.js → search-BSGrf2Sk.js} +1 -1
  160. package/dist/search.js +9 -9
  161. package/dist/select.js +3 -3
  162. package/dist/separator.js +1 -1
  163. package/dist/{sheet-VZEtNFvO.js → sheet-1fChZjtw.js} +3 -3
  164. package/dist/sheet.js +1 -1
  165. package/dist/{slider-ClgpP7EB.js → slider-B-JP2JlI.js} +4 -4
  166. package/dist/slider.js +1 -1
  167. package/dist/sortable-list.js +2 -2
  168. package/dist/springPresets--YdWTHtm.js +40 -0
  169. package/dist/stacked-icons.js +6 -6
  170. package/dist/styles/animations.css +29 -114
  171. package/dist/styles/cards.css +55 -0
  172. package/dist/styles/components.css +4 -1
  173. package/dist/styles/configurator.css +42 -0
  174. package/dist/styles/dock/layer-group.css +83 -25
  175. package/dist/styles/dock/layers.css +23 -1
  176. package/dist/styles/dock/morph-bridge.css +123 -0
  177. package/dist/styles/dock/morph.css +175 -45
  178. package/dist/styles/dock/overflow.css +51 -1
  179. package/dist/styles/dock/rail-extend.css +300 -0
  180. package/dist/styles/dock/shell.css +63 -105
  181. package/dist/styles/dock-controls/dark-mode-toggle.css +109 -0
  182. package/dist/styles/dock-controls/icon-button.css +133 -0
  183. package/dist/styles/dock-controls/tab-button.css +202 -0
  184. package/dist/styles/dock-controls/touch-floor.css +94 -0
  185. package/dist/styles/dock-controls/triggers.css +128 -0
  186. package/dist/styles/dock-controls.css +30 -595
  187. package/dist/styles/dock.css +2 -0
  188. package/dist/styles/drawer.css +2 -0
  189. package/dist/styles/floating-panel.css +17 -0
  190. package/dist/styles/glass/a11y-fallback.css +245 -0
  191. package/dist/styles/glass/ladder.css +337 -0
  192. package/dist/styles/glass/material.css +238 -0
  193. package/dist/styles/glass/progress-rail.css +78 -0
  194. package/dist/styles/glass/squircle.css +66 -0
  195. package/dist/styles/glass/surfaces.css +306 -0
  196. package/dist/styles/glass-refract.css +2 -0
  197. package/dist/styles/glass.css +31 -1188
  198. package/dist/styles/hover-popover.css +2 -0
  199. package/dist/styles/index.css +28 -14
  200. package/dist/styles/instrument-chassis.css +4 -0
  201. package/dist/styles/paper.css +2 -68
  202. package/dist/styles/segmented-tabs.css +275 -0
  203. package/dist/styles/theme/bridges.css +337 -0
  204. package/dist/styles/theme/dark.css +7 -0
  205. package/dist/styles/theme/literals.css +94 -0
  206. package/dist/styles/theme/radius.css +95 -0
  207. package/dist/styles/theme.css +26 -529
  208. package/dist/styles/tokens/color-radius.css +260 -0
  209. package/dist/styles/tokens/dark-arm.css +200 -0
  210. package/dist/styles/tokens/glass.css +440 -0
  211. package/dist/styles/tokens/light-dark.css +158 -0
  212. package/dist/styles/tokens/offsets-sizing.css +500 -0
  213. package/dist/styles/tokens/property-regs.css +169 -0
  214. package/dist/styles/tokens/scale-paper.css +366 -0
  215. package/dist/styles/tokens/scheme-motion.css +334 -0
  216. package/dist/styles/tokens/shadow.css +166 -0
  217. package/dist/styles/tokens.css +22 -2360
  218. package/dist/styles/typography.css +75 -21
  219. package/dist/styles/utilities/a11y-overrides.css +140 -0
  220. package/dist/styles/utilities/animate.css +26 -0
  221. package/dist/styles/utilities/base.css +365 -0
  222. package/dist/styles/utilities/btn.css +401 -0
  223. package/dist/styles/utilities/components.css +317 -0
  224. package/dist/styles/utilities.css +19 -1318
  225. package/dist/styles/view-transition.css +0 -51
  226. package/dist/switch.js +1 -1
  227. package/dist/tabs.js +91 -82
  228. package/dist/timeline.js +1 -1
  229. package/dist/toast.js +1 -1
  230. package/dist/toggle-group.js +1 -1
  231. package/dist/tooltip.js +1 -1
  232. package/dist/underline.d.ts +1 -0
  233. package/dist/underline.js +85 -0
  234. package/dist/{useAnimatedNumber-Bcpy5Etf.js → useAnimatedNumber-C5I3wWd8.js} +1 -1
  235. package/dist/{useConfiguratorState-DxAqksK6.js → useConfiguratorState-DAoeHVue.js} +8 -8
  236. package/dist/{useGlobalDark-CAhOXNLO.js → useGlobalDark-yhL4Wp-s.js} +3 -22
  237. package/dist/useLiquidFlex-BL0lLLN2.js +30 -0
  238. package/dist/useRAFLoop-Bxv0o6L5.js +109 -0
  239. package/dist/{useScrollProgress-CffFGLa5.js → useScrollProgress-Dlvx-L3v.js} +1 -1
  240. package/dist/useSpecularTracking-Bo5su68i.js +32 -0
  241. package/dist/useSpringMount-CI2jOstM.js +108 -0
  242. package/dist/{useTouchGate-WFyJYsth.js → useTouchGate-Dg7MQI1G.js} +1 -1
  243. package/dist/utils/coalesceMetric.d.ts +29 -0
  244. package/dist/utils/index.d.ts +1 -0
  245. package/dist/vReveal-CqaCz_mC.js +44 -0
  246. package/dist/watercolor-dot.js +11 -9
  247. package/dist/{x-Dfsegz9Y.js → x-BUwTKe50.js} +1 -1
  248. package/package.json +78 -58
  249. package/src/styles/animations.css +29 -114
  250. package/src/styles/cards.css +53 -0
  251. package/src/styles/configurator.css +42 -0
  252. package/src/styles/dock/layer-group.css +83 -25
  253. package/src/styles/dock/layers.css +23 -1
  254. package/src/styles/dock/morph-bridge.css +123 -0
  255. package/src/styles/dock/morph.css +175 -45
  256. package/src/styles/dock/overflow.css +51 -1
  257. package/src/styles/dock/rail-extend.css +300 -0
  258. package/src/styles/dock/shell.css +63 -105
  259. package/src/styles/dock-controls/dark-mode-toggle.css +109 -0
  260. package/src/styles/dock-controls/icon-button.css +133 -0
  261. package/src/styles/dock-controls/tab-button.css +202 -0
  262. package/src/styles/dock-controls/touch-floor.css +94 -0
  263. package/src/styles/dock-controls/triggers.css +128 -0
  264. package/src/styles/dock-controls.css +30 -595
  265. package/src/styles/dock.css +2 -0
  266. package/src/styles/floating-panel.css +15 -0
  267. package/src/styles/glass/a11y-fallback.css +245 -0
  268. package/src/styles/glass/ladder.css +337 -0
  269. package/src/styles/glass/material.css +238 -0
  270. package/src/styles/glass/progress-rail.css +78 -0
  271. package/src/styles/glass/squircle.css +66 -0
  272. package/src/styles/glass/surfaces.css +306 -0
  273. package/src/styles/glass.css +31 -1188
  274. package/src/styles/index.css +28 -14
  275. package/src/styles/paper.css +2 -68
  276. package/src/styles/segmented-tabs.css +271 -0
  277. package/src/styles/theme/bridges.css +337 -0
  278. package/src/styles/theme/dark.css +7 -0
  279. package/src/styles/theme/literals.css +94 -0
  280. package/src/styles/theme/radius.css +95 -0
  281. package/src/styles/theme.css +26 -529
  282. package/src/styles/tokens/color-radius.css +260 -0
  283. package/src/styles/tokens/dark-arm.css +200 -0
  284. package/src/styles/tokens/glass.css +440 -0
  285. package/src/styles/tokens/light-dark.css +158 -0
  286. package/src/styles/tokens/offsets-sizing.css +500 -0
  287. package/src/styles/tokens/property-regs.css +169 -0
  288. package/src/styles/tokens/scale-paper.css +366 -0
  289. package/src/styles/tokens/scheme-motion.css +334 -0
  290. package/src/styles/tokens/shadow.css +166 -0
  291. package/src/styles/tokens.css +22 -2360
  292. package/src/styles/typography.css +75 -21
  293. package/src/styles/utilities/a11y-overrides.css +140 -0
  294. package/src/styles/utilities/animate.css +26 -0
  295. package/src/styles/utilities/base.css +365 -0
  296. package/src/styles/utilities/btn.css +401 -0
  297. package/src/styles/utilities/components.css +317 -0
  298. package/src/styles/utilities.css +19 -1318
  299. package/src/styles/view-transition.css +0 -51
  300. package/dist/DeckProgress-Dmk4_AKN.js +0 -23
  301. package/dist/InstrumentRail-CUJ05YVG.js +0 -44
  302. package/dist/MetricBadge-BZVWIxNy.js +0 -80
  303. package/dist/components/custom/deck-progress/DeckProgress.vue.d.ts +0 -27
  304. package/dist/components/custom/deck-progress/index.d.ts +0 -2
  305. package/dist/components/custom/dialog-native/GlassDialogNative.vue.d.ts +0 -57
  306. package/dist/components/custom/dialog-native/index.d.ts +0 -1
  307. package/dist/components/custom/handmark/HandMark.vue.d.ts +0 -29
  308. package/dist/components/custom/handmark/brush.d.ts +0 -242
  309. package/dist/components/custom/handmark/freehand.d.ts +0 -69
  310. package/dist/components/custom/handmark/geometry.d.ts +0 -50
  311. package/dist/components/custom/handmark/index.d.ts +0 -21
  312. package/dist/components/custom/handmark/ink.d.ts +0 -11
  313. package/dist/components/custom/handmark/texture.d.ts +0 -39
  314. package/dist/components/custom/handmark/types.d.ts +0 -53
  315. package/dist/components/custom/handmark/useHandMark.d.ts +0 -87
  316. package/dist/components/custom/instrument-rail/InstrumentRail.vue.d.ts +0 -91
  317. package/dist/components/custom/instrument-rail/index.d.ts +0 -2
  318. package/dist/composables/motion/useRouteTransition.d.ts +0 -42
  319. package/dist/deck-progress.d.ts +0 -1
  320. package/dist/deck-progress.js +0 -2
  321. package/dist/dockContext-BKeIMmNk.js +0 -9
  322. package/dist/handmark.d.ts +0 -1
  323. package/dist/handmark.js +0 -663
  324. package/dist/instrument-rail.d.ts +0 -1
  325. package/dist/instrument-rail.js +0 -2
  326. package/dist/styles/instrument-rail.css +0 -127
  327. package/dist/useGlassRenderer-D7YGOYiM.js +0 -69
  328. package/dist/useSpecularTracking-BVRZsRHA.js +0 -26
  329. package/dist/useSpringMount-BJSHcLl3.js +0 -113
  330. package/dist/useViewTransition-DaN5Zrox.js +0 -21
  331. package/dist/vReveal-zUIQk-rJ.js +0 -53
  332. package/src/styles/instrument-rail.css +0 -127
  333. /package/dist/{ContextMenuContent-DDa0v27s.js → ContextMenuContent-CT3AS1WX.js} +0 -0
  334. /package/dist/{HoverCardContent-B6CcQ8He.js → HoverCardContent-Csywg3YF.js} +0 -0
  335. /package/dist/{Input-xuDwALQR.js → Input-DWQQIOC4.js} +0 -0
  336. /package/dist/{InstrumentChassis-C2f6cBaQ.js → InstrumentChassis-UUJX0-mW.js} +0 -0
  337. /package/dist/{Label-zRfbQdCn.js → Label-r3WzWrsj.js} +0 -0
  338. /package/dist/{ModalOverlay-B1GkAjNb.js → ModalOverlay-DVLI2VRr.js} +0 -0
  339. /package/dist/{PaperBackdrop-CqwjnfLv.js → PaperBackdrop-DIXTtVq6.js} +0 -0
  340. /package/dist/{Progress-iEuD9pxG.js → Progress-DwlUKGbr.js} +0 -0
  341. /package/dist/{SelectGroup-BFiod7X2.js → SelectGroup-aumMgWLs.js} +0 -0
  342. /package/dist/{SelectSeparator-C4Ql0gzV.js → SelectSeparator-BQ_1Fcbp.js} +0 -0
  343. /package/dist/{Separator-D7sD7RKj.js → Separator-0JE6LtNu.js} +0 -0
  344. /package/dist/{TooltipProvider-CmZzCuaG.js → TooltipProvider-B3MkB_8P.js} +0 -0
  345. /package/dist/{compile-BOXjLUxu.js → compile-B7NGOBcP.js} +0 -0
  346. /package/dist/{constants-yKeKnE84.js → constants-CS75AWHG.js} +0 -0
  347. /package/dist/{createContext-B44Sah_H.js → createContext-BM46COQ-.js} +0 -0
  348. /package/dist/{createLucideIcon-B6uNAU9G.js → createLucideIcon-DydS2qgk.js} +0 -0
  349. /package/dist/{menuItemVariants-CCoBNkU5.js → menuItemVariants-DPiEarb0.js} +0 -0
  350. /package/dist/{supportsCssTimeline-C5oe0lnD.js → supportsCssTimeline-BWenxvHU.js} +0 -0
  351. /package/dist/{useIntersectionPause-Cck5Uxk8.js → useIntersectionPause-Cc-H9ees.js} +0 -0
  352. /package/dist/{useInterval-Dsmqwi03.js → useInterval-iHludrxk.js} +0 -0
  353. /package/dist/{useKeyboardShortcuts-CyIYrndH.js → useKeyboardShortcuts-Be3w_Rwk.js} +0 -0
  354. /package/dist/{useResizeObserver-CWCbk5Px.js → useResizeObserver-BhgdhOIj.js} +0 -0
  355. /package/dist/{useResolveTokenColor-r9pnNjqK.js → useResolveTokenColor-Dvn2RZJW.js} +0 -0
  356. /package/dist/{useSortable-C8ReQ50P.js → useSortable-muI29agz.js} +0 -0
  357. /package/dist/{useTextHighlight-CWEi25hf.js → useTextHighlight-DmRYkOBx.js} +0 -0
  358. /package/dist/{useTimer-3xqf_54b.js → useTimer-Dzarvzuk.js} +0 -0
  359. /package/dist/{useUserInvalidAria-DoJKMZ3s.js → useUserInvalidAria-B2h6jAM_.js} +0 -0
  360. /package/dist/{useViewportReady-RIr5Wgkh.js → useViewportReady-B40FK4Pa.js} +0 -0
@@ -0,0 +1,17 @@
1
+ import { n as e } from "./createContext-BM46COQ-.js";
2
+ //#region src/components/custom/dock/constants.ts
3
+ var t = {
4
+ response: .32,
5
+ dampingFraction: .7
6
+ }, n = new Set([
7
+ "width",
8
+ "height",
9
+ "padding",
10
+ "transform"
11
+ ]), r = "glass-ui:dock-context", i = "glass-ui:dock-layer-group", a = "glass-ui:dock-morph-context", o = e(r, "[glass-ui:dock] useDockContext() called outside <GlassDock>; use useOptionalDockContext() if the primitive may render outside a dock."), { KEY: s } = o;
12
+ function c(e) {
13
+ o.provide(e);
14
+ }
15
+ var l = o.use, u = o.useOptional;
16
+ //#endregion
17
+ export { i as a, n as c, u as i, c as n, a as o, l as r, t as s, s as t };
package/dist/dom.js CHANGED
@@ -1,6 +1,6 @@
1
- import { t as e } from "./useResizeObserver-CWCbk5Px.js";
2
- import { t } from "./useTouchGate-WFyJYsth.js";
3
- import { a as n, i as r, n as i, o as a, r as o, t as s } from "./useViewportReady-RIr5Wgkh.js";
4
- import { n as c, t as l } from "./useResolveTokenColor-r9pnNjqK.js";
5
- import { t as u } from "./useUserInvalidAria-DoJKMZ3s.js";
1
+ import { t as e } from "./useResizeObserver-BhgdhOIj.js";
2
+ import { t } from "./useTouchGate-Dg7MQI1G.js";
3
+ import { a as n, i as r, n as i, o as a, r as o, t as s } from "./useViewportReady-B40FK4Pa.js";
4
+ import { n as c, t as l } from "./useResolveTokenColor-Dvn2RZJW.js";
5
+ import { t as u } from "./useUserInvalidAria-B2h6jAM_.js";
6
6
  export { r as copyToClipboard, l as createTokenColorCache, c as resolveTokenColor, o as useBreakpoint, n as useClipboard, i as useIdleReady, e as useResizeObserver, a as useTokenColor, t as useTouchGate, u as useUserInvalidAria, s as useViewportReady };
@@ -1,8 +1,8 @@
1
1
  import { t as e } from "./cn-DJXf4yaB.js";
2
- import { t } from "./check-BBKKKSTf.js";
3
- import { t as n } from "./chevron-right-sDM0Yvrf.js";
4
- import { t as r } from "./menuItemVariants-CCoBNkU5.js";
5
- import { i } from "./dockContext-BKeIMmNk.js";
2
+ import { t } from "./check-njhk-vfu.js";
3
+ import { t as n } from "./chevron-right-CPXbqQQz.js";
4
+ import { t as r } from "./menuItemVariants-DPiEarb0.js";
5
+ import { i } from "./dockContext-BegmJVmx.js";
6
6
  import { computed as a, createBlock as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, guardReactiveProps as d, mergeProps as f, normalizeClass as p, normalizeProps as m, openBlock as h, renderSlot as g, unref as _, withCtx as v } from "vue";
7
7
  import { DropdownMenuCheckboxItem as y, DropdownMenuContent as b, DropdownMenuGroup as x, DropdownMenuItem as S, DropdownMenuItemIndicator as C, DropdownMenuLabel as w, DropdownMenuPortal as T, DropdownMenuPortal as E, DropdownMenuRadioGroup as D, DropdownMenuRadioItem as O, DropdownMenuRoot as k, DropdownMenuSeparator as A, DropdownMenuSub as j, DropdownMenuSubContent as M, DropdownMenuSubTrigger as N, DropdownMenuTrigger as P, useForwardProps as F, useForwardPropsEmits as I } from "reka-ui";
8
8
  //#endregion
@@ -86,7 +86,7 @@ var L = /* @__PURE__ */ u({
86
86
  default: v(() => [l(_(b), f(_(c), {
87
87
  "data-glass-dock-portal": _(u)?.id ? "" : void 0,
88
88
  "data-glass-dock-owner": _(u)?.id,
89
- class: _(e)("dropdown-menu-content z-popover min-w-32 max-h-[60vh] overflow-y-auto rounded-panel border glass-floating p-1 text-popover-foreground popover-animate slide-in-from-side", r.class)
89
+ class: _(e)("dropdown-menu-content z-popover min-w-32 max-h-[60vh] overflow-y-auto rounded-panel border glass-floating text-popover-foreground popover-animate slide-in-from-side", r.class)
90
90
  }), {
91
91
  default: v(() => [g(t.$slots, "default")]),
92
92
  _: 3
@@ -353,10 +353,13 @@ var L = /* @__PURE__ */ u({
353
353
  let { class: e, ...t } = r;
354
354
  return t;
355
355
  }), i);
356
- return (t, n) => (h(), o(_(M), f(_(s), { class: _(e)("dropdown-sub-content z-popover min-w-32 overflow-hidden rounded-panel border glass-floating p-1 text-popover-foreground popover-animate slide-in-from-side", r.class) }), {
357
- default: v(() => [g(t.$slots, "default")]),
356
+ return (t, n) => (h(), o(_(T), null, {
357
+ default: v(() => [l(_(M), f(_(s), { class: _(e)("dropdown-sub-content z-popover min-w-32 overflow-hidden rounded-panel border glass-floating text-popover-foreground popover-animate slide-in-from-side", r.class) }), {
358
+ default: v(() => [g(t.$slots, "default")]),
359
+ _: 3
360
+ }, 16, ["class"])]),
358
361
  _: 3
359
- }, 16, ["class"]));
362
+ }));
360
363
  }
361
364
  });
362
365
  //#endregion
@@ -1,2 +1,2 @@
1
- import { a as e, c as t, d as n, f as r, h as i, i as a, l as o, m as s, n as c, o as l, p as u, r as d, s as f, t as p, u as m } from "./dropdown-menu-D77jX6Df.js";
1
+ import { a as e, c as t, d as n, f as r, h as i, i as a, l as o, m as s, n as c, o as l, p as u, r as d, s as f, t as p, u as m } from "./dropdown-menu-DzkkyBwX.js";
2
2
  export { i as DropdownMenu, o as DropdownMenuCheckboxItem, u as DropdownMenuContent, r as DropdownMenuGroup, m as DropdownMenuItem, e as DropdownMenuLabel, p as DropdownMenuPortal, n as DropdownMenuRadioGroup, t as DropdownMenuRadioItem, l as DropdownMenuSeparator, f as DropdownMenuShortcut, a as DropdownMenuSub, c as DropdownMenuSubContent, d as DropdownMenuSubTrigger, s as DropdownMenuTrigger };
@@ -1,25 +1,26 @@
1
- import { n as e, t } from "./minimize-2-lcXOuc6V.js";
2
- import { t as n } from "./useViewTransition-DaN5Zrox.js";
3
- import { i as r } from "./useKeyboardShortcuts-CyIYrndH.js";
4
- import { Teleport as i, computed as a, createBlock as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, mergeModels as d, mergeProps as f, nextTick as p, normalizeClass as m, normalizeStyle as h, onMounted as g, onUnmounted as _, openBlock as v, renderSlot as y, unref as b, useId as x, useModel as S, useTemplateRef as C, watch as w } from "vue";
1
+ import { n as e, t } from "./minimize-2-BV31Ob_h.js";
2
+ import { i as n } from "./useKeyboardShortcuts-Be3w_Rwk.js";
3
+ import { Fragment as r, Teleport as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, mergeModels as d, mergeProps as f, normalizeClass as p, onMounted as m, onUnmounted as h, openBlock as g, renderSlot as _, unref as v, useModel as y, watch as b } from "vue";
5
4
  //#region src/components/custom/expandable-container/ExpandableContainer.vue?vue&type=script&setup=true&lang.ts
6
- var T = ["aria-label"], E = ["aria-label"], D = 0, O = null;
7
- function k() {
8
- return typeof document > "u" ? !1 : (D === 0 && (O = document.body.style.overflow, document.body.style.overflow = "hidden"), D += 1, !0);
5
+ var x = ["aria-label"], S = {
6
+ key: 0,
7
+ class: "fixed inset-0 z-modal flex flex-col bg-background"
8
+ }, C = ["aria-label"], w = { class: "h-full w-full" }, T = 0, E = null;
9
+ function D() {
10
+ return typeof document > "u" ? !1 : (T === 0 && (E = document.body.style.overflow, document.body.style.overflow = "hidden"), T += 1, !0);
9
11
  }
10
- function A() {
11
- typeof document > "u" || D === 0 || (--D, D === 0 && (document.body.style.overflow = O ?? "", O = null));
12
+ function O() {
13
+ typeof document > "u" || T === 0 || (--T, T === 0 && (document.body.style.overflow = E ?? "", E = null));
12
14
  }
13
15
  //#endregion
14
16
  //#region src/components/custom/expandable-container/ExpandableContainer.vue
15
- var j = /* @__PURE__ */ u({
17
+ var k = /* @__PURE__ */ u({
16
18
  inheritAttrs: !1,
17
19
  __name: "ExpandableContainer",
18
20
  props: /* @__PURE__ */ d({
19
21
  buttonPosition: { default: "right" },
20
22
  expandLabel: { default: "Fullscreen" },
21
- collapseLabel: { default: "Exit fullscreen" },
22
- viewTransitionName: { default: void 0 }
23
+ collapseLabel: { default: "Exit fullscreen" }
23
24
  }, {
24
25
  open: {
25
26
  type: Boolean,
@@ -27,85 +28,43 @@ var j = /* @__PURE__ */ u({
27
28
  },
28
29
  openModifiers: {}
29
30
  }),
30
- emits: /* @__PURE__ */ d(["settle"], ["update:open"]),
31
- setup(u, { expose: d, emit: D }) {
32
- let O = u, j = S(u, "open"), M = D, N = C("anchorEl"), P = C("surfaceEl"), F = x(), I = a(() => O.viewTransitionName === void 0 ? void 0 : `gl-expand-${O.viewTransitionName}-${F}`), L = a(() => I.value === void 0 ? void 0 : { "view-transition-name": I.value });
33
- function R() {
34
- if (I.value === void 0) {
35
- j.value = !0;
31
+ emits: ["update:open"],
32
+ setup(u) {
33
+ let d = y(u, "open"), T = !1;
34
+ function E(e) {
35
+ if (e && !T) {
36
+ T = D();
36
37
  return;
37
38
  }
38
- n(() => {
39
- j.value = !0;
40
- });
41
- }
42
- function z() {
43
- if (I.value === void 0) {
44
- j.value = !1;
45
- return;
46
- }
47
- n(() => {
48
- j.value = !1;
49
- });
50
- }
51
- let B = !1;
52
- function V(e) {
53
- if (e && !B) {
54
- B = k();
55
- return;
56
- }
57
- !e && B && (A(), B = !1);
39
+ !e && T && (O(), T = !1);
58
40
  }
59
- w(j, V, { immediate: !0 }), w(j, (e) => {
60
- p(() => M("settle", e));
61
- });
62
- let H = null;
63
- return g(() => {
64
- H = r("Escape", () => {
65
- j.value && z();
41
+ b(d, E, { immediate: !0 });
42
+ let k = null;
43
+ return m(() => {
44
+ k = n("Escape", () => {
45
+ d.value &&= !1;
66
46
  }, {
67
47
  label: "Exit fullscreen",
68
48
  group: "UI",
69
49
  allowInInput: !0
70
50
  });
71
- }), _(() => {
72
- H?.(), V(!1);
73
- }), d({
74
- anchorEl: N,
75
- surfaceEl: P,
76
- expand: R,
77
- collapse: z
78
- }), (n, r) => (v(), s("div", f({
79
- ref_key: "anchorEl",
80
- ref: N,
81
- class: ["expandable-container__anchor relative", { "gl-expand": I.value !== void 0 && !j.value }],
82
- style: j.value ? void 0 : L.value
83
- }, n.$attrs), [(v(), o(i, {
84
- to: "body",
85
- disabled: !j.value
86
- }, [c("div", {
87
- ref_key: "surfaceEl",
88
- ref: P,
89
- class: m([
90
- "expandable-container__surface",
91
- j.value ? "fixed inset-0 z-modal flex flex-col bg-background" : "relative",
92
- { "gl-expand": I.value !== void 0 && j.value }
93
- ]),
94
- style: h(j.value ? L.value : void 0)
95
- }, [j.value ? (v(), s("button", {
96
- key: 1,
97
- class: m(["expandable-container__trigger absolute z-10 rounded-button bg-card/70 [backdrop-filter:var(--glass-blur-wash)] p-2 text-muted-foreground hover:text-foreground transition-colors shadow-sm border border-border/40", u.buttonPosition === "left" ? "left-3 top-3" : "right-3 top-3"]),
98
- title: "Exit fullscreen",
99
- "aria-label": u.collapseLabel,
100
- onClick: z
101
- }, [l(b(t), { class: "h-4 w-4" })], 10, E)) : (v(), s("button", {
51
+ }), h(() => {
52
+ k?.(), E(!1);
53
+ }), (n, m) => (g(), s(r, null, [d.value ? o("", !0) : (g(), s("div", f({
102
54
  key: 0,
103
- class: m(["expandable-container__trigger absolute z-10 rounded-button bg-card/70 [backdrop-filter:var(--glass-blur-wash)] p-1.5 text-muted-foreground hover:text-foreground transition-colors shadow-sm border border-border/40", u.buttonPosition === "left" ? "left-2 top-2" : "right-2 top-2"]),
55
+ class: "relative"
56
+ }, n.$attrs), [c("button", {
57
+ class: p(["expandable-container__trigger absolute z-10 rounded-button bg-card/70 [backdrop-filter:var(--glass-blur-wash)] p-1.5 text-muted-foreground hover:text-foreground transition-colors shadow-sm border border-border/40", u.buttonPosition === "left" ? "left-2 top-2" : "right-2 top-2"]),
104
58
  title: "Fullscreen",
105
59
  "aria-label": u.expandLabel,
106
- onClick: R
107
- }, [l(b(e), { class: "h-4 w-4" })], 10, T)), c("div", { class: m(j.value ? "h-full w-full" : "contents") }, [y(n.$slots, "default", { fullscreen: j.value })], 2)], 6)], 8, ["disabled"]))], 16));
60
+ onClick: m[0] ||= (e) => d.value = !0
61
+ }, [l(v(e), { class: "h-4 w-4" })], 10, x), _(n.$slots, "default", { fullscreen: !1 })], 16)), (g(), a(i, { to: "body" }, [d.value ? (g(), s("div", S, [c("button", {
62
+ class: p(["expandable-container__trigger absolute z-10 rounded-button bg-card/70 [backdrop-filter:var(--glass-blur-wash)] p-2 text-muted-foreground hover:text-foreground transition-colors shadow-sm border border-border/40", u.buttonPosition === "left" ? "left-3 top-3" : "right-3 top-3"]),
63
+ title: "Exit fullscreen",
64
+ "aria-label": u.collapseLabel,
65
+ onClick: m[1] ||= (e) => d.value = !1
66
+ }, [l(v(t), { class: "h-4 w-4" })], 10, C), c("div", w, [_(n.$slots, "default", { fullscreen: !0 })])])) : o("", !0)]))], 64));
108
67
  }
109
68
  });
110
69
  //#endregion
111
- export { j as ExpandableContainer };
70
+ export { k as ExpandableContainer };
package/dist/forms.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { t as e } from "./cn-DJXf4yaB.js";
2
- import { t } from "./search-nbkvr2dC.js";
3
- import { t as n } from "./menuItemVariants-CCoBNkU5.js";
4
- import { t as r } from "./useUserInvalidAria-DoJKMZ3s.js";
5
- import { t as i } from "./Input-xuDwALQR.js";
2
+ import { t } from "./search-BSGrf2Sk.js";
3
+ import { t as n } from "./menuItemVariants-DPiEarb0.js";
4
+ import { t as r } from "./useUserInvalidAria-B2h6jAM_.js";
5
+ import { t as i } from "./Input-DWQQIOC4.js";
6
6
  import { computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createTextVNode as l, createVNode as u, defineComponent as d, isRef as f, mergeProps as p, openBlock as m, renderSlot as h, toDisplayString as g, unref as _, vModelText as v, withCtx as y, withDirectives as b } from "vue";
7
7
  import { ComboboxAnchor as x, ComboboxCancel as S, ComboboxContent as C, ComboboxEmpty as w, ComboboxGroup as T, ComboboxInput as E, ComboboxItem as D, ComboboxItemIndicator as O, ComboboxLabel as k, ComboboxPortal as A, ComboboxRoot as j, ComboboxSeparator as M, ComboboxTrigger as N, ComboboxViewport as P, useForwardProps as F, useForwardPropsEmits as I } from "reka-ui";
8
8
  import { reactiveOmit as L, useVModel as R } from "@vueuse/core";
@@ -177,7 +177,7 @@ var z = ["data-autosize"], B = /* @__PURE__ */ d({
177
177
  let i = n, a = r, o = I(L(i, "class"), a);
178
178
  return (n, r) => (m(), c("div", G, [u(_(t), { class: "size-4 shrink-0 opacity-50" }), u(_(E), p({
179
179
  "data-slot": "command-input",
180
- class: _(e)("placeholder:text-muted-foreground flex h-[var(--dropdown-input-height)] w-full rounded-input bg-transparent py-3 text-dropdown outline-hidden disabled:cursor-not-allowed disabled:opacity-disabled aria-invalid:text-destructive aria-invalid:placeholder:text-[color-mix(in_srgb,var(--destructive)_60%,transparent)]", i.class)
180
+ class: _(e)("placeholder:text-muted-foreground flex h-(--dropdown-input-height) w-full rounded-input bg-transparent py-3 text-dropdown outline-hidden disabled:cursor-not-allowed disabled:opacity-disabled aria-invalid:text-destructive aria-invalid:placeholder:text-[color-mix(in_srgb,var(--destructive)_60%,transparent)]", i.class)
181
181
  }, {
182
182
  ..._(o),
183
183
  ...n.$attrs
@@ -1,13 +1,65 @@
1
1
  import { t as e } from "./useCanvas2D-ClrQuZtp.js";
2
2
  import { t } from "./_plugin-vue_export-helper-ok8pgSl5.js";
3
- import { i as n, s as r, t as i } from "./color-C5ls_QF7.js";
4
- import { t as a } from "./useGlobalDark-CAhOXNLO.js";
3
+ import { i as n, s as r, t as i } from "./color-CUYeFbgd.js";
4
+ import { t as a } from "./useGlobalDark-yhL4Wp-s.js";
5
5
  import { n as o, t as s } from "./prng-D27-B3tK.js";
6
- import { n as c, r as l, t as u } from "./math-DTpRVC0e.js";
7
- import { createElementBlock as d, createElementVNode as f, defineComponent as p, onMounted as m, openBlock as h, ref as g, useTemplateRef as _, watch as v } from "vue";
8
- //#endregion
9
- //#region src/components/custom/fourier-field/FourierField.vue
10
- var y = /* @__PURE__ */ t(/* @__PURE__ */ p({
6
+ import { i as c, n as l, r as u, t as d } from "./math-U6-RrLmV.js";
7
+ import { createElementBlock as f, createElementVNode as p, defineComponent as m, onMounted as h, openBlock as g, ref as _, useTemplateRef as v, watch as y } from "vue";
8
+ //#region src/components/custom/fourier-field/presets.ts
9
+ var b = {
10
+ hero: {
11
+ harmonics: 5,
12
+ harmonicScale: .24,
13
+ epicycles: !0,
14
+ trailLength: 260,
15
+ epicycleHueShift: 42,
16
+ durationMs: 16e3,
17
+ frozenSeed: "fourier-field/hero",
18
+ frozenT: .34,
19
+ peakAlpha: .92,
20
+ trailWidth: 3,
21
+ headGlowAlpha: .95,
22
+ headGlowBlur: 18,
23
+ headDotRadius: 5,
24
+ epicycleRatios: {
25
+ circle: .5,
26
+ arm: .72
27
+ },
28
+ epicycleWidths: {
29
+ circle: 2.4,
30
+ arm: 2
31
+ },
32
+ epicycleRainbow: !0,
33
+ trailFadeExp: 1.35,
34
+ trailFloor: .34
35
+ },
36
+ final: {
37
+ harmonics: 11,
38
+ harmonicScale: .17,
39
+ epicycles: !1,
40
+ trailLength: 360,
41
+ epicycleHueShift: 36,
42
+ durationMs: 21e3,
43
+ frozenSeed: "fourier-field/final",
44
+ frozenT: .42,
45
+ peakAlpha: .88,
46
+ trailWidth: 3.2,
47
+ headGlowAlpha: .92,
48
+ headGlowBlur: 16,
49
+ headDotRadius: 4.5,
50
+ epicycleRatios: {
51
+ circle: 0,
52
+ arm: 0
53
+ },
54
+ epicycleWidths: {
55
+ circle: 0,
56
+ arm: 0
57
+ },
58
+ epicycleRainbow: !1,
59
+ trailFadeExp: 1.45,
60
+ trailFloor: .36
61
+ }
62
+ }, x = /* @__PURE__ */ t(/* @__PURE__ */ m({
11
63
  __name: "FourierField",
12
64
  props: {
13
65
  variant: { default: "hero" },
@@ -21,138 +73,121 @@ var y = /* @__PURE__ */ t(/* @__PURE__ */ p({
21
73
  intensity: { default: 1 }
22
74
  },
23
75
  setup(t) {
24
- let u = Math.max(0, Math.min(2, t.intensity)), p = {
25
- hero: {
26
- harmonics: 4,
27
- harmonicScale: .22,
28
- epicycles: !0,
29
- trailLength: 170,
30
- epicycleHueShift: 42,
31
- durationMs: 16e3,
32
- frozenSeed: "fourier-field/hero",
33
- frozenT: .18,
34
- peakAlpha: .55,
35
- headGlowAlpha: .62,
36
- headGlowBlur: 16,
37
- epicycleRatios: {
38
- circle: .18,
39
- arm: .3
40
- },
41
- trailFadeExp: 1.4,
42
- trailFloor: .1
43
- },
44
- final: {
45
- harmonics: 9,
46
- harmonicScale: .16,
47
- epicycles: !1,
48
- trailLength: 200,
49
- epicycleHueShift: 36,
50
- durationMs: 21e3,
51
- frozenSeed: "fourier-field/final",
52
- frozenT: .33,
53
- peakAlpha: .45,
54
- headGlowAlpha: .5,
55
- headGlowBlur: 14,
56
- epicycleRatios: {
57
- circle: 0,
58
- arm: 0
59
- },
60
- trailFadeExp: 1.5,
61
- trailFloor: .08
62
- }
63
- }, y = _("hostRef"), b = _("canvasRef"), x = g(t.color), S = g("rgb(0, 0, 0)"), C = g("rgb(0, 0, 0)");
64
- function w(e) {
76
+ let l = Math.max(0, Math.min(2, t.intensity)), d = v("hostRef"), m = v("canvasRef"), x = _(t.color), S = _("rgb(0, 0, 0)"), C = _("rgb(0, 0, 0)"), w = _([]);
77
+ function T(e) {
65
78
  if (!e.includes("var(") && !e.includes("light-dark(")) return e;
66
- let t = y.value;
79
+ let t = d.value;
67
80
  if (typeof window > "u" || !t) return e;
68
81
  let n = t.style.color;
69
82
  t.style.color = e;
70
83
  let r = getComputedStyle(t).color;
71
84
  return t.style.color = n, r || e;
72
85
  }
73
- let T = p[t.variant];
74
- function E() {
75
- x.value = w(t.color);
86
+ let E = b[t.variant], D = 0;
87
+ function O() {
88
+ x.value = T(t.color);
76
89
  let [e, a, o] = t.colorResolver(x.value).map((e) => Math.round(e * 255));
77
90
  S.value = `rgb(${e}, ${a}, ${o})`;
78
91
  let s = i(x.value), [c, l, u] = r({
79
92
  L: s.L,
80
93
  C: s.C,
81
- h: n(s.h, "analogous", T.epicycleHueShift, 1)
94
+ h: n(s.h, "analogous", E.epicycleHueShift, 1)
82
95
  }).map((e) => Math.round(e * 255));
83
- C.value = `rgb(${c}, ${l}, ${u})`;
96
+ if (C.value = `rgb(${c}, ${l}, ${u})`, E.epicycleRainbow && D > 0) {
97
+ let e = [];
98
+ for (let t = 0; t < D; t++) {
99
+ let n = D > 1 ? t / (D - 1) : 0, [i, a, o] = r({
100
+ L: .62,
101
+ C: .17,
102
+ h: s.h - 150 + n * 2 * 150
103
+ }).map((e) => Math.round(e * 255));
104
+ e.push(`rgb(${i}, ${a}, ${o})`);
105
+ }
106
+ w.value = e;
107
+ } else w.value = [];
84
108
  }
85
- function D(e) {
86
- return c(o(s((t.freeze ? e.frozenSeed : `${Math.random()}`) + t.seed)), {
109
+ function k(e) {
110
+ return u(o(s((t.freeze ? e.frozenSeed : `${Math.random()}`) + t.seed)), {
87
111
  harmonics: e.harmonics,
88
112
  harmonicScale: e.harmonicScale
89
113
  });
90
114
  }
91
- let { isDark: O } = a();
92
- return m(() => {
93
- let n = b.value;
115
+ let { isDark: A } = a();
116
+ return h(() => {
117
+ let n = m.value;
94
118
  if (!n) return;
95
- let r = p[t.variant], i = D(r), a = [...i].sort((e, t) => t.amplitude - e.amplitude), o = Infinity, s = Infinity, c = -Infinity, d = -Infinity;
119
+ let r = b[t.variant], i = k(r), a = [...i].sort((e, t) => t.amplitude - e.amplitude);
120
+ D = a.length, O();
121
+ let o = Infinity, s = Infinity, u = -Infinity, f = -Infinity;
96
122
  for (let e = 0; e < 720; e++) {
97
- let t = l(i, e / 720), [n, r] = t[t.length - 1];
98
- n < o && (o = n), r < s && (s = r), n > c && (c = n), r > d && (d = r);
123
+ let t = c(i, e / 720), [n, r] = t[t.length - 1];
124
+ n < o && (o = n), r < s && (s = r), n > u && (u = n), r > f && (f = r);
99
125
  }
100
- let f = Math.max(.001, c - o), m = Math.max(.001, d - s), h = (o + c) / 2, g = (s + d) / 2, _ = [], x = e({
101
- canvas: b,
126
+ let p = Math.max(.001, u - o), h = Math.max(.001, f - s), g = (o + u) / 2, _ = (s + f) / 2, v = [], x = e({
127
+ canvas: m,
102
128
  setup: () => ({ render(e, o) {
103
- let s = n.clientWidth || n.offsetWidth || 0, c = n.clientHeight || n.offsetHeight || 0;
104
- if (!s || !c) return;
105
- let d = .82, p = Math.min(s / f * d, c / m * d), v = s / 2, y = c / 2, b = (e, t) => [v + (e - h) * p, y + (t - g) * p], w = t.freeze || x.reducedMotion ? r.frozenT : o / r.durationMs % 1, T = S.value, E = C.value, D = r.peakAlpha * u, k = r.headGlowAlpha * u;
106
- if (e.clearRect(0, 0, s, c), r.epicycleRatios.arm > 0) {
107
- let t = l(a, w);
108
- e.lineWidth = 1, e.strokeStyle = E;
109
- for (let n = 1; n < t.length; n++) {
110
- let [i, a] = b(t[n - 1][0], t[n - 1][1]), [o, s] = b(t[n][0], t[n][1]), c = Math.hypot(o - i, s - a);
111
- e.globalAlpha = D * r.epicycleRatios.circle, e.beginPath(), e.arc(i, a, c, 0, Math.PI * 2), e.stroke(), e.globalAlpha = D * r.epicycleRatios.arm, e.beginPath(), e.moveTo(i, a), e.lineTo(o, s), e.stroke();
129
+ let s = n.clientWidth || n.offsetWidth || 0, u = n.clientHeight || n.offsetHeight || 0;
130
+ if (!s || !u) return;
131
+ let d = .82, f = Math.min(s / p * d, u / h * d), m = s / 2, y = u / 2, b = (e, t) => [m + (e - g) * f, y + (t - _) * f], T = t.freeze || x.reducedMotion ? r.frozenT : o / r.durationMs % 1, E = S.value, D = C.value, O = w.value, k = A.value, j = r.peakAlpha * l, M = r.headGlowAlpha * l;
132
+ if (e.clearRect(0, 0, s, u), r.epicycleRatios.arm > 0) {
133
+ let t = c(a, T);
134
+ e.lineCap = "round", e.lineJoin = "round";
135
+ let n = Math.min(1, j * r.epicycleRatios.circle), i = Math.min(1, j * r.epicycleRatios.arm);
136
+ for (let a = 1; a < t.length; a++) {
137
+ let [o, s] = b(t[a - 1][0], t[a - 1][1]), [c, l] = b(t[a][0], t[a][1]), u = Math.hypot(c - o, l - s), d = O.length > 0 ? O[Math.min(a - 1, O.length - 1)] : D;
138
+ e.strokeStyle = d, e.lineWidth = r.epicycleWidths.circle, e.globalAlpha = n, e.beginPath(), e.arc(o, s, u, 0, Math.PI * 2), e.stroke(), e.lineWidth = r.epicycleWidths.arm, e.globalAlpha = i, e.beginPath(), e.moveTo(o, s), e.lineTo(c, l), e.stroke(), e.fillStyle = d, e.globalAlpha = Math.min(1, i * .9), e.beginPath(), e.arc(o, s, Math.max(2, r.epicycleWidths.arm * .9), 0, Math.PI * 2), e.fill();
112
139
  }
113
140
  e.globalAlpha = 1;
114
141
  }
115
- let A = l(i, w), [j, M] = A[A.length - 1], N = b(j, M);
116
- if (t.freeze || x.reducedMotion) {
117
- if (_.length === 0) {
118
- let e = Math.min(r.trailLength, 48);
119
- for (let t = e; t >= 0; t--) {
120
- let n = l(i, (w - t / e * .06 + 1) % 1);
121
- _.push(b(n[n.length - 1][0], n[n.length - 1][1]));
122
- }
142
+ let N = r.trailLength / 600, P = r.trailLength;
143
+ v.length = 0;
144
+ for (let e = P; e >= 0; e--) {
145
+ let t = c(i, (T - e / P * N + 1) % 1);
146
+ v.push(b(t[t.length - 1][0], t[t.length - 1][1]));
147
+ }
148
+ e.globalCompositeOperation = "source-over", e.strokeStyle = E, e.lineCap = "round", e.lineJoin = "round", e.lineWidth = r.trailWidth;
149
+ for (let t = 1; t < v.length; t++) {
150
+ let n = j * (t / (v.length - 1)) ** r.trailFadeExp;
151
+ n = Math.max(n, j * r.trailFloor), e.globalAlpha = Math.min(1, n), e.beginPath(), e.moveTo(v[t - 1][0], v[t - 1][1]), e.lineTo(v[t][0], v[t][1]), e.stroke();
152
+ }
153
+ if (e.globalCompositeOperation = A.value ? "lighter" : "source-over", k && v.length >= 4) {
154
+ e.strokeStyle = E, e.lineWidth = r.trailWidth;
155
+ let t = Math.max(1, Math.floor(v.length * .66));
156
+ for (let n = t; n < v.length; n++) {
157
+ let r = (n - t) / Math.max(1, v.length - 1 - t);
158
+ e.globalAlpha = Math.min(1, .18 * r * l), e.beginPath(), e.moveTo(v[n - 1][0], v[n - 1][1]), e.lineTo(v[n][0], v[n][1]), e.stroke();
123
159
  }
124
- } else for (_.push(N); _.length > r.trailLength;) _.shift();
125
- e.globalCompositeOperation = O.value ? "lighter" : "source-over", e.strokeStyle = T, e.lineCap = "round", e.lineJoin = "round", e.lineWidth = 1.6;
126
- for (let t = 1; t < _.length; t++) {
127
- let n = D * (t / (_.length - 1)) ** r.trailFadeExp;
128
- n = Math.max(n, D * r.trailFloor), e.globalAlpha = n, e.beginPath(), e.moveTo(_[t - 1][0], _[t - 1][1]), e.lineTo(_[t][0], _[t][1]), e.stroke();
129
160
  }
130
- if (_.length >= 2) {
131
- e.save(), e.shadowColor = T, e.shadowBlur = r.headGlowBlur, e.globalAlpha = k, e.lineWidth = 2;
132
- let t = _.slice(-4);
161
+ if (v.length >= 2) {
162
+ e.save(), e.globalCompositeOperation = "source-over", e.shadowColor = E, e.shadowBlur = r.headGlowBlur, e.globalAlpha = Math.min(1, M), e.strokeStyle = E, e.lineWidth = r.trailWidth + .6;
163
+ let t = v.slice(-6);
133
164
  e.beginPath(), e.moveTo(t[0][0], t[0][1]);
134
165
  for (let n = 1; n < t.length; n++) e.lineTo(t[n][0], t[n][1]);
135
166
  e.stroke(), e.restore();
136
167
  }
168
+ if (r.headDotRadius > 0 && v.length >= 1) {
169
+ let [t, n] = v[v.length - 1];
170
+ e.globalCompositeOperation = "source-over", e.globalAlpha = Math.min(1, M * .4), e.fillStyle = E, e.beginPath(), e.arc(t, n, r.headDotRadius * 2.6, 0, Math.PI * 2), e.fill(), e.globalAlpha = Math.min(1, M), e.beginPath(), e.arc(t, n, r.headDotRadius, 0, Math.PI * 2), e.fill(), e.globalAlpha = Math.min(1, M * .95), e.fillStyle = "rgb(255, 255, 255)", e.beginPath(), e.arc(t, n, Math.max(1.2, r.headDotRadius * .38), 0, Math.PI * 2), e.fill();
171
+ }
137
172
  e.shadowBlur = 0, e.globalCompositeOperation = "source-over", e.globalAlpha = 1;
138
173
  } })
139
174
  });
140
- v(y, E, { immediate: !0 }), v(() => t.color, () => {
141
- E(), x.wake();
142
- }), v(O, () => {
143
- E(), x.wake();
175
+ y(d, O, { immediate: !0 }), y(() => t.color, () => {
176
+ O(), x.wake();
177
+ }), y(A, () => {
178
+ O(), x.wake();
144
179
  });
145
- }), (e, t) => (h(), d("div", {
180
+ }), (e, t) => (g(), f("div", {
146
181
  ref_key: "hostRef",
147
- ref: y,
182
+ ref: d,
148
183
  class: "fourier-field"
149
- }, [f("canvas", {
184
+ }, [p("canvas", {
150
185
  ref_key: "canvasRef",
151
- ref: b,
186
+ ref: m,
152
187
  class: "fourier-field-canvas",
153
188
  "aria-hidden": "true"
154
189
  }, null, 512)], 512));
155
190
  }
156
- }), [["__scopeId", "data-v-d56269df"]]);
191
+ }), [["__scopeId", "data-v-71a17062"]]);
157
192
  //#endregion
158
- export { y as FourierField, u as comp, c as makeEllipticSpectrum, l as positionsAt };
193
+ export { x as FourierField, d as comp, l as dftFromPoints, u as makeEllipticSpectrum, c as positionsAt };
@@ -1,2 +1,2 @@
1
- import { n as e, r as t, t as n } from "./math-DTpRVC0e.js";
2
- export { n as comp, e as makeEllipticSpectrum, t as positionsAt };
1
+ import { i as e, n as t, r as n, t as r } from "./math-U6-RrLmV.js";
2
+ export { r as comp, t as dftFromPoints, n as makeEllipticSpectrum, e as positionsAt };