@mkbabb/glass-ui 3.7.0 → 3.8.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/CardAction-q2qHCJFG.js +157 -0
- package/dist/{CommandShortcut-CY0aQTz5.js → CommandShortcut-SzWRhROC.js} +2 -2
- package/dist/{ContextMenuSubContent-BeDz7G6f.js → ContextMenuSubContent-Do977Cbf.js} +1 -1
- package/dist/{DataTable-gtPOLZvl.js → DataTable-CvlWXz65.js} +3 -3
- package/dist/DeckProgress-AVgbIULY.js +23 -0
- package/dist/{DialogContent-DG1YMR-P.js → DialogContent-DjZWT3lK.js} +2 -2
- package/dist/{DialogFooter-BCIaDP15.js → DialogFooter-Gprw8H_A.js} +1 -1
- package/dist/{DiscoGlyph-ZoBYpoxI.js → DiscoGlyph-CG0F410s.js} +1 -1
- package/dist/{GlyphFace-Ce_oe3tM.js → GlyphFace-DRjDkB0s.js} +1 -1
- package/dist/{HoverPopover-DXpOEw1P.js → HoverPopover-D56O6Ylp.js} +1 -1
- package/dist/{IconTooltip-Cu86JR4e.js → IconTooltip-D2T5nYOM.js} +1 -1
- package/dist/{MetricBadge-D-bRaQUD.js → MetricBadge-lTc002u2.js} +1 -1
- package/dist/{Notification-B5WHP3_1.js → Notification-BxK8LZMw.js} +1 -1
- package/dist/{PopoverContent-F1bWnYoh.js → PopoverContent-BId6ggf_.js} +1 -1
- package/dist/{Progress-c4vo4ALi.js → Progress-iEuD9pxG.js} +4 -4
- package/dist/{ScrollingText-BEp377U5.js → ScrollingText-CVyqxvfv.js} +2 -2
- package/dist/{SelectScrollDownButton-DAo5NmY_.js → SelectScrollDownButton-C7TRe-ep.js} +2 -2
- package/dist/{ToggleGroupItem-C-AIkBUw.js → ToggleGroupItem-CkXUcBlt.js} +1 -1
- package/dist/{UnderlineTabs-D_c1iYo-.js → UnderlineTabs-Uxn-R3MT.js} +2 -2
- package/dist/animated-digit.js +2 -2
- package/dist/api/index.d.ts +4 -2
- package/dist/api.js +1 -1
- package/dist/aurora.js +336 -405
- package/dist/canvas.d.ts +1 -0
- package/dist/canvas.js +3 -0
- package/dist/card.js +1 -1
- package/dist/carousel.js +105 -104
- package/dist/collapsible.js +1 -1
- package/dist/{color-DjJCAQ6f.js → color-DMLTunJK.js} +22 -14
- package/dist/color.js +2 -2
- package/dist/command.js +1 -1
- package/dist/compile-BBTRjvQS.js +158 -0
- package/dist/components/custom/aurora/composables/atoms.d.ts +90 -25
- package/dist/components/custom/aurora/composables/color.d.ts +0 -12
- package/dist/components/custom/aurora/composables/uniformBridge.d.ts +34 -23
- package/dist/components/custom/aurora/constants/presets.d.ts +10 -7
- package/dist/components/custom/aurora/constants/renderMode.d.ts +22 -0
- package/dist/components/custom/aurora/constants/shaders/aurora.wgsl.d.ts +1 -1
- package/dist/components/custom/aurora/constants/shaders/brush.glsl.d.ts +1 -1
- package/dist/components/custom/aurora/constants/shaders/composition.glsl.d.ts +1 -1
- package/dist/components/custom/aurora/constants/shaders/mediums.glsl.d.ts +1 -1
- package/dist/components/custom/aurora/index.d.ts +3 -3
- package/dist/components/custom/constellation/Constellation.vue.d.ts +40 -5
- package/dist/components/custom/constellation/constellationField.d.ts +110 -5
- package/dist/components/custom/constellation/index.d.ts +2 -2
- package/dist/components/custom/dock/GlassDock.vue.d.ts +12 -4
- package/dist/components/custom/dock/composables/dockMorphContext.d.ts +57 -0
- package/dist/components/custom/dock/composables/index.d.ts +3 -0
- package/dist/components/custom/dock/composables/useDockHold.d.ts +61 -0
- package/dist/components/custom/dock/composables/useLayerTransition.d.ts +13 -59
- package/dist/components/custom/dock/index.d.ts +2 -0
- package/dist/components/custom/goo-blob/GooBlob.vue.d.ts +13 -0
- package/dist/components/custom/goo-blob/composables/useBlobMood.d.ts +4 -0
- package/dist/components/custom/goo-blob/composables/useBlobPointer.d.ts +2 -0
- package/dist/components/custom/goo-blob/composables/useBlobSatellites.d.ts +2 -0
- package/dist/components/custom/goo-blob/composables/useMetaballRenderer.d.ts +20 -5
- package/dist/components/custom/goo-blob/index.d.ts +1 -1
- package/dist/components/custom/goo-blob/shaders/sdf-body.glsl.d.ts +1 -1
- package/dist/components/custom/goo-blob/shaders/watercolor-edges.glsl.d.ts +2 -2
- package/dist/components/custom/goo-blob/types.d.ts +8 -0
- package/dist/components/ui/card/Card.vue.d.ts +23 -7
- package/dist/components/ui/card/index.d.ts +1 -1
- package/dist/components/ui/progress/ProgressDefault.vue.d.ts +14 -4
- package/dist/components/ui/slider/Slider.vue.d.ts +3 -1
- package/dist/composables/color/index.d.ts +19 -0
- package/dist/composables/dom/index.d.ts +1 -1
- package/dist/composables/dom/useResolveTokenColor.d.ts +27 -0
- package/dist/composables/glass/canvas2d/index.d.ts +2 -1
- package/dist/composables/glass/canvas2d/resolveCanvasColor.d.ts +20 -0
- package/dist/composables/glass/canvas2d/useCanvas2D.d.ts +15 -1
- package/dist/composables/glass/index.d.ts +3 -1
- package/dist/composables/glass/useSpecularTracking.d.ts +33 -0
- package/dist/composables/glass/webgl/createCanvasLifecycle.d.ts +1 -1
- package/dist/composables/glass/webgl/shaders/procedural-color.glsl.d.ts +4 -0
- package/dist/composables/glass/webgl/useWebGLCanvas.d.ts +1 -1
- package/dist/composables/motion/core/index.d.ts +1 -0
- package/dist/configurator.js +1 -1
- package/dist/confirm-dialog.js +1 -1
- package/dist/constellation.js +144 -75
- package/dist/context-menu.js +2 -2
- package/dist/controls.js +2 -2
- package/dist/dark.js +1 -1
- package/dist/data-table.js +1 -1
- package/dist/deck-progress.d.ts +1 -0
- package/dist/deck-progress.js +2 -0
- package/dist/dialog.js +2 -2
- package/dist/disco-glyph.js +1 -1
- package/dist/dock.js +386 -285
- package/dist/{dockContext-DLgrVWsU.js → dockContext-BKeIMmNk.js} +1 -1
- package/dist/dom.js +6 -6
- package/dist/{dropdown-menu-BWpwutt0.js → dropdown-menu-B_4bWyyG.js} +2 -2
- package/dist/dropdown-menu.js +1 -1
- package/dist/expandable-container.js +1 -1
- package/dist/fonts/README.md +26 -18
- package/dist/forms.js +3 -3
- package/dist/fourier-field.js +37 -37
- package/dist/glass-carousel.js +12 -7
- package/dist/glass-panel.js +7 -7
- package/dist/glass-ui.css +1 -1
- package/dist/glass-ui.js +150 -162
- package/dist/glyph-face.js +2 -2
- package/dist/goo-blob.js +353 -270
- 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/{keys-Dyf_uTs5.js → keys-BsYjEFOW.js} +1 -1
- package/dist/label.js +1 -1
- package/dist/labeled-field.js +6 -6
- package/dist/metric-badge.js +1 -1
- package/dist/metric-stack.js +1 -1
- package/dist/motion-core.js +65 -65
- package/dist/motion.js +3 -3
- package/dist/notification.js +1 -1
- 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/resolveCanvasColor-BBiYfp8g.js +11 -0
- package/dist/responsive-tabs.js +2 -2
- package/dist/scrolling-text.js +1 -1
- package/dist/search.js +7 -7
- package/dist/select.js +3 -3
- package/dist/separator.js +1 -1
- package/dist/{sheet-Cv1uO-Gq.js → sheet-VZEtNFvO.js} +2 -2
- package/dist/sheet.js +1 -1
- package/dist/slider-D9puf-Ko.js +142 -0
- package/dist/slider.js +1 -1
- package/dist/sortable-list.js +3 -3
- package/dist/styles/components.css +1 -1
- package/dist/styles/dock-controls.css +21 -18
- package/dist/styles/dock.css +415 -224
- package/dist/styles/fonts.css +0 -25
- package/dist/styles/glass.css +100 -41
- package/dist/styles/theme.css +9 -2
- package/dist/styles/tokens.css +139 -32
- package/dist/styles/typography.css +52 -69
- package/dist/styles/utilities.css +2 -1
- package/dist/styles/view-transition.css +12 -40
- package/dist/switch.js +1 -1
- package/dist/tabs.js +5 -5
- package/dist/timeline.js +3 -3
- 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-C5I3wWd8.js → useAnimatedNumber-C_3wZLx4.js} +1 -1
- package/dist/{useCanvas2D-C31yfUGY.js → useCanvas2D-ClrQuZtp.js} +2 -1
- package/dist/{useConfiguratorState-B24TcgIn.js → useConfiguratorState-CMff4GzH.js} +3 -3
- package/dist/useResolveTokenColor-r9pnNjqK.js +24 -0
- package/dist/useSpecularTracking-BVRZsRHA.js +26 -0
- package/dist/{useTextHighlight-aMPdEpkq.js → useTextHighlight-9nMW23Qb.js} +1 -1
- package/dist/{useTouchGate-YQRwyUGU.js → useTouchGate-WFyJYsth.js} +1 -1
- package/dist/vReveal-CqaCz_mC.js +44 -0
- package/dist/watercolor-dot.js +2 -2
- package/package.json +36 -4
- package/src/fonts/README.md +26 -18
- package/src/styles/dock-controls.css +21 -18
- package/src/styles/dock.css +415 -224
- package/src/styles/fonts.css +0 -25
- package/src/styles/glass.css +100 -41
- package/src/styles/theme.css +9 -2
- package/src/styles/tokens.css +139 -32
- package/src/styles/typography.css +52 -69
- package/src/styles/utilities.css +2 -1
- package/src/styles/view-transition.css +12 -40
- package/dist/CardAction-D8nSE62a.js +0 -163
- package/dist/compile-iM4IUB66.js +0 -158
- package/dist/fonts/fraunces/fraunces-latin.woff2 +0 -0
- package/dist/slider-BA9wIs5e.js +0 -130
- package/dist/useViewTransition-DaN5Zrox.js +0 -21
- package/dist/vReveal-BE2TsPoR.js +0 -24
- package/src/fonts/fraunces/fraunces-latin.woff2 +0 -0
- /package/dist/{CollapsibleContent-D7UNsXQr.js → CollapsibleContent-CP9qF1v4.js} +0 -0
- /package/dist/{ContextMenuContent-DGKZX1Du.js → ContextMenuContent-DDa0v27s.js} +0 -0
- /package/dist/{HoverCardContent-Bn0UBMY9.js → HoverCardContent-B6CcQ8He.js} +0 -0
- /package/dist/{Input-DWQQIOC4.js → Input-DVG_J0ne.js} +0 -0
- /package/dist/{InstrumentChassis-BLJBl1BW.js → InstrumentChassis-C2f6cBaQ.js} +0 -0
- /package/dist/{InstrumentRail-BElFwKyt.js → InstrumentRail-CUJ05YVG.js} +0 -0
- /package/dist/{Label-DBc7bKzZ.js → Label-zRfbQdCn.js} +0 -0
- /package/dist/{ModalOverlay-D1VrWyoi.js → ModalOverlay-B1GkAjNb.js} +0 -0
- /package/dist/{PaperBackdrop-DCGoGatv.js → PaperBackdrop-CqwjnfLv.js} +0 -0
- /package/dist/{SelectGroup-BcaFjvP4.js → SelectGroup-BFiod7X2.js} +0 -0
- /package/dist/{SelectSeparator-COFMJGng.js → SelectSeparator-L8pPEn4L.js} +0 -0
- /package/dist/{Separator-DZyqsCum.js → Separator-D7sD7RKj.js} +0 -0
- /package/dist/{Switch-2rsAtDfA.js → Switch-LDKLmmgx.js} +0 -0
- /package/dist/{TabsList-COqIdW7i.js → TabsList-qyHZ2lKY.js} +0 -0
- /package/dist/{Toaster-BMaeziJJ.js → Toaster-CabYEEF_.js} +0 -0
- /package/dist/{TooltipProvider-CD2IXfRv.js → TooltipProvider-CmZzCuaG.js} +0 -0
- /package/dist/{_plugin-vue_export-helper-gLzyemvl.js → _plugin-vue_export-helper-ok8pgSl5.js} +0 -0
- /package/dist/composables/{dom → motion}/useTextHighlight.d.ts +0 -0
- /package/dist/{constants-CS75AWHG.js → constants-BPOqYJAm.js} +0 -0
- /package/dist/{createContext-CvNyBk4o.js → createContext-B44Sah_H.js} +0 -0
- /package/dist/{menuItemVariants-B4eFR5Ix.js → menuItemVariants-DKM85SNE.js} +0 -0
- /package/dist/{presets-BKVyQfbt.js → presets-D1XPuTj-.js} +0 -0
- /package/dist/{prng-wHuHlNHE.js → prng-COGhh02-.js} +0 -0
- /package/dist/{useGlassRenderer-HebgSEgN.js → useGlassRenderer-5I0YkI4t.js} +0 -0
- /package/dist/{useGlobalDark-yhL4Wp-s.js → useGlobalDark-D3EBWzXK.js} +0 -0
- /package/dist/{useIntersectionPause-Cc-H9ees.js → useIntersectionPause-Bj4sPkMh.js} +0 -0
- /package/dist/{useInterval-D3USn0yc.js → useInterval-CcLfq2WU.js} +0 -0
- /package/dist/{useKeyboardShortcuts-Be3w_Rwk.js → useKeyboardShortcuts-BXWXOZ-9.js} +0 -0
- /package/dist/{useResizeObserver-CSyxGxIX.js → useResizeObserver-CWCbk5Px.js} +0 -0
- /package/dist/{useScrollProgress-CAH8Ofwt.js → useScrollProgress-C9ysDic5.js} +0 -0
- /package/dist/{useSortable-C8ReQ50P.js → useSortable-MGAbCGVJ.js} +0 -0
- /package/dist/{useSpringMount-LRZqJTaF.js → useSpringMount-BJSHcLl3.js} +0 -0
- /package/dist/{useTimer-DEJonOZa.js → useTimer-3xqf_54b.js} +0 -0
- /package/dist/{useUserInvalidAria-CQKjEfwP.js → useUserInvalidAria-DoJKMZ3s.js} +0 -0
- /package/dist/{useViewportReady-K96m-Mdv.js → useViewportReady-RIr5Wgkh.js} +0 -0
package/dist/canvas.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./composables/glass/canvas2d";
|
package/dist/canvas.js
ADDED
package/dist/card.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./CardAction-
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./CardAction-q2qHCJFG.js";
|
|
2
2
|
export { a as Card, o as CardAction, i as CardContent, t as CardDescription, n as CardFooter, r as CardHeader, e as CardTitle };
|
package/dist/carousel.js
CHANGED
|
@@ -4,26 +4,27 @@ import { t as n } from "./chevron-down-BSkTP2aL.js";
|
|
|
4
4
|
import { t as r } from "./chevron-right-sDM0Yvrf.js";
|
|
5
5
|
import { t as i } from "./chevron-up-CCOD_FTz.js";
|
|
6
6
|
import { n as a } from "./button-CAywcrhO.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import D from "
|
|
10
|
-
|
|
7
|
+
import { t as o } from "./_plugin-vue_export-helper-ok8pgSl5.js";
|
|
8
|
+
import { Fragment as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createVNode as p, defineComponent as m, mergeProps as h, normalizeClass as g, onMounted as _, openBlock as v, ref as y, renderList as b, renderSlot as x, resolveDynamicComponent as S, toDisplayString as C, unref as w, watch as T, withCtx as E } from "vue";
|
|
9
|
+
import { createInjectionState as D } from "@vueuse/core";
|
|
10
|
+
import O from "embla-carousel-vue";
|
|
11
|
+
var k = t("arrow-left", [["path", {
|
|
11
12
|
d: "m12 19-7-7 7-7",
|
|
12
13
|
key: "1l729n"
|
|
13
14
|
}], ["path", {
|
|
14
15
|
d: "M19 12H5",
|
|
15
16
|
key: "x3x0zl"
|
|
16
|
-
}]]),
|
|
17
|
+
}]]), A = t("arrow-right", [["path", {
|
|
17
18
|
d: "M5 12h14",
|
|
18
19
|
key: "1ays0h"
|
|
19
20
|
}], ["path", {
|
|
20
21
|
d: "m12 5 7 7-7 7",
|
|
21
22
|
key: "xquz4c"
|
|
22
|
-
}]]),
|
|
23
|
+
}]]), j = t("chevron-left", [["path", {
|
|
23
24
|
d: "m15 18-6-6 6-6",
|
|
24
25
|
key: "1wnfg3"
|
|
25
|
-
}]]), [
|
|
26
|
-
let [i, a] =
|
|
26
|
+
}]]), [M, N] = D(({ opts: e, orientation: t, plugins: n }, r) => {
|
|
27
|
+
let [i, a] = O({
|
|
27
28
|
...e,
|
|
28
29
|
axis: t === "horizontal" ? "x" : "y"
|
|
29
30
|
}, n);
|
|
@@ -33,11 +34,11 @@ var O = t("arrow-left", [["path", {
|
|
|
33
34
|
function s() {
|
|
34
35
|
a.value?.scrollNext();
|
|
35
36
|
}
|
|
36
|
-
let c =
|
|
37
|
+
let c = y(!1), l = y(!1);
|
|
37
38
|
function u(e) {
|
|
38
39
|
c.value = e?.canScrollNext() || !1, l.value = e?.canScrollPrev() || !1;
|
|
39
40
|
}
|
|
40
|
-
return
|
|
41
|
+
return _(() => {
|
|
41
42
|
a.value && (a.value?.on("init", u), a.value?.on("reInit", u), a.value?.on("select", u), r("init-api", a.value));
|
|
42
43
|
}), {
|
|
43
44
|
carouselRef: i,
|
|
@@ -49,14 +50,14 @@ var O = t("arrow-left", [["path", {
|
|
|
49
50
|
orientation: t
|
|
50
51
|
};
|
|
51
52
|
});
|
|
52
|
-
function
|
|
53
|
-
let e =
|
|
53
|
+
function P() {
|
|
54
|
+
let e = N();
|
|
54
55
|
if (!e) throw Error("useCarousel must be used within a <Carousel />");
|
|
55
56
|
return e;
|
|
56
57
|
}
|
|
57
58
|
//#endregion
|
|
58
59
|
//#region src/components/ui/carousel/Carousel.vue
|
|
59
|
-
var
|
|
60
|
+
var F = /* @__PURE__ */ m({
|
|
60
61
|
__name: "Carousel",
|
|
61
62
|
props: {
|
|
62
63
|
opts: {},
|
|
@@ -72,14 +73,14 @@ var P = /* @__PURE__ */ p({
|
|
|
72
73
|
},
|
|
73
74
|
emits: ["init-api"],
|
|
74
75
|
setup(t, { expose: n, emit: r }) {
|
|
75
|
-
let i = t, { canScrollNext: a, canScrollPrev: o, carouselApi: s, carouselRef: c, orientation: l, scrollNext:
|
|
76
|
+
let i = t, { canScrollNext: a, canScrollPrev: o, carouselApi: s, carouselRef: c, orientation: l, scrollNext: u, scrollPrev: f } = M(i, r);
|
|
76
77
|
n({
|
|
77
78
|
canScrollNext: a,
|
|
78
79
|
canScrollPrev: o,
|
|
79
80
|
carouselApi: s,
|
|
80
81
|
carouselRef: c,
|
|
81
82
|
orientation: l,
|
|
82
|
-
scrollNext:
|
|
83
|
+
scrollNext: u,
|
|
83
84
|
scrollPrev: f
|
|
84
85
|
});
|
|
85
86
|
function p(e) {
|
|
@@ -88,26 +89,26 @@ var P = /* @__PURE__ */ p({
|
|
|
88
89
|
e.preventDefault(), f();
|
|
89
90
|
return;
|
|
90
91
|
}
|
|
91
|
-
e.key === n && (e.preventDefault(),
|
|
92
|
+
e.key === n && (e.preventDefault(), u());
|
|
92
93
|
}
|
|
93
|
-
return (t, n) => (
|
|
94
|
+
return (t, n) => (v(), d("div", {
|
|
94
95
|
"data-slot": "carousel",
|
|
95
|
-
class:
|
|
96
|
+
class: g(w(e)("relative", i.class)),
|
|
96
97
|
role: "region",
|
|
97
98
|
"aria-roledescription": "carousel",
|
|
98
99
|
tabindex: "0",
|
|
99
100
|
onKeydown: p
|
|
100
|
-
}, [
|
|
101
|
-
canScrollNext:
|
|
102
|
-
canScrollPrev:
|
|
103
|
-
carouselApi:
|
|
104
|
-
carouselRef:
|
|
105
|
-
orientation:
|
|
106
|
-
scrollNext:
|
|
107
|
-
scrollPrev:
|
|
101
|
+
}, [x(t.$slots, "default", {
|
|
102
|
+
canScrollNext: w(a),
|
|
103
|
+
canScrollPrev: w(o),
|
|
104
|
+
carouselApi: w(s),
|
|
105
|
+
carouselRef: w(c),
|
|
106
|
+
orientation: w(l),
|
|
107
|
+
scrollNext: w(u),
|
|
108
|
+
scrollPrev: w(f)
|
|
108
109
|
})], 34));
|
|
109
110
|
}
|
|
110
|
-
}),
|
|
111
|
+
}), I = /* @__PURE__ */ m({
|
|
111
112
|
inheritAttrs: !1,
|
|
112
113
|
__name: "CarouselContent",
|
|
113
114
|
props: { class: { type: [
|
|
@@ -118,20 +119,20 @@ var P = /* @__PURE__ */ p({
|
|
|
118
119
|
Array
|
|
119
120
|
] } },
|
|
120
121
|
setup(t, { expose: n }) {
|
|
121
|
-
let r = t, { carouselRef: i, orientation: a } =
|
|
122
|
-
return n({ carouselRef: i }), (t, n) => (
|
|
122
|
+
let r = t, { carouselRef: i, orientation: a } = P();
|
|
123
|
+
return n({ carouselRef: i }), (t, n) => (v(), d("div", {
|
|
123
124
|
ref_key: "carouselRef",
|
|
124
125
|
ref: i,
|
|
125
126
|
"data-slot": "carousel-content",
|
|
126
127
|
class: "overflow-hidden"
|
|
127
|
-
}, [
|
|
128
|
+
}, [f("div", h({ class: w(e)("flex", w(a) === "horizontal" ? "-ml-4" : "-mt-4 flex-col", r.class) }, t.$attrs), [x(t.$slots, "default")], 16)], 512));
|
|
128
129
|
}
|
|
129
|
-
}),
|
|
130
|
+
}), L = ["aria-orientation"], R = [
|
|
130
131
|
"aria-selected",
|
|
131
132
|
"aria-label",
|
|
132
133
|
"data-active",
|
|
133
134
|
"onClick"
|
|
134
|
-
],
|
|
135
|
+
], z = /* @__PURE__ */ o(/* @__PURE__ */ m({
|
|
135
136
|
__name: "CarouselDots",
|
|
136
137
|
props: { class: { type: [
|
|
137
138
|
Boolean,
|
|
@@ -141,35 +142,35 @@ var P = /* @__PURE__ */ p({
|
|
|
141
142
|
Array
|
|
142
143
|
] } },
|
|
143
144
|
setup(t) {
|
|
144
|
-
let n = t, { carouselApi: r, orientation: i } =
|
|
145
|
+
let n = t, { carouselApi: r, orientation: i } = P(), a = y(0), o = y(0);
|
|
145
146
|
function c() {
|
|
146
147
|
let e = r.value;
|
|
147
|
-
e && (a.value = e.selectedScrollSnap(),
|
|
148
|
+
e && (a.value = e.selectedScrollSnap(), o.value = e.scrollSnapList().length);
|
|
148
149
|
}
|
|
149
|
-
function
|
|
150
|
+
function l(e) {
|
|
150
151
|
r.value?.scrollTo(e);
|
|
151
152
|
}
|
|
152
|
-
return
|
|
153
|
+
return T(r, (e) => {
|
|
153
154
|
e && (c(), e.on("select", c), e.on("reInit", c));
|
|
154
|
-
}, { immediate: !0 }),
|
|
155
|
+
}, { immediate: !0 }), _(c), (t, r) => o.value > 0 ? (v(), d("div", {
|
|
155
156
|
key: 0,
|
|
156
157
|
"data-slot": "carousel-dots",
|
|
157
158
|
role: "tablist",
|
|
158
|
-
"aria-orientation":
|
|
159
|
-
class:
|
|
160
|
-
}, [(
|
|
161
|
-
key:
|
|
159
|
+
"aria-orientation": w(i),
|
|
160
|
+
class: g(w(e)("carousel-dots inline-flex items-center justify-center gap-1.5", w(i) === "vertical" && "flex-col", n.class))
|
|
161
|
+
}, [(v(!0), d(s, null, b(o.value, (e) => (v(), d("button", {
|
|
162
|
+
key: e - 1,
|
|
162
163
|
type: "button",
|
|
163
164
|
role: "tab",
|
|
164
|
-
"aria-selected":
|
|
165
|
-
"aria-label": `Go to slide ${
|
|
166
|
-
"data-active":
|
|
165
|
+
"aria-selected": e - 1 === a.value,
|
|
166
|
+
"aria-label": `Go to slide ${e}`,
|
|
167
|
+
"data-active": e - 1 === a.value ? "" : void 0,
|
|
167
168
|
"data-slot": "carousel-dot",
|
|
168
|
-
class:
|
|
169
|
-
onClick: (
|
|
170
|
-
}, null,
|
|
169
|
+
class: "carousel-dot focus-ring tap-squish",
|
|
170
|
+
onClick: (t) => l(e - 1)
|
|
171
|
+
}, null, 8, R))), 128))], 10, L)) : u("", !0);
|
|
171
172
|
}
|
|
172
|
-
}),
|
|
173
|
+
}), [["__scopeId", "data-v-18c34cd8"]]), B = /* @__PURE__ */ m({
|
|
173
174
|
__name: "CarouselItem",
|
|
174
175
|
props: { class: { type: [
|
|
175
176
|
Boolean,
|
|
@@ -179,15 +180,15 @@ var P = /* @__PURE__ */ p({
|
|
|
179
180
|
Array
|
|
180
181
|
] } },
|
|
181
182
|
setup(t) {
|
|
182
|
-
let n = t, { orientation: r } =
|
|
183
|
-
return (t, i) => (
|
|
183
|
+
let n = t, { orientation: r } = P();
|
|
184
|
+
return (t, i) => (v(), d("div", {
|
|
184
185
|
"data-slot": "carousel-item",
|
|
185
186
|
role: "group",
|
|
186
187
|
"aria-roledescription": "slide",
|
|
187
|
-
class:
|
|
188
|
-
}, [
|
|
188
|
+
class: g(w(e)("min-w-0 shrink-0 grow-0 basis-full", w(r) === "horizontal" ? "pl-4" : "pt-4", n.class))
|
|
189
|
+
}, [x(t.$slots, "default")], 2));
|
|
189
190
|
}
|
|
190
|
-
}),
|
|
191
|
+
}), V = /* @__PURE__ */ m({
|
|
191
192
|
__name: "CarouselNext",
|
|
192
193
|
props: {
|
|
193
194
|
variant: { default: "outline" },
|
|
@@ -201,16 +202,16 @@ var P = /* @__PURE__ */ p({
|
|
|
201
202
|
] }
|
|
202
203
|
},
|
|
203
204
|
setup(t) {
|
|
204
|
-
let n = t, { orientation: r, canScrollNext: i, scrollNext: o } =
|
|
205
|
-
return (s,
|
|
205
|
+
let n = t, { orientation: r, canScrollNext: i, scrollNext: o } = P();
|
|
206
|
+
return (s, c) => (v(), l(w(a), {
|
|
206
207
|
"data-slot": "carousel-next",
|
|
207
|
-
disabled: !
|
|
208
|
-
class:
|
|
208
|
+
disabled: !w(i),
|
|
209
|
+
class: g(w(e)("absolute h-[var(--carousel-nav-size)] w-[var(--carousel-nav-size)] rounded-pill", w(r) === "horizontal" ? "top-1/2 -translate-y-1/2 right-[calc(-1*var(--carousel-nav-offset))]" : "left-1/2 -translate-x-1/2 rotate-90 bottom-[calc(-1*var(--carousel-nav-offset))]", n.class)),
|
|
209
210
|
variant: t.variant,
|
|
210
211
|
size: t.size,
|
|
211
|
-
onClick:
|
|
212
|
+
onClick: w(o)
|
|
212
213
|
}, {
|
|
213
|
-
default:
|
|
214
|
+
default: E(() => [x(s.$slots, "default", {}, () => [p(w(A)), c[0] ||= f("span", { class: "sr-only" }, "Next Slide", -1)])]),
|
|
214
215
|
_: 3
|
|
215
216
|
}, 8, [
|
|
216
217
|
"disabled",
|
|
@@ -220,11 +221,11 @@ var P = /* @__PURE__ */ p({
|
|
|
220
221
|
"onClick"
|
|
221
222
|
]));
|
|
222
223
|
}
|
|
223
|
-
}),
|
|
224
|
+
}), H = {
|
|
224
225
|
key: 0,
|
|
225
226
|
"data-slot": "carousel-pager-counter",
|
|
226
227
|
class: "rounded-pill border border-border bg-card px-3 py-1 text-mono-caption tabular-nums"
|
|
227
|
-
},
|
|
228
|
+
}, U = /* @__PURE__ */ m({
|
|
228
229
|
__name: "CarouselPager",
|
|
229
230
|
props: {
|
|
230
231
|
showCounter: {
|
|
@@ -240,44 +241,44 @@ var P = /* @__PURE__ */ p({
|
|
|
240
241
|
] }
|
|
241
242
|
},
|
|
242
243
|
setup(t) {
|
|
243
|
-
let o = t, { carouselApi:
|
|
244
|
+
let o = t, { carouselApi: s, canScrollNext: f, canScrollPrev: m, orientation: h, scrollNext: b, scrollPrev: x } = P(), D = y(0), O = y(0);
|
|
244
245
|
function k() {
|
|
245
|
-
let e =
|
|
246
|
+
let e = s.value;
|
|
246
247
|
e && (D.value = e.selectedScrollSnap(), O.value = e.scrollSnapList().length);
|
|
247
248
|
}
|
|
248
|
-
|
|
249
|
+
T(s, (e) => {
|
|
249
250
|
e && (k(), e.on("select", k), e.on("reInit", k));
|
|
250
|
-
}, { immediate: !0 }),
|
|
251
|
-
let
|
|
252
|
-
return (n, r) => (
|
|
251
|
+
}, { immediate: !0 }), _(k);
|
|
252
|
+
let A = c(() => h === "vertical" ? i : j), M = c(() => h === "vertical" ? n : r);
|
|
253
|
+
return (n, r) => (v(), d("div", {
|
|
253
254
|
"data-slot": "carousel-pager",
|
|
254
|
-
class:
|
|
255
|
+
class: g(w(e)("inline-flex items-center gap-2", w(h) === "vertical" && "flex-col", o.class))
|
|
255
256
|
}, [
|
|
256
|
-
|
|
257
|
+
p(w(a), {
|
|
257
258
|
variant: "ghost",
|
|
258
259
|
size: "icon",
|
|
259
|
-
disabled: !
|
|
260
|
-
"aria-label":
|
|
260
|
+
disabled: !w(m),
|
|
261
|
+
"aria-label": w(h) === "vertical" ? "Previous slide (up)" : "Previous slide",
|
|
261
262
|
"data-slot": "carousel-pager-prev",
|
|
262
|
-
onClick:
|
|
263
|
+
onClick: w(x)
|
|
263
264
|
}, {
|
|
264
|
-
default:
|
|
265
|
+
default: E(() => [(v(), l(S(A.value), { class: "size-4" }))]),
|
|
265
266
|
_: 1
|
|
266
267
|
}, 8, [
|
|
267
268
|
"disabled",
|
|
268
269
|
"aria-label",
|
|
269
270
|
"onClick"
|
|
270
271
|
]),
|
|
271
|
-
t.showCounter && O.value > 0 ? (
|
|
272
|
-
|
|
272
|
+
t.showCounter && O.value > 0 ? (v(), d("span", H, C(D.value + 1) + " / " + C(O.value), 1)) : u("", !0),
|
|
273
|
+
p(w(a), {
|
|
273
274
|
variant: "ghost",
|
|
274
275
|
size: "icon",
|
|
275
|
-
disabled: !
|
|
276
|
-
"aria-label":
|
|
276
|
+
disabled: !w(f),
|
|
277
|
+
"aria-label": w(h) === "vertical" ? "Next slide (down)" : "Next slide",
|
|
277
278
|
"data-slot": "carousel-pager-next",
|
|
278
|
-
onClick:
|
|
279
|
+
onClick: w(b)
|
|
279
280
|
}, {
|
|
280
|
-
default:
|
|
281
|
+
default: E(() => [(v(), l(S(M.value), { class: "size-4" }))]),
|
|
281
282
|
_: 1
|
|
282
283
|
}, 8, [
|
|
283
284
|
"disabled",
|
|
@@ -286,7 +287,7 @@ var P = /* @__PURE__ */ p({
|
|
|
286
287
|
])
|
|
287
288
|
], 2));
|
|
288
289
|
}
|
|
289
|
-
}),
|
|
290
|
+
}), W = /* @__PURE__ */ m({
|
|
290
291
|
__name: "CarouselPrevious",
|
|
291
292
|
props: {
|
|
292
293
|
variant: { default: "outline" },
|
|
@@ -300,16 +301,16 @@ var P = /* @__PURE__ */ p({
|
|
|
300
301
|
] }
|
|
301
302
|
},
|
|
302
303
|
setup(t) {
|
|
303
|
-
let n = t, { orientation: r, canScrollPrev: i, scrollPrev: o } =
|
|
304
|
-
return (s,
|
|
304
|
+
let n = t, { orientation: r, canScrollPrev: i, scrollPrev: o } = P();
|
|
305
|
+
return (s, c) => (v(), l(w(a), {
|
|
305
306
|
"data-slot": "carousel-previous",
|
|
306
|
-
disabled: !
|
|
307
|
-
class:
|
|
307
|
+
disabled: !w(i),
|
|
308
|
+
class: g(w(e)("absolute h-[var(--carousel-nav-size)] w-[var(--carousel-nav-size)] rounded-pill", w(r) === "horizontal" ? "top-1/2 -translate-y-1/2 left-[calc(-1*var(--carousel-nav-offset))]" : "left-1/2 -translate-x-1/2 rotate-90 top-[calc(-1*var(--carousel-nav-offset))]", n.class)),
|
|
308
309
|
variant: t.variant,
|
|
309
310
|
size: t.size,
|
|
310
|
-
onClick:
|
|
311
|
+
onClick: w(o)
|
|
311
312
|
}, {
|
|
312
|
-
default:
|
|
313
|
+
default: E(() => [x(s.$slots, "default", {}, () => [p(w(k)), c[0] ||= f("span", { class: "sr-only" }, "Previous Slide", -1)])]),
|
|
313
314
|
_: 3
|
|
314
315
|
}, 8, [
|
|
315
316
|
"disabled",
|
|
@@ -319,11 +320,11 @@ var P = /* @__PURE__ */ p({
|
|
|
319
320
|
"onClick"
|
|
320
321
|
]));
|
|
321
322
|
}
|
|
322
|
-
}),
|
|
323
|
+
}), G = {
|
|
323
324
|
key: 0,
|
|
324
325
|
"data-slot": "glass-carousel-pager-counter",
|
|
325
326
|
class: "rounded-pill border border-border bg-card px-3 py-1 text-mono-caption tabular-nums shadow-cartoon-sm"
|
|
326
|
-
},
|
|
327
|
+
}, K = /* @__PURE__ */ m({
|
|
327
328
|
__name: "GlassCarouselPager",
|
|
328
329
|
props: {
|
|
329
330
|
index: {},
|
|
@@ -351,44 +352,44 @@ var P = /* @__PURE__ */ p({
|
|
|
351
352
|
"select"
|
|
352
353
|
],
|
|
353
354
|
setup(t, { emit: o }) {
|
|
354
|
-
let
|
|
355
|
-
function
|
|
356
|
-
m.value && (
|
|
355
|
+
let s = t, f = o, m = c(() => s.loop ? s.total > 1 : s.index > 0), h = c(() => s.loop ? s.total > 1 : s.index < s.total - 1);
|
|
356
|
+
function _() {
|
|
357
|
+
m.value && (s.loop ? f("select", (s.index - 1 + s.total) % s.total) : (f("prev"), f("select", Math.max(0, s.index - 1))));
|
|
357
358
|
}
|
|
358
359
|
function y() {
|
|
359
|
-
|
|
360
|
+
h.value && (s.loop ? f("select", (s.index + 1) % s.total) : (f("next"), f("select", Math.min(s.total - 1, s.index + 1))));
|
|
360
361
|
}
|
|
361
|
-
let
|
|
362
|
-
return (n, r) => (
|
|
362
|
+
let b = c(() => s.orientation === "vertical" ? i : j), T = c(() => s.orientation === "vertical" ? n : r);
|
|
363
|
+
return (n, r) => (v(), d("div", {
|
|
363
364
|
"data-slot": "glass-carousel-pager",
|
|
364
|
-
class:
|
|
365
|
+
class: g(w(e)("inline-flex items-center gap-2", t.orientation === "vertical" && "flex-col", "max-md:flex-wrap max-md:justify-center max-md:gap-2", s.class))
|
|
365
366
|
}, [
|
|
366
|
-
|
|
367
|
+
p(w(a), {
|
|
367
368
|
variant: "outline",
|
|
368
369
|
size: "icon",
|
|
369
370
|
disabled: !m.value,
|
|
370
371
|
"aria-label": t.orientation === "vertical" ? "Previous slide (up)" : "Previous slide",
|
|
371
372
|
"data-slot": "glass-carousel-pager-prev",
|
|
372
|
-
onClick:
|
|
373
|
+
onClick: _
|
|
373
374
|
}, {
|
|
374
|
-
default:
|
|
375
|
+
default: E(() => [(v(), l(S(b.value), { class: "size-4" }))]),
|
|
375
376
|
_: 1
|
|
376
377
|
}, 8, ["disabled", "aria-label"]),
|
|
377
|
-
t.showCounter && t.total > 0 ? (
|
|
378
|
-
|
|
378
|
+
t.showCounter && t.total > 0 ? (v(), d("span", G, C(t.index + 1) + " / " + C(t.total), 1)) : u("", !0),
|
|
379
|
+
p(w(a), {
|
|
379
380
|
variant: "outline",
|
|
380
381
|
size: "icon",
|
|
381
|
-
disabled: !
|
|
382
|
+
disabled: !h.value,
|
|
382
383
|
"aria-label": t.orientation === "vertical" ? "Next slide (down)" : "Next slide",
|
|
383
384
|
"data-slot": "glass-carousel-pager-next",
|
|
384
385
|
onClick: y
|
|
385
386
|
}, {
|
|
386
|
-
default:
|
|
387
|
+
default: E(() => [(v(), l(S(T.value), { class: "size-4" }))]),
|
|
387
388
|
_: 1
|
|
388
389
|
}, 8, ["disabled", "aria-label"]),
|
|
389
|
-
|
|
390
|
+
x(n.$slots, "trailing")
|
|
390
391
|
], 2));
|
|
391
392
|
}
|
|
392
393
|
});
|
|
393
394
|
//#endregion
|
|
394
|
-
export {
|
|
395
|
+
export { F as Carousel, I as CarouselContent, z as CarouselDots, B as CarouselItem, V as CarouselNext, U as CarouselPager, W as CarouselPrevious, K as GlassCarouselPager, P as useCarousel };
|
package/dist/collapsible.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "./CollapsibleContent-
|
|
1
|
+
import { n as e, r as t, t as n } from "./CollapsibleContent-CP9qF1v4.js";
|
|
2
2
|
export { t as Collapsible, n as CollapsibleContent, e as CollapsibleTrigger };
|
|
@@ -8,7 +8,15 @@ function u(e) {
|
|
|
8
8
|
Math.max(0, s)
|
|
9
9
|
];
|
|
10
10
|
}
|
|
11
|
-
function d(e) {
|
|
11
|
+
function d(e, t, n) {
|
|
12
|
+
if (!Number.isFinite(e) || !Number.isFinite(t) || !Number.isFinite(n)) throw Error(`warmCatchLight: non-finite OKLCh anchor (L=${e}, C=${t}, h=${n})`);
|
|
13
|
+
return u({
|
|
14
|
+
L: e,
|
|
15
|
+
C: t,
|
|
16
|
+
h: n
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
function f(e) {
|
|
12
20
|
let [t, n, r] = c(e.L, e.C, e.h), [i, o, s] = a(t, n, r), l = (e) => Math.min(1, Math.max(0, e / 255));
|
|
13
21
|
return [
|
|
14
22
|
l(i),
|
|
@@ -16,7 +24,7 @@ function d(e) {
|
|
|
16
24
|
l(s)
|
|
17
25
|
];
|
|
18
26
|
}
|
|
19
|
-
function
|
|
27
|
+
function p(t) {
|
|
20
28
|
let n = e(o(t), "rgb").value, [r, i, a] = l(Number(n.r), Number(n.g), Number(n.b)), [c, u, d] = s(r, i, a);
|
|
21
29
|
return {
|
|
22
30
|
L: c,
|
|
@@ -24,22 +32,22 @@ function f(t) {
|
|
|
24
32
|
h: d
|
|
25
33
|
};
|
|
26
34
|
}
|
|
27
|
-
function
|
|
35
|
+
function m(e) {
|
|
28
36
|
let [t, n, r] = c(e.L, e.C, e.h), [i, o, s] = a(t, n, r), l = (e) => Math.round(e).toString(16).padStart(2, "0");
|
|
29
37
|
return `#${l(i)}${l(o)}${l(s)}`;
|
|
30
38
|
}
|
|
31
|
-
var
|
|
39
|
+
var h = (e) => f(p(e)), g = {
|
|
32
40
|
complementary: "longer",
|
|
33
41
|
"split-complementary": "longer",
|
|
34
42
|
analogous: "shorter",
|
|
35
43
|
monochrome: "shorter",
|
|
36
44
|
triad: "increasing",
|
|
37
45
|
tetradic: "increasing"
|
|
38
|
-
},
|
|
39
|
-
function
|
|
40
|
-
let a =
|
|
46
|
+
}, _ = (e) => (e % 360 + 360) % 360;
|
|
47
|
+
function v(e, t, r, i) {
|
|
48
|
+
let a = g[t], o = (e, t) => _(n(_(e) / 360, _(t) / 360, i, a) * 360);
|
|
41
49
|
switch (t) {
|
|
42
|
-
case "monochrome": return
|
|
50
|
+
case "monochrome": return _(e);
|
|
43
51
|
case "complementary": return o(e, e + 180);
|
|
44
52
|
case "split-complementary": return o(e + 150, e + 210);
|
|
45
53
|
case "triad": return o(e, e + 240);
|
|
@@ -47,7 +55,7 @@ function _(e, t, r, i) {
|
|
|
47
55
|
default: return o(e - r, e + r);
|
|
48
56
|
}
|
|
49
57
|
}
|
|
50
|
-
function
|
|
58
|
+
function y(e) {
|
|
51
59
|
let [n, a, o] = c(e.L, e.C, e.h), [l, u, d] = t(n, a, o), [f, p, m] = s(l, u, d), h = p;
|
|
52
60
|
for (let e = 0; e < 6; e++) {
|
|
53
61
|
let [e, t, n] = c(f, h, m), [a, o, s] = i(e, t, n);
|
|
@@ -60,11 +68,11 @@ function v(e) {
|
|
|
60
68
|
h: m
|
|
61
69
|
};
|
|
62
70
|
}
|
|
63
|
-
function
|
|
64
|
-
let n = typeof e == "string" ?
|
|
71
|
+
function b(e, t = {}) {
|
|
72
|
+
let n = typeof e == "string" ? p(e) : e, { stopCount: r = 3, harmony: i = "analogous", lightnessSpread: a = .18, hueSpread: o = 24, chromaBump: s = .03 } = t, c = Math.max(2, Math.min(4, Math.round(r))), l = [];
|
|
65
73
|
for (let e = 0; e < c; e++) {
|
|
66
|
-
let t = c === 1 ? 0 : e / (c - 1), r = n.L - a / 2 + a * t, u = Math.max(0, n.C + s * Math.sin(Math.PI * t)), d =
|
|
67
|
-
l.push(
|
|
74
|
+
let t = c === 1 ? 0 : e / (c - 1), r = n.L - a / 2 + a * t, u = Math.max(0, n.C + s * Math.sin(Math.PI * t)), d = v(n.h, i, o, t);
|
|
75
|
+
l.push(y({
|
|
68
76
|
L: Math.min(.98, Math.max(.05, r)),
|
|
69
77
|
C: u,
|
|
70
78
|
h: d
|
|
@@ -73,4 +81,4 @@ function y(e, t = {}) {
|
|
|
73
81
|
return l;
|
|
74
82
|
}
|
|
75
83
|
//#endregion
|
|
76
|
-
export {
|
|
84
|
+
export { y as a, u as c, v as i, d as l, h as n, m as o, b as r, f as s, p as t };
|
package/dist/color.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, i as n,
|
|
2
|
-
export {
|
|
1
|
+
import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "./color-DMLTunJK.js";
|
|
2
|
+
export { c as cssToOklch, i as defaultBlobColorResolver, o as deriveBlobPalette, n as deriveHue, e as gamutMapStop, a as oklchStopToHex, s as oklchToGammaRgb, t as oklchToLinear, r as warmCatchLight };
|
package/dist/command.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "./CommandShortcut-
|
|
1
|
+
import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "./CommandShortcut-SzWRhROC.js";
|
|
2
2
|
export { r as Command, t as CommandDialog, s as CommandEmpty, a as CommandGroup, e as CommandInput, n as CommandItem, o as CommandList, i as CommandSeparator, c as CommandShortcut };
|