@mkbabb/glass-ui 3.1.0 → 3.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.
@@ -1,2 +1,2 @@
1
- import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./useConfiguratorState-BR5vUDL8.js";
1
+ import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./useConfiguratorState-CtRBE0m_.js";
2
2
  export { e as CONFIGURATOR_DENSITY_KEY, t as Configurator, i as ConfiguratorLayer, n as ConfiguratorRow, r as provideConfiguratorDensity, o as useConfiguratorState, a as useOptionalConfiguratorDensity };
package/dist/dock.js CHANGED
@@ -225,32 +225,32 @@ var te = [
225
225
  containerName: {}
226
226
  },
227
227
  setup(e, { expose: t }) {
228
- let n = 0, i = e, a = l(() => {
229
- if (i.containerName) return {
228
+ let n = e, i = l(() => {
229
+ if (n.containerName) return {
230
230
  "container-type": "inline-size",
231
- "container-name": i.containerName,
231
+ "container-name": n.containerName,
232
232
  overflow: "visible"
233
233
  };
234
- }), s = I("dockEl"), c = I("layersEl"), u = l(() => i.variant), d = l(() => i.shape), m = l(() => i.variant === "rail" || i.variant === "instrument-strip" ? "vertical" : i.orientation), h = l(() => i.density), g = l(() => i.alwaysExpanded || m.value === "vertical"), _ = l(() => i.fitContent || i.variant === "rail" || i.variant === "instrument-strip"), v = D(!1), y = o(i.collapseDelay), w = `glass-dock-${++n}`, E = null, { expanded: O, isPinned: A, isHeld: j, onMouseEnter: N, onMouseLeave: P, onFocusIn: F, onFocusOut: R, onClickCollapsed: z, keepOpen: B, release: V, expand: H, collapse: U } = ee({
235
- collapseDelay: i.collapseDelay,
236
- rootEl: s,
237
- alwaysExpanded: g,
238
- isTransitioning: v,
239
- dockId: w
234
+ }), a = I("dockEl"), s = I("layersEl"), c = l(() => n.variant), u = l(() => n.shape), d = l(() => n.variant === "rail" || n.variant === "instrument-strip" ? "vertical" : n.orientation), m = l(() => n.density), h = l(() => n.alwaysExpanded || d.value === "vertical"), g = l(() => n.fitContent || n.variant === "rail" || n.variant === "instrument-strip"), _ = D(!1), v = o(n.collapseDelay), y = `glass-dock-${P()}`, w = null, { expanded: E, isPinned: O, isHeld: A, onMouseEnter: j, onMouseLeave: N, onFocusIn: F, onFocusOut: R, onClickCollapsed: z, keepOpen: B, release: V, expand: H, collapse: U } = ee({
235
+ collapseDelay: n.collapseDelay,
236
+ rootEl: a,
237
+ alwaysExpanded: h,
238
+ isTransitioning: _,
239
+ dockId: y
240
240
  });
241
241
  r({
242
- id: w,
243
- orientation: m,
242
+ id: y,
243
+ orientation: d,
244
244
  keepOpen: B,
245
245
  release: V,
246
- held: j
246
+ held: A
247
247
  });
248
- let W = l(() => g.value || O.value), { onTransitionEnd: K } = G({
249
- containerEl: c,
248
+ let W = l(() => h.value || E.value), { onTransitionEnd: K } = G({
249
+ containerEl: s,
250
250
  activeLayer: l(() => W.value ? "full" : "summary"),
251
251
  axis: l(() => "horizontal")
252
252
  }), q = typeof document < "u" && "startViewTransition" in document, J = l(() => q ? {
253
- "view-transition-name": w.replace(/[^a-zA-Z0-9_-]/g, "-"),
253
+ "view-transition-name": y.replace(/[^a-zA-Z0-9_-]/g, "-"),
254
254
  "view-transition-class": "gl-dock-layer"
255
255
  } : void 0);
256
256
  function Y(e) {
@@ -262,72 +262,72 @@ var te = [
262
262
  return Math.max(0, ...n.map((e, t) => e + (r[t] ?? r[0] ?? 0)));
263
263
  }
264
264
  function Z() {
265
- E &&= (clearTimeout(E), null);
265
+ w &&= (clearTimeout(w), null);
266
266
  }
267
267
  function ie() {
268
- let e = s.value;
269
- e && (Z(), v.value = !0, E = setTimeout(() => {
270
- v.value = !1, E = null;
268
+ let e = a.value;
269
+ e && (Z(), _.value = !0, w = setTimeout(() => {
270
+ _.value = !1, w = null;
271
271
  }, X(e) + 50));
272
272
  }
273
273
  function Q(e) {
274
- e.target === s.value && (Z(), v.value = !1);
274
+ e.target === a.value && (Z(), _.value = !1);
275
275
  }
276
276
  C(() => {
277
- (i.alwaysExpanded || !i.startCollapsed) && H();
277
+ (n.alwaysExpanded || !n.startCollapsed) && H();
278
278
  });
279
279
  function $() {
280
- return m.value === "horizontal" && !g.value;
280
+ return d.value === "horizontal" && !h.value;
281
281
  }
282
282
  function ae(e) {
283
283
  if (!$() || W.value) return;
284
- let t = s.value, n = e.touches[0];
285
- !t || !n || y.handleTouchStart(t, n.clientY) || (e.preventDefault(), e.stopPropagation());
284
+ let t = a.value, n = e.touches[0];
285
+ !t || !n || v.handleTouchStart(t, n.clientY) || (e.preventDefault(), e.stopPropagation());
286
286
  }
287
287
  function oe(e) {
288
- $() && y.handleScrollCheck(e);
288
+ $() && v.handleScrollCheck(e);
289
289
  }
290
290
  function se(e) {
291
291
  if (!$()) return;
292
- let t = y.isActive.value;
293
- y.handleTouchEnd(), !t && y.isActive.value && !W.value && (e.preventDefault(), e.stopPropagation(), H());
292
+ let t = v.isActive.value;
293
+ v.handleTouchEnd(), !t && v.isActive.value && !W.value && (e.preventDefault(), e.stopPropagation(), H());
294
294
  }
295
- return L(y.isActive, (e) => {
296
- !e && O.value && !A.value && !g.value && U();
295
+ return L(v.isActive, (e) => {
296
+ !e && E.value && !O.value && !h.value && U();
297
297
  }), L(W, (e) => {
298
- ie(), e || y.deactivate();
298
+ ie(), e || v.deactivate();
299
299
  }), S(Z), t({
300
- expanded: O,
301
- isPinned: A,
302
- isHeld: j,
303
- isTransitioning: v,
300
+ expanded: E,
301
+ isPinned: O,
302
+ isHeld: A,
303
+ isTransitioning: _,
304
304
  expand: H,
305
305
  collapse: U,
306
306
  keepOpen: B,
307
307
  release: V
308
308
  }), (t, n) => (T(), f("div", {
309
309
  ref_key: "dockEl",
310
- ref: s,
310
+ ref: a,
311
311
  class: b(["glass-dock", [
312
- m.value,
313
- `variant-${u.value}`,
314
- `shape-${d.value}`,
312
+ d.value,
313
+ `variant-${c.value}`,
314
+ `shape-${u.value}`,
315
315
  {
316
316
  expanded: W.value,
317
317
  collapsed: !W.value,
318
- pinned: M(A),
319
- "fit-content": _.value,
320
- "always-expanded": g.value,
318
+ pinned: M(O),
319
+ "fit-content": g.value,
320
+ "always-expanded": h.value,
321
321
  "dock-wrap": e.wrap
322
322
  },
323
323
  e.position === "fixed" ? "fixed bottom-[var(--dock-pos)] left-1/2 -translate-x-1/2" : e.position === "sticky" ? "dock-sticky" : "dock-inline"
324
324
  ]]),
325
- "data-density": h.value,
326
- "data-held": M(j) || void 0,
325
+ "data-density": m.value,
326
+ "data-held": M(A) || void 0,
327
327
  "data-container-name": e.containerName || void 0,
328
- style: x(a.value),
329
- onMouseenter: n[2] ||= (...e) => M(N) && M(N)(...e),
330
- onMouseleave: n[3] ||= (e) => M(P)(e),
328
+ style: x(i.value),
329
+ onMouseenter: n[2] ||= (...e) => M(j) && M(j)(...e),
330
+ onMouseleave: n[3] ||= (e) => M(N)(e),
331
331
  onFocusin: n[4] ||= (...e) => M(F) && M(F)(...e),
332
332
  onFocusout: n[5] ||= (...e) => M(R) && M(R)(...e),
333
333
  onTouchstart: ae,
@@ -335,19 +335,19 @@ var te = [
335
335
  onTouchend: se,
336
336
  onTransitionend: Q,
337
337
  onTransitioncancel: Q
338
- }, [m.value === "horizontal" ? (T(), f("div", {
338
+ }, [d.value === "horizontal" ? (T(), f("div", {
339
339
  key: 0,
340
340
  ref_key: "layersEl",
341
- ref: c,
341
+ ref: s,
342
342
  class: "dock-layers",
343
343
  style: x(J.value),
344
344
  onTransitionend: n[1] ||= (...e) => M(K) && M(K)(...e)
345
345
  }, [p("div", {
346
346
  class: b(["dock-layer dock-layer--full", { "layer-active": W.value }]),
347
- inert: !M(O) || void 0
347
+ inert: !M(E) || void 0
348
348
  }, [k(t.$slots, "default")], 10, ne), p("div", {
349
349
  class: b(["dock-layer dock-layer--summary", { "layer-active": !W.value }]),
350
- inert: M(O) || void 0,
350
+ inert: M(E) || void 0,
351
351
  onClick: n[0] ||= (...e) => M(z) && M(z)(...e)
352
352
  }, [k(t.$slots, "collapsed")], 10, re)], 36)) : k(t.$slots, "default", { key: 1 })], 46, te));
353
353
  }
package/dist/glass-ui.js CHANGED
@@ -4,7 +4,7 @@ import { t as n } from "./chevron-down-DILQA1t6.js";
4
4
  import { t as r } from "./Notification-OqIpADml.js";
5
5
  import { a as i, c as a, i as o, l as s, n as c, o as l, r as u, s as d, t as f, u as p } from "./ContextMenuSubContent-gAFxJ-qi.js";
6
6
  import { a as ee, i as te, n as ne, r as re, t as ie } from "./NumberFieldContent-DTH9gb_N.js";
7
- import { a as ae, i as oe, n as se, o as ce, r as le, s as ue, t as de } from "./useConfiguratorState-BR5vUDL8.js";
7
+ import { a as ae, i as oe, n as se, o as ce, r as le, s as ue, t as de } from "./useConfiguratorState-CtRBE0m_.js";
8
8
  import { t as m } from "./x-q7pJa83X.js";
9
9
  import { n as h, t as fe } from "./badge-x46my_Fo.js";
10
10
  import { n as g, t as pe } from "./button-C0aHmBbt.js";
@@ -91,6 +91,7 @@ var M = { class: "configurator-stage relative min-h-0 min-w-0 overflow-hidden" }
91
91
  }, G = [
92
92
  "id",
93
93
  "aria-hidden",
94
+ "inert",
94
95
  "data-state"
95
96
  ], K = { class: "min-h-0 overflow-hidden" }, q = /* @__PURE__ */ f({
96
97
  __name: "ConfiguratorLayer",
@@ -134,11 +135,11 @@ var M = { class: "configurator-stage relative min-h-0 min-w-0 overflow-hidden" }
134
135
  }
135
136
  let v = o(() => u.value ? "open" : "closed");
136
137
  return (r, a) => (g(), c("div", {
137
- class: m(w(e)("configurator-layer rounded-panel border-b border-border/40 last:border-b-0", i.class)),
138
+ class: m(w(e)("configurator-layer border-b border-border/40 last:border-b-0", i.class)),
138
139
  "data-state": v.value
139
140
  }, [l("button", {
140
141
  type: "button",
141
- class: m(w(e)("configurator-layer-trigger", "rounded-panel", "group flex w-full items-center justify-between gap-2 px-3 py-2", "text-left transition-colors hover:bg-foreground/5 focus-ring")),
142
+ class: m(w(e)("configurator-layer-trigger", "group flex w-full items-center justify-between gap-2 px-3 py-2", "text-left transition-colors hover:bg-foreground/5 focus-ring")),
142
143
  "aria-expanded": u.value,
143
144
  "aria-controls": p.value,
144
145
  "data-state": v.value,
@@ -150,6 +151,7 @@ var M = { class: "configurator-stage relative min-h-0 min-w-0 overflow-hidden" }
150
151
  id: p.value,
151
152
  role: "region",
152
153
  "aria-hidden": !u.value,
154
+ inert: !u.value,
153
155
  "data-state": v.value,
154
156
  class: "configurator-layer-region grid transition-[grid-template-rows] duration-200 ease-out motion-reduce:transition-none",
155
157
  style: h({ gridTemplateRows: u.value ? "1fr" : "0fr" })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mkbabb/glass-ui",
3
- "version": "3.1.0",
3
+ "version": "3.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
  "type": "module",
@@ -519,7 +519,8 @@
519
519
  "proof:theme": "node scripts/proof-theme-style.mjs",
520
520
  "proof:resolution": "node scripts/proof-resolution-contract.mjs",
521
521
  "proof:phantom-classes": "node scripts/proof-phantom-classes.mjs",
522
- "proof:all": "npm run proof:package && npm run proof:theme && npm run proof:consumers:static && npm run proof:consumers:build && npm run proof:runtime",
522
+ "proof:vt-names": "node scripts/proof-vt-names.mjs",
523
+ "proof:all": "npm run proof:package && npm run proof:theme && npm run proof:consumers:static && npm run proof:consumers:build && npm run proof:runtime && npm run proof:vt-names",
523
524
  "profile:bundle": "node scripts/profile-bundle.mjs",
524
525
  "profile:budget": "node scripts/profile-bundle.mjs --enforce",
525
526
  "profile:aurora": "node scripts/profile-aurora.mjs",