@mkbabb/glass-ui 3.0.0 → 3.1.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/{CardFooter-Yi0xtLLd.js → CardFooter-CSGcJkqa.js} +1 -1
- package/dist/{CommandShortcut-BNDzfFnB.js → CommandShortcut-DWT19a2Y.js} +3 -3
- package/dist/{ContextMenuSubContent-DLEyeqbh.js → ContextMenuSubContent-gAFxJ-qi.js} +4 -4
- package/dist/{DataTable-Ce00dbHD.js → DataTable-R8-Zidms.js} +3 -3
- package/dist/{DialogContent-DSo7PKlU.js → DialogContent-2fALDSvc.js} +3 -3
- package/dist/{DialogFooter-D5KY6sCX.js → DialogFooter-ClrNEOVU.js} +2 -2
- package/dist/{DiscoGlyph-wRA02zAJ.js → DiscoGlyph-C3JfMnRV.js} +1 -1
- package/dist/{GlyphFace-BnPMUZ16.js → GlyphFace-BRS8vUb7.js} +1 -1
- package/dist/HoverPopover-CWFCfLx3.js +96 -0
- package/dist/{IconTooltip-GIeWdo64.js → IconTooltip-BkaA7tZ2.js} +1 -1
- package/dist/{Input-CBvqW8kZ.js → Input-DDpFn568.js} +3 -5
- package/dist/Label-DJty89bp.js +36 -0
- package/dist/{MetricBadge-DRBB18Xq.js → MetricBadge-DmAihkXd.js} +1 -1
- package/dist/{Notification-D97JO0fK.js → Notification-OqIpADml.js} +3 -3
- package/dist/NumberFieldContent-DTH9gb_N.js +141 -0
- package/dist/{PopoverContent-BCH4eYs8.js → PopoverContent-EiklFrna.js} +1 -1
- package/dist/{Progress-CCH-2UBR.js → Progress-FApA9fm_.js} +1 -1
- package/dist/{ScrollingText-7P8skg5W.js → ScrollingText-BFd0i2zJ.js} +2 -2
- package/dist/{SelectScrollDownButton-BwTexKeY.js → SelectScrollDownButton-Dth8-wXQ.js} +4 -4
- package/dist/{Toaster-CY8gJu9E.js → Toaster-Bjlunvq4.js} +1 -1
- package/dist/UnderlineTabs-DAWMLmJG.js +37 -0
- package/dist/animated-digit.js +2 -2
- package/dist/api/index.d.ts +2 -0
- package/dist/api.js +1 -1
- package/dist/aurora.js +3 -3
- package/dist/badge.js +1 -1
- package/dist/{button-BlOW34DT.js → button-C0aHmBbt.js} +2 -0
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/carousel.js +5 -5
- package/dist/{check-Nuw7H9Yh.js → check-dwgetki8.js} +1 -1
- package/dist/{chevron-down-Du2b9vY_.js → chevron-down-DILQA1t6.js} +1 -1
- package/dist/{chevron-right-CtDxpE3w.js → chevron-right-fS7fal2t.js} +1 -1
- package/dist/{chevron-up-CenYokvI.js → chevron-up-BtYjYQOS.js} +1 -1
- package/dist/collapsible.js +1 -1
- package/dist/command.js +1 -1
- package/dist/components/custom/dialog-native/GlassDialogNative.vue.d.ts +57 -0
- package/dist/components/custom/dialog-native/index.d.ts +1 -0
- package/dist/components/custom/dock/composables/useLayerTransition.d.ts +20 -10
- package/dist/components/custom/hover-popover/HoverPopover.vue.d.ts +26 -4
- package/dist/components/custom/labeled-field/LabeledField.vue.d.ts +16 -2
- package/dist/components/custom/labeled-field/LabeledInput.vue.d.ts +17 -1
- package/dist/components/custom/labeled-field/LabeledSelect.vue.d.ts +2 -0
- package/dist/components/custom/labeled-field/LabeledSlider.vue.d.ts +2 -0
- package/dist/components/custom/labeled-field/LabeledSwitch.vue.d.ts +2 -0
- package/dist/components/ui/input/Input.vue.d.ts +10 -7
- package/dist/components/ui/label/Label.vue.d.ts +8 -0
- package/dist/components/ui/textarea/Textarea.vue.d.ts +45 -8
- package/dist/composables/dom/index.d.ts +1 -0
- package/dist/composables/dom/useUserInvalidAria.d.ts +32 -0
- package/dist/composables/motion/core/index.d.ts +2 -0
- package/dist/composables/motion/supportsCssTimeline.d.ts +8 -0
- package/dist/composables/motion/useRAFLoop.d.ts +7 -0
- package/dist/composables/motion/useScrollProgress.d.ts +6 -2
- package/dist/composables/motion/useStaggerReveal.d.ts +6 -0
- package/dist/composables/motion/useViewTransition.d.ts +31 -0
- package/dist/composables/motion/useYieldToMain.d.ts +29 -0
- package/dist/configurator.js +1 -1
- package/dist/confirm-dialog.js +3 -3
- package/dist/context-menu.js +2 -2
- package/dist/controls.js +2 -2
- package/dist/{createLucideIcon-rHu18UQW.js → createLucideIcon-Bn9a1b70.js} +2 -2
- package/dist/dark.js +1 -1
- package/dist/data-table.js +1 -1
- package/dist/dialog.js +2 -2
- package/dist/disco-glyph.js +1 -1
- package/dist/dock.js +196 -177
- package/dist/dom.js +5 -4
- package/dist/{dropdown-menu-gHSkffW7.js → dropdown-menu-BvRUamNs.js} +4 -4
- package/dist/dropdown-menu.js +1 -1
- package/dist/expandable-container.js +4 -4
- package/dist/forms.d.ts +1 -0
- package/dist/forms.js +47 -42
- package/dist/glass-carousel.js +1 -1
- package/dist/glass-panel.js +2 -2
- package/dist/glass-ui.css +1 -1
- package/dist/glass-ui.js +156 -275
- package/dist/glyph-face.js +2 -2
- package/dist/header-ribbon.js +1 -1
- package/dist/hover-card.js +1 -1
- package/dist/hover-popover.js +1 -1
- package/dist/icon-tooltip.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/instrument-chassis.js +1 -1
- package/dist/instrument-rail.js +1 -1
- package/dist/keyboard.js +1 -1
- package/dist/label.js +1 -1
- package/dist/labeled-field.js +96 -57
- package/dist/metric-badge.js +1 -1
- package/dist/metric-stack.js +1 -1
- package/dist/{minimize-2-C_oyKVwZ.js → minimize-2-LsCJ_eNt.js} +1 -1
- package/dist/motion-core.js +135 -98
- package/dist/motion.js +3 -3
- package/dist/notification.js +1 -1
- package/dist/number-field.d.ts +1 -0
- package/dist/number-field.js +2 -0
- package/dist/paper-backdrop.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/progress.js +1 -1
- package/dist/pulse.js +1 -1
- package/dist/reactive.js +2 -2
- package/dist/responsive-tabs.js +3 -3
- package/dist/scrolling-text.js +1 -1
- package/dist/{search-7XEx_6hq.js → search-DBAiUABx.js} +1 -1
- package/dist/search.js +7 -7
- package/dist/select.js +3 -3
- package/dist/separator.js +1 -1
- package/dist/{sheet-BsBdO5jq.js → sheet-CukNDezz.js} +53 -53
- package/dist/sheet.js +1 -1
- package/dist/{slider-BQaLYFLh.js → slider-DJvHkTRe.js} +3 -3
- package/dist/slider.js +1 -1
- package/dist/sortable-list.js +2 -2
- package/dist/styles/animations.css +77 -0
- package/dist/styles/cards.css +6 -2
- package/dist/styles/dock.css +37 -14
- package/dist/styles/glass.css +89 -6
- package/dist/styles/index.css +10 -1
- package/dist/styles/scroll-driven.css +72 -0
- package/dist/styles/theme.css +3 -0
- package/dist/styles/tokens.css +237 -24
- package/dist/styles/typography.css +21 -0
- package/dist/styles/utilities.css +176 -23
- package/dist/styles/view-transition.css +62 -0
- package/dist/switch.d.ts +1 -0
- package/dist/switch.js +2 -0
- package/dist/tabs.js +40 -36
- package/dist/timeline.js +2 -2
- package/dist/toast.js +1 -1
- package/dist/toggle-group.js +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/typewriter.js +1 -1
- package/dist/{useAnimatedNumber-2l13GibX.js → useAnimatedNumber-DKQYVB7s.js} +1 -1
- package/dist/{useConfiguratorState-BpZi8QJu.js → useConfiguratorState-BR5vUDL8.js} +4 -4
- package/dist/{useIdleReady-DlzJicQH.js → useIdleReady-Cmkhm03v.js} +1 -1
- package/dist/{useTouchGate-BhhEMlwJ.js → useTouchGate-D9Zvrzyc.js} +1 -1
- package/dist/useUserInvalidAria-DVu1eTXG.js +29 -0
- package/dist/useViewTransition-DYIK6Gzb.js +16 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/moveBefore.d.ts +15 -0
- package/dist/{x-Cb3NE2Ne.js → x-q7pJa83X.js} +1 -1
- package/package.json +17 -3
- package/src/styles/animations.css +77 -0
- package/src/styles/cards.css +6 -2
- package/src/styles/dock.css +37 -14
- package/src/styles/glass.css +89 -6
- package/src/styles/index.css +10 -1
- package/src/styles/scroll-driven.css +72 -0
- package/src/styles/theme.css +3 -0
- package/src/styles/tokens.css +237 -24
- package/src/styles/typography.css +21 -0
- package/src/styles/utilities.css +176 -23
- package/src/styles/view-transition.css +62 -0
- package/dist/HoverPopover-Btv4RQfv.js +0 -80
- package/dist/Label-C8QMJSsf.js +0 -32
- package/dist/UnderlineTabs-BtrUcXn-.js +0 -64
- /package/dist/{CollapsibleContent-DHRuXE3P.js → CollapsibleContent-CVMOcYlV.js} +0 -0
- /package/dist/{ContextMenuContent-CvXfU5qz.js → ContextMenuContent-otjFIu8v.js} +0 -0
- /package/dist/{HoverCardContent-4nN5-5bz.js → HoverCardContent-DaGrgJBO.js} +0 -0
- /package/dist/{InstrumentChassis-DOaVYyWq.js → InstrumentChassis-CnHTMxds.js} +0 -0
- /package/dist/{InstrumentRail-jHDqXj70.js → InstrumentRail-C6dEbi8E.js} +0 -0
- /package/dist/{ModalOverlay-DKLVY-cj.js → ModalOverlay-iWiAgbYH.js} +0 -0
- /package/dist/{PaperBackdrop-Bc2drCqJ.js → PaperBackdrop-CeZ-w0R0.js} +0 -0
- /package/dist/{SelectGroup-O69GTQ77.js → SelectGroup-DdR4tdDY.js} +0 -0
- /package/dist/{SelectSeparator-GTHxKO0a.js → SelectSeparator-CXm_hlqA.js} +0 -0
- /package/dist/{Separator-_NCypg_C.js → Separator-D8AUMhxY.js} +0 -0
- /package/dist/{Switch-CL0uxu8F.js → Switch-Cr1t_F_U.js} +0 -0
- /package/dist/{ToggleGroupItem-BYG_8M9M.js → ToggleGroupItem-OesUouE7.js} +0 -0
- /package/dist/{TooltipProvider-C5QLSPto.js → TooltipProvider-DE78vbEP.js} +0 -0
- /package/dist/{_plugin-vue_export-helper-n-_DRHWS.js → _plugin-vue_export-helper-Dq1MygBL.js} +0 -0
- /package/dist/{badge-BbxVKZfw.js → badge-x46my_Fo.js} +0 -0
- /package/dist/{constants-D-8FN28s.js → constants-DwBwnG8N.js} +0 -0
- /package/dist/{dockContext-BDGSrwsV.js → dockContext-D5NZCWJs.js} +0 -0
- /package/dist/{keys-DVkcUktU.js → keys-CaTQS-vx.js} +0 -0
- /package/dist/{menuItemVariants-B2nDL7zH.js → menuItemVariants-BsbGNq9C.js} +0 -0
- /package/dist/{presets-BMzCDrmR.js → presets-a-D93K1S.js} +0 -0
- /package/dist/{useGlassRenderer-DMDdMH55.js → useGlassRenderer-Ds-nmrGz.js} +0 -0
- /package/dist/{useGlobalDark-PMiP5Jku.js → useGlobalDark-B0WvLJE3.js} +0 -0
- /package/dist/{useIntersectionPause-CXYfYg_C.js → useIntersectionPause-IY2CwPQb.js} +0 -0
- /package/dist/{useInterval-COlTCeVa.js → useInterval-DVgGUf_y.js} +0 -0
- /package/dist/{useKeyboardShortcuts-CPO4AhLx.js → useKeyboardShortcuts-Dpw_RUcB.js} +0 -0
- /package/dist/{useResizeObserver-F4aRR4Cj.js → useResizeObserver-Cg9npuM3.js} +0 -0
- /package/dist/{useSortable-Ck0rBJ4g.js → useSortable-Cq2Y1JLO.js} +0 -0
- /package/dist/{useSpringMount-BTRBNzXP.js → useSpringMount-Cfk1XK1R.js} +0 -0
- /package/dist/{useTimer-lp5NlH4w.js → useTimer-NAaj9zNq.js} +0 -0
package/dist/motion-core.js
CHANGED
|
@@ -1,17 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { n as e, t } from "./useViewTransition-DYIK6Gzb.js";
|
|
2
|
+
import { t as n } from "./useIntersectionPause-IY2CwPQb.js";
|
|
3
|
+
import { n as r, t as i } from "./constants-DwBwnG8N.js";
|
|
4
|
+
import { computed as a, getCurrentScope as o, onBeforeUnmount as s, onMounted as c, onScopeDispose as l, reactive as u, readonly as d, ref as f, unref as p, watch as m } from "vue";
|
|
5
|
+
//#region src/composables/motion/supportsCssTimeline.ts
|
|
6
|
+
function h(e, t) {
|
|
7
|
+
return typeof CSS > "u" || typeof CSS.supports != "function" ? !1 : CSS.supports("animation-timeline", e) && !CSS.supports("animation-timeline", t);
|
|
8
|
+
}
|
|
9
|
+
function g() {
|
|
10
|
+
return h("scroll()", "gl-not-a-real-timeline");
|
|
11
|
+
}
|
|
12
|
+
function _() {
|
|
13
|
+
return h("view()", "gl-not-a-real-timeline");
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
4
16
|
//#region src/composables/motion/useStaggerReveal.ts
|
|
5
|
-
|
|
6
|
-
|
|
17
|
+
var v = _();
|
|
18
|
+
function y(e = {}) {
|
|
19
|
+
let { staggerMs: t = 60, once: n = !0, rootMargin: r = "0px", threshold: i = .15 } = e, a = f([]), o = u({}), c = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new Set(), d = v || typeof IntersectionObserver > "u" ? null : new IntersectionObserver((e) => {
|
|
7
20
|
for (let r of e) {
|
|
8
|
-
let e = r.target, i =
|
|
21
|
+
let e = r.target, i = c.get(e);
|
|
9
22
|
if (i !== void 0) if (r.isIntersecting) {
|
|
10
23
|
let r = setTimeout(() => {
|
|
11
|
-
|
|
24
|
+
o[i] = !0, l.delete(r);
|
|
12
25
|
}, t * i);
|
|
13
|
-
|
|
14
|
-
} else n || (
|
|
26
|
+
l.add(r), n && d?.unobserve(e);
|
|
27
|
+
} else n || (o[i] = !1);
|
|
15
28
|
}
|
|
16
29
|
}, {
|
|
17
30
|
rootMargin: r,
|
|
@@ -19,25 +32,26 @@ function p(e = {}) {
|
|
|
19
32
|
});
|
|
20
33
|
function p(e, t) {
|
|
21
34
|
if (!e) return;
|
|
22
|
-
let n = t ??
|
|
23
|
-
|
|
35
|
+
let n = t ?? a.value.length;
|
|
36
|
+
c.has(e) || (c.set(e, n), a.value.push(e), o[n] = v, d?.observe(e));
|
|
24
37
|
}
|
|
25
|
-
return
|
|
26
|
-
|
|
27
|
-
for (let e of
|
|
28
|
-
|
|
38
|
+
return s(() => {
|
|
39
|
+
d?.disconnect();
|
|
40
|
+
for (let e of l) clearTimeout(e);
|
|
41
|
+
l.clear();
|
|
29
42
|
}), {
|
|
30
|
-
targets:
|
|
43
|
+
targets: a,
|
|
31
44
|
register: p,
|
|
32
|
-
revealed:
|
|
45
|
+
revealed: o
|
|
33
46
|
};
|
|
34
47
|
}
|
|
35
48
|
//#endregion
|
|
36
49
|
//#region src/composables/motion/useScrollProgress.ts
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
50
|
+
var b = g();
|
|
51
|
+
function x(e) {
|
|
52
|
+
let { offset: t = 0, trackExit: n = !1 } = e, r = f(0), i = 0, a = null;
|
|
53
|
+
function o() {
|
|
54
|
+
let i = p(e.target);
|
|
41
55
|
if (!i) return;
|
|
42
56
|
let a = i.getBoundingClientRect(), o = window.innerHeight + t, s = o - (n ? -a.height : 0);
|
|
43
57
|
if (s === 0) {
|
|
@@ -49,144 +63,167 @@ function m(e) {
|
|
|
49
63
|
}
|
|
50
64
|
function l() {
|
|
51
65
|
i ||= requestAnimationFrame(() => {
|
|
52
|
-
i = 0,
|
|
66
|
+
i = 0, o();
|
|
53
67
|
});
|
|
54
68
|
}
|
|
55
|
-
return
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
t
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
69
|
+
return c(() => {
|
|
70
|
+
if (o(), b) return;
|
|
71
|
+
window.addEventListener("scroll", l, { passive: !0 }), window.addEventListener("resize", l, { passive: !0 });
|
|
72
|
+
let t = p(e.target);
|
|
73
|
+
t && typeof ResizeObserver < "u" && (a = new ResizeObserver(l), a.observe(t));
|
|
74
|
+
}), b || m(() => p(e.target), (e, t) => {
|
|
75
|
+
t && a && a.unobserve(t), e && a && a.observe(e), l();
|
|
76
|
+
}), s(() => {
|
|
77
|
+
window.removeEventListener("scroll", l), window.removeEventListener("resize", l), i && cancelAnimationFrame(i), a?.disconnect(), a = null;
|
|
63
78
|
}), r;
|
|
64
79
|
}
|
|
65
80
|
//#endregion
|
|
81
|
+
//#region src/composables/motion/useYieldToMain.ts
|
|
82
|
+
function S() {
|
|
83
|
+
let e = globalThis.scheduler;
|
|
84
|
+
return typeof e?.yield == "function" ? e.yield.bind(e) : null;
|
|
85
|
+
}
|
|
86
|
+
function C() {
|
|
87
|
+
let e = S();
|
|
88
|
+
return e ? e() : typeof MessageChannel == "function" ? new Promise((e) => {
|
|
89
|
+
let t = new MessageChannel();
|
|
90
|
+
t.port1.onmessage = () => {
|
|
91
|
+
t.port1.onmessage = null, e();
|
|
92
|
+
}, t.port2.postMessage(void 0);
|
|
93
|
+
}) : new Promise((e) => setTimeout(e, 0));
|
|
94
|
+
}
|
|
95
|
+
function w() {
|
|
96
|
+
return {
|
|
97
|
+
hasNativeYield: S() !== null,
|
|
98
|
+
yield: C
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
//#endregion
|
|
66
102
|
//#region src/composables/motion/useRAFLoop.ts
|
|
67
|
-
var
|
|
68
|
-
function
|
|
103
|
+
var T = "(prefers-reduced-motion: reduce)";
|
|
104
|
+
function E() {
|
|
69
105
|
return typeof globalThis.requestAnimationFrame == "function" ? globalThis.requestAnimationFrame.bind(globalThis) : null;
|
|
70
106
|
}
|
|
71
|
-
function
|
|
107
|
+
function D() {
|
|
72
108
|
return typeof globalThis.cancelAnimationFrame == "function" ? globalThis.cancelAnimationFrame.bind(globalThis) : null;
|
|
73
109
|
}
|
|
74
|
-
function
|
|
110
|
+
function O() {
|
|
75
111
|
return typeof document > "u" ? null : document;
|
|
76
112
|
}
|
|
77
|
-
function
|
|
113
|
+
function k() {
|
|
78
114
|
return typeof window > "u" ? null : window;
|
|
79
115
|
}
|
|
80
|
-
function
|
|
81
|
-
let { immediate: n = !0, pauseWhenHidden:
|
|
82
|
-
function
|
|
83
|
-
return !
|
|
84
|
-
}
|
|
85
|
-
function
|
|
86
|
-
|
|
87
|
-
}
|
|
88
|
-
function
|
|
89
|
-
if (
|
|
90
|
-
let t =
|
|
91
|
-
t && (
|
|
92
|
-
if (
|
|
93
|
-
|
|
116
|
+
function A(e, t = {}) {
|
|
117
|
+
let { immediate: n = !0, pauseWhenHidden: r = !0, respectReducedMotion: i = !0 } = t, s = f(!1), c = f(!1), u = f(r ? !!O()?.hidden : !1), p = f(!1), m = f(!1), h = a(() => p.value && !s.value && (m.value || u.value || i && c.value || !E())), g = null, _ = null, v = 0, y = 0, b = !1, x = null;
|
|
118
|
+
function S() {
|
|
119
|
+
return !b && p.value && !m.value && !u.value && !(i && c.value) && !!E();
|
|
120
|
+
}
|
|
121
|
+
function w() {
|
|
122
|
+
g !== null && (D()?.(g), g = null), s.value = !1, _ = null;
|
|
123
|
+
}
|
|
124
|
+
function A() {
|
|
125
|
+
if (g !== null || !S()) return;
|
|
126
|
+
let t = E();
|
|
127
|
+
t && (s.value = !0, g = t((t) => {
|
|
128
|
+
if (g = null, !S()) {
|
|
129
|
+
w();
|
|
94
130
|
return;
|
|
95
131
|
}
|
|
96
|
-
let n =
|
|
97
|
-
|
|
132
|
+
let n = _ === null ? 0 : Math.max(0, t - _);
|
|
133
|
+
_ = t, v += n, e({
|
|
98
134
|
now: t,
|
|
99
135
|
delta: n,
|
|
100
|
-
elapsed:
|
|
101
|
-
frame:
|
|
102
|
-
}),
|
|
136
|
+
elapsed: v,
|
|
137
|
+
frame: y++
|
|
138
|
+
}), S() ? A() : w();
|
|
103
139
|
}));
|
|
104
140
|
}
|
|
105
|
-
function A() {
|
|
106
|
-
D() ? k() : O();
|
|
107
|
-
}
|
|
108
141
|
function j() {
|
|
109
|
-
S
|
|
142
|
+
S() ? A() : w();
|
|
110
143
|
}
|
|
111
144
|
function M() {
|
|
112
|
-
|
|
145
|
+
_ = null, v = 0, y = 0;
|
|
113
146
|
}
|
|
114
147
|
function N() {
|
|
115
|
-
p.value = !
|
|
148
|
+
b || (M(), p.value = !0, m.value = !1, j());
|
|
116
149
|
}
|
|
117
150
|
function P() {
|
|
118
|
-
p.value
|
|
151
|
+
p.value = !1, m.value = !1, M(), w();
|
|
119
152
|
}
|
|
120
153
|
function F() {
|
|
121
|
-
|
|
154
|
+
p.value && (m.value = !0, j());
|
|
122
155
|
}
|
|
123
156
|
function I() {
|
|
124
|
-
|
|
157
|
+
b || (m.value = !1, j());
|
|
158
|
+
}
|
|
159
|
+
function L() {
|
|
160
|
+
u.value = r ? !!O()?.hidden : !1, j();
|
|
125
161
|
}
|
|
126
|
-
let
|
|
127
|
-
if (
|
|
128
|
-
let e =
|
|
162
|
+
let R = O();
|
|
163
|
+
if (R && r && R.addEventListener("visibilitychange", L), i) {
|
|
164
|
+
let e = k(), t = typeof e?.matchMedia == "function" ? e.matchMedia(T) : null;
|
|
129
165
|
if (t) {
|
|
130
166
|
let e = (e) => {
|
|
131
|
-
|
|
167
|
+
c.value = e.matches, j();
|
|
132
168
|
};
|
|
133
|
-
|
|
169
|
+
c.value = t.matches, typeof t.addEventListener == "function" ? (t.addEventListener("change", e), x = () => t.removeEventListener("change", e)) : typeof t.addListener == "function" && (t.addListener(e), x = () => t.removeListener?.(e));
|
|
134
170
|
}
|
|
135
171
|
}
|
|
136
|
-
function
|
|
137
|
-
|
|
138
|
-
}
|
|
139
|
-
return
|
|
140
|
-
isActive:
|
|
141
|
-
isPaused:
|
|
142
|
-
isReducedMotion:
|
|
143
|
-
start:
|
|
144
|
-
stop:
|
|
145
|
-
pause:
|
|
146
|
-
resume:
|
|
147
|
-
dispose:
|
|
172
|
+
function z() {
|
|
173
|
+
b || (b = !0, P(), R?.removeEventListener("visibilitychange", L), x?.(), x = null);
|
|
174
|
+
}
|
|
175
|
+
return o() && l(z), n && N(), {
|
|
176
|
+
isActive: d(s),
|
|
177
|
+
isPaused: d(h),
|
|
178
|
+
isReducedMotion: d(c),
|
|
179
|
+
start: N,
|
|
180
|
+
stop: P,
|
|
181
|
+
pause: F,
|
|
182
|
+
resume: I,
|
|
183
|
+
dispose: z,
|
|
184
|
+
yieldToMain: C
|
|
148
185
|
};
|
|
149
186
|
}
|
|
150
187
|
//#endregion
|
|
151
188
|
//#region src/composables/motion/useStagger.ts
|
|
152
|
-
function
|
|
189
|
+
function j() {
|
|
153
190
|
return typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
154
191
|
}
|
|
155
|
-
function
|
|
156
|
-
let t = Math.max(0, Math.floor(e.items)), n = e.delayMs ?? 80, r = e.initialDelayMs ?? 0, i = e.immediate !== !1, a = e.respectReducedMotion !== !1, o =
|
|
157
|
-
function
|
|
158
|
-
for (let e of
|
|
159
|
-
|
|
192
|
+
function M(e) {
|
|
193
|
+
let t = Math.max(0, Math.floor(e.items)), n = e.delayMs ?? 80, r = e.initialDelayMs ?? 0, i = e.immediate !== !1, a = e.respectReducedMotion !== !1, o = f(Array(t).fill(!1)), s = f(t === 0), c = /* @__PURE__ */ new Set();
|
|
194
|
+
function u() {
|
|
195
|
+
for (let e of c) clearTimeout(e);
|
|
196
|
+
c.clear();
|
|
160
197
|
}
|
|
161
|
-
function
|
|
162
|
-
|
|
198
|
+
function d() {
|
|
199
|
+
u(), o.value = Array(t).fill(!1), s.value = t === 0;
|
|
163
200
|
}
|
|
164
201
|
function p() {
|
|
165
|
-
o.value = Array(t).fill(!0),
|
|
202
|
+
o.value = Array(t).fill(!0), s.value = !0;
|
|
166
203
|
}
|
|
167
204
|
function m() {
|
|
168
|
-
if (
|
|
169
|
-
|
|
205
|
+
if (d(), t === 0) {
|
|
206
|
+
s.value = !0;
|
|
170
207
|
return;
|
|
171
208
|
}
|
|
172
|
-
if (a &&
|
|
209
|
+
if (a && j()) {
|
|
173
210
|
p();
|
|
174
211
|
return;
|
|
175
212
|
}
|
|
176
213
|
for (let e = 0; e < t; e++) {
|
|
177
214
|
let i = e, a = setTimeout(() => {
|
|
178
215
|
let e = o.value.slice();
|
|
179
|
-
e[i] = !0, o.value = e,
|
|
216
|
+
e[i] = !0, o.value = e, c.delete(a), i === t - 1 && (s.value = !0);
|
|
180
217
|
}, r + i * n);
|
|
181
|
-
|
|
218
|
+
c.add(a);
|
|
182
219
|
}
|
|
183
220
|
}
|
|
184
|
-
return i && m(),
|
|
221
|
+
return i && m(), l(u), {
|
|
185
222
|
revealed: o,
|
|
186
223
|
start: m,
|
|
187
|
-
reset:
|
|
188
|
-
isComplete:
|
|
224
|
+
reset: d,
|
|
225
|
+
isComplete: s
|
|
189
226
|
};
|
|
190
227
|
}
|
|
191
228
|
//#endregion
|
|
192
|
-
export {
|
|
229
|
+
export { i as DAMPING, r as SNAP_THRESHOLD, t as startViewTransition, e as supportsViewTransitions, n as useIntersectionPause, A as useRAFLoop, x as useScrollProgress, M as useStagger, y as useStaggerReveal, w as useYieldToMain, C as yieldToMain };
|
package/dist/motion.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as e, t } from "./useSpringMount-
|
|
2
|
-
import { n, t as r } from "./constants-
|
|
3
|
-
import { t as i } from "./useAnimatedNumber-
|
|
1
|
+
import { n as e, t } from "./useSpringMount-Cfk1XK1R.js";
|
|
2
|
+
import { n, t as r } from "./constants-DwBwnG8N.js";
|
|
3
|
+
import { t as i } from "./useAnimatedNumber-DKQYVB7s.js";
|
|
4
4
|
import { computed as a, onBeforeUnmount as o, ref as s, shallowRef as c } from "vue";
|
|
5
5
|
import { NumericAnimation as l } from "@mkbabb/keyframes.js";
|
|
6
6
|
//#region src/composables/motion/useSpringPress.ts
|
package/dist/notification.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./Notification-
|
|
1
|
+
import { t as e } from "./Notification-OqIpADml.js";
|
|
2
2
|
export { e as Notification };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./components/ui/number-field";
|
package/dist/paper-backdrop.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./PaperBackdrop-
|
|
1
|
+
import { t as e } from "./PaperBackdrop-CeZ-w0R0.js";
|
|
2
2
|
export { e as PaperBackdrop };
|
package/dist/popover.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "./PopoverContent-
|
|
1
|
+
import { n as e, r as t, t as n } from "./PopoverContent-EiklFrna.js";
|
|
2
2
|
export { t as Popover, n as PopoverContent, e as PopoverTrigger };
|
package/dist/progress.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./Progress-
|
|
1
|
+
import { t as e } from "./Progress-FApA9fm_.js";
|
|
2
2
|
export { e as Progress };
|
package/dist/pulse.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
|
-
import { t } from "./_plugin-vue_export-helper-
|
|
2
|
+
import { t } from "./_plugin-vue_export-helper-Dq1MygBL.js";
|
|
3
3
|
import { Fragment as n, computed as r, createCommentVNode as i, createElementBlock as a, defineComponent as o, normalizeClass as s, normalizeStyle as c, openBlock as l, renderList as u, unref as d } from "vue";
|
|
4
4
|
//#region src/components/custom/pulse/Pulse.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var f = {
|
package/dist/reactive.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as e } from "./useTimer-
|
|
2
|
-
import { t } from "./useInterval-
|
|
1
|
+
import { t as e } from "./useTimer-NAaj9zNq.js";
|
|
2
|
+
import { t } from "./useInterval-DVgGUf_y.js";
|
|
3
3
|
export { t as useInterval, e as useTimer };
|
package/dist/responsive-tabs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
|
-
import { a as t, i as n, o as r, r as i, s as a } from "./SelectScrollDownButton-
|
|
3
|
-
import { t as o } from "./UnderlineTabs-
|
|
2
|
+
import { a as t, i as n, o as r, r as i, s as a } from "./SelectScrollDownButton-Dth8-wXQ.js";
|
|
3
|
+
import { t as o } from "./UnderlineTabs-DAWMLmJG.js";
|
|
4
4
|
import { Fragment as s, computed as c, createBlock as l, createElementBlock as u, createTextVNode as d, createVNode as f, defineComponent as p, normalizeClass as m, onBeforeUnmount as h, onMounted as g, openBlock as _, ref as v, renderList as y, toDisplayString as b, unref as x, withCtx as S } from "vue";
|
|
5
5
|
//#endregion
|
|
6
6
|
//#region src/components/custom/responsive-tabs/ResponsiveTabs.vue
|
|
@@ -68,7 +68,7 @@ var C = /* @__PURE__ */ p({
|
|
|
68
68
|
"model-value": p.modelValue,
|
|
69
69
|
"onUpdate:modelValue": j
|
|
70
70
|
}, {
|
|
71
|
-
default: S(() => [f(x(t), { class: m(x(e)("text-small w-auto min-w-input-sm", p.mobileTriggerClass)) }, {
|
|
71
|
+
default: S(() => [f(x(t), { class: m(x(e)("responsive-tabs__trigger text-small w-auto min-w-input-sm", p.mobileTriggerClass)) }, {
|
|
72
72
|
default: S(() => [f(x(r))]),
|
|
73
73
|
_: 1
|
|
74
74
|
}, 8, ["class"]), f(x(n), null, {
|
package/dist/scrolling-text.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./ScrollingText-
|
|
1
|
+
import { t as e } from "./ScrollingText-BFd0i2zJ.js";
|
|
2
2
|
export { e as ScrollingText };
|
package/dist/search.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
|
-
import { n as t, t as n } from "./minimize-2-
|
|
3
|
-
import { t as r } from "./search-
|
|
4
|
-
import { t as i } from "./x-
|
|
5
|
-
import { n as a } from "./badge-
|
|
6
|
-
import { n as o } from "./button-
|
|
7
|
-
import { n as s, t as c } from "./DialogContent-
|
|
8
|
-
import { n as l, r as u, t as d } from "./PopoverContent-
|
|
2
|
+
import { n as t, t as n } from "./minimize-2-LsCJ_eNt.js";
|
|
3
|
+
import { t as r } from "./search-DBAiUABx.js";
|
|
4
|
+
import { t as i } from "./x-q7pJa83X.js";
|
|
5
|
+
import { n as a } from "./badge-x46my_Fo.js";
|
|
6
|
+
import { n as o } from "./button-C0aHmBbt.js";
|
|
7
|
+
import { n as s, t as c } from "./DialogContent-2fALDSvc.js";
|
|
8
|
+
import { n as l, r as u, t as d } from "./PopoverContent-EiklFrna.js";
|
|
9
9
|
import { Fragment as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createTextVNode as v, createVNode as y, defineComponent as b, nextTick as x, normalizeClass as S, onScopeDispose as C, openBlock as w, ref as T, renderList as E, renderSlot as D, resolveDynamicComponent as O, toDisplayString as k, unref as A, watch as j, withCtx as M } from "vue";
|
|
10
10
|
//#region src/components/custom/search/composables/fuzzySearchIndex.ts
|
|
11
11
|
function N(e, t) {
|
package/dist/select.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./SelectScrollDownButton-
|
|
2
|
-
import { t as s } from "./SelectGroup-
|
|
3
|
-
import { n as c, t as l } from "./SelectSeparator-
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./SelectScrollDownButton-Dth8-wXQ.js";
|
|
2
|
+
import { t as s } from "./SelectGroup-DdR4tdDY.js";
|
|
3
|
+
import { n as c, t as l } from "./SelectSeparator-CXm_hlqA.js";
|
|
4
4
|
export { a as Select, t as SelectContent, s as SelectGroup, i as SelectItem, c as SelectLabel, o as SelectScrollDownButton, n as SelectScrollUpButton, l as SelectSeparator, e as SelectTrigger, r as SelectValue };
|
package/dist/separator.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./Separator-
|
|
1
|
+
import { t as e } from "./Separator-D8AUMhxY.js";
|
|
2
2
|
export { e as Separator };
|