@mkbabb/glass-ui 8.0.0 → 10.0.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 (264) hide show
  1. package/MIGRATION.md +4768 -0
  2. package/README.md +57 -13
  3. package/dist/DialogContent-CwIBvou_.js +157 -0
  4. package/dist/{DropdownMenuTrigger-8UZsBtZ8.js → DropdownMenuTrigger-CKRnhDSQ.js} +1 -1
  5. package/dist/{Surface-i1tWC-Ga.js → Surface-1nPoabc3.js} +1 -1
  6. package/dist/{accent-tone-solve-Cw7WkRD9.js → accent-tone-solve-5H6FY2QO.js} +1 -1
  7. package/dist/aurora.js +386 -355
  8. package/dist/{badge-owUOaaba.js → badge-BO6BC4G5.js} +1 -1
  9. package/dist/badge.js +1 -1
  10. package/dist/blob.js +44 -44
  11. package/dist/{button-yvGPb0Bx.js → button-BOFTUPyU.js} +1 -1
  12. package/dist/button.js +1 -1
  13. package/dist/{card-3HFFpC7_.js → card-ByyqRBvK.js} +2 -2
  14. package/dist/card.js +1 -1
  15. package/dist/carousel.js +3 -3
  16. package/dist/{checkbox-BnXuGgJ3.js → checkbox-B1qn65se.js} +1 -1
  17. package/dist/checkbox.js +1 -1
  18. package/dist/chip.js +8 -3
  19. package/dist/{class-names-q-UGOkHH.js → class-names-FlXcvRRT.js} +65 -18
  20. package/dist/{collapsible-B7O6m-Ch.js → collapsible-DFzK29Oh.js} +5 -2
  21. package/dist/collapsible.js +1 -1
  22. package/dist/color.glsl-DTJhdekG.js +34 -0
  23. package/dist/color.js +11 -11
  24. package/dist/color.wgsl-BTszLY39.js +398 -0
  25. package/dist/{command-BuBnYpxF.js → command-C-5xSEJ2.js} +8 -8
  26. package/dist/command.js +1 -1
  27. package/dist/component-styles.css +1 -0
  28. package/dist/components/_shared/class-names.d.ts +10 -1
  29. package/dist/components/_shared/control.d.ts +0 -1
  30. package/dist/components/_shared/index.d.ts +0 -1
  31. package/dist/components/_shared/menu/menu.css +1 -1
  32. package/dist/components/_shared/overlay/index.d.ts +1 -0
  33. package/dist/components/_shared/overlay/shortcuts.d.ts +12 -0
  34. package/dist/components/aurora/Aurora.vue.d.ts +1 -0
  35. package/dist/components/aurora/composables/atoms.d.ts +22 -6
  36. package/dist/components/aurora/composables/frameLoop.d.ts +6 -5
  37. package/dist/components/aurora/composables/runtime.d.ts +28 -1
  38. package/dist/components/aurora/composables/useAurora.d.ts +28 -0
  39. package/dist/components/aurora/composables/wgpuSetup.d.ts +1 -1
  40. package/dist/components/aurora/constants/presets.d.ts +62 -5
  41. package/dist/components/aurora/index.d.ts +1 -1
  42. package/dist/components/blob/Blob.vue.d.ts +3 -3
  43. package/dist/components/card/Card.vue.d.ts +8 -2
  44. package/dist/components/chip/Chip.vue.d.ts +1 -7
  45. package/dist/components/chip/chipVariants.d.ts +1 -0
  46. package/dist/components/collapsible/Collapsible.vue.d.ts +1 -0
  47. package/dist/components/command/CommandDialog.vue.d.ts +1 -1
  48. package/dist/components/configurator/Configurator.vue.d.ts +25 -2
  49. package/dist/components/configurator/ConfiguratorRow.vue.d.ts +4 -2
  50. package/dist/components/configurator/styles.css +1 -1
  51. package/dist/components/dark-mode-toggle/dark-mode-toggle.css +1 -1
  52. package/dist/components/deck/styles/capture.css +1 -1
  53. package/dist/components/dialog/styles.css +1 -1
  54. package/dist/components/dock/DockSeparator.vue.d.ts +2 -3
  55. package/dist/components/dock/GlassDock.vue.d.ts +1 -0
  56. package/dist/components/dock/composables/dockContext.d.ts +1 -8
  57. package/dist/components/dock/composables/dockCrossfadeContext.d.ts +0 -2
  58. package/dist/components/dock/composables/index.d.ts +1 -1
  59. package/dist/components/dock/composables/useDockHold.d.ts +16 -12
  60. package/dist/components/dock/composables/useDockRun.d.ts +20 -0
  61. package/dist/components/dock/composables/useDockSearch.d.ts +1 -1
  62. package/dist/components/dock/composables/useDockShellProps.d.ts +18 -101
  63. package/dist/components/dock/composables/useDockState.d.ts +2 -9
  64. package/dist/components/dock/constants.d.ts +15 -0
  65. package/dist/components/dock/index.d.ts +2 -2
  66. package/dist/components/dock/styles/controls/icon-button.css +1 -1
  67. package/dist/components/dock/styles/controls/tab-button.css +1 -1
  68. package/dist/components/dock/styles/controls/triggers.css +1 -1
  69. package/dist/components/dock/styles/controls.css +1 -1
  70. package/dist/components/dock/styles/density.css +1 -1
  71. package/dist/components/dock/styles/index.css +1 -1
  72. package/dist/components/dock/styles/layer-group.css +1 -1
  73. package/dist/components/dock/styles/layers.css +1 -1
  74. package/dist/components/dock/styles/morph.css +1 -1
  75. package/dist/components/dock/styles/run.css +1 -0
  76. package/dist/components/dock/styles/search.css +1 -1
  77. package/dist/components/dock/styles/shape.css +1 -1
  78. package/dist/components/dock/styles/shell-regions.css +1 -1
  79. package/dist/components/dock/styles/shell.css +1 -1
  80. package/dist/components/fourier-field/FourierField.vue.d.ts +29 -26
  81. package/dist/components/fourier-field/clock.d.ts +35 -0
  82. package/dist/components/fourier-field/constants.d.ts +80 -104
  83. package/dist/components/fourier-field/index.d.ts +3 -28
  84. package/dist/components/fourier-field/math.d.ts +69 -77
  85. package/dist/components/fourier-field/renderer/mint.d.ts +50 -0
  86. package/dist/components/fourier-field/renderer/uniforms.d.ts +84 -0
  87. package/dist/components/fourier-field/renderer/wgpu.d.ts +28 -0
  88. package/dist/components/fourier-field/shaders/compute.wgsl.d.ts +1 -0
  89. package/dist/components/fourier-field/shaders/render.wgsl.d.ts +1 -0
  90. package/dist/components/fourier-field/useFourierField.d.ts +49 -0
  91. package/dist/components/handmark/HandMark.vue.d.ts +18 -14
  92. package/dist/components/handmark/index.d.ts +4 -23
  93. package/dist/components/handmark/stroke.d.ts +92 -0
  94. package/dist/components/labeled-field/LabeledSwitch.vue.d.ts +3 -1
  95. package/dist/components/labeled-field/types.d.ts +1 -1
  96. package/dist/components/menu/DropdownMenu.vue.d.ts +1 -1
  97. package/dist/components/metric/coalesce-metric.d.ts +6 -1
  98. package/dist/components/metric/styles.css +1 -1
  99. package/dist/components/popover/Popover.vue.d.ts +1 -1
  100. package/dist/components/scroll-progress-rim/styles.css +1 -1
  101. package/dist/components/sheet/styles.css +1 -1
  102. package/dist/components/slider/styles.css +1 -1
  103. package/dist/components/tabs/SegmentedTabs.vue.d.ts +25 -112
  104. package/dist/components/tabs/composables/useTabDragMorph.d.ts +1 -1
  105. package/dist/components/tabs/composables/useTabResponsive.d.ts +11 -11
  106. package/dist/components/tabs/index.d.ts +1 -1
  107. package/dist/components/tabs/styles/drag.css +1 -1
  108. package/dist/components/tabs/styles/segmented.css +1 -1
  109. package/dist/components/tabs/types.d.ts +85 -0
  110. package/dist/components/timeline/index.d.ts +2 -0
  111. package/dist/components/toast/Toast.vue.d.ts +2 -2
  112. package/dist/composables/color/index.d.ts +0 -15
  113. package/dist/composables/dark/darkModeSyncScript.d.ts +42 -0
  114. package/dist/composables/dom/useResolveTokenColor.d.ts +1 -1
  115. package/dist/composables/glass/index.d.ts +2 -0
  116. package/dist/composables/keyboard/useKeyboardShortcuts.d.ts +47 -1
  117. package/dist/composables/motion/pointer/pointerFieldMappings.d.ts +0 -41
  118. package/dist/{components/search/composables → composables/search}/index.d.ts +2 -2
  119. package/dist/{components/search/composables/fuzzySearchIndex.d.ts → composables/search/match.d.ts} +8 -3
  120. package/dist/composables/sidebar/types.d.ts +5 -1
  121. package/dist/configurator-DiwVN573.js +339 -0
  122. package/dist/configurator.js +1 -1
  123. package/dist/constellation.js +5 -5
  124. package/dist/{content-CWO-XL7o.js → content-So3j6SOe.js} +1 -1
  125. package/dist/control-DJp15L4U.js +7 -0
  126. package/dist/dark-mode-toggle.js +2 -2
  127. package/dist/{dark-z_P5QwqI.js → dark-pONY3x93.js} +2 -2
  128. package/dist/dark.js +1 -1
  129. package/dist/{data-table-_RrOEdiw.js → data-table-Ba_uTfPc.js} +3 -3
  130. package/dist/data-table.js +1 -1
  131. package/dist/{deck-Ci6YjB5e.js → deck-Cm_VmyNL.js} +1 -1
  132. package/dist/deck.js +1 -1
  133. package/dist/{dialog-CbRnTRtg.js → dialog-BZoFG0j8.js} +1 -1
  134. package/dist/dialog.js +2 -2
  135. package/dist/dock.js +718 -496
  136. package/dist/dom.js +90 -8
  137. package/dist/easing.js +5 -5
  138. package/dist/expandable-container-CZUj9BzY.js +142 -0
  139. package/dist/expandable-container.js +2 -142
  140. package/dist/fourier-field.js +638 -855
  141. package/dist/fourier-math.js +6 -6
  142. package/dist/glass-ui.css +1 -1
  143. package/dist/glass-ui.js +88 -75
  144. package/dist/handmark.js +330 -718
  145. package/dist/index.d.ts +2 -2
  146. package/dist/infinite-scroll.js +16 -17
  147. package/dist/{input-Bls2A4Tt.js → input-eLZ_AU7l.js} +1 -1
  148. package/dist/input.js +1 -1
  149. package/dist/keyboard.js +64 -21
  150. package/dist/{label-BQEZhnK_.js → label-CE03H1KL.js} +2 -2
  151. package/dist/label.js +1 -1
  152. package/dist/labeled-field.js +9 -6
  153. package/dist/{menu-wLu1XGKn.js → menu-BnmCOa3y.js} +93 -90
  154. package/dist/menu.js +2 -2
  155. package/dist/metric.js +12 -7
  156. package/dist/{motion-D4uYE0UM.js → motion-BvV1_24p.js} +1 -1
  157. package/dist/motion-core.js +35 -35
  158. package/dist/{number-field-NFAwQ0HK.js → number-field-RP89046a.js} +2 -2
  159. package/dist/number-field.js +1 -1
  160. package/dist/pager-dots.js +3 -3
  161. package/dist/{participation-B0hdsIRo.js → participation-Di4UHbzk.js} +8 -8
  162. package/dist/{pointerFieldMappings-DP5tla5z.js → pointerFieldMappings-DXwlU5uj.js} +7 -23
  163. package/dist/popover-DA87hFBx.js +184 -0
  164. package/dist/popover.js +1 -1
  165. package/dist/{progress-DF8dWZIX.js → progress-eVa-mc7J.js} +1 -1
  166. package/dist/progress.js +1 -1
  167. package/dist/{radio-group-Ci8o-pDx.js → radio-group-B58Bz16F.js} +2 -2
  168. package/dist/radio-group.js +1 -1
  169. package/dist/{select-CDgwGH_P.js → select-fy3vtArm.js} +13 -13
  170. package/dist/select.js +1 -1
  171. package/dist/{separator-CN11t406.js → separator-D4EZM10u.js} +2 -2
  172. package/dist/separator.js +1 -1
  173. package/dist/{sheet-BEFvnO_u.js → sheet-BQJyER59.js} +120 -115
  174. package/dist/sheet.js +2 -2
  175. package/dist/shortcuts-DGGWNRNe.js +13 -0
  176. package/dist/sidebar.js +4 -4
  177. package/dist/{slider-gsc8jDIo.js → slider-5ChjjWSR.js} +1 -1
  178. package/dist/slider.js +1 -1
  179. package/dist/{status-dot-BpnqOP5N.js → status-dot-W4LFiJps.js} +2 -2
  180. package/dist/status-dot.js +1 -1
  181. package/dist/styles/accessibility.css +1 -1
  182. package/dist/styles/animations.css +1 -1
  183. package/dist/styles/components.css +1 -1
  184. package/dist/styles/glass/a11y-fallback.css +1 -1
  185. package/dist/styles/glass/dissolve.css +1 -1
  186. package/dist/styles/glass/focus-veil.css +1 -1
  187. package/dist/styles/glass/ladder.css +1 -1
  188. package/dist/styles/glass/material.css +1 -1
  189. package/dist/styles/glass/overlay-plate.css +1 -1
  190. package/dist/styles/glass/reveal.css +1 -1
  191. package/dist/styles/glass-specular-track.css +1 -1
  192. package/dist/styles/paper.css +1 -1
  193. package/dist/styles/scroll-choreography.css +1 -1
  194. package/dist/styles/scroll-chrome.css +1 -1
  195. package/dist/styles/scroll-driven.css +1 -1
  196. package/dist/styles/theme/literals.css +1 -1
  197. package/dist/styles/tokens/color-radius.css +1 -1
  198. package/dist/styles/tokens/dark-arm-glass.css +1 -1
  199. package/dist/styles/tokens/light-dark.css +1 -1
  200. package/dist/styles/tokens/offsets.css +1 -1
  201. package/dist/styles/tokens/scheme-motion.css +1 -1
  202. package/dist/styles/tokens/sizing.css +1 -1
  203. package/dist/styles/typography/semantic.css +1 -1
  204. package/dist/styles/typography/utilities.css +1 -1
  205. package/dist/styles/utilities/a11y-overrides.css +1 -1
  206. package/dist/styles/utilities/responsive.css +1 -1
  207. package/dist/styles/view-transition.css +1 -1
  208. package/dist/styles/viz-reveal.css +1 -1
  209. package/dist/surface.js +1 -1
  210. package/dist/{switch-DxZzDrmV.js → switch-BYUZ6g9G.js} +2 -2
  211. package/dist/switch.js +1 -1
  212. package/dist/{tabs-CYscnq5H.js → tabs-rdRXKXxd.js} +4 -3
  213. package/dist/tabs.js +1 -1
  214. package/dist/textarea.js +1 -1
  215. package/dist/timeline.js +44 -42
  216. package/dist/{toast-9c6Kp58L.js → toast-DVOwo6GB.js} +1 -1
  217. package/dist/toast.js +1 -1
  218. package/dist/{toggle-group-11aPGMfE.js → toggle-group-CC5b3o1R.js} +2 -2
  219. package/dist/toggle-group.js +1 -1
  220. package/dist/{tooltip-DqKMZ4dn.js → tooltip-DhTHhtJN.js} +2 -2
  221. package/dist/tooltip.js +1 -1
  222. package/dist/typewriter.js +1 -1
  223. package/dist/{useAccentTone-DFAh1osB.js → useAccentTone-DitmKfGL.js} +1 -1
  224. package/dist/{resolveCanvasColor-6MCrswTB.js → useCanvas2D-CQRElMyE.js} +1 -11
  225. package/dist/{usePointerVelocityField-DsIf7yyq.js → usePointerVelocityField-Lx26_Yap.js} +1 -1
  226. package/dist/useResolveTokenColor-B2FfJnd9.js +24 -0
  227. package/package.json +5 -21
  228. package/dist/DialogContent-4hzLiaCQ.js +0 -152
  229. package/dist/canvas.d.ts +0 -1
  230. package/dist/canvas.js +0 -2
  231. package/dist/color.wgsl-B0N3mKMb.js +0 -412
  232. package/dist/compile-D7VYG3gi.js +0 -19
  233. package/dist/components/dock/composables/useDockOverflowFit.d.ts +0 -20
  234. package/dist/components/dock/composables/useDockTouchGate.d.ts +0 -42
  235. package/dist/components/dock/styles/overflow.css +0 -1
  236. package/dist/components/fourier-field/composables/fourierFieldGLSetup.d.ts +0 -24
  237. package/dist/components/fourier-field/composables/fourierFieldWGPUSetup.d.ts +0 -31
  238. package/dist/components/fourier-field/composables/uniformBridgeWGPU.d.ts +0 -39
  239. package/dist/components/fourier-field/composables/useFourierField.d.ts +0 -56
  240. package/dist/components/fourier-field/shaders/fourier-field.compute.wgsl.d.ts +0 -1
  241. package/dist/components/fourier-field/shaders/fourier-field.glsl.d.ts +0 -4
  242. package/dist/components/fourier-field/shaders/fourier-field.render.wgsl.d.ts +0 -1
  243. package/dist/components/fourier-field/shaders/fourier-field.ribbon.d.ts +0 -51
  244. package/dist/components/handmark/brush.d.ts +0 -269
  245. package/dist/components/handmark/composables/useHandMark.d.ts +0 -99
  246. package/dist/components/handmark/constants.d.ts +0 -69
  247. package/dist/components/handmark/freehand.d.ts +0 -69
  248. package/dist/components/handmark/geometry.d.ts +0 -62
  249. package/dist/components/handmark/ink.d.ts +0 -11
  250. package/dist/components/handmark/noise.d.ts +0 -30
  251. package/dist/components/handmark/texture.d.ts +0 -39
  252. package/dist/components/handmark/types.d.ts +0 -70
  253. package/dist/components/search/SearchBar.vue.d.ts +0 -38
  254. package/dist/components/search/index.d.ts +0 -8
  255. package/dist/components/search/searchVariants.d.ts +0 -16
  256. package/dist/configurator-BoeScnDL.js +0 -311
  257. package/dist/control-Da4XeT43.js +0 -11
  258. package/dist/popover-DBMKTPkL.js +0 -181
  259. package/dist/search.d.ts +0 -1
  260. package/dist/search.js +0 -61
  261. package/dist/useFuzzySearch-CUnZknpm.js +0 -177
  262. package/dist/useResolveTokenColor-CspQv_ik.js +0 -107
  263. /package/dist/{components/search/composables → composables/search}/types.d.ts +0 -0
  264. /package/dist/{components/search/composables → composables/search}/useFuzzySearch.d.ts +0 -0
