@mkbabb/glass-ui 4.0.0 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (394) hide show
  1. package/README.md +3 -1
  2. package/dist/CardAction-CW7a0m8M.js +253 -0
  3. package/dist/{CommandShortcut-DdtWXxOK.js → CommandShortcut-DvZNQ_HF.js} +4 -4
  4. package/dist/ConfiguratorRow-BR4l-ixA.js +143 -0
  5. package/dist/{ContextMenuContent-ON3x7cuk.js → ContextMenuContent-uWnVxDab.js} +1 -1
  6. package/dist/{ContextMenuSubContent-B0Vs6atR.js → ContextMenuSubContent-xol4sD2q.js} +32 -37
  7. package/dist/{DataTable-C464Zbqd.js → DataTable-CuKwF7wr.js} +4 -4
  8. package/dist/{DialogContent-DDE6pQBU.js → DialogContent-DcKK8k9i.js} +5 -5
  9. package/dist/{DialogFooter-8eZbdmPc.js → DialogFooter-BZNX5aVr.js} +3 -3
  10. package/dist/{FadingScroll-DwNnvKMs.js → FadingScroll-DI6hQhT9.js} +1 -1
  11. package/dist/{HoverCardContent-DkMaQzH5.js → HoverCardContent-b2uaAMRR.js} +1 -1
  12. package/dist/{HoverPopover-Dpzwvc4t.js → HoverPopover-CbqbNwgU.js} +2 -2
  13. package/dist/{IconChip-BDw1j5mu.js → IconChip-BTD-nay5.js} +3 -2
  14. package/dist/{IconTooltip-DSjasZIt.js → IconTooltip-Bl8gFZ8d.js} +1 -1
  15. package/dist/{Input-DVG_J0ne.js → Input-h9v5LeXf.js} +1 -1
  16. package/dist/{MetricBadge-BpC0R_Ec.js → MetricBadge-RHdBP72w.js} +1 -1
  17. package/dist/Notification-VUwexFUf.js +43 -0
  18. package/dist/NumberFieldContent-Cq7EzX-U.js +138 -0
  19. package/dist/{PopoverContent-BTorlp--.js → PopoverContent-DL7E6vJP.js} +4 -4
  20. package/dist/{Progress-hAT4gqGH.js → Progress-DctG61iZ.js} +4 -4
  21. package/dist/{ScrollingText-CUVFTWk2.js → ScrollingText-yOpBzFYq.js} +2 -2
  22. package/dist/{SelectScrollDownButton-C1jb3b3K.js → SelectScrollDownButton-CrA8F0iV.js} +18 -19
  23. package/dist/Toaster-Bw4xR8xV.js +274 -0
  24. package/dist/{ToggleGroupItem-Dzk9hWsF.js → ToggleGroupItem-pEM9vIhs.js} +50 -37
  25. package/dist/{TooltipProvider-B3MkB_8P.js → TooltipProvider-rzvnXz60.js} +1 -1
  26. package/dist/animated-digit.js +2 -2
  27. package/dist/api/index.d.ts +8 -3
  28. package/dist/api/types-extra.d.ts +6 -0
  29. package/dist/aurora.js +885 -242
  30. package/dist/badge.js +1 -1
  31. package/dist/border-progress.d.ts +1 -0
  32. package/dist/border-progress.js +106 -0
  33. package/dist/{button-BNDWhAZb.js → button-DYCUa-tH.js} +71 -26
  34. package/dist/button.js +1 -1
  35. package/dist/canvas.js +2 -2
  36. package/dist/card.js +2 -2
  37. package/dist/carousel.js +93 -110
  38. package/dist/collapsible.js +1 -1
  39. package/dist/command.js +1 -1
  40. package/dist/compile-CQEFRTmx.js +19 -0
  41. package/dist/components/custom/aurora/composables/atoms-fields.d.ts +39 -0
  42. package/dist/components/custom/aurora/composables/auroraFallbackGround.d.ts +108 -0
  43. package/dist/components/custom/aurora/composables/runtime.d.ts +19 -0
  44. package/dist/components/custom/aurora/composables/uniformBridge.d.ts +5 -1
  45. package/dist/components/custom/aurora/composables/uniformBridgeWGPU.d.ts +51 -0
  46. package/dist/components/custom/aurora/composables/wgpuSetup.d.ts +29 -0
  47. package/dist/components/custom/aurora/constants/budget.d.ts +21 -0
  48. package/dist/components/custom/aurora/constants/presets.d.ts +2 -2
  49. package/dist/components/custom/aurora/constants/renderMode.d.ts +63 -12
  50. package/dist/components/custom/aurora/constants/shaders/aurora.wgsl.d.ts +1 -0
  51. package/dist/components/custom/aurora/constants/shaders/oil-modes.glsl.d.ts +1 -0
  52. package/dist/components/custom/aurora/constants/shaders/procedural-color.wgsl.d.ts +4 -0
  53. package/dist/components/custom/aurora/index.d.ts +2 -1
  54. package/dist/components/custom/border-progress/BorderProgress.vue.d.ts +46 -0
  55. package/dist/components/custom/border-progress/composables/useBorderSpectrum.d.ts +22 -0
  56. package/dist/components/custom/border-progress/constants.d.ts +59 -0
  57. package/dist/components/custom/border-progress/index.d.ts +4 -0
  58. package/dist/components/custom/concentric/Concentric.vue.d.ts +39 -0
  59. package/dist/components/custom/concentric/composables/concentricGLSetup.d.ts +11 -0
  60. package/dist/components/custom/concentric/composables/concentricWGPUSetup.d.ts +13 -0
  61. package/dist/components/custom/concentric/composables/ringField.d.ts +44 -0
  62. package/dist/components/custom/concentric/composables/uniformBridgeWGPU.d.ts +13 -0
  63. package/dist/components/custom/concentric/composables/useConcentric.d.ts +35 -0
  64. package/dist/components/custom/concentric/constants.d.ts +43 -0
  65. package/dist/components/custom/concentric/index.d.ts +5 -0
  66. package/dist/components/custom/concentric/shaders/concentric.glsl.d.ts +4 -0
  67. package/dist/components/custom/concentric/shaders/concentric.wgsl.d.ts +1 -0
  68. package/dist/components/custom/dock/DockIconButton.vue.d.ts +13 -4
  69. package/dist/components/custom/dock/DockLayerGroup.vue.d.ts +10 -2
  70. package/dist/components/custom/dock/composables/dockMorphMeasure.d.ts +75 -0
  71. package/dist/components/custom/dock/composables/useLayerTransition.d.ts +13 -0
  72. package/dist/components/custom/dot-flow-field/DotFlowField.vue.d.ts +38 -0
  73. package/dist/components/custom/dot-flow-field/composables/flowField.d.ts +41 -0
  74. package/dist/components/custom/dot-flow-field/composables/uniformBridgeWGPU.d.ts +24 -0
  75. package/dist/components/custom/dot-flow-field/composables/useDotFlowField.d.ts +34 -0
  76. package/dist/components/custom/dot-flow-field/composables/useFlowParticles.d.ts +18 -0
  77. package/dist/components/custom/dot-flow-field/constants.d.ts +48 -0
  78. package/dist/components/custom/dot-flow-field/index.d.ts +5 -0
  79. package/dist/components/custom/dot-flow-field/shaders/flow-field.compute.wgsl.d.ts +1 -0
  80. package/dist/components/custom/dot-flow-field/shaders/flow-field.glsl.d.ts +20 -0
  81. package/dist/components/custom/dot-flow-field/shaders/flow-field.render.wgsl.d.ts +1 -0
  82. package/dist/components/custom/easing/EasingConfigurator.vue.d.ts +33 -0
  83. package/dist/components/custom/easing/EasingPicker.vue.d.ts +49 -0
  84. package/dist/components/custom/easing/composables/useEasingPicker.d.ts +75 -0
  85. package/dist/components/custom/easing/constants.d.ts +28 -0
  86. package/dist/components/custom/easing/index.d.ts +3 -0
  87. package/dist/components/custom/fourier-field/FourierField.vue.d.ts +12 -2
  88. package/dist/components/custom/fourier-field/composables/useFourierField.d.ts +39 -0
  89. package/dist/components/custom/fourier-field/constants.d.ts +7 -0
  90. package/dist/components/custom/glass-panel/GlassPanel.vue.d.ts +1 -1
  91. package/dist/components/custom/goo-blob/GooBlob.vue.d.ts +4 -2
  92. package/dist/components/custom/goo-blob/composables/uniformBridgeWGPU.d.ts +24 -0
  93. package/dist/components/custom/goo-blob/composables/useMetaballRenderer.d.ts +18 -11
  94. package/dist/components/custom/goo-blob/composables/wgpuSetup.d.ts +23 -0
  95. package/dist/components/custom/goo-blob/shaders/metaball.wgsl.d.ts +1 -0
  96. package/dist/components/custom/handmark/HandMark.vue.d.ts +1 -1
  97. package/dist/components/custom/icon-chip/types.d.ts +11 -1
  98. package/dist/components/custom/instrument-chassis/InstrumentChassis.vue.d.ts +3 -1
  99. package/dist/components/custom/metric-stack/MetricStack.vue.d.ts +1 -1
  100. package/dist/components/custom/spa-view/SpaView.vue.d.ts +50 -0
  101. package/dist/components/custom/spa-view/index.d.ts +2 -0
  102. package/dist/components/custom/tabs/SegmentedTabs.vue.d.ts +10 -0
  103. package/dist/components/custom/tabs/composables/useTabDragMorph.d.ts +42 -0
  104. package/dist/components/custom/watercolor-dot/WatercolorDot.vue.d.ts +1 -1
  105. package/dist/components/ui/_shared/menuItemVariants.d.ts +1 -1
  106. package/dist/components/ui/badge/index.d.ts +1 -1
  107. package/dist/components/ui/button/Button.vue.d.ts +5 -2
  108. package/dist/components/ui/button/index.d.ts +2 -2
  109. package/dist/components/ui/card/Card.vue.d.ts +34 -4
  110. package/dist/components/ui/card/CardHeader.vue.d.ts +42 -16
  111. package/dist/components/ui/card/ScrollCard.vue.d.ts +33 -0
  112. package/dist/components/ui/card/ScrollCardHeader.vue.d.ts +17 -0
  113. package/dist/components/ui/card/index.d.ts +2 -0
  114. package/dist/components/ui/carousel/CarouselNext.vue.d.ts +2 -2
  115. package/dist/components/ui/carousel/CarouselPrevious.vue.d.ts +2 -2
  116. package/dist/components/ui/carousel/GlassCarouselPager.vue.d.ts +2 -2
  117. package/dist/components/ui/command/Command.vue.d.ts +1 -1
  118. package/dist/components/ui/drawer/Drawer.vue.d.ts +46 -33
  119. package/dist/components/ui/drawer/DrawerContent.vue.d.ts +7 -8
  120. package/dist/components/ui/drawer/DrawerDescription.vue.d.ts +2 -2
  121. package/dist/components/ui/drawer/DrawerOverlay.vue.d.ts +1 -1
  122. package/dist/components/ui/drawer/DrawerTitle.vue.d.ts +2 -2
  123. package/dist/components/ui/drawer/composables/drawerSnapContext.d.ts +26 -0
  124. package/dist/components/ui/drawer/composables/useDrawerSnap.d.ts +17 -0
  125. package/dist/components/ui/drawer/constants.d.ts +45 -0
  126. package/dist/components/ui/drawer/index.d.ts +23 -15
  127. package/dist/components/ui/focus-scope/FocusScope.vue.d.ts +20 -0
  128. package/dist/components/ui/focus-scope/index.d.ts +2 -0
  129. package/dist/components/ui/index.d.ts +1 -0
  130. package/dist/components/ui/progress/ProgressDefault.vue.d.ts +3 -2
  131. package/dist/components/ui/select/SelectContent.vue.d.ts +1 -1
  132. package/dist/components/ui/sheet/index.d.ts +1 -1
  133. package/dist/components/ui/tags-input/TagsInput.vue.d.ts +2 -2
  134. package/dist/components/ui/toast/Toast.vue.d.ts +5 -2
  135. package/dist/components/ui/toast/use-toast.d.ts +14 -0
  136. package/dist/components/ui/toggle/Toggle.vue.d.ts +1 -1
  137. package/dist/composables/glass/canvas2d/useCanvas2D.d.ts +13 -6
  138. package/dist/composables/glass/index.d.ts +5 -2
  139. package/dist/composables/glass/useSpecularPointer.d.ts +33 -0
  140. package/dist/composables/glass/useSpecularTracking.d.ts +20 -0
  141. package/dist/composables/glass/vSpecular.d.ts +2 -0
  142. package/dist/composables/glass/webgl/shaders/flow.glsl.d.ts +1 -0
  143. package/dist/composables/glass/webgl/useWebGLCanvas.d.ts +16 -0
  144. package/dist/composables/glass/webgpu/index.d.ts +2 -0
  145. package/dist/composables/glass/webgpu/useGpuSubstrate.d.ts +54 -0
  146. package/dist/composables/glass/webgpu/useWebGPUCanvas.d.ts +84 -0
  147. package/dist/composables/motion/core/index.d.ts +1 -0
  148. package/dist/composables/motion/index.d.ts +4 -0
  149. package/dist/composables/motion/useDockCtaReceive.d.ts +59 -0
  150. package/dist/composables/motion/useDragMorph.d.ts +77 -0
  151. package/dist/composables/motion/useLiquidFlex.d.ts +11 -0
  152. package/dist/composables/motion/useLiquidPress.d.ts +71 -0
  153. package/dist/composables/motion/useLiquidReveal.d.ts +51 -0
  154. package/dist/composables/motion/useNumericTransition.d.ts +3 -3
  155. package/dist/composables/motion/usePointerVelocityField.d.ts +98 -0
  156. package/dist/concentric.d.ts +1 -0
  157. package/dist/concentric.js +562 -0
  158. package/dist/configurator.js +3 -2
  159. package/dist/confirm-dialog.js +22 -24
  160. package/dist/constellation.js +11 -11
  161. package/dist/context-menu.js +3 -3
  162. package/dist/controls.js +1 -1
  163. package/dist/createCanvasLifecycle-CHD5XrDW.js +82 -0
  164. package/dist/data-table.js +1 -1
  165. package/dist/dialog.js +2 -2
  166. package/dist/dock.js +564 -457
  167. package/dist/{dockContext-Bu1Avy-a.js → dockContext-BNfyPLe9.js} +1 -1
  168. package/dist/dom.js +5 -5
  169. package/dist/dot-flow-field.d.ts +1 -0
  170. package/dist/dot-flow-field.js +604 -0
  171. package/dist/drawer.d.ts +1 -0
  172. package/dist/drawer.js +380 -0
  173. package/dist/{dropdown-menu-BJ7E9js_.js → dropdown-menu-CofSZuk8.js} +14 -15
  174. package/dist/dropdown-menu.js +1 -1
  175. package/dist/easing.d.ts +1 -0
  176. package/dist/easing.js +463 -0
  177. package/dist/expandable-container.js +7 -4
  178. package/dist/fading-scroll.js +1 -1
  179. package/dist/focus-scope.d.ts +1 -0
  180. package/dist/focus-scope.js +23 -0
  181. package/dist/forms.js +7 -7
  182. package/dist/fourier-field.js +128 -116
  183. package/dist/fourier-math.js +1 -1
  184. package/dist/glass-panel.js +2 -2
  185. package/dist/glass-ui.css +1 -1
  186. package/dist/glass-ui.js +149 -341
  187. package/dist/goo-blob.js +830 -224
  188. package/dist/handmark.js +2 -2
  189. package/dist/header-ribbon.js +1 -1
  190. package/dist/hover-card.js +1 -1
  191. package/dist/hover-popover.js +1 -1
  192. package/dist/icon-chip.js +1 -1
  193. package/dist/icon-tooltip.js +1 -1
  194. package/dist/index.d.ts +1 -1
  195. package/dist/instrument-chassis.js +1 -1
  196. package/dist/label.js +1 -1
  197. package/dist/labeled-field.js +6 -6
  198. package/dist/metric-badge.js +1 -1
  199. package/dist/metric-cell.js +1 -1
  200. package/dist/metric-stack.js +4 -8
  201. package/dist/motion-core.js +36 -36
  202. package/dist/motion-curves.js +1 -1
  203. package/dist/motion.js +157 -55
  204. package/dist/notification.js +1 -1
  205. package/dist/number-field.js +1 -1
  206. package/dist/pager-dots.js +1 -1
  207. package/dist/paper-backdrop.js +1 -1
  208. package/dist/popover.js +1 -1
  209. package/dist/{compile-EXXzEr1q.js → procedural-color.glsl-CIFsJhwI.js} +1 -155
  210. package/dist/procedural-color.wgsl-CToRHugY.js +224 -0
  211. package/dist/progress.js +1 -1
  212. package/dist/pulse.js +1 -1
  213. package/dist/reactive.js +2 -2
  214. package/dist/scrolling-text.js +1 -1
  215. package/dist/search.js +9 -11
  216. package/dist/select.js +3 -3
  217. package/dist/separator.js +1 -1
  218. package/dist/{sheet-CquRYOAw.js → sheet-tZMg0E0w.js} +5 -5
  219. package/dist/sheet.js +1 -1
  220. package/dist/{slider-DQ95MET2.js → slider-DVb4HXU-.js} +3 -3
  221. package/dist/slider.js +1 -1
  222. package/dist/sortable-list.js +3 -3
  223. package/dist/spa-view.d.ts +1 -0
  224. package/dist/spa-view.js +46 -0
  225. package/dist/styles/animations.css +33 -9
  226. package/dist/styles/border-progress.css +109 -0
  227. package/dist/styles/cards.css +76 -0
  228. package/dist/styles/components.css +1 -1
  229. package/dist/styles/critical-partition.mjs +140 -0
  230. package/dist/styles/critical.css +12 -0
  231. package/dist/styles/deferred.css +31 -0
  232. package/dist/styles/dock/density.css +45 -0
  233. package/dist/styles/dock/layers.css +54 -30
  234. package/dist/styles/dock/morph.css +124 -7
  235. package/dist/styles/dock/overflow.css +16 -2
  236. package/dist/styles/dock/shell.css +54 -16
  237. package/dist/styles/dock.css +32 -0
  238. package/dist/styles/drawer.css +81 -35
  239. package/dist/styles/glass/deep.css +44 -0
  240. package/dist/styles/glass/ladder.css +87 -31
  241. package/dist/styles/glass/material.css +78 -15
  242. package/dist/styles/glass/reveal.css +136 -0
  243. package/dist/styles/glass/rim.css +100 -0
  244. package/dist/styles/glass/surfaces.css +101 -3
  245. package/dist/styles/glass-refract.css +96 -44
  246. package/dist/styles/glass-specular-track.css +7 -0
  247. package/dist/styles/glass.css +3 -0
  248. package/dist/styles/hover-popover.css +7 -6
  249. package/dist/styles/icon-chip.css +77 -15
  250. package/dist/styles/index.css +21 -9
  251. package/dist/styles/instrument-chassis.css +66 -3
  252. package/dist/styles/scroll-choreography.css +300 -0
  253. package/dist/styles/segmented-tabs.css +31 -0
  254. package/dist/styles/theme/bridges.css +11 -0
  255. package/dist/styles/theme/literals.css +11 -2
  256. package/dist/styles/theme/radius.css +6 -1
  257. package/dist/styles/tokens/dark-arm.css +98 -26
  258. package/dist/styles/tokens/glass-deep.css +75 -0
  259. package/dist/styles/tokens/glass-fx.css +333 -0
  260. package/dist/styles/tokens/glass.css +39 -319
  261. package/dist/styles/tokens/light-dark.css +15 -2
  262. package/dist/styles/tokens/offsets.css +116 -0
  263. package/dist/styles/tokens/on-glass-fg.css +39 -0
  264. package/dist/styles/tokens/property-regs.css +127 -0
  265. package/dist/styles/tokens/scale-paper.css +117 -89
  266. package/dist/styles/tokens/scheme-motion.css +70 -32
  267. package/dist/styles/tokens/scroll-tokens.css +123 -0
  268. package/dist/styles/tokens/{offsets-sizing.css → sizing.css} +37 -100
  269. package/dist/styles/tokens.css +9 -3
  270. package/dist/styles/typography/semantic.css +8 -8
  271. package/dist/styles/typography/utilities.css +22 -7
  272. package/dist/styles/utilities/animate.css +27 -24
  273. package/dist/styles/utilities/base-misc.css +255 -0
  274. package/dist/styles/utilities/base.css +47 -261
  275. package/dist/styles/utilities/btn.css +3 -1
  276. package/dist/styles/utilities/metal.css +189 -0
  277. package/dist/styles/utilities.css +14 -7
  278. package/dist/switch.js +1 -1
  279. package/dist/tabs.js +220 -107
  280. package/dist/timeline.js +2 -2
  281. package/dist/toast.js +1 -1
  282. package/dist/toggle-group.js +1 -1
  283. package/dist/tooltip.js +1 -1
  284. package/dist/typewriter.js +1 -1
  285. package/dist/useCanvas2D-B8w_E3Rr.js +83 -0
  286. package/dist/useConfiguratorState-DNlOh6c8.js +161 -0
  287. package/dist/useDragMorph-DgxnsVJz.js +102 -0
  288. package/dist/useLiquidPress-kfb4KX79.js +39 -0
  289. package/dist/usePointerVelocityField-JbRd5CrM.js +137 -0
  290. package/dist/useSpring-C0jyvEJB.js +40 -0
  291. package/dist/useSpringMount-q1amq1SJ.js +71 -0
  292. package/dist/useSpringPress-BsqPr7FJ.js +34 -0
  293. package/dist/{useTouchGate-28Tk2-t2.js → useTouchGate-CBZTD4SD.js} +1 -1
  294. package/dist/vSpecular-CQFmLNzA.js +68 -0
  295. package/dist/vendor-CKmzio-i.js +226 -0
  296. package/dist/watercolor-dot.js +2 -2
  297. package/package.json +126 -22
  298. package/src/styles/animations.css +33 -9
  299. package/src/styles/border-progress.css +109 -0
  300. package/src/styles/cards.css +76 -0
  301. package/src/styles/critical-partition.mjs +140 -0
  302. package/src/styles/dock/density.css +45 -0
  303. package/src/styles/dock/layers.css +54 -30
  304. package/src/styles/dock/morph.css +124 -7
  305. package/src/styles/dock/overflow.css +16 -2
  306. package/src/styles/dock/shell.css +54 -16
  307. package/src/styles/dock.css +32 -0
  308. package/src/styles/drawer.css +81 -35
  309. package/src/styles/glass/deep.css +44 -0
  310. package/src/styles/glass/ladder.css +87 -31
  311. package/src/styles/glass/material.css +78 -15
  312. package/src/styles/glass/reveal.css +136 -0
  313. package/src/styles/glass/rim.css +100 -0
  314. package/src/styles/glass/surfaces.css +101 -3
  315. package/src/styles/glass-refract.css +96 -44
  316. package/src/styles/glass-specular-track.css +7 -0
  317. package/src/styles/glass.css +3 -0
  318. package/src/styles/hover-popover.css +7 -6
  319. package/src/styles/icon-chip.css +77 -15
  320. package/src/styles/index.css +12 -0
  321. package/src/styles/instrument-chassis.css +66 -3
  322. package/src/styles/scroll-choreography.css +300 -0
  323. package/src/styles/segmented-tabs.css +31 -0
  324. package/src/styles/theme/bridges.css +11 -0
  325. package/src/styles/theme/literals.css +11 -2
  326. package/src/styles/theme/radius.css +6 -1
  327. package/src/styles/tokens/dark-arm.css +98 -26
  328. package/src/styles/tokens/glass-deep.css +75 -0
  329. package/src/styles/tokens/glass-fx.css +333 -0
  330. package/src/styles/tokens/glass.css +39 -319
  331. package/src/styles/tokens/light-dark.css +15 -2
  332. package/src/styles/tokens/offsets.css +116 -0
  333. package/src/styles/tokens/on-glass-fg.css +39 -0
  334. package/src/styles/tokens/property-regs.css +127 -0
  335. package/src/styles/tokens/scale-paper.css +117 -89
  336. package/src/styles/tokens/scheme-motion.css +70 -32
  337. package/src/styles/tokens/scroll-tokens.css +123 -0
  338. package/src/styles/tokens/{offsets-sizing.css → sizing.css} +37 -100
  339. package/src/styles/tokens.css +9 -3
  340. package/src/styles/typography/semantic.css +8 -8
  341. package/src/styles/typography/utilities.css +22 -7
  342. package/src/styles/utilities/animate.css +27 -24
  343. package/src/styles/utilities/base-misc.css +255 -0
  344. package/src/styles/utilities/base.css +47 -261
  345. package/src/styles/utilities/btn.css +3 -1
  346. package/src/styles/utilities/metal.css +189 -0
  347. package/src/styles/utilities.css +14 -7
  348. package/dist/CardAction-XH4YBVEK.js +0 -158
  349. package/dist/Notification-DKjKsQq8.js +0 -100
  350. package/dist/NumberFieldContent-1VtwDSgf.js +0 -145
  351. package/dist/Toaster-Bm_HQSpc.js +0 -263
  352. package/dist/check-njhk-vfu.js +0 -7
  353. package/dist/chevron-down-DKkxb4VV.js +0 -7
  354. package/dist/chevron-right-CPXbqQQz.js +0 -7
  355. package/dist/chevron-up-n_24SqI-.js +0 -7
  356. package/dist/createLucideIcon-DydS2qgk.js +0 -43
  357. package/dist/minimize-2-BV31Ob_h.js +0 -38
  358. package/dist/search-BSGrf2Sk.js +0 -12
  359. package/dist/useCanvas2D-ClrQuZtp.js +0 -96
  360. package/dist/useConfiguratorState-kiIlun8I.js +0 -303
  361. package/dist/useSpecularTracking-Bo5su68i.js +0 -32
  362. package/dist/useSpringMount-CvopqiFr.js +0 -108
  363. package/dist/useViewTransition-COsPjQVZ.js +0 -47
  364. package/dist/x-BUwTKe50.js +0 -10
  365. /package/dist/{CollapsibleContent-C_s6fG7r.js → CollapsibleContent-68dEXIAl.js} +0 -0
  366. /package/dist/{InstrumentChassis-UUJX0-mW.js → InstrumentChassis-Bx0F_q5g.js} +0 -0
  367. /package/dist/{Label-Ck9SWEKM.js → Label-C2ejNWeC.js} +0 -0
  368. /package/dist/{ModalOverlay-CkPRRgl_.js → ModalOverlay-D1VrWyoi.js} +0 -0
  369. /package/dist/{PaperBackdrop-nBKe0vkB.js → PaperBackdrop-Vf3tlpvd.js} +0 -0
  370. /package/dist/{SelectGroup-Dcczq44n.js → SelectGroup-DwwjicPY.js} +0 -0
  371. /package/dist/{SelectSeparator-DK2y1Bun.js → SelectSeparator-DXswVdRz.js} +0 -0
  372. /package/dist/{Separator-BArl4OaB.js → Separator-pKF0oA4M.js} +0 -0
  373. /package/dist/{Switch-Dr--uLGH.js → Switch-CwYNf8bo.js} +0 -0
  374. /package/dist/{_plugin-vue_export-helper-CBt_VvXa.js → _plugin-vue_export-helper-C1je1s0u.js} +0 -0
  375. /package/dist/{badge-UILT_3pZ.js → badge-D9XWW4GT.js} +0 -0
  376. /package/dist/{createContext-B2RaZ-b8.js → createContext-CpBNTRMI.js} +0 -0
  377. /package/dist/{math-DeuJwLFx.js → math-BINYmg5z.js} +0 -0
  378. /package/dist/{menuItemVariants-DWRQXBxJ.js → menuItemVariants-D8VNHq22.js} +0 -0
  379. /package/dist/{prng-Cg22zv8g.js → prng-Za0Rmgag.js} +0 -0
  380. /package/dist/{resolveCanvasColor-BBiYfp8g.js → resolveCanvasColor-CUyHr5Uu.js} +0 -0
  381. /package/dist/{springPresets-WXaLbu8u.js → springPresets-CFQGQfdl.js} +0 -0
  382. /package/dist/{useAnimatedNumber-C_3wZLx4.js → useAnimatedNumber-BfUq2bUM.js} +0 -0
  383. /package/dist/{useInterval-CNdua40W.js → useInterval-CvK1mL92.js} +0 -0
  384. /package/dist/{useLiquidFlex-C12hXwOZ.js → useLiquidFlex-mZPMiNXh.js} +0 -0
  385. /package/dist/{useRAFLoop-CdwJ7284.js → useRAFLoop-UYa4zoiN.js} +0 -0
  386. /package/dist/{useResizeObserver-V6nq5gJb.js → useResizeObserver-Bpoi7tRE.js} +0 -0
  387. /package/dist/{useResolveTokenColor-NUG2zYAW.js → useResolveTokenColor-vAylyR0x.js} +0 -0
  388. /package/dist/{useSortable-BVqlJRBR.js → useSortable-DHjtZSEd.js} +0 -0
  389. /package/dist/{useSurfaceAxis-CMnF2zHb.js → useSurfaceAxis-g0NloYEF.js} +0 -0
  390. /package/dist/{useTextHighlight-NmBM5V_4.js → useTextHighlight-CWEi25hf.js} +0 -0
  391. /package/dist/{useTimer-B_PAasDL.js → useTimer-BHJOKr35.js} +0 -0
  392. /package/dist/{useUserInvalidAria-CDfJuakL.js → useUserInvalidAria-y5namzeE.js} +0 -0
  393. /package/dist/{useViewportReady-CvBcCYDf.js → useViewportReady-anbac3m6.js} +0 -0
  394. /package/dist/{vReveal-D9k0jADx.js → vReveal-Czsb7zQC.js} +0 -0
