@mkbabb/glass-ui 10.0.1 → 10.1.1

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 (44) hide show
  1. package/MIGRATION.md +25 -0
  2. package/dist/aurora.js +29 -29
  3. package/dist/{command-C-5xSEJ2.js → command-CTQCaHVA.js} +1 -1
  4. package/dist/command.js +1 -1
  5. package/dist/components/_shared/overlay/participation.d.ts +13 -1
  6. package/dist/components/configurator/Configurator.vue.d.ts +20 -0
  7. package/dist/components/configurator/ConfiguratorLayer.vue.d.ts +12 -2
  8. package/dist/components/configurator/index.d.ts +1 -1
  9. package/dist/components/configurator/styles.css +1 -1
  10. package/dist/components/dock/GlassDock.vue.d.ts +5 -5
  11. package/dist/components/dock/composables/dockContext.d.ts +16 -2
  12. package/dist/components/sheet/styles.css +1 -1
  13. package/dist/components/skeleton/Skeleton.vue.d.ts +6 -0
  14. package/dist/{configurator-DiwVN573.js → configurator-CPxIo3q2.js} +85 -71
  15. package/dist/configurator.js +1 -1
  16. package/dist/content-BhcJH1bI.js +22 -0
  17. package/dist/data-table-Cs93-uY7.js +511 -0
  18. package/dist/data-table.js +1 -1
  19. package/dist/dock.js +417 -409
  20. package/dist/easing.js +3 -3
  21. package/dist/glass-ui.css +1 -1
  22. package/dist/glass-ui.js +9 -9
  23. package/dist/index.d.ts +1 -1
  24. package/dist/labeled-field.js +1 -1
  25. package/dist/{menu-BnmCOa3y.js → menu-DN29N6KR.js} +6 -3
  26. package/dist/menu.js +1 -1
  27. package/dist/motion-core.js +11 -11
  28. package/dist/participation-Cs_UX_Dc.js +55 -0
  29. package/dist/{popover-DA87hFBx.js → popover-CJpvT2E6.js} +9 -4
  30. package/dist/popover.js +1 -1
  31. package/dist/{select-fy3vtArm.js → select-5QMeUAU6.js} +26 -24
  32. package/dist/select.js +1 -1
  33. package/dist/{sheet-BQJyER59.js → sheet-DmJxgAHc.js} +1 -1
  34. package/dist/sheet.js +1 -1
  35. package/dist/{slider-5ChjjWSR.js → slider-D1zkobtO.js} +1 -1
  36. package/dist/slider.js +1 -1
  37. package/dist/{tabs-rdRXKXxd.js → tabs-C0PYq3Tb.js} +1 -1
  38. package/dist/tabs.js +1 -1
  39. package/dist/{tooltip-DhTHhtJN.js → tooltip-D7j6TsE4.js} +3 -3
  40. package/dist/tooltip.js +1 -1
  41. package/package.json +1 -1
  42. package/dist/content-So3j6SOe.js +0 -18
  43. package/dist/data-table-Ba_uTfPc.js +0 -493
  44. package/dist/participation-Di4UHbzk.js +0 -42
@@ -1,14 +1,14 @@
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-Di4UHbzk.js";
4
+ import { t as r } from "./participation-Cs_UX_Dc.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
- 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
- import { ChevronDown as R, ChevronUp as z } from "@lucide/vue";
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";
8
+ import { ChevronDown as z, ChevronUp as B } from "@lucide/vue";
9
9
  //#endregion
10
10
  //#region src/components/select/Select.vue
