@mkbabb/glass-ui 3.6.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/CollapsibleContent-CP9qF1v4.js +63 -0
- package/dist/{CommandShortcut-BiVyqipe.js → CommandShortcut-SzWRhROC.js} +4 -4
- package/dist/{ContextMenuContent-De01_83g.js → ContextMenuContent-DDa0v27s.js} +1 -1
- package/dist/{ContextMenuSubContent-DrWkXKQP.js → ContextMenuSubContent-Do977Cbf.js} +4 -4
- package/dist/{DataTable-BGVXx0Ww.js → DataTable-CvlWXz65.js} +14 -7
- package/dist/DeckProgress-AVgbIULY.js +23 -0
- package/dist/{DialogContent-IQ8_BRrC.js → DialogContent-DjZWT3lK.js} +24 -24
- package/dist/{DialogFooter-Er0wA3K6.js → DialogFooter-Gprw8H_A.js} +2 -2
- package/dist/{DiscoGlyph-BaZ8OawK.js → DiscoGlyph-CG0F410s.js} +1 -1
- package/dist/{GlyphFace-B_7vOmYn.js → GlyphFace-DRjDkB0s.js} +1 -1
- package/dist/{HoverCardContent-ICfIMZX1.js → HoverCardContent-B6CcQ8He.js} +1 -1
- package/dist/{HoverPopover-DTSYkJtw.js → HoverPopover-D56O6Ylp.js} +1 -1
- package/dist/{IconTooltip-DZlCkU-0.js → IconTooltip-D2T5nYOM.js} +1 -1
- package/dist/{Input-CRJ2owjN.js → Input-DVG_J0ne.js} +4 -1
- package/dist/{Label-CZk-3nTc.js → Label-zRfbQdCn.js} +1 -1
- package/dist/{MetricBadge-BlrdbOGN.js → MetricBadge-lTc002u2.js} +1 -1
- package/dist/{Notification-DP_ApJLo.js → Notification-BxK8LZMw.js} +5 -4
- package/dist/{NumberFieldContent-Bhhmk95p.js → NumberFieldContent-CLNVR1iY.js} +5 -5
- package/dist/{PopoverContent-B8WtJECb.js → PopoverContent-BId6ggf_.js} +2 -2
- package/dist/{Progress-DjM86vfb.js → Progress-iEuD9pxG.js} +7 -7
- package/dist/{ScrollingText-P9o_DuMn.js → ScrollingText-CVyqxvfv.js} +2 -2
- package/dist/{SelectScrollDownButton-BGn3rjs9.js → SelectScrollDownButton-C7TRe-ep.js} +8 -7
- package/dist/{Separator-C2XtAXRp.js → Separator-D7sD7RKj.js} +1 -1
- package/dist/{Switch-x8n6husW.js → Switch-LDKLmmgx.js} +8 -2
- package/dist/TabsList-qyHZ2lKY.js +101 -0
- package/dist/{Toaster-DdhMKfus.js → Toaster-CabYEEF_.js} +54 -60
- package/dist/{ToggleGroupItem-gyXj998A.js → ToggleGroupItem-CkXUcBlt.js} +13 -5
- package/dist/{TooltipProvider-D-JrSqDu.js → TooltipProvider-CmZzCuaG.js} +1 -1
- package/dist/{UnderlineTabs-CuIK16JI.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 +753 -359
- package/dist/{badge-Cl6JZ1B7.js → badge-DHQrc_GQ.js} +13 -9
- package/dist/badge.js +1 -1
- package/dist/{button-BcMzVrqs.js → button-CAywcrhO.js} +6 -3
- package/dist/button.js +1 -1
- package/dist/canvas.d.ts +1 -0
- package/dist/canvas.js +3 -0
- package/dist/card.js +2 -2
- package/dist/carousel.js +110 -109
- package/dist/{check-CdkxGxXJ.js → check-BBKKKSTf.js} +1 -1
- package/dist/{chevron-down-pBY8sYfV.js → chevron-down-BSkTP2aL.js} +1 -1
- package/dist/{chevron-right-BjeKC22V.js → chevron-right-sDM0Yvrf.js} +1 -1
- package/dist/{chevron-up-DBeNHUm1.js → chevron-up-CCOD_FTz.js} +1 -1
- package/dist/collapsible.js +1 -1
- package/dist/color-DMLTunJK.js +84 -0
- package/dist/color.js +2 -2
- package/dist/command.js +1 -1
- package/dist/compile-BBTRjvQS.js +158 -0
- package/dist/components/custom/aurora/Aurora.vue.d.ts +1 -0
- package/dist/components/custom/aurora/composables/atoms.d.ts +125 -0
- package/dist/components/custom/aurora/composables/color.d.ts +7 -25
- package/dist/components/custom/aurora/composables/cursorModel.d.ts +35 -2
- package/dist/components/custom/aurora/composables/glSetup.d.ts +1 -1
- package/dist/components/custom/aurora/composables/gpuRuntime.d.ts +16 -0
- package/dist/components/custom/aurora/composables/runtime.d.ts +18 -0
- package/dist/components/custom/aurora/composables/uniformBridge.d.ts +46 -12
- package/dist/components/custom/aurora/composables/useAurora.d.ts +6 -0
- package/dist/components/custom/aurora/composables/useCursorInteraction.d.ts +8 -0
- package/dist/components/custom/aurora/constants/presets.d.ts +60 -4
- package/dist/components/custom/aurora/constants/renderMode.d.ts +32 -0
- package/dist/components/custom/aurora/constants/shaders/aurora.wgsl.d.ts +7 -0
- 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/flow.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/painterly.wgsl.d.ts +7 -0
- package/dist/components/custom/aurora/constants/shaders/wake.wgsl.d.ts +4 -0
- package/dist/components/custom/aurora/index.d.ts +4 -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/fourier-field/FourierField.vue.d.ts +38 -0
- package/dist/components/custom/fourier-field/index.d.ts +2 -0
- package/dist/components/custom/fourier-field/math.d.ts +57 -0
- package/dist/components/custom/goo-blob/GooBlob.vue.d.ts +15 -0
- package/dist/components/custom/goo-blob/composables/useBlobMood.d.ts +18 -2
- package/dist/components/custom/goo-blob/composables/useBlobPointer.d.ts +47 -4
- package/dist/components/custom/goo-blob/composables/useBlobSatellites.d.ts +2 -0
- package/dist/components/custom/goo-blob/composables/useMetaballRenderer.d.ts +19 -4
- 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 +48 -0
- package/dist/components/custom/metric-cell/MetricCell.vue.d.ts +1 -1
- package/dist/components/custom/metric-stack/MetricStack.vue.d.ts +1 -1
- package/dist/components/ui/_shared/ModalOverlay.vue.d.ts +1 -1
- package/dist/components/ui/alert/index.d.ts +1 -1
- package/dist/components/ui/card/Card.vue.d.ts +26 -3
- package/dist/components/ui/card/CardAction.vue.d.ts +24 -0
- package/dist/components/ui/card/index.d.ts +2 -1
- package/dist/components/ui/collapsible/CollapsibleTrigger.vue.d.ts +5 -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/components/ui/tabs/TabsList.vue.d.ts +13 -3
- package/dist/components/ui/toast/Toast.vue.d.ts +5 -5
- package/dist/components/ui/toast/use-toast.d.ts +1 -1
- package/dist/composables/color/index.d.ts +69 -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/createGPUCanvas.d.ts +40 -0
- 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 +45 -0
- package/dist/composables/glass/webgl/shaders/procedural-color.glsl.d.ts +7 -0
- package/dist/composables/glass/webgl/useWebGLCanvas.d.ts +5 -5
- package/dist/composables/motion/core/index.d.ts +1 -0
- package/dist/configurator.js +1 -1
- package/dist/confirm-dialog.js +3 -3
- 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 +388 -287
- package/dist/{dockContext-spUj_-E5.js → dockContext-BKeIMmNk.js} +1 -1
- package/dist/dom.js +6 -6
- package/dist/{dropdown-menu-EFjl5iKo.js → dropdown-menu-B_4bWyyG.js} +5 -5
- package/dist/dropdown-menu.js +1 -1
- package/dist/expandable-container.js +2 -2
- package/dist/fonts/README.md +26 -18
- package/dist/forms.js +10 -7
- package/dist/fourier-field.d.ts +1 -0
- package/dist/fourier-field.js +166 -0
- 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 +209 -206
- package/dist/glyph-face.js +2 -2
- package/dist/goo-blob.js +485 -300
- 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-BFoma9vm.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/{minimize-2-BP27-qBY.js → minimize-2-lcXOuc6V.js} +1 -1
- package/dist/motion-core.js +68 -98
- package/dist/motion.js +3 -3
- package/dist/notification.js +1 -1
- package/dist/number-field.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-DBG8qaRs.js → search-nbkvr2dC.js} +1 -1
- package/dist/search.js +12 -12
- package/dist/select.js +3 -3
- package/dist/separator.js +1 -1
- package/dist/{sheet-CQYYrkr9.js → sheet-VZEtNFvO.js} +4 -4
- 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 +58 -2
- package/dist/styles/tokens.css +139 -32
- package/dist/styles/typography.css +55 -72
- package/dist/styles/utilities.css +19 -14
- package/dist/styles/view-transition.css +12 -40
- package/dist/supportsCssTimeline-C5oe0lnD.js +12 -0
- 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-DfVgP4te.js → useAnimatedNumber-C_3wZLx4.js} +1 -1
- package/dist/{useCanvas2D-BeNJqqIS.js → useCanvas2D-ClrQuZtp.js} +2 -1
- package/dist/{useConfiguratorState-DUtC1jxr.js → useConfiguratorState-CMff4GzH.js} +5 -5
- package/dist/useResolveTokenColor-r9pnNjqK.js +24 -0
- package/dist/useScrollProgress-C9ysDic5.js +35 -0
- package/dist/useSpecularTracking-BVRZsRHA.js +26 -0
- package/dist/{useTextHighlight-Dmtofpk2.js → useTextHighlight-9nMW23Qb.js} +1 -1
- package/dist/{useTouchGate-CS5Csc2h.js → useTouchGate-WFyJYsth.js} +1 -1
- package/dist/vReveal-CqaCz_mC.js +44 -0
- package/dist/watercolor-dot.js +2 -2
- package/dist/{x-C4pz9nbD.js → x-Dfsegz9Y.js} +1 -1
- package/package.json +64 -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 +58 -2
- package/src/styles/tokens.css +139 -32
- package/src/styles/typography.css +55 -72
- package/src/styles/utilities.css +19 -14
- package/src/styles/view-transition.css +12 -40
- package/dist/CardFooter-C390imy7.js +0 -129
- package/dist/CollapsibleContent-cauTbZEM.js +0 -52
- package/dist/TabsIndicator-DA0x9gPr.js +0 -97
- package/dist/color-DS-iLRVM.js +0 -33
- package/dist/compile-C62K_FpC.js +0 -106
- package/dist/fonts/fraunces/fraunces-latin.woff2 +0 -0
- package/dist/slider-CgNzRSh6.js +0 -129
- package/dist/useViewTransition-DI0Rs2rV.js +0 -21
- package/dist/vReveal-u2wSG2El.js +0 -35
- package/src/fonts/fraunces/fraunces-latin.woff2 +0 -0
- /package/dist/{InstrumentChassis-DaHIZCqy.js → InstrumentChassis-C2f6cBaQ.js} +0 -0
- /package/dist/{InstrumentRail-B0qqLFN0.js → InstrumentRail-CUJ05YVG.js} +0 -0
- /package/dist/{ModalOverlay-B_CBtqcE.js → ModalOverlay-B1GkAjNb.js} +0 -0
- /package/dist/{PaperBackdrop-D_YZW47j.js → PaperBackdrop-CqwjnfLv.js} +0 -0
- /package/dist/{SelectGroup-CMdoCjRE.js → SelectGroup-BFiod7X2.js} +0 -0
- /package/dist/{SelectSeparator-CaJnPF3_.js → SelectSeparator-L8pPEn4L.js} +0 -0
- /package/dist/{_plugin-vue_export-helper-C1je1s0u.js → _plugin-vue_export-helper-ok8pgSl5.js} +0 -0
- /package/dist/composables/{dom → motion}/useTextHighlight.d.ts +0 -0
- /package/dist/{constants-C8NMonuo.js → constants-BPOqYJAm.js} +0 -0
- /package/dist/{createContext-DBMGRlx4.js → createContext-B44Sah_H.js} +0 -0
- /package/dist/{createLucideIcon-DuDoe_ra.js → createLucideIcon-B6uNAU9G.js} +0 -0
- /package/dist/{menuItemVariants-C2QlXqT3.js → menuItemVariants-DKM85SNE.js} +0 -0
- /package/dist/{presets-Dyv9Zl7W.js → presets-D1XPuTj-.js} +0 -0
- /package/dist/{prng-CjVgzjQT.js → prng-COGhh02-.js} +0 -0
- /package/dist/{useGlassRenderer-Dn3WpfG-.js → useGlassRenderer-5I0YkI4t.js} +0 -0
- /package/dist/{useGlobalDark-D7R9OypB.js → useGlobalDark-D3EBWzXK.js} +0 -0
- /package/dist/{useIntersectionPause-DsQYGc8V.js → useIntersectionPause-Bj4sPkMh.js} +0 -0
- /package/dist/{useInterval-CHVYFpXV.js → useInterval-CcLfq2WU.js} +0 -0
- /package/dist/{useKeyboardShortcuts-i8tHd5WO.js → useKeyboardShortcuts-BXWXOZ-9.js} +0 -0
- /package/dist/{useResizeObserver-DX-STszm.js → useResizeObserver-CWCbk5Px.js} +0 -0
- /package/dist/{useSortable-muI29agz.js → useSortable-MGAbCGVJ.js} +0 -0
- /package/dist/{useSpringMount-CnizvZGm.js → useSpringMount-BJSHcLl3.js} +0 -0
- /package/dist/{useTimer-DGgoxTXL.js → useTimer-3xqf_54b.js} +0 -0
- /package/dist/{useUserInvalidAria-DmvZ_6Dx.js → useUserInvalidAria-DoJKMZ3s.js} +0 -0
- /package/dist/{useViewportReady-Dcvf0c4p.js → useViewportReady-RIr5Wgkh.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e } from "./createContext-
|
|
1
|
+
import { n as e } from "./createContext-B44Sah_H.js";
|
|
2
2
|
//#region src/components/custom/dock/composables/dockContext.ts
|
|
3
3
|
var t = e("glass-ui:dock-context", "[glass-ui:dock] useDockContext() called outside <GlassDock>; use useOptionalDockContext() if the primitive may render outside a dock."), n = t.KEY;
|
|
4
4
|
function r(e) {
|
package/dist/dom.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as e } from "./useResizeObserver-
|
|
2
|
-
import { t } from "./useTouchGate-
|
|
3
|
-
import { a as n, i as r, n as i, o as a, r as o, t as s } from "./useViewportReady-
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
export { r as copyToClipboard, o as useBreakpoint, n as useClipboard, i as useIdleReady, e as useResizeObserver,
|
|
1
|
+
import { t as e } from "./useResizeObserver-CWCbk5Px.js";
|
|
2
|
+
import { t } from "./useTouchGate-WFyJYsth.js";
|
|
3
|
+
import { a as n, i as r, n as i, o as a, r as o, t as s } from "./useViewportReady-RIr5Wgkh.js";
|
|
4
|
+
import { n as c, t as l } from "./useResolveTokenColor-r9pnNjqK.js";
|
|
5
|
+
import { t as u } from "./useUserInvalidAria-DoJKMZ3s.js";
|
|
6
|
+
export { r as copyToClipboard, l as createTokenColorCache, c as resolveTokenColor, o as useBreakpoint, n as useClipboard, i as useIdleReady, e as useResizeObserver, a as useTokenColor, t as useTouchGate, u as useUserInvalidAria, s as useViewportReady };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
|
-
import { t } from "./check-
|
|
3
|
-
import { t as n } from "./chevron-right-
|
|
4
|
-
import { t as r } from "./menuItemVariants-
|
|
5
|
-
import { i } from "./dockContext-
|
|
2
|
+
import { t } from "./check-BBKKKSTf.js";
|
|
3
|
+
import { t as n } from "./chevron-right-sDM0Yvrf.js";
|
|
4
|
+
import { t as r } from "./menuItemVariants-DKM85SNE.js";
|
|
5
|
+
import { i } from "./dockContext-BKeIMmNk.js";
|
|
6
6
|
import { computed as a, createBlock as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, guardReactiveProps as d, mergeProps as f, normalizeClass as p, normalizeProps as m, openBlock as h, renderSlot as g, unref as _, withCtx as v } from "vue";
|
|
7
7
|
import { DropdownMenuCheckboxItem as y, DropdownMenuContent as b, DropdownMenuGroup as x, DropdownMenuItem as S, DropdownMenuItemIndicator as C, DropdownMenuLabel as w, DropdownMenuPortal as T, DropdownMenuPortal as E, DropdownMenuRadioGroup as D, DropdownMenuRadioItem as O, DropdownMenuRoot as k, DropdownMenuSeparator as A, DropdownMenuSub as j, DropdownMenuSubContent as M, DropdownMenuSubTrigger as N, DropdownMenuTrigger as P, useForwardProps as F, useForwardPropsEmits as I } from "reka-ui";
|
|
8
8
|
//#endregion
|
|
@@ -18,7 +18,7 @@ var L = /* @__PURE__ */ u({
|
|
|
18
18
|
emits: ["update:open"],
|
|
19
19
|
setup(e, { emit: t }) {
|
|
20
20
|
let n = I(e, t);
|
|
21
|
-
return (e, t) => (h(), o(_(k),
|
|
21
|
+
return (e, t) => (h(), o(_(k), f({ "data-slot": "dropdown-menu" }, _(n)), {
|
|
22
22
|
default: v(() => [g(e.$slots, "default")]),
|
|
23
23
|
_: 3
|
|
24
24
|
}, 16));
|
package/dist/dropdown-menu.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, f as r, h as i, i as a, l as o, m as s, n as c, o as l, p as u, r as d, s as f, t as p, u as m } from "./dropdown-menu-
|
|
1
|
+
import { a as e, c as t, d as n, f as r, h as i, i as a, l as o, m as s, n as c, o as l, p as u, r as d, s as f, t as p, u as m } from "./dropdown-menu-B_4bWyyG.js";
|
|
2
2
|
export { i as DropdownMenu, o as DropdownMenuCheckboxItem, u as DropdownMenuContent, r as DropdownMenuGroup, m as DropdownMenuItem, e as DropdownMenuLabel, p as DropdownMenuPortal, n as DropdownMenuRadioGroup, t as DropdownMenuRadioItem, l as DropdownMenuSeparator, f as DropdownMenuShortcut, a as DropdownMenuSub, c as DropdownMenuSubContent, d as DropdownMenuSubTrigger, s as DropdownMenuTrigger };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e, t } from "./minimize-2-
|
|
2
|
-
import { i as n } from "./useKeyboardShortcuts-
|
|
1
|
+
import { n as e, t } from "./minimize-2-lcXOuc6V.js";
|
|
2
|
+
import { i as n } from "./useKeyboardShortcuts-BXWXOZ-9.js";
|
|
3
3
|
import { Fragment as r, Teleport as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, mergeModels as d, mergeProps as f, normalizeClass as p, onMounted as m, onUnmounted as h, openBlock as g, renderSlot as _, unref as v, useModel as y, watch as b } from "vue";
|
|
4
4
|
//#region src/components/custom/expandable-container/ExpandableContainer.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var x = ["aria-label"], S = {
|
package/dist/fonts/README.md
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
# `src/fonts/` — self-hostable woff2 assets
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
glass-ui ships its brand register as self-hosted woff2 assets so consumers
|
|
4
|
+
can self-host via the `@mkbabb/glass-ui/styles/fonts` bundle rather than
|
|
5
|
+
re-fetching from a CDN on every page-load. The register is ONE coherent
|
|
6
|
+
brand voice:
|
|
7
|
+
|
|
8
|
+
- **Plus Jakarta Sans** — the text + display register (body, headings,
|
|
9
|
+
prose, display). The library DEFAULT family; every live surface paints it.
|
|
10
|
+
- **Fira Code** — the mono register (admin labels, tabular numerics, code).
|
|
11
|
+
|
|
12
|
+
Both are OFL-1.1 variable faces, each paired with a Capsize-calibrated
|
|
13
|
+
`"… Fallback"` face (declared in `typography.css`) so the swap window is
|
|
14
|
+
geometry-neutral (zero CLS).
|
|
7
15
|
|
|
8
16
|
## Canonical filenames (Fira Code)
|
|
9
17
|
|
|
@@ -21,26 +29,26 @@ woff2 builds live in `distr/woff2/` of that repository's releases — pull
|
|
|
21
29
|
the `Regular`/`Medium`/`SemiBold` weights only (the three glass-ui ships
|
|
22
30
|
as the `--font-mono` stack rungs).
|
|
23
31
|
|
|
24
|
-
##
|
|
32
|
+
## On-disk layout (the shipped register)
|
|
25
33
|
|
|
26
34
|
The actual on-disk layout is per-family nested
|
|
27
|
-
(`src/fonts/<family>/<face>.woff2`)
|
|
28
|
-
`src/fonts/plus-jakarta-sans/plus-jakarta-sans-latin.woff2`. AU.W4 ships the
|
|
29
|
-
display register's face — the `--font-stack-display: "Fraunces"` token
|
|
30
|
-
(`tokens.css`) had no face, so the `WONK`/`SOFT` axes `typography.css` drives were
|
|
31
|
-
silently inert. The shipped face is the FULL variable Fraunces (latin subset):
|
|
35
|
+
(`src/fonts/<family>/<face>.woff2`):
|
|
32
36
|
|
|
33
37
|
```
|
|
34
|
-
src/fonts/
|
|
38
|
+
src/fonts/plus-jakarta-sans/plus-jakarta-sans-latin.woff2
|
|
39
|
+
src/fonts/plus-jakarta-sans/plus-jakarta-sans-latin-ext.woff2
|
|
40
|
+
src/fonts/fira-code/fira-code-latin.woff2
|
|
41
|
+
src/fonts/fira-code/fira-code-latin-ext.woff2
|
|
35
42
|
```
|
|
36
43
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
<https://github.com/
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
+
Plus Jakarta Sans is the text + display register (`--font-stack-text`,
|
|
45
|
+
aliased by `--font-stack-display`); Fira Code is `--font-stack-mono`. Each is
|
|
46
|
+
a FULL variable face (latin + latin-ext subsets). Source canonical:
|
|
47
|
+
<https://github.com/tokotype/PlusJakartaSans> +
|
|
48
|
+
<https://github.com/tonsky/FiraCode> (both OFL-1.1); the variable woff2 latin
|
|
49
|
+
subsets are the Google Fonts / fontsource distributions. The Capsize metric
|
|
50
|
+
overrides on the fallback faces (`size-adjust` / `ascent-override` /
|
|
51
|
+
`descent-override`) reference these binaries' exact geometry.
|
|
44
52
|
|
|
45
53
|
## Why this directory ships, not the fetch step
|
|
46
54
|
|
package/dist/forms.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
|
-
import { t } from "./search-
|
|
3
|
-
import { t as n } from "./menuItemVariants-
|
|
4
|
-
import { t as r } from "./useUserInvalidAria-
|
|
5
|
-
import { t as i } from "./Input-
|
|
2
|
+
import { t } from "./search-nbkvr2dC.js";
|
|
3
|
+
import { t as n } from "./menuItemVariants-DKM85SNE.js";
|
|
4
|
+
import { t as r } from "./useUserInvalidAria-DoJKMZ3s.js";
|
|
5
|
+
import { t as i } from "./Input-DVG_J0ne.js";
|
|
6
6
|
import { computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createTextVNode as l, createVNode as u, defineComponent as d, isRef as f, mergeProps as p, openBlock as m, renderSlot as h, toDisplayString as g, unref as _, vModelText as v, withCtx as y, withDirectives as b } from "vue";
|
|
7
7
|
import { ComboboxAnchor as x, ComboboxCancel as S, ComboboxContent as C, ComboboxEmpty as w, ComboboxGroup as T, ComboboxInput as E, ComboboxItem as D, ComboboxItemIndicator as O, ComboboxLabel as k, ComboboxPortal as A, ComboboxRoot as j, ComboboxSeparator as M, ComboboxTrigger as N, ComboboxViewport as P, useForwardProps as F, useForwardPropsEmits as I } from "reka-ui";
|
|
8
8
|
import { reactiveOmit as L, useVModel as R } from "@vueuse/core";
|
|
@@ -36,12 +36,15 @@ var z = ["data-autosize"], B = /* @__PURE__ */ d({
|
|
|
36
36
|
placeholder: r.placeholder,
|
|
37
37
|
disabled: r.disabled
|
|
38
38
|
}));
|
|
39
|
-
return (n, a) => b((m(), c("textarea", p({
|
|
39
|
+
return (n, a) => b((m(), c("textarea", p({
|
|
40
|
+
"onUpdate:modelValue": a[0] ||= (e) => f(i) ? i.value = e : null,
|
|
41
|
+
"data-slot": "textarea"
|
|
42
|
+
}, {
|
|
40
43
|
...n.$attrs,
|
|
41
44
|
...o.value
|
|
42
45
|
}, {
|
|
43
46
|
"data-autosize": t.autosize ? "" : void 0,
|
|
44
|
-
class: _(e)("input-pill py-2 text-sm", t.autosize ? "" : "min-h-20", r.class)
|
|
47
|
+
class: _(e)("input-pill rounded-field py-2 text-sm", t.autosize ? "" : "min-h-20", r.class)
|
|
45
48
|
}), null, 16, z)), [[v, _(i)]]);
|
|
46
49
|
}
|
|
47
50
|
}), V = /* @__PURE__ */ d({
|
|
@@ -174,7 +177,7 @@ var z = ["data-autosize"], B = /* @__PURE__ */ d({
|
|
|
174
177
|
let i = n, a = r, o = I(L(i, "class"), a);
|
|
175
178
|
return (n, r) => (m(), c("div", G, [u(_(t), { class: "size-4 shrink-0 opacity-50" }), u(_(E), p({
|
|
176
179
|
"data-slot": "command-input",
|
|
177
|
-
class: _(e)("placeholder:text-muted-foreground flex h-10 w-full rounded-input bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-disabled", i.class)
|
|
180
|
+
class: _(e)("placeholder:text-muted-foreground flex h-10 w-full rounded-input bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-disabled aria-invalid:text-[var(--destructive)] aria-invalid:placeholder:text-[color-mix(in_srgb,var(--destructive)_60%,transparent)]", i.class)
|
|
178
181
|
}, {
|
|
179
182
|
..._(o),
|
|
180
183
|
...n.$attrs
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./components/custom/fourier-field";
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { t as e } from "./useCanvas2D-ClrQuZtp.js";
|
|
2
|
+
import { t } from "./_plugin-vue_export-helper-ok8pgSl5.js";
|
|
3
|
+
import { i as n, s as r, t as i } from "./color-DMLTunJK.js";
|
|
4
|
+
import { t as a } from "./useGlobalDark-D3EBWzXK.js";
|
|
5
|
+
import { n as o, t as s } from "./prng-COGhh02-.js";
|
|
6
|
+
import { createElementBlock as c, createElementVNode as l, defineComponent as u, onMounted as d, openBlock as f, ref as p, useTemplateRef as m, watch as h } from "vue";
|
|
7
|
+
//#region src/components/custom/fourier-field/math.ts
|
|
8
|
+
function g(e, t, n) {
|
|
9
|
+
return {
|
|
10
|
+
index: e,
|
|
11
|
+
coefficient: [t, n],
|
|
12
|
+
amplitude: Math.hypot(t, n),
|
|
13
|
+
phase: Math.atan2(n, t)
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
function _(e, t, n) {
|
|
17
|
+
let r = 0, i = 0, a = n ?? e.length;
|
|
18
|
+
for (let n = 0; n < a && n < e.length; n++) {
|
|
19
|
+
let a = e[n], o = 2 * Math.PI * a.index * t, s = Math.cos(o), c = Math.sin(o);
|
|
20
|
+
r += a.coefficient[0] * s - a.coefficient[1] * c, i += a.coefficient[0] * c + a.coefficient[1] * s;
|
|
21
|
+
}
|
|
22
|
+
return [r, i];
|
|
23
|
+
}
|
|
24
|
+
function v(e, t, n) {
|
|
25
|
+
let r = [[0, 0]], i = 0, a = 0, o = n ?? e.length;
|
|
26
|
+
for (let n = 0; n < o && n < e.length; n++) {
|
|
27
|
+
let o = e[n], s = 2 * Math.PI * o.index * t, c = Math.cos(s), l = Math.sin(s);
|
|
28
|
+
i += o.coefficient[0] * c - o.coefficient[1] * l, a += o.coefficient[0] * l + o.coefficient[1] * c, r.push([i, a]);
|
|
29
|
+
}
|
|
30
|
+
return r;
|
|
31
|
+
}
|
|
32
|
+
function y(e, t = {}) {
|
|
33
|
+
let { harmonics: n = 4, harmonicScale: r = .22 } = t, i = .62 + e() * .18, a = i * (.34 + e() * .3), o = e() * Math.PI * 2, s = e() * Math.PI * 2, c = [g(1, i * Math.cos(o), i * Math.sin(o)), g(-1, a * Math.cos(s), a * Math.sin(s))];
|
|
34
|
+
for (let t = 0; t < n; t++) {
|
|
35
|
+
let n = 2 + Math.floor(t / 2), i = t % 2 == 0 ? n : -n, a = r / n * (.4 + e() * .6), o = e() * Math.PI * 2;
|
|
36
|
+
c.push(g(i, a * Math.cos(o), a * Math.sin(o)));
|
|
37
|
+
}
|
|
38
|
+
return c;
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region src/components/custom/fourier-field/FourierField.vue?vue&type=script&setup=true&lang.ts
|
|
42
|
+
var b = .24, x = /* @__PURE__ */ t(/* @__PURE__ */ u({
|
|
43
|
+
__name: "FourierField",
|
|
44
|
+
props: {
|
|
45
|
+
variant: { default: "hero" },
|
|
46
|
+
color: {},
|
|
47
|
+
colorResolver: { type: Function },
|
|
48
|
+
seed: { default: "" },
|
|
49
|
+
freeze: {
|
|
50
|
+
type: Boolean,
|
|
51
|
+
default: !1
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
setup(t) {
|
|
55
|
+
let u = {
|
|
56
|
+
hero: {
|
|
57
|
+
harmonics: 4,
|
|
58
|
+
harmonicScale: .22,
|
|
59
|
+
epicycles: !0,
|
|
60
|
+
trailLength: 170,
|
|
61
|
+
epicycleHueShift: 42,
|
|
62
|
+
durationMs: 16e3,
|
|
63
|
+
frozenSeed: "fourier-field/hero",
|
|
64
|
+
frozenT: .18
|
|
65
|
+
},
|
|
66
|
+
final: {
|
|
67
|
+
harmonics: 9,
|
|
68
|
+
harmonicScale: .16,
|
|
69
|
+
epicycles: !1,
|
|
70
|
+
trailLength: 200,
|
|
71
|
+
epicycleHueShift: 36,
|
|
72
|
+
durationMs: 21e3,
|
|
73
|
+
frozenSeed: "fourier-field/final",
|
|
74
|
+
frozenT: .33
|
|
75
|
+
}
|
|
76
|
+
}, g = m("hostRef"), _ = m("canvasRef"), x = p(t.color);
|
|
77
|
+
function S(e) {
|
|
78
|
+
if (!e.includes("var(") && !e.includes("light-dark(")) return e;
|
|
79
|
+
let t = g.value;
|
|
80
|
+
if (typeof window > "u" || !t) return e;
|
|
81
|
+
let n = t.style.color;
|
|
82
|
+
t.style.color = e;
|
|
83
|
+
let r = getComputedStyle(t).color;
|
|
84
|
+
return t.style.color = n, r || e;
|
|
85
|
+
}
|
|
86
|
+
function C() {
|
|
87
|
+
x.value = S(t.color);
|
|
88
|
+
}
|
|
89
|
+
function w(e) {
|
|
90
|
+
return y(o(s((t.freeze ? e.frozenSeed : `${Math.random()}`) + t.seed)), {
|
|
91
|
+
harmonics: e.harmonics,
|
|
92
|
+
harmonicScale: e.harmonicScale
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
let { isDark: T } = a();
|
|
96
|
+
return d(() => {
|
|
97
|
+
let a = _.value;
|
|
98
|
+
if (!a) return;
|
|
99
|
+
let o = u[t.variant], s = w(o), c = Infinity, l = Infinity, d = -Infinity, f = -Infinity;
|
|
100
|
+
for (let e = 0; e < 720; e++) {
|
|
101
|
+
let t = v(s, e / 720), [n, r] = t[t.length - 1];
|
|
102
|
+
n < c && (c = n), r < l && (l = r), n > d && (d = n), r > f && (f = r);
|
|
103
|
+
}
|
|
104
|
+
let p = Math.max(.001, d - c), m = Math.max(.001, f - l), y = (c + d) / 2, S = (l + f) / 2, E = [], D = e({
|
|
105
|
+
canvas: _,
|
|
106
|
+
setup: () => ({ render(e, c) {
|
|
107
|
+
let l = a.clientWidth || a.offsetWidth || 0, u = a.clientHeight || a.offsetHeight || 0;
|
|
108
|
+
if (!l || !u) return;
|
|
109
|
+
let d = .82, f = Math.min(l / p * d, u / m * d), h = l / 2, g = u / 2, _ = (e, t) => [h + (e - y) * f, g + (t - S) * f], C = t.freeze || D.reducedMotion ? o.frozenT : c / o.durationMs % 1, [w, T, O] = t.colorResolver(x.value).map((e) => Math.round(e * 255)), k = `rgb(${w}, ${T}, ${O})`, A = i(x.value), [j, M, N] = r({
|
|
110
|
+
L: A.L,
|
|
111
|
+
C: A.C,
|
|
112
|
+
h: n(A.h, "analogous", o.epicycleHueShift, 1)
|
|
113
|
+
}).map((e) => Math.round(e * 255)), P = `rgb(${j}, ${M}, ${N})`;
|
|
114
|
+
if (e.clearRect(0, 0, l, u), o.epicycles) {
|
|
115
|
+
let t = v(s, C);
|
|
116
|
+
e.lineWidth = 1;
|
|
117
|
+
for (let n = 1; n < t.length; n++) {
|
|
118
|
+
let [r, i] = _(t[n - 1][0], t[n - 1][1]), [a, o] = _(t[n][0], t[n][1]), s = Math.hypot(a - r, o - i);
|
|
119
|
+
e.strokeStyle = P, e.globalAlpha = b * .6 * .5, e.beginPath(), e.arc(r, i, s, 0, Math.PI * 2), e.stroke(), e.globalAlpha = b * .6, e.beginPath(), e.moveTo(r, i), e.lineTo(a, o), e.stroke();
|
|
120
|
+
}
|
|
121
|
+
e.globalAlpha = 1;
|
|
122
|
+
}
|
|
123
|
+
let F = v(s, C), [I, L] = F[F.length - 1], R = _(I, L);
|
|
124
|
+
if (t.freeze || D.reducedMotion) {
|
|
125
|
+
if (E.length === 0) {
|
|
126
|
+
let e = Math.min(o.trailLength, 48);
|
|
127
|
+
for (let t = e; t >= 0; t--) {
|
|
128
|
+
let n = v(s, (C - t / e * .06 + 1) % 1);
|
|
129
|
+
E.push(_(n[n.length - 1][0], n[n.length - 1][1]));
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
} else for (E.push(R); E.length > o.trailLength;) E.shift();
|
|
133
|
+
e.strokeStyle = k, e.lineCap = "round", e.lineJoin = "round", e.lineWidth = 1.6;
|
|
134
|
+
for (let t = 1; t < E.length; t++) {
|
|
135
|
+
let n = t / (E.length - 1);
|
|
136
|
+
e.globalAlpha = b * n * n, e.beginPath(), e.moveTo(E[t - 1][0], E[t - 1][1]), e.lineTo(E[t][0], E[t][1]), e.stroke();
|
|
137
|
+
}
|
|
138
|
+
if (E.length >= 2) {
|
|
139
|
+
e.save(), e.shadowColor = k, e.shadowBlur = 14, e.globalAlpha = b, e.lineWidth = 2;
|
|
140
|
+
let t = E.slice(-4);
|
|
141
|
+
e.beginPath(), e.moveTo(t[0][0], t[0][1]);
|
|
142
|
+
for (let n = 1; n < t.length; n++) e.lineTo(t[n][0], t[n][1]);
|
|
143
|
+
e.stroke(), e.restore();
|
|
144
|
+
}
|
|
145
|
+
e.globalAlpha = 1;
|
|
146
|
+
} })
|
|
147
|
+
});
|
|
148
|
+
h(g, C, { immediate: !0 }), h(() => t.color, () => {
|
|
149
|
+
C(), D.wake();
|
|
150
|
+
}), h(T, () => {
|
|
151
|
+
C(), D.wake();
|
|
152
|
+
});
|
|
153
|
+
}), (e, t) => (f(), c("div", {
|
|
154
|
+
ref_key: "hostRef",
|
|
155
|
+
ref: g,
|
|
156
|
+
class: "fourier-field"
|
|
157
|
+
}, [l("canvas", {
|
|
158
|
+
ref_key: "canvasRef",
|
|
159
|
+
ref: _,
|
|
160
|
+
class: "fourier-field-canvas",
|
|
161
|
+
"aria-hidden": "true"
|
|
162
|
+
}, null, 512)], 512));
|
|
163
|
+
}
|
|
164
|
+
}), [["__scopeId", "data-v-a18f3d0f"]]);
|
|
165
|
+
//#endregion
|
|
166
|
+
export { x as FourierField, g as comp, _ as evalFourier, y as makeEllipticSpectrum, v as positionsAt };
|
package/dist/glass-carousel.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-ok8pgSl5.js";
|
|
3
3
|
import { computed as n, createElementBlock as r, createElementVNode as i, createVNode as a, defineComponent as o, nextTick as s, normalizeClass as c, normalizeStyle as l, onMounted as u, onUnmounted as d, openBlock as f, ref as p, renderSlot as m, unref as h, useTemplateRef as g, watch as _, withCtx as v } from "vue";
|
|
4
4
|
import { ScrollAreaRoot as y, ScrollAreaViewport as b } from "reka-ui";
|
|
5
5
|
//#region src/components/custom/glass-carousel/useGlassCarousel.ts
|
|
@@ -151,7 +151,8 @@ var C = /* @__PURE__ */ t(/* @__PURE__ */ o({
|
|
|
151
151
|
}), (n, o) => (f(), r("div", {
|
|
152
152
|
ref_key: "rootEl",
|
|
153
153
|
ref: u,
|
|
154
|
-
|
|
154
|
+
"data-slot": "glass-carousel",
|
|
155
|
+
class: c(h(e)("glass-carousel glass-wash", {
|
|
155
156
|
"glass-carousel--vertical": t.orientation === "vertical",
|
|
156
157
|
"glass-carousel--horizontal": t.orientation === "horizontal",
|
|
157
158
|
"glass-carousel--expanded": h(D),
|
|
@@ -179,7 +180,7 @@ var C = /* @__PURE__ */ t(/* @__PURE__ */ o({
|
|
|
179
180
|
_: 3
|
|
180
181
|
})], 38));
|
|
181
182
|
}
|
|
182
|
-
}), [["__scopeId", "data-v-
|
|
183
|
+
}), [["__scopeId", "data-v-f114b9d9"]]), w = ["data-state", "aria-pressed"], T = /* @__PURE__ */ t(/* @__PURE__ */ o({
|
|
183
184
|
__name: "GlassCarouselItem",
|
|
184
185
|
props: {
|
|
185
186
|
active: {
|
|
@@ -202,13 +203,17 @@ var C = /* @__PURE__ */ t(/* @__PURE__ */ o({
|
|
|
202
203
|
setup(t, { emit: n }) {
|
|
203
204
|
let i = t, a = n;
|
|
204
205
|
return (n, o) => (f(), r("button", {
|
|
205
|
-
|
|
206
|
+
type: "button",
|
|
207
|
+
"data-slot": "glass-carousel-item",
|
|
208
|
+
"data-state": t.active ? "active" : "inactive",
|
|
209
|
+
"aria-pressed": t.active,
|
|
210
|
+
class: c(h(e)("glass-carousel-item focus-ring tap-squish", {
|
|
206
211
|
"glass-carousel-item--active": t.active,
|
|
207
212
|
"glass-carousel-item--expandable": t.expandable
|
|
208
213
|
}, i.class)),
|
|
209
214
|
onClick: o[0] ||= (e) => a("click", e)
|
|
210
|
-
}, [m(n.$slots, "default", {}, void 0, !0)],
|
|
215
|
+
}, [m(n.$slots, "default", {}, void 0, !0)], 10, w));
|
|
211
216
|
}
|
|
212
|
-
}), [["__scopeId", "data-v-
|
|
217
|
+
}), [["__scopeId", "data-v-a2ca29d1"]]);
|
|
213
218
|
//#endregion
|
|
214
|
-
export { C as GlassCarousel,
|
|
219
|
+
export { C as GlassCarousel, T as GlassCarouselItem, S as useGlassCarousel };
|
package/dist/glass-panel.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
|
-
import { t } from "./
|
|
3
|
-
import {
|
|
2
|
+
import { n as t, r as n, t as r } from "./useGlassRenderer-5I0YkI4t.js";
|
|
3
|
+
import { t as i } from "./_plugin-vue_export-helper-ok8pgSl5.js";
|
|
4
4
|
import { computed as a, createElementBlock as o, defineComponent as s, normalizeClass as c, onBeforeUnmount as l, onMounted as u, openBlock as d, ref as f, renderSlot as p } from "vue";
|
|
5
5
|
//#region src/components/custom/glass-panel/GlassPanel.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var m = ["data-variant"], h = /* @__PURE__ */
|
|
6
|
+
var m = ["data-variant"], h = /* @__PURE__ */ i(/* @__PURE__ */ s({
|
|
7
7
|
__name: "GlassPanel",
|
|
8
8
|
props: {
|
|
9
9
|
tier: {},
|
|
@@ -16,22 +16,22 @@ var m = ["data-variant"], h = /* @__PURE__ */ t(/* @__PURE__ */ s({
|
|
|
16
16
|
variant: { default: "resting" },
|
|
17
17
|
class: {}
|
|
18
18
|
},
|
|
19
|
-
setup(
|
|
19
|
+
setup(i) {
|
|
20
20
|
let s = {
|
|
21
21
|
wash: "glass-wash",
|
|
22
22
|
quiet: "glass-quiet",
|
|
23
23
|
resting: "glass-resting",
|
|
24
24
|
floating: "glass-floating",
|
|
25
25
|
overlay: "glass-overlay"
|
|
26
|
-
}, h =
|
|
26
|
+
}, h = i, g = f(null), _ = n({ preferredTier: h.tier }), v = a(() => h.tier ?? _.tier.value), y = a(() => v.value === "svg-filter" ? e("glass-panel glass-panel--svg", h.class) : v.value === "fallback" ? e("glass-panel glass-panel--fallback", h.class) : e("glass-panel", s[h.variant], h.class)), b = null;
|
|
27
27
|
return u(() => {
|
|
28
|
-
g.value && v.value === "svg-filter" && (b =
|
|
28
|
+
g.value && v.value === "svg-filter" && (b = r(g.value, {
|
|
29
29
|
blur: h.blur,
|
|
30
30
|
refraction: h.refraction,
|
|
31
31
|
chromaticAberration: h.chromaticAberration ? .5 : 0
|
|
32
32
|
}));
|
|
33
33
|
}), l(() => {
|
|
34
|
-
b &&
|
|
34
|
+
b && t(b);
|
|
35
35
|
}), (e, t) => (d(), o("div", {
|
|
36
36
|
ref_key: "panelRef",
|
|
37
37
|
ref: g,
|