@mkbabb/glass-ui 3.1.1 → 3.3.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 (337) hide show
  1. package/dist/{CardFooter-CSGcJkqa.js → CardFooter-C390imy7.js} +3 -3
  2. package/dist/{CollapsibleContent-CVMOcYlV.js → CollapsibleContent-cauTbZEM.js} +1 -1
  3. package/dist/{CommandShortcut-DWT19a2Y.js → CommandShortcut-BiVyqipe.js} +7 -6
  4. package/dist/{ContextMenuSubContent-gAFxJ-qi.js → ContextMenuSubContent-DrWkXKQP.js} +4 -4
  5. package/dist/DataTable-FfkaAg2z.js +465 -0
  6. package/dist/DialogContent-IQ8_BRrC.js +100 -0
  7. package/dist/{DialogFooter-ClrNEOVU.js → DialogFooter-Er0wA3K6.js} +2 -2
  8. package/dist/{DiscoGlyph-C3JfMnRV.js → DiscoGlyph-BaZ8OawK.js} +1 -1
  9. package/dist/{GlyphFace-BRS8vUb7.js → GlyphFace-B_7vOmYn.js} +1 -1
  10. package/dist/HoverPopover-DTSYkJtw.js +96 -0
  11. package/dist/{IconTooltip-BkaA7tZ2.js → IconTooltip-BTyYn4mr.js} +1 -1
  12. package/dist/Input-CU9CNKmo.js +52 -0
  13. package/dist/{MetricBadge-DmAihkXd.js → MetricBadge-BlrdbOGN.js} +2 -2
  14. package/dist/{Notification-OqIpADml.js → Notification-DP_ApJLo.js} +3 -3
  15. package/dist/{NumberFieldContent-DTH9gb_N.js → NumberFieldContent-iOTQ5rGO.js} +9 -5
  16. package/dist/{PopoverContent-EiklFrna.js → PopoverContent-B8WtJECb.js} +1 -1
  17. package/dist/Progress-DjM86vfb.js +254 -0
  18. package/dist/{ScrollingText-BFd0i2zJ.js → ScrollingText-P9o_DuMn.js} +2 -2
  19. package/dist/{SelectScrollDownButton-Dth8-wXQ.js → SelectScrollDownButton-BGn3rjs9.js} +12 -11
  20. package/dist/TabsIndicator-DA0x9gPr.js +97 -0
  21. package/dist/{Toaster-Bjlunvq4.js → Toaster-DdhMKfus.js} +1 -1
  22. package/dist/{ToggleGroupItem-OesUouE7.js → ToggleGroupItem-gyXj998A.js} +37 -40
  23. package/dist/UnderlineTabs-Cq_AD03t.js +39 -0
  24. package/dist/animated-digit.js +3 -3
  25. package/dist/api/index.d.ts +2 -0
  26. package/dist/api.js +1 -1
  27. package/dist/aurora.js +471 -320
  28. package/dist/badge.js +1 -1
  29. package/dist/{button-C0aHmBbt.js → button-Ckn3eDfB.js} +27 -22
  30. package/dist/button.js +1 -1
  31. package/dist/card.js +1 -1
  32. package/dist/carousel.js +6 -6
  33. package/dist/{check-dwgetki8.js → check-CdkxGxXJ.js} +1 -1
  34. package/dist/{chevron-down-DILQA1t6.js → chevron-down-pBY8sYfV.js} +1 -1
  35. package/dist/{chevron-right-fS7fal2t.js → chevron-right-BjeKC22V.js} +1 -1
  36. package/dist/{chevron-up-BtYjYQOS.js → chevron-up-DBeNHUm1.js} +1 -1
  37. package/dist/collapsible.js +1 -1
  38. package/dist/color-rkK4RMx2.js +33 -0
  39. package/dist/color.d.ts +1 -0
  40. package/dist/color.js +2 -0
  41. package/dist/command.js +1 -1
  42. package/dist/compile-DVgAxagk.js +106 -0
  43. package/dist/components/custom/animated-digit/AnimatedDigit.vue.d.ts +7 -7
  44. package/dist/components/custom/aurora/Aurora.vue.d.ts +3 -3
  45. package/dist/components/custom/aurora/composables/color.d.ts +42 -16
  46. package/dist/components/custom/aurora/composables/cursorModel.d.ts +45 -0
  47. package/dist/components/custom/aurora/composables/frameLoop.d.ts +30 -0
  48. package/dist/components/custom/aurora/composables/glSetup.d.ts +29 -0
  49. package/dist/components/custom/aurora/composables/runtime.d.ts +45 -35
  50. package/dist/components/custom/aurora/composables/uniformBridge.d.ts +67 -0
  51. package/dist/components/custom/aurora/composables/useAurora.d.ts +14 -1
  52. package/dist/components/custom/aurora/composables/useCursorInteraction.d.ts +1 -1
  53. package/dist/components/custom/aurora/constants/budget.d.ts +50 -0
  54. package/dist/components/custom/aurora/{presets.d.ts → constants/presets.d.ts} +3 -6
  55. package/dist/components/custom/aurora/constants/shaders/aurora.frag.d.ts +1 -0
  56. package/dist/components/custom/aurora/constants/shaders/brush.glsl.d.ts +1 -0
  57. package/dist/components/custom/aurora/constants/shaders/composition.glsl.d.ts +1 -0
  58. package/dist/components/custom/aurora/constants/shaders/flow.glsl.d.ts +1 -0
  59. package/dist/components/custom/aurora/constants/shaders/mediums.glsl.d.ts +2 -0
  60. package/dist/components/custom/aurora/constants/shaders/tonemap.glsl.d.ts +1 -0
  61. package/dist/components/custom/aurora/index.d.ts +4 -3
  62. package/dist/components/custom/configurator/Configurator.vue.d.ts +26 -0
  63. package/dist/components/custom/configurator/ConfiguratorLayer.vue.d.ts +14 -7
  64. package/dist/components/custom/configurator/density.d.ts +3 -8
  65. package/dist/components/custom/configurator/index.d.ts +1 -1
  66. package/dist/components/custom/dock/DockBackgroundToggle.vue.d.ts +46 -0
  67. package/dist/components/custom/dock/DockIconButton.vue.d.ts +15 -4
  68. package/dist/components/custom/dock/DockLayerGroup.vue.d.ts +2 -2
  69. package/dist/components/custom/dock/GlassDock.vue.d.ts +34 -13
  70. package/dist/components/custom/dock/composables/dockContext.d.ts +4 -4
  71. package/dist/components/custom/dock/composables/dockLayerContext.d.ts +13 -6
  72. package/dist/components/custom/dock/composables/useLayerTransition.d.ts +32 -8
  73. package/dist/components/custom/dock/index.d.ts +1 -0
  74. package/dist/components/custom/expandable-container/ExpandableContainer.vue.d.ts +10 -0
  75. package/dist/components/custom/glass-panel/GlassPanel.vue.d.ts +1 -1
  76. package/dist/components/custom/glyph-face/keys.d.ts +3 -29
  77. package/dist/components/custom/goo-blob/GooBlob.vue.d.ts +48 -0
  78. package/dist/components/custom/goo-blob/composables/easing.d.ts +6 -0
  79. package/dist/components/custom/goo-blob/composables/useBlobMood.d.ts +14 -0
  80. package/dist/components/custom/goo-blob/composables/useBlobPointer.d.ts +18 -0
  81. package/dist/components/custom/goo-blob/composables/useBlobSatellites.d.ts +13 -0
  82. package/dist/components/custom/goo-blob/composables/useMetaballRenderer.d.ts +42 -0
  83. package/dist/components/custom/goo-blob/index.d.ts +7 -0
  84. package/dist/components/custom/goo-blob/shaders/metaball.frag.d.ts +1 -0
  85. package/dist/components/custom/goo-blob/shaders/metaball.vert.d.ts +1 -0
  86. package/dist/components/custom/goo-blob/shaders/oklch-perturb.glsl.d.ts +1 -0
  87. package/dist/components/custom/goo-blob/shaders/sdf-body.glsl.d.ts +1 -0
  88. package/dist/components/custom/goo-blob/shaders/watercolor-edges.glsl.d.ts +2 -0
  89. package/dist/components/custom/goo-blob/types.d.ts +77 -0
  90. package/dist/components/custom/hover-popover/HoverPopover.vue.d.ts +48 -9
  91. package/dist/components/custom/labeled-field/LabeledField.vue.d.ts +2 -0
  92. package/dist/components/custom/labeled-field/LabeledSelect.vue.d.ts +2 -2
  93. package/dist/components/custom/metric-stack/MetricRow.vue.d.ts +2 -2
  94. package/dist/components/custom/responsive-tabs/ResponsiveTabs.vue.d.ts +13 -7
  95. package/dist/components/custom/search/FuzzySearch.vue.d.ts +1 -1
  96. package/dist/components/custom/search/SearchBar.vue.d.ts +1 -1
  97. package/dist/components/custom/sortable-list/SortableHandle.vue.d.ts +7 -1
  98. package/dist/components/custom/sortable-list/context.d.ts +2 -3
  99. package/dist/components/custom/tabs/BouncyTabs.vue.d.ts +6 -3
  100. package/dist/components/custom/tabs/BouncyToggle.vue.d.ts +7 -3
  101. package/dist/components/custom/tabs/UnderlineTabs.vue.d.ts +6 -3
  102. package/dist/components/custom/tabs/composables/useBouncySlider.d.ts +39 -0
  103. package/dist/components/custom/timeline/ContinuousMarkers.vue.d.ts +49 -0
  104. package/dist/components/custom/timeline/ContinuousRail.vue.d.ts +26 -0
  105. package/dist/components/custom/timeline/ContinuousTimeline.vue.d.ts +4 -4
  106. package/dist/components/custom/typewriter/TypewriterText.vue.d.ts +2 -2
  107. package/dist/components/custom/watercolor-dot/WatercolorDot.vue.d.ts +45 -0
  108. package/dist/components/custom/watercolor-dot/index.d.ts +3 -0
  109. package/dist/components/custom/watercolor-dot/prng.d.ts +5 -0
  110. package/dist/components/custom/watercolor-dot/useWatercolorBlob.d.ts +24 -0
  111. package/dist/components/ui/_shared/menuItemVariants.d.ts +1 -1
  112. package/dist/components/ui/avatar/Avatar.vue.d.ts +1 -1
  113. package/dist/components/ui/avatar/AvatarImage.vue.d.ts +5 -1
  114. package/dist/components/ui/avatar/index.d.ts +1 -1
  115. package/dist/components/ui/badge/index.d.ts +2 -2
  116. package/dist/components/ui/button/Button.vue.d.ts +3 -1
  117. package/dist/components/ui/button/index.d.ts +2 -2
  118. package/dist/components/ui/carousel/CarouselNext.vue.d.ts +2 -2
  119. package/dist/components/ui/carousel/CarouselPrevious.vue.d.ts +2 -2
  120. package/dist/components/ui/combobox/Combobox.vue.d.ts +2 -2
  121. package/dist/components/ui/combobox/ComboboxInput.vue.d.ts +2 -1
  122. package/dist/components/ui/command/Command.vue.d.ts +3 -3
  123. package/dist/components/ui/command/CommandInput.vue.d.ts +2 -1
  124. package/dist/components/ui/data-table/DataTable.vue.d.ts +5 -4
  125. package/dist/components/ui/dialog/DialogContent.vue.d.ts +8 -0
  126. package/dist/components/ui/drawer/Drawer.vue.d.ts +4 -4
  127. package/dist/components/ui/input/Input.vue.d.ts +19 -1
  128. package/dist/components/ui/multi-select/MultiSelect.vue.d.ts +8 -4
  129. package/dist/components/ui/progress/Progress.vue.d.ts +26 -88
  130. package/dist/components/ui/progress/ProgressDefault.vue.d.ts +14 -0
  131. package/dist/components/ui/progress/ProgressGradient.vue.d.ts +25 -0
  132. package/dist/components/ui/progress/ProgressSectioned.vue.d.ts +36 -0
  133. package/dist/components/ui/progress/index.d.ts +5 -2
  134. package/dist/components/ui/progress/useProgressGeometry.d.ts +60 -0
  135. package/dist/components/ui/select/Select.vue.d.ts +2 -2
  136. package/dist/components/ui/select/SelectContent.vue.d.ts +1 -1
  137. package/dist/components/ui/select/SelectTrigger.vue.d.ts +3 -0
  138. package/dist/components/ui/sheet/index.d.ts +1 -1
  139. package/dist/components/ui/slider/index.d.ts +12 -11
  140. package/dist/components/ui/tags-input/TagsInput.vue.d.ts +2 -2
  141. package/dist/components/ui/textarea/Textarea.vue.d.ts +5 -1
  142. package/dist/components/ui/toast/Toast.vue.d.ts +4 -4
  143. package/dist/components/ui/toggle/Toggle.vue.d.ts +1 -1
  144. package/dist/components/ui/toggle/index.d.ts +1 -1
  145. package/dist/components/ui/toggle-group/toggleGroupContext.d.ts +2 -3
  146. package/dist/composables/color/index.d.ts +49 -0
  147. package/dist/composables/context/createContext.d.ts +56 -0
  148. package/dist/composables/context/index.d.ts +1 -0
  149. package/dist/composables/dark/darkModeSyncScript.d.ts +23 -0
  150. package/dist/composables/dark/index.d.ts +3 -0
  151. package/dist/composables/dark/useGlobalDark.d.ts +19 -2
  152. package/dist/composables/dom/index.d.ts +1 -3
  153. package/dist/composables/dom/useClipboard.d.ts +35 -12
  154. package/dist/composables/dom/useDocumentVisibility.d.ts +20 -0
  155. package/dist/composables/dom/useTextHighlight.d.ts +40 -0
  156. package/dist/composables/glass/webgl/compile.d.ts +15 -0
  157. package/dist/composables/glass/webgl/shaders/procedural-color.glsl.d.ts +3 -0
  158. package/dist/composables/glass/webgl/useWebGLCanvas.d.ts +55 -0
  159. package/dist/composables/motion/core/index.d.ts +2 -1
  160. package/dist/composables/motion/index.d.ts +1 -1
  161. package/dist/composables/motion/useCountup.d.ts +29 -0
  162. package/dist/composables/motion/usePrioritizedTask.d.ts +41 -0
  163. package/dist/composables/motion/vReveal.d.ts +2 -0
  164. package/dist/composables/sidebar/useSidebarState.d.ts +2 -2
  165. package/dist/composables/sortable/dragController.d.ts +44 -0
  166. package/dist/composables/sortable/dropResolver.d.ts +34 -0
  167. package/dist/composables/sortable/ghostRenderer.d.ts +44 -0
  168. package/dist/composables/sortable/index.d.ts +1 -1
  169. package/dist/composables/sortable/touchGate.d.ts +26 -0
  170. package/dist/composables/sortable/transitionTiming.d.ts +50 -0
  171. package/dist/composables/sortable/types.d.ts +133 -0
  172. package/dist/composables/sortable/useSortable.d.ts +25 -140
  173. package/dist/configurator.js +1 -1
  174. package/dist/confirm-dialog.js +3 -3
  175. package/dist/context-menu.js +2 -2
  176. package/dist/controls.js +5 -5
  177. package/dist/createContext-DBMGRlx4.js +25 -0
  178. package/dist/dark.d.ts +2 -1
  179. package/dist/dark.js +9 -2
  180. package/dist/data-table.js +1 -1
  181. package/dist/dialog.js +2 -2
  182. package/dist/disco-glyph.js +1 -1
  183. package/dist/dock.js +410 -254
  184. package/dist/dockContext-spUj_-E5.js +9 -0
  185. package/dist/dom.js +6 -5
  186. package/dist/{dropdown-menu-BvRUamNs.js → dropdown-menu-EFjl5iKo.js} +4 -4
  187. package/dist/dropdown-menu.js +1 -1
  188. package/dist/expandable-container.js +28 -22
  189. package/dist/fonts/README.md +21 -0
  190. package/dist/fonts/fraunces/fraunces-latin.woff2 +0 -0
  191. package/dist/forms.js +70 -61
  192. package/dist/glass-carousel.js +59 -52
  193. package/dist/glass-panel.js +2 -2
  194. package/dist/glass-ui.css +1 -1
  195. package/dist/glass-ui.js +159 -254
  196. package/dist/glyph-face.js +2 -2
  197. package/dist/goo-blob.d.ts +1 -0
  198. package/dist/goo-blob.js +538 -0
  199. package/dist/header-ribbon.js +3 -3
  200. package/dist/hover-card.js +1 -1
  201. package/dist/hover-popover.js +1 -1
  202. package/dist/icon-tooltip.js +1 -1
  203. package/dist/index.d.ts +1 -0
  204. package/dist/instrument-chassis.js +1 -1
  205. package/dist/instrument-rail.js +1 -1
  206. package/dist/keyboard.js +1 -1
  207. package/dist/keys-BFoma9vm.js +9 -0
  208. package/dist/label.js +1 -1
  209. package/dist/labeled-field.js +57 -39
  210. package/dist/metric-badge.js +1 -1
  211. package/dist/metric-stack.js +1 -1
  212. package/dist/{minimize-2-LsCJ_eNt.js → minimize-2-BP27-qBY.js} +1 -1
  213. package/dist/motion-core.js +154 -135
  214. package/dist/motion.js +63 -15
  215. package/dist/notification.js +1 -1
  216. package/dist/number-field.js +1 -1
  217. package/dist/paper-backdrop.js +1 -1
  218. package/dist/popover.js +1 -1
  219. package/dist/{presets-a-D93K1S.js → presets-1OhFpaIC.js} +5 -5
  220. package/dist/prng-Bz_1Tydc.js +15 -0
  221. package/dist/progress.js +2 -2
  222. package/dist/pulse.js +1 -1
  223. package/dist/reactive.js +2 -2
  224. package/dist/responsive-tabs.js +38 -32
  225. package/dist/scrolling-text.js +1 -1
  226. package/dist/{search-DBAiUABx.js → search-DBG8qaRs.js} +1 -1
  227. package/dist/search.js +153 -149
  228. package/dist/select.js +3 -3
  229. package/dist/separator.js +1 -1
  230. package/dist/{sheet-CukNDezz.js → sheet-CQYYrkr9.js} +3 -3
  231. package/dist/sheet.js +1 -1
  232. package/dist/{slider-DJvHkTRe.js → slider-BOh8ycfZ.js} +8 -12
  233. package/dist/slider.js +1 -1
  234. package/dist/sortable-list.js +37 -39
  235. package/dist/stacked-icons.js +2 -2
  236. package/dist/styles/animations.css +1 -1
  237. package/dist/styles/cards.css +1 -1
  238. package/dist/styles/components.css +45 -0
  239. package/dist/styles/dock-controls.css +486 -0
  240. package/dist/styles/dock.css +325 -431
  241. package/dist/styles/fonts.css +25 -0
  242. package/dist/styles/glass-specular-track.css +154 -0
  243. package/dist/styles/glass.css +74 -2
  244. package/dist/styles/index.css +25 -2
  245. package/dist/styles/instrument-chassis.css +11 -4
  246. package/dist/styles/theme.css +73 -21
  247. package/dist/styles/tokens.css +282 -140
  248. package/dist/styles/typography.css +14 -8
  249. package/dist/styles/utilities.css +92 -8
  250. package/dist/styles/view-transition.css +10 -4
  251. package/dist/switch.js +1 -1
  252. package/dist/tabs.js +148 -106
  253. package/dist/timeline.js +220 -159
  254. package/dist/toast.js +1 -1
  255. package/dist/toggle-group.js +1 -1
  256. package/dist/tokens.d.ts +1 -1
  257. package/dist/tooltip.js +1 -1
  258. package/dist/typewriter.js +1 -1
  259. package/dist/{useAnimatedNumber-DKQYVB7s.js → useAnimatedNumber-BF6r64lA.js} +1 -1
  260. package/dist/useClipboard-D8vFyRCa.js +97 -0
  261. package/dist/useConfiguratorState-DUtC1jxr.js +276 -0
  262. package/dist/useGlobalDark-CWiaCoEw.js +34 -0
  263. package/dist/useIntersectionPause-DAdVPVp4.js +53 -0
  264. package/dist/useSortable-DnyGXKKY.js +246 -0
  265. package/dist/useTextHighlight-Dmtofpk2.js +72 -0
  266. package/dist/{useTouchGate-D9Zvrzyc.js → useTouchGate-CS5Csc2h.js} +1 -1
  267. package/dist/{useViewTransition-DYIK6Gzb.js → useViewTransition-D4ssvnXZ.js} +5 -3
  268. package/dist/utils/index.d.ts +2 -1
  269. package/dist/utils/platformSupport.d.ts +8 -0
  270. package/dist/utils/prng.d.ts +4 -0
  271. package/dist/vReveal-u2wSG2El.js +35 -0
  272. package/dist/watercolor-dot.d.ts +1 -0
  273. package/dist/watercolor-dot.js +129 -0
  274. package/dist/{x-q7pJa83X.js → x-C4pz9nbD.js} +1 -1
  275. package/package.json +110 -16
  276. package/src/fonts/README.md +21 -0
  277. package/src/fonts/fraunces/fraunces-latin.woff2 +0 -0
  278. package/src/styles/animations.css +1 -1
  279. package/src/styles/cards.css +1 -1
  280. package/src/styles/dock-controls.css +486 -0
  281. package/src/styles/dock.css +325 -431
  282. package/src/styles/fonts.css +25 -0
  283. package/src/styles/glass-specular-track.css +154 -0
  284. package/src/styles/glass.css +74 -2
  285. package/src/styles/index.css +21 -2
  286. package/src/styles/instrument-chassis.css +11 -4
  287. package/src/styles/theme.css +73 -21
  288. package/src/styles/tokens.css +282 -140
  289. package/src/styles/typography.css +14 -8
  290. package/src/styles/utilities.css +92 -8
  291. package/src/styles/view-transition.css +10 -4
  292. package/dist/DataTable-R8-Zidms.js +0 -460
  293. package/dist/DialogContent-2fALDSvc.js +0 -93
  294. package/dist/HoverPopover-CWFCfLx3.js +0 -96
  295. package/dist/Input-DDpFn568.js +0 -30
  296. package/dist/Progress-FApA9fm_.js +0 -126
  297. package/dist/UnderlineTabs-DAWMLmJG.js +0 -37
  298. package/dist/components/custom/aurora/shaders/aurora.frag.d.ts +0 -1
  299. package/dist/composables/dom/useBreakpoint.d.ts +0 -38
  300. package/dist/composables/dom/useIdleReady.d.ts +0 -63
  301. package/dist/composables/dom/useViewportReady.d.ts +0 -87
  302. package/dist/composables/glass/webgl/frostShader.d.ts +0 -27
  303. package/dist/composables/motion/useAnimatedNumberMap.d.ts +0 -29
  304. package/dist/composables/motion/useStagger.d.ts +0 -50
  305. package/dist/dockContext-D5NZCWJs.js +0 -16
  306. package/dist/keys-CaTQS-vx.js +0 -11
  307. package/dist/useConfiguratorState-CtRBE0m_.js +0 -268
  308. package/dist/useGlobalDark-B0WvLJE3.js +0 -24
  309. package/dist/useIdleReady-Cmkhm03v.js +0 -162
  310. package/dist/useIntersectionPause-IY2CwPQb.js +0 -39
  311. package/dist/useSortable-Cq2Y1JLO.js +0 -175
  312. /package/dist/{ContextMenuContent-otjFIu8v.js → ContextMenuContent-De01_83g.js} +0 -0
  313. /package/dist/{HoverCardContent-DaGrgJBO.js → HoverCardContent-ICfIMZX1.js} +0 -0
  314. /package/dist/{InstrumentChassis-CnHTMxds.js → InstrumentChassis-DaHIZCqy.js} +0 -0
  315. /package/dist/{InstrumentRail-C6dEbi8E.js → InstrumentRail-B0qqLFN0.js} +0 -0
  316. /package/dist/{Label-DJty89bp.js → Label-CZk-3nTc.js} +0 -0
  317. /package/dist/{ModalOverlay-iWiAgbYH.js → ModalOverlay-B_CBtqcE.js} +0 -0
  318. /package/dist/{PaperBackdrop-CeZ-w0R0.js → PaperBackdrop-D_YZW47j.js} +0 -0
  319. /package/dist/{SelectGroup-DdR4tdDY.js → SelectGroup-CMdoCjRE.js} +0 -0
  320. /package/dist/{SelectSeparator-CXm_hlqA.js → SelectSeparator-CaJnPF3_.js} +0 -0
  321. /package/dist/{Separator-D8AUMhxY.js → Separator-C2XtAXRp.js} +0 -0
  322. /package/dist/{Switch-Cr1t_F_U.js → Switch-x8n6husW.js} +0 -0
  323. /package/dist/{TooltipProvider-DE78vbEP.js → TooltipProvider-D-JrSqDu.js} +0 -0
  324. /package/dist/{_plugin-vue_export-helper-Dq1MygBL.js → _plugin-vue_export-helper-C1je1s0u.js} +0 -0
  325. /package/dist/{badge-x46my_Fo.js → badge-Cl6JZ1B7.js} +0 -0
  326. /package/dist/components/custom/aurora/{renderMode.d.ts → constants/renderMode.d.ts} +0 -0
  327. /package/dist/components/custom/aurora/{shaders → constants/shaders}/aurora.vert.d.ts +0 -0
  328. /package/dist/{constants-DwBwnG8N.js → constants-DsCdlK9I.js} +0 -0
  329. /package/dist/{createLucideIcon-Bn9a1b70.js → createLucideIcon-DuDoe_ra.js} +0 -0
  330. /package/dist/{menuItemVariants-BsbGNq9C.js → menuItemVariants-C2QlXqT3.js} +0 -0
  331. /package/dist/{useGlassRenderer-Ds-nmrGz.js → useGlassRenderer-Dn3WpfG-.js} +0 -0
  332. /package/dist/{useInterval-DVgGUf_y.js → useInterval-CHVYFpXV.js} +0 -0
  333. /package/dist/{useKeyboardShortcuts-Dpw_RUcB.js → useKeyboardShortcuts-BQfnAHHW.js} +0 -0
  334. /package/dist/{useResizeObserver-Cg9npuM3.js → useResizeObserver-DX-STszm.js} +0 -0
  335. /package/dist/{useSpringMount-Cfk1XK1R.js → useSpringMount-CnizvZGm.js} +0 -0
  336. /package/dist/{useTimer-NAaj9zNq.js → useTimer-DGgoxTXL.js} +0 -0
  337. /package/dist/{useUserInvalidAria-DVu1eTXG.js → useUserInvalidAria-DmvZ_6Dx.js} +0 -0