package/dist/dock.js CHANGED
@@ -1,49 +1,32 @@
1
1
  import { t as e } from "./cn-DJXf4yaB.js";
2
- import { t } from "./createLucideIcon-DydS2qgk.js";
3
- import { t as n } from "./chevron-down-DKkxb4VV.js";
4
- import { t as r } from "./chevron-right-CPXbqQQz.js";
5
- import { t as i } from "./useSpecularTracking-Bo5su68i.js";
6
- import { t as a } from "./useResizeObserver-V6nq5gJb.js";
7
- import { t as o } from "./useTouchGate-28Tk2-t2.js";
8
- import { n as s } from "./useResolveTokenColor-NUG2zYAW.js";
9
- import { n as c, t as l } from "./createContext-B2RaZ-b8.js";
10
- import { a as u, c as d, i as f, n as p, o as m, r as h, s as g, t as _ } from "./dockContext-Bu1Avy-a.js";
11
- import { t as v } from "./FadingScroll-DwNnvKMs.js";
12
- import { t as y } from "./useLiquidFlex-C12hXwOZ.js";
13
- import { t as b } from "./useIntersectionPause-Bj4sPkMh.js";
14
- import { t as x } from "./useRAFLoop-CdwJ7284.js";
15
- import { Fragment as S, computed as C, createBlock as w, createCommentVNode as T, createElementBlock as E, createElementVNode as D, createVNode as O, defineComponent as k, mergeModels as A, mergeProps as j, nextTick as M, normalizeClass as N, normalizeStyle as P, onBeforeUnmount as F, onMounted as I, onScopeDispose as L, onUnmounted as R, openBlock as z, readonly as B, ref as V, renderList as H, renderSlot as U, resolveDynamicComponent as W, toDisplayString as G, unref as K, useId as ee, useModel as q, useSlots as te, useTemplateRef as J, watch as Y, withCtx as X } from "vue";
16
- import { DropdownMenuTrigger as Z, Primitive as ne, SelectIcon as re, SelectTrigger as ie, TabsIndicator as ae, TabsList as Q, TabsRoot as oe, TabsTrigger as se, useForwardProps as ce, useForwardPropsEmits as le } from "reka-ui";
17
- import { SpringProgress as ue } from "@mkbabb/keyframes.js";
18
- var de = t("pause", [["rect", {
19
- x: "14",
20
- y: "3",
21
- width: "5",
22
- height: "18",
23
- rx: "1",
24
- key: "kaeet6"
25
- }], ["rect", {
26
- x: "5",
27
- y: "3",
28
- width: "5",
29
- height: "18",
30
- rx: "1",
31
- key: "1wsw3u"
32
- }]]), fe = t("play", [["path", {
33
- 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",
34
- key: "10ikf1"
35
- }]]), pe = "(prefers-reduced-motion: reduce)", $ = 32;
36
- function me(e) {
2
+ import { a as t, b as n, o as r, v as i } from "./vendor-CKmzio-i.js";
3
+ import { t as a } from "./useLiquidFlex-mZPMiNXh.js";
4
+ import { t as o } from "./vSpecular-CQFmLNzA.js";
5
+ import { t as s } from "./useResizeObserver-Bpoi7tRE.js";
6
+ import { t as c } from "./useTouchGate-CBZTD4SD.js";
7
+ import { n as l } from "./useResolveTokenColor-vAylyR0x.js";
8
+ import { n as u, t as d } from "./createContext-CpBNTRMI.js";
9
+ import { a as f, c as p, i as m, n as h, o as g, r as _, s as v, t as y } from "./dockContext-BNfyPLe9.js";
10
+ import { t as b } from "./FadingScroll-DI6hQhT9.js";
11
+ import { t as x } from "./useIntersectionPause-Bj4sPkMh.js";
12
+ import { t as S } from "./useDragMorph-DgxnsVJz.js";
13
+ import { t as C } from "./useRAFLoop-UYa4zoiN.js";
14
+ import { Fragment as w, computed as T, createBlock as E, createCommentVNode as D, createElementBlock as O, createElementVNode as k, createVNode as A, defineComponent as j, mergeModels as M, mergeProps as N, nextTick as P, normalizeClass as F, normalizeStyle as I, onBeforeUnmount as L, onMounted as R, onScopeDispose as z, onUnmounted as B, openBlock as V, readonly as H, ref as U, renderList as ee, renderSlot as W, resolveDynamicComponent as G, toDisplayString as te, unref as K, useId as ne, useModel as re, useSlots as ie, useTemplateRef as q, watch as J, withCtx as Y, withDirectives as X } from "vue";
15
+ import { DropdownMenuTrigger as Z, Primitive as ae, SelectIcon as Q, SelectTrigger as oe, TabsIndicator as se, TabsList as ce, TabsRoot as le, TabsTrigger as ue, useForwardProps as de, useForwardPropsEmits as fe } from "reka-ui";
16
+ import { SpringProgress as pe } from "@mkbabb/keyframes.js";
17
+ //#region src/composables/glass/useGlassBackdropLuminance.ts
18
+ var me = "(prefers-reduced-motion: reduce)", $ = 32;
19
+ function he(e) {
37
20
  return typeof HTMLCanvasElement < "u" && e instanceof HTMLCanvasElement;
38
21
  }
39
- function he(e) {
22
+ function ge(e) {
40
23
  let t = e / 255;
41
24
  return t <= .03928 ? t / 12.92 : ((t + .055) / 1.055) ** 2.4;
42
25
  }
43
- function ge(e, t, n) {
44
- return .2126 * he(e) + .7152 * he(t) + .0722 * he(n);
26
+ function _e(e, t, n) {
27
+ return .2126 * ge(e) + .7152 * ge(t) + .0722 * ge(n);
45
28
  }
46
- function _e(e) {
29
+ function ve(e) {
47
30
  let t = e.match(/rgba?\(\s*([\d.]+)[,\s]+([\d.]+)[,\s]+([\d.]+)(?:[,\s/]+([\d.]+))?/i);
48
31
  return t ? [
49
32
  Number(t[1]),
@@ -52,28 +35,28 @@ function _e(e) {
52
35
  t[4] === void 0 ? 1 : Number(t[4])
53
36
  ] : null;
54
37
  }
55
- function ve(e) {
38
+ function ye(e) {
56
39
  if (!e) return null;
57
- if (me(e)) return e;
40
+ if (he(e)) return e;
58
41
  if (typeof e == "function") {
59
42
  let t = e();
60
- return me(t) ? t : null;
43
+ return he(t) ? t : null;
61
44
  }
62
45
  if (typeof e == "string" && typeof document < "u") {
63
46
  let t = document.querySelector(e);
64
- return me(t) ? t : null;
47
+ return he(t) ? t : null;
65
48
  }
66
49
  return null;
67
50
  }
68
- function ye(e, t = {}) {
69
- let { lightThreshold: n = .6, minSampleIntervalMs: r = 250, writeBucket: i = !0 } = t, o = Math.max(250, r), c = V(null), l = V(null);
51
+ function be(e, t = {}) {
52
+ let { lightThreshold: n = .6, minSampleIntervalMs: r = 250, writeBucket: i = !0 } = t, a = Math.max(250, r), o = U(null), c = U(null);
70
53
  if (typeof window > "u") return {
71
- luma: B(c),
72
- bucket: B(l),
54
+ luma: H(o),
55
+ bucket: H(c),
73
56
  sampleNow: () => {},
74
57
  dispose: () => {}
75
58
  };
76
- let u = window.matchMedia(pe), d = u.matches, f = null, p = null;
59
+ let u = window.matchMedia(me), d = u.matches, f = null, p = null;
77
60
  function m() {
78
61
  return f || (f = document.createElement("canvas"), f.width = $, f.height = $), p ||= f.getContext("2d", { willReadFrequently: !0 }), p;
79
62
  }
@@ -81,7 +64,7 @@ function ye(e, t = {}) {
81
64
  return t.live === void 0 ? e.value?.dataset.glassSample === "live" : t.live;
82
65
  }
83
66
  function g(e) {
84
- let n = ve(t.backgroundCanvas);
67
+ let n = ye(t.backgroundCanvas);
85
68
  if (!n || n.width === 0 || n.height === 0) return null;
86
69
  let r = m();
87
70
  if (!r) return null;
@@ -94,7 +77,7 @@ function ye(e, t = {}) {
94
77
  let e = r.getImageData(0, 0, $, $).data, t = 0, i = 0;
95
78
  for (let n = 0; n < e.length; n += 4) {
96
79
  let r = e[n + 3] / 255, a = e[n] * r + 255 * (1 - r), o = e[n + 1] * r + 255 * (1 - r), s = e[n + 2] * r + 255 * (1 - r);
97
- t += ge(a, o, s), i++;
80
+ t += _e(a, o, s), i++;
98
81
  }
99
82
  return i > 0 ? t / i : null;
100
83
  } catch {
@@ -105,71 +88,71 @@ function ye(e, t = {}) {
105
88
  let t = e.getBoundingClientRect(), n = t.left + t.width / 2, r = t.top + t.height / 2, i = document.elementsFromPoint(n, r);
106
89
  for (let t of i) {
107
90
  if (!(t instanceof HTMLElement) || t === e || e.contains(t)) continue;
108
- let n = getComputedStyle(t).backgroundColor, r = _e(s(n, e));
109
- if (r && !(r[3] < .5)) return ge(r[0], r[1], r[2]);
91
+ let n = getComputedStyle(t).backgroundColor, r = ve(l(n, e));
92
+ if (r && !(r[3] < .5)) return _e(r[0], r[1], r[2]);
110
93
  }
111
- let a = _e(s(getComputedStyle(document.body).backgroundColor, e));
112
- return a ? ge(a[0], a[1], a[2]) : null;
94
+ let a = ve(l(getComputedStyle(document.body).backgroundColor, e));
95
+ return a ? _e(a[0], a[1], a[2]) : null;
113
96
  }
114
97
  function v(t) {
115
- c.value = t;
98
+ o.value = t;
116
99
  let r = e.value;
117
100
  if (r && (r.style.setProperty("--glass-backdrop-luma", t.toFixed(3)), i)) {
118
101
  let e = t >= n ? "light" : "dark";
119
- l.value = e, r.style.setProperty("--glass-backdrop", e);
102
+ c.value = e, r.style.setProperty("--glass-backdrop", e);
120
103
  }
121
104
  }
122
105
  let y = 0;
123
- function S() {
106
+ function b() {
124
107
  let t = e.value;
125
108
  if (!t) return;
126
109
  let n = h() ? g(t) ?? _(t) : _(t);
127
110
  n !== null && v(n), y = typeof performance < "u" ? performance.now() : Date.now();
128
111
  }
129
- let C = x(({ now: e }) => {
130
- d || e - y < o || S();
112
+ let S = C(({ now: e }) => {
113
+ d || e - y < a || b();
131
114
  }, {
132
115
  immediate: !1,
133
116
  pauseWhenHidden: !0,
134
117
  respectReducedMotion: !0
135
- }), w = b(() => e.value, {
136
- pause: () => C.pause(),
118
+ }), w = x(() => e.value, {
119
+ pause: () => S.pause(),
137
120
  resume: () => {
138
- h() && !d && C.resume();
121
+ h() && !d && S.resume();
139
122
  }
140
- }, { rootMargin: "200px" }), T = a(e, () => S());
123
+ }, { rootMargin: "200px" }), T = s(e, () => b());
141
124
  function E() {
142
- d = u.matches, d ? (C.stop(), S()) : h() && C.start();
125
+ d = u.matches, d ? (S.stop(), b()) : h() && S.start();
143
126
  }
144
127
  let D = () => E();
145
128
  typeof u.addEventListener == "function" && u.addEventListener("change", D);
146
- let O = Y(() => e.value, (e) => {
147
- e && (S(), E());
129
+ let O = J(() => e.value, (e) => {
130
+ e && (b(), E());
148
131
  }, {
149
132
  immediate: !0,
150
133
  flush: "post"
151
134
  });
152
135
  function k() {
153
- O(), C.dispose(), w.dispose(), T.stop(), typeof u.removeEventListener == "function" && u.removeEventListener("change", D), f = null, p = null;
136
+ O(), S.dispose(), w.dispose(), T.stop(), typeof u.removeEventListener == "function" && u.removeEventListener("change", D), f = null, p = null;
154
137
  }
155
- return L(k), {
156
- luma: B(c),
157
- bucket: B(l),
158
- sampleNow: S,
138
+ return z(k), {
139
+ luma: H(o),
140
+ bucket: H(c),
141
+ sampleNow: b,
159
142
  dispose: k
160
143
  };
161
144
  }
162
145
  //#endregion
163
146
  //#region src/components/custom/dock/composables/isTeleportedTarget.ts
164
- function be(e, t) {
147
+ function xe(e, t) {
165
148
  if (!(e instanceof Element)) return !1;
166
149
  let n = e.closest("[data-glass-dock-portal]");
167
150
  return n ? t ? n.getAttribute("data-glass-dock-owner") === t : !0 : !1;
168
151
  }
169
152
  //#endregion
170
153
  //#region src/components/custom/dock/composables/useDockState.ts
171
- function xe(e) {
172
- 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 = V(c ? "pinned" : "collapsed"), u = V(c), d = V(c), f = null, p = V(0), m = C(() => p.value > 0), h = null, g = null, _ = !1, v = null;
154
+ function Se(e) {
155
+ 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 = U(c ? "pinned" : "collapsed"), u = U(c), d = U(c), f = null, p = U(0), m = T(() => p.value > 0), h = null, g = null, _ = !1, v = null;
173
156
  function y() {
174
157
  v &&= (clearTimeout(v), null);
175
158
  }
@@ -184,17 +167,17 @@ function xe(e) {
184
167
  function S() {
185
168
  s() && (l.value = "pinned"), u.value = l.value !== "collapsed", d.value = l.value === "pinned", o && x !== l.value && o(l.value, x), x = l.value;
186
169
  }
187
- function w() {
170
+ function C() {
188
171
  f &&= (clearTimeout(f), null);
189
172
  }
190
- function T() {
173
+ function w() {
191
174
  g !== null && (cancelAnimationFrame(g), g = null);
192
175
  }
193
176
  function E() {
194
- T(), h?.();
177
+ w(), h?.();
195
178
  }
196
179
  function D() {
197
- s() || p.value > 0 || (w(), f = setTimeout(() => {
180
+ s() || p.value > 0 || (C(), f = setTimeout(() => {
198
181
  O(), l.value = "collapsed", S();
199
182
  }, t));
200
183
  }
@@ -209,17 +192,17 @@ function xe(e) {
209
192
  l.value = "pinned", S();
210
193
  return;
211
194
  }
212
- _ ||= (_ = !0, w(), y(), O(), l.value = "collapsed", S(), !1);
195
+ _ ||= (_ = !0, C(), y(), O(), l.value = "collapsed", S(), !1);
213
196
  }
214
197
  function A() {
215
198
  if (s()) {
216
199
  l.value = "pinned", S();
217
200
  return;
218
201
  }
219
- w(), y(), l.value = "hover", S();
202
+ C(), y(), l.value = "hover", S();
220
203
  }
221
204
  function j() {
222
- s() || (w(), l.value === "collapsed" && (y(), v = setTimeout(() => {
205
+ s() || (C(), l.value === "collapsed" && (y(), v = setTimeout(() => {
223
206
  v = null, !s() && l.value === "collapsed" && (l.value = "hover", S());
224
207
  }, 60)));
225
208
  }
@@ -228,53 +211,53 @@ function xe(e) {
228
211
  if (p.value > 0) return;
229
212
  if (e) {
230
213
  let t = n.value;
231
- if (t && e.relatedTarget instanceof Node && t.contains(e.relatedTarget) || be(e.relatedTarget, a) || b(e)) return;
214
+ if (t && e.relatedTarget instanceof Node && t.contains(e.relatedTarget) || xe(e.relatedTarget, a) || b(e)) return;
232
215
  }
233
216
  D();
234
217
  }
235
218
  }
236
219
  function N() {
237
- s() || (w(), l.value === "collapsed" && (l.value = "hover", S()));
220
+ s() || (C(), l.value === "collapsed" && (l.value = "hover", S()));
238
221
  }
239
222
  function P(e) {
240
223
  if (s() || l.value !== "hover" || p.value > 0) return;
241
224
  let t = e.currentTarget;
242
- e.relatedTarget && t.contains(e.relatedTarget) || be(e.relatedTarget, a) || D();
225
+ e.relatedTarget && t.contains(e.relatedTarget) || xe(e.relatedTarget, a) || D();
243
226
  }
244
227
  function F() {
245
228
  if (s()) {
246
229
  l.value = "pinned", S();
247
230
  return;
248
231
  }
249
- w(), y(), l.value = "pinned", S();
232
+ C(), y(), l.value = "pinned", S();
250
233
  }
251
234
  function I() {
252
- p.value++, w();
235
+ p.value++, C();
253
236
  }
254
237
  function L() {
255
- p.value = Math.max(0, p.value - 1), p.value === 0 && l.value === "hover" && (w(), f = setTimeout(() => {
238
+ p.value = Math.max(0, p.value - 1), p.value === 0 && l.value === "hover" && (C(), f = setTimeout(() => {
256
239
  p.value === 0 && l.value === "hover" && D();
257
240
  }, Math.min(t, 800)));
258
241
  }
259
- function z(e) {
242
+ function R(e) {
260
243
  if (s() || i?.value) return;
261
244
  let t = n.value;
262
- !t || t.contains(e.target) || be(e.target, a) || k();
245
+ !t || t.contains(e.target) || xe(e.target, a) || k();
263
246
  }
264
- return Y(u, (e) => {
247
+ return J(u, (e) => {
265
248
  e ? (E(), g = requestAnimationFrame(() => {
266
- g = null, u.value && (document.addEventListener("pointerdown", z, !0), h = () => {
267
- document.removeEventListener("pointerdown", z, !0), h = null;
249
+ g = null, u.value && (document.addEventListener("pointerdown", R, !0), h = () => {
250
+ document.removeEventListener("pointerdown", R, !0), h = null;
268
251
  });
269
252
  })) : E();
270
- }), typeof r == "boolean" ? r && (l.value = "pinned", S()) : Y(r, (e) => {
253
+ }), typeof r == "boolean" ? r && (l.value = "pinned", S()) : J(r, (e) => {
271
254
  if (e) {
272
- w(), l.value = "pinned", S();
255
+ C(), l.value = "pinned", S();
273
256
  return;
274
257
  }
275
258
  l.value = "collapsed", S();
276
- }, { immediate: !0 }), R(() => {
277
- w(), y(), E();
259
+ }, { immediate: !0 }), B(() => {
260
+ C(), y(), E();
278
261
  }), {
279
262
  state: l,
280
263
  expanded: u,
@@ -292,13 +275,61 @@ function xe(e) {
292
275
  };
293
276
  }
294
277
  //#endregion
295
- //#region src/components/custom/dock/composables/dockMorphContext.ts
296
- var Se = l(m), { KEY: Ce } = Se;
278
+ //#region src/components/custom/dock/composables/dockMorphMeasure.ts
279
+ function Ce(e) {
280
+ return e === "vertical" ? "height" : "width";
281
+ }
297
282
  function we(e) {
298
- Se.provide(e);
283
+ return Ce(e) === "width" ? "inline-size" : "block-size";
284
+ }
285
+ function Te(e, t) {
286
+ return e.getBoundingClientRect()[Ce(t)];
299
287
  }
300
- var Te = Se.use;
301
288
  function Ee(e) {
289
+ e.style.removeProperty("--dock-morph-from"), e.style.removeProperty("--dock-morph-to");
290
+ }
291
+ function De(e, t, n) {
292
+ let r = [];
293
+ for (let i of n) {
294
+ if (i === e) continue;
295
+ let n = i.containerEl.value;
296
+ n && n !== t && t.contains(n) && r.push(i);
297
+ }
298
+ return r;
299
+ }
300
+ function Oe(e) {
301
+ let t = e.containerEl.value;
302
+ if (!t) return () => {};
303
+ let n = we(e.axis.value), r = t.style.getPropertyValue(n);
304
+ return t.style.setProperty(n, "max-content"), () => {
305
+ r ? t.style.setProperty(n, r) : t.style.removeProperty(n);
306
+ };
307
+ }
308
+ function ke(e, t, n) {
309
+ let r = e.axis.value, i = we(r);
310
+ Ee(t);
311
+ let a = De(e, t, n).map((e) => Oe(e)), o = t.style.getPropertyValue(i);
312
+ t.style.setProperty(i, "max-content");
313
+ let s = Te(t, r);
314
+ o ? t.style.setProperty(i, o) : t.style.removeProperty(i);
315
+ for (let e of a) e();
316
+ return s;
317
+ }
318
+ function Ae(e, t, n, r, i) {
319
+ if (t !== e.txId) return;
320
+ let a = e.containerEl.value, o = n;
321
+ if (!a || !o) return;
322
+ let s = e.axis.value, c = ke(e, a, r);
323
+ a.style.setProperty("--dock-morph-from", `${c}px`), a.style.setProperty("--dock-morph-to", `${c}px`), o.style.setProperty("--dock-morph-t", "1"), a.getBoundingClientRect()[Ce(s)], i.settleTarget(e), i.maybeSettleRoot();
324
+ }
325
+ //#endregion
326
+ //#region src/components/custom/dock/composables/dockMorphContext.ts
327
+ var je = d(g), { KEY: Me } = je;
328
+ function Ne(e) {
329
+ je.provide(e);
330
+ }
331
+ var Pe = je.use;
332
+ function Fe(e) {
302
333
  let { rootEl: t, outerEl: n, outerActiveLayer: r, outerAxis: i } = e, a = null, o = /* @__PURE__ */ new Set();
303
334
  function s() {
304
335
  return t.value;
@@ -306,41 +337,32 @@ function Ee(e) {
306
337
  function c() {
307
338
  a &&= (a.dispose(), null);
308
339
  }
309
- function l(e) {
310
- return e === "vertical" ? "height" : "width";
311
- }
312
- function u(e) {
313
- return l(e) === "width" ? "inline-size" : "block-size";
314
- }
315
- function d(e, t) {
316
- return e.getBoundingClientRect()[l(t)];
317
- }
318
- function f(e) {
319
- e.style.removeProperty("--dock-morph-from"), e.style.removeProperty("--dock-morph-to");
340
+ function l() {
341
+ return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
320
342
  }
321
- function p() {
343
+ function u() {
322
344
  for (let e of o) {
323
345
  let t = e.containerEl.value;
324
346
  if (t && t.style.getPropertyValue("--dock-morph-to")) return !0;
325
347
  }
326
348
  return !1;
327
349
  }
328
- function m(e) {
350
+ function d(e) {
329
351
  let t = e.containerEl.value;
330
- t && f(t), e.leavingLayer.value = null;
352
+ t && Ee(t), e.leavingLayer.value = null;
331
353
  }
332
- function h() {
333
- if (p()) return;
354
+ function f() {
355
+ if (u()) return;
334
356
  let e = s();
335
357
  e && (e.style.removeProperty("--dock-morph-t"), e.removeAttribute("data-morphing")), c();
336
358
  }
337
- function _() {
359
+ function p() {
338
360
  if (!s()) return;
339
361
  let e = a !== null && !a.settled ? a.velocity : 0;
340
362
  if (!a || a.settled) {
341
- c(), a = new ue({
342
- response: g.response,
343
- dampingFraction: g.dampingFraction,
363
+ c(), a = new pe({
364
+ response: v.response,
365
+ dampingFraction: v.dampingFraction,
344
366
  initial: 0,
345
367
  respectReducedMotion: !0
346
368
  });
@@ -350,152 +372,143 @@ function Ee(e) {
350
372
  if (n && n.style.setProperty("--dock-morph-t", `${e}`), t.settled) {
351
373
  for (let e of o) {
352
374
  let t = e.containerEl.value;
353
- t && t.style.getPropertyValue("--dock-morph-to") && m(e);
375
+ t && t.style.getPropertyValue("--dock-morph-to") && d(e);
354
376
  }
355
- h();
377
+ f();
356
378
  }
357
379
  });
358
380
  } else a.reset(0, e), a.target = 1;
359
381
  }
360
- function v(e, t, n, r) {
382
+ function m(e, t, n, r) {
361
383
  if (t !== e.txId) return;
362
384
  let i = e.containerEl.value, a = s();
363
385
  if (!(!i || !a)) {
364
386
  if (Math.abs(r - n) < .5) {
365
- m(e), h();
387
+ d(e), f();
366
388
  return;
367
389
  }
368
- i.style.setProperty("--dock-morph-from", `${n}px`), i.style.setProperty("--dock-morph-to", `${r}px`), a.setAttribute("data-morphing", ""), _();
390
+ i.style.setProperty("--dock-morph-from", `${n}px`), i.style.setProperty("--dock-morph-to", `${r}px`), a.setAttribute("data-morphing", ""), p();
369
391
  }
370
392
  }
371
- function y(e, t, n) {
393
+ let h = {
394
+ settleTarget: d,
395
+ maybeSettleRoot: f
396
+ };
397
+ function g(e, t, n) {
372
398
  if (t === n) return;
373
399
  let r = e.containerEl.value, i = s();
374
400
  if (!r || !i) {
375
401
  e.currentLayer.value = t, e.leavingLayer.value = null;
376
402
  return;
377
403
  }
378
- let a = ++e.txId, c = e.axis.value, l = d(r, c);
404
+ let a = ++e.txId, c = e.axis.value, u = Te(r, c);
379
405
  e.leavingLayer.value = n, e.currentLayer.value = t;
380
406
  for (let t of o) {
381
407
  if (t === e) continue;
382
408
  let n = t.containerEl.value;
383
409
  if (n && n.style.getPropertyValue("--dock-morph-to")) {
384
- let e = d(n, t.axis.value);
410
+ let e = Te(n, t.axis.value);
385
411
  n.style.setProperty("--dock-morph-from", `${e}px`);
386
412
  }
387
413
  }
388
- r.style.setProperty("--dock-morph-from", `${l}px`), r.style.setProperty("--dock-morph-to", `${l}px`), i.style.setProperty("--dock-morph-t", "0"), i.setAttribute("data-morphing", ""), requestAnimationFrame(() => {
414
+ if (r.style.setProperty("--dock-morph-from", `${u}px`), r.style.setProperty("--dock-morph-to", `${u}px`), i.style.setProperty("--dock-morph-t", "0"), i.setAttribute("data-morphing", ""), l()) {
415
+ P(() => Ae(e, a, s(), o, h));
416
+ return;
417
+ }
418
+ requestAnimationFrame(() => {
389
419
  if (a !== e.txId) return;
390
420
  let t = e.containerEl.value, n = s();
391
421
  if (!t || !n) return;
392
- f(t);
393
- let r = u(c), i = b(e, t).map((e) => x(e));
422
+ Ee(t);
423
+ let r = we(c), i = De(e, t, o).map((e) => Oe(e));
394
424
  t.style.setProperty(r, "max-content");
395
- let o = d(t, c);
425
+ let l = Te(t, c);
396
426
  t.style.removeProperty(r);
397
427
  for (let e of i) e();
398
- v(e, a, l, o);
428
+ m(e, a, u, l);
399
429
  });
400
430
  }
401
- function b(e, t) {
402
- let n = [];
403
- for (let r of o) {
404
- if (r === e) continue;
405
- let i = r.containerEl.value;
406
- i && i !== t && t.contains(i) && n.push(r);
407
- }
408
- return n;
409
- }
410
- function x(e) {
411
- let t = e.containerEl.value;
412
- if (!t) return () => {};
413
- let n = u(e.axis.value), r = t.style.getPropertyValue(n);
414
- return t.style.setProperty(n, "max-content"), () => {
415
- r ? t.style.setProperty(n, r) : t.style.removeProperty(n);
416
- };
417
- }
418
- function S(e) {
431
+ function _(e) {
419
432
  let t = {
420
433
  containerEl: e.containerEl,
421
434
  activeLayer: e.activeLayer,
422
435
  axis: e.axis,
423
- currentLayer: V(e.activeLayer.value),
424
- leavingLayer: V(null),
436
+ currentLayer: U(e.activeLayer.value),
437
+ leavingLayer: U(null),
425
438
  txId: 0,
426
439
  stop: () => {}
427
440
  };
428
- return t.stop = Y(e.activeLayer, (e, n) => {
429
- y(t, e, n);
441
+ return t.stop = J(e.activeLayer, (e, n) => {
442
+ g(t, e, n);
430
443
  }), o.add(t), t;
431
444
  }
432
- function C(e) {
433
- e.stop(), o.delete(e), h();
445
+ function y(e) {
446
+ e.stop(), o.delete(e), f();
434
447
  }
435
- let w = S({
448
+ let b = _({
436
449
  containerEl: n,
437
450
  activeLayer: r,
438
451
  axis: i
439
- }), T = { registerGroup(e) {
440
- let t = S(e);
452
+ }), x = { registerGroup(e) {
453
+ let t = _(e);
441
454
  return {
442
- currentLayer: B(t.currentLayer),
443
- leavingLayer: B(t.leavingLayer),
444
- release: () => C(t)
455
+ currentLayer: H(t.currentLayer),
456
+ leavingLayer: H(t.leavingLayer),
457
+ release: () => y(t)
445
458
  };
446
459
  } };
447
- function E(e) {
460
+ function S(e) {
448
461
  let t = n.value;
449
462
  if (!t || e.target !== t) return;
450
- let r = u(i.value);
451
- e.propertyName !== r && e.propertyName !== l(i.value) || a && a.settled && (m(w), h());
463
+ let r = we(i.value);
464
+ e.propertyName !== r && e.propertyName !== Ce(i.value) || a && a.settled && (d(b), f());
452
465
  }
453
- return R(() => {
466
+ return B(() => {
454
467
  for (let e of o) e.stop();
455
468
  o.clear(), c();
456
469
  }), {
457
- context: T,
458
- outerCurrentLayer: B(w.currentLayer),
459
- onOuterTransitionEnd: E
470
+ context: x,
471
+ outerCurrentLayer: H(b.currentLayer),
472
+ onOuterTransitionEnd: S
460
473
  };
461
474
  }
462
475
  //#endregion
463
476
  //#region src/components/custom/dock/composables/useDockShellProps.ts
464
- function De(e) {
465
- let t = C(() => {
477
+ function Ie(e) {
478
+ let t = T(() => {
466
479
  if (e.containerName) return {
467
480
  "container-type": "inline-size",
468
481
  "container-name": e.containerName
469
482
  };
470
- }), n = C(() => e.collapseDelay ?? 2e3), r = C(() => e.layout ?? "linear"), i = C(() => e.shape ?? "pill"), a = C(() => e.orientation ?? "horizontal"), o = C(() => e.density ?? "comfortable"), s = C(() => e.overflow === "scroll" ? a.value === "vertical" ? "dock-scroll-y" : "dock-scroll-x" : null), c = C(() => e.alwaysExpanded || r.value === "grid");
483
+ }), n = T(() => e.collapseDelay ?? 2e3), r = T(() => e.layout ?? "linear"), i = T(() => e.shape ?? "pill"), a = T(() => e.orientation ?? "horizontal"), o = T(() => e.density ?? "comfortable"), s = T(() => e.overflow === "scroll" ? a.value === "vertical" ? "dock-scroll-y" : "dock-scroll-x" : null), c = T(() => e.alwaysExpanded || r.value === "grid");
471
484
  return {
472
485
  containerStyle: t,
473
486
  collapseDelay: n,
474
- startCollapsed: C(() => c.value ? !1 : e.startCollapsed ?? !0),
487
+ startCollapsed: T(() => c.value ? !1 : e.startCollapsed ?? !0),
475
488
  layoutValue: r,
476
489
  shape: i,
477
490
  orientation: a,
478
491
  density: o,
479
492
  scrollClass: s,
480
493
  alwaysExpanded: c,
481
- fitContent: C(() => e.fitContent ?? !1)
494
+ fitContent: T(() => e.fitContent ?? !1)
482
495
  };
483
496
  }
484
497
  //#endregion
485
498
  //#region src/components/custom/dock/composables/useDockMorphWindow.ts
486
- function Oe(e) {
499
+ function Le(e) {
487
500
  let t = e.trim();
488
501
  return t ? t.endsWith("ms") ? Number.parseFloat(t) : t.endsWith("s") ? Number.parseFloat(t) * 1e3 : Number.parseFloat(t) || 0 : 0;
489
502
  }
490
- function ke(e) {
491
- let t = getComputedStyle(e), n = t.transitionDuration.split(",").map(Oe), r = t.transitionDelay.split(",").map(Oe);
503
+ function Re(e) {
504
+ let t = getComputedStyle(e), n = t.transitionDuration.split(",").map(Le), r = t.transitionDelay.split(",").map(Le);
492
505
  return Math.max(0, ...n.map((e, t) => e + (r[t] ?? r[0] ?? 0)));
493
506
  }
494
- function Ae(e) {
495
- let t = Oe(getComputedStyle(e).getPropertyValue("--duration-normal") || "0.3s");
507
+ function ze(e) {
508
+ let t = Le(getComputedStyle(e).getPropertyValue("--duration-normal") || "0.3s");
496
509
  return Math.max(t > 0 ? t * 2 : 0, 600);
497
510
  }
498
- function je(e, t) {
511
+ function Be(e, t) {
499
512
  let n = null, r = 0;
500
513
  function i() {
501
514
  n &&= (clearTimeout(n), null);
@@ -506,12 +519,12 @@ function je(e, t) {
506
519
  let o = ++r;
507
520
  i(), t.value = !0, n = setTimeout(() => {
508
521
  o === r && (t.value = !1, n = null);
509
- }, Math.max(ke(a), Ae(a)) + 50);
522
+ }, Math.max(Re(a), ze(a)) + 50);
510
523
  }
511
524
  function o(n) {
512
- n.target === e.value && d.has(n.propertyName) && (i(), r++, t.value = !1);
525
+ n.target === e.value && p.has(n.propertyName) && (i(), r++, t.value = !1);
513
526
  }
514
- return F(i), {
527
+ return L(i), {
515
528
  markTransitioning: a,
516
529
  onDockTransitionDone: o,
517
530
  clearTransitionTimer: i
@@ -519,7 +532,7 @@ function je(e, t) {
519
532
  }
520
533
  //#endregion
521
534
  //#region src/components/custom/dock/composables/useDockClickIntegrity.ts
522
- function Me(e) {
535
+ function Ve(e) {
523
536
  let { rootEl: t, visualExpanded: n } = e, r = null, i = !1, a = 0, o = null;
524
537
  function s() {
525
538
  o !== null && (clearTimeout(o), o = null);
@@ -563,7 +576,7 @@ function Me(e) {
563
576
  e.stopPropagation(), e.preventDefault(), r = null;
564
577
  }
565
578
  }
566
- return F(s), {
579
+ return L(s), {
567
580
  onPointerDownCapture: f,
568
581
  onClickCapture: m,
569
582
  markExpandFlip: c
@@ -571,14 +584,14 @@ function Me(e) {
571
584
  }
572
585
  //#endregion
573
586
  //#region src/components/custom/dock/GlassDock.vue?vue&type=script&setup=true&lang.ts
574
- var Ne = ["data-has-rail"], Pe = [
587
+ var He = ["data-has-rail"], Ue = [
575
588
  "data-density",
576
589
  "data-held",
577
590
  "data-container-name"
578
- ], Fe = {
591
+ ], We = {
579
592
  key: 0,
580
593
  class: "dock-persistent"
581
- }, Ie = ["inert"], Le = ["inert"], Re = /* @__PURE__ */ k({
594
+ }, Ge = ["inert"], Ke = ["inert"], qe = /* @__PURE__ */ j({
582
595
  inheritAttrs: !1,
583
596
  __name: "GlassDock",
584
597
  props: {
@@ -601,27 +614,27 @@ var Ne = ["data-has-rail"], Pe = [
601
614
  ] }
602
615
  },
603
616
  setup(e, { expose: t }) {
604
- let n = e, { containerStyle: r, collapseDelay: i, startCollapsed: s, layoutValue: c, shape: l, orientation: u, density: d, scrollClass: f, alwaysExpanded: m, fitContent: h } = De(n), g = c, _ = J("dockEl"), v = J("layersEl");
605
- n.autoLuminance !== !1 && ye(_, { backgroundCanvas: n.backgroundCanvas ?? null });
606
- let y = V(!1), b = o(i.value), x = `glass-dock-${ee()}`, { expanded: S, isPinned: w, isHeld: O, onMouseEnter: k, onMouseLeave: A, onFocusIn: M, onFocusOut: P, onClickCollapsed: F, keepOpen: L, release: R, expand: B, collapse: H } = xe({
617
+ let n = e, { containerStyle: r, collapseDelay: i, startCollapsed: a, layoutValue: o, shape: l, orientation: u, density: d, scrollClass: f, alwaysExpanded: p, fitContent: m } = Ie(n), g = o, _ = q("dockEl"), v = q("layersEl");
618
+ n.autoLuminance !== !1 && be(_, { backgroundCanvas: n.backgroundCanvas ?? null });
619
+ let y = U(!1), b = c(i.value), x = `glass-dock-${ne()}`, { expanded: S, isPinned: C, isHeld: w, onMouseEnter: E, onMouseLeave: A, onFocusIn: j, onFocusOut: M, onClickCollapsed: P, keepOpen: I, release: L, expand: z, collapse: B } = Se({
607
620
  collapseDelay: i.value,
608
621
  rootEl: _,
609
- alwaysExpanded: m,
622
+ alwaysExpanded: p,
610
623
  isTransitioning: y,
611
624
  dockId: x
612
625
  });
613
- p({
626
+ h({
614
627
  id: x,
615
628
  orientation: u,
616
629
  layout: g,
617
- keepOpen: L,
618
- release: R,
619
- held: O
630
+ keepOpen: I,
631
+ release: L,
632
+ held: w
620
633
  });
621
- let W = C(() => m.value || S.value), G = te(), q = C(() => !!G.rail), X = J("frameEl");
622
- function Z() {
623
- let e = X.value;
624
- if (!e || !q.value) return;
634
+ let H = T(() => p.value || S.value), ee = ie(), G = T(() => !!ee.rail), te = q("frameEl");
635
+ function re() {
636
+ let e = te.value;
637
+ if (!e || !G.value) return;
625
638
  let t = _.value?.querySelector("[data-rail-anchor]");
626
639
  if (!t) {
627
640
  e.style.removeProperty("--dock-rail-seam-offset");
@@ -630,26 +643,26 @@ var Ne = ["data-has-rail"], Pe = [
630
643
  let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), i = u.value === "vertical" ? r.top + r.height / 2 - n.top : r.left + r.width / 2 - n.left;
631
644
  e.style.setProperty("--dock-rail-seam-offset", `${Math.round(i)}px`);
632
645
  }
633
- a(_, () => Z()), I(() => Z()), Y([u, q], () => Z(), { flush: "post" });
634
- let { context: ne, onOuterTransitionEnd: re } = Ee({
646
+ s(_, () => re()), R(() => re()), J([u, G], () => re(), { flush: "post" });
647
+ let { context: Y, onOuterTransitionEnd: X } = Fe({
635
648
  rootEl: _,
636
649
  outerEl: v,
637
- outerActiveLayer: C(() => W.value ? "full" : "summary"),
638
- outerAxis: C(() => u.value)
650
+ outerActiveLayer: T(() => H.value ? "full" : "summary"),
651
+ outerAxis: T(() => u.value)
639
652
  });
640
- we(ne);
641
- let ie = C(() => ({ "view-transition-name": x.replace(/[^a-zA-Z0-9_-]/g, "-") })), { markTransitioning: ae, onDockTransitionDone: Q } = je(_, y), { onPointerDownCapture: oe, onClickCapture: se, markExpandFlip: ce } = Me({
653
+ Ne(Y);
654
+ let Z = T(() => ({ "view-transition-name": x.replace(/[^a-zA-Z0-9_-]/g, "-") })), { markTransitioning: ae, onDockTransitionDone: Q } = Be(_, y), { onPointerDownCapture: oe, onClickCapture: se, markExpandFlip: ce } = Ve({
642
655
  rootEl: _,
643
- visualExpanded: W
656
+ visualExpanded: H
644
657
  });
645
- I(() => {
646
- (n.alwaysExpanded || !s.value) && B();
658
+ R(() => {
659
+ (n.alwaysExpanded || !a.value) && z();
647
660
  });
648
661
  function le() {
649
- return !m.value;
662
+ return !p.value;
650
663
  }
651
664
  function ue(e) {
652
- if (!le() || W.value) return;
665
+ if (!le() || H.value) return;
653
666
  let t = _.value, n = e.touches[0];
654
667
  !t || !n || b.handleTouchStart(t, n.clientY);
655
668
  }
@@ -659,27 +672,27 @@ var Ne = ["data-has-rail"], Pe = [
659
672
  function fe() {
660
673
  if (!le()) return;
661
674
  let e = b.isActive.value;
662
- b.handleTouchEnd(), !e && b.isActive.value && !W.value && B();
675
+ b.handleTouchEnd(), !e && b.isActive.value && !H.value && z();
663
676
  }
664
- return Y(b.isActive, (e) => {
665
- !e && S.value && !w.value && !m.value && H();
666
- }), Y(W, (e) => {
677
+ return J(b.isActive, (e) => {
678
+ !e && S.value && !C.value && !p.value && B();
679
+ }), J(H, (e) => {
667
680
  ae(), e ? ce() : b.deactivate();
668
681
  }), t({
669
682
  expanded: S,
670
- isPinned: w,
671
- isHeld: O,
683
+ isPinned: C,
684
+ isHeld: w,
672
685
  isTransitioning: y,
673
- expand: B,
674
- collapse: H,
675
- keepOpen: L,
676
- release: R
677
- }), (t, n) => (z(), E("div", {
686
+ expand: z,
687
+ collapse: B,
688
+ keepOpen: I,
689
+ release: L
690
+ }), (t, n) => (V(), O("div", {
678
691
  ref_key: "frameEl",
679
- ref: X,
680
- class: N(["glass-dock-frame", K(u)]),
681
- "data-has-rail": q.value || void 0
682
- }, [D("div", j({
692
+ ref: te,
693
+ class: F(["glass-dock-frame", K(u)]),
694
+ "data-has-rail": G.value || void 0
695
+ }, [k("div", N({
683
696
  ref_key: "dockEl",
684
697
  ref: _
685
698
  }, t.$attrs, {
@@ -689,23 +702,23 @@ var Ne = ["data-has-rail"], Pe = [
689
702
  `layout-${K(g)}`,
690
703
  K(f),
691
704
  {
692
- expanded: W.value,
693
- collapsed: !W.value,
694
- pinned: K(w),
695
- "fit-content": K(h),
696
- "always-expanded": K(m),
705
+ expanded: H.value,
706
+ collapsed: !H.value,
707
+ pinned: K(C),
708
+ "fit-content": K(m),
709
+ "always-expanded": K(p),
697
710
  "dock-overflow-wrap": e.overflow === "wrap" && K(u) !== "vertical"
698
711
  },
699
712
  e.position === "fixed" ? "fixed bottom-(--dock-pos) left-1/2 -translate-x-1/2" : e.position === "sticky" ? "dock-sticky" : "dock-inline"
700
713
  ]],
701
714
  "data-density": K(d),
702
- "data-held": K(O) || void 0,
715
+ "data-held": K(w) || void 0,
703
716
  "data-container-name": e.containerName || void 0,
704
- style: [K(r), ie.value],
705
- onMouseenter: n[2] ||= (...e) => K(k) && K(k)(...e),
717
+ style: [K(r), Z.value],
718
+ onMouseenter: n[2] ||= (...e) => K(E) && K(E)(...e),
706
719
  onMouseleave: n[3] ||= (e) => K(A)(e),
707
- onFocusin: n[4] ||= (...e) => K(M) && K(M)(...e),
708
- onFocusout: n[5] ||= (...e) => K(P) && K(P)(...e),
720
+ onFocusin: n[4] ||= (...e) => K(j) && K(j)(...e),
721
+ onFocusout: n[5] ||= (...e) => K(M) && K(M)(...e),
709
722
  onTouchstart: ue,
710
723
  onTouchmove: de,
711
724
  onTouchend: fe,
@@ -713,24 +726,24 @@ var Ne = ["data-has-rail"], Pe = [
713
726
  onClickCapture: n[7] ||= (...e) => K(se) && K(se)(...e),
714
727
  onTransitionend: n[8] ||= (...e) => K(Q) && K(Q)(...e),
715
728
  onTransitioncancel: n[9] ||= (...e) => K(Q) && K(Q)(...e)
716
- }), [t.$slots.persistent ? (z(), E("div", Fe, [U(t.$slots, "persistent")])) : T("", !0), D("div", {
729
+ }), [t.$slots.persistent ? (V(), O("div", We, [W(t.$slots, "persistent")])) : D("", !0), k("div", {
717
730
  ref_key: "layersEl",
718
731
  ref: v,
719
732
  class: "dock-layers",
720
- onTransitionend: n[1] ||= (...e) => K(re) && K(re)(...e)
721
- }, [D("div", {
722
- class: N(["dock-layer dock-layer--full", { "is-active": W.value }]),
733
+ onTransitionend: n[1] ||= (...e) => K(X) && K(X)(...e)
734
+ }, [k("div", {
735
+ class: F(["dock-layer dock-layer--full", { "is-active": H.value }]),
723
736
  inert: !K(S) || void 0
724
- }, [U(t.$slots, "default")], 10, Ie), D("div", {
725
- class: N(["dock-layer dock-layer--summary", { "is-active": !W.value }]),
737
+ }, [W(t.$slots, "default")], 10, Ge), k("div", {
738
+ class: F(["dock-layer dock-layer--summary", { "is-active": !H.value }]),
726
739
  inert: K(S) || void 0,
727
- onClick: n[0] ||= (...e) => K(F) && K(F)(...e)
728
- }, [U(t.$slots, "collapsed")], 10, Le)], 544)], 16, Pe), q.value ? (z(), E("div", {
740
+ onClick: n[0] ||= (...e) => K(P) && K(P)(...e)
741
+ }, [W(t.$slots, "collapsed")], 10, Ke)], 544)], 16, Ue), G.value ? (V(), O("div", {
729
742
  key: 0,
730
- class: N(["dock-hairline-slot", K(u)])
731
- }, [U(t.$slots, "rail")], 2)) : T("", !0)], 10, Ne));
743
+ class: F(["dock-hairline-slot", K(u)])
744
+ }, [W(t.$slots, "rail")], 2)) : D("", !0)], 10, He));
732
745
  }
733
- }), ze = /* @__PURE__ */ k({
746
+ }), Je = /* @__PURE__ */ j({
734
747
  __name: "Tabs",
735
748
  props: {
736
749
  defaultValue: {},
@@ -744,13 +757,13 @@ var Ne = ["data-has-rail"], Pe = [
744
757
  },
745
758
  emits: ["update:modelValue"],
746
759
  setup(e, { emit: t }) {
747
- let n = le(e, t);
748
- return (e, t) => (z(), w(K(oe), j({ "data-slot": "tabs" }, K(n)), {
749
- default: X(() => [U(e.$slots, "default")]),
760
+ let n = fe(e, t);
761
+ return (e, t) => (V(), E(K(le), N({ "data-slot": "tabs" }, K(n)), {
762
+ default: Y(() => [W(e.$slots, "default")]),
750
763
  _: 3
751
764
  }, 16));
752
765
  }
753
- }), Be = /* @__PURE__ */ k({
766
+ }), Ye = /* @__PURE__ */ j({
754
767
  __name: "TabsTrigger",
755
768
  props: {
756
769
  value: {},
@@ -766,16 +779,16 @@ var Ne = ["data-has-rail"], Pe = [
766
779
  ] }
767
780
  },
768
781
  setup(t) {
769
- let n = t, r = ce(C(() => {
782
+ let n = t, r = de(T(() => {
770
783
  let { class: e, ...t } = n;
771
784
  return t;
772
785
  }));
773
- return (t, i) => (z(), w(K(se), j({ "data-slot": "tabs-trigger" }, K(r), { class: K(e)("tap-squish focus-ring relative z-[1] inline-flex items-center justify-center whitespace-nowrap rounded-control p-1 px-3 text-sm font-medium transition-control disabled:pointer-events-none disabled:opacity-disabled data-[state=active]:text-[var(--active-tab-color,var(--foreground))] hover:text-foreground/70", n.class) }), {
774
- default: X(() => [U(t.$slots, "default")]),
786
+ return (t, i) => (V(), E(K(ue), N({ "data-slot": "tabs-trigger" }, K(r), { class: K(e)("tap-squish focus-ring relative z-[1] inline-flex items-center justify-center whitespace-nowrap rounded-control p-1 px-3 text-sm font-medium transition-control disabled:pointer-events-none disabled:opacity-disabled data-[state=active]:text-[var(--active-tab-color,var(--foreground))] hover:text-foreground/70", n.class) }), {
787
+ default: Y(() => [W(t.$slots, "default")]),
775
788
  _: 3
776
789
  }, 16, ["class"]));
777
790
  }
778
- }), Ve = /* @__PURE__ */ k({
791
+ }), Xe = /* @__PURE__ */ j({
779
792
  __name: "TabsIndicator",
780
793
  props: {
781
794
  asChild: { type: Boolean },
@@ -793,13 +806,13 @@ var Ne = ["data-has-rail"], Pe = [
793
806
  }
794
807
  },
795
808
  setup(t) {
796
- let n = t, r = C(() => {
809
+ let n = t, r = T(() => {
797
810
  let { class: e, surface: t, ...r } = n;
798
811
  return r;
799
812
  });
800
- return (t, i) => (z(), w(K(ae), j({ "data-slot": "tabs-indicator" }, r.value, { class: K(e)("pointer-events-none absolute left-0 bottom-1 top-1 z-0 w-(--reka-tabs-indicator-size) translate-x-(--reka-tabs-indicator-position) rounded-pill transition-[width,translate] duration-normal ease-spring-snappy", n.surface && "bg-(--glass-bg-quiet) [backdrop-filter:var(--glass-blur-quiet)]", n.class) }), null, 16, ["class"]));
813
+ return (t, i) => (V(), E(K(se), N({ "data-slot": "tabs-indicator" }, r.value, { class: K(e)("pointer-events-none absolute left-0 bottom-1 top-1 z-0 w-(--reka-tabs-indicator-size) translate-x-(--reka-tabs-indicator-position) rounded-pill transition-[width,translate] duration-normal ease-spring-snappy", n.surface && "bg-(--glass-bg-quiet) [backdrop-filter:var(--glass-blur-quiet)]", n.class) }), null, 16, ["class"]));
801
814
  }
802
- }), He = /* @__PURE__ */ k({
815
+ }), Ze = /* @__PURE__ */ j({
803
816
  __name: "TabsList",
804
817
  props: {
805
818
  loop: { type: Boolean },
@@ -818,195 +831,295 @@ var Ne = ["data-has-rail"], Pe = [
818
831
  }
819
832
  },
820
833
  setup(t) {
821
- let n = t, r = C(() => {
834
+ let n = t, r = T(() => {
822
835
  let { class: e, indicator: t, ...r } = n;
823
836
  return r;
824
837
  });
825
- return (i, a) => (z(), w(K(Q), j({ "data-slot": "tabs-list" }, r.value, { class: K(e)("relative inline-flex h-(--control-h-md) items-center justify-center rounded-input p-1 text-muted-foreground", n.class) }), {
826
- default: X(() => [t.indicator ? (z(), w(Ve, { key: 0 })) : T("", !0), U(i.$slots, "default")]),
838
+ return (i, a) => (V(), E(K(ce), N({ "data-slot": "tabs-list" }, r.value, { class: K(e)("relative inline-flex h-(--control-h-md) items-center justify-center rounded-input p-1 text-muted-foreground", n.class) }), {
839
+ default: Y(() => [t.indicator ? (V(), E(Xe, { key: 0 })) : D("", !0), W(i.$slots, "default")]),
827
840
  _: 3
828
841
  }, 16, ["class"]));
829
842
  }
830
- }), Ue = c(u, "[glass-ui:dock] <DockLayer> must be used inside <DockLayerGroup>"), { KEY: We } = Ue;
831
- function Ge(e) {
832
- Ue.provide(e);
843
+ }), Qe = u(f, "[glass-ui:dock] <DockLayer> must be used inside <DockLayerGroup>"), { KEY: $e } = Qe;
844
+ function et(e) {
845
+ Qe.provide(e);
833
846
  }
834
- var Ke = Ue.use;
835
- Ue.useOptional;
847
+ var tt = Qe.use;
848
+ Qe.useOptional;
836
849
  //#endregion
837
850
  //#region src/components/custom/dock/composables/useLayerTransition.ts
838
- function qe(e) {
839
- let { containerEl: t, activeLayer: n, axis: r } = e, i = C(() => r?.value === "vertical" ? "height" : "width"), a = C(() => i.value === "width" ? "inline-size" : "block-size"), o = (e) => e.getBoundingClientRect()[i.value], s = V(n.value), c = V(null), l = 0, u = null, d = null;
851
+ function nt(e) {
852
+ let { containerEl: t, activeLayer: n, axis: r } = e, i = T(() => r?.value === "vertical" ? "height" : "width"), a = T(() => i.value === "width" ? "inline-size" : "block-size"), o = (e) => e.getBoundingClientRect()[i.value], s = U(n.value), c = U(null), l = 0, u = U(!1), d = [];
840
853
  function f() {
841
- u &&= (u.dispose(), null), d = null;
854
+ if (d.length === 0) return;
855
+ let e = d.splice(0, d.length);
856
+ for (let t of e) t();
842
857
  }
843
- function p(e) {
858
+ let p = null, m = null;
859
+ function h() {
860
+ p &&= (p.dispose(), null), m = null;
861
+ }
862
+ function g(e) {
844
863
  return e.closest(".glass-dock") ?? e;
845
864
  }
846
- function m(e) {
865
+ function _(e) {
866
+ if (u.value) {
867
+ d.push(e);
868
+ return;
869
+ }
870
+ requestAnimationFrame(e);
871
+ }
872
+ function y(e) {
847
873
  e.style.removeProperty("--dock-morph-from"), e.style.removeProperty("--dock-morph-to");
848
874
  }
849
- function h(e, t) {
850
- m(e), t.style.removeProperty("--dock-morph-t"), t.removeAttribute("data-morphing"), c.value = null, f();
875
+ function b() {
876
+ return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
877
+ }
878
+ function x(e, t, n) {
879
+ if (n !== l) return;
880
+ let r = a.value;
881
+ y(e);
882
+ let s = e.style.getPropertyValue(r);
883
+ e.style.setProperty(r, "max-content");
884
+ let c = o(e);
885
+ s ? e.style.setProperty(r, s) : e.style.removeProperty(r), e.style.setProperty("--dock-morph-from", `${c}px`), e.style.setProperty("--dock-morph-to", `${c}px`), t.style.setProperty("--dock-morph-t", "1"), e.getBoundingClientRect()[i.value], S(e, t);
886
+ }
887
+ function S(e, t) {
888
+ y(e), t.style.removeProperty("--dock-morph-t"), t.removeAttribute("data-morphing"), c.value = null, h(), u.value = !1, f();
851
889
  }
852
- function _(e, t, n, r, i, a, o) {
890
+ function C(e, t, n, r, i, a, o) {
853
891
  if (Math.abs(i - r) < .5) {
854
- h(e, t);
892
+ S(e, t);
855
893
  return;
856
894
  }
857
- e.style.setProperty("--dock-morph-from", `${r}px`), e.style.setProperty("--dock-morph-to", `${i}px`), t.style.setProperty("--dock-morph-t", "0"), t.setAttribute("data-morphing", ""), o || (f(), u = new ue({
858
- response: g.response,
859
- dampingFraction: g.dampingFraction,
895
+ e.style.setProperty("--dock-morph-from", `${r}px`), e.style.setProperty("--dock-morph-to", `${i}px`), t.style.setProperty("--dock-morph-t", "0"), t.setAttribute("data-morphing", ""), u.value = !0, o || (h(), p = new pe({
896
+ response: v.response,
897
+ dampingFraction: v.dampingFraction,
860
898
  initial: 0,
861
899
  respectReducedMotion: !0
862
- }), d = e);
863
- let s = u;
900
+ }), m = e);
901
+ let s = p;
864
902
  s.reset(0, a), s.target = 1, s.play((r) => {
865
- n === l && (t.style.setProperty("--dock-morph-t", `${r}`), s.settled && h(e, t));
903
+ n === l && (t.style.setProperty("--dock-morph-t", `${r}`), s.settled && S(e, t));
866
904
  });
867
905
  }
868
- Y(n, (e, n) => {
906
+ J(n, (e, n) => {
869
907
  if (e === n) return;
870
908
  let r = t.value;
871
909
  if (!r) {
872
910
  s.value = e, c.value = null;
873
911
  return;
874
912
  }
875
- let i = p(r), f = ++l, h = u !== null && d === r && !u.settled ? u : null, g = h ? h.velocity : 0, v = o(r);
876
- c.value = n, s.value = e, r.style.setProperty("--dock-morph-from", `${v}px`), r.style.setProperty("--dock-morph-to", `${v}px`), i.style.setProperty("--dock-morph-t", "0"), i.setAttribute("data-morphing", ""), requestAnimationFrame(() => {
877
- if (f !== l) return;
913
+ let i = g(r), d = ++l, f = p !== null && m === r && !p.settled ? p : null, h = f ? f.velocity : 0, _ = o(r);
914
+ if (c.value = n, s.value = e, r.style.setProperty("--dock-morph-from", `${_}px`), r.style.setProperty("--dock-morph-to", `${_}px`), i.style.setProperty("--dock-morph-t", "0"), i.setAttribute("data-morphing", ""), u.value = !0, b()) {
915
+ P(() => x(r, i, d));
916
+ return;
917
+ }
918
+ requestAnimationFrame(() => {
919
+ if (d !== l) return;
878
920
  let e = t.value;
879
921
  if (!e) return;
880
- let n = p(e);
881
- m(e), n.style.removeProperty("--dock-morph-t"), e.style.setProperty(a.value, "max-content");
922
+ let n = g(e);
923
+ y(e), n.style.removeProperty("--dock-morph-t"), e.style.setProperty(a.value, "max-content");
882
924
  let r = o(e);
883
- e.style.removeProperty(a.value), _(e, n, f, v, r, g, h);
925
+ e.style.removeProperty(a.value), C(e, n, d, _, r, h, f);
884
926
  });
885
927
  });
886
- function v(e) {
928
+ function w(e) {
887
929
  let n = t.value;
888
- n && e.target === n && (e.propertyName !== a.value && e.propertyName !== i.value || u && u.settled && h(n, p(n)));
930
+ n && e.target === n && (e.propertyName !== a.value && e.propertyName !== i.value || p && p.settled && S(n, g(n)));
889
931
  }
890
- return R(f), {
891
- onTransitionEnd: v,
932
+ return B(() => {
933
+ h(), d.length = 0;
934
+ }), {
935
+ onTransitionEnd: w,
892
936
  currentLayer: s,
893
- leavingLayer: c
937
+ leavingLayer: c,
938
+ morphing: u,
939
+ deferReposition: _
894
940
  };
895
941
  }
896
942
  //#endregion
897
943
  //#region src/components/custom/dock/DockLayerGroup.vue?vue&type=script&setup=true&lang.ts
898
- var Je = { key: 1 }, Ye = { key: 2 }, Xe = /* @__PURE__ */ k({
944
+ var rt = { key: 1 }, it = { key: 2 }, at = /* @__PURE__ */ j({
899
945
  __name: "DockLayerGroup",
900
- props: /* @__PURE__ */ A({
946
+ props: /* @__PURE__ */ M({
901
947
  orientation: {},
902
948
  showRail: {
903
949
  type: Boolean,
904
950
  default: !0
905
951
  },
906
- railPosition: { default: "start" }
952
+ railPosition: { default: "start" },
953
+ draggable: {
954
+ type: Boolean,
955
+ default: !1
956
+ }
907
957
  }, {
908
958
  active: { required: !0 },
909
959
  activeModifiers: {}
910
960
  }),
911
961
  emits: ["update:active"],
912
962
  setup(e) {
913
- let t = e, n = q(e, "active"), r = f(), i = V([]), a = J("containerEl");
914
- function o(e) {
915
- i.value.find((t) => t.id === e.id) || i.value.push(e);
963
+ let t = e, n = re(e, "active"), r = m(), i = U([]), a = q("containerEl"), o = q("groupEl");
964
+ function c(e) {
965
+ i.value.find((t) => t.id === e.id) || i.value.push(e), d();
966
+ }
967
+ function l(e) {
968
+ i.value = i.value.filter((t) => t.id !== e), d();
969
+ }
970
+ let u = U(0);
971
+ function d() {
972
+ let e = a.value, t = o.value;
973
+ if (!e || !t) return;
974
+ let n = 0, r = e.querySelectorAll(".dock-layer-item-host");
975
+ for (let e of r) {
976
+ let t = e.scrollHeight;
977
+ t > n && (n = t);
978
+ }
979
+ n > u.value && (u.value = n);
916
980
  }
917
- function s(e) {
918
- i.value = i.value.filter((t) => t.id !== e);
981
+ let f = T(() => u.value > 0 ? {
982
+ "min-block-size": `${u.value}px`,
983
+ "--dock-layer-peak-block-size": `${u.value}px`
984
+ } : void 0);
985
+ s(a, () => d()), J(() => i.value.length, () => d());
986
+ let p = T(() => t.orientation ?? r?.orientation.value ?? "horizontal"), h = T(() => p.value === "vertical" ? "horizontal" : "vertical"), g = q("railListEl"), _ = U(null);
987
+ function v() {
988
+ let e = g.value;
989
+ _.value = e ? e.$el ?? e : null;
990
+ }
991
+ let y = T(() => h.value === "vertical" ? "y" : "x");
992
+ function b() {
993
+ let e = _.value;
994
+ if (!e) return [];
995
+ let t = Array.from(e.querySelectorAll(".dock-layer-tab"));
996
+ return i.value.map((e, n) => {
997
+ let r = t[n]?.getBoundingClientRect(), i = r ? y.value === "y" ? r.top + r.height / 2 : r.left + r.width / 2 : 0;
998
+ return {
999
+ value: e.id,
1000
+ center: i
1001
+ };
1002
+ });
919
1003
  }
920
- let c = C(() => t.orientation ?? r?.orientation.value ?? "horizontal"), l = C(() => c.value === "vertical" ? "horizontal" : "vertical"), u = Te(), d, p, m;
921
- if (u) {
922
- let e = u.registerGroup({
1004
+ let x = S({
1005
+ el: _,
1006
+ axis: () => y.value,
1007
+ snapTargets: b,
1008
+ onSnap: (e) => {
1009
+ t.draggable && n.value !== e && (n.value = e);
1010
+ }
1011
+ });
1012
+ J(() => [
1013
+ i.value.length,
1014
+ h.value,
1015
+ t.draggable
1016
+ ], () => {
1017
+ v(), t.draggable && P(() => x.refresh());
1018
+ }), R(() => {
1019
+ v(), t.draggable && P(() => x.refresh());
1020
+ });
1021
+ let C = Pe(), j, M, N;
1022
+ if (C) {
1023
+ let e = C.registerGroup({
923
1024
  containerEl: a,
924
1025
  activeLayer: n,
925
- axis: c
1026
+ axis: p
926
1027
  });
927
- d = e.currentLayer, p = e.leavingLayer, m = () => {}, F(() => e.release());
1028
+ j = e.currentLayer, M = e.leavingLayer, N = () => {}, L(() => e.release());
928
1029
  } else {
929
- let e = qe({
1030
+ let e = nt({
930
1031
  containerEl: a,
931
1032
  activeLayer: n,
932
- axis: c,
1033
+ axis: p,
933
1034
  directionTypes: (e, t) => {
934
1035
  let n = i.value.findIndex((t) => t.id === e);
935
1036
  return [i.value.findIndex((e) => e.id === t) < n ? "layer-back" : "layer-forward"];
936
1037
  }
937
1038
  });
938
- d = B(e.currentLayer), p = B(e.leavingLayer), m = e.onTransitionEnd;
1039
+ j = H(e.currentLayer), M = H(e.leavingLayer), N = e.onTransitionEnd;
939
1040
  }
940
- let h = typeof document < "u" && "startViewTransition" in document, g = ee(), _ = C(() => h ? {
941
- "view-transition-name": `gl-dock-stack-${g.replace(/[^a-zA-Z0-9_-]/g, "-")}`,
1041
+ let z = typeof document < "u" && "startViewTransition" in document, B = ne(), ie = T(() => z ? {
1042
+ "view-transition-name": `gl-dock-stack-${B.replace(/[^a-zA-Z0-9_-]/g, "-")}`,
942
1043
  "view-transition-class": "gl-dock-layer"
943
1044
  } : void 0);
944
- Ge({
945
- register: o,
946
- unregister: s,
947
- currentLayerId: d,
948
- leavingLayerId: p
1045
+ et({
1046
+ register: c,
1047
+ unregister: l,
1048
+ currentLayerId: j,
1049
+ leavingLayerId: M
949
1050
  });
950
- function v(e) {
1051
+ function X(e) {
951
1052
  return typeof e == "object" && !!e || typeof e == "function";
952
1053
  }
953
- let y = V(!1);
954
- function b() {
955
- y.value || (y.value = !0, r?.keepOpen());
1054
+ let Z = U(!1);
1055
+ function ae() {
1056
+ Z.value || (Z.value = !0, r?.keepOpen());
956
1057
  }
957
- function x(e) {
1058
+ function Q(e) {
958
1059
  let t = e.relatedTarget, n = e.currentTarget;
959
- t && n?.contains(t) || y.value && (y.value = !1, r?.release());
1060
+ t && n?.contains(t) || Z.value && (Z.value = !1, r?.release());
960
1061
  }
961
- return (t, r) => (z(), E("div", { class: N(["dock-layer-group", [c.value, `rail-${e.railPosition}`]]) }, [e.showRail && i.value.length > 1 ? (z(), w(K(ze), {
1062
+ return (r, s) => (V(), O("div", {
1063
+ ref_key: "groupEl",
1064
+ ref: o,
1065
+ class: F(["dock-layer-group", [p.value, `rail-${e.railPosition}`]]),
1066
+ style: I(f.value)
1067
+ }, [e.showRail && i.value.length > 1 ? (V(), E(K(Je), {
962
1068
  key: 0,
963
1069
  modelValue: n.value,
964
- "onUpdate:modelValue": r[0] ||= (e) => n.value = e,
965
- orientation: l.value,
1070
+ "onUpdate:modelValue": s[0] ||= (e) => n.value = e,
1071
+ orientation: h.value,
966
1072
  "as-child": !0
967
1073
  }, {
968
- default: X(() => [O(K(He), {
969
- class: N(["dock-layer-rail", e.railPosition]),
1074
+ default: Y(() => [A(K(Ze), {
1075
+ ref_key: "railListEl",
1076
+ ref: g,
1077
+ class: F(["dock-layer-rail", [
1078
+ e.railPosition,
1079
+ t.draggable && "glass-drag-grabbable",
1080
+ t.draggable && K(x).dragging.value && "glass-drag-lift"
1081
+ ]]),
1082
+ style: I(t.draggable ? K(x).dragStyle.value : void 0),
970
1083
  indicator: !1,
971
- onFocusin: b,
972
- onFocusout: x
1084
+ onFocusin: ae,
1085
+ onFocusout: Q
973
1086
  }, {
974
- default: X(() => [(z(!0), E(S, null, H(i.value, (e) => (z(), w(K(Be), {
1087
+ default: Y(() => [(V(!0), O(w, null, ee(i.value, (e) => (V(), E(K(Ye), {
975
1088
  key: e.id,
976
1089
  value: e.id,
977
1090
  class: "dock-layer-tab",
978
1091
  title: e.label,
979
1092
  "aria-label": e.label ?? e.id
980
1093
  }, {
981
- default: X(() => [v(e.icon) ? (z(), w(W(e.icon), {
1094
+ default: Y(() => [X(e.icon) ? (V(), E(G(e.icon), {
982
1095
  key: 0,
983
1096
  class: "size-4"
984
- })) : typeof e.icon == "string" ? (z(), E("span", Je, G(e.icon), 1)) : (z(), E("span", Ye, G((e.label ?? e.id).charAt(0)), 1))]),
1097
+ })) : typeof e.icon == "string" ? (V(), O("span", rt, te(e.icon), 1)) : (V(), O("span", it, te((e.label ?? e.id).charAt(0)), 1))]),
985
1098
  _: 2
986
1099
  }, 1032, [
987
1100
  "value",
988
1101
  "title",
989
1102
  "aria-label"
990
- ]))), 128)), O(K(Ve), {
1103
+ ]))), 128)), A(K(Xe), {
991
1104
  class: "dock-layer-tab-indicator",
992
1105
  surface: !1
993
1106
  })]),
994
1107
  _: 1
995
- }, 8, ["class"])]),
1108
+ }, 8, ["class", "style"])]),
996
1109
  _: 1
997
- }, 8, ["modelValue", "orientation"])) : T("", !0), D("div", {
1110
+ }, 8, ["modelValue", "orientation"])) : D("", !0), k("div", {
998
1111
  ref_key: "containerEl",
999
1112
  ref: a,
1000
1113
  class: "dock-layer-stack",
1001
- style: P(_.value),
1002
- onTransitionend: r[1] ||= (...e) => K(m) && K(m)(...e)
1003
- }, [U(t.$slots, "default")], 36)], 2));
1114
+ style: I(ie.value),
1115
+ onTransitionend: s[1] ||= (...e) => K(N) && K(N)(...e)
1116
+ }, [W(r.$slots, "default")], 36)], 6));
1004
1117
  }
1005
- }), Ze = [
1118
+ }), ot = [
1006
1119
  "inert",
1007
1120
  "aria-hidden",
1008
1121
  "tabindex"
1009
- ], Qe = /* @__PURE__ */ k({
1122
+ ], st = /* @__PURE__ */ j({
1010
1123
  __name: "DockLayer",
1011
1124
  props: {
1012
1125
  id: {},
@@ -1014,35 +1127,35 @@ var Je = { key: 1 }, Ye = { key: 2 }, Xe = /* @__PURE__ */ k({
1014
1127
  icon: {}
1015
1128
  },
1016
1129
  setup(e) {
1017
- let t = e, n = Ke();
1018
- I(() => {
1130
+ let t = e, n = tt();
1131
+ R(() => {
1019
1132
  n.register({
1020
1133
  id: t.id,
1021
1134
  label: t.label,
1022
1135
  icon: t.icon
1023
1136
  });
1024
- }), F(() => {
1137
+ }), L(() => {
1025
1138
  n.unregister(t.id);
1026
1139
  });
1027
- let r = C(() => n.currentLayerId.value === t.id), i = C(() => n.leavingLayerId.value === t.id), a = J("hostEl");
1028
- return Y(r, async (e, t) => {
1140
+ let r = T(() => n.currentLayerId.value === t.id), i = T(() => n.leavingLayerId.value === t.id), a = q("hostEl");
1141
+ return J(r, async (e, t) => {
1029
1142
  !e || t || typeof document < "u" && (() => {
1030
1143
  let e = document.activeElement;
1031
1144
  return !e || e === document.body ? !0 : !!e.closest("[inert]");
1032
- })() && (await M(), a.value?.focus());
1033
- }), (e, t) => (z(), E("div", {
1145
+ })() && (await P(), a.value?.focus());
1146
+ }), (e, t) => (V(), O("div", {
1034
1147
  ref_key: "hostEl",
1035
1148
  ref: a,
1036
- class: N(["dock-layer-item-host", {
1149
+ class: F(["dock-layer-item-host", {
1037
1150
  "is-active": r.value,
1038
1151
  "is-leaving": i.value
1039
1152
  }]),
1040
1153
  inert: r.value ? void 0 : !0,
1041
1154
  "aria-hidden": r.value ? void 0 : !0,
1042
1155
  tabindex: r.value ? -1 : void 0
1043
- }, [U(e.$slots, "default")], 10, Ze));
1156
+ }, [W(e.$slots, "default")], 10, ot));
1044
1157
  }
1045
- }), $e = /* @__PURE__ */ k({
1158
+ }), ct = /* @__PURE__ */ j({
1046
1159
  __name: "DockIconButton",
1047
1160
  props: {
1048
1161
  compact: {
@@ -1064,26 +1177,20 @@ var Je = { key: 1 }, Ye = { key: 2 }, Xe = /* @__PURE__ */ k({
1064
1177
  ] }
1065
1178
  },
1066
1179
  setup(t) {
1067
- let n = t, r = C(() => e("dock-icon-button glass-specular-track", { "dock-icon-button--compact": n.compact }, n.class)), { specularStyle: a, onPointerMove: o } = i(), s = C(() => !n.asChild && n.as === "button" ? { type: n.type } : {});
1068
- return (e, n) => (z(), w(K(ne), j({
1180
+ let n = t, r = T(() => e("dock-icon-button glass-specular-track", { "dock-icon-button--compact": n.compact }, n.class)), i = T(() => !n.asChild && n.as === "button" ? { type: n.type } : {});
1181
+ return (e, n) => X((V(), E(K(ae), N({
1069
1182
  as: t.as,
1070
1183
  "as-child": t.asChild
1071
- }, s.value, {
1072
- class: r.value,
1073
- style: K(a),
1074
- onPointermove: K(o)
1075
- }), {
1076
- default: X(() => [U(e.$slots, "default")]),
1184
+ }, i.value, { class: r.value }), {
1185
+ default: Y(() => [W(e.$slots, "default")]),
1077
1186
  _: 3
1078
1187
  }, 16, [
1079
1188
  "as",
1080
1189
  "as-child",
1081
- "class",
1082
- "style",
1083
- "onPointermove"
1084
- ]));
1190
+ "class"
1191
+ ])), [[K(o)]]);
1085
1192
  }
1086
- }), et = /* @__PURE__ */ k({
1193
+ }), lt = /* @__PURE__ */ j({
1087
1194
  __name: "DockBackgroundToggle",
1088
1195
  props: {
1089
1196
  paused: {
@@ -1094,23 +1201,23 @@ var Je = { key: 1 }, Ye = { key: 2 }, Xe = /* @__PURE__ */ k({
1094
1201
  playLabel: { default: "Resume background animation" }
1095
1202
  },
1096
1203
  emits: ["update:paused"],
1097
- setup(e, { emit: t }) {
1098
- let n = e, r = t, i = C(() => n.paused ? n.playLabel : n.pauseLabel);
1099
- function a() {
1100
- r("update:paused", !n.paused);
1204
+ setup(e, { emit: n }) {
1205
+ let i = e, a = n, o = T(() => i.paused ? i.playLabel : i.pauseLabel);
1206
+ function s() {
1207
+ a("update:paused", !i.paused);
1101
1208
  }
1102
- return (t, n) => (z(), w($e, {
1209
+ return (n, i) => (V(), E(ct, {
1103
1210
  type: "button",
1104
1211
  "aria-pressed": e.paused,
1105
- "aria-label": i.value,
1106
- title: i.value,
1107
- onClick: a
1212
+ "aria-label": o.value,
1213
+ title: o.value,
1214
+ onClick: s
1108
1215
  }, {
1109
- default: X(() => [e.paused ? (z(), w(K(fe), {
1216
+ default: Y(() => [e.paused ? (V(), E(K(t), {
1110
1217
  key: 0,
1111
1218
  size: 18,
1112
1219
  "aria-hidden": "true"
1113
- })) : (z(), w(K(de), {
1220
+ })) : (V(), E(K(r), {
1114
1221
  key: 1,
1115
1222
  size: 18,
1116
1223
  "aria-hidden": "true"
@@ -1122,7 +1229,7 @@ var Je = { key: 1 }, Ye = { key: 2 }, Xe = /* @__PURE__ */ k({
1122
1229
  "title"
1123
1230
  ]));
1124
1231
  }
1125
- }), tt = /* @__PURE__ */ k({
1232
+ }), ut = /* @__PURE__ */ j({
1126
1233
  __name: "DockTabButton",
1127
1234
  props: {
1128
1235
  as: { default: "button" },
@@ -1139,21 +1246,21 @@ var Je = { key: 1 }, Ye = { key: 2 }, Xe = /* @__PURE__ */ k({
1139
1246
  ] }
1140
1247
  },
1141
1248
  setup(t) {
1142
- let n = t, r = C(() => e("dock-tab-button", n.class));
1143
- return (e, n) => (z(), w(K(ne), {
1249
+ let n = t, r = T(() => e("dock-tab-button", n.class));
1250
+ return (e, n) => X((V(), E(K(ae), {
1144
1251
  as: t.as,
1145
1252
  "as-child": t.asChild,
1146
- class: N(r.value)
1253
+ class: F(r.value)
1147
1254
  }, {
1148
- default: X(() => [U(e.$slots, "default")]),
1255
+ default: Y(() => [W(e.$slots, "default")]),
1149
1256
  _: 3
1150
1257
  }, 8, [
1151
1258
  "as",
1152
1259
  "as-child",
1153
1260
  "class"
1154
- ]));
1261
+ ])), [[K(o)]]);
1155
1262
  }
1156
- }), nt = /* @__PURE__ */ k({
1263
+ }), dt = /* @__PURE__ */ j({
1157
1264
  __name: "DockSelectTrigger",
1158
1265
  props: {
1159
1266
  disabled: { type: Boolean },
@@ -1169,19 +1276,19 @@ var Je = { key: 1 }, Ye = { key: 2 }, Xe = /* @__PURE__ */ k({
1169
1276
  ] }
1170
1277
  },
1171
1278
  setup(t) {
1172
- let r = t, i = ce(C(() => {
1279
+ let r = t, i = de(T(() => {
1173
1280
  let { class: e, ...t } = r;
1174
1281
  return t;
1175
1282
  }));
1176
- return (t, a) => (z(), w(K(ie), j(K(i), { class: K(e)("dock-select-trigger", r.class) }), {
1177
- default: X(() => [U(t.$slots, "default"), O(K(re), { "as-child": "" }, {
1178
- default: X(() => [U(t.$slots, "icon", {}, () => [O(K(n), { class: "dock-select-trigger__chevron" })])]),
1283
+ return (t, a) => X((V(), E(K(oe), N(K(i), { class: K(e)("dock-select-trigger", r.class) }), {
1284
+ default: Y(() => [W(t.$slots, "default"), A(K(Q), { "as-child": "" }, {
1285
+ default: Y(() => [W(t.$slots, "icon", {}, () => [A(K(n), { class: "dock-select-trigger__chevron" })])]),
1179
1286
  _: 3
1180
1287
  })]),
1181
1288
  _: 3
1182
- }, 16, ["class"]));
1289
+ }, 16, ["class"])), [[K(o)]]);
1183
1290
  }
1184
- }), rt = /* @__PURE__ */ k({
1291
+ }), ft = /* @__PURE__ */ j({
1185
1292
  __name: "DockDropdownTrigger",
1186
1293
  props: {
1187
1294
  disabled: { type: Boolean },
@@ -1197,38 +1304,38 @@ var Je = { key: 1 }, Ye = { key: 2 }, Xe = /* @__PURE__ */ k({
1197
1304
  ] }
1198
1305
  },
1199
1306
  setup(t) {
1200
- let n = t, r = ce(C(() => {
1307
+ let n = t, r = de(T(() => {
1201
1308
  let { class: e, ...t } = n;
1202
1309
  return t;
1203
1310
  }));
1204
- return (t, i) => (z(), w(K(Z), j(K(r), { class: K(e)("dock-dropdown-trigger", n.class) }), {
1205
- default: X(() => [U(t.$slots, "default")]),
1311
+ return (t, i) => X((V(), E(K(Z), N(K(r), { class: K(e)("dock-dropdown-trigger", n.class) }), {
1312
+ default: Y(() => [W(t.$slots, "default")]),
1206
1313
  _: 3
1207
- }, 16, ["class"]));
1314
+ }, 16, ["class"])), [[K(o)]]);
1208
1315
  }
1209
- }), it = [
1316
+ }), pt = [
1210
1317
  "data-orientation",
1211
1318
  "data-rail-anchor",
1212
1319
  "aria-orientation"
1213
- ], at = /* @__PURE__ */ k({
1320
+ ], mt = /* @__PURE__ */ j({
1214
1321
  __name: "DockSeparator",
1215
1322
  props: { anchor: {
1216
1323
  type: Boolean,
1217
1324
  default: !1
1218
1325
  } },
1219
1326
  setup(e) {
1220
- let t = f(), n = C(() => t?.orientation.value ?? "horizontal"), r = C(() => n.value), i = C(() => n.value === "vertical" ? "horizontal" : "vertical");
1221
- return (t, n) => (z(), E("div", {
1222
- class: N(["dock-separator", { "dock-separator--anchor": e.anchor }]),
1327
+ let t = m(), n = T(() => t?.orientation.value ?? "horizontal"), r = T(() => n.value), i = T(() => n.value === "vertical" ? "horizontal" : "vertical");
1328
+ return (t, n) => (V(), O("div", {
1329
+ class: F(["dock-separator", { "dock-separator--anchor": e.anchor }]),
1223
1330
  role: "separator",
1224
1331
  "data-orientation": r.value,
1225
1332
  "data-rail-anchor": e.anchor || void 0,
1226
1333
  "aria-orientation": i.value
1227
- }, null, 10, it));
1334
+ }, null, 10, pt));
1228
1335
  }
1229
- }), ot = ["data-orientation", "aria-label"], st = ["aria-label"], ct = { class: "dock-hairline-extend-chip-label" }, lt = /* @__PURE__ */ k({
1336
+ }), ht = ["data-orientation", "aria-label"], gt = ["aria-label"], _t = { class: "dock-hairline-extend-chip-label" }, vt = /* @__PURE__ */ j({
1230
1337
  __name: "DockRail",
1231
- props: /* @__PURE__ */ A({
1338
+ props: /* @__PURE__ */ M({
1232
1339
  extent: { default: "beyond" },
1233
1340
  position: { default: "end" },
1234
1341
  items: {},
@@ -1238,14 +1345,14 @@ var Je = { key: 1 }, Ye = { key: 2 }, Xe = /* @__PURE__ */ k({
1238
1345
  context: {},
1239
1346
  contextModifiers: {}
1240
1347
  }),
1241
- emits: /* @__PURE__ */ A(["advance"], ["update:context"]),
1348
+ emits: /* @__PURE__ */ M(["advance"], ["update:context"]),
1242
1349
  setup(e, { emit: t }) {
1243
- let n = e, i = q(e, "context"), a = t, o = f(), s = C(() => o?.orientation.value ?? "horizontal"), c = C(() => n.icon ?? r), l = C(() => n.items && n.items.length > 0 ? [...n.items] : []);
1350
+ let n = e, r = re(e, "context"), a = t, o = m(), s = T(() => o?.orientation.value ?? "horizontal"), c = T(() => n.icon ?? i), l = T(() => n.items && n.items.length > 0 ? [...n.items] : []);
1244
1351
  function u(e) {
1245
- i.value = e, a("advance", e);
1352
+ r.value = e, a("advance", e);
1246
1353
  }
1247
- return (t, n) => (z(), E("div", {
1248
- class: N(["dock-hairline-extend", [
1354
+ return (t, n) => (V(), O("div", {
1355
+ class: F(["dock-hairline-extend", [
1249
1356
  s.value,
1250
1357
  `extent-${e.extent}`,
1251
1358
  `at-${e.position}`
@@ -1253,25 +1360,25 @@ var Je = { key: 1 }, Ye = { key: 2 }, Xe = /* @__PURE__ */ k({
1253
1360
  "data-orientation": s.value,
1254
1361
  role: "group",
1255
1362
  "aria-label": e.iconLabel
1256
- }, [O(v, {
1363
+ }, [A(b, {
1257
1364
  axis: "x",
1258
1365
  class: "dock-hairline-fade"
1259
1366
  }, {
1260
- default: X(() => [D("div", {
1367
+ default: Y(() => [k("div", {
1261
1368
  class: "dock-hairline-strip",
1262
1369
  role: "tablist",
1263
1370
  "aria-label": e.iconLabel
1264
- }, [(z(!0), E(S, null, H(l.value, (e) => (z(), w($e, {
1371
+ }, [(V(!0), O(w, null, ee(l.value, (e) => (V(), E(ct, {
1265
1372
  key: e.id,
1266
1373
  type: "button",
1267
- class: N(["dock-hairline-extend-chip", { "is-active": i.value === e.id }]),
1374
+ class: F(["dock-hairline-extend-chip", { "is-active": r.value === e.id }]),
1268
1375
  role: "tab",
1269
- "aria-selected": i.value === e.id,
1376
+ "aria-selected": r.value === e.id,
1270
1377
  "aria-label": e.label,
1271
1378
  title: e.label,
1272
1379
  onClick: (t) => u(e.id)
1273
1380
  }, {
1274
- default: X(() => [(z(), w(W(e.icon ?? c.value), { class: "size-4" })), D("span", ct, G(e.label), 1)]),
1381
+ default: Y(() => [(V(), E(G(e.icon ?? c.value), { class: "size-4" })), k("span", _t, te(e.label), 1)]),
1275
1382
  _: 2
1276
1383
  }, 1032, [
1277
1384
  "class",
@@ -1279,15 +1386,15 @@ var Je = { key: 1 }, Ye = { key: 2 }, Xe = /* @__PURE__ */ k({
1279
1386
  "aria-label",
1280
1387
  "title",
1281
1388
  "onClick"
1282
- ]))), 128))], 8, st)]),
1389
+ ]))), 128))], 8, gt)]),
1283
1390
  _: 1
1284
- })], 10, ot));
1391
+ })], 10, ht));
1285
1392
  }
1286
- }), ut = ["aria-label"], dt = [
1393
+ }), yt = ["aria-label"], bt = [
1287
1394
  "data-kind",
1288
1395
  "data-section-id",
1289
1396
  "aria-label"
1290
- ], ft = /* @__PURE__ */ k({
1397
+ ], xt = /* @__PURE__ */ j({
1291
1398
  __name: "DockSection",
1292
1399
  props: {
1293
1400
  sections: {},
@@ -1295,7 +1402,7 @@ var Je = { key: 1 }, Ye = { key: 2 }, Xe = /* @__PURE__ */ k({
1295
1402
  ariaLabel: { default: "Dock sections" }
1296
1403
  },
1297
1404
  setup(e) {
1298
- let t = e, n = C(() => {
1405
+ let t = e, n = T(() => {
1299
1406
  if (t.anchorId) return t.anchorId;
1300
1407
  let e = t.sections.find((e) => e.kind === "nav");
1301
1408
  return e ? e.id : t.sections.find((e) => e.kind !== "rail-core")?.id;
@@ -1309,83 +1416,83 @@ var Je = { key: 1 }, Ye = { key: 2 }, Xe = /* @__PURE__ */ k({
1309
1416
  function a(e) {
1310
1417
  return `dock-section-zone--${e === "rail-core" ? "core" : e}`;
1311
1418
  }
1312
- return (t, n) => (z(), E("div", {
1419
+ return (t, n) => (V(), O("div", {
1313
1420
  class: "dock-section",
1314
1421
  role: "group",
1315
1422
  "aria-label": e.ariaLabel
1316
- }, [(z(!0), E(S, null, H(e.sections, (e, n) => (z(), E(S, { key: e.id }, [r(n) ? (z(), w(at, {
1423
+ }, [(V(!0), O(w, null, ee(e.sections, (e, n) => (V(), O(w, { key: e.id }, [r(n) ? (V(), E(mt, {
1317
1424
  key: 0,
1318
1425
  anchor: i(e)
1319
- }, null, 8, ["anchor"])) : T("", !0), D("div", {
1320
- class: N(["dock-section-zone", a(e.kind)]),
1426
+ }, null, 8, ["anchor"])) : D("", !0), k("div", {
1427
+ class: F(["dock-section-zone", a(e.kind)]),
1321
1428
  "data-kind": e.kind,
1322
1429
  "data-section-id": e.id,
1323
1430
  "aria-label": e.label || void 0
1324
- }, [U(t.$slots, e.id, {
1431
+ }, [W(t.$slots, e.id, {
1325
1432
  section: e,
1326
1433
  kind: e.kind
1327
- })], 10, dt)], 64))), 128))], 8, ut));
1434
+ })], 10, bt)], 64))), 128))], 8, yt));
1328
1435
  }
1329
1436
  });
1330
1437
  //#endregion
1331
1438
  //#region src/components/custom/dock/composables/useDockOrientationMorph.ts
1332
- function pt(e) {
1333
- let { rootEl: t } = e, n = V("vertical"), r = V(0), i = V(!1), a = y({
1439
+ function St(e) {
1440
+ let { rootEl: t } = e, n = U("vertical"), r = U(0), i = U(!1), o = a({
1334
1441
  from: e.verticalSize,
1335
1442
  to: 0,
1336
1443
  axis: "height"
1337
- }), o = y({
1444
+ }), s = a({
1338
1445
  from: 0,
1339
1446
  to: e.horizontalSize,
1340
1447
  axis: "width"
1341
- }), s = null;
1342
- function c(e) {
1343
- r.value = e, a.drive(e), o.drive(e);
1448
+ }), c = null;
1449
+ function l(e) {
1450
+ r.value = e, o.drive(e), s.drive(e);
1344
1451
  let n = t.value;
1345
1452
  n && n.style.setProperty("--dock-morph-t", `${e}`);
1346
1453
  }
1347
- function l() {
1348
- s &&= (s.dispose(), null);
1349
- }
1350
1454
  function u() {
1455
+ c &&= (c.dispose(), null);
1456
+ }
1457
+ function d() {
1351
1458
  return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
1352
1459
  }
1353
- function d(e) {
1354
- if (u()) {
1355
- m(e);
1460
+ function f(e) {
1461
+ if (d()) {
1462
+ h(e);
1356
1463
  return;
1357
1464
  }
1358
- let n = t.value, a = s !== null && !s.settled ? s.velocity : 0;
1359
- if (!s || s.settled) {
1360
- l(), s = new ue({
1361
- response: g.response,
1362
- dampingFraction: g.dampingFraction,
1465
+ let n = t.value, a = c !== null && !c.settled ? c.velocity : 0;
1466
+ if (!c || c.settled) {
1467
+ u(), c = new pe({
1468
+ response: v.response,
1469
+ dampingFraction: v.dampingFraction,
1363
1470
  initial: r.value,
1364
1471
  respectReducedMotion: !0
1365
1472
  });
1366
- let o = s;
1473
+ let o = c;
1367
1474
  o.reset(r.value, a), o.target = e, i.value = !0, n && n.setAttribute("data-morphing", ""), o.play((e) => {
1368
- if (c(e), o.settled) {
1475
+ if (l(e), o.settled) {
1369
1476
  i.value = !1;
1370
1477
  let e = t.value;
1371
1478
  e && e.removeAttribute("data-morphing");
1372
1479
  }
1373
1480
  });
1374
- } else s.reset(r.value, a), s.target = e;
1481
+ } else c.reset(r.value, a), c.target = e;
1375
1482
  }
1376
- function f(e) {
1377
- e === n.value && !i.value || (n.value = e, d(+(e === "horizontal")));
1483
+ function p(e) {
1484
+ e === n.value && !i.value || (n.value = e, f(+(e === "horizontal")));
1378
1485
  }
1379
- function p() {
1380
- f(n.value === "vertical" ? "horizontal" : "vertical");
1486
+ function m() {
1487
+ p(n.value === "vertical" ? "horizontal" : "vertical");
1381
1488
  }
1382
- function m(e) {
1489
+ function h(e) {
1383
1490
  let r = e < 0 ? 0 : e > 1 ? 1 : e;
1384
- l(), i.value = !1, n.value = r >= .5 ? "horizontal" : "vertical", c(r), c(r);
1491
+ u(), i.value = !1, n.value = r >= .5 ? "horizontal" : "vertical", l(r), l(r);
1385
1492
  let a = t.value;
1386
1493
  a && a.removeAttribute("data-morphing");
1387
1494
  }
1388
- function h(e) {
1495
+ function g(e) {
1389
1496
  let t = Math.min(Math.max(e / .5, 0), 1);
1390
1497
  return 1 - t * t * (3 - 2 * t);
1391
1498
  }
@@ -1393,22 +1500,22 @@ function pt(e) {
1393
1500
  let t = Math.min(Math.max((e - .5) / .5, 0), 1);
1394
1501
  return t * t * (3 - 2 * t);
1395
1502
  }
1396
- let v = C(() => a.sizeStyle.value), b = C(() => o.sizeStyle.value), x = C(() => ({ opacity: String(h(r.value)) })), S = C(() => ({ opacity: String(_(r.value)) })), w = C(() => Math.max(a.stretch.value, o.stretch.value));
1397
- return Y(t, (e) => {
1503
+ let y = T(() => o.sizeStyle.value), b = T(() => s.sizeStyle.value), x = T(() => ({ opacity: String(g(r.value)) })), S = T(() => ({ opacity: String(_(r.value)) })), C = T(() => Math.max(o.stretch.value, s.stretch.value));
1504
+ return J(t, (e) => {
1398
1505
  e && e.style.setProperty("--dock-morph-t", `${r.value}`);
1399
- }, { immediate: !0 }), L(l), {
1506
+ }, { immediate: !0 }), z(u), {
1400
1507
  orientation: n,
1401
1508
  t: r,
1402
1509
  morphing: i,
1403
- verticalStyle: v,
1510
+ verticalStyle: y,
1404
1511
  horizontalStyle: b,
1405
1512
  verticalOpacity: x,
1406
1513
  horizontalOpacity: S,
1407
- stretch: w,
1408
- morphTo: f,
1409
- toggle: p,
1410
- pin: m
1514
+ stretch: C,
1515
+ morphTo: p,
1516
+ toggle: m,
1517
+ pin: h
1411
1518
  };
1412
1519
  }
1413
1520
  //#endregion
1414
- export { _ as DOCK_CONTEXT_KEY, et as DockBackgroundToggle, rt as DockDropdownTrigger, $e as DockIconButton, Qe as DockLayer, Xe as DockLayerGroup, lt as DockRail, ft as DockSection, nt as DockSelectTrigger, at as DockSeparator, tt as DockTabButton, Re as GlassDock, p as provideDockContext, h as useDockContext, pt as useDockOrientationMorph, qe as useLayerTransition, f as useOptionalDockContext };
1521
+ export { y as DOCK_CONTEXT_KEY, lt as DockBackgroundToggle, ft as DockDropdownTrigger, ct as DockIconButton, st as DockLayer, at as DockLayerGroup, vt as DockRail, xt as DockSection, dt as DockSelectTrigger, mt as DockSeparator, ut as DockTabButton, qe as GlassDock, h as provideDockContext, _ as useDockContext, St as useDockOrientationMorph, nt as useLayerTransition, m as useOptionalDockContext };