11
- var B = /* @__PURE__ */ f({
11
+ var V = /* @__PURE__ */ f({
12
12
  name: "Select",
13
13
  inheritAttrs: !1,
14
14
  __name: "Select",
@@ -26,7 +26,7 @@ var B = /* @__PURE__ */ f({
26
26
  },
27
27
  emits: ["update:modelValue", "update:open"],
28
28
  setup(e, { emit: t }) {
29
- let r = e, i = t, a = L(r);
29
+ let r = e, i = t, a = R(r);
30
30
  function s(e) {
31
31
  if (!n(e)) throw TypeError("[glass-ui] Select received a non-scalar value.");
32
32
  i("update:modelValue", e);
@@ -39,7 +39,7 @@ var B = /* @__PURE__ */ f({
39
39
  _: 3
40
40
  }, 16));
41
41
  }
42
- }), V = /* @__PURE__ */ f({
42
+ }), H = /* @__PURE__ */ f({
43
43
  name: "SelectValue",
44
44
  inheritAttrs: !1,
45
45
  __name: "SelectValue",
@@ -64,7 +64,7 @@ var B = /* @__PURE__ */ f({
64
64
  key: "0"
65
65
  } : void 0]), 1040, ["placeholder", "class"]));
66
66
  }
67
- }), H = /* @__PURE__ */ f({
67
+ }), U = /* @__PURE__ */ f({
68
68
  name: "SelectTrigger",
69
69
  inheritAttrs: !1,
70
70
  __name: "SelectTrigger",
@@ -88,13 +88,13 @@ var B = /* @__PURE__ */ f({
88
88
  class: y(e)("control-surface glass-control-edge glass-capsule-hover h-(--control-h-md)", "tap-squish focus-ring flex w-full cursor-pointer items-center justify-between rounded-pill px-3 py-2 text-dropdown placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-disabled [&>span]:line-clamp-1 transition-control aria-invalid:border-(--destructive) user-invalid:border-(--destructive) focus-visible:aria-invalid:shadow-(--invalid-ring) focus-visible:user-invalid:shadow-(--invalid-ring)", r.class)
89
89
  }), {
90
90
  default: x(() => [v(t.$slots, "default"), d(y(w), { "as-child": "" }, {
91
- default: x(() => [d(y(R), { class: "transition-disclosure in-data-[state=open]:rotate-180 h-4 w-4 shrink-0 opacity-(--select-chevron-opacity)" })]),
91
+ default: x(() => [d(y(z), { class: "transition-disclosure in-data-[state=open]:rotate-180 h-4 w-4 shrink-0 opacity-(--select-chevron-opacity)" })]),
92
92
  _: 1
93
93
  })]),
94
94
  _: 3
95
95
  }, 16, ["disabled", "class"]));
96
96
  }
