@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
@@ -1,24 +1,35 @@
1
1
  import { t as e } from "./cn-DJXf4yaB.js";
2
- import { t } from "./_plugin-vue_export-helper-gLzyemvl.js";
3
- import { t as n } from "./useCanvas2D-C31yfUGY.js";
2
+ import { t } from "./useCanvas2D-ClrQuZtp.js";
3
+ import { t as n } from "./_plugin-vue_export-helper-ok8pgSl5.js";
4
4
  import { n as r, t as i } from "./prng-wHuHlNHE.js";
5
- import { computed as a, createElementBlock as o, createElementVNode as s, defineComponent as c, normalizeClass as l, onMounted as u, openBlock as d, unref as f, useTemplateRef as p } from "vue";
5
+ import { computed as a, createElementBlock as o, createElementVNode as s, defineComponent as c, normalizeClass as l, onMounted as u, openBlock as d, ref as f, unref as p, useTemplateRef as m } from "vue";
6
6
  //#region src/components/custom/constellation/constellationField.ts
7
- var m = 1280, h = {
7
+ var h = 1280, g = {
8
8
  node: "#b4afa3",
9
9
  nodeDim: "#cdc8bd",
10
- line: "#1c1714"
10
+ line: "#1c1714",
11
+ edgeAlpha: .22,
12
+ edgeFocusAlpha: .34,
13
+ alpha: .8
11
14
  };
12
- function g(e) {
13
- if (typeof window > "u") return { ...h };
14
- let t = getComputedStyle(e), n = (e, n) => t.getPropertyValue(e).trim() || n;
15
+ function _(e) {
16
+ if (typeof window > "u") return { ...g };
17
+ let t = getComputedStyle(e), n = (e, n) => t.getPropertyValue(e).trim() || n, r = (e, n) => {
18
+ let r = t.getPropertyValue(e).trim();
19
+ if (!r) return n;
20
+ let i = Number.parseFloat(r);
21
+ return Number.isFinite(i) ? i : n;
22
+ };
15
23
  return {
16
- node: n("--constellation-node", h.node),
17
- nodeDim: n("--constellation-node-dim", h.nodeDim),
18
- line: n("--constellation-line", h.line)
24
+ node: n("--constellation-node", g.node),
25
+ nodeDim: n("--constellation-node-dim", g.nodeDim),
26
+ line: n("--constellation-line", g.line),
27
+ edgeAlpha: r("--constellation-edge-alpha", g.edgeAlpha),
28
+ edgeFocusAlpha: r("--constellation-edge-focus-alpha", g.edgeFocusAlpha),
29
+ alpha: r("--constellation-alpha", g.alpha)
19
30
  };
20
31
  }
21
- function _(e, t, n, r, i) {
32
+ function v(e, t, n, r, i) {
22
33
  let a = [];
23
34
  for (let o = 0; o < t; o++) {
24
35
  let t = e() * Math.PI * 2;
@@ -33,53 +44,84 @@ function _(e, t, n, r, i) {
33
44
  }
34
45
  return a;
35
46
  }
36
- function v(e, t, n, r) {
37
- let { nodes: i, w: a, h: o } = e;
38
- for (let e = 0; e < i.length; e++) {
39
- let n = i[e];
40
- n.x += n.vx * t, n.y += n.vy * t, n.x < 0 ? (n.x = 0, n.vx *= -1) : n.x > a && (n.x = a, n.vx *= -1), n.y < 0 ? (n.y = 0, n.vy *= -1) : n.y > o && (n.y = o, n.vy *= -1);
47
+ function y(e, t, n, r, i = 0) {
48
+ let { nodes: a, w: o, h: s } = e;
49
+ for (let e = 0; e < a.length; e++) {
50
+ let n = a[e];
51
+ n.x += n.vx * t, n.y += n.vy * t, n.x < 0 ? (n.x = 0, n.vx *= -1) : n.x > o && (n.x = o, n.vx *= -1), n.y < 0 ? (n.y = 0, n.vy *= -1) : n.y > s && (n.y = s, n.vy *= -1);
41
52
  }
42
53
  if (r && r.x >= 0) {
43
54
  let e = 180 * t;
44
- for (let t = 0; t < i.length; t++) {
45
- let a = i[t], o = r.x - a.x, s = r.y - a.y, c = Math.hypot(o, s);
55
+ for (let t = 0; t < a.length; t++) {
56
+ let i = a[t], o = r.x - i.x, s = r.y - i.y, c = Math.hypot(o, s);
46
57
  if (c > .5 && c < e) {
47
- let t = Math.hypot(a.vx, a.vy) || n, r = (1 - c / e) * .08, i = a.vx + o / c * r * t, l = a.vy + s / c * r * t, u = Math.hypot(i, l) || 1;
48
- a.vx = i / u * t, a.vy = l / u * t;
58
+ let t = Math.hypot(i.vx, i.vy) || n, r = (1 - c / e) * .08, a = i.vx + o / c * r * t, l = i.vy + s / c * r * t, u = Math.hypot(a, l) || 1;
59
+ i.vx = a / u * t, i.vy = l / u * t;
49
60
  }
50
61
  }
51
62
  }
63
+ T(e, i);
64
+ }
65
+ var b = .55, x = 1, S = 2 * Math.PI / b, C = .05;
66
+ function w(e, t, n, r = -1) {
67
+ let { nodes: i } = e, a = -1, o = Infinity;
68
+ for (let e = 0; e < i.length; e++) {
69
+ if (e === r) continue;
70
+ let s = i[e], c = s.x - t, l = s.y - n, u = c * c + l * l;
71
+ u < o && (o = u, a = e);
72
+ }
73
+ return a;
74
+ }
75
+ function T(e, t) {
76
+ let { warp: n, nodes: r } = e;
77
+ if (!n || n.targetIdx < 0 || n.targetIdx >= r.length || !(t > 0)) return;
78
+ let i = Math.min(t, C), a = r[n.targetIdx], o = -2 * x * S * n.vx - S * S * (n.x - a.x), s = -2 * x * S * n.vy - S * S * (n.y - a.y);
79
+ n.vx += o * i, n.vy += s * i, n.x += n.vx * i, n.y += n.vy * i;
52
80
  }
53
- function y(e, t, n, r) {
54
- let { nodes: i, k: a } = t, o = n * a, s = o * o;
81
+ function E(e, t) {
82
+ let { warp: n, nodes: r } = e;
83
+ if (t < 0 || t >= r.length) {
84
+ n.targetIdx = -1, e.focalIndex = -1;
85
+ return;
86
+ }
87
+ e.focalIndex = t, n.targetIdx = t;
88
+ }
89
+ function D(e, t, n) {
90
+ let r = w(e, t, n, -1);
91
+ if (r >= 0 && r === e.focalIndex) return e.focalIndex;
92
+ let i = w(e, t, n, e.focalIndex);
93
+ return i < 0 ? -1 : (E(e, i), i);
94
+ }
95
+ function O(e, t, n, r) {
96
+ let { nodes: i, k: a } = t, o = n * a, s = o * o, c = r.edgeAlpha * r.alpha;
55
97
  e.strokeStyle = r.line, e.lineWidth = 1 * a;
56
98
  for (let t = 0; t < i.length; t++) {
57
99
  let n = i[t];
58
100
  for (let r = t + 1; r < i.length; r++) {
59
- let t = i[r], a = n.x - t.x, o = n.y - t.y, c = a * a + o * o;
60
- c > s || (e.globalAlpha = .17 * (1 - c / s), e.beginPath(), e.moveTo(n.x, n.y), e.lineTo(t.x, t.y), e.stroke());
101
+ let t = i[r], a = n.x - t.x, o = n.y - t.y, l = a * a + o * o;
102
+ l > s || (e.globalAlpha = c * (1 - l / s), e.beginPath(), e.moveTo(n.x, n.y), e.lineTo(t.x, t.y), e.stroke());
61
103
  }
62
104
  }
63
105
  e.globalAlpha = 1;
64
106
  }
65
- function b(e, t, n) {
107
+ function k(e, t, n) {
66
108
  let { nodes: r, k: i } = t;
67
109
  for (let t = 0; t < r.length; t++) {
68
110
  let a = r[t];
69
111
  e.fillStyle = a.dim ? n.nodeDim : n.node, e.beginPath(), e.arc(a.x, a.y, a.r * i, 0, Math.PI * 2), e.fill();
70
112
  }
71
113
  }
72
- function x(e, t, n, r, i) {
114
+ function A(e, t, n, r, i) {
73
115
  if (!i || i.x < 0) return;
74
- let { nodes: a, k: o } = t, s = n * o, c = s * s;
116
+ let { nodes: a, k: o } = t, s = n * o, c = s * s, l = r.edgeFocusAlpha * r.alpha;
75
117
  e.strokeStyle = r.line, e.lineWidth = 1 * o;
76
118
  for (let t of a) {
77
119
  let n = t.x - i.x, r = t.y - i.y, a = n * n + r * r;
78
- a > c || (e.globalAlpha = (1 - a / c) * .24, e.beginPath(), e.moveTo(i.x, i.y), e.lineTo(t.x, t.y), e.stroke());
120
+ a > c || (e.globalAlpha = (1 - a / c) * l, e.beginPath(), e.moveTo(i.x, i.y), e.lineTo(t.x, t.y), e.stroke());
79
121
  }
80
122
  e.globalAlpha = .55, e.fillStyle = r.node, e.beginPath(), e.arc(i.x, i.y, 2.6 * o, 0, Math.PI * 2), e.fill(), e.globalAlpha = 1;
81
123
  }
82
- function S(e, t, n, r, i) {
124
+ function j(e, t, n, r, i) {
83
125
  let { k: a } = t;
84
126
  e.strokeStyle = i.line;
85
127
  for (let t = r.length - 1; t >= 0; t--) {
@@ -96,7 +138,7 @@ function S(e, t, n, r, i) {
96
138
  }
97
139
  //#endregion
98
140
  //#region src/components/custom/constellation/Constellation.vue
99
- var C = /* @__PURE__ */ t(/* @__PURE__ */ c({
141
+ var M = /* @__PURE__ */ n(/* @__PURE__ */ c({
100
142
  __name: "Constellation",
101
143
  props: {
102
144
  count: { default: 64 },
@@ -107,6 +149,10 @@ var C = /* @__PURE__ */ t(/* @__PURE__ */ c({
107
149
  type: Boolean,
108
150
  default: !0
109
151
  },
152
+ warpOnClick: {
153
+ type: Boolean,
154
+ default: !1
155
+ },
110
156
  class: { type: [
111
157
  Boolean,
112
158
  null,
@@ -116,67 +162,90 @@ var C = /* @__PURE__ */ t(/* @__PURE__ */ c({
116
162
  ] },
117
163
  drawOverlay: { type: Function }
118
164
  },
119
- setup(t, { expose: c }) {
120
- let C = p("hostRef"), w = p("canvasRef"), T = a(() => t.seed === void 0 ? Math.random : r(typeof t.seed == "string" ? i(t.seed) : t.seed)), E = {
165
+ setup(n, { expose: c }) {
166
+ let b = m("hostRef"), x = m("canvasRef"), S = a(() => n.seed === void 0 ? Math.random : r(typeof n.seed == "string" ? i(n.seed) : n.seed)), C = {
121
167
  nodes: [],
122
168
  canvas: null,
123
169
  w: 0,
124
170
  h: 0,
125
171
  k: 1,
126
- dpr: 1
127
- }, D = {
172
+ dpr: 1,
173
+ focalIndex: -1,
174
+ warp: {
175
+ x: 0,
176
+ y: 0,
177
+ vx: 0,
178
+ vy: 0,
179
+ targetIdx: -1
180
+ }
181
+ }, w = {
128
182
  x: -1,
129
183
  y: -1
130
- }, O = [], k = { ...h };
184
+ }, T = [], E = { ...g }, M = -1, N = f(null);
131
185
  return u(() => {
132
- let e = w.value;
186
+ let e = x.value;
133
187
  if (!e) return;
134
- let r = n({
135
- canvas: w,
136
- setup: (n) => ({ render(n, i) {
137
- let a = e.clientWidth || e.offsetWidth || 1280, o = e.clientHeight || e.offsetHeight || 720, s = a / m;
138
- if (E.canvas = e, E.dpr = Math.min(typeof window < "u" && window.devicePixelRatio || 1, 2), (E.w !== a || E.h !== o) && (E.w = a, E.h = o, E.k = s, E.nodes.length || (E.nodes = _(T.value, t.count, a, o, t.speed)), k = g(e)), E.k = s, !r.reducedMotion) {
139
- let e = t.pointerReactive ? D : null;
140
- v(E, s, t.speed, e);
188
+ let r = t({
189
+ canvas: x,
190
+ setup: (t) => ({ render(t, i) {
191
+ let a = e.clientWidth || e.offsetWidth || 1280, o = e.clientHeight || e.offsetHeight || 720, s = a / h;
192
+ C.canvas = e, C.dpr = Math.min(typeof window < "u" && window.devicePixelRatio || 1, 2), (C.w !== a || C.h !== o) && (C.w = a, C.h = o, C.k = s, C.nodes.length || (C.nodes = v(S.value, n.count, a, o, n.speed), C.warp.x = a / 2, C.warp.y = o / 2), E = _(e)), C.k = s;
193
+ let c = M < 0 ? 0 : (i - M) / 1e3;
194
+ if (M = i, !r.reducedMotion) {
195
+ let e = n.pointerReactive ? w : null;
196
+ y(C, s, n.speed, e, c);
141
197
  }
142
- n.clearRect(0, 0, a, o), y(n, E, t.link, k), b(n, E, k), t.pointerReactive && !r.reducedMotion && (x(n, E, t.link, k, D), S(n, E, i, O, k)), t.drawOverlay?.(n, E, i);
198
+ t.clearRect(0, 0, a, o), O(t, C, n.link, E), k(t, C, E), n.pointerReactive && !r.reducedMotion && (A(t, C, n.link, E, w), j(t, C, i, T, E)), n.drawOverlay?.(t, C, i);
143
199
  } })
144
- }), i = C.value;
145
- if (t.pointerReactive && i && !r.reducedMotion) {
146
- let t = (t) => {
147
- let n = e.getBoundingClientRect();
148
- if (!n.width || !n.height) return null;
149
- let r = (t.clientX - n.left) / n.width, i = (t.clientY - n.top) / n.height;
150
- return r < 0 || i < 0 || r > 1 || i > 1 ? null : {
151
- x: r * E.w,
152
- y: i * E.h
153
- };
200
+ }), i = b.value, a = (t) => {
201
+ let n = e.getBoundingClientRect();
202
+ if (!n.width || !n.height) return null;
203
+ let r = (t.clientX - n.left) / n.width, i = (t.clientY - n.top) / n.height;
204
+ return r < 0 || i < 0 || r > 1 || i > 1 ? null : {
205
+ x: r * C.w,
206
+ y: i * C.h
154
207
  };
155
- i.addEventListener("pointermove", (e) => {
156
- let n = t(e);
157
- n ? (D.x = n.x, D.y = n.y) : (D.x = -1, D.y = -1), r.wake();
158
- }), i.addEventListener("pointerleave", () => {
159
- D.x = -1, D.y = -1;
160
- }), i.addEventListener("pointerdown", (e) => {
161
- let n = t(e);
162
- n && O.push({
163
- x: n.x,
164
- y: n.y,
165
- start: -1
166
- }), r.wake();
167
- });
208
+ };
209
+ N.value = a, n.pointerReactive && i && !r.reducedMotion && (i.addEventListener("pointermove", (e) => {
210
+ let t = a(e);
211
+ t ? (w.x = t.x, w.y = t.y) : (w.x = -1, w.y = -1), r.wake();
212
+ }), i.addEventListener("pointerleave", () => {
213
+ w.x = -1, w.y = -1;
214
+ }), i.addEventListener("pointerdown", (e) => {
215
+ let t = a(e);
216
+ t && T.push({
217
+ x: t.x,
218
+ y: t.y,
219
+ start: -1
220
+ }), r.wake();
221
+ })), n.warpOnClick && i && !r.reducedMotion && i.addEventListener("pointerdown", (e) => {
222
+ let t = a(e);
223
+ t && (D(C, t.x, t.y), r.wake());
224
+ });
225
+ }), c({
226
+ field: C,
227
+ warpTo(e, t) {
228
+ if (typeof e == "number" && typeof t == "number") {
229
+ let n = N.value?.({
230
+ clientX: e,
231
+ clientY: t
232
+ });
233
+ return n ? D(C, n.x, n.y) : -1;
234
+ }
235
+ let n = e;
236
+ return D(C, n.x, n.y);
168
237
  }
169
- }), c({ field: E }), (n, r) => (d(), o("div", {
238
+ }), (t, r) => (d(), o("div", {
170
239
  ref_key: "hostRef",
171
- ref: C,
172
- class: l(f(e)("constellation", t.class))
240
+ ref: b,
241
+ class: l(p(e)("constellation", n.class))
173
242
  }, [s("canvas", {
174
243
  ref_key: "canvasRef",
175
- ref: w,
244
+ ref: x,
176
245
  class: "constellation-canvas",
177
246
  "aria-hidden": "true"
178
247
  }, null, 512)], 2));
179
248
  }
180
- }), [["__scopeId", "data-v-3f8670a5"]]);
249
+ }), [["__scopeId", "data-v-63dd743d"]]);
181
250
  //#endregion
182
- export { m as BASE_WIDTH, C as Constellation, h as DEFAULT_PALETTE, y as drawEdges, b as drawNodes, x as drawPointerWeb, S as drawRipples, g as readPalette, _ as seedField, v as stepField };
251
+ export { h as BASE_WIDTH, M as Constellation, g as DEFAULT_PALETTE, O as drawEdges, k as drawNodes, A as drawPointerWeb, j as drawRipples, w as nearestNode, _ as readPalette, v as seedField, E as setWarpTarget, y as stepField, T as warpStep, D as warpTo };
@@ -1,3 +1,3 @@
1
- import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "./ContextMenuSubContent-BeDz7G6f.js";
2
- import { n as l, r as u, t as d } from "./ContextMenuContent-DGKZX1Du.js";
1
+ import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "./ContextMenuSubContent-Bhg4f5jX.js";
2
+ import { n as l, r as u, t as d } from "./ContextMenuContent-DDa0v27s.js";
3
3
  export { u as ContextMenu, s as ContextMenuCheckboxItem, d as ContextMenuContent, t as ContextMenuItem, o as ContextMenuLabel, r as ContextMenuRadioGroup, a as ContextMenuRadioItem, n as ContextMenuSeparator, e as ContextMenuShortcut, c as ContextMenuSubContent, i as ContextMenuSubTrigger, l as ContextMenuTrigger };
package/dist/controls.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./cn-DJXf4yaB.js";
2
- import { t } from "./_plugin-vue_export-helper-gLzyemvl.js";
2
+ import { t } from "./_plugin-vue_export-helper-ok8pgSl5.js";
3
3
  import { t as n } from "./useGlobalDark-yhL4Wp-s.js";
4
4
  import { computed as r, createBlock as i, createElementVNode as a, defineComponent as o, mergeProps as s, openBlock as c, resolveDynamicComponent as l, unref as u, useAttrs as d, watchEffect as f, withCtx as p } from "vue";
5
5
  //#endregion
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./DataTable-gtPOLZvl.js";
1
+ import { n as e, t } from "./DataTable-CUHMukiQ.js";
2
2
  export { t as DataTable, e as DataTablePagination };
@@ -0,0 +1 @@
1
+ export * from "./components/custom/deck-progress";
@@ -0,0 +1,2 @@
1
+ import { t as e } from "./DeckProgress-Dmk4_AKN.js";
2
+ export { e as DeckProgress };
package/dist/dialog.js CHANGED
@@ -1,3 +1,3 @@
1
- import { n as e, t } from "./DialogContent-DG1YMR-P.js";
2
- import { a as n, i as r, n as i, o as a, r as o, s, t as c } from "./DialogFooter-BCIaDP15.js";
1
+ import { n as e, t } from "./DialogContent-BRkT1cjP.js";
2
+ import { a as n, i as r, n as i, o as a, r as o, s, t as c } from "./DialogFooter-Gprw8H_A.js";
3
3
  export { e as Dialog, s as DialogClose, t as DialogContent, o as DialogDescription, c as DialogFooter, n as DialogHeader, i as DialogScrollContent, r as DialogTitle, a as DialogTrigger };