@mkbabb/glass-ui 3.7.0 → 3.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (261) hide show
  1. package/README.md +1 -6
  2. package/dist/CardAction-DuArVky-.js +157 -0
  3. package/dist/{CommandShortcut-CY0aQTz5.js → CommandShortcut-CefCj5mt.js} +7 -7
  4. package/dist/{ContextMenuSubContent-BeDz7G6f.js → ContextMenuSubContent-Bhg4f5jX.js} +3 -3
  5. package/dist/{DataTable-gtPOLZvl.js → DataTable-CUHMukiQ.js} +4 -4
  6. package/dist/DeckProgress-Dmk4_AKN.js +23 -0
  7. package/dist/{DialogContent-DG1YMR-P.js → DialogContent-BRkT1cjP.js} +3 -3
  8. package/dist/{DialogFooter-BCIaDP15.js → DialogFooter-Gprw8H_A.js} +1 -1
  9. package/dist/{HoverPopover-DXpOEw1P.js → HoverPopover-2LOIW34a.js} +1 -1
  10. package/dist/{IconTooltip-Cu86JR4e.js → IconTooltip-yefK7cJc.js} +1 -1
  11. package/dist/{MetricBadge-D-bRaQUD.js → MetricBadge-lTc002u2.js} +1 -1
  12. package/dist/{Notification-B5WHP3_1.js → Notification-BxK8LZMw.js} +1 -1
  13. package/dist/{NumberFieldContent-CLNVR1iY.js → NumberFieldContent-BbLOh8RU.js} +2 -2
  14. package/dist/{PopoverContent-F1bWnYoh.js → PopoverContent-BId6ggf_.js} +1 -1
  15. package/dist/{Progress-c4vo4ALi.js → Progress-iEuD9pxG.js} +4 -4
  16. package/dist/{ScrollingText-BEp377U5.js → ScrollingText-BPP84wKo.js} +2 -2
  17. package/dist/{SelectScrollDownButton-DAo5NmY_.js → SelectScrollDownButton-T32cVFeM.js} +4 -4
  18. package/dist/{SelectSeparator-COFMJGng.js → SelectSeparator-C4Ql0gzV.js} +1 -1
  19. package/dist/{TabsList-COqIdW7i.js → TabsList-B8CVOQPC.js} +2 -2
  20. package/dist/{Toaster-BMaeziJJ.js → Toaster-1rYWrmAm.js} +1 -1
  21. package/dist/{ToggleGroupItem-C-AIkBUw.js → ToggleGroupItem-Cev4pOVK.js} +5 -5
  22. package/dist/animated-digit.js +1 -1
  23. package/dist/api/index.d.ts +5 -3
  24. package/dist/aurora.js +339 -408
  25. package/dist/{badge-DHQrc_GQ.js → badge-BvwvT50i.js} +4 -4
  26. package/dist/badge.js +1 -1
  27. package/dist/{button-CAywcrhO.js → button-DN39cGqL.js} +13 -12
  28. package/dist/button.js +1 -1
  29. package/dist/canvas.d.ts +1 -0
  30. package/dist/canvas.js +3 -0
  31. package/dist/card.js +1 -1
  32. package/dist/carousel.js +106 -105
  33. package/dist/collapsible.js +1 -1
  34. package/dist/{color-DjJCAQ6f.js → color-8jBjWiJ6.js} +22 -14
  35. package/dist/color.js +2 -2
  36. package/dist/command.js +1 -1
  37. package/dist/compile-DAjIoEy2.js +158 -0
  38. package/dist/components/custom/aurora/composables/atoms.d.ts +90 -25
  39. package/dist/components/custom/aurora/composables/color.d.ts +0 -12
  40. package/dist/components/custom/aurora/composables/uniformBridge.d.ts +34 -23
  41. package/dist/components/custom/aurora/constants/presets.d.ts +10 -7
  42. package/dist/components/custom/aurora/constants/renderMode.d.ts +22 -0
  43. package/dist/components/custom/aurora/constants/shaders/aurora.wgsl.d.ts +1 -1
  44. package/dist/components/custom/aurora/constants/shaders/brush.glsl.d.ts +1 -1
  45. package/dist/components/custom/aurora/constants/shaders/composition.glsl.d.ts +1 -1
  46. package/dist/components/custom/aurora/constants/shaders/mediums.glsl.d.ts +1 -1
  47. package/dist/components/custom/aurora/index.d.ts +3 -3
  48. package/dist/components/custom/configurator/ConfiguratorLayer.vue.d.ts +1 -1
  49. package/dist/components/custom/constellation/Constellation.vue.d.ts +40 -5
  50. package/dist/components/custom/constellation/constellationField.d.ts +110 -5
  51. package/dist/components/custom/constellation/index.d.ts +2 -2
  52. package/dist/components/custom/dock/DockSeparator.vue.d.ts +3 -0
  53. package/dist/components/custom/dock/GlassDock.vue.d.ts +57 -67
  54. package/dist/components/custom/dock/composables/dockContext.d.ts +7 -0
  55. package/dist/components/custom/dock/composables/dockMorphContext.d.ts +57 -0
  56. package/dist/components/custom/dock/composables/index.d.ts +3 -0
  57. package/dist/components/custom/dock/composables/useDockHold.d.ts +61 -0
  58. package/dist/components/custom/dock/composables/useLayerTransition.d.ts +13 -59
  59. package/dist/components/custom/dock/index.d.ts +4 -1
  60. package/dist/components/custom/goo-blob/GooBlob.vue.d.ts +13 -0
  61. package/dist/components/custom/goo-blob/composables/useBlobMood.d.ts +23 -5
  62. package/dist/components/custom/goo-blob/composables/useBlobPointer.d.ts +2 -0
  63. package/dist/components/custom/goo-blob/composables/useBlobSatellites.d.ts +2 -0
  64. package/dist/components/custom/goo-blob/composables/useMetaballRenderer.d.ts +20 -5
  65. package/dist/components/custom/goo-blob/index.d.ts +1 -1
  66. package/dist/components/custom/goo-blob/shaders/sdf-body.glsl.d.ts +1 -1
  67. package/dist/components/custom/goo-blob/shaders/watercolor-edges.glsl.d.ts +2 -2
  68. package/dist/components/custom/goo-blob/types.d.ts +8 -0
  69. package/dist/components/custom/tabs/SegmentedTabs.vue.d.ts +92 -0
  70. package/dist/components/custom/tabs/composables/useTabIndicator.d.ts +49 -0
  71. package/dist/components/custom/tabs/index.d.ts +2 -5
  72. package/dist/components/ui/button/index.d.ts +1 -1
  73. package/dist/components/ui/card/Card.vue.d.ts +28 -10
  74. package/dist/components/ui/card/index.d.ts +1 -1
  75. package/dist/components/ui/carousel/CarouselNext.vue.d.ts +1 -1
  76. package/dist/components/ui/carousel/CarouselPrevious.vue.d.ts +1 -1
  77. package/dist/components/ui/carousel/GlassCarouselPager.vue.d.ts +3 -4
  78. package/dist/components/ui/progress/ProgressDefault.vue.d.ts +14 -4
  79. package/dist/components/ui/slider/Slider.vue.d.ts +3 -1
  80. package/dist/components/ui/slider/index.d.ts +14 -7
  81. package/dist/components/ui/tabs/TabsList.vue.d.ts +1 -1
  82. package/dist/composables/color/index.d.ts +19 -0
  83. package/dist/composables/context/createContext.d.ts +1 -1
  84. package/dist/composables/dom/index.d.ts +1 -1
  85. package/dist/composables/dom/useResolveTokenColor.d.ts +27 -0
  86. package/dist/composables/glass/canvas2d/index.d.ts +2 -1
  87. package/dist/composables/glass/canvas2d/resolveCanvasColor.d.ts +20 -0
  88. package/dist/composables/glass/canvas2d/useCanvas2D.d.ts +15 -1
  89. package/dist/composables/glass/index.d.ts +3 -1
  90. package/dist/composables/glass/useSpecularTracking.d.ts +33 -0
  91. package/dist/composables/glass/webgl/createCanvasLifecycle.d.ts +1 -1
  92. package/dist/composables/glass/webgl/shaders/procedural-color.glsl.d.ts +4 -0
  93. package/dist/composables/glass/webgl/useWebGLCanvas.d.ts +1 -1
  94. package/dist/composables/motion/core/index.d.ts +1 -0
  95. package/dist/configurator.js +1 -1
  96. package/dist/confirm-dialog.js +2 -2
  97. package/dist/constellation.js +143 -74
  98. package/dist/context-menu.js +2 -2
  99. package/dist/controls.js +1 -1
  100. package/dist/data-table.js +1 -1
  101. package/dist/deck-progress.d.ts +1 -0
  102. package/dist/deck-progress.js +2 -0
  103. package/dist/dialog.js +2 -2
  104. package/dist/dock.js +468 -354
  105. package/dist/{dockContext-DLgrVWsU.js → dockContext-BKeIMmNk.js} +1 -1
  106. package/dist/dom.js +6 -6
  107. package/dist/{dropdown-menu-BWpwutt0.js → dropdown-menu-D77jX6Df.js} +4 -4
  108. package/dist/dropdown-menu.js +1 -1
  109. package/dist/fonts/README.md +26 -18
  110. package/dist/forms.js +5 -5
  111. package/dist/fourier-field.js +35 -35
  112. package/dist/glass-panel.js +7 -7
  113. package/dist/glass-ui.css +1 -1
  114. package/dist/glass-ui.js +154 -169
  115. package/dist/goo-blob.js +361 -274
  116. package/dist/header-ribbon.js +1 -1
  117. package/dist/hover-card.js +1 -1
  118. package/dist/hover-popover.js +1 -1
  119. package/dist/icon-tooltip.js +1 -1
  120. package/dist/index.d.ts +1 -2
  121. package/dist/instrument-chassis.js +1 -1
  122. package/dist/instrument-rail.js +1 -1
  123. package/dist/label.js +1 -1
  124. package/dist/labeled-field.js +5 -5
  125. package/dist/{menuItemVariants-B4eFR5Ix.js → menuItemVariants-CCoBNkU5.js} +1 -1
  126. package/dist/metric-badge.js +1 -1
  127. package/dist/metric-stack.js +1 -1
  128. package/dist/motion-core.js +65 -65
  129. package/dist/motion.js +1 -1
  130. package/dist/notification.js +1 -1
  131. package/dist/number-field.js +1 -1
  132. package/dist/paper-backdrop.js +1 -1
  133. package/dist/popover.js +1 -1
  134. package/dist/progress.js +1 -1
  135. package/dist/pulse.js +2 -2
  136. package/dist/reactive.js +2 -2
  137. package/dist/resolveCanvasColor-BBiYfp8g.js +11 -0
  138. package/dist/scrolling-text.js +1 -1
  139. package/dist/search.js +9 -9
  140. package/dist/select.js +3 -3
  141. package/dist/separator.js +1 -1
  142. package/dist/{sheet-Cv1uO-Gq.js → sheet-VZEtNFvO.js} +2 -2
  143. package/dist/sheet.js +1 -1
  144. package/dist/slider-DC2mwuoe.js +142 -0
  145. package/dist/slider.js +1 -1
  146. package/dist/sortable-list.js +2 -2
  147. package/dist/status-dot.js +17 -16
  148. package/dist/styles/animations.css +6 -2
  149. package/dist/styles/components.css +1 -1
  150. package/dist/styles/dock/density.css +230 -0
  151. package/dist/styles/dock/layer-group.css +263 -0
  152. package/dist/styles/dock/layers.css +355 -0
  153. package/dist/styles/dock/morph.css +244 -0
  154. package/dist/styles/dock/overflow.css +201 -0
  155. package/dist/styles/dock/shell.css +457 -0
  156. package/dist/styles/dock-controls.css +187 -50
  157. package/dist/styles/dock.css +65 -1181
  158. package/dist/styles/fonts.css +0 -25
  159. package/dist/styles/glass.css +482 -102
  160. package/dist/styles/index.css +12 -11
  161. package/dist/styles/theme.css +60 -2
  162. package/dist/styles/tokens.css +625 -72
  163. package/dist/styles/typography.css +52 -69
  164. package/dist/styles/utilities.css +91 -40
  165. package/dist/styles/view-transition.css +12 -40
  166. package/dist/switch.js +1 -1
  167. package/dist/tabs.js +183 -152
  168. package/dist/timeline.js +3 -3
  169. package/dist/toast.js +1 -1
  170. package/dist/toggle-group.js +1 -1
  171. package/dist/tooltip.js +1 -1
  172. package/dist/typewriter.js +1 -1
  173. package/dist/{useCanvas2D-C31yfUGY.js → useCanvas2D-ClrQuZtp.js} +2 -1
  174. package/dist/{useConfiguratorState-B24TcgIn.js → useConfiguratorState-DxAqksK6.js} +24 -13
  175. package/dist/useResolveTokenColor-r9pnNjqK.js +24 -0
  176. package/dist/useSpecularTracking-BVRZsRHA.js +26 -0
  177. package/dist/{useTextHighlight-aMPdEpkq.js → useTextHighlight-DON84L8w.js} +1 -1
  178. package/dist/{useTouchGate-YQRwyUGU.js → useTouchGate-WFyJYsth.js} +1 -1
  179. package/dist/vReveal-CqaCz_mC.js +44 -0
  180. package/dist/watercolor-dot.js +1 -1
  181. package/package.json +67 -36
  182. package/src/fonts/README.md +26 -18
  183. package/src/styles/animations.css +6 -2
  184. package/src/styles/dock/density.css +230 -0
  185. package/src/styles/dock/layer-group.css +263 -0
  186. package/src/styles/dock/layers.css +355 -0
  187. package/src/styles/dock/morph.css +244 -0
  188. package/src/styles/dock/overflow.css +201 -0
  189. package/src/styles/dock/shell.css +457 -0
  190. package/src/styles/dock-controls.css +187 -50
  191. package/src/styles/dock.css +65 -1181
  192. package/src/styles/fonts.css +0 -25
  193. package/src/styles/glass.css +482 -102
  194. package/src/styles/index.css +12 -11
  195. package/src/styles/theme.css +60 -2
  196. package/src/styles/tokens.css +625 -72
  197. package/src/styles/typography.css +52 -69
  198. package/src/styles/utilities.css +91 -40
  199. package/src/styles/view-transition.css +12 -40
  200. package/dist/CardAction-D8nSE62a.js +0 -163
  201. package/dist/DiscoGlyph-ZoBYpoxI.js +0 -132
  202. package/dist/GlyphFace-Ce_oe3tM.js +0 -51
  203. package/dist/UnderlineTabs-D_c1iYo-.js +0 -39
  204. package/dist/compile-iM4IUB66.js +0 -158
  205. package/dist/components/custom/aurora/constants/shaders/painterly.wgsl.d.ts +0 -7
  206. package/dist/components/custom/aurora/constants/shaders/wake.wgsl.d.ts +0 -4
  207. package/dist/components/custom/disco-glyph/DiscoGlyph.vue.d.ts +0 -58
  208. package/dist/components/custom/disco-glyph/index.d.ts +0 -1
  209. package/dist/components/custom/glass-carousel/GlassCarousel.vue.d.ts +0 -36
  210. package/dist/components/custom/glass-carousel/GlassCarouselItem.vue.d.ts +0 -28
  211. package/dist/components/custom/glass-carousel/index.d.ts +0 -4
  212. package/dist/components/custom/glass-carousel/useGlassCarousel.d.ts +0 -30
  213. package/dist/components/custom/glyph-face/GlyphFace.vue.d.ts +0 -64
  214. package/dist/components/custom/glyph-face/index.d.ts +0 -2
  215. package/dist/components/custom/glyph-face/keys.d.ts +0 -9
  216. package/dist/components/custom/responsive-tabs/ResponsiveTabs.vue.d.ts +0 -73
  217. package/dist/components/custom/responsive-tabs/index.d.ts +0 -2
  218. package/dist/components/custom/tabs/BouncyTabs.vue.d.ts +0 -27
  219. package/dist/components/custom/tabs/BouncyToggle.vue.d.ts +0 -60
  220. package/dist/components/custom/tabs/UnderlineTabs.vue.d.ts +0 -20
  221. package/dist/components/custom/tabs/composables/useBouncySlider.d.ts +0 -39
  222. package/dist/disco-glyph.d.ts +0 -1
  223. package/dist/disco-glyph.js +0 -2
  224. package/dist/fonts/fraunces/fraunces-latin.woff2 +0 -0
  225. package/dist/glass-carousel.d.ts +0 -1
  226. package/dist/glass-carousel.js +0 -214
  227. package/dist/glyph-face.d.ts +0 -1
  228. package/dist/glyph-face.js +0 -3
  229. package/dist/keys-Dyf_uTs5.js +0 -9
  230. package/dist/responsive-tabs.d.ts +0 -1
  231. package/dist/responsive-tabs.js +0 -95
  232. package/dist/slider-BA9wIs5e.js +0 -130
  233. package/dist/styles/disco-glyph.css +0 -26
  234. package/dist/styles/glyph-face.css +0 -92
  235. package/dist/useViewTransition-DaN5Zrox.js +0 -21
  236. package/dist/vReveal-BE2TsPoR.js +0 -24
  237. package/src/fonts/fraunces/fraunces-latin.woff2 +0 -0
  238. package/src/styles/disco-glyph.css +0 -26
  239. package/src/styles/glyph-face.css +0 -92
  240. /package/dist/{CollapsibleContent-D7UNsXQr.js → CollapsibleContent-CP9qF1v4.js} +0 -0
  241. /package/dist/{ContextMenuContent-DGKZX1Du.js → ContextMenuContent-DDa0v27s.js} +0 -0
  242. /package/dist/{HoverCardContent-Bn0UBMY9.js → HoverCardContent-B6CcQ8He.js} +0 -0
  243. /package/dist/{InstrumentChassis-BLJBl1BW.js → InstrumentChassis-C2f6cBaQ.js} +0 -0
  244. /package/dist/{InstrumentRail-BElFwKyt.js → InstrumentRail-CUJ05YVG.js} +0 -0
  245. /package/dist/{Label-DBc7bKzZ.js → Label-zRfbQdCn.js} +0 -0
  246. /package/dist/{ModalOverlay-D1VrWyoi.js → ModalOverlay-B1GkAjNb.js} +0 -0
  247. /package/dist/{PaperBackdrop-DCGoGatv.js → PaperBackdrop-CqwjnfLv.js} +0 -0
  248. /package/dist/{SelectGroup-BcaFjvP4.js → SelectGroup-BFiod7X2.js} +0 -0
  249. /package/dist/{Separator-DZyqsCum.js → Separator-D7sD7RKj.js} +0 -0
  250. /package/dist/{Switch-2rsAtDfA.js → Switch-LDKLmmgx.js} +0 -0
  251. /package/dist/{TooltipProvider-CD2IXfRv.js → TooltipProvider-CmZzCuaG.js} +0 -0
  252. /package/dist/{_plugin-vue_export-helper-gLzyemvl.js → _plugin-vue_export-helper-ok8pgSl5.js} +0 -0
  253. /package/dist/composables/{dom → motion}/useTextHighlight.d.ts +0 -0
  254. /package/dist/{createContext-CvNyBk4o.js → createContext-B44Sah_H.js} +0 -0
  255. /package/dist/{useGlassRenderer-HebgSEgN.js → useGlassRenderer-5I0YkI4t.js} +0 -0
  256. /package/dist/{useInterval-D3USn0yc.js → useInterval-Dsmqwi03.js} +0 -0
  257. /package/dist/{useResizeObserver-CSyxGxIX.js → useResizeObserver-CWCbk5Px.js} +0 -0
  258. /package/dist/{useSpringMount-LRZqJTaF.js → useSpringMount-BJSHcLl3.js} +0 -0
  259. /package/dist/{useTimer-DEJonOZa.js → useTimer-3xqf_54b.js} +0 -0
  260. /package/dist/{useUserInvalidAria-CQKjEfwP.js → useUserInvalidAria-DoJKMZ3s.js} +0 -0
  261. /package/dist/{useViewportReady-K96m-Mdv.js → useViewportReady-RIr5Wgkh.js} +0 -0
