@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
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-pBY8sYfV.js";
3
- import { i as n, n as r, r as i, t as a } from "./dockContext-DM58L1Jt.js";
4
- import { t as o } from "./useTouchGate-XX8gHfay.js";
5
- import { t as s } from "./useViewTransition-CUJM7fXT.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,10 +265,6 @@ 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" },
@@ -226,152 +273,152 @@ var te = [
226
273
  containerName: {}
227
274
  },
228
275
  setup(e, { expose: t }) {
229
- let n = e, i = l(() => {
276
+ let n = e, i = h(() => {
230
277
  if (n.containerName) return {
231
278
  "container-type": "inline-size",
232
- "container-name": n.containerName,
233
- overflow: "visible"
279
+ "container-name": n.containerName
234
280
  };
235
- }), 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.overflow === "scroll" ? d.value === "vertical" ? "dock-scroll-y" : "dock-scroll-x" : null), g = l(() => n.alwaysExpanded || d.value === "vertical"), _ = l(() => n.fitContent || n.variant === "rail" || n.variant === "instrument-strip"), v = D(!1), y = o(n.collapseDelay), w = `glass-dock-${P()}`, E = null, { expanded: O, isPinned: A, isHeld: j, onMouseEnter: N, onMouseLeave: F, onFocusIn: R, onFocusOut: z, onClickCollapsed: B, keepOpen: V, release: H, expand: U, collapse: W } = 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({
236
282
  collapseDelay: n.collapseDelay,
237
283
  rootEl: a,
238
- alwaysExpanded: g,
239
- isTransitioning: v,
240
- dockId: w
284
+ alwaysExpanded: p,
285
+ isTransitioning: g,
286
+ dockId: b
241
287
  });
242
- r({
243
- id: w,
244
- orientation: d,
245
- keepOpen: V,
246
- release: H,
247
- held: j
288
+ o({
289
+ id: b,
290
+ orientation: u,
291
+ keepOpen: B,
292
+ release: U,
293
+ held: k
248
294
  });
249
- let K = l(() => g.value || O.value), { onTransitionEnd: q } = G({
295
+ let K = h(() => p.value || C.value), { onTransitionEnd: q } = re({
250
296
  containerEl: s,
251
- activeLayer: l(() => K.value ? "full" : "summary"),
252
- axis: l(() => "horizontal")
253
- }), J = typeof document < "u" && "startViewTransition" in document, Y = l(() => J ? {
254
- "view-transition-name": w.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, "-"),
255
301
  "view-transition-class": "gl-dock-layer"
256
302
  } : void 0);
257
- function X(e) {
303
+ function Y(e) {
258
304
  let t = e.trim();
259
305
  return t ? t.endsWith("ms") ? Number.parseFloat(t) : t.endsWith("s") ? Number.parseFloat(t) * 1e3 : Number.parseFloat(t) || 0 : 0;
260
306
  }
261
- function ie(e) {
262
- let t = getComputedStyle(e), n = t.transitionDuration.split(",").map(X), r = t.transitionDelay.split(",").map(X);
307
+ function te(e) {
308
+ let t = getComputedStyle(e), n = t.transitionDuration.split(",").map(Y), r = t.transitionDelay.split(",").map(Y);
263
309
  return Math.max(0, ...n.map((e, t) => e + (r[t] ?? r[0] ?? 0)));
264
310
  }
265
- function Z() {
266
- E &&= (clearTimeout(E), null);
311
+ function X() {
312
+ x &&= (clearTimeout(x), null);
267
313
  }
268
- function ae() {
314
+ let Z = new Set([
315
+ "width",
316
+ "height",
317
+ "padding",
318
+ "transform"
319
+ ]);
320
+ function se() {
269
321
  let e = a.value;
270
- e && (Z(), v.value = !0, E = setTimeout(() => {
271
- v.value = !1, E = null;
272
- }, ie(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);
273
327
  }
274
328
  function Q(e) {
275
- e.target === a.value && (Z(), v.value = !1);
329
+ e.target === a.value && Z.has(e.propertyName) && (X(), S++, g.value = !1);
276
330
  }
277
- C(() => {
278
- (n.alwaysExpanded || !n.startCollapsed) && U();
331
+ O(() => {
332
+ (n.alwaysExpanded || !n.startCollapsed) && W();
279
333
  });
280
334
  function $() {
281
- return d.value === "horizontal" && !g.value;
335
+ return u.value === "horizontal" && !p.value;
282
336
  }
283
- function oe(e) {
337
+ function ce(e) {
284
338
  if (!$() || K.value) return;
285
339
  let t = a.value, n = e.touches[0];
286
- !t || !n || y.handleTouchStart(t, n.clientY) || (e.preventDefault(), e.stopPropagation());
340
+ !t || !n || _.handleTouchStart(t, n.clientY);
287
341
  }
288
- function se(e) {
289
- $() && y.handleScrollCheck(e);
342
+ function le(e) {
343
+ $() && _.handleScrollCheck(e);
290
344
  }
291
- function ce(e) {
345
+ function ue() {
292
346
  if (!$()) return;
293
- let t = y.isActive.value;
294
- y.handleTouchEnd(), !t && y.isActive.value && !K.value && (e.preventDefault(), e.stopPropagation(), U());
347
+ let e = _.isActive.value;
348
+ _.handleTouchEnd(), !e && _.isActive.value && !K.value && W();
295
349
  }
296
- return L(y.isActive, (e) => {
297
- !e && O.value && !A.value && !g.value && W();
298
- }), L(K, (e) => {
299
- ae(), e || y.deactivate();
300
- }), S(Z), t({
301
- expanded: O,
302
- isPinned: A,
303
- isHeld: j,
304
- isTransitioning: v,
305
- expand: U,
306
- collapse: W,
307
- keepOpen: V,
308
- release: H
309
- }), (t, n) => (T(), f("div", {
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,
361
+ keepOpen: B,
362
+ release: U
363
+ }), (t, n) => (A(), v("div", {
310
364
  ref_key: "dockEl",
311
365
  ref: a,
312
- class: b(["glass-dock", [
313
- d.value,
366
+ class: T(["glass-dock", [
367
+ u.value,
314
368
  `variant-${c.value}`,
315
- `shape-${u.value}`,
316
- h.value,
369
+ `shape-${l.value}`,
370
+ f.value,
317
371
  {
318
372
  expanded: K.value,
319
373
  collapsed: !K.value,
320
- pinned: M(A),
321
- "fit-content": _.value,
322
- "always-expanded": g.value,
323
- "dock-wrap": e.wrap
374
+ pinned: L(w),
375
+ "fit-content": m.value,
376
+ "always-expanded": p.value,
377
+ "dock-overflow-wrap": e.overflow === "wrap"
324
378
  },
325
379
  e.position === "fixed" ? "fixed bottom-[var(--dock-pos)] left-1/2 -translate-x-1/2" : e.position === "sticky" ? "dock-sticky" : "dock-inline"
326
380
  ]]),
327
- "data-density": m.value,
328
- "data-held": M(j) || void 0,
381
+ "data-density": d.value,
382
+ "data-held": L(k) || void 0,
329
383
  "data-container-name": e.containerName || void 0,
330
- style: x(i.value),
331
- onMouseenter: n[2] ||= (...e) => M(N) && M(N)(...e),
332
- onMouseleave: n[3] ||= (e) => M(F)(e),
333
- onFocusin: n[4] ||= (...e) => M(R) && M(R)(...e),
334
- onFocusout: n[5] ||= (...e) => M(z) && M(z)(...e),
335
- onTouchstart: oe,
336
- onTouchmove: se,
337
- onTouchend: ce,
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,
338
392
  onTransitionend: Q,
339
393
  onTransitioncancel: Q
340
- }, [d.value === "horizontal" ? (T(), f("div", {
394
+ }, [u.value === "horizontal" ? (A(), v("div", {
341
395
  key: 0,
342
396
  ref_key: "layersEl",
343
397
  ref: s,
344
398
  class: "dock-layers",
345
- style: x(Y.value),
346
- onTransitionend: n[1] ||= (...e) => M(q) && M(q)(...e)
347
- }, [p("div", {
348
- class: b(["dock-layer dock-layer--full", { "layer-active": K.value }]),
349
- inert: !M(O) || void 0
350
- }, [k(t.$slots, "default")], 10, ne), p("div", {
351
- class: b(["dock-layer dock-layer--summary", { "layer-active": !K.value }]),
352
- inert: M(O) || void 0,
353
- onClick: n[0] ||= (...e) => M(B) && M(B)(...e)
354
- }, [k(t.$slots, "collapsed")], 10, re)], 36)) : k(t.$slots, "default", { key: 1 })], 46, te));
355
- }
356
- }), q = Symbol("glass-ui:dock-layer-group");
357
- function J(e) {
358
- E(q, e);
359
- }
360
- function Y() {
361
- let e = g(q);
362
- if (!e) throw Error("[glass-ui:dock] <DockLayer> must be used inside <DockLayerGroup>");
363
- 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);
364
414
  }
415
+ var ce = Q.use;
416
+ Q.useOptional;
365
417
  //#endregion
366
418
  //#region src/components/custom/dock/DockLayerGroup.vue?vue&type=script&setup=true&lang.ts
367
- var X = [
368
- "title",
369
- "aria-label",
370
- "aria-pressed",
371
- "onClick"
372
- ], ie = { key: 1 }, Z = { key: 2 }, ae = /* @__PURE__ */ h({
419
+ var le = { key: 1 }, ue = { key: 2 }, de = /* @__PURE__ */ x({
373
420
  __name: "DockLayerGroup",
374
- props: /* @__PURE__ */ _({
421
+ props: /* @__PURE__ */ S({
375
422
  orientation: {},
376
423
  showRail: {
377
424
  type: Boolean,
@@ -384,53 +431,83 @@ var X = [
384
431
  }),
385
432
  emits: ["update:active"],
386
433
  setup(e) {
387
- 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");
388
435
  function s(e) {
389
- 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);
390
437
  }
391
- function m(e) {
392
- a.value = a.value.filter((t) => t.id !== e);
438
+ function c(e) {
439
+ i.value = i.value.filter((t) => t.id !== e);
393
440
  }
394
- 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({
395
442
  containerEl: o,
396
- activeLayer: r,
397
- axis: h
398
- }), y = typeof document < "u" && "startViewTransition" in document, S = P(), C = l(() => y ? {
399
- "view-transition-name": `gl-dock-stack-${S.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, "-")}`,
400
447
  "view-transition-class": "gl-dock-layer"
401
448
  } : void 0);
402
- J({
449
+ $({
403
450
  register: s,
404
- unregister: m,
405
- currentLayerId: _,
406
- leavingLayerId: v
451
+ unregister: c,
452
+ currentLayerId: j(S),
453
+ leavingLayerId: j(C)
407
454
  });
408
- function w(e) {
455
+ function k(e) {
409
456
  return typeof e == "object" && !!e;
410
457
  }
411
- 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", {
412
- key: 0,
413
- class: b(["dock-layer-rail", e.railPosition])
414
- }, [(T(!0), f(c, null, O(a.value, (e) => (T(), f("button", {
415
- key: e.id,
416
- type: "button",
417
- class: b(["dock-layer-tab", { "is-active": r.value === e.id }]),
418
- title: e.label,
419
- "aria-label": e.label ?? e.id,
420
- "aria-pressed": r.value === e.id,
421
- onClick: (t) => r.value = e.id
422
- }, [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), {
423
467
  key: 0,
424
- class: "size-4"
425
- })) : typeof e.icon == "string" ? (T(), f("span", ie, j(e.icon), 1)) : (T(), f("span", Z, 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", {
426
499
  ref_key: "containerEl",
427
500
  ref: o,
428
501
  class: "dock-layer-stack",
429
- style: x(C.value),
430
- onTransitionend: n[0] ||= (...e) => M(g) && M(g)(...e)
431
- }, [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));
432
505
  }
433
- }), Q = ["inert"], $ = /* @__PURE__ */ h({
506
+ }), fe = [
507
+ "inert",
508
+ "aria-hidden",
509
+ "tabindex"
510
+ ], pe = /* @__PURE__ */ x({
434
511
  __name: "DockLayer",
435
512
  props: {
436
513
  id: {},
@@ -438,26 +515,35 @@ var X = [
438
515
  icon: {}
439
516
  },
440
517
  setup(e) {
441
- let t = e, n = Y();
442
- C(() => {
518
+ let t = e, n = ce();
519
+ O(() => {
443
520
  n.register({
444
521
  id: t.id,
445
522
  label: t.label,
446
523
  icon: t.icon
447
524
  });
448
- }), S(() => {
525
+ }), D(() => {
449
526
  n.unregister(t.id);
450
527
  });
451
- let r = l(() => n.currentLayerId.value === t.id), i = l(() => n.leavingLayerId.value === t.id);
452
- return (e, t) => (T(), f("div", {
453
- 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", {
454
538
  "is-active": r.value,
455
539
  "is-leaving": i.value
456
540
  }]),
457
- inert: r.value ? void 0 : !0
458
- }, [k(e.$slots, "default")], 10, Q));
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));
459
545
  }
460
- }), oe = /* @__PURE__ */ h({
546
+ }), me = /* @__PURE__ */ x({
461
547
  __name: "DockIconButton",
462
548
  props: {
463
549
  compact: {
@@ -479,23 +565,76 @@ var X = [
479
565
  ] }
480
566
  },
481
567
  setup(t) {
482
- let n = t, r = l(() => e("dock-icon-button", { "dock-icon-button--compact": n.compact }, n.class)), i = l(() => !n.asChild && n.as === "button" ? n.type : void 0);
483
- return (e, n) => (T(), u(M(B), {
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({
484
582
  as: t.as,
485
- "as-child": t.asChild,
486
- type: i.value,
487
- class: b(r.value)
488
- }, {
489
- default: R(() => [k(e.$slots, "default")]),
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")]),
490
590
  _: 3
491
- }, 8, [
591
+ }, 16, [
492
592
  "as",
493
593
  "as-child",
494
- "type",
495
- "class"
594
+ "class",
595
+ "style"
496
596
  ]));
497
597
  }
498
- }), se = /* @__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({
499
638
  __name: "DockTabButton",
500
639
  props: {
501
640
  as: { default: "button" },
@@ -512,13 +651,13 @@ var X = [
512
651
  ] }
513
652
  },
514
653
  setup(t) {
515
- let n = t, r = N(), i = l(() => r["data-tier"] === "primary"), a = l(() => e("dock-tab-button", i.value && "btn-audacious", n.class));
516
- 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), {
517
656
  as: t.as,
518
657
  "as-child": t.asChild,
519
- class: b(a.value)
658
+ class: T(a.value)
520
659
  }, {
521
- default: R(() => [k(e.$slots, "default")]),
660
+ default: U(() => [P(e.$slots, "default")]),
522
661
  _: 3
523
662
  }, 8, [
524
663
  "as",
@@ -526,7 +665,7 @@ var X = [
526
665
  "class"
527
666
  ]));
528
667
  }
529
- }), ce = /* @__PURE__ */ h({
668
+ }), _e = /* @__PURE__ */ x({
530
669
  __name: "DockSelectTrigger",
531
670
  props: {
532
671
  disabled: { type: Boolean },
@@ -541,20 +680,20 @@ var X = [
541
680
  Array
542
681
  ] }
543
682
  },
544
- setup(n) {
545
- let r = n, i = U(l(() => {
683
+ setup(t) {
684
+ let r = t, i = J(h(() => {
546
685
  let { class: e, ...t } = r;
547
686
  return t;
548
687
  }));
549
- return (n, a) => (T(), u(M(H), v(M(i), { class: M(e)("dock-select-trigger", r.class) }), {
550
- default: R(() => [k(n.$slots, "default"), m(M(V), { "as-child": "" }, {
551
- 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" })])]),
552
691
  _: 3
553
692
  })]),
554
693
  _: 3
555
694
  }, 16, ["class"]));
556
695
  }
557
- }), le = /* @__PURE__ */ h({
696
+ }), ve = /* @__PURE__ */ x({
558
697
  __name: "DockDropdownTrigger",
559
698
  props: {
560
699
  disabled: { type: Boolean },
@@ -570,15 +709,15 @@ var X = [
570
709
  ] }
571
710
  },
572
711
  setup(t) {
573
- let n = t, r = U(l(() => {
712
+ let n = t, r = J(h(() => {
574
713
  let { class: e, ...t } = n;
575
714
  return t;
576
715
  }));
577
- return (t, i) => (T(), u(M(z), v(M(r), { class: M(e)("dock-dropdown-trigger", n.class) }), {
578
- 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")]),
579
718
  _: 3
580
719
  }, 16, ["class"]));
581
720
  }
582
721
  });
583
722
  //#endregion
584
- export { a as DOCK_CONTEXT_KEY, le as DockDropdownTrigger, oe as DockIconButton, $ as DockLayer, ae as DockLayerGroup, ce as DockSelectTrigger, se 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 };