97
- }), U = /* @__PURE__ */ f({
97
+ }), W = /* @__PURE__ */ f({
98
98
  name: "SelectScrollButton",
99
99
  inheritAttrs: !1,
100
100
  __name: "SelectScrollButton",
@@ -111,14 +111,14 @@ var B = /* @__PURE__ */ f({
111
111
  setup(n) {
112
112
  let r = n, i = b(), s = a(() => t(i)), c = a(() => e("flex min-h-11 cursor-default items-center justify-center", r.class));
113
113
  return (e, t) => r.direction === "up" ? (_(), o(y(M), m({ key: 0 }, s.value, { class: c.value }), {
114
- default: x(() => [v(e.$slots, "default", {}, () => [d(y(z), { class: "h-4 w-4" })])]),
114
+ default: x(() => [v(e.$slots, "default", {}, () => [d(y(B), { class: "h-4 w-4" })])]),
115
115
  _: 3
116
116
  }, 16, ["class"])) : (_(), o(y(j), m({ key: 1 }, s.value, { class: c.value }), {
117
- default: x(() => [v(e.$slots, "default", {}, () => [d(y(R), { class: "h-4 w-4" })])]),
117
+ default: x(() => [v(e.$slots, "default", {}, () => [d(y(z), { class: "h-4 w-4" })])]),
118
118
  _: 3
119
119
  }, 16, ["class"]));
120
120
  }
121
- }), W = /* @__PURE__ */ f({
121
+ }), G = /* @__PURE__ */ f({
122
122
  name: "SelectContent",
123
123
  inheritAttrs: !1,
124
124
  __name: "SelectContent",
@@ -150,11 +150,13 @@ var B = /* @__PURE__ */ f({
150
150
  alignOffset: i.alignOffset,
151
151
  avoidCollisions: !0,
152
152
  collisionPadding: 16
153
- })), u = r();
153
+ })), u = L(null), f = r({ close: () => {
154
+ u?.open.value && u.onOpenChange(!1);
155
+ } });
154
156
  return (t, n) => (_(), o(y(k), null, {
155
157
  default: x(() => [d(y(S), m({
156
158
  ...l.value,
157
- ...y(u).portalAttrs.value
159
+ ...y(f).portalAttrs.value
158
160
  }, {
159
161
  "data-reveal": "menu",
160
162
  "data-slot": "select-content",
@@ -164,7 +166,7 @@ var B = /* @__PURE__ */ f({
164
166
  onPointerDownOutside: n[2] ||= (e) => s("pointerDownOutside", e)
165
167
  }), {
166
168
  default: x(() => [
167
- d(U, { direction: "up" }),
169
+ d(W, { direction: "up" }),
168
170
  d(y(I), {
169
171
  "data-slot": "select-viewport",
170
172
  "data-fade-start": "",
@@ -174,14 +176,14 @@ var B = /* @__PURE__ */ f({
174
176
  default: x(() => [v(t.$slots, "default")]),
175
177
  _: 3
176
178
  }, 8, ["class"]),
177
- d(U, { direction: "down" })
179
+ d(W, { direction: "down" })
178
180
  ]),
179
181
  _: 3
180
182
  }, 16, ["class"])]),
181
183
  _: 3
182
184
  }));
183
185
  }
184
- }), G = /* @__PURE__ */ f({
186
+ }), K = /* @__PURE__ */ f({
185
187
  name: "SelectGroup",
186
188
  inheritAttrs: !1,
187
189
  __name: "SelectGroup",
@@ -199,11 +201,11 @@ var B = /* @__PURE__ */ f({
199
201
  _: 3
200
202
  }, 16, ["class"]));
201
203
  }
202
- }), K = {
204
+ }), q = {
203
205
  key: 0,
204
206
  "aria-hidden": "true",
205
207
  class: "absolute start-2 flex h-3.5 w-3.5 items-center justify-center"
206
- }, q = { class: "flex flex-col gap-0.5 min-w-0" }, J = /* @__PURE__ */ f({
208
+ }, J = { class: "flex flex-col gap-0.5 min-w-0" }, Y = /* @__PURE__ */ f({
207
209
  name: "SelectItem",
208
210
  inheritAttrs: !1,
209
211
  __name: "SelectItem",
@@ -234,10 +236,10 @@ var B = /* @__PURE__ */ f({
234
236
  class: y(e)(y(i)(S.value), u.class),
235
237
  onSelect: g
236
238
  }), {
237
- default: x(() => [S.value === "none" ? s("", !0) : (_(), c("span", K, [d(y(E), null, {
239
+ default: x(() => [S.value === "none" ? s("", !0) : (_(), c("span", q, [d(y(E), null, {
238
240
  default: x(() => [...n[0] ||= [l("span", { class: "inline-block w-2 h-2 rounded-pill bg-current" }, null, -1)]]),
239
241
  _: 1
240
- })])), l("div", q, [d(y(D), null, {
242
+ })])), l("div", J, [d(y(D), null, {
241
243
  default: x(() => [v(t.$slots, "default")]),
242
244
  _: 3
243
245
  }), v(t.$slots, "description")])]),
@@ -249,7 +251,7 @@ var B = /* @__PURE__ */ f({
249
251
  "class"
250
252
  ]));
251
253
  }
252
- }), Y = /* @__PURE__ */ f({
254
+ }), X = /* @__PURE__ */ f({
253
255
  name: "SelectLabel",
254
256
  inheritAttrs: !1,
255
257
  __name: "SelectLabel",
@@ -270,7 +272,7 @@ var B = /* @__PURE__ */ f({
270
272
  _: 3
271
273
  }, 16, ["class"]));
272
274
  }
273
- }), X = /* @__PURE__ */ f({
275
+ }), Z = /* @__PURE__ */ f({
274
276
  name: "SelectSeparator",
275
277
  inheritAttrs: !1,
276
278
  __name: "SelectSeparator",
@@ -287,4 +289,4 @@ var B = /* @__PURE__ */ f({
287
289
  }
288
290
  });
289
291
  //#endregion
290
- export { W as a, V as c, G as i, B as l, Y as n, U as o, J as r, H as s, X as t };
292
+ export { G as a, H as c, K as i, V as l, X as n, W as o, Y as r, U as s, Z as t };
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-fy3vtArm.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-5QMeUAU6.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 };
@@ -199,7 +199,7 @@ var K = [
199
199
  bottom: "border-t",
200
200
  left: "border-r",
201
201
  right: "border-l"
202
- }, R = d(() => e(L[_.side], r("floating"), _.class)), z = A();
202
+ }, R = d(() => e("fixed", L[_.side], r("floating"), _.class)), z = A();
203
203
  u(() => z.open.value && z.modal.value);
204
204
  let B = i({
205
205
  open: d(() => !I.value && z.open.value),
package/dist/sheet.js CHANGED
@@ -1,3 +1,3 @@
1
1
  import { n as e, r as t, t as n } from "./motion-BvV1_24p.js";
2
- import { a as r, c as i, i as a, n as o, o as s, r as c, s as l, t as u } from "./sheet-BQJyER59.js";
2
+ import { a as r, c as i, i as a, n as o, o as s, r as c, s as l, t as u } from "./sheet-DmJxgAHc.js";
3
3
  export { u as SheetContent, c as nearestRung, a as projectRest, r as resolveRelease, n as scrimDetentOpacity, e as scrimOpacity, s as settleHorizon, t as sheetSlideTransform, l as springOmega, i as throwDistance, o as useSheetDetents };
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./useMotionAxis-D-rtIhca.js";
2
- import { n as t, o as n } from "./participation-Di4UHbzk.js";
2
+ import { n as t, s as n } from "./participation-Cs_UX_Dc.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-5ChjjWSR.js";
1
+ import { t as e } from "./slider-D1zkobtO.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-fy3vtArm.js";
4
+ import { a as i, c as a, l as o, r as s, s as c } from "./select-5QMeUAU6.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-rdRXKXxd.js";
1
+ import { t as e } from "./tabs-C0PYq3Tb.js";
2
2
  export { e as SegmentedTabs };
@@ -1,5 +1,5 @@
1
- import { t as e } from "./content-So3j6SOe.js";
2
- import { t } from "./participation-Di4UHbzk.js";
1
+ import { t as e } from "./content-BhcJH1bI.js";
2
+ import { t } from "./participation-Cs_UX_Dc.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
@@ -69,7 +69,7 @@ var _ = /* @__PURE__ */ a({
69
69
  role: "hint",
70
70
  slot: "tooltip-content",
71
71
  dock: b.portalAttrs.value,
72
- class: ["z-tooltip", h.class]
72
+ class: h.class
73
73
  }));
74
74
  return (e, t) => (s(), r(l(p), null, {
75
75
  default: d(() => [i(l(f), o({
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-DhTHhtJN.js";
1
+ import { i as e, n as t, r as n, t as r } from "./tooltip-D7j6TsE4.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.0.1",
3
+ "version": "10.1.1",
4
4
  "description": "Glassmorphic design system — Vue 3.5 components, reka-ui primitives, Tailwind CSS v4 tokens",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -1,18 +0,0 @@
1
- import { t as e } from "./class-names-FlXcvRRT.js";
2
- import { t } from "./resolve-DdrNvBby.js";
3
- //#region src/components/_shared/overlay/content.ts
4
- var n = {
5
- hint: "tooltip",
6
- menu: "menu",
7
- panel: "overlay"
8
- };
9
- function r(r) {
10
- return {
11
- class: e(t("floating"), "glass-overlay-plate glass-reveal", r.class),
12
- "data-slot": r.slot,
13
- "data-reveal": n[r.role],
14
- ...r.dock
15
- };
16
- }
17
- //#endregion
18
- export { r as t };