@mkbabb/glass-ui 3.5.1 → 3.6.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.
- package/dist/{DataTable-DyKc_26a.js → DataTable-BGVXx0Ww.js} +1 -1
- package/dist/{NumberFieldContent-jO-zGOHf.js → NumberFieldContent-Bhhmk95p.js} +1 -1
- package/dist/animated-digit.js +1 -1
- package/dist/api/index.d.ts +2 -1
- package/dist/api.js +1 -1
- package/dist/aurora.js +259 -81
- package/dist/{button-i8Ek5vvg.js → button-BcMzVrqs.js} +2 -2
- package/dist/button.js +1 -1
- package/dist/carousel.js +1 -1
- package/dist/color.js +1 -1
- package/dist/components/custom/aurora/composables/color.d.ts +35 -2
- package/dist/components/custom/aurora/composables/glSetup.d.ts +1 -1
- package/dist/components/custom/aurora/composables/uniformBridge.d.ts +6 -0
- package/dist/components/custom/aurora/constants/presets.d.ts +9 -0
- package/dist/components/custom/aurora/constants/shaders/composition.glsl.d.ts +1 -1
- package/dist/components/custom/aurora/index.d.ts +3 -2
- package/dist/components/custom/constellation/Constellation.vue.d.ts +45 -0
- package/dist/components/custom/constellation/constellationField.d.ts +85 -0
- package/dist/components/custom/constellation/index.d.ts +3 -0
- package/dist/components/custom/dock/GlassDock.vue.d.ts +34 -3
- package/dist/composables/glass/canvas2d/index.d.ts +2 -0
- package/dist/composables/glass/canvas2d/useCanvas2D.d.ts +48 -0
- package/dist/composables/glass/index.d.ts +2 -0
- package/dist/confirm-dialog.js +1 -1
- package/dist/constellation.d.ts +1 -0
- package/dist/constellation.js +182 -0
- package/dist/controls.js +1 -1
- package/dist/dark.js +1 -1
- package/dist/data-table.js +1 -1
- package/dist/dock.js +121 -102
- package/dist/expandable-container.js +1 -1
- package/dist/forms.js +1 -1
- package/dist/glass-ui.css +1 -1
- package/dist/glass-ui.js +79 -78
- package/dist/goo-blob.js +3 -3
- package/dist/icon-tooltip.js +1 -1
- package/dist/keyboard.js +1 -1
- package/dist/labeled-field.js +2 -2
- package/dist/motion-core.js +3 -3
- package/dist/motion.js +2 -2
- package/dist/number-field.js +1 -1
- package/dist/responsive-tabs.js +1 -1
- package/dist/search.js +1 -1
- package/dist/sortable-list.js +1 -1
- package/dist/styles/dock.css +185 -1
- package/dist/styles/glass-refract.css +60 -0
- package/dist/styles/glass-specular-track.css +43 -130
- package/dist/styles/glass.css +243 -27
- package/dist/styles/index.css +1 -0
- package/dist/styles/theme.css +6 -0
- package/dist/styles/tokens.css +33 -0
- package/dist/tabs.js +2 -2
- package/dist/{useAnimatedNumber-BF6r64lA.js → useAnimatedNumber-DfVgP4te.js} +1 -1
- package/dist/useCanvas2D-BeNJqqIS.js +95 -0
- package/dist/watercolor-dot.js +1 -1
- package/package.json +21 -1
- package/src/styles/dock.css +185 -1
- package/src/styles/glass-refract.css +60 -0
- package/src/styles/glass-specular-track.css +43 -130
- package/src/styles/glass.css +243 -27
- package/src/styles/index.css +1 -0
- package/src/styles/theme.css +6 -0
- package/src/styles/tokens.css +33 -0
- /package/dist/{IconTooltip-BTyYn4mr.js → IconTooltip-DZlCkU-0.js} +0 -0
- /package/dist/{Input-CU9CNKmo.js → Input-CRJ2owjN.js} +0 -0
- /package/dist/{UnderlineTabs-Cq_AD03t.js → UnderlineTabs-CuIK16JI.js} +0 -0
- /package/dist/{color-rkK4RMx2.js → color-DS-iLRVM.js} +0 -0
- /package/dist/{compile-DVgAxagk.js → compile-C62K_FpC.js} +0 -0
- /package/dist/{constants-DsCdlK9I.js → constants-C8NMonuo.js} +0 -0
- /package/dist/{presets-1OhFpaIC.js → presets-Dyv9Zl7W.js} +0 -0
- /package/dist/{prng-Bz_1Tydc.js → prng-CjVgzjQT.js} +0 -0
- /package/dist/{useGlobalDark-CWiaCoEw.js → useGlobalDark-D7R9OypB.js} +0 -0
- /package/dist/{useIntersectionPause-DAdVPVp4.js → useIntersectionPause-DsQYGc8V.js} +0 -0
- /package/dist/{useKeyboardShortcuts-BQfnAHHW.js → useKeyboardShortcuts-i8tHd5WO.js} +0 -0
- /package/dist/{useSortable-DnyGXKKY.js → useSortable-muI29agz.js} +0 -0
- /package/dist/{useViewTransition-CJnqg6wl.js → useViewTransition-DI0Rs2rV.js} +0 -0
package/dist/dock.js
CHANGED
|
@@ -5,11 +5,11 @@ import { t as r } from "./useTouchGate-CS5Csc2h.js";
|
|
|
5
5
|
import { n as i } from "./createContext-DBMGRlx4.js";
|
|
6
6
|
import { i as a, n as o, r as s, t as c } from "./dockContext-spUj_-E5.js";
|
|
7
7
|
import { i as l, n as u, r as d, t as f } from "./TabsIndicator-DA0x9gPr.js";
|
|
8
|
-
import { t as p } from "./useViewTransition-
|
|
8
|
+
import { t as p } from "./useViewTransition-DI0Rs2rV.js";
|
|
9
9
|
import { Fragment as m, computed as h, createBlock as g, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createVNode as b, defineComponent as x, mergeModels as S, mergeProps as C, nextTick as w, normalizeClass as T, normalizeStyle as E, onBeforeUnmount as D, onMounted as O, onUnmounted as k, openBlock as A, readonly as j, ref as M, renderList as N, renderSlot as P, resolveDynamicComponent as F, toDisplayString as I, unref as L, useAttrs as R, useId as ee, useModel as z, useTemplateRef as B, watch as V, withCtx as H } from "vue";
|
|
10
10
|
import { DropdownMenuTrigger as U, Primitive as W, SelectIcon as G, SelectTrigger as K, useForwardProps as q } from "reka-ui";
|
|
11
11
|
import { SpringProgress as te } from "@mkbabb/keyframes.js";
|
|
12
|
-
var
|
|
12
|
+
var ne = t("pause", [["rect", {
|
|
13
13
|
x: "14",
|
|
14
14
|
y: "3",
|
|
15
15
|
width: "5",
|
|
@@ -23,7 +23,7 @@ var J = t("pause", [["rect", {
|
|
|
23
23
|
height: "18",
|
|
24
24
|
rx: "1",
|
|
25
25
|
key: "1wsw3u"
|
|
26
|
-
}]]),
|
|
26
|
+
}]]), J = t("play", [["path", {
|
|
27
27
|
d: "M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",
|
|
28
28
|
key: "10ikf1"
|
|
29
29
|
}]]);
|
|
@@ -192,6 +192,16 @@ function ie(e) {
|
|
|
192
192
|
function D(e) {
|
|
193
193
|
T(e)?.removeAttribute("data-morphing");
|
|
194
194
|
}
|
|
195
|
+
function O(e, t) {
|
|
196
|
+
let n = t < 0 ? 0 : t > 1 ? 1 : t;
|
|
197
|
+
e.style.setProperty("--dock-morph-progress", `${n}`);
|
|
198
|
+
}
|
|
199
|
+
function A(e) {
|
|
200
|
+
e.setAttribute("data-revealing", ""), e.style.setProperty("--dock-morph-progress", "0");
|
|
201
|
+
}
|
|
202
|
+
function j(e) {
|
|
203
|
+
e.removeAttribute("data-revealing"), e.style.removeProperty("--dock-morph-progress");
|
|
204
|
+
}
|
|
195
205
|
V(n, (e, n) => {
|
|
196
206
|
if (e === n) return;
|
|
197
207
|
let r = t.value;
|
|
@@ -203,10 +213,10 @@ function ie(e) {
|
|
|
203
213
|
y();
|
|
204
214
|
let t = ++u;
|
|
205
215
|
E(r);
|
|
206
|
-
let { finished:
|
|
216
|
+
let a = i?.(n, e), { finished: o } = p(() => {
|
|
207
217
|
l.value = n, c.value = e;
|
|
208
|
-
});
|
|
209
|
-
|
|
218
|
+
}, a && a.length > 0 ? { types: a } : void 0);
|
|
219
|
+
o.finally(() => {
|
|
210
220
|
t === u && (l.value = null, D(r));
|
|
211
221
|
});
|
|
212
222
|
return;
|
|
@@ -216,39 +226,41 @@ function ie(e) {
|
|
|
216
226
|
return;
|
|
217
227
|
}
|
|
218
228
|
y();
|
|
219
|
-
let
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
if (
|
|
229
|
+
let o = ++u, h = f !== null && m === r && !f.settled ? f : null, _ = h ? h.value : s(r);
|
|
230
|
+
h || (g(), b(r, `${_}px`)), w(() => {
|
|
231
|
+
o === u && r && requestAnimationFrame(() => {
|
|
232
|
+
if (o !== u) return;
|
|
223
233
|
l.value = n, c.value = e, r.style.transition = "none", x(r);
|
|
224
234
|
let t = s(r);
|
|
225
|
-
if (b(r, `${
|
|
226
|
-
r.style.transition = "", x(r), C(r), D(r), l.value = null;
|
|
235
|
+
if (b(r, `${_}px`), r.offsetWidth, !h && Math.abs(t - _) < .5) {
|
|
236
|
+
r.style.transition = "", x(r), C(r), D(r), j(r), l.value = null;
|
|
227
237
|
return;
|
|
228
238
|
}
|
|
229
|
-
S(r), E(r),
|
|
239
|
+
S(r), E(r), A(r);
|
|
240
|
+
let i = t - _;
|
|
241
|
+
h || (f = new te({
|
|
230
242
|
response: X.response,
|
|
231
243
|
dampingFraction: X.dampingFraction,
|
|
232
|
-
initial:
|
|
244
|
+
initial: _,
|
|
233
245
|
respectReducedMotion: !0
|
|
234
246
|
}), m = r);
|
|
235
247
|
let a = f;
|
|
236
248
|
a.target = t, a.play((e) => {
|
|
237
|
-
|
|
249
|
+
o === u && (b(r, `${e}px`), Math.abs(i) > .5 ? O(r, (e - _) / i) : O(r, 1), a.settled && (r.style.transition = "", x(r), C(r), D(r), j(r), l.value = null, g()));
|
|
238
250
|
}), d = setTimeout(() => {
|
|
239
|
-
|
|
251
|
+
o === u && (r.style.transition = "", x(r), C(r), D(r), j(r), l.value = null, g());
|
|
240
252
|
}, v(r));
|
|
241
253
|
});
|
|
242
254
|
});
|
|
243
255
|
});
|
|
244
|
-
function
|
|
256
|
+
function N(e) {
|
|
245
257
|
let n = t.value;
|
|
246
|
-
n && e.target === n && e.propertyName === o.value && (y(), g(), n.style.transition = "", x(n), C(n), D(n), l.value = null);
|
|
258
|
+
n && e.target === n && e.propertyName === o.value && (y(), g(), n.style.transition = "", x(n), C(n), D(n), j(n), l.value = null);
|
|
247
259
|
}
|
|
248
260
|
return k(() => {
|
|
249
261
|
y(), g();
|
|
250
262
|
}), {
|
|
251
|
-
onTransitionEnd:
|
|
263
|
+
onTransitionEnd: N,
|
|
252
264
|
currentLayer: c,
|
|
253
265
|
leavingLayer: l
|
|
254
266
|
};
|
|
@@ -278,6 +290,7 @@ var ae = [
|
|
|
278
290
|
},
|
|
279
291
|
variant: { default: "dock" },
|
|
280
292
|
shape: { default: "pill" },
|
|
293
|
+
layout: { default: "linear" },
|
|
281
294
|
orientation: { default: "horizontal" },
|
|
282
295
|
density: { default: "comfortable" },
|
|
283
296
|
overflow: { default: "grow" },
|
|
@@ -289,133 +302,135 @@ var ae = [
|
|
|
289
302
|
"container-type": "inline-size",
|
|
290
303
|
"container-name": n.containerName
|
|
291
304
|
};
|
|
292
|
-
}), a = B("dockEl"), s = B("layersEl"), c = h(() => n.variant), l = h(() => n.shape), u = h(() => n.variant === "rail" || n.variant === "instrument-strip" ? "vertical" : n.orientation),
|
|
305
|
+
}), a = B("dockEl"), s = B("layersEl"), c = h(() => n.variant), l = h(() => n.shape), u = h(() => n.layout), d = h(() => n.variant === "rail" || n.variant === "instrument-strip" ? "vertical" : n.orientation), f = h(() => n.density), p = h(() => n.overflow === "scroll" ? d.value === "vertical" ? "dock-scroll-y" : "dock-scroll-x" : null), m = h(() => n.alwaysExpanded || d.value === "vertical" || n.layout === "grid"), g = h(() => n.fitContent || n.variant === "rail" || n.variant === "instrument-strip"), _ = M(!1), b = r(n.collapseDelay), x = `glass-dock-${ee()}`, S = null, C = 0, { expanded: w, isPinned: k, isHeld: j, onMouseEnter: N, onMouseLeave: F, onFocusIn: I, onFocusOut: R, onClickCollapsed: z, keepOpen: H, release: U, expand: W, collapse: G } = re({
|
|
293
306
|
collapseDelay: n.collapseDelay,
|
|
294
307
|
rootEl: a,
|
|
295
|
-
alwaysExpanded:
|
|
296
|
-
isTransitioning:
|
|
297
|
-
dockId:
|
|
308
|
+
alwaysExpanded: m,
|
|
309
|
+
isTransitioning: _,
|
|
310
|
+
dockId: x
|
|
298
311
|
});
|
|
299
312
|
o({
|
|
300
|
-
id:
|
|
301
|
-
orientation:
|
|
302
|
-
keepOpen:
|
|
303
|
-
release:
|
|
304
|
-
held:
|
|
313
|
+
id: x,
|
|
314
|
+
orientation: d,
|
|
315
|
+
keepOpen: H,
|
|
316
|
+
release: U,
|
|
317
|
+
held: j
|
|
305
318
|
});
|
|
306
|
-
let
|
|
319
|
+
let K = h(() => m.value || w.value), { onTransitionEnd: q } = ie({
|
|
307
320
|
containerEl: s,
|
|
308
|
-
activeLayer: h(() =>
|
|
309
|
-
axis: h(() => "horizontal")
|
|
310
|
-
|
|
311
|
-
|
|
321
|
+
activeLayer: h(() => K.value ? "full" : "summary"),
|
|
322
|
+
axis: h(() => "horizontal"),
|
|
323
|
+
directionTypes: (e, t) => [t === "full" ? "dock-expand" : "dock-collapse"]
|
|
324
|
+
}), te = typeof document < "u" && "startViewTransition" in document, ne = h(() => te ? {
|
|
325
|
+
"view-transition-name": x.replace(/[^a-zA-Z0-9_-]/g, "-"),
|
|
312
326
|
"view-transition-class": "gl-dock-layer"
|
|
313
327
|
} : void 0);
|
|
314
328
|
function J(e) {
|
|
315
329
|
let t = e.trim();
|
|
316
330
|
return t ? t.endsWith("ms") ? Number.parseFloat(t) : t.endsWith("s") ? Number.parseFloat(t) * 1e3 : Number.parseFloat(t) || 0 : 0;
|
|
317
331
|
}
|
|
318
|
-
function
|
|
332
|
+
function Y(e) {
|
|
319
333
|
let t = getComputedStyle(e), n = t.transitionDuration.split(",").map(J), r = t.transitionDelay.split(",").map(J);
|
|
320
334
|
return Math.max(0, ...n.map((e, t) => e + (r[t] ?? r[0] ?? 0)));
|
|
321
335
|
}
|
|
322
|
-
function
|
|
323
|
-
|
|
336
|
+
function X() {
|
|
337
|
+
S &&= (clearTimeout(S), null);
|
|
324
338
|
}
|
|
325
|
-
let
|
|
339
|
+
let ce = new Set([
|
|
326
340
|
"width",
|
|
327
341
|
"height",
|
|
328
342
|
"padding",
|
|
329
343
|
"transform"
|
|
330
344
|
]);
|
|
331
|
-
function
|
|
345
|
+
function Z() {
|
|
332
346
|
let e = a.value;
|
|
333
347
|
if (!e) return;
|
|
334
|
-
let t = ++
|
|
335
|
-
|
|
336
|
-
t ===
|
|
337
|
-
},
|
|
348
|
+
let t = ++C;
|
|
349
|
+
X(), _.value = !0, S = setTimeout(() => {
|
|
350
|
+
t === C && (_.value = !1, S = null);
|
|
351
|
+
}, Y(e) + 50);
|
|
338
352
|
}
|
|
339
|
-
function
|
|
340
|
-
e.target === a.value &&
|
|
353
|
+
function Q(e) {
|
|
354
|
+
e.target === a.value && ce.has(e.propertyName) && (X(), C++, _.value = !1);
|
|
341
355
|
}
|
|
342
356
|
O(() => {
|
|
343
|
-
(n.alwaysExpanded || !n.startCollapsed) &&
|
|
357
|
+
(n.alwaysExpanded || !n.startCollapsed) && W();
|
|
344
358
|
});
|
|
345
|
-
function
|
|
346
|
-
return
|
|
359
|
+
function $() {
|
|
360
|
+
return d.value === "horizontal" && !m.value;
|
|
347
361
|
}
|
|
348
362
|
function le(e) {
|
|
349
|
-
if (
|
|
363
|
+
if (!$() || K.value) return;
|
|
350
364
|
let t = a.value, n = e.touches[0];
|
|
351
|
-
!t || !n ||
|
|
365
|
+
!t || !n || b.handleTouchStart(t, n.clientY);
|
|
352
366
|
}
|
|
353
367
|
function ue(e) {
|
|
354
|
-
|
|
368
|
+
$() && b.handleScrollCheck(e);
|
|
355
369
|
}
|
|
356
370
|
function de() {
|
|
357
|
-
if (
|
|
358
|
-
let e =
|
|
359
|
-
|
|
371
|
+
if (!$()) return;
|
|
372
|
+
let e = b.isActive.value;
|
|
373
|
+
b.handleTouchEnd(), !e && b.isActive.value && !K.value && W();
|
|
360
374
|
}
|
|
361
|
-
return V(
|
|
362
|
-
!e &&
|
|
363
|
-
}), V(
|
|
364
|
-
|
|
365
|
-
}), D(
|
|
366
|
-
expanded:
|
|
367
|
-
isPinned:
|
|
368
|
-
isHeld:
|
|
369
|
-
isTransitioning:
|
|
370
|
-
expand:
|
|
371
|
-
collapse:
|
|
372
|
-
keepOpen:
|
|
373
|
-
release:
|
|
375
|
+
return V(b.isActive, (e) => {
|
|
376
|
+
!e && w.value && !k.value && !m.value && G();
|
|
377
|
+
}), V(K, (e) => {
|
|
378
|
+
Z(), e || b.deactivate();
|
|
379
|
+
}), D(X), t({
|
|
380
|
+
expanded: w,
|
|
381
|
+
isPinned: k,
|
|
382
|
+
isHeld: j,
|
|
383
|
+
isTransitioning: _,
|
|
384
|
+
expand: W,
|
|
385
|
+
collapse: G,
|
|
386
|
+
keepOpen: H,
|
|
387
|
+
release: U
|
|
374
388
|
}), (t, n) => (A(), v("div", {
|
|
375
389
|
ref_key: "dockEl",
|
|
376
390
|
ref: a,
|
|
377
391
|
class: T(["glass-dock", [
|
|
378
|
-
|
|
392
|
+
d.value,
|
|
379
393
|
`variant-${c.value}`,
|
|
380
394
|
`shape-${l.value}`,
|
|
381
|
-
|
|
395
|
+
`layout-${u.value}`,
|
|
396
|
+
p.value,
|
|
382
397
|
{
|
|
383
|
-
expanded:
|
|
384
|
-
collapsed: !
|
|
385
|
-
pinned: L(
|
|
386
|
-
"fit-content":
|
|
387
|
-
"always-expanded":
|
|
398
|
+
expanded: K.value,
|
|
399
|
+
collapsed: !K.value,
|
|
400
|
+
pinned: L(k),
|
|
401
|
+
"fit-content": g.value,
|
|
402
|
+
"always-expanded": m.value,
|
|
388
403
|
"dock-overflow-wrap": e.overflow === "wrap"
|
|
389
404
|
},
|
|
390
405
|
e.position === "fixed" ? "fixed bottom-[var(--dock-pos)] left-1/2 -translate-x-1/2" : e.position === "sticky" ? "dock-sticky" : "dock-inline"
|
|
391
406
|
]]),
|
|
392
|
-
"data-density":
|
|
393
|
-
"data-held": L(
|
|
407
|
+
"data-density": f.value,
|
|
408
|
+
"data-held": L(j) || void 0,
|
|
394
409
|
"data-container-name": e.containerName || void 0,
|
|
395
410
|
style: E(i.value),
|
|
396
|
-
onMouseenter: n[2] ||= (...e) => L(
|
|
397
|
-
onMouseleave: n[3] ||= (e) => L(
|
|
398
|
-
onFocusin: n[4] ||= (...e) => L(
|
|
399
|
-
onFocusout: n[5] ||= (...e) => L(
|
|
411
|
+
onMouseenter: n[2] ||= (...e) => L(N) && L(N)(...e),
|
|
412
|
+
onMouseleave: n[3] ||= (e) => L(F)(e),
|
|
413
|
+
onFocusin: n[4] ||= (...e) => L(I) && L(I)(...e),
|
|
414
|
+
onFocusout: n[5] ||= (...e) => L(R) && L(R)(...e),
|
|
400
415
|
onTouchstart: le,
|
|
401
416
|
onTouchmove: ue,
|
|
402
417
|
onTouchend: de,
|
|
403
|
-
onTransitionend:
|
|
404
|
-
onTransitioncancel:
|
|
405
|
-
}, [
|
|
418
|
+
onTransitionend: Q,
|
|
419
|
+
onTransitioncancel: Q
|
|
420
|
+
}, [d.value === "horizontal" ? (A(), v("div", {
|
|
406
421
|
key: 0,
|
|
407
422
|
ref_key: "layersEl",
|
|
408
423
|
ref: s,
|
|
409
424
|
class: "dock-layers",
|
|
410
|
-
style: E(
|
|
411
|
-
onTransitionend: n[1] ||= (...e) => L(
|
|
425
|
+
style: E(ne.value),
|
|
426
|
+
onTransitionend: n[1] ||= (...e) => L(q) && L(q)(...e)
|
|
412
427
|
}, [y("div", {
|
|
413
|
-
class: T(["dock-layer dock-layer--full", { "layer-active":
|
|
414
|
-
inert: !L(
|
|
428
|
+
class: T(["dock-layer dock-layer--full", { "layer-active": K.value }]),
|
|
429
|
+
inert: !L(w) || void 0
|
|
415
430
|
}, [P(t.$slots, "default")], 10, oe), y("div", {
|
|
416
|
-
class: T(["dock-layer dock-layer--summary", { "layer-active": !
|
|
417
|
-
inert: L(
|
|
418
|
-
onClick: n[0] ||= (...e) => L(
|
|
431
|
+
class: T(["dock-layer dock-layer--summary", { "layer-active": !K.value }]),
|
|
432
|
+
inert: L(w) || void 0,
|
|
433
|
+
onClick: n[0] ||= (...e) => L(z) && L(z)(...e)
|
|
419
434
|
}, [P(t.$slots, "collapsed")], 10, se)], 36)) : P(t.$slots, "default", { key: 1 })], 46, ae));
|
|
420
435
|
}
|
|
421
436
|
}), Z = i("glass-ui:dock-layer-group", "[glass-ui:dock] <DockLayer> must be used inside <DockLayerGroup>");
|
|
@@ -423,11 +438,11 @@ Z.KEY;
|
|
|
423
438
|
function Q(e) {
|
|
424
439
|
Z.provide(e);
|
|
425
440
|
}
|
|
426
|
-
var
|
|
441
|
+
var $ = Z.use;
|
|
427
442
|
Z.useOptional;
|
|
428
443
|
//#endregion
|
|
429
444
|
//#region src/components/custom/dock/DockLayerGroup.vue?vue&type=script&setup=true&lang.ts
|
|
430
|
-
var
|
|
445
|
+
var le = { key: 1 }, ue = { key: 2 }, de = /* @__PURE__ */ x({
|
|
431
446
|
__name: "DockLayerGroup",
|
|
432
447
|
props: /* @__PURE__ */ S({
|
|
433
448
|
orientation: {},
|
|
@@ -452,7 +467,11 @@ var ue = { key: 1 }, de = { key: 2 }, fe = /* @__PURE__ */ x({
|
|
|
452
467
|
let p = h(() => t.orientation ?? r?.orientation.value ?? "horizontal"), { onTransitionEnd: x, currentLayer: S, leavingLayer: C } = ie({
|
|
453
468
|
containerEl: o,
|
|
454
469
|
activeLayer: n,
|
|
455
|
-
axis: p
|
|
470
|
+
axis: p,
|
|
471
|
+
directionTypes: (e, t) => {
|
|
472
|
+
let n = i.value.findIndex((t) => t.id === e);
|
|
473
|
+
return [i.value.findIndex((e) => e.id === t) < n ? "layer-back" : "layer-forward"];
|
|
474
|
+
}
|
|
456
475
|
}), w = typeof document < "u" && "startViewTransition" in document, D = ee(), O = h(() => w ? {
|
|
457
476
|
"view-transition-name": `gl-dock-stack-${D.replace(/[^a-zA-Z0-9_-]/g, "-")}`,
|
|
458
477
|
"view-transition-class": "gl-dock-layer"
|
|
@@ -496,7 +515,7 @@ var ue = { key: 1 }, de = { key: 2 }, fe = /* @__PURE__ */ x({
|
|
|
496
515
|
default: H(() => [k(e.icon) ? (A(), g(F(e.icon), {
|
|
497
516
|
key: 0,
|
|
498
517
|
class: "size-4"
|
|
499
|
-
})) : typeof e.icon == "string" ? (A(), v("span",
|
|
518
|
+
})) : typeof e.icon == "string" ? (A(), v("span", le, I(e.icon), 1)) : (A(), v("span", ue, I((e.label ?? e.id).charAt(0)), 1))]),
|
|
500
519
|
_: 2
|
|
501
520
|
}, 1032, [
|
|
502
521
|
"value",
|
|
@@ -514,11 +533,11 @@ var ue = { key: 1 }, de = { key: 2 }, fe = /* @__PURE__ */ x({
|
|
|
514
533
|
onTransitionend: r[1] ||= (...e) => L(x) && L(x)(...e)
|
|
515
534
|
}, [P(t.$slots, "default")], 36)], 2));
|
|
516
535
|
}
|
|
517
|
-
}),
|
|
536
|
+
}), fe = [
|
|
518
537
|
"inert",
|
|
519
538
|
"aria-hidden",
|
|
520
539
|
"tabindex"
|
|
521
|
-
],
|
|
540
|
+
], pe = /* @__PURE__ */ x({
|
|
522
541
|
__name: "DockLayer",
|
|
523
542
|
props: {
|
|
524
543
|
id: {},
|
|
@@ -526,7 +545,7 @@ var ue = { key: 1 }, de = { key: 2 }, fe = /* @__PURE__ */ x({
|
|
|
526
545
|
icon: {}
|
|
527
546
|
},
|
|
528
547
|
setup(e) {
|
|
529
|
-
let t = e, n =
|
|
548
|
+
let t = e, n = $();
|
|
530
549
|
O(() => {
|
|
531
550
|
n.register({
|
|
532
551
|
id: t.id,
|
|
@@ -552,9 +571,9 @@ var ue = { key: 1 }, de = { key: 2 }, fe = /* @__PURE__ */ x({
|
|
|
552
571
|
inert: r.value ? void 0 : !0,
|
|
553
572
|
"aria-hidden": r.value ? void 0 : !0,
|
|
554
573
|
tabindex: r.value ? -1 : void 0
|
|
555
|
-
}, [P(e.$slots, "default")], 10,
|
|
574
|
+
}, [P(e.$slots, "default")], 10, fe));
|
|
556
575
|
}
|
|
557
|
-
}),
|
|
576
|
+
}), me = /* @__PURE__ */ x({
|
|
558
577
|
__name: "DockIconButton",
|
|
559
578
|
props: {
|
|
560
579
|
compact: {
|
|
@@ -622,18 +641,18 @@ var ue = { key: 1 }, de = { key: 2 }, fe = /* @__PURE__ */ x({
|
|
|
622
641
|
function a() {
|
|
623
642
|
r("update:paused", !n.paused);
|
|
624
643
|
}
|
|
625
|
-
return (t, n) => (A(), g(
|
|
644
|
+
return (t, n) => (A(), g(me, {
|
|
626
645
|
type: "button",
|
|
627
646
|
"aria-pressed": e.paused,
|
|
628
647
|
"aria-label": i.value,
|
|
629
648
|
title: i.value,
|
|
630
649
|
onClick: a
|
|
631
650
|
}, {
|
|
632
|
-
default: H(() => [e.paused ? (A(), g(L(
|
|
651
|
+
default: H(() => [e.paused ? (A(), g(L(J), {
|
|
633
652
|
key: 0,
|
|
634
653
|
size: 18,
|
|
635
654
|
"aria-hidden": "true"
|
|
636
|
-
})) : (A(), g(L(
|
|
655
|
+
})) : (A(), g(L(ne), {
|
|
637
656
|
key: 1,
|
|
638
657
|
size: 18,
|
|
639
658
|
"aria-hidden": "true"
|
|
@@ -731,4 +750,4 @@ var ue = { key: 1 }, de = { key: 2 }, fe = /* @__PURE__ */ x({
|
|
|
731
750
|
}
|
|
732
751
|
});
|
|
733
752
|
//#endregion
|
|
734
|
-
export { c as DOCK_CONTEXT_KEY, he as DockBackgroundToggle, ve as DockDropdownTrigger,
|
|
753
|
+
export { c as DOCK_CONTEXT_KEY, he as DockBackgroundToggle, ve as DockDropdownTrigger, me as DockIconButton, pe as DockLayer, de as DockLayerGroup, _e as DockSelectTrigger, ge as DockTabButton, ce as GlassDock, o as provideDockContext, s as useDockContext, a as useOptionalDockContext };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as e, t } from "./minimize-2-BP27-qBY.js";
|
|
2
|
-
import { i as n } from "./useKeyboardShortcuts-
|
|
2
|
+
import { i as n } from "./useKeyboardShortcuts-i8tHd5WO.js";
|
|
3
3
|
import { Fragment as r, Teleport as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, mergeModels as d, mergeProps as f, normalizeClass as p, onMounted as m, onUnmounted as h, openBlock as g, renderSlot as _, unref as v, useModel as y, watch as b } from "vue";
|
|
4
4
|
//#region src/components/custom/expandable-container/ExpandableContainer.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var x = ["aria-label"], S = {
|
package/dist/forms.js
CHANGED
|
@@ -2,7 +2,7 @@ import { t as e } from "./cn-DJXf4yaB.js";
|
|
|
2
2
|
import { t } from "./search-DBG8qaRs.js";
|
|
3
3
|
import { t as n } from "./menuItemVariants-C2QlXqT3.js";
|
|
4
4
|
import { t as r } from "./useUserInvalidAria-DmvZ_6Dx.js";
|
|
5
|
-
import { t as i } from "./Input-
|
|
5
|
+
import { t as i } from "./Input-CRJ2owjN.js";
|
|
6
6
|
import { computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createTextVNode as l, createVNode as u, defineComponent as d, isRef as f, mergeProps as p, openBlock as m, renderSlot as h, toDisplayString as g, unref as _, vModelText as v, withCtx as y, withDirectives as b } from "vue";
|
|
7
7
|
import { ComboboxAnchor as x, ComboboxCancel as S, ComboboxContent as C, ComboboxEmpty as w, ComboboxGroup as T, ComboboxInput as E, ComboboxItem as D, ComboboxItemIndicator as O, ComboboxLabel as k, ComboboxPortal as A, ComboboxRoot as j, ComboboxSeparator as M, ComboboxTrigger as N, ComboboxViewport as P, useForwardProps as F, useForwardPropsEmits as I } from "reka-ui";
|
|
8
8
|
import { reactiveOmit as L, useVModel as R } from "@vueuse/core";
|