@mkbabb/glass-ui 10.1.1 → 10.1.3

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 (32) hide show
  1. package/MIGRATION.md +45 -0
  2. package/dist/{command-CTQCaHVA.js → command-CatrAsrl.js} +1 -1
  3. package/dist/command.js +1 -1
  4. package/dist/components/dock/DockControl.vue.d.ts +3 -0
  5. package/dist/components/dock/DockTrigger.vue.d.ts +5 -5
  6. package/dist/components/dock/composables/dockMorphMeasure.d.ts +44 -7
  7. package/dist/components/dock/composables/useDockMorph.d.ts +9 -0
  8. package/dist/components/dock/composables/useDockRun.d.ts +5 -0
  9. package/dist/components/dock/constants.d.ts +10 -0
  10. package/dist/components/dock/styles/controls/triggers.css +1 -1
  11. package/dist/components/dock/styles/index.css +1 -1
  12. package/dist/components/dock/styles/layers.css +1 -1
  13. package/dist/components/dock/styles/shape.css +1 -1
  14. package/dist/components/dock/styles/shell.css +1 -1
  15. package/dist/dock.js +815 -519
  16. package/dist/easing.js +3 -3
  17. package/dist/glass-ui.js +6 -6
  18. package/dist/labeled-field.js +1 -1
  19. package/dist/{menu-DN29N6KR.js → menu-DaYAZiVW.js} +1 -1
  20. package/dist/menu.js +1 -1
  21. package/dist/{participation-Cs_UX_Dc.js → participation-B7UFdgXB.js} +11 -11
  22. package/dist/{popover-CJpvT2E6.js → popover-BdpoE4Ar.js} +1 -1
  23. package/dist/popover.js +1 -1
  24. package/dist/{select-5QMeUAU6.js → select-BiF0FCZf.js} +1 -1
  25. package/dist/select.js +1 -1
  26. package/dist/{slider-D1zkobtO.js → slider-5uoY-cLG.js} +1 -1
  27. package/dist/slider.js +1 -1
  28. package/dist/{tabs-C0PYq3Tb.js → tabs-C5sC0fBE.js} +1 -1
  29. package/dist/tabs.js +1 -1
  30. package/dist/{tooltip-D7j6TsE4.js → tooltip-CZVubnJf.js} +1 -1
  31. package/dist/tooltip.js +1 -1
  32. package/package.json +1 -1
package/dist/easing.js CHANGED
@@ -3,9 +3,9 @@ import { t } from "./DotRing-Blh4Mc3Q.js";
3
3
  import { n } from "./useReducedMotion-vCXA_vyM.js";
4
4
  import { t as r } from "./button-BOFTUPyU.js";
5
5
  import { t as i } from "./useClipboard-D36OTaeT.js";
6
- import { a, c as o, l as s, r as c, s as l } from "./select-5QMeUAU6.js";
7
- import { t as u } from "./slider-D1zkobtO.js";
8
- import { t as d } from "./tabs-C0PYq3Tb.js";
6
+ import { a, c as o, l as s, r as c, s as l } from "./select-BiF0FCZf.js";
7
+ import { t as u } from "./slider-5uoY-cLG.js";
8
+ import { t as d } from "./tabs-C5sC0fBE.js";
9
9
  import { Fragment as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createTextVNode as v, createVNode as y, defineComponent as b, mergeModels as x, normalizeClass as S, onScopeDispose as C, onUnmounted as ee, openBlock as w, ref as T, renderList as E, toDisplayString as D, unref as O, useId as k, useModel as te, useTemplateRef as A, watch as ne, withCtx as j } from "vue";
10
10
  import { Check as re, Copy as ie, Play as ae, RotateCcw as oe, Square as se } from "@lucide/vue";
11
11
  import { parseTimingFunction as M } from "@mkbabb/value.js/css";
package/dist/glass-ui.js CHANGED
@@ -9,7 +9,7 @@ import { t as ae } from "./button-BOFTUPyU.js";
9
9
  import { a as oe, i as se, n as ce, o as le, r as ue, t as de } from "./card-ByyqRBvK.js";
10
10
  import { n as fe, t as pe } from "./supportsCssTimeline-Di9gzleG.js";
11
11
  import { t as me } from "./checkbox-B1qn65se.js";
12
- import { a as he, c as ge, i as u, l as d, n as f, o as p, r as m, s as h, t as g } from "./command-CTQCaHVA.js";
12
+ import { a as he, c as ge, i as u, l as d, n as f, o as p, r as m, s as h, t as g } from "./command-CatrAsrl.js";
13
13
  import { n as _, t as v } from "./DialogContent-CwIBvou_.js";