@@ -1,5 +1,5 @@
1
- import { t as e } from "./class-names-q-UGOkHH.js";
2
- import { t } from "./button-yvGPb0Bx.js";
1
+ import { t as e } from "./class-names-FlXcvRRT.js";
2
+ import { t } from "./button-BOFTUPyU.js";
3
3
  import { n, t as r } from "./control.css_vue_type_style_index_0_src_true_lang-BIdufaDG.js";
4
4
  import { computed as i, createBlock as a, createVNode as o, defineComponent as s, inject as c, mergeProps as l, normalizeClass as u, openBlock as d, provide as f, renderSlot as p, resolveDynamicComponent as m, unref as h, useAttrs as g, withCtx as _ } from "vue";
5
5
  import { NumberFieldDecrement as v, NumberFieldIncrement as y, NumberFieldInput as b, NumberFieldRoot as x, injectNumberFieldRootContext as S, useForwardPropsEmits as C } from "reka-ui";
@@ -1,2 +1,2 @@
1
- import { n as e, r as t, t as n } from "./number-field-NFAwQ0HK.js";
1
+ import { n as e, r as t, t as n } from "./number-field-RP89046a.js";
2
2
  export { t as NumberField, e as NumberFieldInput, n as NumberFieldStep };
@@ -1,8 +1,8 @@
1
- import { t as e } from "./class-names-q-UGOkHH.js";
1
+ import { t as e } from "./class-names-FlXcvRRT.js";
2
2
  import { t } from "./useLiquidFlex-TJZmRqyY.js";
