@mkbabb/glass-ui 3.13.0 → 4.0.1

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 (507) hide show
  1. package/README.md +3 -1
  2. package/dist/CardAction-CW7a0m8M.js +253 -0
  3. package/dist/{CommandShortcut-RowNEO6i.js → CommandShortcut-DvZNQ_HF.js} +58 -53
  4. package/dist/ConfiguratorRow-BR4l-ixA.js +143 -0
  5. package/dist/{ContextMenuContent-CT3AS1WX.js → ContextMenuContent-uWnVxDab.js} +1 -1
  6. package/dist/{ContextMenuSubContent-BQmxTAdw.js → ContextMenuSubContent-xol4sD2q.js} +32 -37
  7. package/dist/{DataTable-BCddn3T3.js → DataTable-CuKwF7wr.js} +99 -97
  8. package/dist/DialogContent-DcKK8k9i.js +103 -0
  9. package/dist/{DialogFooter-Blu4t7tJ.js → DialogFooter-BZNX5aVr.js} +3 -3
  10. package/dist/FadingScroll-DI6hQhT9.js +76 -0
  11. package/dist/{HoverCardContent-Csywg3YF.js → HoverCardContent-b2uaAMRR.js} +1 -1
  12. package/dist/{HoverPopover-CISOJQuZ.js → HoverPopover-CbqbNwgU.js} +2 -2
  13. package/dist/IconChip-BTD-nay5.js +55 -0
  14. package/dist/{IconTooltip-DPzE09X9.js → IconTooltip-Bl8gFZ8d.js} +1 -1
  15. package/dist/{Input-DWQQIOC4.js → Input-h9v5LeXf.js} +1 -1
  16. package/dist/{MetricBadge-C9QMz1KT.js → MetricBadge-RHdBP72w.js} +1 -1
  17. package/dist/Notification-VUwexFUf.js +43 -0
  18. package/dist/NumberFieldContent-Cq7EzX-U.js +138 -0
  19. package/dist/PopoverContent-DL7E6vJP.js +127 -0
  20. package/dist/{Progress-DwlUKGbr.js → Progress-DctG61iZ.js} +98 -78
  21. package/dist/{ScrollingText-DfFrwSph.js → ScrollingText-yOpBzFYq.js} +2 -2
  22. package/dist/{SelectScrollDownButton-CiDUxfEj.js → SelectScrollDownButton-CrA8F0iV.js} +35 -20
  23. package/dist/{Switch-CsIuYP_e.js → Switch-CwYNf8bo.js} +1 -1
  24. package/dist/Toaster-Bw4xR8xV.js +274 -0
  25. package/dist/{ToggleGroupItem-D_AHlRw9.js → ToggleGroupItem-pEM9vIhs.js} +50 -37
  26. package/dist/{TooltipProvider-B3MkB_8P.js → TooltipProvider-rzvnXz60.js} +1 -1
  27. package/dist/animated-digit.js +2 -2
  28. package/dist/api/index.d.ts +16 -8
  29. package/dist/api/types-extra.d.ts +6 -0
  30. package/dist/api.js +2 -2
  31. package/dist/aurora.js +888 -230
  32. package/dist/badge.js +1 -1
  33. package/dist/border-progress.d.ts +1 -0
  34. package/dist/border-progress.js +106 -0
  35. package/dist/button-DYCUa-tH.js +126 -0
  36. package/dist/button.js +1 -1
  37. package/dist/canvas.js +2 -2
  38. package/dist/card.js +2 -2
  39. package/dist/carousel.d.ts +1 -1
  40. package/dist/carousel.js +90 -151
  41. package/dist/collapsible.js +1 -1
  42. package/dist/color-swatch.d.ts +1 -0
  43. package/dist/color-swatch.js +47 -0
  44. package/dist/color.js +1 -1
  45. package/dist/command.js +1 -1
  46. package/dist/compile-CQEFRTmx.js +19 -0
  47. package/dist/components/custom/aurora/composables/atoms-fields.d.ts +39 -0
  48. package/dist/components/custom/aurora/composables/auroraFallbackGround.d.ts +108 -0
  49. package/dist/components/custom/aurora/composables/runtime.d.ts +19 -0
  50. package/dist/components/custom/aurora/composables/uniformBridge.d.ts +5 -1
  51. package/dist/components/custom/aurora/composables/uniformBridgeWGPU.d.ts +51 -0
  52. package/dist/components/custom/aurora/composables/wgpuSetup.d.ts +29 -0
  53. package/dist/components/custom/aurora/constants/budget.d.ts +21 -0
  54. package/dist/components/custom/aurora/constants/presets.d.ts +30 -2
  55. package/dist/components/custom/aurora/constants/renderMode.d.ts +63 -10
  56. package/dist/components/custom/aurora/constants/shaders/aurora.wgsl.d.ts +1 -0
  57. package/dist/components/custom/aurora/constants/shaders/oil-modes.glsl.d.ts +1 -0
  58. package/dist/components/custom/aurora/constants/shaders/procedural-color.wgsl.d.ts +4 -0
  59. package/dist/components/custom/aurora/index.d.ts +3 -2
  60. package/dist/components/custom/border-progress/BorderProgress.vue.d.ts +46 -0
  61. package/dist/components/custom/border-progress/composables/useBorderSpectrum.d.ts +22 -0
  62. package/dist/components/custom/border-progress/constants.d.ts +59 -0
  63. package/dist/components/custom/border-progress/index.d.ts +4 -0
  64. package/dist/components/custom/color-swatch/ColorSwatch.vue.d.ts +22 -0
  65. package/dist/components/custom/color-swatch/index.d.ts +1 -0
  66. package/dist/components/custom/concentric/Concentric.vue.d.ts +39 -0
  67. package/dist/components/custom/concentric/composables/concentricGLSetup.d.ts +11 -0
  68. package/dist/components/custom/concentric/composables/concentricWGPUSetup.d.ts +13 -0
  69. package/dist/components/custom/concentric/composables/ringField.d.ts +44 -0
  70. package/dist/components/custom/concentric/composables/uniformBridgeWGPU.d.ts +13 -0
  71. package/dist/components/custom/concentric/composables/useConcentric.d.ts +35 -0
  72. package/dist/components/custom/concentric/constants.d.ts +43 -0
  73. package/dist/components/custom/concentric/index.d.ts +5 -0
  74. package/dist/components/custom/concentric/shaders/concentric.glsl.d.ts +4 -0
  75. package/dist/components/custom/concentric/shaders/concentric.wgsl.d.ts +1 -0
  76. package/dist/components/custom/configurator/Configurator.vue.d.ts +19 -8
  77. package/dist/components/custom/constellation/Constellation.vue.d.ts +18 -206
  78. package/dist/components/custom/constellation/composables/useConstellation.d.ts +26 -0
  79. package/dist/components/custom/constellation/constellationField.d.ts +2 -369
  80. package/dist/components/custom/constellation/constellationTypes.d.ts +369 -0
  81. package/dist/components/custom/constellation/index.d.ts +1 -1
  82. package/dist/components/custom/dock/DockIconButton.vue.d.ts +13 -4
  83. package/dist/components/custom/dock/DockLayerGroup.vue.d.ts +10 -2
  84. package/dist/components/custom/dock/DockRail.vue.d.ts +17 -16
  85. package/dist/components/custom/dock/DockSection.vue.d.ts +69 -0
  86. package/dist/components/custom/dock/DockSeparator.vue.d.ts +49 -1
  87. package/dist/components/custom/dock/DockTabButton.vue.d.ts +5 -5
  88. package/dist/components/custom/dock/composables/dockMorphMeasure.d.ts +75 -0
  89. package/dist/components/custom/dock/composables/useLayerTransition.d.ts +13 -0
  90. package/dist/components/custom/dock/constants.d.ts +35 -0
  91. package/dist/components/custom/dock/index.d.ts +2 -0
  92. package/dist/components/custom/dot-flow-field/DotFlowField.vue.d.ts +38 -0
  93. package/dist/components/custom/dot-flow-field/composables/flowField.d.ts +41 -0
  94. package/dist/components/custom/dot-flow-field/composables/uniformBridgeWGPU.d.ts +24 -0
  95. package/dist/components/custom/dot-flow-field/composables/useDotFlowField.d.ts +34 -0
  96. package/dist/components/custom/dot-flow-field/composables/useFlowParticles.d.ts +18 -0
  97. package/dist/components/custom/dot-flow-field/constants.d.ts +48 -0
  98. package/dist/components/custom/dot-flow-field/index.d.ts +5 -0
  99. package/dist/components/custom/dot-flow-field/shaders/flow-field.compute.wgsl.d.ts +1 -0
  100. package/dist/components/custom/dot-flow-field/shaders/flow-field.glsl.d.ts +20 -0
  101. package/dist/components/custom/dot-flow-field/shaders/flow-field.render.wgsl.d.ts +1 -0
  102. package/dist/components/custom/easing/EasingConfigurator.vue.d.ts +33 -0
  103. package/dist/components/custom/easing/EasingPicker.vue.d.ts +49 -0
  104. package/dist/components/custom/easing/composables/useEasingPicker.d.ts +75 -0
  105. package/dist/components/custom/easing/constants.d.ts +28 -0
  106. package/dist/components/custom/easing/index.d.ts +3 -0
  107. package/dist/components/custom/expandable-container/ExpandableContainer.vue.d.ts +10 -0
  108. package/dist/components/custom/fading-scroll/FadingScroll.vue.d.ts +25 -0
  109. package/dist/components/custom/fading-scroll/composables/useFadingScroll.d.ts +31 -0
  110. package/dist/components/custom/fading-scroll/constants.d.ts +19 -0
  111. package/dist/components/custom/fading-scroll/index.d.ts +2 -0
  112. package/dist/components/custom/fourier-field/FourierField.vue.d.ts +19 -2
  113. package/dist/components/custom/fourier-field/composables/useFourierField.d.ts +39 -0
  114. package/dist/components/custom/fourier-field/constants.d.ts +7 -0
  115. package/dist/components/custom/fourier-field/index.d.ts +1 -1
  116. package/dist/components/custom/fourier-field/math.d.ts +17 -0
  117. package/dist/components/custom/glass-panel/GlassPanel.vue.d.ts +9 -1
  118. package/dist/components/custom/goo-blob/GooBlob.vue.d.ts +4 -2
  119. package/dist/components/custom/goo-blob/composables/uniformBridgeWGPU.d.ts +24 -0
  120. package/dist/components/custom/goo-blob/composables/useMetaballRenderer.d.ts +29 -12
  121. package/dist/components/custom/goo-blob/composables/wgpuSetup.d.ts +23 -0
  122. package/dist/components/custom/goo-blob/constants.d.ts +6 -1
  123. package/dist/components/custom/goo-blob/shaders/metaball.wgsl.d.ts +1 -0
  124. package/dist/components/custom/handmark/HandMark.vue.d.ts +29 -0
  125. package/dist/components/custom/handmark/brush.d.ts +269 -0
  126. package/dist/components/custom/handmark/composables/useHandMark.d.ts +89 -0
  127. package/dist/components/custom/handmark/constants.d.ts +39 -0
  128. package/dist/components/custom/handmark/freehand.d.ts +69 -0
  129. package/dist/components/custom/handmark/geometry.d.ts +52 -0
  130. package/dist/components/custom/handmark/index.d.ts +27 -0
  131. package/dist/components/custom/handmark/ink.d.ts +11 -0
  132. package/dist/components/custom/handmark/texture.d.ts +39 -0
  133. package/dist/components/custom/handmark/types.d.ts +62 -0
  134. package/dist/components/custom/icon-chip/IconChip.vue.d.ts +4 -0
  135. package/dist/components/custom/icon-chip/index.d.ts +2 -0
  136. package/dist/components/custom/icon-chip/types.d.ts +82 -0
  137. package/dist/components/custom/instrument-chassis/InstrumentChassis.vue.d.ts +17 -2
  138. package/dist/components/custom/metric-stack/MetricStack.vue.d.ts +1 -1
  139. package/dist/components/custom/pager-dots/PagerDots.vue.d.ts +39 -0
  140. package/dist/components/custom/pager-dots/index.d.ts +2 -0
  141. package/dist/components/custom/spa-view/SpaView.vue.d.ts +50 -0
  142. package/dist/components/custom/spa-view/index.d.ts +2 -0
  143. package/dist/components/custom/tabs/SegmentedTabs.vue.d.ts +29 -24
  144. package/dist/components/custom/tabs/composables/useTabDragMorph.d.ts +42 -0
  145. package/dist/components/custom/tabs/composables/useTabIndicator.d.ts +30 -21
  146. package/dist/components/custom/tabs/constants.d.ts +9 -3
  147. package/dist/components/custom/tabs/index.d.ts +1 -1
  148. package/dist/components/custom/watercolor-dot/WatercolorDot.vue.d.ts +15 -1
  149. package/dist/components/ui/_shared/index.d.ts +2 -0
  150. package/dist/components/ui/_shared/menuItemVariants.d.ts +19 -0
  151. package/dist/components/ui/_shared/useSurfaceAxis.d.ts +41 -0
  152. package/dist/components/ui/badge/index.d.ts +1 -1
  153. package/dist/components/ui/button/Button.vue.d.ts +5 -2
  154. package/dist/components/ui/button/index.d.ts +2 -2
  155. package/dist/components/ui/card/Card.vue.d.ts +34 -4
  156. package/dist/components/ui/card/CardHeader.vue.d.ts +42 -16
  157. package/dist/components/ui/card/ScrollCard.vue.d.ts +33 -0
  158. package/dist/components/ui/card/ScrollCardHeader.vue.d.ts +17 -0
  159. package/dist/components/ui/card/index.d.ts +2 -0
  160. package/dist/components/ui/carousel/CarouselNext.vue.d.ts +2 -2
  161. package/dist/components/ui/carousel/CarouselPrevious.vue.d.ts +2 -2
  162. package/dist/components/ui/carousel/GlassCarouselPager.vue.d.ts +2 -2
  163. package/dist/components/ui/carousel/index.d.ts +0 -1
  164. package/dist/components/ui/command/Command.vue.d.ts +4 -1
  165. package/dist/components/ui/dialog/DialogContent.vue.d.ts +8 -3
  166. package/dist/components/ui/drawer/Drawer.vue.d.ts +46 -33
  167. package/dist/components/ui/drawer/DrawerContent.vue.d.ts +12 -8
  168. package/dist/components/ui/drawer/DrawerDescription.vue.d.ts +2 -2
  169. package/dist/components/ui/drawer/DrawerOverlay.vue.d.ts +1 -1
  170. package/dist/components/ui/drawer/DrawerTitle.vue.d.ts +2 -2
  171. package/dist/components/ui/drawer/composables/drawerSnapContext.d.ts +26 -0
  172. package/dist/components/ui/drawer/composables/useDrawerSnap.d.ts +17 -0
  173. package/dist/components/ui/drawer/constants.d.ts +45 -0
  174. package/dist/components/ui/drawer/index.d.ts +23 -15
  175. package/dist/components/ui/focus-scope/FocusScope.vue.d.ts +20 -0
  176. package/dist/components/ui/focus-scope/index.d.ts +2 -0
  177. package/dist/components/ui/index.d.ts +1 -1
  178. package/dist/components/ui/popover/PopoverContent.vue.d.ts +3 -0
  179. package/dist/components/ui/progress/ProgressDefault.vue.d.ts +3 -2
  180. package/dist/components/ui/progress/ProgressSectioned.vue.d.ts +14 -3
  181. package/dist/components/ui/select/SelectContent.vue.d.ts +1 -1
  182. package/dist/components/ui/select/SelectTrigger.vue.d.ts +27 -4
  183. package/dist/components/ui/sheet/SheetContent.vue.d.ts +6 -0
  184. package/dist/components/ui/sheet/index.d.ts +1 -1
  185. package/dist/components/ui/skeleton/Skeleton.vue.d.ts +3 -0
  186. package/dist/components/ui/tags-input/TagsInput.vue.d.ts +2 -2
  187. package/dist/components/ui/toast/Toast.vue.d.ts +5 -2
  188. package/dist/components/ui/toast/use-toast.d.ts +14 -0
  189. package/dist/components/ui/toggle/Toggle.vue.d.ts +1 -1
  190. package/dist/composables/dark/index.d.ts +1 -1
  191. package/dist/composables/dark/useGlobalDark.d.ts +23 -1
  192. package/dist/composables/glass/canvas2d/useCanvas2D.d.ts +13 -6
  193. package/dist/composables/glass/index.d.ts +5 -2
  194. package/dist/composables/glass/useSpecularPointer.d.ts +33 -0
  195. package/dist/composables/glass/useSpecularTracking.d.ts +20 -0
  196. package/dist/composables/glass/vSpecular.d.ts +2 -0
  197. package/dist/composables/glass/webgl/shaders/flow.glsl.d.ts +1 -0
  198. package/dist/composables/glass/webgl/useWebGLCanvas.d.ts +16 -0
  199. package/dist/composables/glass/webgpu/index.d.ts +2 -0
  200. package/dist/composables/glass/webgpu/useGpuSubstrate.d.ts +54 -0
  201. package/dist/composables/glass/webgpu/useWebGPUCanvas.d.ts +84 -0
  202. package/dist/composables/motion/core/index.d.ts +1 -0
  203. package/dist/composables/motion/index.d.ts +4 -0
  204. package/dist/composables/motion/useDockCtaReceive.d.ts +59 -0
  205. package/dist/composables/motion/useDragMorph.d.ts +77 -0
  206. package/dist/composables/motion/useLiquidFlex.d.ts +11 -0
  207. package/dist/composables/motion/useLiquidPress.d.ts +71 -0
  208. package/dist/composables/motion/useLiquidReveal.d.ts +51 -0
  209. package/dist/composables/motion/useNumericTransition.d.ts +3 -3
  210. package/dist/composables/motion/usePointerVelocityField.d.ts +98 -0
  211. package/dist/composables/motion/useViewTransition.d.ts +36 -1
  212. package/dist/concentric.d.ts +1 -0
  213. package/dist/concentric.js +562 -0
  214. package/dist/configurator.js +3 -2
  215. package/dist/confirm-dialog.js +22 -24
  216. package/dist/constellation.js +93 -95
  217. package/dist/context-menu.js +3 -3
  218. package/dist/controls.js +10 -4
  219. package/dist/createCanvasLifecycle-CHD5XrDW.js +82 -0
  220. package/dist/dark.d.ts +1 -1
  221. package/dist/dark.js +1 -1
  222. package/dist/data-table.js +1 -1
  223. package/dist/dialog.js +2 -2
  224. package/dist/dock.js +738 -442
  225. package/dist/{dockContext-BegmJVmx.js → dockContext-BNfyPLe9.js} +1 -1
  226. package/dist/dom.js +5 -5
  227. package/dist/dot-flow-field.d.ts +1 -0
  228. package/dist/dot-flow-field.js +604 -0
  229. package/dist/drawer.d.ts +1 -0
  230. package/dist/drawer.js +380 -0
  231. package/dist/{dropdown-menu-DzkkyBwX.js → dropdown-menu-CofSZuk8.js} +14 -15
  232. package/dist/dropdown-menu.js +1 -1
  233. package/dist/easing.d.ts +1 -0
  234. package/dist/easing.js +463 -0
  235. package/dist/expandable-container.js +45 -38
  236. package/dist/fading-scroll.d.ts +1 -0
  237. package/dist/fading-scroll.js +2 -0
  238. package/dist/focus-scope.d.ts +1 -0
  239. package/dist/focus-scope.js +23 -0
  240. package/dist/forms.js +7 -7
  241. package/dist/fourier-field.js +135 -122
  242. package/dist/fourier-math.js +2 -2
  243. package/dist/glass-panel.js +39 -36
  244. package/dist/glass-ui.css +1 -1
  245. package/dist/glass-ui.js +154 -362
  246. package/dist/goo-blob.js +838 -227
  247. package/dist/handmark.d.ts +1 -0
  248. package/dist/handmark.js +707 -0
  249. package/dist/header-ribbon.js +1 -1
  250. package/dist/hover-card.js +1 -1
  251. package/dist/hover-popover.js +1 -1
  252. package/dist/icon-chip.d.ts +1 -0
  253. package/dist/icon-chip.js +2 -0
  254. package/dist/icon-tooltip.js +1 -1
  255. package/dist/index.d.ts +3 -3
  256. package/dist/instrument-chassis.js +1 -1
  257. package/dist/keyboard.js +1 -1
  258. package/dist/label.js +1 -1
  259. package/dist/labeled-field.js +6 -6
  260. package/dist/{math-U6-RrLmV.js → math-BINYmg5z.js} +11 -3
  261. package/dist/{menuItemVariants-DPiEarb0.js → menuItemVariants-D8VNHq22.js} +10 -4
  262. package/dist/metric-badge.js +1 -1
  263. package/dist/metric-cell.js +25 -22
  264. package/dist/metric-stack.js +4 -8
  265. package/dist/motion-core.js +36 -35
  266. package/dist/motion-curves.js +1 -1
  267. package/dist/motion.js +157 -55
  268. package/dist/notification.js +1 -1
  269. package/dist/number-field.js +1 -1
  270. package/dist/pager-dots.d.ts +1 -0
  271. package/dist/pager-dots.js +91 -0
  272. package/dist/paper-backdrop.js +1 -1
  273. package/dist/popover.js +1 -1
  274. package/dist/{presets-BKVyQfbt.js → presets-BW2b-fr1.js} +14 -1
  275. package/dist/{compile-B7NGOBcP.js → procedural-color.glsl-CIFsJhwI.js} +1 -155
  276. package/dist/procedural-color.wgsl-CToRHugY.js +224 -0
  277. package/dist/progress.js +1 -1
  278. package/dist/pulse.js +1 -1
  279. package/dist/reactive.js +2 -2
  280. package/dist/scrolling-text.js +1 -1
  281. package/dist/search.js +10 -12
  282. package/dist/select.js +3 -3
  283. package/dist/separator.js +1 -1
  284. package/dist/sheet-tZMg0E0w.js +218 -0
  285. package/dist/sheet.js +1 -1
  286. package/dist/{slider-B-JP2JlI.js → slider-DVb4HXU-.js} +7 -7
  287. package/dist/slider.js +1 -1
  288. package/dist/sortable-list.js +3 -3
  289. package/dist/spa-view.d.ts +1 -0
  290. package/dist/spa-view.js +46 -0
  291. package/dist/styles/animations.css +40 -31
  292. package/dist/styles/border-progress.css +109 -0
  293. package/dist/styles/cards.css +76 -0
  294. package/dist/styles/components.css +1 -1
  295. package/dist/styles/configurator.css +35 -0
  296. package/dist/styles/critical-partition.mjs +140 -0
  297. package/dist/styles/critical.css +12 -0
  298. package/dist/styles/deferred.css +31 -0
  299. package/dist/styles/dock/density.css +64 -0
  300. package/dist/styles/dock/layers.css +54 -30
  301. package/dist/styles/dock/morph.css +124 -7
  302. package/dist/styles/dock/overflow.css +31 -2
  303. package/dist/styles/dock/rail-extend.css +168 -71
  304. package/dist/styles/dock/section.css +59 -0
  305. package/dist/styles/dock/shell.css +83 -16
  306. package/dist/styles/dock-controls/icon-button.css +11 -1
  307. package/dist/styles/dock-controls/tab-button.css +24 -83
  308. package/dist/styles/dock-controls/triggers.css +7 -0
  309. package/dist/styles/dock.css +38 -3
  310. package/dist/styles/drawer.css +127 -35
  311. package/dist/styles/feedback-tone.css +104 -0
  312. package/dist/styles/glass/deep.css +44 -0
  313. package/dist/styles/glass/ladder.css +154 -52
  314. package/dist/styles/glass/material.css +78 -15
  315. package/dist/styles/glass/reveal.css +136 -0
  316. package/dist/styles/glass/rim.css +100 -0
  317. package/dist/styles/glass/surface-axis.css +113 -0
  318. package/dist/styles/glass/surfaces.css +189 -15
  319. package/dist/styles/glass-refract.css +96 -44
  320. package/dist/styles/glass-specular-track.css +7 -0
  321. package/dist/styles/glass.css +8 -2
  322. package/dist/styles/hover-popover.css +7 -6
  323. package/dist/styles/icon-chip.css +211 -0
  324. package/dist/styles/index.css +78 -4
  325. package/dist/styles/instrument-chassis.css +107 -2
  326. package/dist/styles/menu.css +127 -0
  327. package/dist/styles/scroll-choreography.css +300 -0
  328. package/dist/styles/segmented-tabs.css +188 -86
  329. package/dist/styles/select.css +50 -0
  330. package/dist/styles/theme/bridges.css +22 -1
  331. package/dist/styles/theme/literals.css +11 -2
  332. package/dist/styles/theme/radius.css +6 -1
  333. package/dist/styles/tokens/color-radius.css +40 -13
  334. package/dist/styles/tokens/dark-arm.css +200 -20
  335. package/dist/styles/tokens/glass-deep.css +75 -0
  336. package/dist/styles/tokens/glass-fx.css +333 -0
  337. package/dist/styles/tokens/glass.css +95 -315
  338. package/dist/styles/tokens/light-dark.css +64 -22
  339. package/dist/styles/tokens/offsets.css +116 -0
  340. package/dist/styles/tokens/on-glass-fg.css +39 -0
  341. package/dist/styles/tokens/property-regs.css +130 -10
  342. package/dist/styles/tokens/scale-paper.css +155 -84
  343. package/dist/styles/tokens/scheme-motion.css +102 -46
  344. package/dist/styles/tokens/scroll-tokens.css +123 -0
  345. package/dist/styles/tokens/{offsets-sizing.css → sizing.css} +88 -89
  346. package/dist/styles/tokens.css +9 -3
  347. package/dist/styles/transitions.css +7 -7
  348. package/dist/styles/typography/scale.css +153 -0
  349. package/dist/styles/typography/semantic.css +220 -0
  350. package/dist/styles/typography/utilities.css +174 -0
  351. package/dist/styles/typography.css +23 -507
  352. package/dist/styles/utilities/a11y-overrides.css +33 -4
  353. package/dist/styles/utilities/animate.css +27 -24
  354. package/dist/styles/utilities/base-misc.css +255 -0
  355. package/dist/styles/utilities/base.css +100 -138
  356. package/dist/styles/utilities/btn.css +21 -202
  357. package/dist/styles/utilities/metal.css +189 -0
  358. package/dist/styles/utilities.css +14 -7
  359. package/dist/styles/view-transition.css +4 -1
  360. package/dist/switch.js +1 -1
  361. package/dist/tabs.js +275 -191
  362. package/dist/timeline.js +2 -2
  363. package/dist/toast.js +1 -1
  364. package/dist/toggle-chip.js +3 -1
  365. package/dist/toggle-group.js +1 -1
  366. package/dist/tooltip.js +1 -1
  367. package/dist/typewriter.js +1 -1
  368. package/dist/{useAnimatedNumber-C5I3wWd8.js → useAnimatedNumber-BfUq2bUM.js} +1 -1
  369. package/dist/useCanvas2D-B8w_E3Rr.js +83 -0
  370. package/dist/useConfiguratorState-DNlOh6c8.js +161 -0
  371. package/dist/useDragMorph-DgxnsVJz.js +102 -0
  372. package/dist/{useGlobalDark-yhL4Wp-s.js → useGlobalDark-C28t0VWJ.js} +22 -3
  373. package/dist/useLiquidPress-kfb4KX79.js +39 -0
  374. package/dist/usePointerVelocityField-JbRd5CrM.js +137 -0
  375. package/dist/{useRAFLoop-Bxv0o6L5.js → useRAFLoop-UYa4zoiN.js} +1 -1
  376. package/dist/useSpring-C0jyvEJB.js +40 -0
  377. package/dist/useSpringMount-q1amq1SJ.js +71 -0
  378. package/dist/useSpringPress-BsqPr7FJ.js +34 -0
  379. package/dist/useSurfaceAxis-g0NloYEF.js +7 -0
  380. package/dist/{useTouchGate-Dg7MQI1G.js → useTouchGate-CBZTD4SD.js} +1 -1
  381. package/dist/vReveal-Czsb7zQC.js +10 -0
  382. package/dist/vSpecular-CQFmLNzA.js +68 -0
  383. package/dist/vendor-CKmzio-i.js +226 -0
  384. package/dist/watercolor-dot.js +12 -5
  385. package/package.json +193 -25
  386. package/src/styles/animations.css +40 -31
  387. package/src/styles/border-progress.css +109 -0
  388. package/src/styles/cards.css +76 -0
  389. package/src/styles/configurator.css +35 -0
  390. package/src/styles/critical-partition.mjs +140 -0
  391. package/src/styles/dock/density.css +64 -0
  392. package/src/styles/dock/layers.css +54 -30
  393. package/src/styles/dock/morph.css +124 -7
  394. package/src/styles/dock/overflow.css +31 -2
  395. package/src/styles/dock/rail-extend.css +168 -71
  396. package/src/styles/dock/section.css +59 -0
  397. package/src/styles/dock/shell.css +83 -16
  398. package/src/styles/dock-controls/icon-button.css +11 -1
  399. package/src/styles/dock-controls/tab-button.css +24 -83
  400. package/src/styles/dock-controls/triggers.css +7 -0
  401. package/src/styles/dock.css +38 -3
  402. package/src/styles/drawer.css +123 -35
  403. package/src/styles/feedback-tone.css +104 -0
  404. package/src/styles/glass/deep.css +44 -0
  405. package/src/styles/glass/ladder.css +154 -52
  406. package/src/styles/glass/material.css +78 -15
  407. package/src/styles/glass/reveal.css +136 -0
  408. package/src/styles/glass/rim.css +100 -0
  409. package/src/styles/glass/surface-axis.css +113 -0
  410. package/src/styles/glass/surfaces.css +189 -15
  411. package/src/styles/glass-refract.css +96 -44
  412. package/src/styles/glass-specular-track.css +7 -0
  413. package/src/styles/glass.css +8 -2
  414. package/src/styles/hover-popover.css +7 -6
  415. package/src/styles/icon-chip.css +211 -0
  416. package/src/styles/index.css +78 -4
  417. package/src/styles/instrument-chassis.css +107 -2
  418. package/src/styles/menu.css +127 -0
  419. package/src/styles/scroll-choreography.css +300 -0
  420. package/src/styles/segmented-tabs.css +184 -84
  421. package/src/styles/select.css +50 -0
  422. package/src/styles/theme/bridges.css +22 -1
  423. package/src/styles/theme/literals.css +11 -2
  424. package/src/styles/theme/radius.css +6 -1
  425. package/src/styles/tokens/color-radius.css +40 -13
  426. package/src/styles/tokens/dark-arm.css +200 -20
  427. package/src/styles/tokens/glass-deep.css +75 -0
  428. package/src/styles/tokens/glass-fx.css +333 -0
  429. package/src/styles/tokens/glass.css +95 -315
  430. package/src/styles/tokens/light-dark.css +64 -22
  431. package/src/styles/tokens/offsets.css +116 -0
  432. package/src/styles/tokens/on-glass-fg.css +39 -0
  433. package/src/styles/tokens/property-regs.css +130 -10
  434. package/src/styles/tokens/scale-paper.css +155 -84
  435. package/src/styles/tokens/scheme-motion.css +102 -46
  436. package/src/styles/tokens/scroll-tokens.css +123 -0
  437. package/src/styles/tokens/{offsets-sizing.css → sizing.css} +88 -89
  438. package/src/styles/tokens.css +9 -3
  439. package/src/styles/transitions.css +7 -7
  440. package/src/styles/typography/scale.css +153 -0
  441. package/src/styles/typography/semantic.css +220 -0
  442. package/src/styles/typography/utilities.css +174 -0
  443. package/src/styles/typography.css +23 -507
  444. package/src/styles/utilities/a11y-overrides.css +33 -4
  445. package/src/styles/utilities/animate.css +27 -24
  446. package/src/styles/utilities/base-misc.css +255 -0
  447. package/src/styles/utilities/base.css +100 -138
  448. package/src/styles/utilities/btn.css +21 -202
  449. package/src/styles/utilities/metal.css +189 -0
  450. package/src/styles/utilities.css +14 -7
  451. package/src/styles/view-transition.css +4 -1
  452. package/dist/CardAction-Cj2eycQ2.js +0 -157
  453. package/dist/DialogContent-Dl9WkAoS.js +0 -100
  454. package/dist/Notification-DdwNxIrI.js +0 -100
  455. package/dist/NumberFieldContent-CqaN-SvN.js +0 -145
  456. package/dist/PopoverContent-BYwt2-4x.js +0 -121
  457. package/dist/TabsList-Dttss653.js +0 -105
  458. package/dist/Toaster-D6q4HtXu.js +0 -263
  459. package/dist/button-ChXMfsud.js +0 -81
  460. package/dist/check-njhk-vfu.js +0 -7
  461. package/dist/chevron-down-DKkxb4VV.js +0 -7
  462. package/dist/chevron-right-CPXbqQQz.js +0 -7
  463. package/dist/chevron-up-n_24SqI-.js +0 -7
  464. package/dist/components/custom/underline/GlassUnderline.vue.d.ts +0 -84
  465. package/dist/components/custom/underline/index.d.ts +0 -2
  466. package/dist/components/custom/underline/types.d.ts +0 -56
  467. package/dist/components/ui/carousel/CarouselDots.vue.d.ts +0 -4
  468. package/dist/createLucideIcon-DydS2qgk.js +0 -43
  469. package/dist/minimize-2-BV31Ob_h.js +0 -38
  470. package/dist/search-BSGrf2Sk.js +0 -12
  471. package/dist/sheet-1fChZjtw.js +0 -214
  472. package/dist/underline.d.ts +0 -1
  473. package/dist/underline.js +0 -85
  474. package/dist/useCanvas2D-ClrQuZtp.js +0 -96
  475. package/dist/useConfiguratorState-DAoeHVue.js +0 -287
  476. package/dist/useSpecularTracking-Bo5su68i.js +0 -32
  477. package/dist/useSpringMount-CI2jOstM.js +0 -108
  478. package/dist/vReveal-CqaCz_mC.js +0 -44
  479. package/dist/x-BUwTKe50.js +0 -10
  480. /package/dist/{CollapsibleContent-CP9qF1v4.js → CollapsibleContent-68dEXIAl.js} +0 -0
  481. /package/dist/{InstrumentChassis-UUJX0-mW.js → InstrumentChassis-Bx0F_q5g.js} +0 -0
  482. /package/dist/{Label-r3WzWrsj.js → Label-C2ejNWeC.js} +0 -0
  483. /package/dist/{ModalOverlay-DVLI2VRr.js → ModalOverlay-D1VrWyoi.js} +0 -0
  484. /package/dist/{PaperBackdrop-DIXTtVq6.js → PaperBackdrop-Vf3tlpvd.js} +0 -0
  485. /package/dist/{SelectGroup-aumMgWLs.js → SelectGroup-DwwjicPY.js} +0 -0
  486. /package/dist/{SelectSeparator-BQ_1Fcbp.js → SelectSeparator-DXswVdRz.js} +0 -0
  487. /package/dist/{Separator-0JE6LtNu.js → Separator-pKF0oA4M.js} +0 -0
  488. /package/dist/{_plugin-vue_export-helper-ok8pgSl5.js → _plugin-vue_export-helper-C1je1s0u.js} +0 -0
  489. /package/dist/{badge-UILT_3pZ.js → badge-D9XWW4GT.js} +0 -0
  490. /package/dist/{color-CUYeFbgd.js → color-DweYl7pE.js} +0 -0
  491. /package/dist/{constants-CS75AWHG.js → constants-BPOqYJAm.js} +0 -0
  492. /package/dist/{createContext-BM46COQ-.js → createContext-CpBNTRMI.js} +0 -0
  493. /package/dist/{prng-D27-B3tK.js → prng-Za0Rmgag.js} +0 -0
  494. /package/dist/{resolveCanvasColor-BBiYfp8g.js → resolveCanvasColor-CUyHr5Uu.js} +0 -0
  495. /package/dist/{springPresets--YdWTHtm.js → springPresets-CFQGQfdl.js} +0 -0
  496. /package/dist/{useIntersectionPause-Cc-H9ees.js → useIntersectionPause-Bj4sPkMh.js} +0 -0
  497. /package/dist/{useInterval-iHludrxk.js → useInterval-CvK1mL92.js} +0 -0
  498. /package/dist/{useKeyboardShortcuts-Be3w_Rwk.js → useKeyboardShortcuts-BXWXOZ-9.js} +0 -0
  499. /package/dist/{useLiquidFlex-BL0lLLN2.js → useLiquidFlex-mZPMiNXh.js} +0 -0
  500. /package/dist/{useResizeObserver-BhgdhOIj.js → useResizeObserver-Bpoi7tRE.js} +0 -0
  501. /package/dist/{useResolveTokenColor-Dvn2RZJW.js → useResolveTokenColor-vAylyR0x.js} +0 -0
  502. /package/dist/{useScrollProgress-Dlvx-L3v.js → useScrollProgress-D7bYU2RK.js} +0 -0
  503. /package/dist/{useSortable-muI29agz.js → useSortable-DHjtZSEd.js} +0 -0
  504. /package/dist/{useTextHighlight-DmRYkOBx.js → useTextHighlight-CWEi25hf.js} +0 -0
  505. /package/dist/{useTimer-Dzarvzuk.js → useTimer-BHJOKr35.js} +0 -0
  506. /package/dist/{useUserInvalidAria-B2h6jAM_.js → useUserInvalidAria-y5namzeE.js} +0 -0
  507. /package/dist/{useViewportReady-B40FK4Pa.js → useViewportReady-anbac3m6.js} +0 -0
