@mkbabb/glass-ui 3.2.0 → 3.4.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 (306) hide show
  1. package/dist/{CardFooter-3-VGho1J.js → CardFooter-C390imy7.js} +2 -2
  2. package/dist/{CollapsibleContent-wlmlDujU.js → CollapsibleContent-cauTbZEM.js} +1 -1
  3. package/dist/{CommandShortcut-C6lsz3pG.js → CommandShortcut-BiVyqipe.js} +5 -4
  4. package/dist/DataTable-FfkaAg2z.js +465 -0
  5. package/dist/DialogContent-IQ8_BRrC.js +100 -0
  6. package/dist/{DiscoGlyph-B7YooI2-.js → DiscoGlyph-BaZ8OawK.js} +1 -1
  7. package/dist/{GlyphFace-Bvk6OIas.js → GlyphFace-B_7vOmYn.js} +1 -1
  8. package/dist/HoverPopover-DTSYkJtw.js +96 -0
  9. package/dist/{IconTooltip-DXveGjx7.js → IconTooltip-BTyYn4mr.js} +1 -1
  10. package/dist/Input-CU9CNKmo.js +52 -0
  11. package/dist/{MetricBadge-J_GBCb8e.js → MetricBadge-BlrdbOGN.js} +1 -1
  12. package/dist/{NumberFieldContent-B6L6YrQz.js → NumberFieldContent-iOTQ5rGO.js} +8 -4
  13. package/dist/{PopoverContent-CxEEUL7Y.js → PopoverContent-B8WtJECb.js} +1 -1
  14. package/dist/Progress-DjM86vfb.js +254 -0
  15. package/dist/{ScrollingText-1Qjnwz6H.js → ScrollingText-P9o_DuMn.js} +1 -1
  16. package/dist/{SelectScrollDownButton-BvvvAbuh.js → SelectScrollDownButton-BGn3rjs9.js} +9 -8
  17. package/dist/TabsIndicator-DA0x9gPr.js +97 -0
  18. package/dist/{ToggleGroupItem-Cy7xHFEo.js → ToggleGroupItem-gyXj998A.js} +37 -40
  19. package/dist/UnderlineTabs-Cq_AD03t.js +39 -0
  20. package/dist/animated-digit.js +2 -2
  21. package/dist/api/index.d.ts +2 -0
  22. package/dist/api.js +1 -1
  23. package/dist/aurora.js +454 -271
  24. package/dist/{button-DS3ULf5i.js → button-Ckn3eDfB.js} +27 -22
  25. package/dist/button.js +1 -1
  26. package/dist/card.js +1 -1
  27. package/dist/carousel.js +2 -2
  28. package/dist/collapsible.js +1 -1
  29. package/dist/color-rkK4RMx2.js +33 -0
  30. package/dist/color.d.ts +1 -0
  31. package/dist/color.js +2 -0
  32. package/dist/command.js +1 -1
  33. package/dist/compile-DVgAxagk.js +106 -0
  34. package/dist/components/custom/animated-digit/AnimatedDigit.vue.d.ts +7 -7
  35. package/dist/components/custom/aurora/Aurora.vue.d.ts +3 -3
  36. package/dist/components/custom/aurora/composables/color.d.ts +3 -25
  37. package/dist/components/custom/aurora/composables/cursorModel.d.ts +45 -0
  38. package/dist/components/custom/aurora/composables/frameLoop.d.ts +30 -0
  39. package/dist/components/custom/aurora/composables/glSetup.d.ts +29 -0
  40. package/dist/components/custom/aurora/composables/runtime.d.ts +45 -35
  41. package/dist/components/custom/aurora/composables/uniformBridge.d.ts +67 -0
  42. package/dist/components/custom/aurora/composables/useAurora.d.ts +14 -1
  43. package/dist/components/custom/aurora/composables/useCursorInteraction.d.ts +1 -1
  44. package/dist/components/custom/aurora/constants/budget.d.ts +50 -0
  45. package/dist/components/custom/aurora/{presets.d.ts → constants/presets.d.ts} +2 -5
  46. package/dist/components/custom/aurora/constants/shaders/aurora.frag.d.ts +1 -0
  47. package/dist/components/custom/aurora/constants/shaders/brush.glsl.d.ts +1 -0
  48. package/dist/components/custom/aurora/constants/shaders/composition.glsl.d.ts +1 -0
  49. package/dist/components/custom/aurora/constants/shaders/flow.glsl.d.ts +1 -0
  50. package/dist/components/custom/aurora/constants/shaders/mediums.glsl.d.ts +2 -0
  51. package/dist/components/custom/aurora/constants/shaders/tonemap.glsl.d.ts +1 -0
  52. package/dist/components/custom/aurora/index.d.ts +2 -2
  53. package/dist/components/custom/configurator/ConfiguratorLayer.vue.d.ts +14 -7
  54. package/dist/components/custom/configurator/density.d.ts +3 -8
  55. package/dist/components/custom/dock/DockBackgroundToggle.vue.d.ts +46 -0
  56. package/dist/components/custom/dock/DockIconButton.vue.d.ts +3 -3
  57. package/dist/components/custom/dock/DockLayerGroup.vue.d.ts +2 -2
  58. package/dist/components/custom/dock/GlassDock.vue.d.ts +22 -18
  59. package/dist/components/custom/dock/composables/dockContext.d.ts +4 -4
  60. package/dist/components/custom/dock/composables/dockLayerContext.d.ts +13 -6
  61. package/dist/components/custom/dock/composables/useLayerTransition.d.ts +32 -8
  62. package/dist/components/custom/dock/index.d.ts +1 -0
  63. package/dist/components/custom/expandable-container/ExpandableContainer.vue.d.ts +10 -0
  64. package/dist/components/custom/glass-panel/GlassPanel.vue.d.ts +1 -1
  65. package/dist/components/custom/glyph-face/keys.d.ts +3 -29
  66. package/dist/components/custom/goo-blob/GooBlob.vue.d.ts +48 -0
  67. package/dist/components/custom/goo-blob/composables/easing.d.ts +6 -0
  68. package/dist/components/custom/goo-blob/composables/useBlobMood.d.ts +14 -0
  69. package/dist/components/custom/goo-blob/composables/useBlobPointer.d.ts +18 -0
  70. package/dist/components/custom/goo-blob/composables/useBlobSatellites.d.ts +13 -0
  71. package/dist/components/custom/goo-blob/composables/useMetaballRenderer.d.ts +42 -0
  72. package/dist/components/custom/goo-blob/index.d.ts +7 -0
  73. package/dist/components/custom/goo-blob/shaders/metaball.frag.d.ts +1 -0
  74. package/dist/components/custom/goo-blob/shaders/metaball.vert.d.ts +1 -0
  75. package/dist/components/custom/goo-blob/shaders/oklch-perturb.glsl.d.ts +1 -0
  76. package/dist/components/custom/goo-blob/shaders/sdf-body.glsl.d.ts +1 -0
  77. package/dist/components/custom/goo-blob/shaders/watercolor-edges.glsl.d.ts +2 -0
  78. package/dist/components/custom/goo-blob/types.d.ts +77 -0
  79. package/dist/components/custom/hover-popover/HoverPopover.vue.d.ts +48 -9
  80. package/dist/components/custom/labeled-field/LabeledField.vue.d.ts +2 -0
  81. package/dist/components/custom/labeled-field/LabeledSelect.vue.d.ts +2 -2
  82. package/dist/components/custom/metric-stack/MetricRow.vue.d.ts +2 -2
  83. package/dist/components/custom/responsive-tabs/ResponsiveTabs.vue.d.ts +13 -7
  84. package/dist/components/custom/search/FuzzySearch.vue.d.ts +1 -1
  85. package/dist/components/custom/search/SearchBar.vue.d.ts +1 -1
  86. package/dist/components/custom/sortable-list/SortableHandle.vue.d.ts +7 -1
  87. package/dist/components/custom/sortable-list/context.d.ts +2 -3
  88. package/dist/components/custom/tabs/BouncyTabs.vue.d.ts +6 -3
  89. package/dist/components/custom/tabs/BouncyToggle.vue.d.ts +7 -3
  90. package/dist/components/custom/tabs/UnderlineTabs.vue.d.ts +6 -3
  91. package/dist/components/custom/tabs/composables/useBouncySlider.d.ts +39 -0
  92. package/dist/components/custom/timeline/ContinuousMarkers.vue.d.ts +49 -0
  93. package/dist/components/custom/timeline/ContinuousRail.vue.d.ts +26 -0
  94. package/dist/components/custom/timeline/ContinuousTimeline.vue.d.ts +4 -4
  95. package/dist/components/custom/typewriter/TypewriterText.vue.d.ts +2 -2
  96. package/dist/components/custom/watercolor-dot/WatercolorDot.vue.d.ts +45 -0
  97. package/dist/components/custom/watercolor-dot/index.d.ts +3 -0
  98. package/dist/components/custom/watercolor-dot/prng.d.ts +5 -0
  99. package/dist/components/custom/watercolor-dot/useWatercolorBlob.d.ts +24 -0
  100. package/dist/components/ui/_shared/menuItemVariants.d.ts +1 -1
  101. package/dist/components/ui/avatar/Avatar.vue.d.ts +1 -1
  102. package/dist/components/ui/avatar/AvatarImage.vue.d.ts +5 -1
  103. package/dist/components/ui/avatar/index.d.ts +1 -1
  104. package/dist/components/ui/badge/index.d.ts +2 -2
  105. package/dist/components/ui/button/Button.vue.d.ts +3 -1
  106. package/dist/components/ui/button/index.d.ts +2 -2
  107. package/dist/components/ui/carousel/CarouselNext.vue.d.ts +2 -2
  108. package/dist/components/ui/carousel/CarouselPrevious.vue.d.ts +2 -2
  109. package/dist/components/ui/combobox/Combobox.vue.d.ts +2 -2
  110. package/dist/components/ui/combobox/ComboboxInput.vue.d.ts +2 -1
  111. package/dist/components/ui/command/Command.vue.d.ts +3 -3
  112. package/dist/components/ui/command/CommandInput.vue.d.ts +2 -1
  113. package/dist/components/ui/data-table/DataTable.vue.d.ts +5 -4
  114. package/dist/components/ui/dialog/DialogContent.vue.d.ts +8 -0
  115. package/dist/components/ui/drawer/Drawer.vue.d.ts +4 -4
  116. package/dist/components/ui/input/Input.vue.d.ts +19 -1
  117. package/dist/components/ui/multi-select/MultiSelect.vue.d.ts +8 -4
  118. package/dist/components/ui/progress/Progress.vue.d.ts +26 -88
  119. package/dist/components/ui/progress/ProgressDefault.vue.d.ts +14 -0
  120. package/dist/components/ui/progress/ProgressGradient.vue.d.ts +25 -0
  121. package/dist/components/ui/progress/ProgressSectioned.vue.d.ts +36 -0
  122. package/dist/components/ui/progress/index.d.ts +5 -2
  123. package/dist/components/ui/progress/useProgressGeometry.d.ts +60 -0
  124. package/dist/components/ui/select/Select.vue.d.ts +2 -2
  125. package/dist/components/ui/select/SelectContent.vue.d.ts +1 -1
  126. package/dist/components/ui/select/SelectTrigger.vue.d.ts +3 -0
  127. package/dist/components/ui/sheet/index.d.ts +1 -1
  128. package/dist/components/ui/slider/index.d.ts +12 -11
  129. package/dist/components/ui/tags-input/TagsInput.vue.d.ts +2 -2
  130. package/dist/components/ui/textarea/Textarea.vue.d.ts +5 -1
  131. package/dist/components/ui/toast/Toast.vue.d.ts +4 -4
  132. package/dist/components/ui/toggle/Toggle.vue.d.ts +1 -1
  133. package/dist/components/ui/toggle/index.d.ts +1 -1
  134. package/dist/components/ui/toggle-group/toggleGroupContext.d.ts +2 -3
  135. package/dist/composables/color/index.d.ts +49 -0
  136. package/dist/composables/context/createContext.d.ts +56 -0
  137. package/dist/composables/context/index.d.ts +1 -0
  138. package/dist/composables/dark/darkModeSyncScript.d.ts +23 -0
  139. package/dist/composables/dark/index.d.ts +3 -0
  140. package/dist/composables/dark/useGlobalDark.d.ts +19 -2
  141. package/dist/composables/dom/index.d.ts +0 -3
  142. package/dist/composables/dom/useClipboard.d.ts +35 -12
  143. package/dist/composables/dom/useDocumentVisibility.d.ts +20 -0
  144. package/dist/composables/glass/webgl/compile.d.ts +15 -0
  145. package/dist/composables/glass/webgl/shaders/procedural-color.glsl.d.ts +3 -0
  146. package/dist/composables/glass/webgl/useWebGLCanvas.d.ts +55 -0
  147. package/dist/composables/motion/core/index.d.ts +1 -1
  148. package/dist/composables/motion/index.d.ts +1 -1
  149. package/dist/composables/motion/useCountup.d.ts +29 -0
  150. package/dist/composables/motion/useNumericTransition.d.ts +14 -3
  151. package/dist/composables/motion/vReveal.d.ts +2 -0
  152. package/dist/composables/sidebar/useSidebarState.d.ts +2 -2
  153. package/dist/composables/sortable/dragController.d.ts +44 -0
  154. package/dist/composables/sortable/dropResolver.d.ts +34 -0
  155. package/dist/composables/sortable/ghostRenderer.d.ts +44 -0
  156. package/dist/composables/sortable/index.d.ts +1 -1
  157. package/dist/composables/sortable/touchGate.d.ts +26 -0
  158. package/dist/composables/sortable/transitionTiming.d.ts +50 -0
  159. package/dist/composables/sortable/types.d.ts +133 -0
  160. package/dist/composables/sortable/useSortable.d.ts +25 -153
  161. package/dist/configurator.js +1 -1
  162. package/dist/confirm-dialog.js +1 -1
  163. package/dist/controls.js +4 -4
  164. package/dist/createContext-DBMGRlx4.js +25 -0
  165. package/dist/dark.d.ts +2 -1
  166. package/dist/dark.js +9 -2
  167. package/dist/data-table.js +1 -1
  168. package/dist/dialog.js +1 -1
  169. package/dist/disco-glyph.js +1 -1
  170. package/dist/dock.js +400 -261
  171. package/dist/dockContext-spUj_-E5.js +9 -0
  172. package/dist/dom.js +6 -6
  173. package/dist/{dropdown-menu-naE0skDg.js → dropdown-menu-EFjl5iKo.js} +1 -1
  174. package/dist/dropdown-menu.js +1 -1
  175. package/dist/expandable-container.js +26 -20
  176. package/dist/fonts/README.md +21 -0
  177. package/dist/fonts/fraunces/fraunces-latin.woff2 +0 -0
  178. package/dist/forms.js +68 -59
  179. package/dist/glass-panel.js +1 -1
  180. package/dist/glass-ui.css +1 -1
  181. package/dist/glass-ui.js +226 -328
  182. package/dist/glyph-face.js +2 -2
  183. package/dist/goo-blob.d.ts +1 -0
  184. package/dist/goo-blob.js +538 -0
  185. package/dist/header-ribbon.js +2 -2
  186. package/dist/hover-card.js +1 -1
  187. package/dist/hover-popover.js +1 -1
  188. package/dist/icon-tooltip.js +1 -1
  189. package/dist/index.d.ts +1 -0
  190. package/dist/instrument-chassis.js +1 -1
  191. package/dist/instrument-rail.js +1 -1
  192. package/dist/keys-BFoma9vm.js +9 -0
  193. package/dist/label.js +1 -1
  194. package/dist/labeled-field.js +57 -39
  195. package/dist/metric-badge.js +1 -1
  196. package/dist/motion-core.js +82 -123
  197. package/dist/motion.js +62 -14
  198. package/dist/number-field.js +1 -1
  199. package/dist/paper-backdrop.js +1 -1
  200. package/dist/popover.js +1 -1
  201. package/dist/{presets-BpTf63Hp.js → presets-1OhFpaIC.js} +1 -1
  202. package/dist/prng-Bz_1Tydc.js +15 -0
  203. package/dist/progress.js +2 -2
  204. package/dist/reactive.js +2 -2
  205. package/dist/responsive-tabs.js +38 -32
  206. package/dist/scrolling-text.js +1 -1
  207. package/dist/search.js +8 -8
  208. package/dist/select.js +3 -3
  209. package/dist/separator.js +1 -1
  210. package/dist/sheet.js +1 -1
  211. package/dist/{slider-wx8ifVFB.js → slider-BOh8ycfZ.js} +7 -11
  212. package/dist/slider.js +1 -1
  213. package/dist/sortable-list.js +36 -38
  214. package/dist/stacked-icons.js +2 -2
  215. package/dist/styles/animations.css +1 -1
  216. package/dist/styles/cards.css +1 -1
  217. package/dist/styles/components.css +1 -1
  218. package/dist/styles/dock-controls.css +486 -0
  219. package/dist/styles/dock.css +284 -450
  220. package/dist/styles/fonts.css +25 -0
  221. package/dist/styles/glass-specular-track.css +154 -0
  222. package/dist/styles/glass.css +74 -2
  223. package/dist/styles/index.css +21 -2
  224. package/dist/styles/instrument-chassis.css +11 -4
  225. package/dist/styles/theme.css +73 -21
  226. package/dist/styles/tokens.css +271 -140
  227. package/dist/styles/typography.css +14 -8
  228. package/dist/styles/utilities.css +36 -8
  229. package/dist/styles/view-transition.css +10 -4
  230. package/dist/switch.js +1 -1
  231. package/dist/tabs.js +139 -112
  232. package/dist/timeline.js +219 -158
  233. package/dist/toast.js +1 -1
  234. package/dist/toggle-group.js +1 -1
  235. package/dist/tokens.d.ts +1 -1
  236. package/dist/tooltip.js +1 -1
  237. package/dist/{useAnimatedNumber-BOxrS3a6.js → useAnimatedNumber-BF6r64lA.js} +1 -1
  238. package/dist/useClipboard-D8vFyRCa.js +97 -0
  239. package/dist/{useConfiguratorState-Dq2gNv4A.js → useConfiguratorState-DUtC1jxr.js} +82 -86
  240. package/dist/useGlobalDark-CWiaCoEw.js +34 -0
  241. package/dist/useIntersectionPause-DAdVPVp4.js +53 -0
  242. package/dist/useSortable-DnyGXKKY.js +246 -0
  243. package/dist/{useTouchGate-XX8gHfay.js → useTouchGate-CS5Csc2h.js} +1 -1
  244. package/dist/utils/prng.d.ts +4 -0
  245. package/dist/vReveal-u2wSG2El.js +35 -0
  246. package/dist/watercolor-dot.d.ts +1 -0
  247. package/dist/watercolor-dot.js +129 -0
  248. package/package.json +101 -16
  249. package/src/fonts/README.md +21 -0
  250. package/src/fonts/fraunces/fraunces-latin.woff2 +0 -0
  251. package/src/styles/animations.css +1 -1
  252. package/src/styles/cards.css +1 -1
  253. package/src/styles/dock-controls.css +486 -0
  254. package/src/styles/dock.css +284 -450
  255. package/src/styles/fonts.css +25 -0
  256. package/src/styles/glass-specular-track.css +154 -0
  257. package/src/styles/glass.css +74 -2
  258. package/src/styles/index.css +21 -2
  259. package/src/styles/instrument-chassis.css +11 -4
  260. package/src/styles/theme.css +73 -21
  261. package/src/styles/tokens.css +271 -140
  262. package/src/styles/typography.css +14 -8
  263. package/src/styles/utilities.css +36 -8
  264. package/src/styles/view-transition.css +10 -4
  265. package/dist/DataTable-BsrDYdoE.js +0 -460
  266. package/dist/DialogContent-B61rP8lj.js +0 -93
  267. package/dist/HoverPopover-BlEwqG7S.js +0 -96
  268. package/dist/Input-IFsIzId2.js +0 -30
  269. package/dist/Progress-Bs44qWEM.js +0 -126
  270. package/dist/UnderlineTabs-B4FV2zi_.js +0 -37
  271. package/dist/components/custom/aurora/shaders/aurora.frag.d.ts +0 -1
  272. package/dist/composables/dom/useBreakpoint.d.ts +0 -38
  273. package/dist/composables/dom/useIdleReady.d.ts +0 -63
  274. package/dist/composables/dom/useViewportReady.d.ts +0 -87
  275. package/dist/composables/glass/webgl/frostShader.d.ts +0 -27
  276. package/dist/composables/motion/useAnimatedNumberMap.d.ts +0 -29
  277. package/dist/composables/motion/useStagger.d.ts +0 -50
  278. package/dist/dockContext-DM58L1Jt.js +0 -16
  279. package/dist/keys-SIKQYNx1.js +0 -11
  280. package/dist/supportsCssTimeline-IQY3gfKD.js +0 -12
  281. package/dist/useGlobalDark-BUUTZvkU.js +0 -24
  282. package/dist/useIdleReady-sLhGo6CL.js +0 -162
  283. package/dist/useIntersectionPause-CUmANkoc.js +0 -39
  284. package/dist/useSortable-DLK9kwZp.js +0 -189
  285. /package/dist/{HoverCardContent-DGUhpRVt.js → HoverCardContent-ICfIMZX1.js} +0 -0
  286. /package/dist/{InstrumentChassis-CqKPBNqp.js → InstrumentChassis-DaHIZCqy.js} +0 -0
  287. /package/dist/{InstrumentRail-CCjvKkpB.js → InstrumentRail-B0qqLFN0.js} +0 -0
  288. /package/dist/{Label-D53EOwLE.js → Label-CZk-3nTc.js} +0 -0
  289. /package/dist/{PaperBackdrop-Ds-wDsKf.js → PaperBackdrop-D_YZW47j.js} +0 -0
  290. /package/dist/{SelectGroup-DAgcsfFw.js → SelectGroup-CMdoCjRE.js} +0 -0
  291. /package/dist/{SelectSeparator-DN1jzLaI.js → SelectSeparator-CaJnPF3_.js} +0 -0
  292. /package/dist/{Separator-DXxac0j8.js → Separator-C2XtAXRp.js} +0 -0
  293. /package/dist/{Switch-imA0Hdjs.js → Switch-x8n6husW.js} +0 -0
  294. /package/dist/{Toaster-Brs6QjBU.js → Toaster-DdhMKfus.js} +0 -0
  295. /package/dist/{TooltipProvider-MZFRxOvT.js → TooltipProvider-D-JrSqDu.js} +0 -0
  296. /package/dist/components/custom/aurora/{renderMode.d.ts → constants/renderMode.d.ts} +0 -0
  297. /package/dist/components/custom/aurora/{shaders → constants/shaders}/aurora.vert.d.ts +0 -0
  298. /package/dist/{constants-DfWPi8kh.js → constants-DsCdlK9I.js} +0 -0
  299. /package/dist/{sheet-BnvZRXPq.js → sheet-CQYYrkr9.js} +0 -0
  300. /package/dist/{useGlassRenderer-C98tZnJ7.js → useGlassRenderer-Dn3WpfG-.js} +0 -0
  301. /package/dist/{useInterval-B58LmYth.js → useInterval-CHVYFpXV.js} +0 -0
  302. /package/dist/{useResizeObserver-C_7GjpRn.js → useResizeObserver-DX-STszm.js} +0 -0
  303. /package/dist/{useTextHighlight-CLST6an0.js → useTextHighlight-Dmtofpk2.js} +0 -0
  304. /package/dist/{useTimer-6FoosoDY.js → useTimer-DGgoxTXL.js} +0 -0
  305. /package/dist/{useUserInvalidAria-BW5iyqWR.js → useUserInvalidAria-DmvZ_6Dx.js} +0 -0
  306. /package/dist/{useViewTransition-CUJM7fXT.js → useViewTransition-D4ssvnXZ.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-BvvvAbuh.js";
3
- import { t as o } from "./SelectGroup-DAgcsfFw.js";
4
- import { n as s } from "./slider-wx8ifVFB.js";
5
- import { t as c } from "./Switch-imA0Hdjs.js";
6
- import { t as l } from "./IconTooltip-DXveGjx7.js";
7
- import { t as u } from "./Input-IFsIzId2.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-J_GBCb8e.js";
1
+ import { t as e } from "./MetricBadge-BlrdbOGN.js";
2
2
  export { e as MetricBadge };
@@ -1,47 +1,47 @@
1
- import { n as e, t } from "./supportsCssTimeline-IQY3gfKD.js";
2
- import { n, t as r } from "./useViewTransition-CUJM7fXT.js";
3
- import { t as i } from "./useIntersectionPause-CUmANkoc.js";
4
- import { n as a, t as o } from "./constants-DfWPi8kh.js";
5
- import { computed as s, getCurrentScope as c, onBeforeUnmount as l, onMounted as u, onScopeDispose as d, reactive as f, readonly as p, ref as m, unref as h, watch as g } from "vue";
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";
6
6
  //#region src/composables/motion/useStaggerReveal.ts
7
- var _ = e();
8
- function v(e = {}) {
9
- let { staggerMs: t = 60, once: n = !0, rootMargin: r = "0px", threshold: i = .15 } = e, a = m([]), o = f({}), s = /* @__PURE__ */ new WeakMap(), c = /* @__PURE__ */ new Set(), u = _ || 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) => {
10
10
  for (let r of e) {
11
11
  let e = r.target, i = s.get(e);
12
12
  if (i !== void 0) if (r.isIntersecting) {
13
13
  let r = setTimeout(() => {
14
14
  o[i] = !0, c.delete(r);
15
15
  }, t * i);
16
- c.add(r), n && u?.unobserve(e);
16
+ c.add(r), n && l?.unobserve(e);
17
17
  } else n || (o[i] = !1);
18
18
  }
19
19
  }, {
20
20
  rootMargin: r,
21
21
  threshold: i
22
22
  });