3
3
  import { t as n } from "./useResizeObserver-CdUlm2QZ.js";
4
4
  import { t as r } from "./_plugin-vue_export-helper-B3ysoDQm.js";
5
- import { s as i } from "./deck-Ci6YjB5e.js";
5
+ import { s as i } from "./deck-Cm_VmyNL.js";
6
6
  import { n as a } from "./useLeadTrail-DQWdpFN1.js";
7
7
  import { Fragment as o, computed as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, defineComponent as d, mergeModels as f, nextTick as p, normalizeClass as m, normalizeStyle as h, onMounted as g, openBlock as _, ref as v, renderList as y, toDisplayString as b, unref as x, useModel as S, watch as C } from "vue";
8
8
  //#region src/components/pager-dots/worm.ts
@@ -357,6 +357,6 @@ var k = [
357
357
  t.announce ? (_(), l("span", N, b(ie.value), 1)) : c("", !0)
358
358
  ], 42, k));
359
359
  }
360
- }), [["__scopeId", "data-v-f60f1930"]]);
360
+ }), [["__scopeId", "data-v-592b0f41"]]);
361
361
  //#endregion
362
362
  export { w as DEFAULT_DOT_PX, E as DEFAULT_MAX_STRETCH, T as DEFAULT_PITCH_PX, P as PagerDots, D as elongationCeil };