@@ -1,21 +1,21 @@
1
1
  import { t as e } from "./cn-DJXf4yaB.js";
2
- import { a as t, i as n, o as r, r as i, s as a } from "./SelectScrollDownButton-Dth8-wXQ.js";
3
- import { t as o } from "./SelectGroup-DdR4tdDY.js";
4
- import { n as s } from "./slider-DJvHkTRe.js";
5
- import { t as c } from "./Switch-Cr1t_F_U.js";
6
- import { t as l } from "./IconTooltip-BkaA7tZ2.js";
7
- import { t as u } from "./Input-DDpFn568.js";
2
+ import { a as t, i as n, o as r, r as i, s as a } from "./SelectScrollDownButton-BGn3rjs9.js";
3
+ import { t as o } from "./SelectGroup-CMdoCjRE.js";
4
+ import { n as s } from "./slider-BOh8ycfZ.js";
5
+ import { t as c } from "./Switch-x8n6husW.js";
6
+ import { t as l } from "./Input-CU9CNKmo.js";
7
+ import { t as u } from "./IconTooltip-BTyYn4mr.js";
8
8
  import { Fragment as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as g, createTextVNode as _, createVNode as v, defineComponent as y, normalizeClass as b, openBlock as x, renderList as S, renderSlot as C, toDisplayString as w, unref as T, useId as E, withCtx as D } from "vue";