23
- function d(e, t) {
23
+ function u(e, t) {
24
24
  if (!e) return;
25
25
  let n = t ?? a.value.length;
26
- s.has(e) || (s.set(e, n), a.value.push(e), o[n] = _, u?.observe(e));
26
+ s.has(e) || (s.set(e, n), a.value.push(e), o[n] = b, l?.observe(e));
27
27
  }
28
- return l(() => {
29
- u?.disconnect();
28
+ return f(() => {
29
+ l?.disconnect();
30
30
  for (let e of c) clearTimeout(e);
31
31
  c.clear();
32
32
  }), {
33
33
  targets: a,
34
- register: d,
34
+ register: u,
35
35
  revealed: o
36
36
  };
37
37
  }
38
38
  //#endregion
39
39
  //#region src/composables/motion/useScrollProgress.ts
40
- var y = t();
41
- function b(e) {
42
- let { offset: t = 0, trackExit: n = !1 } = e, r = m(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;
43
43
  function o() {
44
- let i = h(e.target);
44
+ let i = v(e.target);
45
45
  if (!i) return;
46
46
  let a = i.getBoundingClientRect(), o = window.innerHeight + t, s = o - (n ? -a.height : 0);
47
47
  if (s === 0) {
@@ -56,25 +56,25 @@ function b(e) {
56
56
  i = 0, o();
57
57
  });
58
58
  }
59
- return u(() => {
60
- if (o(), y) return;
59
+ return p(() => {
60
+ if (o(), S) return;
61
61
  window.addEventListener("scroll", s, { passive: !0 }), window.addEventListener("resize", s, { passive: !0 });
62
- let t = h(e.target);
62
+ let t = v(e.target);
63
63
  t && typeof ResizeObserver < "u" && (a = new ResizeObserver(s), a.observe(t));
64
- }), y || g(() => h(e.target), (e, t) => {
64
+ }), S || y(() => v(e.target), (e, t) => {
65
65
  t && a && a.unobserve(t), e && a && a.observe(e), s();
66
- }), l(() => {
66
+ }), f(() => {
67
67
  window.removeEventListener("scroll", s), window.removeEventListener("resize", s), i && cancelAnimationFrame(i), a?.disconnect(), a = null;
68
68
  }), r;
69
69
  }
70
70
  //#endregion
71
71
  //#region src/composables/motion/useYieldToMain.ts
72
- function x() {
72
+ function w() {
73
73
  let e = globalThis.scheduler;
74
74
  return typeof e?.yield == "function" ? e.yield.bind(e) : null;
75
75
  }
76
- function S() {
77
- let e = x();
76
+ function T() {
77
+ let e = w();
78
78
  return e ? e() : typeof MessageChannel == "function" ? new Promise((e) => {
79
79
  let t = new MessageChannel();
80
80
  t.port1.onmessage = () => {
@@ -82,144 +82,103 @@ function S() {
82
82
  }, t.port2.postMessage(void 0);
83
83
  }) : new Promise((e) => setTimeout(e, 0));
84
84
  }
85
- function C() {
85
+ function E() {
86
86
  return {
87
- hasNativeYield: x() !== null,
88
- yield: S
87
+ hasNativeYield: w() !== null,
88
+ yield: T
89
89
  };
90
90
  }
91
91
  //#endregion
92
92
  //#region src/composables/motion/useRAFLoop.ts
93
- var w = "(prefers-reduced-motion: reduce)";
94
- function T() {
93
+ var D = "(prefers-reduced-motion: reduce)";
94
+ function O() {
95
95
  return typeof globalThis.requestAnimationFrame == "function" ? globalThis.requestAnimationFrame.bind(globalThis) : null;
96
96
  }
97
- function E() {
97
+ function k() {
98
98
  return typeof globalThis.cancelAnimationFrame == "function" ? globalThis.cancelAnimationFrame.bind(globalThis) : null;
99
99
  }
100
- function D() {
101
- return typeof document > "u" ? null : document;
102
- }
103
- function O() {
100
+ function A() {
104
101
  return typeof window > "u" ? null : window;
105
102
  }
106
- function k(e, t = {}) {
107
- let { immediate: n = !0, pauseWhenHidden: r = !0, respectReducedMotion: i = !0 } = t, a = m(!1), o = m(!1), l = m(r ? !!D()?.hidden : !1), u = m(!1), f = m(!1), h = s(() => u.value && !a.value && (f.value || l.value || i && o.value || !T())), g = null, _ = null, v = 0, y = 0, b = !1, x = null;
108
- function C() {
109
- return !b && u.value && !f.value && !l.value && !(i && o.value) && !!T();
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;
105
+ function w() {
106
+ return !S && l.value && !f.value && !c.value && !(i && s.value) && !!O();
110
107
  }
111
- function k() {
112
- g !== null && (E()?.(g), g = null), a.value = !1, _ = null;
108
+ function E() {
109
+ h !== null && (k()?.(h), h = null), a.value = !1, v = null;
113
110
  }
114
- function A() {
115
- if (g !== null || !C()) return;
116
- let t = T();
117
- t && (a.value = !0, g = t((t) => {
118
- if (g = null, !C()) {
119
- k();
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();
120
117
  return;
121
118
  }
122
- let n = _ === null ? 0 : Math.max(0, t - _);
123
- _ = t, v += n, e({
119
+ let n = v === null ? 0 : Math.max(0, t - v);
120
+ v = t, b += n, e({
124
121
  now: t,
125
122
  delta: n,
126
- elapsed: v,
127
- frame: y++
128
- }), C() ? A() : k();
123
+ elapsed: b,
124
+ frame: x++
125
+ }), w() ? j() : E();
129
126
  }));
130
127
  }
131
- function j() {
132
- C() ? A() : k();
133
- }
134
128
  function M() {
135
- _ = null, v = 0, y = 0;
129
+ w() ? j() : E();
136
130
  }
137
131
  function N() {
138
- b || (M(), u.value = !0, f.value = !1, j());
132
+ v = null, b = 0, x = 0;
139
133
  }
140
134
  function P() {
141
- u.value = !1, f.value = !1, M(), k();
135
+ S || (N(), l.value = !0, f.value = !1, M());
142
136
  }
143
137
  function F() {
144
- u.value && (f.value = !0, j());
138
+ l.value = !1, f.value = !1, N(), E();
145
139
  }
146
140
  function I() {
147
- b || (f.value = !1, j());
141
+ l.value && (f.value = !0, M());
148
142
  }
149
143
  function L() {
150
- l.value = r ? !!D()?.hidden : !1, j();
144
+ S || (f.value = !1, M());
145
+ }
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
151
  }
152
- let R = D();
153
- if (R && r && R.addEventListener("visibilitychange", L), i) {
154
- let e = O(), t = typeof e?.matchMedia == "function" ? e.matchMedia(w) : null;
152
+ if (i) {
153
+ let e = A(), t = typeof e?.matchMedia == "function" ? e.matchMedia(D) : null;
155
154
  if (t) {
156
155
  let e = (e) => {
157
- o.value = e.matches, j();
156
+ s.value = e.matches, M();
158
157
  };
159
- o.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));
160
- }
161
- }
162
- function z() {
163
- b || (b = !0, P(), R?.removeEventListener("visibilitychange", L), x?.(), x = null);
164
- }
165
- return c() && d(z), n && N(), {
166
- isActive: p(a),
167
- isPaused: p(h),
168
- isReducedMotion: p(o),
169
- start: N,
170
- stop: P,
171
- pause: F,
172
- resume: I,
173
- dispose: z,
174
- yieldToMain: S
175
- };
176
- }
177
- //#endregion
178
- //#region src/composables/motion/useStagger.ts
179
- function A() {
180
- return typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches;
181
- }
182
- function j(e) {
183
- 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 = m(Array(t).fill(!1)), s = m(t === 0), c = /* @__PURE__ */ new Set();
184
- function l() {
185
- for (let e of c) clearTimeout(e);
186
- c.clear();
187
- }
188
- function u() {
189
- l(), o.value = Array(t).fill(!1), s.value = t === 0;
190
- }
191
- function f() {
192
- o.value = Array(t).fill(!0), s.value = !0;
193
- }
194
- function p() {
195
- if (u(), t === 0) {
196
- s.value = !0;
197
- return;
198
- }
199
- if (a && A()) {
200
- f();
201
- return;
202
- }
203
- for (let e = 0; e < t; e++) {
204
- let i = e, a = setTimeout(() => {
205
- let e = o.value.slice();
206
- e[i] = !0, o.value = e, c.delete(a), i === t - 1 && (s.value = !0);
207
- }, r + i * n);
208
- c.add(a);
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));
209
159
  }
210
160
  }
211
- return i && p(), d(l), {
212
- revealed: o,
213
- start: p,
214
- reset: u,
215
- isComplete: s
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
216
174
  };
217
175
  }
218
176
  //#endregion
219
177
  //#region src/composables/motion/usePrioritizedTask.ts
220
178
  function M() {
179
+ if (!t()) return null;
221
180
  let e = globalThis.scheduler;
222
- return typeof e?.postTask == "function" ? e.postTask.bind(e) : null;
181
+ return e?.postTask?.bind(e) ?? null;
223
182
  }
224
183
  function N() {
225
184
  let e = /* @__PURE__ */ Error("The task was aborted.");
@@ -286,4 +245,4 @@ function L(e) {
286
245
  };
287
246
  }
288
247
  //#endregion
289
- export { o as DAMPING, a as SNAP_THRESHOLD, F as postTaskSafe, r as startViewTransition, n as supportsViewTransitions, i as useIntersectionPause, L as usePrioritizedTask, k as useRAFLoop, b as useScrollProgress, j as useStagger, v as useStaggerReveal, C as useYieldToMain, S 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 };
package/dist/motion.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { n as e, t } from "./useSpringMount-CnizvZGm.js";
2
- import { n, t as r } from "./constants-DfWPi8kh.js";
3
- import { t as i } from "./useAnimatedNumber-BOxrS3a6.js";
4
- import { computed as a, onBeforeUnmount as o, ref as s, shallowRef as c } from "vue";
2
+ import { n, t as r } from "./constants-DsCdlK9I.js";
3
+ import { t as i } from "./useAnimatedNumber-BF6r64lA.js";
4
+ import { onBeforeUnmount as a, onScopeDispose as o, ref as s, shallowRef as c } from "vue";
5
5
  import { NumericAnimation as l } from "@mkbabb/keyframes.js";
6
6
  //#region src/composables/motion/useSpringPress.ts
7
7
  function u(t = {}) {
@@ -36,8 +36,8 @@ function u(t = {}) {
36
36
  //#endregion
37
37
  //#region src/composables/motion/useNumericTransition.ts
38
38
  function d(e) {
39
- let t = s(0), n = s(!1), { from: r, to: i, duration: a, timingFunction: u, onFrame: d } = e, f = c(new l([r, i], {
40
- duration: a,
39
+ let t = s(0), n = s(!1), { from: r, to: i, duration: o, timingFunction: u, onFrame: d } = e, f = c(new l([r, i], {
40
+ duration: o,
41
41
  timingFunction: u
42
42
  }));
43
43
  async function p() {
@@ -61,7 +61,7 @@ function d(e) {
61
61
  function m() {
62
62
  f.value.stop(), n.value = !1;
63
63
  }
64
- return o(() => {
64
+ return a(() => {
65
65
  m();
66
66
  }), {
67
67
  start: p,
@@ -71,14 +71,62 @@ function d(e) {
71
71
  };
72
72
  }
73
73
  //#endregion
74
- //#region src/composables/motion/useAnimatedNumberMap.ts
75
- function f(e) {
76
- let { keys: t, source: n, ...r } = e, o = {};
77
- for (let e of t) {
78
- let t = n(e), { current: s } = i(() => t.value, r);
79
- o[e] = a(() => t.value === null ? null : s.value);
74
+ //#region src/composables/motion/useCountup.ts
75
+ function f() {
76
+ return typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches;
77
+ }
78
+ function p(e, t) {
79
+ let { easeFn: n, skip: r } = t, i = /* @__PURE__ */ new Map();
80
+ function a(e) {
81
+ let t = i.get(e);
82
+ t && (t.stop(), i.delete(e));
83
+ }
84
+ function s(e) {
85
+ e.querySelectorAll("[data-countup]").forEach((e) => {
86
+ 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");
87
+ if (a(e), f()) {
88
+ e.textContent = String(t);
89
+ return;
90
+ }
91
+ e.textContent = "0";
92
+ let s = new l([{ v: 0 }, { v: t }], {
93
+ duration: r,
94
+ timingFunction: n
95
+ });
96
+ i.set(e, s);
97
+ let c = () => {
98
+ i.get(e) === s && s.play((t) => {
99
+ e.textContent = String(Math.round(t.v));
100
+ }).then(() => {
101
+ i.get(e) === s && (e.textContent = String(t), i.delete(e));
102
+ });
103
+ };
104
+ if (o > 0) {
105
+ let e = setTimeout(c, o), t = s.stop.bind(s);
106
+ s.stop = () => {
107
+ clearTimeout(e), t();
108
+ };
109
+ } else c();
110
+ });
111
+ }
112
+ function c() {
113
+ if (r?.()) return;
114
+ let t = e.value?.querySelector("[data-state=\"active\"]");
115
+ t && s(t);
80
116
  }
81
- return o;
117
+ function u() {
118
+ document.querySelectorAll("[data-countup]").forEach((e) => {
119
+ a(e), e.textContent = e.getAttribute("data-countup") ?? e.textContent;
120
+ });
121
+ }
122
+ function d() {
123
+ for (let e of [...i.keys()]) a(e);
124
+ }
125
+ return o(d), {
126
+ runActive: c,
127
+ settle: u,
128
+ cancel: d
129
+ };
82
130
  }
83
131
  //#endregion
84
- export { r as DAMPING, n as SNAP_THRESHOLD, i as useAnimatedNumber, f as useAnimatedNumberMap, d as useNumericTransition, e as useSpring, t as useSpringMount, u as useSpringPress };
132
+ export { r as DAMPING, n as SNAP_THRESHOLD, i as useAnimatedNumber, p as useCountup, d as useNumericTransition, e as useSpring, t as useSpringMount, u as useSpringPress };
@@ -1,2 +1,2 @@
1
- import { a as e, i as t, n, r, t as i } from "./NumberFieldContent-B6L6YrQz.js";
1
+ import { a as e, i as t, n, r, t as i } from "./NumberFieldContent-iOTQ5rGO.js";
2
2
  export { e as NumberField, i as NumberFieldContent, n as NumberFieldDecrement, r as NumberFieldIncrement, t as NumberFieldInput };
@@ -1,2 +1,2 @@
1
- import { t as e } from "./PaperBackdrop-Ds-wDsKf.js";
1
+ import { t as e } from "./PaperBackdrop-D_YZW47j.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-CxEEUL7Y.js";
1
+ import { n as e, r as t, t as n } from "./PopoverContent-B8WtJECb.js";
2
2
  export { t as Popover, n as PopoverContent, e as PopoverTrigger };
@@ -1,4 +1,4 @@
1
- //#region src/components/custom/aurora/presets.ts
1
+ //#region src/components/custom/aurora/constants/presets.ts
2
2
  var e = 6, t = 8, n = {
3
3
  palette: [
4
4
  {