@@ -5,14 +5,14 @@ import { computed as n, onScopeDispose as r, ref as i, toValue as a, watch as o
5
5
  var s = {
6
6
  response: e("dock").response,
7
7
  dampingFraction: e("dock").dampingFraction
8
- }, c = "[data-dismissable-layer]:not([data-state=\"closed\"])", l = "glass-ui:dock-context", u = "glass-ui:dock-layer-group", d = t(l, "[glass-ui:dock] useDockContext() called outside <GlassDock>; use useOptionalDockContext() if the primitive may render outside a dock."), { KEY: f } = d;
9
- function p(e) {
10
- d.provide(e);
8
+ }, c = "[data-dismissable-layer]:not([data-state=\"closed\"])", l = "glass-ui:dock-context", u = "glass-ui:dock-layer-group", d = 3600, f = t(l, "[glass-ui:dock] useDockContext() called outside <GlassDock>; use useOptionalDockContext() if the primitive may render outside a dock."), { KEY: p } = f;
9
+ function m(e) {
10
+ f.provide(e);
11
11
  }
12
- var m = d.use, h = d.useOptional;
12
+ var h = f.use, g = f.useOptional;
13
13
  //#endregion
14
14
  //#region src/components/_shared/overlay/participation.ts
15
- function g(e, t) {
15
+ function _(e, t) {
16
16
  let n = i(!1);
17
17
  function a() {
18
18
  n.value || (n.value = !0, e()?.keepOpen(t));
@@ -26,8 +26,8 @@ function g(e, t) {
26
26
  release: o
27
27
  };
28
28
  }
29
- function _(e) {
30
- let t = h(), r = g(() => t, e?.kind), i = n(() => t?.id ? {
29
+ function v(e) {
30
+ let t = g(), r = _(() => t, e?.kind), i = n(() => t?.id ? {
31
31
  "data-glass-dock-portal": "",
32
32
  "data-glass-dock-owner": t.id
33
33
  } : {});
@@ -39,4 +39,4 @@ function _(e) {
39
39
  };
40
40
  }
41
41
  //#endregion
42
- export { m as a, s as c, p as i, c as l, g as n, h as o, f as r, u as s, _ as t };
42
+ export { h as a, u as c, m as i, s as l, _ as n, g as o, p as r, d as s, v as t, c as u };
@@ -2,24 +2,8 @@
2
2
  function e(e, t, n) {
3
3
  return e < t ? t : e > n ? n : e;
4
4
  }
5
- var t = .15, n = .15;
6
- function r(e) {
7
- let t = Math.hypot(e.x, e.y);
8
- return t < 1e-6 ? null : {
9
- x: e.x / t,
10
- y: e.y / t
11
- };
12
- }
13
- function i(t, n, i = {}) {
14
- let a = i.lean ?? .15, o = e(i.biasGain ?? .15, 0, .15), s = Math.max(n.scale, 1e-6), c = t.smoothedPosition, l = (c.x * 2 - 1) * a * t.engagement, u = -(c.y * 2 - 1) * a * t.engagement, d = l * n.aspect / s, f = u / s, p = 1, m = n.headTangent ? r(n.headTangent) : null, h = n.headToCursor ? r(n.headToCursor) : null;
15
- return m && h && (p = 1 + o * e(m.x * h.x + m.y * h.y, -1, 1) * t.engagement), {
16
- leanX: d,
17
- leanY: f,
18
- phaseRateMul: p
19
- };
20
- }
21
- var a = .09, o = .6, s = .35;
22
- function c(t, n = {}) {
5
+ var t = .09, n = .6, r = .35;
6
+ function i(t, n = {}) {
23
7
  let r = n.leadK ?? .09, i = n.stretchGain ?? .6, a = n.stretchMax ?? .35, o = e((t.attractor.x + t.velocity.x * r) * 2 - 1, -1, 1), s = e((t.attractor.y + t.velocity.y * r) * 2 - 1, -1, 1), c = -(t.acceleration.x * t.velocity.x + t.acceleration.y * t.velocity.y);
24
8
  return {
25
9
  x: o,
@@ -27,8 +11,8 @@ function c(t, n = {}) {
27
11
  stretch: e(Math.max(0, c) * i + t.burst * .1, 0, a)
28
12
  };
29
13
  }
30
- var l = .25;
31
- function u(t, n = {}) {
14
+ var a = .25;
15
+ function o(t, n = {}) {
32
16
  let r = e(n.strength ?? .8, 0, 1), i = e(t.engagement * r, 0, 1), a = e(t.burst * (n.amplitude ?? 0), 0, 1);
33
17
  return {
34
18
  cx: t.attractor.x,
@@ -37,7 +21,7 @@ function u(t, n = {}) {
37
21
  radius: n.radius ?? .25
38
22
  };
39
23
  }
40
- function d(e) {
24
+ function s(e) {
41
25
  return {
42
26
  x: e.attractor.x,
43
27
  y: e.attractor.y,
@@ -47,7 +31,7 @@ function d(e) {
47
31
  velY: e.velocity.y
48
32
  };
49
33
  }
50
- function f(e) {
34
+ function c(e) {
51
35
  return {
52
36
  position: e.position.value,
53
37
  smoothedPosition: e.smoothedPosition.value,
@@ -59,4 +43,4 @@ function f(e) {
59
43
  };
60
44
  }
61
45
  //#endregion
62
- export { t as a, c, f as d, s as i, d as l, a as n, n as o, o as r, u as s, l as t, i as u };
46
+ export { o as a, c, r as i, t as n, i as o, n as r, s, a as t };
@@ -0,0 +1,184 @@
1
+ import { t as e } from "./content-So3j6SOe.js";
2
+ import { t } from "./createContext-BhkE9mLH.js";
3
+ import { t as n } from "./participation-Di4UHbzk.js";
4
+ import { t as r } from "./shortcuts-DGGWNRNe.js";
5
+ import { computed as i, createBlock as a, defineComponent as o, mergeProps as s, openBlock as c, ref as l, renderSlot as u, resolveDynamicComponent as d, unref as f, useAttrs as p, watch as m, withCtx as h } from "vue";
6
+ import { HoverCardContent as g, HoverCardPortal as _, HoverCardRoot as v, HoverCardTrigger as y, PopoverContent as b, PopoverPortal as x, PopoverRoot as S, PopoverTrigger as C, injectPopoverRootContext as w } from "reka-ui";
7
+ //#region src/components/popover/popoverContext.ts
8
+ var T = t("glass-ui:popover-union"), E = T.provide, D = T.use, O = /* @__PURE__ */ o({
9
+ name: "Popover",
10
+ inheritAttrs: !1,
11
+ __name: "Popover",
12
+ props: {
13
+ open: {
14
+ type: Boolean,
15
+ default: void 0
16
+ },
17
+ defaultOpen: {
18
+ type: Boolean,
19
+ default: !1
20
+ },
21
+ trigger: { default: "click" },
22
+ openDelay: { default: 250 },
23
+ closeDelay: { default: 150 },
24
+ keepDockOpen: {
25
+ type: Boolean,
26
+ default: !1
27
+ },
28
+ modal: {
29
+ type: Boolean,
30
+ default: !1
31
+ }
32
+ },
33
+ emits: ["update:open"],
34
+ setup(e, { emit: t }) {
35
+ let r = e, o = t, s = l(r.open ?? r.defaultOpen);
36
+ m(() => r.open, (e) => {
37
+ e !== void 0 && (s.value = e);
38
+ });
39
+ let d = i(() => r.open ?? s.value);
40
+ function p(e) {
41
+ r.open === void 0 && (s.value = e), o("update:open", e);
42
+ }
43
+ let g = typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(pointer: coarse)").matches, _ = i(() => r.trigger === "hover" && !g);
44
+ return E({
45
+ usesHoverRoot: _,
46
+ modal: i(() => r.modal)
47
+ }), n({ hold: () => d.value && r.keepDockOpen }), (t, n) => _.value ? (c(), a(f(v), {
48
+ key: 0,
49
+ "data-slot": "popover",
50
+ open: d.value,
51
+ "open-delay": e.openDelay,
52
+ "close-delay": e.closeDelay,
53
+ "onUpdate:open": p
54
+ }, {
55
+ default: h(() => [u(t.$slots, "default")]),
56
+ _: 3
57
+ }, 8, [
58
+ "open",
59
+ "open-delay",
60
+ "close-delay"
61
+ ])) : (c(), a(f(S), {
62
+ key: 1,
63
+ "data-slot": "popover",
64
+ open: d.value,
65
+ modal: e.modal,
66
+ "onUpdate:open": p
67
+ }, {
68
+ default: h(() => [u(t.$slots, "default")]),
69
+ _: 3
70
+ }, 8, ["open", "modal"]));
71
+ }
72
+ }), k = /* @__PURE__ */ o({
73
+ name: "PopoverTrigger",
74
+ inheritAttrs: !1,
75
+ __name: "PopoverTrigger",
76
+ props: {
77
+ asChild: {
78
+ type: Boolean,
79
+ default: !1
80
+ },
81
+ class: { type: [
82
+ Boolean,
83
+ null,
84
+ String,
85
+ Object,
86
+ Array
87
+ ] }
88
+ },
89
+ setup(e) {
90
+ let t = e, n = p(), r = i(() => {
91
+ let { as: e, reference: r, ...i } = n;
92
+ return t.asChild ? i : {
93
+ ...i,
94
+ type: "button"
95
+ };
96
+ }), o = D(), l = i(() => o?.usesHoverRoot.value ?? !1);
97
+ return (n, i) => l.value ? (c(), a(f(y), s({ key: 0 }, r.value, {
98
+ as: "button",
99
+ "as-child": e.asChild,
100
+ class: t.class
101
+ }), {
102
+ default: h(() => [u(n.$slots, "default")]),
103
+ _: 3
104
+ }, 16, ["as-child", "class"])) : (c(), a(f(C), s({ key: 1 }, r.value, {
105
+ as: "button",
106
+ "as-child": e.asChild,
107
+ class: t.class
108
+ }), {
109
+ default: h(() => [u(n.$slots, "default")]),
110
+ _: 3
111
+ }, 16, ["as-child", "class"]));
112
+ }
113
+ }), A = /* @__PURE__ */ o({
114
+ name: "PopoverContent",
115
+ inheritAttrs: !1,
116
+ __name: "PopoverContent",
117
+ props: {
118
+ class: { type: [
119
+ Boolean,
120
+ null,
121
+ String,
122
+ Object,
123
+ Array
124
+ ] },
125
+ portal: {
126
+ type: Boolean,
127
+ default: !0
128
+ },
129
+ ariaLabel: {},
130
+ side: { default: "bottom" },
131
+ sideOffset: { default: 4 },
132
+ align: { default: "center" },
133
+ alignOffset: { default: 0 }
134
+ },
135
+ emits: [
136
+ "escapeKeyDown",
137
+ "pointerDownOutside",
138
+ "focusOutside",
139
+ "interactOutside",
140
+ "openAutoFocus",
141
+ "closeAutoFocus"
142
+ ],
143
+ setup(t, { emit: o }) {
144
+ let l = t, m = o, v = p(), y = i(() => ({
145
+ side: l.side,
146
+ sideOffset: l.sideOffset,
147
+ align: l.align,
148
+ alignOffset: l.alignOffset,
149
+ avoidCollisions: !0
150
+ })), S = (e, { slots: t }) => t.default?.(), C = D(), T = i(() => C?.usesHoverRoot.value ?? !1), E = i(() => l.portal ? T.value ? _ : x : S), O = i(() => T.value ? g : b), k = i(() => (C?.modal.value ?? !1) && !T.value), A = i(() => ({
151
+ "aria-label": l.ariaLabel,
152
+ ...T.value ? { role: "group" } : {},
153
+ ...k.value ? { "aria-modal": "true" } : {}
154
+ })), j = w(null);
155
+ r(() => k.value && (j?.open.value ?? !1));
156
+ let M = n(), N = i(() => e({
157
+ role: "panel",
158
+ slot: "popover-content",
159
+ dock: M.portalAttrs.value,
160
+ class: ["z-popover", l.class]
161
+ }));
162
+ return (e, t) => (c(), a(d(E.value), null, {
163
+ default: h(() => [(c(), a(d(O.value), s({
164
+ ...y.value,
165
+ ...f(v),
166
+ ...A.value,
167
+ ...N.value
168
+ }, {
169
+ onEscapeKeyDown: t[0] ||= (e) => m("escapeKeyDown", e),
170
+ onPointerDownOutside: t[1] ||= (e) => m("pointerDownOutside", e),
171
+ onFocusOutside: t[2] ||= (e) => m("focusOutside", e),
172
+ onInteractOutside: t[3] ||= (e) => m("interactOutside", e),
173
+ onOpenAutoFocus: t[4] ||= (e) => m("openAutoFocus", e),
174
+ onCloseAutoFocus: t[5] ||= (e) => m("closeAutoFocus", e)
175
+ }), {
176
+ default: h(() => [u(e.$slots, "default")]),
177
+ _: 3
178
+ }, 16))]),
179
+ _: 3
180
+ }));
181
+ }
182
+ });
183
+ //#endregion
184
+ export { k as n, O as r, A as t };
package/dist/popover.js CHANGED
@@ -1,2 +1,2 @@
1
- import { n as e, r as t, t as n } from "./popover-DBMKTPkL.js";
1
+ import { n as e, r as t, t as n } from "./popover-DA87hFBx.js";
2
2
  export { t as Popover, n as PopoverContent, e as PopoverTrigger };
@@ -69,6 +69,6 @@ var y = ["data-orientation"], b = ["data-consumed"], x = /*#__PURE__*/ e(/* @__P
69
69
  "style"
70
70
  ]));
71
71
  }
72
- }), [["__scopeId", "data-v-e5601b24"]]);
72
+ }), [["__scopeId", "data-v-0fd1fae9"]]);
73
73
  //#endregion
74
74
  export { x as t };
package/dist/progress.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as e } from "./progress-DF8dWZIX.js";
1
+ import { t as e } from "./progress-eVa-mc7J.js";
2
2
  export { e as Progress };
@@ -1,5 +1,5 @@
1
- import { t as e } from "./class-names-q-UGOkHH.js";
2
- import { n as t } from "./control-Da4XeT43.js";
1
+ import { t as e } from "./class-names-FlXcvRRT.js";
2
+ import { t } from "./control-DJp15L4U.js";
3
3
  import { computed as n, createBlock as r, createElementVNode as i, createVNode as a, defineComponent as o, mergeProps as s, openBlock as c, renderSlot as l, unref as u, withCtx as d } from "vue";
4
4
  import { RadioGroupIndicator as f, RadioGroupItem as p, RadioGroupRoot as m, useForwardProps as h } from "reka-ui";
5
5
  //#endregion
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./radio-group-Ci8o-pDx.js";
1
+ import { n as e, t } from "./radio-group-B58Bz16F.js";
2
2
  export { e as RadioGroup, t as RadioGroupItem };
@@ -1,8 +1,8 @@
1
- import { t as e } from "./class-names-q-UGOkHH.js";
1
+ import { t as e } from "./class-names-FlXcvRRT.js";
2
2
  import { t } from "./primitive-B2t2jdqM.js";
3
3
  import { t as n } from "./selection-DqIULxRG.js";
4
- import { t as r } from "./rowClass-DYOXwxhO.js";
5
- import { t as i } from "./participation-B0hdsIRo.js";
4
+ import { t as r } from "./participation-Di4UHbzk.js";
5
+ import { t as i } from "./rowClass-DYOXwxhO.js";
6
6
  import { computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createSlots as u, createVNode as d, defineComponent as f, guardReactiveProps as p, mergeProps as m, normalizeClass as h, normalizeProps as g, openBlock as _, renderSlot as v, unref as y, useAttrs as b, withCtx as x } from "vue";
7
7
  import { SelectContent as S, SelectGroup as C, SelectIcon as w, SelectItem as T, SelectItemIndicator as E, SelectItemText as D, SelectLabel as O, SelectPortal as k, SelectRoot as A, SelectScrollDownButton as j, SelectScrollUpButton as M, SelectSeparator as N, SelectTrigger as P, SelectValue as F, SelectViewport as I, useForwardProps as L } from "reka-ui";
8
8
  import { ChevronDown as R, ChevronUp as z } from "@lucide/vue";
@@ -141,16 +141,16 @@ var B = /* @__PURE__ */ f({
141
141
  "pointerDownOutside"
142
142
  ],
143
143
  setup(t, { emit: n }) {
144
- let r = t, s = n, c = b(), l = a(() => ({
144
+ let i = t, s = n, c = b(), l = a(() => ({
145
145
  ...c,
146
146
  position: "popper",
147
- side: r.side,
148
- sideOffset: r.sideOffset,
149
- align: r.align,
150
- alignOffset: r.alignOffset,
147
+ side: i.side,
148
+ sideOffset: i.sideOffset,
149
+ align: i.align,
150
+ alignOffset: i.alignOffset,
151
151
  avoidCollisions: !0,
152
152
  collisionPadding: 16
153
- })), u = i();
153
+ })), u = r();
154
154
  return (t, n) => (_(), o(y(k), null, {
155
155
  default: x(() => [d(y(S), m({
156
156
  ...l.value,
@@ -158,7 +158,7 @@ var B = /* @__PURE__ */ f({
158
158
  }, {
159
159
  "data-reveal": "menu",
160
160
  "data-slot": "select-content",
161
- class: y(e)("relative z-popover min-w-(--overlay-min-width) overflow-hidden rounded-card text-popover-foreground glass-reveal", "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", "glass-floating glass-field-portal", r.class),
161
+ class: y(e)("relative z-popover min-w-(--overlay-min-width) overflow-hidden rounded-card text-popover-foreground glass-reveal", "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", "glass-floating glass-field-portal", i.class),
162
162
  onCloseAutoFocus: n[0] ||= (e) => s("closeAutoFocus", e),
163
163
  onEscapeKeyDown: n[1] ||= (e) => s("escapeKeyDown", e),
164
164
  onPointerDownOutside: n[2] ||= (e) => s("pointerDownOutside", e)
@@ -221,8 +221,8 @@ var B = /* @__PURE__ */ f({
221
221
  hideIndicator: { type: Boolean }
222
222
  },
223
223
  emits: ["select"],
224
- setup(n, { emit: i }) {
225
- let u = n, f = i, p = b(), h = a(() => t(p));
224
+ setup(n, { emit: r }) {
225
+ let u = n, f = r, p = b(), h = a(() => t(p));
226
226
  function g(e) {
227
227
  f("select", e);
228
228
  }
@@ -231,7 +231,7 @@ var B = /* @__PURE__ */ f({
231
231
  value: u.value,
232
232
  disabled: u.disabled,
233
233
  "text-value": u.textValue,
234
- class: y(e)(y(r)(S.value), u.class),
234
+ class: y(e)(y(i)(S.value), u.class),
235
235
  onSelect: g
236
236
  }), {
237
237
  default: x(() => [S.value === "none" ? s("", !0) : (_(), c("span", K, [d(y(E), null, {
package/dist/select.js CHANGED
@@ -1,2 +1,2 @@
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 "./select-CDgwGH_P.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 "./select-fy3vtArm.js";
2
2
  export { r as Select, e as SelectContent, n as SelectGroup, o as SelectItem, i as SelectLabel, a as SelectScrollButton, c as SelectSeparator, s as SelectTrigger, t as SelectValue };
@@ -1,4 +1,4 @@
1
- import { t as e } from "./class-names-q-UGOkHH.js";
1
+ import { t as e } from "./class-names-FlXcvRRT.js";
2
2
  import { t } from "./primitive-B2t2jdqM.js";
3
3
  import { t as n } from "./_plugin-vue_export-helper-B3ysoDQm.js";
4
4
  import { computed as r, createBlock as i, createElementBlock as a, createElementVNode as o, defineComponent as s, mergeProps as c, openBlock as l, toDisplayString as u, unref as d, useAttrs as f, useId as p } from "vue";
@@ -68,6 +68,6 @@ var h = /*#__PURE__*/ n(/* @__PURE__ */ s({
68
68
  class: d(e)("separator", s.class)
69
69
  }), null, 16, ["class"]));
70
70
  }
71
- }), [["__scopeId", "data-v-2cde4e82"]]);
71
+ }), [["__scopeId", "data-v-64dda6b9"]]);
72
72
  //#endregion
73
73
  export { h as t };
package/dist/separator.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as e } from "./separator-CN11t406.js";
1
+ import { t as e } from "./separator-D4EZM10u.js";
2
2
  export { e as Separator };