@mkbabb/glass-ui 3.8.0 → 3.10.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/README.md +1 -6
- package/dist/{CardAction-q2qHCJFG.js → CardAction-DuArVky-.js} +4 -4
- package/dist/{CommandShortcut-SzWRhROC.js → CommandShortcut-CefCj5mt.js} +7 -7
- package/dist/{ContextMenuSubContent-Do977Cbf.js → ContextMenuSubContent-Bhg4f5jX.js} +3 -3
- package/dist/{DataTable-CvlWXz65.js → DataTable-CUHMukiQ.js} +1 -1
- package/dist/{DialogContent-DjZWT3lK.js → DialogContent-BRkT1cjP.js} +1 -1
- package/dist/{MetricBadge-lTc002u2.js → MetricBadge-BZVWIxNy.js} +6 -4
- package/dist/{Notification-BxK8LZMw.js → Notification-DLMhblXR.js} +2 -2
- package/dist/{NumberFieldContent-CLNVR1iY.js → NumberFieldContent-BbLOh8RU.js} +2 -2
- package/dist/{SelectScrollDownButton-C7TRe-ep.js → SelectScrollDownButton-T32cVFeM.js} +3 -3
- package/dist/{SelectSeparator-L8pPEn4L.js → SelectSeparator-C4Ql0gzV.js} +1 -1
- package/dist/{Switch-LDKLmmgx.js → Switch-Ch-k3Rv-.js} +1 -1
- package/dist/{TabsList-qyHZ2lKY.js → TabsList-B8CVOQPC.js} +2 -2
- package/dist/{Toaster-CabYEEF_.js → Toaster-1rYWrmAm.js} +1 -1
- package/dist/{ToggleGroupItem-CkXUcBlt.js → ToggleGroupItem-Cev4pOVK.js} +4 -4
- 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 +236 -545
- package/dist/{badge-DHQrc_GQ.js → badge-CaoFJzRb.js} +5 -5
- package/dist/badge.js +1 -1
- package/dist/{button-CAywcrhO.js → button-DN39cGqL.js} +13 -12
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/carousel.js +1 -1
- package/dist/color.js +1 -1
- package/dist/command.js +1 -1
- package/dist/{compile-BBTRjvQS.js → compile-BOXjLUxu.js} +24 -24
- package/dist/components/custom/aurora/composables/atoms.d.ts +21 -4
- package/dist/components/custom/aurora/composables/runtime.d.ts +0 -9
- package/dist/components/custom/aurora/composables/uniformBridge.d.ts +0 -11
- package/dist/components/custom/aurora/constants/renderMode.d.ts +0 -32
- package/dist/components/custom/aurora/constants/shaders/brush.glsl.d.ts +1 -1
- package/dist/components/custom/aurora/constants/shaders/mediums.glsl.d.ts +2 -2
- package/dist/components/custom/aurora/constants/shaders/tonemap.glsl.d.ts +1 -1
- package/dist/components/custom/aurora/index.d.ts +1 -1
- package/dist/components/custom/configurator/ConfiguratorLayer.vue.d.ts +1 -1
- package/dist/components/custom/constellation/Constellation.vue.d.ts +73 -1
- package/dist/components/custom/constellation/constellationField.d.ts +255 -3
- package/dist/components/custom/constellation/index.d.ts +2 -2
- package/dist/components/custom/dock/DockSeparator.vue.d.ts +3 -0
- package/dist/components/custom/dock/DockTabButton.vue.d.ts +4 -3
- package/dist/components/custom/dock/GlassDock.vue.d.ts +45 -63
- package/dist/components/custom/dock/composables/dockContext.d.ts +7 -0
- package/dist/components/custom/dock/index.d.ts +2 -1
- package/dist/components/custom/expandable-container/ExpandableContainer.vue.d.ts +29 -0
- package/dist/components/custom/fourier-field/FourierField.vue.d.ts +6 -0
- package/dist/components/custom/fourier-field/index.d.ts +25 -1
- package/dist/components/custom/fourier-field/math.d.ts +3 -8
- package/dist/components/custom/goo-blob/GooBlob.vue.d.ts +8 -10
- package/dist/components/custom/goo-blob/composables/useBlobMood.d.ts +19 -5
- package/dist/components/custom/goo-blob/composables/useMetaballRenderer.d.ts +6 -14
- package/dist/components/custom/goo-blob/index.d.ts +1 -1
- package/dist/components/custom/goo-blob/types.d.ts +59 -25
- package/dist/components/custom/handmark/HandMark.vue.d.ts +29 -0
- package/dist/components/custom/handmark/brush.d.ts +219 -0
- package/dist/components/custom/handmark/freehand.d.ts +69 -0
- package/dist/components/custom/handmark/geometry.d.ts +32 -0
- package/dist/components/custom/handmark/index.d.ts +21 -0
- package/dist/components/custom/handmark/ink.d.ts +11 -0
- package/dist/components/custom/handmark/texture.d.ts +39 -0
- package/dist/components/custom/handmark/types.d.ts +53 -0
- package/dist/components/custom/handmark/useHandMark.d.ts +66 -0
- package/dist/components/custom/metric-badge/MetricBadge.vue.d.ts +8 -0
- package/dist/components/custom/tabs/SegmentedTabs.vue.d.ts +92 -0
- package/dist/components/custom/tabs/composables/useTabIndicator.d.ts +49 -0
- package/dist/components/custom/tabs/index.d.ts +2 -5
- package/dist/components/ui/button/index.d.ts +1 -1
- package/dist/components/ui/card/Card.vue.d.ts +5 -3
- package/dist/components/ui/carousel/CarouselNext.vue.d.ts +1 -1
- package/dist/components/ui/carousel/CarouselPrevious.vue.d.ts +1 -1
- package/dist/components/ui/carousel/GlassCarouselPager.vue.d.ts +3 -4
- package/dist/components/ui/slider/index.d.ts +22 -11
- package/dist/components/ui/tabs/TabsList.vue.d.ts +1 -1
- package/dist/composables/color/index.d.ts +12 -7
- package/dist/composables/context/createContext.d.ts +1 -1
- package/dist/composables/glass/webgl/shaders/procedural-color.glsl.d.ts +1 -6
- package/dist/composables/motion/core/index.d.ts +1 -0
- package/dist/composables/motion/useRouteTransition.d.ts +42 -0
- package/dist/configurator.js +1 -1
- package/dist/confirm-dialog.js +1 -1
- package/dist/constellation.js +212 -72
- package/dist/context-menu.js +1 -1
- package/dist/controls.js +1 -1
- package/dist/dark.js +1 -1
- package/dist/data-table.js +1 -1
- package/dist/deck-progress.js +1 -1
- package/dist/dialog.js +1 -1
- package/dist/dock.js +257 -243
- package/dist/{dropdown-menu-B_4bWyyG.js → dropdown-menu-D77jX6Df.js} +3 -3
- package/dist/dropdown-menu.js +1 -1
- package/dist/expandable-container.js +61 -38
- package/dist/forms.js +5 -5
- package/dist/fourier-field.js +89 -97
- package/dist/fourier-math.d.ts +1 -0
- package/dist/fourier-math.js +2 -0
- package/dist/glass-panel.js +1 -1
- package/dist/glass-ui.css +1 -1
- package/dist/glass-ui.js +107 -109
- package/dist/goo-blob.js +316 -297
- package/dist/handmark.d.ts +1 -0
- package/dist/handmark.js +609 -0
- package/dist/hover-popover.js +1 -1
- package/dist/icon-tooltip.js +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/keyboard.js +1 -1
- package/dist/labeled-field.js +5 -5
- package/dist/math-DTpRVC0e.js +27 -0
- package/dist/{menuItemVariants-DKM85SNE.js → menuItemVariants-CCoBNkU5.js} +1 -1
- package/dist/metric-badge.js +1 -1
- package/dist/metric-stack.js +1 -1
- package/dist/motion-core.js +70 -69
- package/dist/motion.js +2 -2
- package/dist/notification.js +1 -1
- package/dist/number-field.js +1 -1
- package/dist/pulse.js +1 -1
- package/dist/reactive.js +1 -1
- package/dist/scrolling-text.js +1 -1
- package/dist/search.js +4 -4
- package/dist/select.js +2 -2
- package/dist/{slider-D9puf-Ko.js → slider-CyzcxBoh.js} +6 -6
- package/dist/slider.js +1 -1
- package/dist/sortable-list.js +1 -1
- package/dist/status-dot.js +17 -16
- package/dist/styles/animations.css +80 -20
- package/dist/styles/cards.css +2 -2
- package/dist/styles/components.css +1 -1
- package/dist/styles/dock/density.css +230 -0
- package/dist/styles/dock/layer-group.css +275 -0
- package/dist/styles/dock/layers.css +355 -0
- package/dist/styles/dock/morph.css +244 -0
- package/dist/styles/dock/overflow.css +201 -0
- package/dist/styles/dock/shell.css +457 -0
- package/dist/styles/dock-controls.css +205 -55
- package/dist/styles/dock.css +42 -1349
- package/dist/styles/drawer.css +12 -4
- package/dist/styles/glass.css +535 -78
- package/dist/styles/index.css +12 -11
- package/dist/styles/paper.css +68 -2
- package/dist/styles/theme.css +58 -0
- package/dist/styles/tokens.css +601 -69
- package/dist/styles/transitions.css +20 -2
- package/dist/styles/utilities.css +218 -78
- package/dist/styles/view-transition.css +51 -0
- package/dist/switch.js +1 -1
- package/dist/tabs.js +182 -151
- package/dist/timeline.js +1 -1
- package/dist/toast.js +1 -1
- package/dist/toggle-group.js +1 -1
- package/dist/{useAnimatedNumber-C_3wZLx4.js → useAnimatedNumber-Bcpy5Etf.js} +1 -1
- package/dist/{useConfiguratorState-CMff4GzH.js → useConfiguratorState-DxAqksK6.js} +21 -10
- package/dist/{useGlassRenderer-5I0YkI4t.js → useGlassRenderer-D7YGOYiM.js} +1 -1
- package/dist/useViewTransition-DaN5Zrox.js +21 -0
- package/dist/vReveal-zUIQk-rJ.js +53 -0
- package/dist/watercolor-dot.js +1 -1
- package/package.json +80 -39
- package/src/styles/animations.css +80 -20
- package/src/styles/cards.css +2 -2
- package/src/styles/dock/density.css +230 -0
- package/src/styles/dock/layer-group.css +275 -0
- package/src/styles/dock/layers.css +355 -0
- package/src/styles/dock/morph.css +244 -0
- package/src/styles/dock/overflow.css +201 -0
- package/src/styles/dock/shell.css +457 -0
- package/src/styles/dock-controls.css +205 -55
- package/src/styles/dock.css +42 -1349
- package/src/styles/drawer.css +12 -4
- package/src/styles/glass.css +535 -78
- package/src/styles/index.css +12 -11
- package/src/styles/paper.css +68 -2
- package/src/styles/theme.css +58 -0
- package/src/styles/tokens.css +601 -69
- package/src/styles/transitions.css +20 -2
- package/src/styles/utilities.css +218 -78
- package/src/styles/view-transition.css +51 -0
- package/dist/DiscoGlyph-CG0F410s.js +0 -132
- package/dist/GlyphFace-DRjDkB0s.js +0 -51
- package/dist/UnderlineTabs-Uxn-R3MT.js +0 -39
- package/dist/components/custom/aurora/composables/gpuRuntime.d.ts +0 -16
- package/dist/components/custom/aurora/constants/shaders/aurora.wgsl.d.ts +0 -7
- package/dist/components/custom/aurora/constants/shaders/painterly.wgsl.d.ts +0 -7
- package/dist/components/custom/aurora/constants/shaders/wake.wgsl.d.ts +0 -4
- package/dist/components/custom/disco-glyph/DiscoGlyph.vue.d.ts +0 -58
- package/dist/components/custom/disco-glyph/index.d.ts +0 -1
- package/dist/components/custom/glass-carousel/GlassCarousel.vue.d.ts +0 -36
- package/dist/components/custom/glass-carousel/GlassCarouselItem.vue.d.ts +0 -28
- package/dist/components/custom/glass-carousel/index.d.ts +0 -4
- package/dist/components/custom/glass-carousel/useGlassCarousel.d.ts +0 -30
- package/dist/components/custom/glyph-face/GlyphFace.vue.d.ts +0 -64
- package/dist/components/custom/glyph-face/index.d.ts +0 -2
- package/dist/components/custom/glyph-face/keys.d.ts +0 -9
- package/dist/components/custom/responsive-tabs/ResponsiveTabs.vue.d.ts +0 -73
- package/dist/components/custom/responsive-tabs/index.d.ts +0 -2
- package/dist/components/custom/tabs/BouncyTabs.vue.d.ts +0 -27
- package/dist/components/custom/tabs/BouncyToggle.vue.d.ts +0 -60
- package/dist/components/custom/tabs/UnderlineTabs.vue.d.ts +0 -20
- package/dist/components/custom/tabs/composables/useBouncySlider.d.ts +0 -39
- package/dist/composables/glass/createGPUCanvas.d.ts +0 -40
- package/dist/disco-glyph.d.ts +0 -1
- package/dist/disco-glyph.js +0 -2
- package/dist/glass-carousel.d.ts +0 -1
- package/dist/glass-carousel.js +0 -219
- package/dist/glyph-face.d.ts +0 -1
- package/dist/glyph-face.js +0 -3
- package/dist/keys-BsYjEFOW.js +0 -9
- package/dist/responsive-tabs.d.ts +0 -1
- package/dist/responsive-tabs.js +0 -95
- package/dist/styles/disco-glyph.css +0 -26
- package/dist/styles/glyph-face.css +0 -92
- package/dist/vReveal-CqaCz_mC.js +0 -44
- package/src/styles/disco-glyph.css +0 -26
- package/src/styles/glyph-face.css +0 -92
- /package/dist/{DeckProgress-AVgbIULY.js → DeckProgress-Dmk4_AKN.js} +0 -0
- /package/dist/{HoverPopover-D56O6Ylp.js → HoverPopover-2LOIW34a.js} +0 -0
- /package/dist/{IconTooltip-D2T5nYOM.js → IconTooltip-Cus0fvK0.js} +0 -0
- /package/dist/{Input-DVG_J0ne.js → Input-xuDwALQR.js} +0 -0
- /package/dist/{ScrollingText-CVyqxvfv.js → ScrollingText-BPP84wKo.js} +0 -0
- /package/dist/{color-DMLTunJK.js → color-C5ls_QF7.js} +0 -0
- /package/dist/{constants-BPOqYJAm.js → constants-yKeKnE84.js} +0 -0
- /package/dist/{presets-D1XPuTj-.js → presets-Dkdv55Gt.js} +0 -0
- /package/dist/{prng-COGhh02-.js → prng-D27-B3tK.js} +0 -0
- /package/dist/{useGlobalDark-D3EBWzXK.js → useGlobalDark-d6waty-X.js} +0 -0
- /package/dist/{useIntersectionPause-Bj4sPkMh.js → useIntersectionPause-Cck5Uxk8.js} +0 -0
- /package/dist/{useInterval-CcLfq2WU.js → useInterval-Dsmqwi03.js} +0 -0
- /package/dist/{useKeyboardShortcuts-BXWXOZ-9.js → useKeyboardShortcuts-CyIYrndH.js} +0 -0
- /package/dist/{useScrollProgress-C9ysDic5.js → useScrollProgress-CffFGLa5.js} +0 -0
- /package/dist/{useSortable-MGAbCGVJ.js → useSortable-C8ReQ50P.js} +0 -0
- /package/dist/{useTextHighlight-9nMW23Qb.js → useTextHighlight-CWEi25hf.js} +0 -0
package/dist/tabs.js
CHANGED
|
@@ -1,78 +1,104 @@
|
|
|
1
1
|
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
2
|
import { t } from "./_plugin-vue_export-helper-ok8pgSl5.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import { Fragment as
|
|
6
|
-
//#region src/components/custom/tabs/composables/
|
|
7
|
-
function
|
|
8
|
-
let { containerRef: t,
|
|
3
|
+
import { a as n, i as r, o as i, r as a, s as o } from "./SelectScrollDownButton-T32cVFeM.js";
|
|
4
|
+
import { i as s, n as c, r as l, t as u } from "./TooltipProvider-CmZzCuaG.js";
|
|
5
|
+
import { Fragment as d, computed as f, createBlock as p, createCommentVNode 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, onMounted as E, onUnmounted as D, openBlock as O, ref as k, renderList as A, renderSlot as j, toDisplayString as M, unref as N, useModel as ee, watch as P, withCtx as F } from "vue";
|
|
6
|
+
//#region src/components/custom/tabs/composables/useTabIndicator.ts
|
|
7
|
+
function te(e) {
|
|
8
|
+
let { containerRef: t, indicatorRef: n, buttonRefs: r, options: i, model: a, multiSelect: o, anchorSupported: s, jsSliderActive: c, activeValues: l } = e, u = k({
|
|
9
9
|
width: "0px",
|
|
10
10
|
transform: "translateX(0px)",
|
|
11
11
|
opacity: "0"
|
|
12
12
|
});
|
|
13
|
-
function
|
|
14
|
-
if (
|
|
15
|
-
let e =
|
|
16
|
-
if (e < 0 || !
|
|
17
|
-
let t =
|
|
18
|
-
|
|
13
|
+
function d() {
|
|
14
|
+
if (o.value || s) return;
|
|
15
|
+
let e = i.value.findIndex((e) => e.value === a.value);
|
|
16
|
+
if (e < 0 || !r.value[e]) return;
|
|
17
|
+
let t = r.value[e];
|
|
18
|
+
u.value = {
|
|
19
19
|
width: `${t.offsetWidth}px`,
|
|
20
20
|
transform: `translateX(${t.offsetLeft}px)`,
|
|
21
21
|
opacity: "1"
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
|
-
let
|
|
25
|
-
function
|
|
26
|
-
if (!
|
|
24
|
+
let f = k({});
|
|
25
|
+
function p() {
|
|
26
|
+
if (!o.value) return;
|
|
27
27
|
let e = {};
|
|
28
|
-
for (let t of
|
|
29
|
-
let
|
|
28
|
+
for (let t of l.value) {
|
|
29
|
+
let n = i.value.findIndex((e) => e.value === t), a = r.value[n];
|
|
30
30
|
a && (e[t] = {
|
|
31
31
|
width: `${a.offsetWidth}px`,
|
|
32
32
|
transform: `translateX(${a.offsetLeft}px)`,
|
|
33
33
|
opacity: "1"
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
|
-
|
|
36
|
+
f.value = e;
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
|
|
38
|
+
function m() {
|
|
39
|
+
o.value ? p() : d();
|
|
40
|
+
}
|
|
41
|
+
let h = -1, g = null;
|
|
42
|
+
function _() {
|
|
43
|
+
return typeof window < "u" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
44
|
+
}
|
|
45
|
+
function v(e) {
|
|
46
|
+
let i = n.value;
|
|
47
|
+
if (o.value || !i) {
|
|
48
|
+
h = e;
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
if (_()) {
|
|
52
|
+
h = e;
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
let a = r.value[h], s = r.value[e];
|
|
56
|
+
if (h = e, !a || !s) return;
|
|
57
|
+
let c = t.value?.offsetWidth || s.offsetParent?.offsetWidth || 1, l = Math.abs(s.offsetLeft - a.offsetLeft), u = c > 0 ? Math.min(l / c, 1) : 0, d = getComputedStyle(i).getPropertyValue("--tab-indicator-max-stretch").trim(), f = 1 + u * ((Number(d) || 1.08) - 1);
|
|
58
|
+
g && clearTimeout(g), i.style.setProperty("--stretch", String(f)), g = setTimeout(() => {
|
|
59
|
+
i.style.setProperty("--stretch", "1"), g = null;
|
|
60
|
+
}, 60);
|
|
40
61
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}, { deep: !0 }),
|
|
44
|
-
|
|
62
|
+
P(() => a.value, () => {
|
|
63
|
+
c.value && S(m);
|
|
64
|
+
}, { deep: !0 }), P(() => i.value, () => {
|
|
65
|
+
c.value && S(m);
|
|
45
66
|
}, { deep: !0 });
|
|
46
|
-
let
|
|
47
|
-
return
|
|
48
|
-
|
|
49
|
-
}),
|
|
50
|
-
|
|
67
|
+
let y = null;
|
|
68
|
+
return E(() => {
|
|
69
|
+
h = i.value.findIndex((e) => l.value.includes(e.value)), c.value && (S(m), t.value && (y = new ResizeObserver(() => m()), y.observe(t.value)));
|
|
70
|
+
}), D(() => {
|
|
71
|
+
y?.disconnect(), g && clearTimeout(g);
|
|
51
72
|
}), {
|
|
52
|
-
singleSliderStyle:
|
|
53
|
-
multiSliderStyles:
|
|
73
|
+
singleSliderStyle: u,
|
|
74
|
+
multiSliderStyles: f,
|
|
75
|
+
squishOnTravel: v
|
|
54
76
|
};
|
|
55
77
|
}
|
|
56
78
|
//#endregion
|
|
57
|
-
//#region src/components/custom/tabs/
|
|
58
|
-
var
|
|
59
|
-
"
|
|
79
|
+
//#region src/components/custom/tabs/SegmentedTabs.vue?vue&type=script&setup=true&lang.ts
|
|
80
|
+
var ne = ["role"], re = [
|
|
81
|
+
"role",
|
|
60
82
|
"disabled",
|
|
61
83
|
"onClick"
|
|
62
|
-
],
|
|
63
|
-
"
|
|
84
|
+
], ie = [
|
|
85
|
+
"role",
|
|
64
86
|
"disabled",
|
|
65
87
|
"onClick"
|
|
66
|
-
],
|
|
67
|
-
__name: "
|
|
68
|
-
props: /* @__PURE__ */
|
|
88
|
+
], I = /* @__PURE__ */ t(/* @__PURE__ */ y({
|
|
89
|
+
__name: "SegmentedTabs",
|
|
90
|
+
props: /* @__PURE__ */ b({
|
|
69
91
|
options: {},
|
|
92
|
+
variant: { default: "segmented" },
|
|
70
93
|
multiSelect: {
|
|
71
94
|
type: Boolean,
|
|
72
95
|
default: !1
|
|
73
96
|
},
|
|
74
|
-
variant: { default: "default" },
|
|
75
97
|
overflow: { default: "none" },
|
|
98
|
+
responsive: {
|
|
99
|
+
type: [Boolean, Object],
|
|
100
|
+
default: !1
|
|
101
|
+
},
|
|
76
102
|
class: { type: [
|
|
77
103
|
Boolean,
|
|
78
104
|
null,
|
|
@@ -86,45 +112,52 @@ var M = [
|
|
|
86
112
|
}),
|
|
87
113
|
emits: ["update:modelValue"],
|
|
88
114
|
setup(t) {
|
|
89
|
-
function
|
|
115
|
+
function y(e, t) {
|
|
90
116
|
return typeof document > "u" ? t : getComputedStyle(document.documentElement).getPropertyValue(e).trim() || t;
|
|
91
117
|
}
|
|
92
|
-
let
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
118
|
+
let b = t, D = ee(t, "modelValue"), P = k(null), I = k(null), L = k([]), R = typeof CSS < "u" && typeof CSS.supports == "function" && CSS.supports("position-anchor", "--x"), z = f(() => b.variant === "underline");
|
|
119
|
+
f(() => b.variant === "pill"), f(() => b.variant === "segmented");
|
|
120
|
+
let B = f(() => b.overflow === "scroll"), V = f(() => b.overflow === "auto"), H = f(() => b.multiSelect && !z.value), U = f(() => {
|
|
121
|
+
let e = D.value;
|
|
122
|
+
return H.value && Array.isArray(e) ? e : e == null ? [] : [e];
|
|
123
|
+
}), W = (e) => U.value.includes(e), ae = f(() => (H.value || !R) && !z.value), G = f(() => !H.value && !R && !z.value), K = f(() => b.responsive === !1 ? null : b.responsive === !0 ? {} : b.responsive), oe = f(() => K.value?.breakpoint ?? "640px"), q = f(() => K.value?.desktopOptions ?? b.options), J = k(!0), Y = null;
|
|
124
|
+
function X(e) {
|
|
125
|
+
J.value = e.matches;
|
|
126
|
+
}
|
|
127
|
+
let se = f(() => {
|
|
128
|
+
if (!K.value) return D.value;
|
|
129
|
+
let e = q.value;
|
|
130
|
+
return e.some((e) => e.value === D.value) ? D.value : e[0]?.value ?? D.value;
|
|
131
|
+
}), Z = f(() => K.value ? q.value : b.options), ce = f(() => K.value?.ariaLabel ?? b.options.find((e) => e.value === D.value)?.label ?? "Select"), le = f(() => !!K.value && !J.value), { singleSliderStyle: ue, multiSliderStyles: de, squishOnTravel: fe } = te({
|
|
132
|
+
containerRef: P,
|
|
133
|
+
indicatorRef: I,
|
|
134
|
+
buttonRefs: L,
|
|
135
|
+
options: Z,
|
|
136
|
+
model: f(() => se.value),
|
|
137
|
+
multiSelect: H,
|
|
138
|
+
anchorSupported: R,
|
|
139
|
+
jsSliderActive: ae,
|
|
140
|
+
activeValues: U
|
|
104
141
|
});
|
|
105
|
-
function
|
|
142
|
+
function pe(e) {
|
|
106
143
|
if (typeof window < "u" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;
|
|
107
144
|
e.getAnimations().forEach((e) => e.cancel());
|
|
108
|
-
let t =
|
|
145
|
+
let t = y("--spring-snappy", "ease"), n = y("--scale-press-btn", "0.97");
|
|
109
146
|
e.animate([
|
|
110
147
|
{ transform: "scale(1)" },
|
|
111
148
|
{
|
|
112
149
|
transform: `scale(${n})`,
|
|
113
|
-
offset: .
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
transform: `scale(${r})`,
|
|
117
|
-
offset: .7
|
|
150
|
+
offset: .4
|
|
118
151
|
},
|
|
119
152
|
{ transform: "scale(1)" }
|
|
120
153
|
], {
|
|
121
|
-
duration:
|
|
154
|
+
duration: 220,
|
|
122
155
|
easing: t
|
|
123
156
|
});
|
|
124
157
|
}
|
|
125
|
-
function
|
|
126
|
-
if (!
|
|
127
|
-
let t =
|
|
158
|
+
function Q(e) {
|
|
159
|
+
if (!B.value && !V.value) return;
|
|
160
|
+
let t = L.value[e];
|
|
128
161
|
if (!t) return;
|
|
129
162
|
let n = typeof window < "u" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
130
163
|
t.scrollIntoView({
|
|
@@ -133,120 +166,118 @@ var M = [
|
|
|
133
166
|
behavior: n ? "auto" : "smooth"
|
|
134
167
|
});
|
|
135
168
|
}
|
|
136
|
-
function
|
|
137
|
-
if (
|
|
138
|
-
let n =
|
|
139
|
-
if (n &&
|
|
140
|
-
let t = [...
|
|
141
|
-
n > -1 ? t.length > 1 && t.splice(n, 1) : t.push(e),
|
|
142
|
-
} else
|
|
143
|
-
|
|
169
|
+
function $(e, t) {
|
|
170
|
+
if (Z.value[t]?.disabled) return;
|
|
171
|
+
let n = L.value[t];
|
|
172
|
+
if (n && pe(n), fe(t), H.value) {
|
|
173
|
+
let t = [...U.value], n = t.indexOf(e);
|
|
174
|
+
n > -1 ? t.length > 1 && t.splice(n, 1) : t.push(e), D.value = t;
|
|
175
|
+
} else D.value = e;
|
|
176
|
+
Q(t);
|
|
177
|
+
}
|
|
178
|
+
function me(e) {
|
|
179
|
+
typeof e == "string" && (D.value = e);
|
|
144
180
|
}
|
|
145
|
-
return
|
|
146
|
-
|
|
147
|
-
let e =
|
|
148
|
-
e >= 0 &&
|
|
181
|
+
return E(() => {
|
|
182
|
+
K.value && typeof window < "u" && window.matchMedia && (Y = window.matchMedia(`(min-width: ${oe.value})`), J.value = Y.matches, Y.addEventListener("change", X)), S(() => {
|
|
183
|
+
let e = Z.value.findIndex((e) => W(e.value));
|
|
184
|
+
e >= 0 && Q(e);
|
|
149
185
|
});
|
|
150
|
-
}), (
|
|
186
|
+
}), T(() => {
|
|
187
|
+
Y?.removeEventListener("change", X), Y = null;
|
|
188
|
+
}), (f, y) => le.value ? (O(), h("div", {
|
|
189
|
+
key: 0,
|
|
190
|
+
class: C(N(e)("segmented-tabs__mobile w-fit", b.class))
|
|
191
|
+
}, [v(N(o), {
|
|
192
|
+
"model-value": D.value,
|
|
193
|
+
"onUpdate:modelValue": me
|
|
194
|
+
}, {
|
|
195
|
+
default: F(() => [v(N(n), {
|
|
196
|
+
"aria-label": ce.value,
|
|
197
|
+
class: C(N(e)("segmented-tabs__trigger text-small w-auto min-w-input-sm", K.value?.triggerClass))
|
|
198
|
+
}, {
|
|
199
|
+
default: F(() => [v(N(i))]),
|
|
200
|
+
_: 1
|
|
201
|
+
}, 8, ["aria-label", "class"]), v(N(r), null, {
|
|
202
|
+
default: F(() => [(O(!0), h(d, null, A(t.options, (e) => (O(), p(N(a), {
|
|
203
|
+
key: e.value,
|
|
204
|
+
value: e.value
|
|
205
|
+
}, {
|
|
206
|
+
default: F(() => [_(M(e.label), 1)]),
|
|
207
|
+
_: 2
|
|
208
|
+
}, 1032, ["value"]))), 128))]),
|
|
209
|
+
_: 1
|
|
210
|
+
})]),
|
|
211
|
+
_: 1
|
|
212
|
+
}, 8, ["model-value"])], 2)) : (O(), h("div", {
|
|
213
|
+
key: 1,
|
|
151
214
|
ref_key: "containerRef",
|
|
152
|
-
ref:
|
|
153
|
-
|
|
215
|
+
ref: P,
|
|
216
|
+
role: z.value ? "tablist" : "group",
|
|
217
|
+
class: C(N(e)("segmented-tabs", `segmented-tabs--${t.variant}`, B.value && "segmented-tabs--scroll scroll-fade-mask scrollbar-hidden", V.value && "segmented-tabs--auto scrollbar-hidden", b.class))
|
|
154
218
|
}, [
|
|
155
|
-
|
|
219
|
+
!z.value && !H.value ? (O(), h("div", {
|
|
156
220
|
key: 0,
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
221
|
+
ref_key: "indicatorRef",
|
|
222
|
+
ref: I,
|
|
223
|
+
class: C(["segmented-indicator", G.value ? "segmented-indicator--js" : "segmented-indicator--anchor"]),
|
|
224
|
+
style: w(G.value ? N(ue) : void 0)
|
|
225
|
+
}, null, 6)) : m("", !0),
|
|
226
|
+
!z.value && H.value ? (O(!0), h(d, { key: 1 }, A(U.value, (e) => (O(), h("div", {
|
|
227
|
+
key: "indicator-" + e,
|
|
228
|
+
class: "segmented-indicator segmented-indicator--js",
|
|
229
|
+
style: w(N(de)[e] ?? { opacity: "0" })
|
|
230
|
+
}, null, 4))), 128)) : m("", !0),
|
|
231
|
+
(O(!0), h(d, null, A(Z.value, (e, t) => (O(), h(d, { key: e.value }, [e.tooltip ? (O(), p(N(u), {
|
|
166
232
|
key: 0,
|
|
167
233
|
"delay-duration": 200
|
|
168
234
|
}, {
|
|
169
|
-
default:
|
|
170
|
-
default:
|
|
171
|
-
default:
|
|
235
|
+
default: F(() => [v(N(s), null, {
|
|
236
|
+
default: F(() => [v(N(c), { "as-child": "" }, {
|
|
237
|
+
default: F(() => [g("button", x({
|
|
172
238
|
ref_for: !0,
|
|
173
239
|
ref: (e) => {
|
|
174
|
-
e && (
|
|
240
|
+
e && (L.value[t] = e);
|
|
175
241
|
},
|
|
176
|
-
class:
|
|
177
|
-
|
|
242
|
+
class: "segmented-tab",
|
|
243
|
+
role: z.value ? "tab" : void 0
|
|
244
|
+
}, { ref_for: !0 }, z.value ? { "aria-selected": W(e.value) ? "true" : "false" } : { "aria-pressed": W(e.value) ? "true" : "false" }, {
|
|
178
245
|
disabled: e.disabled,
|
|
179
|
-
|
|
180
|
-
|
|
246
|
+
class: e.disabled && "is-disabled",
|
|
247
|
+
onClick: (n) => $(e.value, t)
|
|
248
|
+
}), [j(f.$slots, "option", {
|
|
181
249
|
option: e,
|
|
182
|
-
active:
|
|
183
|
-
}, () => [
|
|
250
|
+
active: W(e.value)
|
|
251
|
+
}, () => [_(M(e.label), 1)], !0)], 16, re)]),
|
|
184
252
|
_: 2
|
|
185
|
-
}, 1024),
|
|
253
|
+
}, 1024), v(N(l), {
|
|
186
254
|
side: "bottom",
|
|
187
255
|
"side-offset": 8
|
|
188
256
|
}, {
|
|
189
|
-
default:
|
|
257
|
+
default: F(() => [_(M(e.tooltip), 1)]),
|
|
190
258
|
_: 2
|
|
191
259
|
}, 1024)]),
|
|
192
260
|
_: 2
|
|
193
261
|
}, 1024)]),
|
|
194
262
|
_: 2
|
|
195
|
-
}, 1024)) : (
|
|
263
|
+
}, 1024)) : (O(), h("button", x({
|
|
196
264
|
key: 1,
|
|
197
265
|
ref_for: !0,
|
|
198
266
|
ref: (e) => {
|
|
199
|
-
e && (
|
|
267
|
+
e && (L.value[t] = e);
|
|
200
268
|
},
|
|
201
|
-
class:
|
|
202
|
-
|
|
269
|
+
class: "segmented-tab",
|
|
270
|
+
role: z.value ? "tab" : void 0
|
|
271
|
+
}, { ref_for: !0 }, z.value ? { "aria-selected": W(e.value) ? "true" : "false" } : { "aria-pressed": W(e.value) ? "true" : "false" }, {
|
|
203
272
|
disabled: e.disabled,
|
|
204
|
-
|
|
205
|
-
|
|
273
|
+
class: e.disabled && "is-disabled",
|
|
274
|
+
onClick: (n) => $(e.value, t)
|
|
275
|
+
}), [j(f.$slots, "option", {
|
|
206
276
|
option: e,
|
|
207
|
-
active:
|
|
208
|
-
}, () => [
|
|
209
|
-
],
|
|
210
|
-
}
|
|
211
|
-
}), [["__scopeId", "data-v-795d5fdc"]]), F = /* @__PURE__ */ h({
|
|
212
|
-
__name: "BouncyTabs",
|
|
213
|
-
props: /* @__PURE__ */ g({
|
|
214
|
-
options: {},
|
|
215
|
-
variant: { default: "default" },
|
|
216
|
-
overflow: { default: "none" },
|
|
217
|
-
class: { type: [
|
|
218
|
-
Boolean,
|
|
219
|
-
null,
|
|
220
|
-
String,
|
|
221
|
-
Object,
|
|
222
|
-
Array
|
|
223
|
-
] }
|
|
224
|
-
}, {
|
|
225
|
-
modelValue: { required: !0 },
|
|
226
|
-
modelModifiers: {}
|
|
227
|
-
}),
|
|
228
|
-
emits: ["update:modelValue"],
|
|
229
|
-
setup(e) {
|
|
230
|
-
let t = e, n = O(e, "modelValue");
|
|
231
|
-
function r(e) {
|
|
232
|
-
n.value = e;
|
|
233
|
-
}
|
|
234
|
-
return (i, a) => (S(), l(P, {
|
|
235
|
-
options: e.options,
|
|
236
|
-
"model-value": n.value,
|
|
237
|
-
variant: e.variant,
|
|
238
|
-
overflow: e.overflow,
|
|
239
|
-
class: v(t.class),
|
|
240
|
-
"multi-select": !1,
|
|
241
|
-
"onUpdate:modelValue": r
|
|
242
|
-
}, null, 8, [
|
|
243
|
-
"options",
|
|
244
|
-
"model-value",
|
|
245
|
-
"variant",
|
|
246
|
-
"overflow",
|
|
247
|
-
"class"
|
|
248
|
-
]));
|
|
277
|
+
active: W(e.value)
|
|
278
|
+
}, () => [_(M(e.label), 1)], !0)], 16, ie))], 64))), 128))
|
|
279
|
+
], 10, ne));
|
|
249
280
|
}
|
|
250
|
-
});
|
|
281
|
+
}), [["__scopeId", "data-v-dd84d37c"]]);
|
|
251
282
|
//#endregion
|
|
252
|
-
export {
|
|
283
|
+
export { I as SegmentedTabs };
|
package/dist/timeline.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-ok8pgSl5.js";
|
|
2
|
-
import { t } from "./HoverPopover-
|
|
2
|
+
import { t } from "./HoverPopover-2LOIW34a.js";
|
|
3
3
|
import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, createVNode as l, defineComponent as u, guardReactiveProps as d, normalizeClass as f, normalizeProps as p, normalizeStyle as m, openBlock as h, ref as g, renderList as _, renderSlot as v, toDisplayString as y, unref as b, withCtx as x } from "vue";
|
|
4
4
|
//#region src/components/custom/timeline/geometry.ts
|
|
5
5
|
function S(e) {
|
package/dist/toast.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, i as n, n as r, o as i, r as a, s as o, t as s } from "./Toaster-
|
|
1
|
+
import { a as e, c as t, i as n, n as r, o as i, r as a, s as o, t as s } from "./Toaster-1rYWrmAm.js";
|
|
2
2
|
export { t as Toast, o as ToastAction, i as ToastClose, e as ToastDescription, n as ToastTitle, s as Toaster, r as toast, a as useToast };
|
package/dist/toggle-group.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./ToggleGroupItem-
|
|
1
|
+
import { n as e, t } from "./ToggleGroupItem-Cev4pOVK.js";
|
|
2
2
|
export { e as ToggleGroup, t as ToggleGroupItem };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, t } from "./constants-
|
|
1
|
+
import { n as e, t } from "./constants-yKeKnE84.js";
|
|
2
2
|
import { getCurrentScope as n, onScopeDispose as r, readonly as i, ref as a, shallowRef as o, toValue as s, watch as c } from "vue";
|
|
3
3
|
import { SmoothProgress as l } from "@mkbabb/keyframes.js";
|
|
4
4
|
//#region src/composables/motion/useAnimatedNumber.ts
|
|
@@ -22,7 +22,11 @@ var M = k.use, N = {
|
|
|
22
22
|
class: "flex gap-2 overflow-x-auto scroll-fade-mask scrollbar-hidden",
|
|
23
23
|
role: "tablist",
|
|
24
24
|
"aria-label": "Presets"
|
|
25
|
-
}, F = [
|
|
25
|
+
}, F = [
|
|
26
|
+
"aria-selected",
|
|
27
|
+
"data-active",
|
|
28
|
+
"onClick"
|
|
29
|
+
], I = { class: "flex flex-col" }, L = {
|
|
26
30
|
key: 1,
|
|
27
31
|
class: "configurator-footer shrink-0 border-t border-border/40 px-3 py-2"
|
|
28
32
|
}, R = /* @__PURE__ */ p({
|
|
@@ -67,6 +71,7 @@ var M = k.use, N = {
|
|
|
67
71
|
}
|
|
68
72
|
});
|
|
69
73
|
return (n, r) => (_(), l("section", {
|
|
74
|
+
"data-slot": "configurator",
|
|
70
75
|
class: h(a.value),
|
|
71
76
|
style: g(d.value)
|
|
72
77
|
}, [u("div", { class: h(w(e)("configurator-stage relative min-h-0 min-w-0 overflow-hidden", f.value)) }, [x(n.$slots, "stage")], 2), u("aside", { class: h(w(e)("configurator-aside flex min-h-0 min-w-0 flex-col border-t border-border/40 lg:border-t-0", m.value, p.value)) }, [
|
|
@@ -77,8 +82,10 @@ var M = k.use, N = {
|
|
|
77
82
|
key: n.key,
|
|
78
83
|
type: "button",
|
|
79
84
|
role: "tab",
|
|
85
|
+
"data-slot": "configurator-preset",
|
|
80
86
|
"aria-selected": n.key === t.activePreset,
|
|
81
|
-
|
|
87
|
+
"data-active": n.key === t.activePreset || void 0,
|
|
88
|
+
class: h(w(e)("tap-squish focus-ring transition-control shrink-0 rounded-pill border px-3 py-1 text-xs font-medium", n.key === t.activePreset ? "glass-quiet border-border/50 text-foreground" : "border-border/40 bg-card/40 text-foreground hover:bg-card/70")),
|
|
82
89
|
onClick: (e) => i("select-preset", n.key)
|
|
83
90
|
}, S(n.label), 11, F))), 128))])])])) : c("", !0),
|
|
84
91
|
u("div", { class: h(w(e)("configurator-controls flex-1 min-h-0", v.value)) }, [x(n.$slots, "controls", {
|
|
@@ -101,7 +108,7 @@ var M = k.use, N = {
|
|
|
101
108
|
"aria-hidden",
|
|
102
109
|
"inert",
|
|
103
110
|
"data-state"
|
|
104
|
-
], G = { class: "min-h-0 overflow-hidden" }, K = /* @__PURE__ */ p({
|
|
111
|
+
], G = { class: "min-h-0 overflow-hidden" }, K = /* @__PURE__ */ r(/* @__PURE__ */ p({
|
|
105
112
|
__name: "ConfiguratorLayer",
|
|
106
113
|
props: /* @__PURE__ */ m({
|
|
107
114
|
label: {},
|
|
@@ -143,17 +150,19 @@ var M = k.use, N = {
|
|
|
143
150
|
}
|
|
144
151
|
let p = s(() => i.value ? "open" : "closed");
|
|
145
152
|
return (a, s) => (_(), l("div", {
|
|
153
|
+
"data-slot": "configurator-layer",
|
|
146
154
|
class: h(w(e)("configurator-layer border-b border-border/40 last:border-b-0", r.class)),
|
|
147
155
|
"data-state": p.value
|
|
148
156
|
}, [u("button", {
|
|
149
157
|
type: "button",
|
|
150
|
-
|
|
158
|
+
"data-slot": "configurator-layer-trigger",
|
|
159
|
+
class: h(w(e)("configurator-layer-trigger", "group flex w-full items-center justify-between gap-2 px-3 py-2", "tap-squish transition-control text-left hover:bg-foreground/5 focus-ring")),
|
|
151
160
|
"aria-expanded": i.value,
|
|
152
161
|
"aria-controls": o.value,
|
|
153
162
|
"data-state": p.value,
|
|
154
163
|
onClick: d
|
|
155
164
|
}, [u("div", V, [u("span", H, S(t.label), 1), t.sub ? (_(), l("span", U, S(t.sub), 1)) : c("", !0)]), f(w(n), {
|
|
156
|
-
class: "h-4 w-4 shrink-0 text-muted-foreground
|
|
165
|
+
class: "configurator-layer-chevron h-4 w-4 shrink-0 text-muted-foreground group-data-[state=open]:rotate-180",
|
|
157
166
|
"aria-hidden": "true"
|
|
158
167
|
})], 10, B), u("div", {
|
|
159
168
|
id: o.value,
|
|
@@ -161,11 +170,11 @@ var M = k.use, N = {
|
|
|
161
170
|
"aria-hidden": !i.value,
|
|
162
171
|
inert: !i.value || void 0,
|
|
163
172
|
"data-state": p.value,
|
|
164
|
-
class: "configurator-layer-region grid
|
|
173
|
+
class: "configurator-layer-region grid motion-reduce:transition-none",
|
|
165
174
|
style: g({ gridTemplateRows: i.value ? "1fr" : "0fr" })
|
|
166
|
-
}, [u("div", G, [u("div", { class: h(w(e)("configurator-layer-body px-3 py-2 space-y-2", r.dividers && "[&>*+*]:border-t [&>*+*]:border-border/30 [&>*+*]:pt-2", r.bodyClass)) }, [x(a.$slots, "default")], 2)])], 12, W)], 10, z));
|
|
175
|
+
}, [u("div", G, [u("div", { class: h(w(e)("configurator-layer-body px-3 py-2 space-y-2", r.dividers && "[&>*+*]:border-t [&>*+*]:border-border/30 [&>*+*]:pt-2", r.bodyClass)) }, [x(a.$slots, "default", {}, void 0, !0)], 2)])], 12, W)], 10, z));
|
|
167
176
|
}
|
|
168
|
-
}), q = ["data-density"], J = { class: "flex items-baseline justify-between gap-3" }, Y = { class: "flex min-w-0 items-baseline gap-2" }, X = {
|
|
177
|
+
}), [["__scopeId", "data-v-1e14935d"]]), q = ["data-density"], J = { class: "flex items-baseline justify-between gap-3" }, Y = { class: "flex min-w-0 items-baseline gap-2" }, X = {
|
|
169
178
|
key: 0,
|
|
170
179
|
class: "truncate text-micro font-mono text-muted-foreground/70"
|
|
171
180
|
}, Z = ["aria-label"], Q = { class: "flex items-center" }, $ = {
|
|
@@ -191,6 +200,7 @@ var M = k.use, N = {
|
|
|
191
200
|
setup(t, { emit: n }) {
|
|
192
201
|
let r = t, i = n, o = M(), p = s(() => r.density ?? o?.value ?? void 0);
|
|
193
202
|
return (n, o) => (_(), l("div", {
|
|
203
|
+
"data-slot": "configurator-row",
|
|
194
204
|
class: h(w(e)("configurator-row flex flex-col gap-1.5 py-2", r.class)),
|
|
195
205
|
"data-density": p.value
|
|
196
206
|
}, [
|
|
@@ -200,7 +210,8 @@ var M = k.use, N = {
|
|
|
200
210
|
}), t.name ? (_(), l("span", X, S(t.name), 1)) : c("", !0)]), t.canReset ? (_(), l("button", {
|
|
201
211
|
key: 0,
|
|
202
212
|
type: "button",
|
|
203
|
-
|
|
213
|
+
"data-slot": "configurator-reset",
|
|
214
|
+
class: "tap-squish transition-control focus-ring inline-flex h-6 w-6 items-center justify-center rounded-pill text-muted-foreground/60 hover:bg-foreground/5 hover:text-foreground",
|
|
204
215
|
"aria-label": `Reset ${t.label}`,
|
|
205
216
|
onClick: o[0] ||= (e) => i("reset")
|
|
206
217
|
}, [f(w(O), {
|
|
@@ -211,7 +222,7 @@ var M = k.use, N = {
|
|
|
211
222
|
t.description ? (_(), l("p", $, S(t.description), 1)) : c("", !0)
|
|
212
223
|
], 10, q));
|
|
213
224
|
}
|
|
214
|
-
}), [["__scopeId", "data-v-
|
|
225
|
+
}), [["__scopeId", "data-v-377e5920"]]);
|
|
215
226
|
//#endregion
|
|
216
227
|
//#region src/components/custom/configurator/useConfiguratorState.ts
|
|
217
228
|
function te(e) {
|
|
@@ -41,7 +41,7 @@ function o(e, t = {}) {
|
|
|
41
41
|
preserveAspectRatio="none" x="0%" y="0%" width="100%" height="100%" />
|
|
42
42
|
<feBlend in="blurred" in2="specular" mode="screen" result="final" />
|
|
43
43
|
</filter>
|
|
44
|
-
`, document.body.appendChild(p), e.style.backdropFilter = `url(#${n}) blur(${o * .15}px) saturate(1.6) brightness(1.05)`, e.style.setProperty("-webkit-backdrop-filter", e.style.backdropFilter), e.style.border = "1px solid
|
|
44
|
+
`, document.body.appendChild(p), e.style.backdropFilter = `url(#${n}) blur(${o * .15}px) saturate(var(--glass-saturate, 1.6)) brightness(1.05)`, e.style.setProperty("-webkit-backdrop-filter", e.style.backdropFilter), e.style.border = "1px solid var(--glass-border-floating)", e.style.boxShadow = "var(--glass-material-rim), var(--glass-shadow-floating)";
|
|
45
45
|
let h = new ResizeObserver(() => {
|
|
46
46
|
let t = e.getBoundingClientRect(), n = Math.max(Math.ceil(t.width / 4), 32), a = Math.max(Math.ceil(t.height / 4), 32);
|
|
47
47
|
r(c, n, a, s), i(l, n, a);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
//#region src/composables/motion/useViewTransition.ts
|
|
2
|
+
function e() {
|
|
3
|
+
return typeof document < "u" && typeof document.startViewTransition == "function";
|
|
4
|
+
}
|
|
5
|
+
function t(e, t) {
|
|
6
|
+
let n = typeof document > "u" ? void 0 : document;
|
|
7
|
+
if (!n || typeof n.startViewTransition != "function") return e(), {
|
|
8
|
+
finished: Promise.resolve(),
|
|
9
|
+
transitioned: !1
|
|
10
|
+
};
|
|
11
|
+
let r = t?.types && t.types.length > 0 ? n.startViewTransition({
|
|
12
|
+
update: () => e(),
|
|
13
|
+
types: t.types
|
|
14
|
+
}) : n.startViewTransition(() => e());
|
|
15
|
+
return r.ready?.catch(() => {}), {
|
|
16
|
+
finished: r.finished.then(() => void 0, () => void 0),
|
|
17
|
+
transitioned: !0
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
export { e as n, t };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
//#region src/utils/moveBefore.ts
|
|
2
|
+
function e(e, t, n) {
|
|
3
|
+
let r = e;
|
|
4
|
+
typeof r.moveBefore == "function" ? r.moveBefore(t, n) : e.insertBefore(t, n);
|
|
5
|
+
}
|
|
6
|
+
function t() {
|
|
7
|
+
return typeof Element < "u" && "moveBefore" in Element.prototype;
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/utils/platformSupport.ts
|
|
11
|
+
function n() {
|
|
12
|
+
return typeof globalThis.scheduler?.postTask == "function";
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/composables/motion/useRouteTransition.ts
|
|
16
|
+
function r() {
|
|
17
|
+
return typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
18
|
+
}
|
|
19
|
+
function i() {
|
|
20
|
+
return typeof document < "u" && typeof document.startViewTransition == "function";
|
|
21
|
+
}
|
|
22
|
+
function a() {
|
|
23
|
+
function e(e, t) {
|
|
24
|
+
let n = typeof document > "u" ? void 0 : document;
|
|
25
|
+
if (!n || typeof n.startViewTransition != "function" || r()) return {
|
|
26
|
+
finished: (async () => e())().then(() => void 0, () => void 0),
|
|
27
|
+
transitioned: !1
|
|
28
|
+
};
|
|
29
|
+
let i = t?.types && t.types.length > 0 ? n.startViewTransition({
|
|
30
|
+
update: () => e(),
|
|
31
|
+
types: t.types
|
|
32
|
+
}) : n.startViewTransition(() => e());
|
|
33
|
+
return i.ready?.catch(() => {}), {
|
|
34
|
+
finished: i.finished.then(() => void 0, () => void 0),
|
|
35
|
+
transitioned: !0
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
navigate: e,
|
|
40
|
+
supported: i()
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region src/composables/motion/vReveal.ts
|
|
45
|
+
function o(e, t) {
|
|
46
|
+
e.setAttribute("data-reveal", t.arg === "fade" ? "fade" : ""), e.style.setProperty("--d", String(t.value ?? 0));
|
|
47
|
+
}
|
|
48
|
+
var s = {
|
|
49
|
+
mounted: o,
|
|
50
|
+
updated: o
|
|
51
|
+
};
|
|
52
|
+
//#endregion
|
|
53
|
+
export { e as a, n as i, i as n, t as o, a as r, s as t };
|