package/dist/dock.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import { t as e } from "./cn-DJXf4yaB.js";
2
2
  import { t } from "./createLucideIcon-B6uNAU9G.js";
3
3
  import { t as n } from "./chevron-down-BSkTP2aL.js";
4
- import { t as r } from "./useTouchGate-YQRwyUGU.js";
5
- import { n as i } from "./createContext-CvNyBk4o.js";
6
- import { i as a, n as o, r as s, t as c } from "./dockContext-DLgrVWsU.js";
7
- import { i as l, n as u, r as d, t as f } from "./TabsList-COqIdW7i.js";
8
- import { t as p } from "./useViewTransition-DaN5Zrox.js";
9
- import { Fragment as m, computed as h, createBlock as g, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createVNode as b, defineComponent as x, mergeModels as S, mergeProps as C, nextTick as w, normalizeClass as T, normalizeStyle as E, onBeforeUnmount as D, onMounted as O, onUnmounted as k, openBlock as A, readonly as j, ref as M, renderList as N, renderSlot as P, resolveDynamicComponent as F, toDisplayString as I, unref as L, useAttrs as R, useId as ee, useModel as z, useTemplateRef as B, watch as V, withCtx as H } from "vue";
10
- import { DropdownMenuTrigger as U, Primitive as W, SelectIcon as G, SelectTrigger as K, useForwardProps as q } from "reka-ui";
11
- import { SpringProgress as te } from "@mkbabb/keyframes.js";
12
- var ne = t("pause", [["rect", {
4
+ import { t as r } from "./useSpecularTracking-BVRZsRHA.js";
5
+ import { t as i } from "./useTouchGate-WFyJYsth.js";
6
+ import { n as a, t as o } from "./createContext-B44Sah_H.js";
7
+ import { i as s, n as c, r as l, t as u } from "./dockContext-BKeIMmNk.js";
8
+ import { i as d, n as f, r as p, t as m } from "./TabsList-B8CVOQPC.js";
9
+ import { Fragment as h, computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createVNode as x, defineComponent as S, mergeModels as C, mergeProps as w, nextTick as T, normalizeClass as E, normalizeStyle as ee, onBeforeUnmount as D, onMounted as te, onUnmounted as O, openBlock as k, readonly as A, ref as j, renderList as M, renderSlot as N, resolveDynamicComponent as P, toDisplayString as F, unref as I, useAttrs as L, useId as ne, useModel as R, useTemplateRef as z, watch as B, withCtx as V } from "vue";
10
+ import { DropdownMenuTrigger as H, Primitive as U, SelectIcon as W, SelectTrigger as re, useForwardProps as G } from "reka-ui";
11
+ import { SpringProgress as K } from "@mkbabb/keyframes.js";
12
+ var ie = t("pause", [["rect", {
13
13
  x: "14",
14
14
  y: "3",
15
15
  width: "5",
@@ -23,21 +23,32 @@ var ne = t("pause", [["rect", {
23
23
  height: "18",
24
24
  rx: "1",
25
25
  key: "1wsw3u"
26
- }]]), J = t("play", [["path", {
26
+ }]]), q = t("play", [["path", {
27
27
  d: "M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",
28
28
  key: "10ikf1"
29
- }]]);
29
+ }]]), ae = ["data-orientation", "aria-orientation"], oe = /* @__PURE__ */ S({
30
+ __name: "DockSeparator",
31
+ setup(e) {
32
+ let t = s(), n = g(() => t?.orientation.value ?? "horizontal"), r = g(() => n.value), i = g(() => n.value === "vertical" ? "horizontal" : "vertical");
33
+ return (e, t) => (k(), y("div", {
34
+ class: "dock-separator",
35
+ role: "separator",
36
+ "data-orientation": r.value,
37
+ "aria-orientation": i.value
38
+ }, null, 8, ae));
39
+ }
40
+ });
30
41
  //#endregion
31
42
  //#region src/components/custom/dock/composables/isTeleportedTarget.ts
32
- function Y(e, t) {
43
+ function J(e, t) {
33
44
  if (!(e instanceof Element)) return !1;
34
45
  let n = e.closest("[data-glass-dock-portal]");
35
46
  return n ? t ? n.getAttribute("data-glass-dock-owner") === t : !0 : !1;
36
47
  }
37
48
  //#endregion
38
49
  //#region src/components/custom/dock/composables/useDockState.ts
39
- function re(e) {
40
- let { collapseDelay: t = 2500, rootEl: n, alwaysExpanded: r = !1, isTransitioning: i, dockId: a, onStateChange: o } = e, s = () => typeof r == "boolean" ? r : r.value, c = s(), l = M(c ? "pinned" : "collapsed"), u = M(c), d = M(c), f = null, p = M(0), m = h(() => p.value > 0), g = null, _ = null, v = !1, y = l.value;
50
+ function se(e) {
51
+ 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 = j(c ? "pinned" : "collapsed"), u = j(c), d = j(c), f = null, p = j(0), m = g(() => p.value > 0), h = null, _ = null, v = !1, y = l.value;
41
52
  function b() {
42
53
  s() && (l.value = "pinned"), u.value = l.value !== "collapsed", d.value = l.value === "pinned", o && y !== l.value && o(l.value, y), y = l.value;
43
54
  }
@@ -48,7 +59,7 @@ function re(e) {
48
59
  _ !== null && (cancelAnimationFrame(_), _ = null);
49
60
  }
50
61
  function C() {
51
- S(), g?.();
62
+ S(), h?.();
52
63
  }
53
64
  function w() {
54
65
  s() || p.value > 0 || (x(), f = setTimeout(() => {
@@ -68,383 +79,485 @@ function re(e) {
68
79
  }
69
80
  v ||= (v = !0, x(), T(), l.value = "collapsed", b(), !1);
70
81
  }
71
- function D() {
82
+ function ee() {
72
83
  if (s()) {
73
84
  l.value = "pinned", b();
74
85
  return;
75
86
  }
76
87
  x(), l.value = "hover", b();
77
88
  }
78
- function O() {
89
+ function D() {
79
90
  s() || (x(), l.value === "collapsed" && (l.value = "hover", b()));
80
91
  }
81
- function A(e) {
92
+ function te(e) {
82
93
  if (!s() && l.value === "hover") {
83
94
  if (p.value > 0) return;
84
95
  if (e) {
85
96
  let t = n.value;
86
- if (t && e.relatedTarget instanceof Node && t.contains(e.relatedTarget) || Y(e.relatedTarget, a)) return;
97
+ if (t && e.relatedTarget instanceof Node && t.contains(e.relatedTarget) || J(e.relatedTarget, a)) return;
87
98
  }
88
99
  w();
89
100
  }
90
101
  }
91
- function j() {
102
+ function k() {
92
103
  s() || (x(), l.value === "collapsed" && (l.value = "hover", b()));
93
104
  }
94
- function N(e) {
105
+ function A(e) {
95
106
  if (s() || l.value !== "hover" || p.value > 0) return;
96
107
  let t = e.currentTarget;
97
- e.relatedTarget && t.contains(e.relatedTarget) || Y(e.relatedTarget, a) || w();
108
+ e.relatedTarget && t.contains(e.relatedTarget) || J(e.relatedTarget, a) || w();
98
109
  }
99
- function P() {
110
+ function M() {
100
111
  if (s()) {
101
112
  l.value = "pinned", b();
102
113
  return;
103
114
  }
104
115
  x(), l.value = "pinned", b();
105
116
  }
106
- function F() {
117
+ function N() {
107
118
  p.value++, x();
108
119
  }
109
- function I() {
120
+ function P() {
110
121
  p.value = Math.max(0, p.value - 1), p.value === 0 && l.value === "hover" && (x(), f = setTimeout(() => {
111
122
  p.value === 0 && l.value === "hover" && w();
112
123
  }, Math.min(t, 800)));
113
124
  }
114
- function L(e) {
125
+ function F(e) {
115
126
  if (s() || i?.value) return;
116
127
  let t = n.value;
117
- !t || t.contains(e.target) || Y(e.target, a) || E();
128
+ !t || t.contains(e.target) || J(e.target, a) || E();
118
129
  }
119
- return V(u, (e) => {
130
+ return B(u, (e) => {
120
131
  e ? (C(), _ = requestAnimationFrame(() => {
121
- _ = null, u.value && (document.addEventListener("pointerdown", L, !0), g = () => {
122
- document.removeEventListener("pointerdown", L, !0), g = null;
132
+ _ = null, u.value && (document.addEventListener("pointerdown", F, !0), h = () => {
133
+ document.removeEventListener("pointerdown", F, !0), h = null;
123
134
  });
124
135
  })) : C();
125
- }), typeof r == "boolean" ? r && (l.value = "pinned", b()) : V(r, (e) => {
136
+ }), typeof r == "boolean" ? r && (l.value = "pinned", b()) : B(r, (e) => {
126
137
  if (e) {
127
138
  x(), l.value = "pinned", b();
128
139
  return;
129
140
  }
130
141
  l.value = "collapsed", b();
131
- }, { immediate: !0 }), k(() => {
142
+ }, { immediate: !0 }), O(() => {
132
143
  x(), C();
133
144
  }), {
134
145
  state: l,
135
146
  expanded: u,
136
147
  isPinned: d,
137
148
  isHeld: m,
138
- onMouseEnter: O,
139
- onMouseLeave: A,
140
- onFocusIn: j,
141
- onFocusOut: N,
142
- onClickCollapsed: P,
143
- keepOpen: F,
144
- release: I,
145
- expand: D,
149
+ onMouseEnter: D,
150
+ onMouseLeave: te,
151
+ onFocusIn: k,
152
+ onFocusOut: A,
153
+ onClickCollapsed: M,
154
+ keepOpen: N,
155
+ release: P,
156
+ expand: ee,
146
157
  collapse: E
147
158
  };
148
159
  }
149
160
  //#endregion
150
- //#region src/components/custom/dock/composables/useLayerTransition.ts
151
- var X = {
161
+ //#region src/components/custom/dock/composables/dockMorphContext.ts
162
+ var ce = {
152
163
  response: .32,
153
164
  dampingFraction: .7
154
- };
155
- function ie(e) {
156
- let { containerEl: t, activeLayer: n, axis: r, directionTypes: i } = e, a = typeof document < "u" && "startViewTransition" in document, o = h(() => r?.value === "vertical" ? "height" : "width"), s = (e) => e.getBoundingClientRect()[o.value], c = M(n.value), l = M(null), u = 0, d = null, f = null, m = null;
157
- function g() {
158
- f &&= (f.dispose(), null), m = null;
159
- }
160
- function _(e) {
161
- let t = e.trim();
162
- return t ? t.endsWith("ms") ? Number.parseFloat(t) : t.endsWith("s") ? Number.parseFloat(t) * 1e3 : Number.parseFloat(t) || 0 : 0;
163
- }
164
- function v(e) {
165
- let t = getComputedStyle(e), n = t.transitionProperty.split(",").map((e) => e.trim()), r = t.transitionDuration.split(",").map(_), i = t.transitionDelay.split(",").map(_), a = r.map((e, t) => {
166
- let r = n[t] ?? n[0] ?? "all";
167
- return r !== "all" && r !== o.value ? 0 : e + (i[t] ?? i[0] ?? 0);
168
- });
169
- return Math.max(0, ...a) + 50;
170
- }
171
- function y() {
172
- d &&= (clearTimeout(d), null);
173
- }
174
- function b(e, t) {
175
- e.style.setProperty(o.value, t);
176
- }
177
- function x(e) {
178
- e.style.removeProperty(o.value);
165
+ }, Y = o("glass-ui:dock-morph-context");
166
+ Y.KEY;
167
+ function le(e) {
168
+ Y.provide(e);
169
+ }
170
+ var ue = Y.use;
171
+ function de(e) {
172
+ let { rootEl: t, outerEl: n, outerActiveLayer: r, outerAxis: i } = e, a = null, o = /* @__PURE__ */ new Set();
173
+ function s() {
174
+ return t.value;
179
175
  }
180
- function S(e) {
181
- e.style.willChange = o.value;
176
+ function c() {
177
+ a &&= (a.dispose(), null);
182
178
  }
183
- function C(e) {
184
- e.style.willChange = "auto";
179
+ function l(e) {
180
+ return e === "vertical" ? "height" : "width";
185
181
  }
186
- function T(e) {
187
- return e.closest(".glass-dock");
182
+ function u(e) {
183
+ return l(e) === "width" ? "inline-size" : "block-size";
188
184
  }
189
- function E(e) {
190
- T(e)?.setAttribute("data-morphing", "");
185
+ function d(e, t) {
186
+ return e.getBoundingClientRect()[l(t)];
191
187
  }
192
- function D(e) {
193
- T(e)?.removeAttribute("data-morphing");
188
+ function f(e) {
189
+ e.style.removeProperty("--dock-morph-from"), e.style.removeProperty("--dock-morph-to");
194
190
  }
195
- function O(e, t) {
196
- let n = t < 0 ? 0 : t > 1 ? 1 : t;
197
- e.style.setProperty("--dock-morph-progress", `${n}`);
191
+ function p() {
192
+ for (let e of o) {
193
+ let t = e.containerEl.value;
194
+ if (t && t.style.getPropertyValue("--dock-morph-to")) return !0;
195
+ }
196
+ return !1;
198
197
  }
199
- function A(e) {
200
- e.setAttribute("data-revealing", ""), e.style.setProperty("--dock-morph-progress", "0");
198
+ function m(e) {
199
+ let t = e.containerEl.value;
200
+ t && f(t), e.leavingLayer.value = null;
201
201
  }
202
- function j(e) {
203
- e.removeAttribute("data-revealing"), e.style.removeProperty("--dock-morph-progress");
202
+ function h() {
203
+ if (p()) return;
204
+ let e = s();
205
+ e && (e.style.removeProperty("--dock-morph-t"), e.removeAttribute("data-morphing")), c();
204
206
  }
205
- V(n, (e, n) => {
206
- if (e === n) return;
207
- let r = t.value;
208
- if (!r) {
209
- c.value = e, l.value = null;
210
- return;
211
- }
212
- if (a) {
213
- y();
214
- let t = ++u;
215
- E(r);
216
- let a = i?.(n, e), { finished: o } = p(() => {
217
- l.value = n, c.value = e;
218
- }, a && a.length > 0 ? { types: a } : void 0);
219
- o.finally(() => {
220
- t === u && (l.value = null, D(r));
207
+ function g() {
208
+ if (!s()) return;
209
+ let e = a !== null && !a.settled ? a.velocity : 0;
210
+ if (!a || a.settled) {
211
+ c(), a = new K({
212
+ response: ce.response,
213
+ dampingFraction: ce.dampingFraction,
214
+ initial: 0,
215
+ respectReducedMotion: !0
221
216
  });
222
- return;
217
+ let t = a;
218
+ t.reset(0, e), t.target = 1, t.play((e) => {
219
+ let n = s();
220
+ if (n && n.style.setProperty("--dock-morph-t", `${e}`), t.settled) {
221
+ for (let e of o) {
222
+ let t = e.containerEl.value;
223
+ t && t.style.getPropertyValue("--dock-morph-to") && m(e);
224
+ }
225
+ h();
226
+ }
227
+ });
228
+ } else a.reset(0, e), a.target = 1;
229
+ }
230
+ function _(e, t, n, r) {
231
+ if (t !== e.txId) return;
232
+ let i = e.containerEl.value, a = s();
233
+ if (!(!i || !a)) {
234
+ if (Math.abs(r - n) < .5) {
235
+ m(e), h();
236
+ return;
237
+ }
238
+ i.style.setProperty("--dock-morph-from", `${n}px`), i.style.setProperty("--dock-morph-to", `${r}px`), a.setAttribute("data-morphing", ""), g();
223
239
  }
224
- if (typeof window < "u" && window.matchMedia?.("(prefers-reduced-motion: reduce)").matches) {
225
- y(), ++u, c.value = e, l.value = null;
240
+ }
241
+ function v(e, t, n) {
242
+ if (t === n) return;
243
+ let r = e.containerEl.value, i = s();
244
+ if (!r || !i) {
245
+ e.currentLayer.value = t, e.leavingLayer.value = null;
226
246
  return;
227
247
  }
228
- y();
229
- let o = ++u, h = f !== null && m === r && !f.settled ? f : null, _ = h ? h.value : s(r);
230
- h || (g(), b(r, `${_}px`)), w(() => {
231
- o === u && r && requestAnimationFrame(() => {
232
- if (o !== u) return;
233
- l.value = n, c.value = e, r.style.transition = "none", x(r);
234
- let t = s(r);
235
- if (b(r, `${_}px`), r.offsetWidth, !h && Math.abs(t - _) < .5) {
236
- r.style.transition = "", x(r), C(r), D(r), j(r), l.value = null;
237
- return;
238
- }
239
- S(r), E(r), A(r);
240
- let i = t - _;
241
- h || (f = new te({
242
- response: X.response,
243
- dampingFraction: X.dampingFraction,
244
- initial: _,
245
- respectReducedMotion: !0
246
- }), m = r);
247
- let a = f;
248
- a.target = t, a.play((e) => {
249
- o === u && (b(r, `${e}px`), Math.abs(i) > .5 ? O(r, (e - _) / i) : O(r, 1), a.settled && (r.style.transition = "", x(r), C(r), D(r), j(r), l.value = null, g()));
250
- }), d = setTimeout(() => {
251
- o === u && (r.style.transition = "", x(r), C(r), D(r), j(r), l.value = null, g());
252
- }, v(r));
253
- });
248
+ let a = ++e.txId, c = e.axis.value, l = d(r, c);
249
+ e.leavingLayer.value = n, e.currentLayer.value = t;
250
+ for (let t of o) {
251
+ if (t === e) continue;
252
+ let n = t.containerEl.value;
253
+ if (n && n.style.getPropertyValue("--dock-morph-to")) {
254
+ let e = d(n, t.axis.value);
255
+ n.style.setProperty("--dock-morph-from", `${e}px`);
256
+ }
257
+ }
258
+ 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(() => {
259
+ if (a !== e.txId) return;
260
+ let t = e.containerEl.value, n = s();
261
+ if (!t || !n) return;
262
+ f(t);
263
+ let r = u(c);
264
+ t.style.setProperty(r, "max-content");
265
+ let i = d(t, c);
266
+ t.style.removeProperty(r), _(e, a, l, i);
254
267
  });
255
- });
256
- function N(e) {
257
- let n = t.value;
258
- n && e.target === n && e.propertyName === o.value && (y(), g(), n.style.transition = "", x(n), C(n), D(n), j(n), l.value = null);
259
268
  }
260
- return k(() => {
261
- y(), g();
269
+ function y(e) {
270
+ let t = {
271
+ containerEl: e.containerEl,
272
+ activeLayer: e.activeLayer,
273
+ axis: e.axis,
274
+ currentLayer: j(e.activeLayer.value),
275
+ leavingLayer: j(null),
276
+ txId: 0,
277
+ stop: () => {}
278
+ };
279
+ return t.stop = B(e.activeLayer, (e, n) => {
280
+ v(t, e, n);
281
+ }), o.add(t), t;
282
+ }
283
+ function b(e) {
284
+ e.stop(), o.delete(e), h();
285
+ }
286
+ let x = y({
287
+ containerEl: n,
288
+ activeLayer: r,
289
+ axis: i
290
+ }), S = { registerGroup(e) {
291
+ let t = y(e);
292
+ return {
293
+ currentLayer: A(t.currentLayer),
294
+ leavingLayer: A(t.leavingLayer),
295
+ release: () => b(t)
296
+ };
297
+ } };
298
+ function C(e) {
299
+ let t = n.value;
300
+ if (!t || e.target !== t) return;
301
+ let r = u(i.value);
302
+ e.propertyName !== r && e.propertyName !== l(i.value) || a && a.settled && (m(x), h());
303
+ }
304
+ return O(() => {
305
+ for (let e of o) e.stop();
306
+ o.clear(), c();
262
307
  }), {
263
- onTransitionEnd: N,
264
- currentLayer: c,
265
- leavingLayer: l
308
+ context: S,
309
+ outerCurrentLayer: A(x.currentLayer),
310
+ onOuterTransitionEnd: C
266
311
  };
267
312
  }
268
313
  //#endregion
269
314
  //#region src/components/custom/dock/GlassDock.vue?vue&type=script&setup=true&lang.ts
270
- var ae = [
315
+ var fe = [
271
316
  "data-density",
272
317
  "data-held",
273
318
  "data-container-name"
274
- ], oe = ["inert"], se = ["inert"], ce = /* @__PURE__ */ x({
319
+ ], pe = {
320
+ key: 0,
321
+ class: "dock-persistent"
322
+ }, me = ["inert"], he = ["inert"], ge = {
323
+ key: 2,
324
+ class: "dock-layers dock-layer--vertical-body"
325
+ }, _e = { class: "dock-layer--vertical-section" }, X = /* @__PURE__ */ S({
275
326
  __name: "GlassDock",
276
327
  props: {
277
- collapseDelay: { default: 2e3 },
278
- startCollapsed: {
279
- type: Boolean,
280
- default: !0
281
- },
282
- fitContent: {
283
- type: Boolean,
284
- default: !1
285
- },
286
- position: { default: "inline" },
287
- alwaysExpanded: {
288
- type: Boolean,
289
- default: !1
290
- },
291
- variant: { default: "dock" },
292
- shape: { default: "pill" },
293
- layout: { default: "linear" },
294
- orientation: { default: "horizontal" },
295
- density: { default: "comfortable" },
296
- overflow: { default: "grow" },
328
+ variant: {},
329
+ collapseDelay: {},
330
+ startCollapsed: { type: Boolean },
331
+ layout: {},
332
+ fitContent: { type: Boolean },
333
+ position: {},
334
+ alwaysExpanded: { type: Boolean },
335
+ shape: {},
336
+ orientation: {},
337
+ density: {},
338
+ overflow: {},
297
339
  containerName: {}
298
340
  },
299
341
  setup(e, { expose: t }) {
300
- let n = e, i = h(() => {
342
+ let n = e, r = g(() => {
301
343
  if (n.containerName) return {
302
344
  "container-type": "inline-size",
303
345
  "container-name": n.containerName
304
346
  };
305
- }), a = B("dockEl"), s = B("layersEl"), c = h(() => n.variant), l = h(() => n.shape), u = h(() => n.layout), d = h(() => n.variant === "rail" || n.variant === "instrument-strip" ? "vertical" : n.orientation), f = h(() => n.density), p = h(() => n.overflow === "scroll" ? d.value === "vertical" ? "dock-scroll-y" : "dock-scroll-x" : null), m = h(() => n.alwaysExpanded || d.value === "vertical" || n.layout === "grid"), g = h(() => n.fitContent || n.variant === "rail" || n.variant === "instrument-strip"), _ = M(!1), b = r(n.collapseDelay), x = `glass-dock-${ee()}`, S = null, C = 0, { expanded: w, isPinned: k, isHeld: j, onMouseEnter: N, onMouseLeave: F, onFocusIn: I, onFocusOut: R, onClickCollapsed: z, keepOpen: H, release: U, expand: W, collapse: G } = re({
306
- collapseDelay: n.collapseDelay,
307
- rootEl: a,
308
- alwaysExpanded: m,
309
- isTransitioning: _,
310
- dockId: x
311
347
  });
312
- o({
313
- id: x,
314
- orientation: d,
315
- keepOpen: H,
316
- release: U,
317
- held: j
348
+ function a(e) {
349
+ return e.variant !== "rail" && e.variant !== "instrument-strip";
350
+ }
351
+ let o = g(() => a(n) ? n.collapseDelay ?? 2e3 : 2e3), s = g(() => a(n) ? n.startCollapsed ?? !0 : !1), l = g(() => a(n) ? n.layout ?? "linear" : "linear"), u = z("dockEl"), d = z("layersEl"), f = g(() => n.variant ?? "dock"), p = g(() => n.shape ?? "pill"), m = l, _ = g(() => n.variant === "rail" || n.variant === "instrument-strip" ? "vertical" : n.orientation ?? "horizontal"), S = g(() => n.density ?? "comfortable"), C = g(() => n.overflow === "scroll" ? _.value === "vertical" ? "dock-scroll-y" : "dock-scroll-x" : null), w = g(() => n.alwaysExpanded || _.value === "vertical" || l.value === "grid"), T = g(() => n.fitContent || n.variant === "rail" || n.variant === "instrument-strip"), O = j(!1), A = i(o.value), M = `glass-dock-${ne()}`, P = null, F = 0, { expanded: L, isPinned: R, isHeld: V, onMouseEnter: H, onMouseLeave: U, onFocusIn: W, onFocusOut: re, onClickCollapsed: G, keepOpen: K, release: ie, expand: q, collapse: ae } = se({
352
+ collapseDelay: o.value,
353
+ rootEl: u,
354
+ alwaysExpanded: w,
355
+ isTransitioning: O,
356
+ dockId: M
357
+ });
358
+ c({
359
+ id: M,
360
+ orientation: _,
361
+ layout: m,
362
+ keepOpen: K,
363
+ release: ie,
364
+ held: V
318
365
  });
319
- let K = h(() => m.value || w.value), { onTransitionEnd: q } = ie({
320
- containerEl: s,
321
- activeLayer: h(() => K.value ? "full" : "summary"),
322
- axis: h(() => "horizontal"),
323
- directionTypes: (e, t) => [t === "full" ? "dock-expand" : "dock-collapse"]
324
- }), te = typeof document < "u" && "startViewTransition" in document, ne = h(() => te ? {
325
- "view-transition-name": x.replace(/[^a-zA-Z0-9_-]/g, "-"),
326
- "view-transition-class": "gl-dock-layer"
327
- } : void 0);
328
- function J(e) {
366
+ let J = g(() => w.value || L.value), { context: ce, onOuterTransitionEnd: Y } = de({
367
+ rootEl: u,
368
+ outerEl: d,
369
+ outerActiveLayer: g(() => J.value ? "full" : "summary"),
370
+ outerAxis: g(() => "horizontal")
371
+ });
372
+ le(ce);
373
+ let ue = g(() => ({ "view-transition-name": M.replace(/[^a-zA-Z0-9_-]/g, "-") }));
374
+ function X(e) {
329
375
  let t = e.trim();
330
376
  return t ? t.endsWith("ms") ? Number.parseFloat(t) : t.endsWith("s") ? Number.parseFloat(t) * 1e3 : Number.parseFloat(t) || 0 : 0;
331
377
  }
332
- function Y(e) {
333
- let t = getComputedStyle(e), n = t.transitionDuration.split(",").map(J), r = t.transitionDelay.split(",").map(J);
378
+ function Z(e) {
379
+ let t = getComputedStyle(e), n = t.transitionDuration.split(",").map(X), r = t.transitionDelay.split(",").map(X);
334
380
  return Math.max(0, ...n.map((e, t) => e + (r[t] ?? r[0] ?? 0)));
335
381
  }
336
- function X() {
337
- S &&= (clearTimeout(S), null);
382
+ function ve(e) {
383
+ let t = X(getComputedStyle(e).getPropertyValue("--duration-normal") || "0.3s");
384
+ return Math.max(t > 0 ? t * 2 : 0, 600);
385
+ }
386
+ function Q() {
387
+ P &&= (clearTimeout(P), null);
338
388
  }
339
- let ce = new Set([
389
+ let ye = new Set([
340
390
  "width",
341
391
  "height",
342
392
  "padding",
343
393
  "transform"
344
394
  ]);
345
- function Z() {
346
- let e = a.value;
395
+ function be() {
396
+ let e = u.value;
347
397
  if (!e) return;
348
- let t = ++C;
349
- X(), _.value = !0, S = setTimeout(() => {
350
- t === C && (_.value = !1, S = null);
351
- }, Y(e) + 50);
398
+ let t = ++F;
399
+ Q(), O.value = !0, P = setTimeout(() => {
400
+ t === F && (O.value = !1, P = null);
401
+ }, Math.max(Z(e), ve(e)) + 50);
352
402
  }
353
- function Q(e) {
354
- e.target === a.value && ce.has(e.propertyName) && (X(), C++, _.value = !1);
403
+ function xe(e) {
404
+ e.target === u.value && ye.has(e.propertyName) && (Q(), F++, O.value = !1);
355
405
  }
356
- O(() => {
357
- (n.alwaysExpanded || !n.startCollapsed) && W();
406
+ te(() => {
407
+ (n.alwaysExpanded || !s.value) && q();
358
408
  });
359
409
  function $() {
360
- return d.value === "horizontal" && !m.value;
410
+ return _.value === "horizontal" && !w.value;
361
411
  }
362
- function le(e) {
363
- if (!$() || K.value) return;
364
- let t = a.value, n = e.touches[0];
365
- !t || !n || b.handleTouchStart(t, n.clientY);
412
+ function Se(e) {
413
+ if (!$() || J.value) return;
414
+ let t = u.value, n = e.touches[0];
415
+ !t || !n || A.handleTouchStart(t, n.clientY);
366
416
  }
367
- function ue(e) {
368
- $() && b.handleScrollCheck(e);
417
+ function Ce(e) {
418
+ $() && A.handleScrollCheck(e);
369
419
  }
370
- function de() {
420
+ function we() {
371
421
  if (!$()) return;
372
- let e = b.isActive.value;
373
- b.handleTouchEnd(), !e && b.isActive.value && !K.value && W();
422
+ let e = A.isActive.value;
423
+ A.handleTouchEnd(), !e && A.isActive.value && !J.value && q();
374
424
  }
375
- return V(b.isActive, (e) => {
376
- !e && w.value && !k.value && !m.value && G();
377
- }), V(K, (e) => {
378
- Z(), e || b.deactivate();
379
- }), D(X), t({
380
- expanded: w,
381
- isPinned: k,
382
- isHeld: j,
383
- isTransitioning: _,
384
- expand: W,
385
- collapse: G,
386
- keepOpen: H,
387
- release: U
388
- }), (t, n) => (A(), v("div", {
425
+ return B(A.isActive, (e) => {
426
+ !e && L.value && !R.value && !w.value && ae();
427
+ }), B(J, (e) => {
428
+ be(), e || A.deactivate();
429
+ }), D(Q), t({
430
+ expanded: L,
431
+ isPinned: R,
432
+ isHeld: V,
433
+ isTransitioning: O,
434
+ expand: q,
435
+ collapse: ae,
436
+ keepOpen: K,
437
+ release: ie
438
+ }), (t, n) => (k(), y("div", {
389
439
  ref_key: "dockEl",
390
- ref: a,
391
- class: T(["glass-dock", [
392
- d.value,
393
- `variant-${c.value}`,
394
- `shape-${l.value}`,
395
- `layout-${u.value}`,
396
- p.value,
440
+ ref: u,
441
+ class: E(["glass-dock", [
442
+ _.value,
443
+ `variant-${f.value}`,
444
+ `shape-${p.value}`,
445
+ `layout-${I(m)}`,
446
+ C.value,
397
447
  {
398
- expanded: K.value,
399
- collapsed: !K.value,
400
- pinned: L(k),
401
- "fit-content": g.value,
402
- "always-expanded": m.value,
403
- "dock-overflow-wrap": e.overflow === "wrap"
448
+ expanded: J.value,
449
+ collapsed: !J.value,
450
+ pinned: I(R),
451
+ "fit-content": T.value,
452
+ "always-expanded": w.value,
453
+ "dock-overflow-wrap": e.overflow === "wrap" && _.value !== "vertical"
404
454
  },
405
455
  e.position === "fixed" ? "fixed bottom-[var(--dock-pos)] left-1/2 -translate-x-1/2" : e.position === "sticky" ? "dock-sticky" : "dock-inline"
406
456
  ]]),
407
- "data-density": f.value,
408
- "data-held": L(j) || void 0,
457
+ "data-density": S.value,
458
+ "data-held": I(V) || void 0,
409
459
  "data-container-name": e.containerName || void 0,
410
- style: E(i.value),
411
- onMouseenter: n[2] ||= (...e) => L(N) && L(N)(...e),
412
- onMouseleave: n[3] ||= (e) => L(F)(e),
413
- onFocusin: n[4] ||= (...e) => L(I) && L(I)(...e),
414
- onFocusout: n[5] ||= (...e) => L(R) && L(R)(...e),
415
- onTouchstart: le,
416
- onTouchmove: ue,
417
- onTouchend: de,
418
- onTransitionend: Q,
419
- onTransitioncancel: Q
420
- }, [d.value === "horizontal" ? (A(), v("div", {
421
- key: 0,
460
+ style: ee([r.value, ue.value]),
461
+ onMouseenter: n[2] ||= (...e) => I(H) && I(H)(...e),
462
+ onMouseleave: n[3] ||= (e) => I(U)(e),
463
+ onFocusin: n[4] ||= (...e) => I(W) && I(W)(...e),
464
+ onFocusout: n[5] ||= (...e) => I(re) && I(re)(...e),
465
+ onTouchstart: Se,
466
+ onTouchmove: Ce,
467
+ onTouchend: we,
468
+ onTransitionend: xe,
469
+ onTransitioncancel: xe
470
+ }, [t.$slots.persistent ? (k(), y("div", pe, [N(t.$slots, "persistent")])) : v("", !0), _.value === "horizontal" ? (k(), y("div", {
471
+ key: 1,
422
472
  ref_key: "layersEl",
423
- ref: s,
473
+ ref: d,
424
474
  class: "dock-layers",
425
- style: E(ne.value),
426
- onTransitionend: n[1] ||= (...e) => L(q) && L(q)(...e)
427
- }, [y("div", {
428
- class: T(["dock-layer dock-layer--full", { "layer-active": K.value }]),
429
- inert: !L(w) || void 0
430
- }, [P(t.$slots, "default")], 10, oe), y("div", {
431
- class: T(["dock-layer dock-layer--summary", { "layer-active": !K.value }]),
432
- inert: L(w) || void 0,
433
- onClick: n[0] ||= (...e) => L(z) && L(z)(...e)
434
- }, [P(t.$slots, "collapsed")], 10, se)], 36)) : P(t.$slots, "default", { key: 1 })], 46, ae));
435
- }
436
- }), Z = i("glass-ui:dock-layer-group", "[glass-ui:dock] <DockLayer> must be used inside <DockLayerGroup>");
475
+ onTransitionend: n[1] ||= (...e) => I(Y) && I(Y)(...e)
476
+ }, [b("div", {
477
+ class: E(["dock-layer dock-layer--full", { "is-active": J.value }]),
478
+ inert: !I(L) || void 0
479
+ }, [N(t.$slots, "default")], 10, me), b("div", {
480
+ class: E(["dock-layer dock-layer--summary", { "is-active": !J.value }]),
481
+ inert: I(L) || void 0,
482
+ onClick: n[0] ||= (...e) => I(G) && I(G)(...e)
483
+ }, [N(t.$slots, "collapsed")], 10, he)], 544)) : (k(), y("div", ge, [N(t.$slots, "default"), t.$slots.collapsed ? (k(), y(h, { key: 0 }, [x(oe), b("div", _e, [N(t.$slots, "collapsed")])], 64)) : v("", !0)]))], 46, fe));
484
+ }
485
+ }), Z = a("glass-ui:dock-layer-group", "[glass-ui:dock] <DockLayer> must be used inside <DockLayerGroup>");
437
486
  Z.KEY;
438
- function Q(e) {
487
+ function ve(e) {
439
488
  Z.provide(e);
440
489
  }
441
- var $ = Z.use;
490
+ var Q = Z.use;
442
491
  Z.useOptional;
443
492
  //#endregion
493
+ //#region src/components/custom/dock/composables/useLayerTransition.ts
494
+ var ye = {
495
+ response: .32,
496
+ dampingFraction: .7
497
+ };
498
+ function be(e) {
499
+ let { containerEl: t, activeLayer: n, axis: r } = e, i = g(() => r?.value === "vertical" ? "height" : "width"), a = g(() => i.value === "width" ? "inline-size" : "block-size"), o = (e) => e.getBoundingClientRect()[i.value], s = j(n.value), c = j(null), l = 0, u = null, d = null;
500
+ function f() {
501
+ u &&= (u.dispose(), null), d = null;
502
+ }
503
+ function p(e) {
504
+ return e.closest(".glass-dock") ?? e;
505
+ }
506
+ function m(e) {
507
+ e.style.removeProperty("--dock-morph-from"), e.style.removeProperty("--dock-morph-to");
508
+ }
509
+ function h(e, t) {
510
+ m(e), t.style.removeProperty("--dock-morph-t"), t.removeAttribute("data-morphing"), c.value = null, f();
511
+ }
512
+ function _(e, t, n, r, i, a, o) {
513
+ if (Math.abs(i - r) < .5) {
514
+ h(e, t);
515
+ return;
516
+ }
517
+ 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 K({
518
+ response: ye.response,
519
+ dampingFraction: ye.dampingFraction,
520
+ initial: 0,
521
+ respectReducedMotion: !0
522
+ }), d = e);
523
+ let s = u;
524
+ s.reset(0, a), s.target = 1, s.play((r) => {
525
+ n === l && (t.style.setProperty("--dock-morph-t", `${r}`), s.settled && h(e, t));
526
+ });
527
+ }
528
+ B(n, (e, n) => {
529
+ if (e === n) return;
530
+ let r = t.value;
531
+ if (!r) {
532
+ s.value = e, c.value = null;
533
+ return;
534
+ }
535
+ let i = p(r), f = ++l, h = u !== null && d === r && !u.settled ? u : null, g = h ? h.velocity : 0, v = o(r);
536
+ 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(() => {
537
+ if (f !== l) return;
538
+ let e = t.value;
539
+ if (!e) return;
540
+ let n = p(e);
541
+ m(e), n.style.removeProperty("--dock-morph-t"), e.style.setProperty(a.value, "max-content");
542
+ let r = o(e);
543
+ e.style.removeProperty(a.value), _(e, n, f, v, r, g, h);
544
+ });
545
+ });
546
+ function v(e) {
547
+ let n = t.value;
548
+ n && e.target === n && (e.propertyName !== a.value && e.propertyName !== i.value || u && u.settled && h(n, p(n)));
549
+ }
550
+ return O(f), {
551
+ onTransitionEnd: v,
552
+ currentLayer: s,
553
+ leavingLayer: c
554
+ };
555
+ }
556
+ //#endregion
444
557
  //#region src/components/custom/dock/DockLayerGroup.vue?vue&type=script&setup=true&lang.ts
445
- var le = { key: 1 }, ue = { key: 2 }, de = /* @__PURE__ */ x({
558
+ var xe = { key: 1 }, $ = { key: 2 }, Se = /* @__PURE__ */ S({
446
559
  __name: "DockLayerGroup",
447
- props: /* @__PURE__ */ S({
560
+ props: /* @__PURE__ */ C({
448
561
  orientation: {},
449
562
  showRail: {
450
563
  type: Boolean,
@@ -457,87 +570,99 @@ var le = { key: 1 }, ue = { key: 2 }, de = /* @__PURE__ */ x({
457
570
  }),
458
571
  emits: ["update:active"],
459
572
  setup(e) {
460
- let t = e, n = z(e, "active"), r = a(), i = M([]), o = B("containerEl");
461
- function s(e) {
573
+ let t = e, n = R(e, "active"), r = s(), i = j([]), a = z("containerEl");
574
+ function o(e) {
462
575
  i.value.find((t) => t.id === e.id) || i.value.push(e);
463
576
  }
464
577
  function c(e) {
465
578
  i.value = i.value.filter((t) => t.id !== e);
466
579
  }
467
- let p = h(() => t.orientation ?? r?.orientation.value ?? "horizontal"), { onTransitionEnd: x, currentLayer: S, leavingLayer: C } = ie({
468
- containerEl: o,
469
- activeLayer: n,
470
- axis: p,
471
- directionTypes: (e, t) => {
472
- let n = i.value.findIndex((t) => t.id === e);
473
- return [i.value.findIndex((e) => e.id === t) < n ? "layer-back" : "layer-forward"];
474
- }
475
- }), w = typeof document < "u" && "startViewTransition" in document, D = ee(), O = h(() => w ? {
476
- "view-transition-name": `gl-dock-stack-${D.replace(/[^a-zA-Z0-9_-]/g, "-")}`,
580
+ let l = g(() => t.orientation ?? r?.orientation.value ?? "horizontal"), u = g(() => l.value === "vertical" ? "horizontal" : "vertical"), S = ue(), C, w, T;
581
+ if (S) {
582
+ let e = S.registerGroup({
583
+ containerEl: a,
584
+ activeLayer: n,
585
+ axis: l
586
+ });
587
+ C = e.currentLayer, w = e.leavingLayer, T = () => {}, D(() => e.release());
588
+ } else {
589
+ let e = be({
590
+ containerEl: a,
591
+ activeLayer: n,
592
+ axis: l,
593
+ directionTypes: (e, t) => {
594
+ let n = i.value.findIndex((t) => t.id === e);
595
+ return [i.value.findIndex((e) => e.id === t) < n ? "layer-back" : "layer-forward"];
596
+ }
597
+ });
598
+ C = A(e.currentLayer), w = A(e.leavingLayer), T = e.onTransitionEnd;
599
+ }
600
+ let te = typeof document < "u" && "startViewTransition" in document, O = ne(), L = g(() => te ? {
601
+ "view-transition-name": `gl-dock-stack-${O.replace(/[^a-zA-Z0-9_-]/g, "-")}`,
477
602
  "view-transition-class": "gl-dock-layer"
478
603
  } : void 0);
479
- Q({
480
- register: s,
604
+ ve({
605
+ register: o,
481
606
  unregister: c,
482
- currentLayerId: j(S),
483
- leavingLayerId: j(C)
607
+ currentLayerId: C,
608
+ leavingLayerId: w
484
609
  });
485
- function k(e) {
610
+ function B(e) {
486
611
  return typeof e == "object" && !!e;
487
612
  }
488
- let R = M(!1);
489
- function V() {
490
- R.value || (R.value = !0, r?.keepOpen());
613
+ let H = j(!1);
614
+ function U() {
615
+ H.value || (H.value = !0, r?.keepOpen());
491
616
  }
492
- function U(e) {
617
+ function W(e) {
493
618
  let t = e.relatedTarget, n = e.currentTarget;
494
- t && n?.contains(t) || R.value && (R.value = !1, r?.release());
619
+ t && n?.contains(t) || H.value && (H.value = !1, r?.release());
495
620
  }
496
- return (t, r) => (A(), v("div", { class: T(["dock-layer-group", [p.value, `rail-${e.railPosition}`]]) }, [e.showRail && i.value.length > 1 ? (A(), g(L(l), {
621
+ return (t, r) => (k(), y("div", { class: E(["dock-layer-group", [l.value, `rail-${e.railPosition}`]]) }, [e.showRail && i.value.length > 1 ? (k(), _(I(d), {
497
622
  key: 0,
498
623
  modelValue: n.value,
499
624
  "onUpdate:modelValue": r[0] ||= (e) => n.value = e,
500
- orientation: "horizontal",
625
+ orientation: u.value,
501
626
  "as-child": !0
502
627
  }, {
503
- default: H(() => [b(L(f), {
504
- class: T(["dock-layer-rail", e.railPosition]),
505
- onFocusin: V,
506
- onFocusout: U
628
+ default: V(() => [x(I(m), {
629
+ class: E(["dock-layer-rail", e.railPosition]),
630
+ onFocusin: U,
631
+ onFocusout: W
507
632
  }, {
508
- default: H(() => [(A(!0), v(m, null, N(i.value, (e) => (A(), g(L(d), {
633
+ default: V(() => [(k(!0), y(h, null, M(i.value, (e) => (k(), _(I(p), {
509
634
  key: e.id,
510
635
  value: e.id,
511
636
  class: "dock-layer-tab",
512
637
  title: e.label,
513
638
  "aria-label": e.label ?? e.id
514
639
  }, {
515
- default: H(() => [k(e.icon) ? (A(), g(F(e.icon), {
640
+ default: V(() => [B(e.icon) ? (k(), _(P(e.icon), {
516
641
  key: 0,
517
642
  class: "size-4"
518
- })) : typeof e.icon == "string" ? (A(), v("span", le, I(e.icon), 1)) : (A(), v("span", ue, I((e.label ?? e.id).charAt(0)), 1))]),
643
+ })) : typeof e.icon == "string" ? (k(), y("span", xe, F(e.icon), 1)) : (k(), y("span", $, F((e.label ?? e.id).charAt(0)), 1))]),
519
644
  _: 2
520
645
  }, 1032, [
521
646
  "value",
522
647
  "title",
523
648
  "aria-label"
524
- ]))), 128)), b(L(u), { class: "dock-layer-tab-indicator" })]),
649
+ ]))), 128)), x(I(f), { class: "dock-layer-tab-indicator" })]),
525
650
  _: 1
526
651
  }, 8, ["class"])]),
527
652
  _: 1
528
- }, 8, ["modelValue"])) : _("", !0), y("div", {
653
+ }, 8, ["modelValue", "orientation"])) : v("", !0), b("div", {
529
654
  ref_key: "containerEl",
530
- ref: o,
655
+ ref: a,
531
656
  class: "dock-layer-stack",
532
- style: E(O.value),
533
- onTransitionend: r[1] ||= (...e) => L(x) && L(x)(...e)
534
- }, [P(t.$slots, "default")], 36)], 2));
657
+ style: ee(L.value),
658
+ onTransitionend: r[1] ||= (...e) => I(T) && I(T)(...e)
659
+ }, [N(t.$slots, "default")], 36)], 2));
535
660
  }
536
- }), fe = [
661
+ }), Ce = [
537
662
  "inert",
538
663
  "aria-hidden",
539
664
  "tabindex"
540
- ], pe = /* @__PURE__ */ x({
665
+ ], we = /* @__PURE__ */ S({
541
666
  __name: "DockLayer",
542
667
  props: {
543
668
  id: {},
@@ -545,8 +670,8 @@ var le = { key: 1 }, ue = { key: 2 }, de = /* @__PURE__ */ x({
545
670
  icon: {}
546
671
  },
547
672
  setup(e) {
548
- let t = e, n = $();
549
- O(() => {
673
+ let t = e, n = Q();
674
+ te(() => {
550
675
  n.register({
551
676
  id: t.id,
552
677
  label: t.label,
@@ -555,25 +680,25 @@ var le = { key: 1 }, ue = { key: 2 }, de = /* @__PURE__ */ x({
555
680
  }), D(() => {
556
681
  n.unregister(t.id);
557
682
  });
558
- let r = h(() => n.currentLayerId.value === t.id), i = h(() => n.leavingLayerId.value === t.id), a = B("hostEl");
559
- return V(r, async (e, t) => {
683
+ let r = g(() => n.currentLayerId.value === t.id), i = g(() => n.leavingLayerId.value === t.id), a = z("hostEl");
684
+ return B(r, async (e, t) => {
560
685
  !e || t || typeof document < "u" && (() => {
561
686
  let e = document.activeElement;
562
687
  return !e || e === document.body ? !0 : !!e.closest("[inert]");
563
- })() && (await w(), a.value?.focus());
564
- }), (e, t) => (A(), v("div", {
688
+ })() && (await T(), a.value?.focus());
689
+ }), (e, t) => (k(), y("div", {
565
690
  ref_key: "hostEl",
566
691
  ref: a,
567
- class: T(["dock-layer-item-host", {
692
+ class: E(["dock-layer-item-host", {
568
693
  "is-active": r.value,
569
694
  "is-leaving": i.value
570
695
  }]),
571
696
  inert: r.value ? void 0 : !0,
572
697
  "aria-hidden": r.value ? void 0 : !0,
573
698
  tabindex: r.value ? -1 : void 0
574
- }, [P(e.$slots, "default")], 10, fe));
699
+ }, [N(e.$slots, "default")], 10, Ce));
575
700
  }
576
- }), me = /* @__PURE__ */ x({
701
+ }), Te = /* @__PURE__ */ S({
577
702
  __name: "DockIconButton",
578
703
  props: {
579
704
  compact: {
@@ -595,37 +720,26 @@ var le = { key: 1 }, ue = { key: 2 }, de = /* @__PURE__ */ x({
595
720
  ] }
596
721
  },
597
722
  setup(t) {
598
- let n = t, r = h(() => e("dock-icon-button glass-specular-track", { "dock-icon-button--compact": n.compact }, n.class)), i = M({});
599
- function a(e) {
600
- let t = e.currentTarget;
601
- if (!t) return;
602
- let n = t.getBoundingClientRect();
603
- if (n.width === 0 || n.height === 0) return;
604
- let r = (e.clientX - n.left) / n.width * 100, a = (e.clientY - n.top) / n.height * 100;
605
- i.value = {
606
- "--mouse-x": `${r.toFixed(2)}%`,
607
- "--mouse-y": `${a.toFixed(2)}%`
608
- };
609
- }
610
- let o = h(() => !n.asChild && n.as === "button" ? { type: n.type } : {});
611
- return (e, n) => (A(), g(L(W), C({
723
+ let n = t, i = g(() => e("dock-icon-button glass-specular-track", { "dock-icon-button--compact": n.compact }, n.class)), { specularStyle: a, onPointerMove: o } = r(), s = g(() => !n.asChild && n.as === "button" ? { type: n.type } : {});
724
+ return (e, n) => (k(), _(I(U), w({
612
725
  as: t.as,
613
726
  "as-child": t.asChild
614
- }, o.value, {
615
- class: r.value,
616
- style: i.value,
617
- onPointermove: a
727
+ }, s.value, {
728
+ class: i.value,
729
+ style: I(a),
730
+ onPointermove: I(o)
618
731
  }), {
619
- default: H(() => [P(e.$slots, "default")]),
732
+ default: V(() => [N(e.$slots, "default")]),
620
733
  _: 3
621
734
  }, 16, [
622
735
  "as",
623
736
  "as-child",
624
737
  "class",
625
- "style"
738
+ "style",
739
+ "onPointermove"
626
740
  ]));
627
741
  }
628
- }), he = /* @__PURE__ */ x({
742
+ }), Ee = /* @__PURE__ */ S({
629
743
  __name: "DockBackgroundToggle",
630
744
  props: {
631
745
  paused: {
@@ -637,22 +751,22 @@ var le = { key: 1 }, ue = { key: 2 }, de = /* @__PURE__ */ x({
637
751
  },
638
752
  emits: ["update:paused"],
639
753
  setup(e, { emit: t }) {
640
- let n = e, r = t, i = h(() => n.paused ? n.playLabel : n.pauseLabel);
754
+ let n = e, r = t, i = g(() => n.paused ? n.playLabel : n.pauseLabel);
641
755
  function a() {
642
756
  r("update:paused", !n.paused);
643
757
  }
644
- return (t, n) => (A(), g(me, {
758
+ return (t, n) => (k(), _(Te, {
645
759
  type: "button",
646
760
  "aria-pressed": e.paused,
647
761
  "aria-label": i.value,
648
762
  title: i.value,
649
763
  onClick: a
650
764
  }, {
651
- default: H(() => [e.paused ? (A(), g(L(J), {
765
+ default: V(() => [e.paused ? (k(), _(I(q), {
652
766
  key: 0,
653
767
  size: 18,
654
768
  "aria-hidden": "true"
655
- })) : (A(), g(L(ne), {
769
+ })) : (k(), _(I(ie), {
656
770
  key: 1,
657
771
  size: 18,
658
772
  "aria-hidden": "true"
@@ -664,7 +778,7 @@ var le = { key: 1 }, ue = { key: 2 }, de = /* @__PURE__ */ x({
664
778
  "title"
665
779
  ]));
666
780
  }
667
- }), ge = /* @__PURE__ */ x({
781
+ }), De = /* @__PURE__ */ S({
668
782
  __name: "DockTabButton",
669
783
  props: {
670
784
  as: { default: "button" },
@@ -681,13 +795,13 @@ var le = { key: 1 }, ue = { key: 2 }, de = /* @__PURE__ */ x({
681
795
  ] }
682
796
  },
683
797
  setup(t) {
684
- let n = t, r = R(), i = h(() => r["data-tier"] === "primary"), a = h(() => e("dock-tab-button", i.value && "btn-audacious", n.class));
685
- return (e, n) => (A(), g(L(W), {
798
+ let n = t, r = L(), i = g(() => r["data-tier"] === "primary"), a = g(() => e("dock-tab-button", i.value && "btn-audacious", n.class));
799
+ return (e, n) => (k(), _(I(U), {
686
800
  as: t.as,
687
801
  "as-child": t.asChild,
688
- class: T(a.value)
802
+ class: E(a.value)
689
803
  }, {
690
- default: H(() => [P(e.$slots, "default")]),
804
+ default: V(() => [N(e.$slots, "default")]),
691
805
  _: 3
692
806
  }, 8, [
693
807
  "as",
@@ -695,7 +809,7 @@ var le = { key: 1 }, ue = { key: 2 }, de = /* @__PURE__ */ x({
695
809
  "class"
696
810
  ]));
697
811
  }
698
- }), _e = /* @__PURE__ */ x({
812
+ }), Oe = /* @__PURE__ */ S({
699
813
  __name: "DockSelectTrigger",
700
814
  props: {
701
815
  disabled: { type: Boolean },
@@ -711,19 +825,19 @@ var le = { key: 1 }, ue = { key: 2 }, de = /* @__PURE__ */ x({
711
825
  ] }
712
826
  },
713
827
  setup(t) {
714
- let r = t, i = q(h(() => {
828
+ let r = t, i = G(g(() => {
715
829
  let { class: e, ...t } = r;
716
830
  return t;
717
831
  }));
718
- return (t, a) => (A(), g(L(K), C(L(i), { class: L(e)("dock-select-trigger", r.class) }), {
719
- default: H(() => [P(t.$slots, "default"), b(L(G), { "as-child": "" }, {
720
- default: H(() => [P(t.$slots, "icon", {}, () => [b(L(n), { class: "dock-select-trigger__chevron" })])]),
832
+ return (t, a) => (k(), _(I(re), w(I(i), { class: I(e)("dock-select-trigger", r.class) }), {
833
+ default: V(() => [N(t.$slots, "default"), x(I(W), { "as-child": "" }, {
834
+ default: V(() => [N(t.$slots, "icon", {}, () => [x(I(n), { class: "dock-select-trigger__chevron" })])]),
721
835
  _: 3
722
836
  })]),
723
837
  _: 3
724
838
  }, 16, ["class"]));
725
839
  }
726
- }), ve = /* @__PURE__ */ x({
840
+ }), ke = /* @__PURE__ */ S({
727
841
  __name: "DockDropdownTrigger",
728
842
  props: {
729
843
  disabled: { type: Boolean },
@@ -739,15 +853,15 @@ var le = { key: 1 }, ue = { key: 2 }, de = /* @__PURE__ */ x({
739
853
  ] }
740
854
  },
741
855
  setup(t) {
742
- let n = t, r = q(h(() => {
856
+ let n = t, r = G(g(() => {
743
857
  let { class: e, ...t } = n;
744
858
  return t;
745
859
  }));
746
- return (t, i) => (A(), g(L(U), C(L(r), { class: L(e)("dock-dropdown-trigger", n.class) }), {
747
- default: H(() => [P(t.$slots, "default")]),
860
+ return (t, i) => (k(), _(I(H), w(I(r), { class: I(e)("dock-dropdown-trigger", n.class) }), {
861
+ default: V(() => [N(t.$slots, "default")]),
748
862
  _: 3
749
863
  }, 16, ["class"]));
750
864
  }
751
865
  });
752
866
  //#endregion
753
- export { c as DOCK_CONTEXT_KEY, he as DockBackgroundToggle, ve as DockDropdownTrigger, me as DockIconButton, pe as DockLayer, de as DockLayerGroup, _e as DockSelectTrigger, ge as DockTabButton, ce as GlassDock, o as provideDockContext, s as useDockContext, a as useOptionalDockContext };
867
+ export { u as DOCK_CONTEXT_KEY, Ee as DockBackgroundToggle, ke as DockDropdownTrigger, Te as DockIconButton, we as DockLayer, Se as DockLayerGroup, Oe as DockSelectTrigger, oe as DockSeparator, De as DockTabButton, X as GlassDock, c as provideDockContext, l as useDockContext, be as useLayerTransition, s as useOptionalDockContext };