14
14
  import { t as y } from "./useResizeObserver-CdUlm2QZ.js";
15
15
  import { t as b } from "./useTimer-C3yfti4C.js";
@@ -20,21 +20,21 @@ import { useBreakpoint as E, useIdleReady as D, useTokenColor as O, useTouchGate
20
20
  import { a as M, c as N, i as P, l as F, n as I, o as L, r as _e, s as ve, t as ye } from "./data-table-Cs93-uY7.js";
21
21
  import { a as be, i as xe, n as Se, o as Ce, r as we, t as Te } from "./dialog-BZoFG0j8.js";
22
22
  import { t as Ee } from "./DropdownMenuTrigger-CKRnhDSQ.js";
23
- import { a as De, c as Oe, d as ke, f as Ae, i as je, l as Me, n as Ne, o as Pe, p as Fe, r as Ie, s as Le, t as Re, u as ze } from "./menu-DN29N6KR.js";
23
+ import { a as De, c as Oe, d as ke, f as Ae, i as je, l as Me, n as Ne, o as Pe, p as Fe, r as Ie, s as Le, t as Re, u as ze } from "./menu-DaYAZiVW.js";
24
24
  import { t as Be } from "./label-CE03H1KL.js";
25
25
  import { n as Ve, r as He, t as Ue } from "./number-field-RP89046a.js";
26
- import { n as We, r as Ge, t as Ke } from "./popover-CJpvT2E6.js";
26
+ import { n as We, r as Ge, t as Ke } from "./popover-BdpoE4Ar.js";
27
27
  import { t as qe } from "./progress-eVa-mc7J.js";
28
28
  import { n as Je, t as Ye } from "./radio-group-B58Bz16F.js";
29
- import { a as Xe, c as Ze, i as Qe, l as $e, n as et, o as tt, r as nt, s as rt, t as it } from "./select-5QMeUAU6.js";
29
+ import { a as Xe, c as Ze, i as Qe, l as $e, n as et, o as tt, r as nt, s as rt, t as it } from "./select-BiF0FCZf.js";
30
30
  import { t as at } from "./separator-D4EZM10u.js";
31
31
  import { t as ot } from "./sheet-DmJxgAHc.js";
32
- import { t as st } from "./slider-D1zkobtO.js";
32
+ import { t as st } from "./slider-5uoY-cLG.js";
33
33
  import { n as ct, t as lt } from "./status-dot-W4LFiJps.js";
34
34
  import { t as ut } from "./switch-BYUZ6g9G.js";
35
35
  import { a as dt, c as ft, i as pt, n as mt, o as ht, r as gt, s as _t, t as vt } from "./toast-DVOwo6GB.js";
36
36
  import { n as yt, t as bt } from "./toggle-group-CC5b3o1R.js";
37
- import { i as xt, n as St, r as Ct, t as wt } from "./tooltip-D7j6TsE4.js";
37
+ import { i as xt, n as St, r as Ct, t as wt } from "./tooltip-CZVubnJf.js";
38
38
  import { a as Tt, i as Et, n as Dt, o as Ot, r as kt, s as At, t as jt } from "./configurator-CPxIo3q2.js";
39
39
  import { useInterval as Mt } from "./reactive.js";
40
40
  import { n as Nt, r as Pt, t as Ft } from "./vReveal-B5WYGofz.js";
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
2
  import { t } from "./label-CE03H1KL.js";
3
- import { t as n } from "./slider-D1zkobtO.js";
3
+ import { t as n } from "./slider-5uoY-cLG.js";
4
4
  import { t as r } from "./switch-BYUZ6g9G.js";
5
5
  import { t as i } from "./input-eLZ_AU7l.js";
6
6
  import { computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createSlots as u, createTextVNode as d, createVNode as f, defineComponent as p, mergeProps as m, openBlock as h, renderSlot as g, toDisplayString as _, unref as v, useId as y, useSlots as b, withCtx as x } from "vue";
@@ -2,7 +2,7 @@ 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
4
  import { t as r } from "./content-BhcJH1bI.js";
5
- import { t as i } from "./participation-Cs_UX_Dc.js";
5
+ import { t as i } from "./participation-B7UFdgXB.js";
6
6
  import { t as a } from "./shortcuts-DGGWNRNe.js";
7
7
  import { i as o, n as s, r as c } from "./DropdownMenuTrigger-CKRnhDSQ.js";
8
8
  import { computed as l, createBlock as u, createElementBlock as d, createElementVNode as f, createVNode as p, defineComponent as m, guardReactiveProps as h, mergeProps as g, normalizeProps as _, openBlock as v, renderSlot as y, resolveDynamicComponent as b, unref as x, useAttrs as S, withCtx as C } from "vue";
package/dist/menu.js CHANGED
@@ -1,3 +1,3 @@
1
1
  import { t as e } from "./DropdownMenuTrigger-CKRnhDSQ.js";
2
- import { a as t, c as n, d as r, f as i, i as a, l as o, n as s, o as c, p as l, r as u, s as d, t as f, u as p } from "./menu-DN29N6KR.js";
2
+ import { a as t, c as n, d as r, f as i, i as a, l as o, n as s, o as c, p as l, r as u, s as d, t as f, u as p } from "./menu-DaYAZiVW.js";
3
3
  export { l as DropdownMenu, n as DropdownMenuCheckboxItem, i as DropdownMenuContent, r as DropdownMenuGroup, o as DropdownMenuItem, a as DropdownMenuLabel, p as DropdownMenuRadioGroup, d as DropdownMenuRadioItem, t as DropdownMenuSeparator, c as DropdownMenuShortcut, u as DropdownMenuSub, f as DropdownMenuSubContent, s as DropdownMenuSubTrigger, e as DropdownMenuTrigger };
@@ -5,22 +5,22 @@ import { computed as n, defineComponent as r, inject as i, onScopeDispose as a,
5
5
  var u = {
6
6
  response: e("dock").response,
7
7
  dampingFraction: e("dock").dampingFraction
8
- }, d = "[data-dismissable-layer]:not([data-state=\"closed\"])", f = "glass-ui:dock-context", p = "glass-ui:dock-layer-group", m = 3600, h = t(f, "[glass-ui:dock] useDockContext() called outside <GlassDock>; use useOptionalDockContext() if the primitive may render outside a dock."), { KEY: g } = h;
9
- function _(e) {
10
- h.provide(e);
8
+ }, d = "[data-dismissable-layer]:not([data-state=\"closed\"])", f = "glass-ui:dock-context", p = "glass-ui:dock-layer-group", m = 3600, h = "data-glass-dock-seat", g = t(f, "[glass-ui:dock] useDockContext() called outside <GlassDock>; use useOptionalDockContext() if the primitive may render outside a dock."), { KEY: _ } = g;
9
+ function v(e) {
10
+ g.provide(e);
11
11
  }
12
- var v = h.use, y = h.useOptional, b = Symbol("glass-dock-face"), x = r({
12
+ var y = g.use, b = g.useOptional, x = Symbol("glass-dock-face"), S = r({
13
13
  name: "DockFace",
14
14
  setup(e, { slots: t }) {
15
- return o(b, !0), () => t.default?.();
15
+ return o(x, !0), () => t.default?.();
16
16
  }
17
17
  });
18
- function S() {
19
- return i(b, !1);
18
+ function C() {
19
+ return i(x, !1);
20
20
  }
21
21
  //#endregion
22
22
  //#region src/components/_shared/overlay/participation.ts
23
- function C(e, t) {
23
+ function w(e, t) {
24
24
  let n = s(!1);
25
25
  function r() {
26
26
  n.value || (n.value = !0, e()?.keepOpen(t));
@@ -34,8 +34,8 @@ function C(e, t) {
34
34
  release: i
35
35
  };
36
36
  }
37
- function w(e) {
38
- let t = y(), r = C(() => t, e?.kind), i = !!t && S(), a = e?.close;
37
+ function T(e) {
38
+ let t = b(), r = w(() => t, e?.kind), i = !!t && C(), a = e?.close;
39
39
  t && i && a && l(t.expanded, (e, t) => {
40
40
  t && !e && a();
41
41
  });
@@ -52,4 +52,4 @@ function w(e) {
52
52
  };
53
53
  }
54
54
  //#endregion
55
- export { _ as a, m as c, d, x as i, p as l, C as n, v as o, g as r, y as s, w as t, u };
55
+ export { v as a, m as c, u as d, d as f, S as i, p as l, w as n, y as o, _ as r, b as s, T as t, h as u };
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./content-BhcJH1bI.js";
2
2
  import { t } from "./createContext-BhkE9mLH.js";
3
- import { t as n } from "./participation-Cs_UX_Dc.js";
3
+ import { t as n } from "./participation-B7UFdgXB.js";
4
4
  import { t as r } from "./shortcuts-DGGWNRNe.js";
5
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
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";
package/dist/popover.js CHANGED
@@ -1,2 +1,2 @@
1
- import { n as e, r as t, t as n } from "./popover-CJpvT2E6.js";
1
+ import { n as e, r as t, t as n } from "./popover-BdpoE4Ar.js";
2
2
  export { t as Popover, n as PopoverContent, e as PopoverTrigger };
@@ -1,7 +1,7 @@
1
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 "./participation-Cs_UX_Dc.js";
4
+ import { t as r } from "./participation-B7UFdgXB.js";
5
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, injectSelectRootContext as L, useForwardProps as R } from "reka-ui";
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-5QMeUAU6.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-BiF0FCZf.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,5 +1,5 @@
1
1
  import { t as e } from "./useMotionAxis-D-rtIhca.js";
2
- import { n as t, s as n } from "./participation-Cs_UX_Dc.js";
2
+ import { n as t, s as n } from "./participation-B7UFdgXB.js";
3
3
  import { t as r } from "./useDragVelocity-C5BkKiNf.js";
4
4
  import { n as i } from "./valueDomain-DXRzfc8l.js";
5
5
  import { Fragment as a, Teleport as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createVNode as f, defineComponent as p, mergeProps as m, nextTick as ee, normalizeClass as te, normalizeStyle as h, onBeforeUnmount as g, onMounted as _, openBlock as v, ref as y, renderList as b, unref as x, useAttrs as ne, useTemplateRef as S, watch as C, withCtx as w } from "vue";
package/dist/slider.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as e } from "./slider-D1zkobtO.js";
1
+ import { t as e } from "./slider-5uoY-cLG.js";
2
2
  export { e as Slider };
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./class-names-FlXcvRRT.js";
2
2
  import { n as t, r as n } from "./writeVelocityWeight-DoGOCW3e.js";
3
3
  import { t as r } from "./useMotionAxis-D-rtIhca.js";
4
- import { a as i, c as a, l as o, r as s, s as c } from "./select-5QMeUAU6.js";
4
+ import { a as i, c as a, l as o, r as s, s as c } from "./select-BiF0FCZf.js";
5
5
  import { n as l, t as u } from "./useSelectionGroup-zsEwitF6.js";
6
6
  import { t as d } from "./useDragMorph-B363RUbF.js";
7
7
  import { Fragment as f, computed as p, createBlock as m, createElementBlock as h, createElementVNode as g, createTextVNode as _, createVNode as v, defineComponent as y, mergeModels as b, mergeProps as x, nextTick as S, normalizeClass as C, normalizeStyle as w, onBeforeUnmount as T, onBeforeUpdate as E, onMounted as D, openBlock as O, ref as k, renderList as A, renderSlot as j, toDisplayString as M, unref as N, useModel as P, watch as F, withCtx as I } from "vue";
package/dist/tabs.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as e } from "./tabs-C0PYq3Tb.js";
1
+ import { t as e } from "./tabs-C5sC0fBE.js";
2
2
  export { e as SegmentedTabs };
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./content-BhcJH1bI.js";
2
- import { t } from "./participation-Cs_UX_Dc.js";
2
+ import { t } from "./participation-B7UFdgXB.js";
3
3
  import { computed as n, createBlock as r, createVNode as i, defineComponent as a, mergeProps as o, openBlock as s, renderSlot as c, unref as l, useAttrs as u, withCtx as d } from "vue";
4
4
  import { TooltipContent as f, TooltipPortal as p, TooltipProvider as m, TooltipRoot as h, TooltipTrigger as g } from "reka-ui";
5
5
  //#endregion
package/dist/tooltip.js CHANGED
@@ -1,2 +1,2 @@
1
- import { i as e, n as t, r as n, t as r } from "./tooltip-D7j6TsE4.js";
1
+ import { i as e, n as t, r as n, t as r } from "./tooltip-CZVubnJf.js";
2
2
  export { e as Tooltip, n as TooltipContent, r as TooltipProvider, t as TooltipTrigger };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mkbabb/glass-ui",
3
- "version": "10.1.1",
3
+ "version": "10.1.3",
4
4
  "description": "Glassmorphic design system — Vue 3.5 components, reka-ui primitives, Tailwind CSS v4 tokens",
5
5
  "license": "MIT",
6
6
  "repository": {