package/dist/motion.js CHANGED
@@ -1,50 +1,152 @@
1
- import { n as e, t } from "./useSpringMount-CI2jOstM.js";
2
- import { n, t as r } from "./springPresets--YdWTHtm.js";
3
- import { n as i, t as a } from "./constants-CS75AWHG.js";
4
- import { t as o } from "./useAnimatedNumber-C5I3wWd8.js";
5
- import { computed as s, onBeforeUnmount as c, onScopeDispose as l, ref as u, shallowRef as d } from "vue";
6
- import { AnimationOptionError as f, Draggable as p, ElementMorph as m, ManualTimeline as h, NumericAnimation as g, NumericAnimation as _, RAFPlayback as v, ScrollTimeline as y, Sequence as b, SmoothProgress as x, SpringProgress as S, Timeline as C, UnknownEasingError as w, createNativeTimeline as T, decay as E, decayRest as D, drag as O, flip as k, flipShared as A, loadAnimationEngine as j, resolveEasing as M, springLinearStops as N, springTimingFunction as P, stagger as F, toEasing as I } from "@mkbabb/keyframes.js";
7
- //#region src/composables/motion/useSpringPress.ts
8
- function L(t = {}) {
9
- let n = u(0), r = e(n, {
10
- response: t.response ?? .25,
11
- dampingFraction: t.dampingFraction ?? .7,
12
- initial: t.initial ?? 0,
13
- initialVelocity: t.initialVelocity,
14
- settleThreshold: t.settleThreshold,
15
- velocitySettleThreshold: t.velocitySettleThreshold,
16
- respectReducedMotion: t.respectReducedMotion,
17
- onValue: t.onValue
18
- });
19
- function i() {
20
- n.value = 1;
21
- }
22
- function a() {
23
- n.value = 0;
24
- }
25
- return {
26
- ...r,
27
- press: i,
28
- release: a,
29
- handlers: {
30
- onPointerdown: i,
31
- onPointerup: a,
32
- onPointercancel: a,
33
- onPointerleave: a
1
+ import { t as e } from "./useSpring-C0jyvEJB.js";
2
+ import { t } from "./useSpringPress-BsqPr7FJ.js";
3
+ import { t as n } from "./useLiquidPress-kfb4KX79.js";
4
+ import { n as r, t as i } from "./springPresets-CFQGQfdl.js";
5
+ import { t as a } from "./useSpringMount-q1amq1SJ.js";
6
+ import { n as o, t as s } from "./constants-BPOqYJAm.js";
7
+ import { t as c } from "./useDragMorph-DgxnsVJz.js";
8
+ import { t as l } from "./useAnimatedNumber-BfUq2bUM.js";
9
+ import { computed as u, onBeforeUnmount as d, onScopeDispose as f, ref as p, shallowRef as m } from "vue";
10
+ import { AnimationOptionError as h, Draggable as g, ElementMorph as _, ElementMorph as v, ManualTimeline as y, NumericAnimation as b, NumericAnimation as x, RAFPlayback as S, ScrollTimeline as C, Sequence as w, SmoothProgress as T, SpringProgress as E, Timeline as D, UnknownEasingError as O, createNativeTimeline as k, decay as A, decayRest as j, drag as M, flip as N, flipShared as P, loadAnimationEngine as F, resolveEasing as I, springLinearStops as L, springTimingFunction as R, springTimingFunction as z, stagger as B, toEasing as V } from "@mkbabb/keyframes.js";
11
+ //#region src/composables/motion/useLiquidReveal.ts
12
+ function H() {
13
+ return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
14
+ }
15
+ function U(e, t = {}) {
16
+ let n = t.respectReducedMotion !== !1, i = t.blur ?? 4, { response: a, dampingFraction: o } = r(t.preset ?? "snappy"), s = z({
17
+ response: a,
18
+ dampingFraction: o
19
+ }), c = a * 4 * 1e3, l = null, u = 0, d = 0;
20
+ function p(e) {
21
+ e.style.transform = "", e.style.transformOrigin = "", e.style.opacity = "", e.style.filter = "";
22
+ }
23
+ function m() {
24
+ u && typeof cancelAnimationFrame == "function" && cancelAnimationFrame(u), u = 0;
25
+ }
26
+ function h() {
27
+ let r = e.value;
28
+ if (!r) return;
29
+ m();
30
+ let a = r.getBoundingClientRect(), o = t.trigger?.value ?? null, f = o ? o.getBoundingClientRect() : {
31
+ x: a.x + a.width * .04,
32
+ y: a.y + a.height * .04,
33
+ width: a.width * .92,
34
+ height: a.height * .92
35
+ }, h = `${f.x - a.x}px ${f.y - a.y}px`;
36
+ if (n && H()) {
37
+ p(r), r.style.opacity = "1";
38
+ return;
39
+ }
40
+ l = new v({
41
+ x: a.x,
42
+ y: a.y,
43
+ width: a.width,
44
+ height: a.height
45
+ }, {
46
+ x: f.x,
47
+ y: f.y,
48
+ width: f.width,
49
+ height: f.height
50
+ }, { transformOrigin: h }), d = 0;
51
+ let g = (t) => {
52
+ if (!l || !e.value) return;
53
+ d === 0 && (d = t);
54
+ let n = Math.min(1, (t - d) / c), a = s.fn(n), o = 1 - a;
55
+ l.apply(r, o), r.style.opacity = String(Math.min(1, Math.max(0, a)));
56
+ let f = i * o;
57
+ r.style.filter = `blur(${f.toFixed(2)}px)`, n < 1 && typeof requestAnimationFrame == "function" ? u = requestAnimationFrame(g) : (p(r), r.style.opacity = "1", l = null, u = 0);
58
+ };
59
+ typeof requestAnimationFrame == "function" ? u = requestAnimationFrame(g) : (p(r), r.style.opacity = "1");
60
+ }
61
+ function g() {
62
+ m(), l = null;
63
+ let t = e.value;
64
+ t && p(t);
65
+ }
66
+ return f(() => {
67
+ m(), l = null;
68
+ }), {
69
+ reveal: h,
70
+ conceal: g
71
+ };
72
+ }
73
+ //#endregion
74
+ //#region src/composables/motion/useDockCtaReceive.ts
75
+ function W() {
76
+ return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
77
+ }
78
+ function G(e, t) {
79
+ let n = t.respectReducedMotion !== !1, i = t.blur ?? 4, { response: a, dampingFraction: o } = r(t.preset ?? "snappy"), s = z({
80
+ response: a,
81
+ dampingFraction: o
82
+ }), c = a * 4 * 1e3, l = null, u = 0, d = 0;
83
+ function p(e) {
84
+ e.style.transform = "", e.style.transformOrigin = "", e.style.opacity = "", e.style.filter = "";
85
+ }
86
+ function m() {
87
+ u && typeof cancelAnimationFrame == "function" && cancelAnimationFrame(u), u = 0;
88
+ }
89
+ function h() {
90
+ t.onReceived?.();
91
+ }
92
+ function g() {
93
+ let r = e.value;
94
+ if (!r) return;
95
+ m();
96
+ let a = r.getBoundingClientRect(), o = t.dockControl.value;
97
+ if (!o) {
98
+ r.style.opacity = "0", h();
99
+ return;
100
+ }
101
+ let f = o.getBoundingClientRect();
102
+ if (n && W()) {
103
+ p(r), r.style.opacity = "0", h();
104
+ return;
34
105
  }
106
+ l = new v({
107
+ x: a.x,
108
+ y: a.y,
109
+ width: a.width,
110
+ height: a.height
111
+ }, {
112
+ x: f.x,
113
+ y: f.y,
114
+ width: f.width,
115
+ height: f.height
116
+ }, { transformOrigin: "center center" }), d = 0;
117
+ let g = (t) => {
118
+ if (!l || !e.value) return;
119
+ d === 0 && (d = t);
120
+ let n = Math.min(1, (t - d) / c), a = s.fn(n);
121
+ l.apply(r, a), r.style.opacity = String(Math.min(1, Math.max(0, 1 - a)));
122
+ let o = i * Math.min(1, Math.max(0, a));
123
+ r.style.filter = `blur(${o.toFixed(2)}px)`, n < 1 && typeof requestAnimationFrame == "function" ? u = requestAnimationFrame(g) : (r.style.opacity = "0", l = null, u = 0, h());
124
+ };
125
+ typeof requestAnimationFrame == "function" ? u = requestAnimationFrame(g) : (p(r), r.style.opacity = "0", h());
126
+ }
127
+ function _() {
128
+ m(), l = null;
129
+ let t = e.value;
130
+ t && p(t);
131
+ }
132
+ return f(() => {
133
+ m(), l = null;
134
+ }), {
135
+ receive: g,
136
+ reset: _
35
137
  };
36
138
  }
37
139
  //#endregion
38
140
  //#region src/composables/motion/useNumericTransition.ts
39
- function R(e) {
40
- let t = u(0), n = u(!1), { from: r, to: i, duration: a, timingFunction: o, onFrame: s } = e, l = d(new _([r, i], {
141
+ function K(e) {
142
+ let t = p(0), n = p(!1), { from: r, to: i, duration: a, timingFunction: o, onFrame: s } = e, c = m(new x([r, i], {
41
143
  duration: a,
42
144
  timingFunction: o
43
145
  }));
44
- async function f() {
45
- n.value && l.value.stop(), n.value = !0, t.value = 0;
146
+ async function l() {
147
+ n.value && c.value.stop(), n.value = !0, t.value = 0;
46
148
  try {
47
- await l.value.play((e) => {
149
+ await c.value.play((e) => {
48
150
  s?.(e);
49
151
  let n = Object.keys(r);
50
152
  if (n.length > 0) {
@@ -59,34 +161,34 @@ function R(e) {
59
161
  n.value = !1;
60
162
  }
61
163
  }
62
- function p() {
63
- l.value.stop(), n.value = !1;
164
+ function u() {
165
+ c.value.stop(), n.value = !1;
64
166
  }
65
- return c(() => {
66
- p();
167
+ return d(() => {
168
+ u();
67
169
  }), {
68
- start: f,
69
- stop: p,
170
+ start: l,
171
+ stop: u,
70
172
  progress: t,
71
173
  playing: n
72
174
  };
73
175
  }
74
176
  //#endregion
75
177
  //#region src/composables/motion/useAnimatedNumberMap.ts
76
- function z(e) {
178
+ function q(e) {
77
179
  let { keys: t, source: n, ...r } = e, i = {};
78
180
  for (let e of t) {
79
- let t = n(e), { current: a } = o(() => t.value, r);
80
- i[e] = s(() => t.value === null ? null : a.value);
181
+ let t = n(e), { current: a } = l(() => t.value, r);
182
+ i[e] = u(() => t.value === null ? null : a.value);
81
183
  }
82
184
  return i;
83
185
  }
84
186
  //#endregion
85
187
  //#region src/composables/motion/useCountup.ts
86
- function B() {
188
+ function J() {
87
189
  return typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches;
88
190
  }
89
- function V(e, t) {
191
+ function Y(e, t) {
90
192
  let { easeFn: n, skip: r } = t, i = /* @__PURE__ */ new Map();
91
193
  function a(e) {
92
194
  let t = i.get(e);
@@ -95,12 +197,12 @@ function V(e, t) {
95
197
  function o(e) {
96
198
  e.querySelectorAll("[data-countup]").forEach((e) => {
97
199
  let t = parseFloat(e.getAttribute("data-countup") ?? "0") || 0, r = parseFloat(e.getAttribute("data-countup-dur") ?? "1200"), o = parseFloat(e.getAttribute("data-countup-delay") ?? "0");
98
- if (a(e), B()) {
200
+ if (a(e), J()) {
99
201
  e.textContent = String(t);
100
202
  return;
101
203
  }
102
204
  e.textContent = "0";
103
- let s = new _([{ v: 0 }, { v: t }], {
205
+ let s = new x([{ v: 0 }, { v: t }], {
104
206
  duration: r,
105
207
  timingFunction: n
106
208
  });
@@ -130,14 +232,14 @@ function V(e, t) {
130
232
  a(e), e.textContent = e.getAttribute("data-countup") ?? e.textContent;
131
233
  });
132
234
  }
133
- function u() {
235
+ function l() {
134
236
  for (let e of [...i.keys()]) a(e);
135
237
  }
136
- return l(u), {
238
+ return f(l), {
137
239
  runActive: s,
138
240
  settle: c,
139
- cancel: u
241
+ cancel: l
140
242
  };
141
243
  }
142
244
  //#endregion
143
- export { f as AnimationOptionError, a as DAMPING, p as Draggable, m as ElementMorph, h as ManualTimeline, g as NumericAnimation, v as RAFPlayback, i as SNAP_THRESHOLD, r as SPRING_PRESETS, y as ScrollTimeline, b as Sequence, x as SmoothProgress, S as SpringProgress, C as Timeline, w as UnknownEasingError, T as createNativeTimeline, E as decay, D as decayRest, O as drag, k as flip, A as flipShared, j as loadAnimationEngine, M as resolveEasing, N as springLinearStops, n as springPreset, P as springTimingFunction, F as stagger, I as toEasing, o as useAnimatedNumber, z as useAnimatedNumberMap, V as useCountup, R as useNumericTransition, e as useSpring, t as useSpringMount, L as useSpringPress };
245
+ export { h as AnimationOptionError, s as DAMPING, g as Draggable, _ as ElementMorph, y as ManualTimeline, b as NumericAnimation, S as RAFPlayback, o as SNAP_THRESHOLD, i as SPRING_PRESETS, C as ScrollTimeline, w as Sequence, T as SmoothProgress, E as SpringProgress, D as Timeline, O as UnknownEasingError, k as createNativeTimeline, A as decay, j as decayRest, M as drag, N as flip, P as flipShared, F as loadAnimationEngine, I as resolveEasing, L as springLinearStops, r as springPreset, R as springTimingFunction, B as stagger, V as toEasing, l as useAnimatedNumber, q as useAnimatedNumberMap, Y as useCountup, G as useDockCtaReceive, c as useDragMorph, n as useLiquidPress, U as useLiquidReveal, K as useNumericTransition, e as useSpring, a as useSpringMount, t as useSpringPress };
@@ -1,2 +1,2 @@
1
- import { t as e } from "./Notification-DdwNxIrI.js";
1
+ import { t as e } from "./Notification-VUwexFUf.js";
2
2
  export { e as Notification };
@@ -1,2 +1,2 @@
1
- import { a as e, i as t, n, r, t as i } from "./NumberFieldContent-CqaN-SvN.js";
1
+ import { a as e, i as t, n, r, t as i } from "./NumberFieldContent-Cq7EzX-U.js";
2
2
  export { e as NumberField, i as NumberFieldContent, n as NumberFieldDecrement, r as NumberFieldIncrement, t as NumberFieldInput };
@@ -0,0 +1 @@
1
+ export * from "./components/custom/pager-dots";
@@ -0,0 +1,91 @@
1
+ import { t as e } from "./cn-DJXf4yaB.js";
2
+ import { t } from "./_plugin-vue_export-helper-C1je1s0u.js";
3
+ import { Fragment as n, computed as r, createElementBlock as i, defineComponent as a, mergeModels as o, nextTick as s, normalizeClass as c, openBlock as l, ref as u, renderList as d, unref as f, useModel as p, watch as m } from "vue";
4
+ //#region src/components/custom/pager-dots/PagerDots.vue?vue&type=script&setup=true&lang.ts
5
+ var h = [
6
+ "aria-label",
7
+ "aria-orientation",
8
+ "data-orientation"
9
+ ], g = [
10
+ "aria-selected",
11
+ "aria-label",
12
+ "data-active",
13
+ "data-edge",
14
+ "onClick"
15
+ ], _ = /* @__PURE__ */ t(/* @__PURE__ */ a({
16
+ __name: "PagerDots",
17
+ props: /* @__PURE__ */ o({
18
+ count: {},
19
+ orientation: { default: "horizontal" },
20
+ windowFit: {},
21
+ ring: {
22
+ type: Boolean,
23
+ default: !0
24
+ },
25
+ ariaLabel: { default: "Pager" },
26
+ class: { type: [
27
+ Boolean,
28
+ null,
29
+ String,
30
+ Object,
31
+ Array
32
+ ] }
33
+ }, {
34
+ active: { default: 0 },
35
+ activeModifiers: {}
36
+ }),
37
+ emits: /* @__PURE__ */ o(["select"], ["update:active"]),
38
+ setup(t, { emit: a }) {
39
+ let o = t, _ = a, v = p(t, "active"), y = u(null), b = /* @__PURE__ */ new Map();
40
+ function x(e, t) {
41
+ t ? b.set(e, t) : b.delete(e);
42
+ }
43
+ function S(e, t, n) {
44
+ let r = Math.max(1, Math.min(n, e)), i = e <= r ? 0 : Math.max(0, Math.min(t - Math.floor(r / 2), e - r)), a = Math.min(r, e), o = Array.from({ length: a }, (e, t) => i + t);
45
+ return {
46
+ shown: o,
47
+ clippedStart: o.length > 0 && o[0] > 0,
48
+ clippedEnd: o.length > 0 && o[o.length - 1] < e - 1
49
+ };
50
+ }
51
+ let C = r(() => o.windowFit && o.windowFit > 0 ? S(o.count, v.value, o.windowFit) : {
52
+ shown: Array.from({ length: Math.max(0, o.count) }, (e, t) => t),
53
+ clippedStart: !1,
54
+ clippedEnd: !1
55
+ }), w = r(() => C.value.shown);
56
+ m(w, (e) => {
57
+ let t = y.value;
58
+ if (!t || !t.contains(document.activeElement)) return;
59
+ let n = document.activeElement;
60
+ e.some((e) => b.get(e) === n) || s(() => b.get(v.value)?.focus());
61
+ });
62
+ function T(e) {
63
+ v.value = e, _("select", e);
64
+ }
65
+ return (r, a) => (l(), i("div", {
66
+ ref_key: "rootEl",
67
+ ref: y,
68
+ "data-slot": "pager-dots",
69
+ role: "tablist",
70
+ "aria-label": t.ariaLabel,
71
+ "aria-orientation": t.orientation,
72
+ "data-orientation": t.orientation,
73
+ class: c(f(e)("pager-dots inline-flex items-center justify-center gap-1.5", t.ring && "glass-pager-ring", t.orientation === "vertical" && "flex-col", o.class))
74
+ }, [(l(!0), i(n, null, d(w.value, (e, t) => (l(), i("button", {
75
+ key: e,
76
+ ref_for: !0,
77
+ ref: (t) => x(e, t),
78
+ type: "button",
79
+ role: "tab",
80
+ "aria-selected": e === v.value,
81
+ "aria-label": `Go to slide ${e + 1}`,
82
+ "data-active": e === v.value ? "" : void 0,
83
+ "data-edge": t === 0 && C.value.clippedStart || t === w.value.length - 1 && C.value.clippedEnd ? "" : void 0,
84
+ "data-slot": "pager-dot",
85
+ class: "pager-dot focus-ring tap-squish",
86
+ onClick: (t) => T(e)
87
+ }, null, 8, g))), 128))], 10, h));
88
+ }
89
+ }), [["__scopeId", "data-v-fab90e4f"]]);
90
+ //#endregion
91
+ export { _ as PagerDots };
@@ -1,2 +1,2 @@
1
- import { t as e } from "./PaperBackdrop-DIXTtVq6.js";
1
+ import { t as e } from "./PaperBackdrop-Vf3tlpvd.js";
2
2
  export { e as PaperBackdrop };
package/dist/popover.js CHANGED
@@ -1,2 +1,2 @@
1
- import { n as e, r as t, t as n } from "./PopoverContent-BYwt2-4x.js";
1
+ import { n as e, r as t, t as n } from "./PopoverContent-DL7E6vJP.js";
2
2
  export { t as Popover, n as PopoverContent, e as PopoverTrigger };
@@ -66,6 +66,19 @@ var e = 6, t = 8, n = {
66
66
  saturation: 1,
67
67
  paperGrain: .008,
68
68
  alpha: 1
69
+ }, r = {
70
+ medium: "crayon",
71
+ strokeOrient: "tensor",
72
+ granulation: .3,
73
+ canvasGrain: .5,
74
+ strokeAmount: .35,
75
+ strokeAnisotropy: .5,
76
+ strokeLayers: 1,
77
+ impasto: 0,
78
+ brokenColor: 0,
79
+ wetEdge: 0,
80
+ saturation: .92,
81
+ paperGrain: .008
69
82
  };
70
83
  //#endregion
71
- export { e as n, t as r, n as t };
84
+ export { r as i, e as n, t as r, n as t };
@@ -1,158 +1,4 @@
1
1
  //#region src/composables/glass/webgl/shaders/procedural-color.glsl.ts
2
2
  var e = "\nfloat srgbToLinearCh(float c) {\n return c <= 0.04045 ? c / 12.92 : pow((c + 0.055) / 1.055, 2.4);\n}\nvec3 srgbToLinear(vec3 c) {\n return vec3(srgbToLinearCh(c.r), srgbToLinearCh(c.g), srgbToLinearCh(c.b));\n}\n\nfloat linearToSrgbCh(float c) {\n return c <= 0.0031308 ? c * 12.92 : 1.055 * pow(c, 1.0 / 2.4) - 0.055;\n}\nvec3 linearToSrgb(vec3 c) {\n return vec3(linearToSrgbCh(c.r), linearToSrgbCh(c.g), linearToSrgbCh(c.b));\n}", t = "const mat2 FBM_ROT = mat2(0.8, 0.6, -0.6, 0.8);", n = "\n// value.js LINEAR_SRGB_TO_LMS (constants.ts), row-major; written here as GLSL\n// columns (= the transpose) so mat3 * vec3 evaluates the row-major M·v.\nconst mat3 LINEAR_SRGB_TO_LMS = mat3(\n 0.4122214708, 0.2119034982, 0.0883024619,\n 0.5363325363, 0.6806995451, 0.2817188376,\n 0.0514459929, 0.1073969566, 0.6299787005\n);\n\n// value.js srgbToOKLab's INLINE LMS→OKLab coefficients (gamut.ts lines 295-297 —\n// these differ at the ~1e-9 digit from LMS_TO_OKLAB_MATRIX; use the inline ones to\n// mirror the exact value.js path), row-major → GLSL columns.\nconst mat3 LMS_TO_OKLAB = mat3(\n 0.2104542553, 1.9779984951, 0.0259040371,\n 0.7936177850, -2.4285922050, 0.7827717662,\n -0.0040720468, 0.4505937099, -0.8086757660\n);\n\n// value.js OKLAB_TO_LMS_COEFF (constants.ts), row-major → GLSL columns. Rows:\n// l = [1, 0.3963377774, 0.2158037573], m = [1, -0.1055613458, -0.0638541728],\n// s = [1, -0.0894841775, -1.2914855480].\nconst mat3 OKLAB_TO_LMS = mat3(\n 1.0, 1.0, 1.0,\n 0.3963377774, -0.1055613458, -0.0894841775,\n 0.2158037573, -0.0638541728, -1.2914855480\n);\n\n// value.js LMS_TO_LINEAR_SRGB (constants.ts), row-major → GLSL columns.\nconst mat3 LMS_TO_LINEAR_SRGB = mat3(\n 4.0767416621, -1.2684380046, -0.0041960863,\n -3.3077115913, 2.6097574011, -0.7034186147,\n 0.2309699292, -0.3413193965, 1.7076147010\n);\n\n// Gamma sRGB → raw OKLab (L, a, b). Mirrors value.js srgbToOKLab.\nvec3 srgbToOklab(vec3 c) {\n vec3 lin = srgbToLinear(c);\n vec3 lms = LINEAR_SRGB_TO_LMS * lin;\n vec3 lmsCbrt = sign(lms) * pow(abs(lms), vec3(1.0 / 3.0));\n return LMS_TO_OKLAB * lmsCbrt;\n}\n\n// Raw OKLab (L, a, b) → linear sRGB. Mirrors value.js oklabToLinearSRGB.\nvec3 oklabToLinearSrgb(vec3 lab) {\n vec3 lms_ = OKLAB_TO_LMS * lab;\n vec3 lms = lms_ * lms_ * lms_;\n return LMS_TO_LINEAR_SRGB * lms;\n}\n\n// OKLab → OKLCh: H in RADIANS. Mirrors value.js rawOklabToOklch (which returns\n// degrees; we stay in radians and only fold to [0, 2pi)).\nvec3 oklabToOklch(vec3 lab) {\n float C = length(lab.yz);\n float H = atan(lab.z, lab.y);\n if (H < 0.0) H += 2.0 * PI;\n return vec3(lab.x, C, H);\n}\n\n// OKLCh (H radians) → OKLab. Mirrors value.js rawOklchToOklab.\nvec3 oklchToOklab(vec3 lch) {\n return vec3(lch.x, lch.y * cos(lch.z), lch.y * sin(lch.z));\n}", r = "\n// value.js interpolateHue in the NORMALIZED-TURNS domain (h_rad/TAU → turns, the\n// exact .5/+1.0 branch per method, fract() wrap, *TAU back). A radians-native port\n// (PI thresholds / +TAU wrap) diverges 180° at the antipode. methods: 0 shorter,\n// 1 longer, 2 increasing, 3 decreasing.\nfloat interpolateHueTurns(float h0, float h1, float t, int method) {\n float TAU = 2.0 * PI;\n float a = h0 / TAU;\n float b = h1 / TAU;\n float i = b - a;\n if (method == 0) { // shorter\n if (i > 0.5) a += 1.0; else if (i < -0.5) b += 1.0;\n } else if (method == 1) { // longer\n if (i > 0.0 && i < 0.5) a += 1.0; else if (i > -0.5 && i <= 0.0) b += 1.0;\n } else if (method == 2) { // increasing\n if (i < 0.0) b += 1.0;\n } else { // decreasing\n if (i > 0.0) a += 1.0;\n }\n float r = a + t * (b - a);\n r = fract(r); // (r % 1 + 1) % 1 — fract is non-negative in GLSL\n return r * TAU; // back to radians\n}\n\n// Linear-sRGB endpoint pair → OKLab-rectangular interpolation → linear sRGB. Holds\n// chroma across the ramp (no grey midpoint). The default/shorter ramp path.\nvec3 mixPaletteOklab(vec3 linA, vec3 linB, float t) {\n vec3 labA = LMS_TO_OKLAB * (sign(LINEAR_SRGB_TO_LMS * linA) * pow(abs(LINEAR_SRGB_TO_LMS * linA), vec3(1.0 / 3.0)));\n vec3 labB = LMS_TO_OKLAB * (sign(LINEAR_SRGB_TO_LMS * linB) * pow(abs(LINEAR_SRGB_TO_LMS * linB), vec3(1.0 / 3.0)));\n vec3 lab = mix(labA, labB, t);\n return oklabToLinearSrgb(lab);\n}\n\n// Linear-sRGB endpoint pair → OKLCh interpolation along the huePath arc → linear\n// sRGB. L and C lerp; H walks the chosen arc. The deliberate-rainbow path.\nvec3 mixPaletteOklchArc(vec3 linA, vec3 linB, float t, int method) {\n vec3 labA = LMS_TO_OKLAB * (sign(LINEAR_SRGB_TO_LMS * linA) * pow(abs(LINEAR_SRGB_TO_LMS * linA), vec3(1.0 / 3.0)));\n vec3 labB = LMS_TO_OKLAB * (sign(LINEAR_SRGB_TO_LMS * linB) * pow(abs(LINEAR_SRGB_TO_LMS * linB), vec3(1.0 / 3.0)));\n vec3 lchA = oklabToOklch(labA);\n vec3 lchB = oklabToOklch(labB);\n float L = mix(lchA.x, lchB.x, t);\n float C = mix(lchA.y, lchB.y, t);\n float H = interpolateHueTurns(lchA.z, lchB.z, t, method);\n return oklabToLinearSrgb(oklchToOklab(vec3(L, C, H)));\n}\n\n// The ramp dispatcher aurora's samplePalette splices. tRaw is the raw inter-stop\n// parameter [0,1]; the smoothstep ease + the huePath branch live HERE so the ramp is\n// one source. increasing(2)/decreasing(3) take the OKLCh hue-arc (rainbow sweep);\n// every other method takes the OKLab-rectangular straight line (no hue detour).\nvec3 samplePaletteRamp(vec3 a, vec3 b, float tRaw, int huePath) {\n float t = smoothstep(0.0, 1.0, tRaw);\n if (huePath == 2 || huePath == 3) {\n return mixPaletteOklchArc(a, b, t, huePath);\n }\n return mixPaletteOklab(a, b, t);\n}", i = "\n// Jarzynski PCG2D — uvec2 → uvec2 permuted-congruential hash (JCGT 2020).\nuvec2 pcg2d(uvec2 v) {\n v = v * 1664525u + 1013904223u;\n v.x += v.y * 1664525u;\n v.y += v.x * 1664525u;\n v = v ^ (v >> 16u);\n v.x += v.y * 1664525u;\n v.y += v.x * 1664525u;\n v = v ^ (v >> 16u);\n return v;\n}\n\n// Float→[0,1) scalar hash: bit-reinterpret the lattice coordinate, pcg2d it, take the\n// high word back to [0,1). Integer-bit — no sin() periodicity, no float-fract lattice.\nfloat pcgHash2(vec2 p) {\n uvec2 u = floatBitsToUint(p);\n return float(pcg2d(u).x) * (1.0 / 4294967296.0);\n}\n\n// Integer-lattice gradient: pcg2d the integer cell, fold the hash to an angle, return\n// the unit gradient vector. The gradient basis (not a scalar value) is what makes the\n// noise zero at the nodes (no value-noise plateaus).\nvec2 pcgGrad2(ivec2 cell) {\n uvec2 h = pcg2d(uvec2(cell));\n float ang = float(h.x) * (1.0 / 4294967296.0) * 6.28318530717958647692;\n return vec2(cos(ang), sin(ang));\n}\n\n// 2D SIMPLEX gradient noise (Gustavson skew). The skew transform F2/G2 maps the square\n// lattice onto a simplex (triangular) grid — no axis-aligned directional bias. Each of\n// the three simplex corners contributes grad·offset shaped by a radial (0.5 - r²)⁴\n// falloff. Output is ~[-1, 1]; callers remap to [0,1] via 0.5 + 0.5*gnoise.\nfloat gnoise(vec2 p) {\n const float F2 = 0.36602540378443864676; // (sqrt(3) - 1) / 2\n const float G2 = 0.21132486540518711775; // (3 - sqrt(3)) / 6\n float s = (p.x + p.y) * F2;\n vec2 i = floor(p + s);\n float tt = (i.x + i.y) * G2;\n vec2 x0 = p - (i - tt); // offset from the simplex origin corner\n ivec2 i1 = (x0.x > x0.y) ? ivec2(1, 0) : ivec2(0, 1);\n vec2 x1 = x0 - vec2(i1) + G2;\n vec2 x2 = x0 - 1.0 + 2.0 * G2;\n ivec2 ii = ivec2(i);\n float n = 0.0;\n float t0 = 0.5 - dot(x0, x0);\n if (t0 > 0.0) { t0 *= t0; n += t0 * t0 * dot(pcgGrad2(ii), x0); }\n float t1 = 0.5 - dot(x1, x1);\n if (t1 > 0.0) { t1 *= t1; n += t1 * t1 * dot(pcgGrad2(ii + i1), x1); }\n float t2 = 0.5 - dot(x2, x2);\n if (t2 > 0.0) { t2 *= t2; n += t2 * t2 * dot(pcgGrad2(ii + ivec2(1, 1)), x2); }\n return 70.0 * n; // normalize to ~[-1, 1]\n}";
3
- function a(e, t, n) {
4
- return Math.max(t, Math.min(n, e));
5
- }
6
- function o() {
7
- let e = typeof window < "u" && window.devicePixelRatio || 1;
8
- return Math.min(e, 2);
9
- }
10
3
  //#endregion
11
- //#region src/composables/glass/webgl/createCanvasLifecycle.ts
12
- function s(e) {
13
- let { canvas: t, buildContext: n, resize: r } = e, i = e.respectReducedMotion ?? e.mode !== "capture", a = /* @__PURE__ */ new Set();
14
- e.mode === "capture" && a.add("manual");
15
- let o = () => a.size === 0, s = 0, c = typeof performance < "u" ? performance.now() : 0, l = null, u = !1, d = !1, f = i && typeof window < "u" && window.matchMedia ? window.matchMedia("(prefers-reduced-motion: reduce)") : null, p = f?.matches ?? !1;
16
- function m() {
17
- if (!o() || !l) return;
18
- let e = (performance.now() - c) / 1e3, t = l.time ? l.time(e) : e;
19
- l.frame(t), s = !p && l.shouldContinue() ? requestAnimationFrame(m) : 0;
20
- }
21
- function h() {
22
- u && o() && !s && l && (s = requestAnimationFrame(m));
23
- }
24
- function g() {
25
- let e = f?.matches ?? !1;
26
- e !== p && (p = e, e || (c = performance.now()), h());
27
- }
28
- f?.addEventListener("change", g);
29
- function _(e = "manual") {
30
- let t = o();
31
- a.add(e), t && !o() && (cancelAnimationFrame(s), s = 0);
32
- }
33
- function v(e = "manual") {
34
- let t = !o();
35
- a.delete(e), t && o() && u && l && (c = performance.now() - 1e3, r(), m());
36
- }
37
- let y = typeof document < "u";
38
- function b() {
39
- document.hidden ? _("tab-hidden") : v("tab-hidden");
40
- }
41
- y && document.addEventListener("visibilitychange", b), y && document.hidden && a.add("tab-hidden");
42
- let x = null;
43
- function S(e) {
44
- e.skipped ? _("off-screen") : v("off-screen");
45
- }
46
- function C() {
47
- if (x) return;
48
- let e = t.parentElement;
49
- e && (x = e, e.addEventListener("contentvisibilityautostatechange", S));
50
- }
51
- function w() {
52
- x?.removeEventListener("contentvisibilityautostatechange", S), x = null;
53
- }
54
- function T() {
55
- l = n(), r();
56
- }
57
- function E() {
58
- u || d || (e.bindContextEvents?.(() => {
59
- d || (T(), o() && h());
60
- }, () => {
61
- l = null, cancelAnimationFrame(s), s = 0;
62
- }), T(), C(), u = !0, c = performance.now(), o() && (s = requestAnimationFrame(m)));
63
- }
64
- function D(e) {
65
- u || E(), l?.frame(e);
66
- }
67
- function O() {
68
- d = !0, cancelAnimationFrame(s), s = 0, y && document.removeEventListener("visibilitychange", b), f?.removeEventListener("change", g), w(), e.unbindContextEvents?.(), l?.teardown?.(), l = null, a.clear();
69
- }
70
- return e.mode === "capture" && E(), {
71
- arm: E,
72
- suspend: _,
73
- resume: v,
74
- wake: h,
75
- renderAt: D,
76
- dispose: O,
77
- get armed() {
78
- return u;
79
- },
80
- get disposed() {
81
- return d;
82
- },
83
- get running() {
84
- return o();
85
- },
86
- get reducedMotion() {
87
- return p;
88
- }
89
- };
90
- }
91
- //#endregion
92
- //#region src/composables/glass/webgl/useWebGLCanvas.ts
93
- function c(e, t) {
94
- let { setup: n, contextAttrs: r } = t, i = null, a = null, o = null;
95
- function c() {
96
- let t = e.getContext("webgl2", r ?? void 0);
97
- if (!t) throw Error("[useWebGLCanvas] WebGL2 unavailable");
98
- return i = t, o = n(i), a || (a = new ResizeObserver(() => o?.resize()), a.observe(e)), {
99
- frame: o.frame,
100
- shouldContinue: o.shouldContinue,
101
- time: o.time,
102
- teardown: () => {
103
- o?.teardown?.(), i?.getExtension("WEBGL_lose_context")?.loseContext(), a?.disconnect(), a = null, i = null, o = null;
104
- }
105
- };
106
- }
107
- let l = null, u = null;
108
- function d(e) {
109
- e.preventDefault(), i = null, o = null, u?.();
110
- }
111
- let f = s({
112
- canvas: e,
113
- mode: t.mode,
114
- respectReducedMotion: t.respectReducedMotion,
115
- buildContext: c,
116
- resize: () => o?.resize(),
117
- bindContextEvents: (t, n) => {
118
- l = t, u = n, e.addEventListener("webglcontextlost", d, !1), e.addEventListener("webglcontextrestored", l, !1);
119
- },
120
- unbindContextEvents: () => {
121
- e.removeEventListener("webglcontextlost", d, !1), l && e.removeEventListener("webglcontextrestored", l, !1);
122
- }
123
- });
124
- return {
125
- arm: f.arm,
126
- suspend: f.suspend,
127
- resume: f.resume,
128
- wake: f.wake,
129
- renderAt: f.renderAt,
130
- dispose: f.dispose,
131
- get gl() {
132
- return i;
133
- },
134
- get reducedMotion() {
135
- return f.reducedMotion;
136
- }
137
- };
138
- }
139
- //#endregion
140
- //#region src/composables/glass/webgl/compile.ts
141
- function l(e, t, n, r = "[glass-ui:webgl]") {
142
- let i = e.createShader(t);
143
- if (e.shaderSource(i, n), e.compileShader(i), !e.getShaderParameter(i, e.COMPILE_STATUS)) {
144
- let t = e.getShaderInfoLog(i) ?? "unknown";
145
- throw e.deleteShader(i), Error(`${r} shader compile failed:\n${t}`);
146
- }
147
- return i;
148
- }
149
- function u(e, t, n, r = "[glass-ui:webgl]") {
150
- let i = e.createProgram();
151
- if (e.attachShader(i, t), e.attachShader(i, n), e.linkProgram(i), !e.getProgramParameter(i, e.LINK_STATUS)) {
152
- let t = e.getProgramInfoLog(i) ?? "unknown";
153
- throw e.deleteProgram(i), Error(`${r} program link failed:\n${t}`);
154
- }
155
- return i;
156
- }
157
- //#endregion
158
- export { o as a, n as c, a as i, r as l, u as n, t as o, c as r, e as s, l as t, i as u };
4
+ export { i as a, r as i, e as n, n as r, t };