@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
package/dist/dock.js CHANGED
@@ -1,25 +1,48 @@
1
1
  import { t as e } from "./cn-DJXf4yaB.js";
2
- import { t } from "./chevron-down-DILQA1t6.js";
3
- import { i as n, n as r, r as i, t as a } from "./dockContext-D5NZCWJs.js";
4
- import { t as o } from "./useTouchGate-D9Zvrzyc.js";
5
- import { t as s } from "./useViewTransition-DYIK6Gzb.js";
6
- import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createVNode as m, defineComponent as h, inject as g, mergeModels as _, mergeProps as v, nextTick as y, normalizeClass as b, normalizeStyle as x, onBeforeUnmount as S, onMounted as C, onUnmounted as w, openBlock as T, provide as E, ref as D, renderList as O, renderSlot as k, resolveDynamicComponent as A, toDisplayString as j, unref as M, useAttrs as N, useId as P, useModel as F, useTemplateRef as I, watch as L, withCtx as R } from "vue";
7
- import { DropdownMenuTrigger as z, Primitive as B, SelectIcon as V, SelectTrigger as H, useForwardProps as U } from "reka-ui";
2
+ import { t } from "./createLucideIcon-DuDoe_ra.js";
3
+ import { t as n } from "./chevron-down-pBY8sYfV.js";
4
+ import { t as r } from "./useTouchGate-CS5Csc2h.js";
5
+ import { n as i } from "./createContext-DBMGRlx4.js";
6
+ import { i as a, n as o, r as s, t as c } from "./dockContext-spUj_-E5.js";
7
+ import { i as l, n as u, r as d, t as f } from "./TabsIndicator-DA0x9gPr.js";
8
+ import { t as p } from "./useViewTransition-D4ssvnXZ.js";
9
+ import { Fragment as m, computed as h, createBlock as g, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createVNode as b, defineComponent as x, mergeModels as S, mergeProps as C, nextTick as w, normalizeClass as T, normalizeStyle as E, onBeforeUnmount as D, onMounted as O, onUnmounted as k, openBlock as A, readonly as j, ref as M, renderList as N, renderSlot as P, resolveDynamicComponent as F, toDisplayString as I, unref as L, useAttrs as R, useId as z, useModel as B, useTemplateRef as V, watch as H, withCtx as U } from "vue";
10
+ import { DropdownMenuTrigger as W, Primitive as G, SelectIcon as K, SelectTrigger as q, useForwardProps as J } from "reka-ui";
11
+ import { SpringProgress as ee } from "@mkbabb/keyframes.js";
12
+ var Y = t("pause", [["rect", {
13
+ x: "14",
14
+ y: "3",
15
+ width: "5",
16
+ height: "18",
17
+ rx: "1",
18
+ key: "kaeet6"
19
+ }], ["rect", {
20
+ x: "5",
21
+ y: "3",
22
+ width: "5",
23
+ height: "18",
24
+ rx: "1",
25
+ key: "1wsw3u"
26
+ }]]), te = t("play", [["path", {
27
+ d: "M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",
28
+ key: "10ikf1"
29
+ }]]);
30
+ //#endregion
8
31
  //#region src/components/custom/dock/composables/isTeleportedTarget.ts
