@mkbabb/glass-ui 3.7.0 → 3.8.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 (213) hide show
  1. package/dist/CardAction-q2qHCJFG.js +157 -0
  2. package/dist/{CommandShortcut-CY0aQTz5.js → CommandShortcut-SzWRhROC.js} +2 -2
  3. package/dist/{ContextMenuSubContent-BeDz7G6f.js → ContextMenuSubContent-Do977Cbf.js} +1 -1
  4. package/dist/{DataTable-gtPOLZvl.js → DataTable-CvlWXz65.js} +3 -3
  5. package/dist/DeckProgress-AVgbIULY.js +23 -0
  6. package/dist/{DialogContent-DG1YMR-P.js → DialogContent-DjZWT3lK.js} +2 -2
  7. package/dist/{DialogFooter-BCIaDP15.js → DialogFooter-Gprw8H_A.js} +1 -1
  8. package/dist/{DiscoGlyph-ZoBYpoxI.js → DiscoGlyph-CG0F410s.js} +1 -1
  9. package/dist/{GlyphFace-Ce_oe3tM.js → GlyphFace-DRjDkB0s.js} +1 -1
  10. package/dist/{HoverPopover-DXpOEw1P.js → HoverPopover-D56O6Ylp.js} +1 -1
  11. package/dist/{IconTooltip-Cu86JR4e.js → IconTooltip-D2T5nYOM.js} +1 -1
  12. package/dist/{MetricBadge-D-bRaQUD.js → MetricBadge-lTc002u2.js} +1 -1
  13. package/dist/{Notification-B5WHP3_1.js → Notification-BxK8LZMw.js} +1 -1
  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-CVyqxvfv.js} +2 -2
  17. package/dist/{SelectScrollDownButton-DAo5NmY_.js → SelectScrollDownButton-C7TRe-ep.js} +2 -2
  18. package/dist/{ToggleGroupItem-C-AIkBUw.js → ToggleGroupItem-CkXUcBlt.js} +1 -1
  19. package/dist/{UnderlineTabs-D_c1iYo-.js → UnderlineTabs-Uxn-R3MT.js} +2 -2
  20. package/dist/animated-digit.js +2 -2
  21. package/dist/api/index.d.ts +4 -2
  22. package/dist/api.js +1 -1
  23. package/dist/aurora.js +336 -405
  24. package/dist/canvas.d.ts +1 -0
  25. package/dist/canvas.js +3 -0
  26. package/dist/card.js +1 -1
  27. package/dist/carousel.js +105 -104
  28. package/dist/collapsible.js +1 -1
  29. package/dist/{color-DjJCAQ6f.js → color-DMLTunJK.js} +22 -14
  30. package/dist/color.js +2 -2
  31. package/dist/command.js +1 -1
  32. package/dist/compile-BBTRjvQS.js +158 -0
  33. package/dist/components/custom/aurora/composables/atoms.d.ts +90 -25
  34. package/dist/components/custom/aurora/composables/color.d.ts +0 -12
  35. package/dist/components/custom/aurora/composables/uniformBridge.d.ts +34 -23
  36. package/dist/components/custom/aurora/constants/presets.d.ts +10 -7
  37. package/dist/components/custom/aurora/constants/renderMode.d.ts +22 -0
  38. package/dist/components/custom/aurora/constants/shaders/aurora.wgsl.d.ts +1 -1
  39. package/dist/components/custom/aurora/constants/shaders/brush.glsl.d.ts +1 -1
  40. package/dist/components/custom/aurora/constants/shaders/composition.glsl.d.ts +1 -1
  41. package/dist/components/custom/aurora/constants/shaders/mediums.glsl.d.ts +1 -1
  42. package/dist/components/custom/aurora/index.d.ts +3 -3
  43. package/dist/components/custom/constellation/Constellation.vue.d.ts +40 -5
  44. package/dist/components/custom/constellation/constellationField.d.ts +110 -5
  45. package/dist/components/custom/constellation/index.d.ts +2 -2
  46. package/dist/components/custom/dock/GlassDock.vue.d.ts +12 -4
  47. package/dist/components/custom/dock/composables/dockMorphContext.d.ts +57 -0
  48. package/dist/components/custom/dock/composables/index.d.ts +3 -0
  49. package/dist/components/custom/dock/composables/useDockHold.d.ts +61 -0
  50. package/dist/components/custom/dock/composables/useLayerTransition.d.ts +13 -59
  51. package/dist/components/custom/dock/index.d.ts +2 -0
  52. package/dist/components/custom/goo-blob/GooBlob.vue.d.ts +13 -0
  53. package/dist/components/custom/goo-blob/composables/useBlobMood.d.ts +4 -0
  54. package/dist/components/custom/goo-blob/composables/useBlobPointer.d.ts +2 -0
  55. package/dist/components/custom/goo-blob/composables/useBlobSatellites.d.ts +2 -0
  56. package/dist/components/custom/goo-blob/composables/useMetaballRenderer.d.ts +20 -5
  57. package/dist/components/custom/goo-blob/index.d.ts +1 -1
  58. package/dist/components/custom/goo-blob/shaders/sdf-body.glsl.d.ts +1 -1
  59. package/dist/components/custom/goo-blob/shaders/watercolor-edges.glsl.d.ts +2 -2
  60. package/dist/components/custom/goo-blob/types.d.ts +8 -0
  61. package/dist/components/ui/card/Card.vue.d.ts +23 -7
  62. package/dist/components/ui/card/index.d.ts +1 -1
  63. package/dist/components/ui/progress/ProgressDefault.vue.d.ts +14 -4
  64. package/dist/components/ui/slider/Slider.vue.d.ts +3 -1
  65. package/dist/composables/color/index.d.ts +19 -0
  66. package/dist/composables/dom/index.d.ts +1 -1
  67. package/dist/composables/dom/useResolveTokenColor.d.ts +27 -0
  68. package/dist/composables/glass/canvas2d/index.d.ts +2 -1
  69. package/dist/composables/glass/canvas2d/resolveCanvasColor.d.ts +20 -0
  70. package/dist/composables/glass/canvas2d/useCanvas2D.d.ts +15 -1
  71. package/dist/composables/glass/index.d.ts +3 -1
  72. package/dist/composables/glass/useSpecularTracking.d.ts +33 -0
  73. package/dist/composables/glass/webgl/createCanvasLifecycle.d.ts +1 -1
  74. package/dist/composables/glass/webgl/shaders/procedural-color.glsl.d.ts +4 -0
  75. package/dist/composables/glass/webgl/useWebGLCanvas.d.ts +1 -1
  76. package/dist/composables/motion/core/index.d.ts +1 -0
  77. package/dist/configurator.js +1 -1
  78. package/dist/confirm-dialog.js +1 -1
  79. package/dist/constellation.js +144 -75
  80. package/dist/context-menu.js +2 -2
  81. package/dist/controls.js +2 -2
  82. package/dist/dark.js +1 -1
  83. package/dist/data-table.js +1 -1
  84. package/dist/deck-progress.d.ts +1 -0
  85. package/dist/deck-progress.js +2 -0
  86. package/dist/dialog.js +2 -2
  87. package/dist/disco-glyph.js +1 -1
  88. package/dist/dock.js +386 -285
  89. package/dist/{dockContext-DLgrVWsU.js → dockContext-BKeIMmNk.js} +1 -1
  90. package/dist/dom.js +6 -6
  91. package/dist/{dropdown-menu-BWpwutt0.js → dropdown-menu-B_4bWyyG.js} +2 -2
  92. package/dist/dropdown-menu.js +1 -1
  93. package/dist/expandable-container.js +1 -1
  94. package/dist/fonts/README.md +26 -18
  95. package/dist/forms.js +3 -3
  96. package/dist/fourier-field.js +37 -37
  97. package/dist/glass-carousel.js +12 -7
  98. package/dist/glass-panel.js +7 -7
  99. package/dist/glass-ui.css +1 -1
  100. package/dist/glass-ui.js +150 -162
  101. package/dist/glyph-face.js +2 -2
  102. package/dist/goo-blob.js +353 -270
  103. package/dist/header-ribbon.js +1 -1
  104. package/dist/hover-card.js +1 -1
  105. package/dist/hover-popover.js +1 -1
  106. package/dist/icon-tooltip.js +1 -1
  107. package/dist/index.d.ts +1 -0
  108. package/dist/instrument-chassis.js +1 -1
  109. package/dist/instrument-rail.js +1 -1
  110. package/dist/keyboard.js +1 -1
  111. package/dist/{keys-Dyf_uTs5.js → keys-BsYjEFOW.js} +1 -1
  112. package/dist/label.js +1 -1
  113. package/dist/labeled-field.js +6 -6
  114. package/dist/metric-badge.js +1 -1
  115. package/dist/metric-stack.js +1 -1
  116. package/dist/motion-core.js +65 -65
  117. package/dist/motion.js +3 -3
  118. package/dist/notification.js +1 -1
  119. package/dist/paper-backdrop.js +1 -1
  120. package/dist/popover.js +1 -1
  121. package/dist/progress.js +1 -1
  122. package/dist/pulse.js +1 -1
  123. package/dist/reactive.js +2 -2
  124. package/dist/resolveCanvasColor-BBiYfp8g.js +11 -0
  125. package/dist/responsive-tabs.js +2 -2
  126. package/dist/scrolling-text.js +1 -1
  127. package/dist/search.js +7 -7
  128. package/dist/select.js +3 -3
  129. package/dist/separator.js +1 -1
  130. package/dist/{sheet-Cv1uO-Gq.js → sheet-VZEtNFvO.js} +2 -2
  131. package/dist/sheet.js +1 -1
  132. package/dist/slider-D9puf-Ko.js +142 -0
  133. package/dist/slider.js +1 -1
  134. package/dist/sortable-list.js +3 -3
  135. package/dist/styles/components.css +1 -1
  136. package/dist/styles/dock-controls.css +21 -18
  137. package/dist/styles/dock.css +415 -224
  138. package/dist/styles/fonts.css +0 -25
  139. package/dist/styles/glass.css +100 -41
  140. package/dist/styles/theme.css +9 -2
  141. package/dist/styles/tokens.css +139 -32
  142. package/dist/styles/typography.css +52 -69
  143. package/dist/styles/utilities.css +2 -1
  144. package/dist/styles/view-transition.css +12 -40
  145. package/dist/switch.js +1 -1
  146. package/dist/tabs.js +5 -5
  147. package/dist/timeline.js +3 -3
  148. package/dist/toast.js +1 -1
  149. package/dist/toggle-group.js +1 -1
  150. package/dist/tooltip.js +1 -1
  151. package/dist/typewriter.js +1 -1
  152. package/dist/{useAnimatedNumber-C5I3wWd8.js → useAnimatedNumber-C_3wZLx4.js} +1 -1
  153. package/dist/{useCanvas2D-C31yfUGY.js → useCanvas2D-ClrQuZtp.js} +2 -1
  154. package/dist/{useConfiguratorState-B24TcgIn.js → useConfiguratorState-CMff4GzH.js} +3 -3
  155. package/dist/useResolveTokenColor-r9pnNjqK.js +24 -0
  156. package/dist/useSpecularTracking-BVRZsRHA.js +26 -0
  157. package/dist/{useTextHighlight-aMPdEpkq.js → useTextHighlight-9nMW23Qb.js} +1 -1
  158. package/dist/{useTouchGate-YQRwyUGU.js → useTouchGate-WFyJYsth.js} +1 -1
  159. package/dist/vReveal-CqaCz_mC.js +44 -0
  160. package/dist/watercolor-dot.js +2 -2
  161. package/package.json +36 -4
  162. package/src/fonts/README.md +26 -18
  163. package/src/styles/dock-controls.css +21 -18
  164. package/src/styles/dock.css +415 -224
  165. package/src/styles/fonts.css +0 -25
  166. package/src/styles/glass.css +100 -41
  167. package/src/styles/theme.css +9 -2
  168. package/src/styles/tokens.css +139 -32
  169. package/src/styles/typography.css +52 -69
  170. package/src/styles/utilities.css +2 -1
  171. package/src/styles/view-transition.css +12 -40
  172. package/dist/CardAction-D8nSE62a.js +0 -163
  173. package/dist/compile-iM4IUB66.js +0 -158
  174. package/dist/fonts/fraunces/fraunces-latin.woff2 +0 -0
  175. package/dist/slider-BA9wIs5e.js +0 -130
  176. package/dist/useViewTransition-DaN5Zrox.js +0 -21
  177. package/dist/vReveal-BE2TsPoR.js +0 -24
  178. package/src/fonts/fraunces/fraunces-latin.woff2 +0 -0
  179. /package/dist/{CollapsibleContent-D7UNsXQr.js → CollapsibleContent-CP9qF1v4.js} +0 -0
  180. /package/dist/{ContextMenuContent-DGKZX1Du.js → ContextMenuContent-DDa0v27s.js} +0 -0
  181. /package/dist/{HoverCardContent-Bn0UBMY9.js → HoverCardContent-B6CcQ8He.js} +0 -0
  182. /package/dist/{Input-DWQQIOC4.js → Input-DVG_J0ne.js} +0 -0
  183. /package/dist/{InstrumentChassis-BLJBl1BW.js → InstrumentChassis-C2f6cBaQ.js} +0 -0
  184. /package/dist/{InstrumentRail-BElFwKyt.js → InstrumentRail-CUJ05YVG.js} +0 -0
  185. /package/dist/{Label-DBc7bKzZ.js → Label-zRfbQdCn.js} +0 -0
  186. /package/dist/{ModalOverlay-D1VrWyoi.js → ModalOverlay-B1GkAjNb.js} +0 -0
  187. /package/dist/{PaperBackdrop-DCGoGatv.js → PaperBackdrop-CqwjnfLv.js} +0 -0
  188. /package/dist/{SelectGroup-BcaFjvP4.js → SelectGroup-BFiod7X2.js} +0 -0
  189. /package/dist/{SelectSeparator-COFMJGng.js → SelectSeparator-L8pPEn4L.js} +0 -0
  190. /package/dist/{Separator-DZyqsCum.js → Separator-D7sD7RKj.js} +0 -0
  191. /package/dist/{Switch-2rsAtDfA.js → Switch-LDKLmmgx.js} +0 -0
  192. /package/dist/{TabsList-COqIdW7i.js → TabsList-qyHZ2lKY.js} +0 -0
  193. /package/dist/{Toaster-BMaeziJJ.js → Toaster-CabYEEF_.js} +0 -0
  194. /package/dist/{TooltipProvider-CD2IXfRv.js → TooltipProvider-CmZzCuaG.js} +0 -0
  195. /package/dist/{_plugin-vue_export-helper-gLzyemvl.js → _plugin-vue_export-helper-ok8pgSl5.js} +0 -0
  196. /package/dist/composables/{dom → motion}/useTextHighlight.d.ts +0 -0
  197. /package/dist/{constants-CS75AWHG.js → constants-BPOqYJAm.js} +0 -0
  198. /package/dist/{createContext-CvNyBk4o.js → createContext-B44Sah_H.js} +0 -0
  199. /package/dist/{menuItemVariants-B4eFR5Ix.js → menuItemVariants-DKM85SNE.js} +0 -0
  200. /package/dist/{presets-BKVyQfbt.js → presets-D1XPuTj-.js} +0 -0
  201. /package/dist/{prng-wHuHlNHE.js → prng-COGhh02-.js} +0 -0
  202. /package/dist/{useGlassRenderer-HebgSEgN.js → useGlassRenderer-5I0YkI4t.js} +0 -0
  203. /package/dist/{useGlobalDark-yhL4Wp-s.js → useGlobalDark-D3EBWzXK.js} +0 -0
  204. /package/dist/{useIntersectionPause-Cc-H9ees.js → useIntersectionPause-Bj4sPkMh.js} +0 -0
  205. /package/dist/{useInterval-D3USn0yc.js → useInterval-CcLfq2WU.js} +0 -0
  206. /package/dist/{useKeyboardShortcuts-Be3w_Rwk.js → useKeyboardShortcuts-BXWXOZ-9.js} +0 -0
  207. /package/dist/{useResizeObserver-CSyxGxIX.js → useResizeObserver-CWCbk5Px.js} +0 -0
  208. /package/dist/{useScrollProgress-CAH8Ofwt.js → useScrollProgress-C9ysDic5.js} +0 -0
  209. /package/dist/{useSortable-C8ReQ50P.js → useSortable-MGAbCGVJ.js} +0 -0
  210. /package/dist/{useSpringMount-LRZqJTaF.js → useSpringMount-BJSHcLl3.js} +0 -0
  211. /package/dist/{useTimer-DEJonOZa.js → useTimer-3xqf_54b.js} +0 -0
  212. /package/dist/{useUserInvalidAria-CQKjEfwP.js → useUserInvalidAria-DoJKMZ3s.js} +0 -0
  213. /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";
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";
2
+ import { t } from "./useCanvas2D-ClrQuZtp.js";
3
+ import { t as n } from "./_plugin-vue_export-helper-ok8pgSl5.js";
4
+ import { n as r, t as i } from "./prng-COGhh02-.js";
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-Do977Cbf.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,6 +1,6 @@
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 "./useGlobalDark-yhL4Wp-s.js";
2
+ import { t } from "./_plugin-vue_export-helper-ok8pgSl5.js";
3
+ import { t as n } from "./useGlobalDark-D3EBWzXK.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
6
6
  //#region src/components/custom/controls/DarkModeToggle.vue
package/dist/dark.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as e } from "./useGlobalDark-yhL4Wp-s.js";
1
+ import { t as e } from "./useGlobalDark-D3EBWzXK.js";
2
2
  import { nextTick as t, watch as n } from "vue";
3
3
  //#region src/composables/dark/installDarkModeSync.ts
4
4
  function r(r) {
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./DataTable-gtPOLZvl.js";
1
+ import { n as e, t } from "./DataTable-CvlWXz65.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-AVgbIULY.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-DjZWT3lK.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 };
@@ -1,2 +1,2 @@
1
- import { t as e } from "./DiscoGlyph-ZoBYpoxI.js";
1
+ import { t as e } from "./DiscoGlyph-CG0F410s.js";
2
2
  export { e as DiscoGlyph };