9
9
  //#region src/components/custom/labeled-field/LabeledField.vue?vue&type=script&setup=true&lang.ts
10
- var O = { class: "labeled-field" }, k = {
10
+ var O = { class: "labeled-field" }, k = ["id", "for"], A = {
11
11
  key: 0,
12
12
  class: "text-destructive",
13
13
  "aria-hidden": "true"
14
- }, A = {
14
+ }, j = ["id", "for"], M = {
15
15
  key: 0,
16
16
  class: "text-destructive",
17
17
  "aria-hidden": "true"
18
- }, j = ["id"], M = /* @__PURE__ */ y({
18
+ }, N = ["id"], P = /* @__PURE__ */ y({
19
19
  __name: "LabeledField",
20
20
  props: {
21
21
  label: {},
@@ -30,28 +30,38 @@ var O = { class: "labeled-field" }, k = {
30
30
  required: { type: Boolean }
31
31
  },
32
32
  setup(t) {
33
- let n = E();
34
- return (r, i) => (x(), m("div", O, [
35
- t.tooltip ? (x(), f(T(l), {
33
+ let n = E(), r = E(), i = E();
34
+ return (a, o) => (x(), m("div", O, [
35
+ t.tooltip ? (x(), f(T(u), {
36
36
  key: 0,
37
37
  text: t.tooltip
38
38
  }, {
39
- default: D(() => [h("label", { class: b(T(e)("labeled-field-label", t.labelClass)) }, [_(w(t.label), 1), t.required ? (x(), m("span", k, " *")) : p("", !0)], 2)]),
39
+ default: D(() => [h("label", {
40
+ id: T(i),
41
+ for: T(r),
42
+ class: b(T(e)("labeled-field-label", t.labelClass))
43
+ }, [_(w(t.label), 1), t.required ? (x(), m("span", A, " *")) : p("", !0)], 10, k)]),
40
44
  _: 1
41
45
  }, 8, ["text"])) : (x(), m("label", {
42
46
  key: 1,
47
+ id: T(i),
48
+ for: T(r),
43
49
  class: b(T(e)("labeled-field-label", t.labelClass))
44
- }, [_(w(t.label), 1), t.required ? (x(), m("span", A, " *")) : p("", !0)], 2)),
45
- C(r.$slots, "default", { errorId: T(n) }),
46
- r.$slots.error ? (x(), m("div", {
50
+ }, [_(w(t.label), 1), t.required ? (x(), m("span", M, " *")) : p("", !0)], 10, j)),
51
+ C(a.$slots, "default", {
52
+ errorId: T(n),
53
+ controlId: T(r),
54
+ labelledBy: T(i)
55
+ }),
56
+ a.$slots.error ? (x(), m("div", {
47
57
  key: 2,
48
58
  id: T(n),
49
59
  class: "labeled-field-error",
50
60
  "aria-live": "polite"
51
- }, [C(r.$slots, "error")], 8, j)) : p("", !0)
61
+ }, [C(a.$slots, "error")], 8, N)) : p("", !0)
52
62
  ]));
53
63
  }
54
- }), N = /* @__PURE__ */ y({
64
+ }), F = /* @__PURE__ */ y({
55
65
  __name: "LabeledInput",
56
66
  props: {
57
67
  modelValue: {},
@@ -65,13 +75,14 @@ var O = { class: "labeled-field" }, k = {
65
75
  emits: ["update:modelValue"],
66
76
  setup(e, { emit: t }) {
67
77
  let n = t;
68
- return (t, r) => (x(), f(M, {
78
+ return (t, r) => (x(), f(P, {
69
79
  label: e.label,
70
80
  tooltip: e.tooltip,
71
81
  "label-class": e.labelClass,
72
82
  required: e.required
73
83
  }, g({
74
- default: D(({ errorId: i }) => [v(T(u), {
84
+ default: D(({ errorId: i, controlId: a }) => [v(T(l), {
85
+ id: a,
75
86
  type: e.type ?? "string",
76
87
  class: b(e.inputClass ?? "fira-code"),
77
88
  "model-value": e.modelValue,
@@ -79,6 +90,7 @@ var O = { class: "labeled-field" }, k = {
79
90
  "aria-errormessage": t.$slots.error ? i : void 0,
80
91
  onChange: r[0] ||= (e) => n("update:modelValue", e.target.value)
81
92
  }, null, 8, [
93
+ "id",
82
94
  "type",
83
95
  "class",
84
96
  "model-value",
@@ -97,10 +109,10 @@ var O = { class: "labeled-field" }, k = {
97
109
  "required"
98
110
  ]));
99
111
  }
100
- }), P = {
112
+ }), I = {
101
113
  key: 0,
102
114
  class: "ml-auto pl-2 text-micro text-muted-foreground whitespace-nowrap"
103
- }, F = /* @__PURE__ */ y({
115
+ }, L = /* @__PURE__ */ y({
104
116
  __name: "LabeledSelect",
105
117
  props: {
106
118
  modelValue: {},
@@ -115,28 +127,31 @@ var O = { class: "labeled-field" }, k = {
115
127
  emits: ["update:modelValue", "update:open"],
116
128
  setup(e, { emit: s }) {
117
129
  let c = s;
118
- return (s, l) => (x(), f(M, {
130
+ return (s, l) => (x(), f(P, {
119
131
  label: e.label,
120
132
  tooltip: e.tooltip,
121
133
  "label-class": e.labelClass,
122
134
  required: e.required
123
135
  }, {
124
- default: D(() => [v(T(a), {
136
+ default: D(({ controlId: s }) => [v(T(a), {
125
137
  "model-value": e.modelValue,
126
138
  open: e.isOpen,
127
139
  "onUpdate:open": l[0] ||= (e) => c("update:open", e),
128
140
  "onUpdate:modelValue": l[1] ||= (e) => c("update:modelValue", e)
129
141
  }, {
130
- default: D(() => [v(T(t), { class: "fira-code" }, {
142
+ default: D(() => [v(T(t), {
143
+ id: s,
144
+ class: "fira-code"
145
+ }, {
131
146
  default: D(() => [v(T(r))]),
132
147
  _: 1
133
- }), v(T(n), null, {
148
+ }, 8, ["id"]), v(T(n), null, {
134
149
  default: D(() => [v(T(o), { class: "fira-code" }, {
135
150
  default: D(() => [(x(!0), m(d, null, S(e.items, (t) => (x(), f(T(i), {
136
151
  key: t,
137
152
  value: t
138
153
  }, {
139
- description: D(() => [e.descriptions?.[t] ? (x(), m("span", P, w(e.descriptions[t]), 1)) : p("", !0)]),
154
+ description: D(() => [e.descriptions?.[t] ? (x(), m("span", I, w(e.descriptions[t]), 1)) : p("", !0)]),
140
155
  default: D(() => [_(w(t) + " ", 1)]),
141
156
  _: 2
142
157
  }, 1032, ["value"]))), 128))]),
@@ -144,8 +159,8 @@ var O = { class: "labeled-field" }, k = {
144
159
  })]),
145
160
  _: 1
146
161
  })]),
147
- _: 1
148
- }, 8, ["model-value", "open"])]),
162
+ _: 2
163
+ }, 1032, ["model-value", "open"])]),
149
164
  _: 1
150
165
  }, 8, [
151
166
  "label",
@@ -154,7 +169,7 @@ var O = { class: "labeled-field" }, k = {
154
169
  "required"
155
170
  ]));
156
171
  }
157
- }), I = /* @__PURE__ */ y({
172
+ }), R = /* @__PURE__ */ y({
158
173
  __name: "LabeledSlider",
159
174
  props: {
160
175
  modelValue: {},
@@ -169,13 +184,14 @@ var O = { class: "labeled-field" }, k = {
169
184
  emits: ["update:modelValue"],
170
185
  setup(e, { emit: t }) {
171
186
  let n = t;
172
- return (t, r) => (x(), f(M, {
187
+ return (t, r) => (x(), f(P, {
173
188
  label: e.label,
174
189
  tooltip: e.tooltip,
175
190
  "label-class": e.labelClass,
176
191
  required: e.required
177
192
  }, {
178
- default: D(() => [v(T(s), {
193
+ default: D(({ labelledBy: t }) => [v(T(s), {
194
+ "aria-labelledby": t,
179
195
  class: "py-2",
180
196
  min: e.min,
181
197
  max: e.max,
@@ -185,6 +201,7 @@ var O = { class: "labeled-field" }, k = {
185
201
  e && n("update:modelValue", e[0]);
186
202
  }
187
203
  }, null, 8, [
204
+ "aria-labelledby",
188
205
  "min",
189
206
  "max",
190
207
  "step",
@@ -198,7 +215,7 @@ var O = { class: "labeled-field" }, k = {
198
215
  "required"
199
216
  ]));
200
217
  }
201
- }), L = { class: "flex items-center" }, R = /* @__PURE__ */ y({
218
+ }), z = { class: "flex items-center" }, B = /* @__PURE__ */ y({
202
219
  __name: "LabeledSwitch",
203
220
  props: {
204
221
  checked: { type: Boolean },
@@ -210,16 +227,17 @@ var O = { class: "labeled-field" }, k = {
210
227
  emits: ["update:checked"],
211
228
  setup(e, { emit: t }) {
212
229
  let n = t;
213
- return (t, r) => (x(), f(M, {
230
+ return (t, r) => (x(), f(P, {
214
231
  label: e.label,
215
232
  tooltip: e.tooltip,
216
233
  "label-class": e.labelClass,
217
234
  required: e.required
218
235
  }, {
219
- default: D(() => [h("div", L, [v(T(c), {
220
- checked: e.checked,
221
- "onUpdate:checked": r[0] ||= (e) => n("update:checked", e)
222
- }, null, 8, ["checked"])])]),
236
+ default: D(({ controlId: t }) => [h("div", z, [v(T(c), {
237
+ id: t,
238
+ "model-value": e.checked,
239
+ "onUpdate:modelValue": r[0] ||= (e) => n("update:checked", e)
240
+ }, null, 8, ["id", "model-value"])])]),
223
241
  _: 1
224
242
  }, 8, [
225
243
  "label",
@@ -230,4 +248,4 @@ var O = { class: "labeled-field" }, k = {
230
248
  }
231
249
  });
232
250
  //#endregion
233
- export { M as LabeledField, N as LabeledInput, F as LabeledSelect, I as LabeledSlider, R as LabeledSwitch };
251
+ export { P as LabeledField, F as LabeledInput, L as LabeledSelect, R as LabeledSlider, B as LabeledSwitch };
@@ -1,2 +1,2 @@
1
- import { t as e } from "./MetricBadge-DmAihkXd.js";
1
+ import { t as e } from "./MetricBadge-BlrdbOGN.js";
2
2
  export { e as MetricBadge };
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./cn-DJXf4yaB.js";
2
- import { t } from "./_plugin-vue_export-helper-Dq1MygBL.js";
2
+ import { t } from "./_plugin-vue_export-helper-C1je1s0u.js";
3
3
  import { computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, defineComponent as c, normalizeClass as l, normalizeStyle as u, openBlock as d, renderSlot as f, resolveDynamicComponent as p, toDisplayString as m, unref as h, withCtx as g } from "vue";
4
4
  //#endregion
5
5
  //#region src/components/custom/metric-stack/MetricStack.vue
@@ -1,4 +1,4 @@
1
- import { t as e } from "./createLucideIcon-Bn9a1b70.js";
1
+ import { t as e } from "./createLucideIcon-DuDoe_ra.js";
2
2
  var t = e("maximize-2", [
3
3
  ["path", {
4
4
  d: "M15 3h6v6",
@@ -1,57 +1,47 @@
1
- import { n as e, t } from "./useViewTransition-DYIK6Gzb.js";
2
- import { t as n } from "./useIntersectionPause-IY2CwPQb.js";
3
- import { n as r, t as i } from "./constants-DwBwnG8N.js";
4
- import { computed as a, getCurrentScope as o, onBeforeUnmount as s, onMounted as c, onScopeDispose as l, reactive as u, readonly as d, ref as f, unref as p, watch as m } from "vue";
5
- //#region src/composables/motion/supportsCssTimeline.ts
6
- function h(e, t) {
7
- return typeof CSS > "u" || typeof CSS.supports != "function" ? !1 : CSS.supports("animation-timeline", e) && !CSS.supports("animation-timeline", t);
8
- }
9
- function g() {
10
- return h("scroll()", "gl-not-a-real-timeline");
11
- }
12
- function _() {
13
- return h("view()", "gl-not-a-real-timeline");
14
- }
15
- //#endregion
1
+ import { i as e, n as t, r as n, t as r } from "./vReveal-u2wSG2El.js";
2
+ import { n as i, t as a } from "./useViewTransition-D4ssvnXZ.js";
3
+ import { n as o, t as s } from "./useIntersectionPause-DAdVPVp4.js";
4
+ import { n as c, t as l } from "./constants-DsCdlK9I.js";
5
+ import { computed as u, getCurrentScope as d, onBeforeUnmount as f, onMounted as p, onScopeDispose as m, reactive as h, readonly as g, ref as _, unref as v, watch as y } from "vue";
16
6
  //#region src/composables/motion/useStaggerReveal.ts
17
- var v = _();
18
- function y(e = {}) {
19
- let { staggerMs: t = 60, once: n = !0, rootMargin: r = "0px", threshold: i = .15 } = e, a = f([]), o = u({}), c = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new Set(), d = v || typeof IntersectionObserver > "u" ? null : new IntersectionObserver((e) => {
7
+ var b = e();
8
+ function x(e = {}) {
9
+ let { staggerMs: t = 60, once: n = !0, rootMargin: r = "0px", threshold: i = .15 } = e, a = _([]), o = h({}), s = /* @__PURE__ */ new WeakMap(), c = /* @__PURE__ */ new Set(), l = b || typeof IntersectionObserver > "u" ? null : new IntersectionObserver((e) => {
20
10
  for (let r of e) {
21
- let e = r.target, i = c.get(e);
11
+ let e = r.target, i = s.get(e);
22
12
  if (i !== void 0) if (r.isIntersecting) {
23
13
  let r = setTimeout(() => {
24
- o[i] = !0, l.delete(r);
14
+ o[i] = !0, c.delete(r);
25
15
  }, t * i);
26
- l.add(r), n && d?.unobserve(e);
16
+ c.add(r), n && l?.unobserve(e);
27
17
  } else n || (o[i] = !1);
28
18
  }
29
19
  }, {
30
20
  rootMargin: r,
31
21
  threshold: i
32
22
  });
33
- function p(e, t) {
23
+ function u(e, t) {
34
24
  if (!e) return;
35
25
  let n = t ?? a.value.length;
36
- c.has(e) || (c.set(e, n), a.value.push(e), o[n] = v, d?.observe(e));
26
+ s.has(e) || (s.set(e, n), a.value.push(e), o[n] = b, l?.observe(e));
37
27
  }
38
- return s(() => {
39
- d?.disconnect();
40
- for (let e of l) clearTimeout(e);
41
- l.clear();
28
+ return f(() => {
29
+ l?.disconnect();
30
+ for (let e of c) clearTimeout(e);
31
+ c.clear();
42
32
  }), {
43
33
  targets: a,
44
- register: p,
34
+ register: u,
45
35
  revealed: o
46
36
  };
47
37
  }
48
38
  //#endregion
49
39
  //#region src/composables/motion/useScrollProgress.ts
50
- var b = g();
51
- function x(e) {
52
- let { offset: t = 0, trackExit: n = !1 } = e, r = f(0), i = 0, a = null;
40
+ var S = n();
41
+ function C(e) {
42
+ let { offset: t = 0, trackExit: n = !1 } = e, r = _(0), i = 0, a = null;
53
43
  function o() {
54
- let i = p(e.target);
44
+ let i = v(e.target);
55
45
  if (!i) return;
56
46
  let a = i.getBoundingClientRect(), o = window.innerHeight + t, s = o - (n ? -a.height : 0);
57
47
  if (s === 0) {
@@ -61,30 +51,30 @@ function x(e) {
61
51
  let c = (o - a.top) / s;
62
52
  r.value = Math.max(0, Math.min(1, c));
63
53
  }
64
- function l() {
54
+ function s() {
65
55
  i ||= requestAnimationFrame(() => {
66
56
  i = 0, o();
67
57
  });
68
58
  }
69
- return c(() => {
70
- if (o(), b) return;
71
- window.addEventListener("scroll", l, { passive: !0 }), window.addEventListener("resize", l, { passive: !0 });
72
- let t = p(e.target);
73
- t && typeof ResizeObserver < "u" && (a = new ResizeObserver(l), a.observe(t));
74
- }), b || m(() => p(e.target), (e, t) => {
75
- t && a && a.unobserve(t), e && a && a.observe(e), l();
76
- }), s(() => {
77
- window.removeEventListener("scroll", l), window.removeEventListener("resize", l), i && cancelAnimationFrame(i), a?.disconnect(), a = null;
59
+ return p(() => {
60
+ if (o(), S) return;
61
+ window.addEventListener("scroll", s, { passive: !0 }), window.addEventListener("resize", s, { passive: !0 });
62
+ let t = v(e.target);
63
+ t && typeof ResizeObserver < "u" && (a = new ResizeObserver(s), a.observe(t));
64
+ }), S || y(() => v(e.target), (e, t) => {
65
+ t && a && a.unobserve(t), e && a && a.observe(e), s();
66
+ }), f(() => {
67
+ window.removeEventListener("scroll", s), window.removeEventListener("resize", s), i && cancelAnimationFrame(i), a?.disconnect(), a = null;
78
68
  }), r;
79
69
  }
80
70
  //#endregion
81
71
  //#region src/composables/motion/useYieldToMain.ts
82
- function S() {
72
+ function w() {
83
73
  let e = globalThis.scheduler;
84
74
  return typeof e?.yield == "function" ? e.yield.bind(e) : null;
85
75
  }
86
- function C() {
87
- let e = S();
76
+ function T() {
77
+ let e = w();
88
78
  return e ? e() : typeof MessageChannel == "function" ? new Promise((e) => {
89
79
  let t = new MessageChannel();
90
80
  t.port1.onmessage = () => {
@@ -92,138 +82,167 @@ function C() {
92
82
  }, t.port2.postMessage(void 0);
93
83
  }) : new Promise((e) => setTimeout(e, 0));
94
84
  }
95
- function w() {
85
+ function E() {
96
86
  return {
97
- hasNativeYield: S() !== null,
98
- yield: C
87
+ hasNativeYield: w() !== null,
88
+ yield: T
99
89
  };
100
90
  }
101
91
  //#endregion
102
92
  //#region src/composables/motion/useRAFLoop.ts
103
- var T = "(prefers-reduced-motion: reduce)";
104
- function E() {
93
+ var D = "(prefers-reduced-motion: reduce)";
94
+ function O() {
105
95
  return typeof globalThis.requestAnimationFrame == "function" ? globalThis.requestAnimationFrame.bind(globalThis) : null;
106
96
  }
107
- function D() {
97
+ function k() {
108
98
  return typeof globalThis.cancelAnimationFrame == "function" ? globalThis.cancelAnimationFrame.bind(globalThis) : null;
109
99
  }
110
- function O() {
111
- return typeof document > "u" ? null : document;
112
- }
113
- function k() {
100
+ function A() {
114
101
  return typeof window > "u" ? null : window;
115
102
  }
116
- function A(e, t = {}) {
117
- let { immediate: n = !0, pauseWhenHidden: r = !0, respectReducedMotion: i = !0 } = t, s = f(!1), c = f(!1), u = f(r ? !!O()?.hidden : !1), p = f(!1), m = f(!1), h = a(() => p.value && !s.value && (m.value || u.value || i && c.value || !E())), g = null, _ = null, v = 0, y = 0, b = !1, x = null;
118
- function S() {
119
- return !b && p.value && !m.value && !u.value && !(i && c.value) && !!E();
120
- }
103
+ function j(e, t = {}) {
104
+ let { immediate: n = !0, pauseWhenHidden: r = !0, respectReducedMotion: i = !0 } = t, a = _(!1), s = _(!1), c = _(!1), l = _(!1), f = _(!1), p = u(() => l.value && !a.value && (f.value || c.value || i && s.value || !O())), h = null, v = null, b = 0, x = 0, S = !1, C = null;
121
105
  function w() {
122
- g !== null && (D()?.(g), g = null), s.value = !1, _ = null;
123
- }
124
- function A() {
125
- if (g !== null || !S()) return;
126
- let t = E();
127
- t && (s.value = !0, g = t((t) => {
128
- if (g = null, !S()) {
129
- w();
106
+ return !S && l.value && !f.value && !c.value && !(i && s.value) && !!O();
107
+ }
108
+ function E() {
109
+ h !== null && (k()?.(h), h = null), a.value = !1, v = null;
110
+ }
111
+ function j() {
112
+ if (h !== null || !w()) return;
113
+ let t = O();
114
+ t && (a.value = !0, h = t((t) => {
115
+ if (h = null, !w()) {
116
+ E();
130
117
  return;
131
118
  }
132
- let n = _ === null ? 0 : Math.max(0, t - _);
133
- _ = t, v += n, e({
119
+ let n = v === null ? 0 : Math.max(0, t - v);
120
+ v = t, b += n, e({
134
121
  now: t,
135
122
  delta: n,
136
- elapsed: v,
137
- frame: y++
138
- }), S() ? A() : w();
123
+ elapsed: b,
124
+ frame: x++
125
+ }), w() ? j() : E();
139
126
  }));
140
127
  }
141
- function j() {
142
- S() ? A() : w();
143
- }
144
128
  function M() {
145
- _ = null, v = 0, y = 0;
129
+ w() ? j() : E();
146
130
  }
147
131
  function N() {
148
- b || (M(), p.value = !0, m.value = !1, j());
132
+ v = null, b = 0, x = 0;
149
133
  }
150
134
  function P() {
151
- p.value = !1, m.value = !1, M(), w();
135
+ S || (N(), l.value = !0, f.value = !1, M());
152
136
  }
153
137
  function F() {
154
- p.value && (m.value = !0, j());
138
+ l.value = !1, f.value = !1, N(), E();
155
139
  }
156
140
  function I() {
157
- b || (m.value = !1, j());
141
+ l.value && (f.value = !0, M());
158
142
  }
159
143
  function L() {
160
- u.value = r ? !!O()?.hidden : !1, j();
144
+ S || (f.value = !1, M());
161
145
  }
162
- let R = O();
163
- if (R && r && R.addEventListener("visibilitychange", L), i) {
164
- let e = k(), t = typeof e?.matchMedia == "function" ? e.matchMedia(T) : null;
146
+ if (r) {
147
+ let { hidden: e } = o();
148
+ c.value = e.value, y(e, (e) => {
149
+ c.value = e, M();
150
+ }, { flush: "sync" });
151
+ }
152
+ if (i) {
153
+ let e = A(), t = typeof e?.matchMedia == "function" ? e.matchMedia(D) : null;
165
154
  if (t) {
166
155
  let e = (e) => {
167
- c.value = e.matches, j();
156
+ s.value = e.matches, M();
168
157
  };
169
- c.value = t.matches, typeof t.addEventListener == "function" ? (t.addEventListener("change", e), x = () => t.removeEventListener("change", e)) : typeof t.addListener == "function" && (t.addListener(e), x = () => t.removeListener?.(e));
158
+ s.value = t.matches, typeof t.addEventListener == "function" ? (t.addEventListener("change", e), C = () => t.removeEventListener("change", e)) : typeof t.addListener == "function" && (t.addListener(e), C = () => t.removeListener?.(e));
170
159
  }
171
160
  }
172
- function z() {
173
- b || (b = !0, P(), R?.removeEventListener("visibilitychange", L), x?.(), x = null);
174
- }
175
- return o() && l(z), n && N(), {
176
- isActive: d(s),
177
- isPaused: d(h),
178
- isReducedMotion: d(c),
179
- start: N,
180
- stop: P,
181
- pause: F,
182
- resume: I,
183
- dispose: z,
184
- yieldToMain: C
161
+ function R() {
162
+ S || (S = !0, F(), C?.(), C = null);
163
+ }
164
+ return d() && m(R), n && P(), {
165
+ isActive: g(a),
166
+ isPaused: g(p),
167
+ isReducedMotion: g(s),
168
+ start: P,
169
+ stop: F,
170
+ pause: I,
171
+ resume: L,
172
+ dispose: R,
173
+ yieldToMain: T
185
174
  };
186
175
  }
187
176
  //#endregion
188
- //#region src/composables/motion/useStagger.ts
189
- function j() {
190
- return typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches;
177
+ //#region src/composables/motion/usePrioritizedTask.ts
178
+ function M() {
179
+ if (!t()) return null;
180
+ let e = globalThis.scheduler;
181
+ return e?.postTask?.bind(e) ?? null;
191
182
  }
192
- function M(e) {
193
- let t = Math.max(0, Math.floor(e.items)), n = e.delayMs ?? 80, r = e.initialDelayMs ?? 0, i = e.immediate !== !1, a = e.respectReducedMotion !== !1, o = f(Array(t).fill(!1)), s = f(t === 0), c = /* @__PURE__ */ new Set();
194
- function u() {
195
- for (let e of c) clearTimeout(e);
196
- c.clear();
197
- }
198
- function d() {
199
- u(), o.value = Array(t).fill(!1), s.value = t === 0;
200
- }
201
- function p() {
202
- o.value = Array(t).fill(!0), s.value = !0;
203
- }
204
- function m() {
205
- if (d(), t === 0) {
206
- s.value = !0;
207
- return;
183
+ function N() {
184
+ let e = /* @__PURE__ */ Error("The task was aborted.");
185
+ return e.name = "AbortError", e;
186
+ }
187
+ function P(e) {
188
+ let t = e.filter((e) => e != null);
189
+ if (t.length === 0) return;
190
+ if (t.length === 1) return t[0];
191
+ if (typeof AbortSignal.any == "function") return AbortSignal.any(t);
192
+ let n = new AbortController(), r = (e) => n.abort(e.reason);
193
+ for (let e of t) {
194
+ if (e.aborted) {
195
+ n.abort(e.reason);
196
+ break;
208
197
  }
209
- if (a && j()) {
210
- p();
198
+ e.addEventListener("abort", () => r(e), { once: !0 });
199
+ }
200
+ return n.signal;
201
+ }
202
+ function F(e, t = {}) {
203
+ let { priority: n, signal: r, delay: i } = t, a = M();
204
+ return a ? a(e, {
205
+ priority: n,
206
+ signal: r,
207
+ delay: i
208
+ }) : new Promise((t, n) => {
209
+ if (r?.aborted) {
210
+ n(N());
211
211
  return;
212
212
  }
213
- for (let e = 0; e < t; e++) {
214
- let i = e, a = setTimeout(() => {
215
- let e = o.value.slice();
216
- e[i] = !0, o.value = e, c.delete(a), i === t - 1 && (s.value = !0);
217
- }, r + i * n);
218
- c.add(a);
219
- }
220
- }
221
- return i && m(), l(u), {
222
- revealed: o,
223
- start: m,
224
- reset: d,
225
- isComplete: s
213
+ let a = () => {
214
+ if (r?.aborted) {
215
+ n(N());
216
+ return;
217
+ }
218
+ try {
219
+ t(e());
220
+ } catch (e) {
221
+ n(e);
222
+ }
223
+ }, o = typeof MessageChannel == "function" ? () => {
224
+ let e = new MessageChannel();
225
+ e.port1.onmessage = () => {
226
+ e.port1.onmessage = null, a();
227
+ }, e.port2.postMessage(void 0);
228
+ } : () => setTimeout(a, 0);
229
+ i && i > 0 ? setTimeout(o, i) : o();
230
+ });
231
+ }
232
+ function I(e) {
233
+ let t = globalThis.TaskController;
234
+ return typeof t == "function" ? new t(e ? { priority: e } : void 0) : null;
235
+ }
236
+ function L(e) {
237
+ let t = I(e);
238
+ return {
239
+ postTask: (n, r = {}) => F(n, {
240
+ priority: e,
241
+ ...r,
242
+ signal: P([t?.signal, r.signal])
243
+ }),
244
+ abort: (e) => t?.abort(e)
226
245
  };
227
246
  }
228
247
  //#endregion
229
- export { i as DAMPING, r as SNAP_THRESHOLD, t as startViewTransition, e as supportsViewTransitions, n as useIntersectionPause, A as useRAFLoop, x as useScrollProgress, M as useStagger, y as useStaggerReveal, w as useYieldToMain, C as yieldToMain };
248
+ export { l as DAMPING, c as SNAP_THRESHOLD, F as postTaskSafe, a as startViewTransition, i as supportsViewTransitions, s as useIntersectionPause, L as usePrioritizedTask, j as useRAFLoop, C as useScrollProgress, x as useStaggerReveal, E as useYieldToMain, r as vReveal, T as yieldToMain };