9
- function W(e, t) {
32
+ function X(e, t) {
10
33
  if (!(e instanceof Element)) return !1;
11
34
  let n = e.closest("[data-glass-dock-portal]");
12
35
  return n ? t ? n.getAttribute("data-glass-dock-owner") === t : !0 : !1;
13
36
  }
14
37
  //#endregion
15
38
  //#region src/components/custom/dock/composables/useDockState.ts
16
- function ee(e) {
17
- let { collapseDelay: t = 2500, rootEl: n, alwaysExpanded: r = !1, isTransitioning: i, dockId: a, onStateChange: o } = e, s = () => typeof r == "boolean" ? r : r.value, c = s(), u = D(c ? "pinned" : "collapsed"), d = D(c), f = D(c), p = null, m = D(0), h = l(() => m.value > 0), g = null, _ = null, v = !1, y = u.value;
39
+ function ne(e) {
40
+ let { collapseDelay: t = 2500, rootEl: n, alwaysExpanded: r = !1, isTransitioning: i, dockId: a, onStateChange: o } = e, s = () => typeof r == "boolean" ? r : r.value, c = s(), l = M(c ? "pinned" : "collapsed"), u = M(c), d = M(c), f = null, p = M(0), m = h(() => p.value > 0), g = null, _ = null, v = !1, y = l.value;
18
41
  function b() {
19
- s() && (u.value = "pinned"), d.value = u.value !== "collapsed", f.value = u.value === "pinned", o && y !== u.value && o(u.value, y), y = u.value;
42
+ s() && (l.value = "pinned"), u.value = l.value !== "collapsed", d.value = l.value === "pinned", o && y !== l.value && o(l.value, y), y = l.value;
20
43
  }
21
44
  function x() {
22
- p &&= (clearTimeout(p), null);
45
+ f &&= (clearTimeout(f), null);
23
46
  }
24
47
  function S() {
25
48
  _ !== null && (cancelAnimationFrame(_), _ = null);
@@ -27,177 +50,205 @@ function ee(e) {
27
50
  function C() {
28
51
  S(), g?.();
29
52
  }
30
- function T() {
31
- s() || m.value > 0 || (x(), p = setTimeout(() => {
32
- E(), u.value = "collapsed", b();
53
+ function w() {
54
+ s() || p.value > 0 || (x(), f = setTimeout(() => {
55
+ T(), l.value = "collapsed", b();
33
56
  }, t));
34
57
  }
35
- function E() {
58
+ function T() {
36
59
  typeof document > "u" || typeof PointerEvent > "u" || document.body.dispatchEvent(new PointerEvent("pointerdown", {
37
60
  bubbles: !0,
38
61
  composed: !0
39
62
  }));
40
63
  }
41
- function O() {
64
+ function E() {
42
65
  if (s()) {
43
- u.value = "pinned", b();
66
+ l.value = "pinned", b();
44
67
  return;
45
68
  }
46
- v ||= (v = !0, x(), E(), u.value = "collapsed", b(), !1);
69
+ v ||= (v = !0, x(), T(), l.value = "collapsed", b(), !1);
47
70
  }
48
- function k() {
71
+ function D() {
49
72
  if (s()) {
50
- u.value = "pinned", b();
73
+ l.value = "pinned", b();
51
74
  return;
52
75
  }
53
- x(), u.value = "hover", b();
76
+ x(), l.value = "hover", b();
54
77
  }
55
- function A() {
56
- s() || (x(), u.value === "collapsed" && (u.value = "hover", b()));
78
+ function O() {
79
+ s() || (x(), l.value === "collapsed" && (l.value = "hover", b()));
57
80
  }
58
- function j(e) {
59
- if (!s() && u.value === "hover") {
60
- if (m.value > 0) return;
81
+ function A(e) {
82
+ if (!s() && l.value === "hover") {
83
+ if (p.value > 0) return;
61
84
  if (e) {
62
85
  let t = n.value;
63
- if (t && e.relatedTarget instanceof Node && t.contains(e.relatedTarget) || W(e.relatedTarget, a)) return;
86
+ if (t && e.relatedTarget instanceof Node && t.contains(e.relatedTarget) || X(e.relatedTarget, a)) return;
64
87
  }
65
- T();
88
+ w();
66
89
  }
67
90
  }
68
- function M() {
69
- s() || (x(), u.value === "collapsed" && (u.value = "hover", b()));
91
+ function j() {
92
+ s() || (x(), l.value === "collapsed" && (l.value = "hover", b()));
70
93
  }
71
94
  function N(e) {
72
- if (s() || u.value !== "hover" || m.value > 0) return;
95
+ if (s() || l.value !== "hover" || p.value > 0) return;
73
96
  let t = e.currentTarget;
74
- e.relatedTarget && t.contains(e.relatedTarget) || W(e.relatedTarget, a) || T();
97
+ e.relatedTarget && t.contains(e.relatedTarget) || X(e.relatedTarget, a) || w();
75
98
  }
76
99
  function P() {
77
100
  if (s()) {
78
- u.value = "pinned", b();
101
+ l.value = "pinned", b();
79
102
  return;
80
103
  }
81
- x(), u.value = "pinned", b();
104
+ x(), l.value = "pinned", b();
82
105
  }
83
106
  function F() {
84
- m.value++, x();
107
+ p.value++, x();
85
108
  }
86
109
  function I() {
87
- m.value = Math.max(0, m.value - 1), m.value === 0 && u.value === "hover" && (x(), p = setTimeout(() => {
88
- m.value === 0 && u.value === "hover" && T();
110
+ p.value = Math.max(0, p.value - 1), p.value === 0 && l.value === "hover" && (x(), f = setTimeout(() => {
111
+ p.value === 0 && l.value === "hover" && w();
89
112
  }, Math.min(t, 800)));
90
113
  }
91
- function R(e) {
114
+ function L(e) {
92
115
  if (s() || i?.value) return;
93
116
  let t = n.value;
94
- !t || t.contains(e.target) || W(e.target, a) || O();
117
+ !t || t.contains(e.target) || X(e.target, a) || E();
95
118
  }
96
- return L(d, (e) => {
119
+ return H(u, (e) => {
97
120
  e ? (C(), _ = requestAnimationFrame(() => {
98
- _ = null, d.value && (document.addEventListener("pointerdown", R, !0), g = () => {
99
- document.removeEventListener("pointerdown", R, !0), g = null;
121
+ _ = null, u.value && (document.addEventListener("pointerdown", L, !0), g = () => {
122
+ document.removeEventListener("pointerdown", L, !0), g = null;
100
123
  });
101
124
  })) : C();
102
- }), typeof r == "boolean" ? r && (u.value = "pinned", b()) : L(r, (e) => {
125
+ }), typeof r == "boolean" ? r && (l.value = "pinned", b()) : H(r, (e) => {
103
126
  if (e) {
104
- x(), u.value = "pinned", b();
127
+ x(), l.value = "pinned", b();
105
128
  return;
106
129
  }
107
- u.value = "collapsed", b();
108
- }, { immediate: !0 }), w(() => {
130
+ l.value = "collapsed", b();
131
+ }, { immediate: !0 }), k(() => {
109
132
  x(), C();
110
133
  }), {
111
- state: u,
112
- expanded: d,
113
- isPinned: f,
114
- isHeld: h,
115
- onMouseEnter: A,
116
- onMouseLeave: j,
117
- onFocusIn: M,
134
+ state: l,
135
+ expanded: u,
136
+ isPinned: d,
137
+ isHeld: m,
138
+ onMouseEnter: O,
139
+ onMouseLeave: A,
140
+ onFocusIn: j,
118
141
  onFocusOut: N,
119
142
  onClickCollapsed: P,
120
143
  keepOpen: F,
121
144
  release: I,
122
- expand: k,
123
- collapse: O
145
+ expand: D,
146
+ collapse: E
124
147
  };
125
148
  }
126
149
  //#endregion
127
150
  //#region src/components/custom/dock/composables/useLayerTransition.ts
128
- function G(e) {
129
- let { containerEl: t, activeLayer: n, axis: r } = e, i = typeof document < "u" && "startViewTransition" in document, a = l(() => r?.value === "vertical" ? "height" : "width"), o = (e) => e.getBoundingClientRect()[a.value], c = D(n.value), u = D(null), d = 0, f = null;
130
- function p(e) {
151
+ var Z = {
152
+ response: .5,
153
+ dampingFraction: .5
154
+ };
155
+ function re(e) {
156
+ let { containerEl: t, activeLayer: n, axis: r } = e, i = typeof document < "u" && "startViewTransition" in document, a = h(() => r?.value === "vertical" ? "height" : "width"), o = (e) => e.getBoundingClientRect()[a.value], s = M(n.value), c = M(null), l = 0, u = null, d = null, f = null;
157
+ function m() {
158
+ d &&= (d.dispose(), null), f = null;
159
+ }
160
+ function g(e) {
131
161
  let t = e.trim();
132
162
  return t ? t.endsWith("ms") ? Number.parseFloat(t) : t.endsWith("s") ? Number.parseFloat(t) * 1e3 : Number.parseFloat(t) || 0 : 0;
133
163
  }
134
- function m(e) {
135
- let t = getComputedStyle(e), n = t.transitionProperty.split(",").map((e) => e.trim()), r = t.transitionDuration.split(",").map(p), i = t.transitionDelay.split(",").map(p), o = r.map((e, t) => {
164
+ function _(e) {
165
+ let t = getComputedStyle(e), n = t.transitionProperty.split(",").map((e) => e.trim()), r = t.transitionDuration.split(",").map(g), i = t.transitionDelay.split(",").map(g), o = r.map((e, t) => {
136
166
  let r = n[t] ?? n[0] ?? "all";
137
167
  return r !== "all" && r !== a.value ? 0 : e + (i[t] ?? i[0] ?? 0);
138
168
  });
139
169
  return Math.max(0, ...o) + 50;
140
170
  }
141
- function h() {
142
- f &&= (clearTimeout(f), null);
171
+ function v() {
172
+ u &&= (clearTimeout(u), null);
143
173
  }
144
- function g(e, t) {
174
+ function y(e, t) {
145
175
  e.style.setProperty(a.value, t);
146
176
  }
147
- function _(e) {
177
+ function b(e) {
148
178
  e.style.removeProperty(a.value);
149
179
  }
150
- L(n, (e, n) => {
180
+ function x(e) {
181
+ e.style.willChange = a.value;
182
+ }
183
+ function S(e) {
184
+ e.style.willChange = "auto";
185
+ }
186
+ H(n, (e, n) => {
151
187
  if (e === n) return;
152
188
  let r = t.value;
153
189
  if (!r) {
154
- c.value = e, u.value = null;
190
+ s.value = e, c.value = null;
155
191
  return;
156
192
  }
157
193
  if (i) {
158
- h();
159
- let t = ++d, { finished: r } = s(() => {
160
- u.value = n, c.value = e;
194
+ v();
195
+ let t = ++l, { finished: r } = p(() => {
196
+ c.value = n, s.value = e;
161
197
  });
162
198
  r.finally(() => {
163
- t === d && (u.value = null);
199
+ t === l && (c.value = null);
164
200
  });
165
201
  return;
166
202
  }
167
- h();
168
- let a = ++d, l = o(r);
169
- g(r, `${l}px`), u.value = n, c.value = e, y(() => {
170
- if (a !== d || !r) return;
171
- r.style.transition = "none", _(r);
172
- let e = o(r);
173
- if (g(r, `${l}px`), r.offsetWidth, r.style.transition = "", requestAnimationFrame(() => {
174
- a === d && g(r, `${e}px`);
175
- }), Math.abs(e - l) < .5) {
176
- _(r), u.value = null;
177
- return;
178
- }
179
- f = setTimeout(() => {
180
- a === d && (_(r), u.value = null);
181
- }, m(r));
203
+ if (typeof window < "u" && window.matchMedia?.("(prefers-reduced-motion: reduce)").matches) {
204
+ v(), ++l, s.value = e, c.value = null;
205
+ return;
206
+ }
207
+ v();
208
+ let a = ++l, h = d !== null && f === r && !d.settled ? d : null, g = h ? h.value : o(r);
209
+ h || (m(), y(r, `${g}px`)), w(() => {
210
+ a === l && r && requestAnimationFrame(() => {
211
+ if (a !== l) return;
212
+ c.value = n, s.value = e, r.style.transition = "none", b(r);
213
+ let t = o(r);
214
+ if (y(r, `${g}px`), r.offsetWidth, !h && Math.abs(t - g) < .5) {
215
+ r.style.transition = "", b(r), S(r), c.value = null;
216
+ return;
217
+ }
218
+ x(r), h || (d = new ee({
219
+ response: Z.response,
220
+ dampingFraction: Z.dampingFraction,
221
+ initial: g,
222
+ respectReducedMotion: !0
223
+ }), f = r);
224
+ let i = d;
225
+ i.target = t, i.play((e) => {
226
+ a === l && (y(r, `${e}px`), i.settled && (r.style.transition = "", b(r), S(r), c.value = null, m()));
227
+ }), u = setTimeout(() => {
228
+ a === l && (r.style.transition = "", b(r), S(r), c.value = null, m());
229
+ }, _(r));
230
+ });
182
231
  });
183
232
  });
184
- function v(e) {
233
+ function C(e) {
185
234
  let n = t.value;
186
- n && e.target === n && e.propertyName === a.value && (h(), _(n), u.value = null);
235
+ n && e.target === n && e.propertyName === a.value && (v(), m(), n.style.transition = "", b(n), S(n), c.value = null);
187
236
  }
188
- return w(h), {
189
- onTransitionEnd: v,
190
- currentLayer: c,
191
- leavingLayer: u
237
+ return k(() => {
238
+ v(), m();
239
+ }), {
240
+ onTransitionEnd: C,
241
+ currentLayer: s,
242
+ leavingLayer: c
192
243
  };
193
244
  }
194
245
  //#endregion
195
246
  //#region src/components/custom/dock/GlassDock.vue?vue&type=script&setup=true&lang.ts
196
- var te = [
247
+ var ie = [
197
248
  "data-density",
198
249
  "data-held",
199
250
  "data-container-name"
200
- ], ne = ["inert"], re = ["inert"], K = /* @__PURE__ */ h({
251
+ ], ae = ["inert"], oe = ["inert"], se = /* @__PURE__ */ x({
201
252
  __name: "GlassDock",
202
253
  props: {
203
254
  collapseDelay: { default: 2e3 },
@@ -214,162 +265,160 @@ var te = [
214
265
  type: Boolean,
215
266
  default: !1
216
267
  },
217
- wrap: {
218
- type: Boolean,
219
- default: !1
220
- },
221
268
  variant: { default: "dock" },
222
269
  shape: { default: "pill" },
223
270
  orientation: { default: "horizontal" },
224
271
  density: { default: "comfortable" },
272
+ overflow: { default: "grow" },
225
273
  containerName: {}
226
274
  },
227
275
  setup(e, { expose: t }) {
228
- let n = e, i = l(() => {
276
+ let n = e, i = h(() => {
229
277
  if (n.containerName) return {
230
278
  "container-type": "inline-size",
231
- "container-name": n.containerName,
232
- overflow: "visible"
279
+ "container-name": n.containerName
233
280
  };
234
- }), a = I("dockEl"), s = I("layersEl"), c = l(() => n.variant), u = l(() => n.shape), d = l(() => n.variant === "rail" || n.variant === "instrument-strip" ? "vertical" : n.orientation), m = l(() => n.density), h = l(() => n.alwaysExpanded || d.value === "vertical"), g = l(() => n.fitContent || n.variant === "rail" || n.variant === "instrument-strip"), _ = D(!1), v = o(n.collapseDelay), y = `glass-dock-${P()}`, w = null, { expanded: E, isPinned: O, isHeld: A, onMouseEnter: j, onMouseLeave: N, onFocusIn: F, onFocusOut: R, onClickCollapsed: z, keepOpen: B, release: V, expand: H, collapse: U } = ee({
281
+ }), a = V("dockEl"), s = V("layersEl"), c = h(() => n.variant), l = h(() => n.shape), u = h(() => n.variant === "rail" || n.variant === "instrument-strip" ? "vertical" : n.orientation), d = h(() => n.density), f = h(() => n.overflow === "scroll" ? u.value === "vertical" ? "dock-scroll-y" : "dock-scroll-x" : null), p = h(() => n.alwaysExpanded || u.value === "vertical"), m = h(() => n.fitContent || n.variant === "rail" || n.variant === "instrument-strip"), g = M(!1), _ = r(n.collapseDelay), b = `glass-dock-${z()}`, x = null, S = 0, { expanded: C, isPinned: w, isHeld: k, onMouseEnter: j, onMouseLeave: N, onFocusIn: F, onFocusOut: I, onClickCollapsed: R, keepOpen: B, release: U, expand: W, collapse: G } = ne({
235
282
  collapseDelay: n.collapseDelay,
236
283
  rootEl: a,
237
- alwaysExpanded: h,
238
- isTransitioning: _,
239
- dockId: y
284
+ alwaysExpanded: p,
285
+ isTransitioning: g,
286
+ dockId: b
240
287
  });
241
- r({
242
- id: y,
243
- orientation: d,
288
+ o({
289
+ id: b,
290
+ orientation: u,
244
291
  keepOpen: B,
245
- release: V,
246
- held: A
292
+ release: U,
293
+ held: k
247
294
  });
248
- let W = l(() => h.value || E.value), { onTransitionEnd: K } = G({
295
+ let K = h(() => p.value || C.value), { onTransitionEnd: q } = re({
249
296
  containerEl: s,
250
- activeLayer: l(() => W.value ? "full" : "summary"),
251
- axis: l(() => "horizontal")
252
- }), q = typeof document < "u" && "startViewTransition" in document, J = l(() => q ? {
253
- "view-transition-name": y.replace(/[^a-zA-Z0-9_-]/g, "-"),
297
+ activeLayer: h(() => K.value ? "full" : "summary"),
298
+ axis: h(() => "horizontal")
299
+ }), J = typeof document < "u" && "startViewTransition" in document, ee = h(() => J ? {
300
+ "view-transition-name": b.replace(/[^a-zA-Z0-9_-]/g, "-"),
254
301
  "view-transition-class": "gl-dock-layer"
255
302
  } : void 0);
256
303
  function Y(e) {
257
304
  let t = e.trim();
258
305
  return t ? t.endsWith("ms") ? Number.parseFloat(t) : t.endsWith("s") ? Number.parseFloat(t) * 1e3 : Number.parseFloat(t) || 0 : 0;
259
306
  }
260
- function X(e) {
307
+ function te(e) {
261
308
  let t = getComputedStyle(e), n = t.transitionDuration.split(",").map(Y), r = t.transitionDelay.split(",").map(Y);
262
309
  return Math.max(0, ...n.map((e, t) => e + (r[t] ?? r[0] ?? 0)));
263
310
  }
264
- function Z() {
265
- w &&= (clearTimeout(w), null);
311
+ function X() {
312
+ x &&= (clearTimeout(x), null);
266
313
  }
267
- function ie() {
314
+ let Z = new Set([
315
+ "width",
316
+ "height",
317
+ "padding",
318
+ "transform"
319
+ ]);
320
+ function se() {
268
321
  let e = a.value;
269
- e && (Z(), _.value = !0, w = setTimeout(() => {
270
- _.value = !1, w = null;
271
- }, X(e) + 50));
322
+ if (!e) return;
323
+ let t = ++S;
324
+ X(), g.value = !0, x = setTimeout(() => {
325
+ t === S && (g.value = !1, x = null);
326
+ }, te(e) + 50);
272
327
  }
273
328
  function Q(e) {
274
- e.target === a.value && (Z(), _.value = !1);
329
+ e.target === a.value && Z.has(e.propertyName) && (X(), S++, g.value = !1);
275
330
  }
276
- C(() => {
277
- (n.alwaysExpanded || !n.startCollapsed) && H();
331
+ O(() => {
332
+ (n.alwaysExpanded || !n.startCollapsed) && W();
278
333
  });
279
334
  function $() {
280
- return d.value === "horizontal" && !h.value;
335
+ return u.value === "horizontal" && !p.value;
281
336
  }
282
- function ae(e) {
283
- if (!$() || W.value) return;
337
+ function ce(e) {
338
+ if (!$() || K.value) return;
284
339
  let t = a.value, n = e.touches[0];
285
- !t || !n || v.handleTouchStart(t, n.clientY) || (e.preventDefault(), e.stopPropagation());
340
+ !t || !n || _.handleTouchStart(t, n.clientY);
286
341
  }
287
- function oe(e) {
288
- $() && v.handleScrollCheck(e);
342
+ function le(e) {
343
+ $() && _.handleScrollCheck(e);
289
344
  }
290
- function se(e) {
345
+ function ue() {
291
346
  if (!$()) return;
292
- let t = v.isActive.value;
293
- v.handleTouchEnd(), !t && v.isActive.value && !W.value && (e.preventDefault(), e.stopPropagation(), H());
347
+ let e = _.isActive.value;
348
+ _.handleTouchEnd(), !e && _.isActive.value && !K.value && W();
294
349
  }
295
- return L(v.isActive, (e) => {
296
- !e && E.value && !O.value && !h.value && U();
297
- }), L(W, (e) => {
298
- ie(), e || v.deactivate();
299
- }), S(Z), t({
300
- expanded: E,
301
- isPinned: O,
302
- isHeld: A,
303
- isTransitioning: _,
304
- expand: H,
305
- collapse: U,
350
+ return H(_.isActive, (e) => {
351
+ !e && C.value && !w.value && !p.value && G();
352
+ }), H(K, (e) => {
353
+ se(), e || _.deactivate();
354
+ }), D(X), t({
355
+ expanded: C,
356
+ isPinned: w,
357
+ isHeld: k,
358
+ isTransitioning: g,
359
+ expand: W,
360
+ collapse: G,
306
361
  keepOpen: B,
307
- release: V
308
- }), (t, n) => (T(), f("div", {
362
+ release: U
363
+ }), (t, n) => (A(), v("div", {
309
364
  ref_key: "dockEl",
310
365
  ref: a,
311
- class: b(["glass-dock", [
312
- d.value,
366
+ class: T(["glass-dock", [
367
+ u.value,
313
368
  `variant-${c.value}`,
314
- `shape-${u.value}`,
369
+ `shape-${l.value}`,
370
+ f.value,
315
371
  {
316
- expanded: W.value,
317
- collapsed: !W.value,
318
- pinned: M(O),
319
- "fit-content": g.value,
320
- "always-expanded": h.value,
321
- "dock-wrap": e.wrap
372
+ expanded: K.value,
373
+ collapsed: !K.value,
374
+ pinned: L(w),
375
+ "fit-content": m.value,
376
+ "always-expanded": p.value,
377
+ "dock-overflow-wrap": e.overflow === "wrap"
322
378
  },
323
379
  e.position === "fixed" ? "fixed bottom-[var(--dock-pos)] left-1/2 -translate-x-1/2" : e.position === "sticky" ? "dock-sticky" : "dock-inline"
324
380
  ]]),
325
- "data-density": m.value,
326
- "data-held": M(A) || void 0,
381
+ "data-density": d.value,
382
+ "data-held": L(k) || void 0,
327
383
  "data-container-name": e.containerName || void 0,
328
- style: x(i.value),
329
- onMouseenter: n[2] ||= (...e) => M(j) && M(j)(...e),
330
- onMouseleave: n[3] ||= (e) => M(N)(e),
331
- onFocusin: n[4] ||= (...e) => M(F) && M(F)(...e),
332
- onFocusout: n[5] ||= (...e) => M(R) && M(R)(...e),
333
- onTouchstart: ae,
334
- onTouchmove: oe,
335
- onTouchend: se,
384
+ style: E(i.value),
385
+ onMouseenter: n[2] ||= (...e) => L(j) && L(j)(...e),
386
+ onMouseleave: n[3] ||= (e) => L(N)(e),
387
+ onFocusin: n[4] ||= (...e) => L(F) && L(F)(...e),
388
+ onFocusout: n[5] ||= (...e) => L(I) && L(I)(...e),
389
+ onTouchstart: ce,
390
+ onTouchmove: le,
391
+ onTouchend: ue,
336
392
  onTransitionend: Q,
337
393
  onTransitioncancel: Q
338
- }, [d.value === "horizontal" ? (T(), f("div", {
394
+ }, [u.value === "horizontal" ? (A(), v("div", {
339
395
  key: 0,
340
396
  ref_key: "layersEl",
341
397
  ref: s,
342
398
  class: "dock-layers",
343
- style: x(J.value),
344
- onTransitionend: n[1] ||= (...e) => M(K) && M(K)(...e)
345
- }, [p("div", {
346
- class: b(["dock-layer dock-layer--full", { "layer-active": W.value }]),
347
- inert: !M(E) || void 0
348
- }, [k(t.$slots, "default")], 10, ne), p("div", {
349
- class: b(["dock-layer dock-layer--summary", { "layer-active": !W.value }]),
350
- inert: M(E) || void 0,
351
- onClick: n[0] ||= (...e) => M(z) && M(z)(...e)
352
- }, [k(t.$slots, "collapsed")], 10, re)], 36)) : k(t.$slots, "default", { key: 1 })], 46, te));
353
- }
354
- }), q = Symbol("glass-ui:dock-layer-group");
355
- function J(e) {
356
- E(q, e);
357
- }
358
- function Y() {
359
- let e = g(q);
360
- if (!e) throw Error("[glass-ui:dock] <DockLayer> must be used inside <DockLayerGroup>");
361
- return e;
399
+ style: E(ee.value),
400
+ onTransitionend: n[1] ||= (...e) => L(q) && L(q)(...e)
401
+ }, [y("div", {
402
+ class: T(["dock-layer dock-layer--full", { "layer-active": K.value }]),
403
+ inert: !L(C) || void 0
404
+ }, [P(t.$slots, "default")], 10, ae), y("div", {
405
+ class: T(["dock-layer dock-layer--summary", { "layer-active": !K.value }]),
406
+ inert: L(C) || void 0,
407
+ onClick: n[0] ||= (...e) => L(R) && L(R)(...e)
408
+ }, [P(t.$slots, "collapsed")], 10, oe)], 36)) : P(t.$slots, "default", { key: 1 })], 46, ie));
409
+ }
410
+ }), Q = i("glass-ui:dock-layer-group", "[glass-ui:dock] <DockLayer> must be used inside <DockLayerGroup>");
411
+ Q.KEY;
412
+ function $(e) {
413
+ Q.provide(e);
362
414
  }
415
+ var ce = Q.use;
416
+ Q.useOptional;
363
417
  //#endregion
364
418
  //#region src/components/custom/dock/DockLayerGroup.vue?vue&type=script&setup=true&lang.ts
365
- var X = [
366
- "title",
367
- "aria-label",
368
- "aria-pressed",
369
- "onClick"
370
- ], Z = { key: 1 }, ie = { key: 2 }, Q = /* @__PURE__ */ h({
419
+ var le = { key: 1 }, ue = { key: 2 }, de = /* @__PURE__ */ x({
371
420
  __name: "DockLayerGroup",
372
- props: /* @__PURE__ */ _({
421
+ props: /* @__PURE__ */ S({
373
422
  orientation: {},
374
423
  showRail: {
375
424
  type: Boolean,
@@ -382,53 +431,83 @@ var X = [
382
431
  }),
383
432
  emits: ["update:active"],
384
433
  setup(e) {
385
- let t = e, r = F(e, "active"), i = n(), a = D([]), o = I("containerEl");
434
+ let t = e, n = B(e, "active"), r = a(), i = M([]), o = V("containerEl");
386
435
  function s(e) {
387
- a.value.find((t) => t.id === e.id) || a.value.push(e);
436
+ i.value.find((t) => t.id === e.id) || i.value.push(e);
388
437
  }
389
- function m(e) {
390
- a.value = a.value.filter((t) => t.id !== e);
438
+ function c(e) {
439
+ i.value = i.value.filter((t) => t.id !== e);
391
440
  }
392
- let h = l(() => t.orientation ?? i?.orientation.value ?? "horizontal"), { onTransitionEnd: g, currentLayer: _, leavingLayer: v } = G({
441
+ let p = h(() => t.orientation ?? r?.orientation.value ?? "horizontal"), { onTransitionEnd: x, currentLayer: S, leavingLayer: C } = re({
393
442
  containerEl: o,
394
- activeLayer: r,
395
- axis: h
396
- }), y = typeof document < "u" && "startViewTransition" in document, S = P(), C = l(() => y ? {
397
- "view-transition-name": `gl-dock-stack-${(S ?? "0").replace(/[^a-zA-Z0-9_-]/g, "-")}`,
443
+ activeLayer: n,
444
+ axis: p
445
+ }), w = typeof document < "u" && "startViewTransition" in document, D = z(), O = h(() => w ? {
446
+ "view-transition-name": `gl-dock-stack-${D.replace(/[^a-zA-Z0-9_-]/g, "-")}`,
398
447
  "view-transition-class": "gl-dock-layer"
399
448
  } : void 0);
400
- J({
449
+ $({
401
450
  register: s,
402
- unregister: m,
403
- currentLayerId: _,
404
- leavingLayerId: v
451
+ unregister: c,
452
+ currentLayerId: j(S),
453
+ leavingLayerId: j(C)
405
454
  });
406
- function w(e) {
455
+ function k(e) {
407
456
  return typeof e == "object" && !!e;
408
457
  }
409
- return (t, n) => (T(), f("div", { class: b(["dock-layer-group", [h.value, `rail-${e.railPosition}`]]) }, [e.showRail && a.value.length > 1 ? (T(), f("nav", {
410
- key: 0,
411
- class: b(["dock-layer-rail", e.railPosition])
412
- }, [(T(!0), f(c, null, O(a.value, (e) => (T(), f("button", {
413
- key: e.id,
414
- type: "button",
415
- class: b(["dock-layer-tab", { "is-active": r.value === e.id }]),
416
- title: e.label,
417
- "aria-label": e.label ?? e.id,
418
- "aria-pressed": r.value === e.id,
419
- onClick: (t) => r.value = e.id
420
- }, [w(e.icon) ? (T(), u(A(e.icon), {
458
+ let R = M(!1);
459
+ function H() {
460
+ R.value || (R.value = !0, r?.keepOpen());
461
+ }
462
+ function W(e) {
463
+ let t = e.relatedTarget, n = e.currentTarget;
464
+ t && n?.contains(t) || R.value && (R.value = !1, r?.release());
465
+ }
466
+ return (t, r) => (A(), v("div", { class: T(["dock-layer-group", [p.value, `rail-${e.railPosition}`]]) }, [e.showRail && i.value.length > 1 ? (A(), g(L(l), {
421
467
  key: 0,
422
- class: "size-4"
423
- })) : typeof e.icon == "string" ? (T(), f("span", Z, j(e.icon), 1)) : (T(), f("span", ie, j((e.label ?? e.id).charAt(0)), 1))], 10, X))), 128))], 2)) : d("", !0), p("div", {
468
+ modelValue: n.value,
469
+ "onUpdate:modelValue": r[0] ||= (e) => n.value = e,
470
+ orientation: "horizontal",
471
+ "as-child": !0
472
+ }, {
473
+ default: U(() => [b(L(u), {
474
+ class: T(["dock-layer-rail", e.railPosition]),
475
+ onFocusin: H,
476
+ onFocusout: W
477
+ }, {
478
+ default: U(() => [(A(!0), v(m, null, N(i.value, (e) => (A(), g(L(d), {
479
+ key: e.id,
480
+ value: e.id,
481
+ class: "dock-layer-tab",
482
+ title: e.label,
483
+ "aria-label": e.label ?? e.id
484
+ }, {
485
+ default: U(() => [k(e.icon) ? (A(), g(F(e.icon), {
486
+ key: 0,
487
+ class: "size-4"
488
+ })) : typeof e.icon == "string" ? (A(), v("span", le, I(e.icon), 1)) : (A(), v("span", ue, I((e.label ?? e.id).charAt(0)), 1))]),
489
+ _: 2
490
+ }, 1032, [
491
+ "value",
492
+ "title",
493
+ "aria-label"
494
+ ]))), 128)), b(L(f), { class: "dock-layer-tab-indicator" })]),
495
+ _: 1
496
+ }, 8, ["class"])]),
497
+ _: 1
498
+ }, 8, ["modelValue"])) : _("", !0), y("div", {
424
499
  ref_key: "containerEl",
425
500
  ref: o,
426
501
  class: "dock-layer-stack",
427
- style: x(C.value),
428
- onTransitionend: n[0] ||= (...e) => M(g) && M(g)(...e)
429
- }, [k(t.$slots, "default")], 36)], 2));
502
+ style: E(O.value),
503
+ onTransitionend: r[1] ||= (...e) => L(x) && L(x)(...e)
504
+ }, [P(t.$slots, "default")], 36)], 2));
430
505
  }
431
- }), $ = ["inert"], ae = /* @__PURE__ */ h({
506
+ }), fe = [
507
+ "inert",
508
+ "aria-hidden",
509
+ "tabindex"
510
+ ], pe = /* @__PURE__ */ x({
432
511
  __name: "DockLayer",
433
512
  props: {
434
513
  id: {},
@@ -436,26 +515,35 @@ var X = [
436
515
  icon: {}
437
516
  },
438
517
  setup(e) {
439
- let t = e, n = Y();
440
- C(() => {
518
+ let t = e, n = ce();
519
+ O(() => {
441
520
  n.register({
442
521
  id: t.id,
443
522
  label: t.label,
444
523
  icon: t.icon
445
524
  });
446
- }), S(() => {
525
+ }), D(() => {
447
526
  n.unregister(t.id);
448
527
  });
449
- let r = l(() => n.currentLayerId.value === t.id), i = l(() => n.leavingLayerId.value === t.id);
450
- return (e, t) => (T(), f("div", {
451
- class: b(["dock-layer-item-host", {
528
+ let r = h(() => n.currentLayerId.value === t.id), i = h(() => n.leavingLayerId.value === t.id), a = V("hostEl");
529
+ return H(r, async (e, t) => {
530
+ !e || t || typeof document < "u" && (() => {
531
+ let e = document.activeElement;
532
+ return !e || e === document.body ? !0 : !!e.closest("[inert]");
533
+ })() && (await w(), a.value?.focus());
534
+ }), (e, t) => (A(), v("div", {
535
+ ref_key: "hostEl",
536
+ ref: a,
537
+ class: T(["dock-layer-item-host", {
452
538
  "is-active": r.value,
453
539
  "is-leaving": i.value
454
540
  }]),
455
- inert: r.value ? void 0 : !0
456
- }, [k(e.$slots, "default")], 10, $));
541
+ inert: r.value ? void 0 : !0,
542
+ "aria-hidden": r.value ? void 0 : !0,
543
+ tabindex: r.value ? -1 : void 0
544
+ }, [P(e.$slots, "default")], 10, fe));
457
545
  }
458
- }), oe = ["type"], se = /* @__PURE__ */ h({
546
+ }), me = /* @__PURE__ */ x({
459
547
  __name: "DockIconButton",
460
548
  props: {
461
549
  compact: {
@@ -463,6 +551,11 @@ var X = [
463
551
  default: !1
464
552
  },
465
553
  type: { default: "button" },
554
+ as: { default: "button" },
555
+ asChild: {
556
+ type: Boolean,
557
+ default: !1
558
+ },
466
559
  class: { type: [
467
560
  Boolean,
468
561
  null,
@@ -472,13 +565,76 @@ var X = [
472
565
  ] }
473
566
  },
474
567
  setup(t) {
475
- let n = t, r = l(() => e("dock-icon-button", { "dock-icon-button--compact": n.compact }, n.class));
476
- return (e, n) => (T(), f("button", {
477
- type: t.type,
478
- class: b(r.value)
479
- }, [k(e.$slots, "default")], 10, oe));
568
+ let n = t, r = h(() => e("dock-icon-button glass-specular-track", { "dock-icon-button--compact": n.compact }, n.class)), i = M({});
569
+ function a(e) {
570
+ let t = e.currentTarget;
571
+ if (!t) return;
572
+ let n = t.getBoundingClientRect();
573
+ if (n.width === 0 || n.height === 0) return;
574
+ let r = (e.clientX - n.left) / n.width * 100, a = (e.clientY - n.top) / n.height * 100;
575
+ i.value = {
576
+ "--mouse-x": `${r.toFixed(2)}%`,
577
+ "--mouse-y": `${a.toFixed(2)}%`
578
+ };
579
+ }
580
+ let o = h(() => !n.asChild && n.as === "button" ? { type: n.type } : {});
581
+ return (e, n) => (A(), g(L(G), C({
582
+ as: t.as,
583
+ "as-child": t.asChild
584
+ }, o.value, {
585
+ class: r.value,
586
+ style: i.value,
587
+ onPointermove: a
588
+ }), {
589
+ default: U(() => [P(e.$slots, "default")]),
590
+ _: 3
591
+ }, 16, [
592
+ "as",
593
+ "as-child",
594
+ "class",
595
+ "style"
596
+ ]));
480
597
  }
481
- }), ce = /* @__PURE__ */ h({
598
+ }), he = /* @__PURE__ */ x({
599
+ __name: "DockBackgroundToggle",
600
+ props: {
601
+ paused: {
602
+ type: Boolean,
603
+ default: !1
604
+ },
605
+ pauseLabel: { default: "Pause background animation" },
606
+ playLabel: { default: "Resume background animation" }
607
+ },
608
+ emits: ["update:paused"],
609
+ setup(e, { emit: t }) {
610
+ let n = e, r = t, i = h(() => n.paused ? n.playLabel : n.pauseLabel);
611
+ function a() {
612
+ r("update:paused", !n.paused);
613
+ }
614
+ return (t, n) => (A(), g(me, {
615
+ type: "button",
616
+ "aria-pressed": e.paused,
617
+ "aria-label": i.value,
618
+ title: i.value,
619
+ onClick: a
620
+ }, {
621
+ default: U(() => [e.paused ? (A(), g(L(te), {
622
+ key: 0,
623
+ size: 18,
624
+ "aria-hidden": "true"
625
+ })) : (A(), g(L(Y), {
626
+ key: 1,
627
+ size: 18,
628
+ "aria-hidden": "true"
629
+ }))]),
630
+ _: 1
631
+ }, 8, [
632
+ "aria-pressed",
633
+ "aria-label",
634
+ "title"
635
+ ]));
636
+ }
637
+ }), ge = /* @__PURE__ */ x({
482
638
  __name: "DockTabButton",
483
639
  props: {
484
640
  as: { default: "button" },
@@ -495,13 +651,13 @@ var X = [
495
651
  ] }
496
652
  },
497
653
  setup(t) {
498
- let n = t, r = N(), i = l(() => r["data-tier"] === "primary"), a = l(() => e("dock-tab-button", i.value && "btn-audacious", n.class));
499
- return (e, n) => (T(), u(M(B), {
654
+ let n = t, r = R(), i = h(() => r["data-tier"] === "primary"), a = h(() => e("dock-tab-button", i.value && "btn-audacious", n.class));
655
+ return (e, n) => (A(), g(L(G), {
500
656
  as: t.as,
501
657
  "as-child": t.asChild,
502
- class: b(a.value)
658
+ class: T(a.value)
503
659
  }, {
504
- default: R(() => [k(e.$slots, "default")]),
660
+ default: U(() => [P(e.$slots, "default")]),
505
661
  _: 3
506
662
  }, 8, [
507
663
  "as",
@@ -509,7 +665,7 @@ var X = [
509
665
  "class"
510
666
  ]));
511
667
  }
512
- }), le = /* @__PURE__ */ h({
668
+ }), _e = /* @__PURE__ */ x({
513
669
  __name: "DockSelectTrigger",
514
670
  props: {
515
671
  disabled: { type: Boolean },
@@ -524,20 +680,20 @@ var X = [
524
680
  Array
525
681
  ] }
526
682
  },
527
- setup(n) {
528
- let r = n, i = U(l(() => {
683
+ setup(t) {
684
+ let r = t, i = J(h(() => {
529
685
  let { class: e, ...t } = r;
530
686
  return t;
531
687
  }));
532
- return (n, a) => (T(), u(M(H), v(M(i), { class: M(e)("dock-select-trigger", r.class) }), {
533
- default: R(() => [k(n.$slots, "default"), m(M(V), { "as-child": "" }, {
534
- default: R(() => [k(n.$slots, "icon", {}, () => [m(M(t), { class: "dock-select-trigger__chevron" })])]),
688
+ return (t, a) => (A(), g(L(q), C(L(i), { class: L(e)("dock-select-trigger", r.class) }), {
689
+ default: U(() => [P(t.$slots, "default"), b(L(K), { "as-child": "" }, {
690
+ default: U(() => [P(t.$slots, "icon", {}, () => [b(L(n), { class: "dock-select-trigger__chevron" })])]),
535
691
  _: 3
536
692
  })]),
537
693
  _: 3
538
694
  }, 16, ["class"]));
539
695
  }
540
- }), ue = /* @__PURE__ */ h({
696
+ }), ve = /* @__PURE__ */ x({
541
697
  __name: "DockDropdownTrigger",
542
698
  props: {
543
699
  disabled: { type: Boolean },
@@ -553,15 +709,15 @@ var X = [
553
709
  ] }
554
710
  },
555
711
  setup(t) {
556
- let n = t, r = U(l(() => {
712
+ let n = t, r = J(h(() => {
557
713
  let { class: e, ...t } = n;
558
714
  return t;
559
715
  }));
560
- return (t, i) => (T(), u(M(z), v(M(r), { class: M(e)("dock-dropdown-trigger", n.class) }), {
561
- default: R(() => [k(t.$slots, "default")]),
716
+ return (t, i) => (A(), g(L(W), C(L(r), { class: L(e)("dock-dropdown-trigger", n.class) }), {
717
+ default: U(() => [P(t.$slots, "default")]),
562
718
  _: 3
563
719
  }, 16, ["class"]));
564
720
  }
565
721
  });
566
722
  //#endregion
567
- export { a as DOCK_CONTEXT_KEY, ue as DockDropdownTrigger, se as DockIconButton, ae as DockLayer, Q as DockLayerGroup, le as DockSelectTrigger, ce as DockTabButton, K as GlassDock, r as provideDockContext, i as useDockContext, n as useOptionalDockContext };
723
+ export { c as DOCK_CONTEXT_KEY, he as DockBackgroundToggle, ve as DockDropdownTrigger, me as DockIconButton, pe as DockLayer, de as DockLayerGroup, _e as DockSelectTrigger, ge as DockTabButton, se as GlassDock, o as provideDockContext, s as useDockContext, a as useOptionalDockContext };