@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/compile-iM4IUB66.js
DELETED
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
//#region src/composables/glass/webgl/shaders/procedural-color.glsl.ts
|
|
2
|
-
var e = "\nfloat srgbToLinearCh(float c) {\n return c <= 0.04045 ? c / 12.92 : pow((c + 0.055) / 1.055, 2.4);\n}\nvec3 srgbToLinear(vec3 c) {\n return vec3(srgbToLinearCh(c.r), srgbToLinearCh(c.g), srgbToLinearCh(c.b));\n}\n\nfloat linearToSrgbCh(float c) {\n return c <= 0.0031308 ? c * 12.92 : 1.055 * pow(c, 1.0 / 2.4) - 0.055;\n}\nvec3 linearToSrgb(vec3 c) {\n return vec3(linearToSrgbCh(c.r), linearToSrgbCh(c.g), linearToSrgbCh(c.b));\n}", t = "const mat2 FBM_ROT = mat2(0.8, 0.6, -0.6, 0.8);", n = "\n// value.js LINEAR_SRGB_TO_LMS (constants.ts), row-major; written here as GLSL\n// columns (= the transpose) so mat3 * vec3 evaluates the row-major M·v.\nconst mat3 LINEAR_SRGB_TO_LMS = mat3(\n 0.4122214708, 0.2119034982, 0.0883024619,\n 0.5363325363, 0.6806995451, 0.2817188376,\n 0.0514459929, 0.1073969566, 0.6299787005\n);\n\n// value.js srgbToOKLab's INLINE LMS→OKLab coefficients (gamut.ts lines 295-297 —\n// these differ at the ~1e-9 digit from LMS_TO_OKLAB_MATRIX; use the inline ones to\n// mirror the exact value.js path), row-major → GLSL columns.\nconst mat3 LMS_TO_OKLAB = mat3(\n 0.2104542553, 1.9779984951, 0.0259040371,\n 0.7936177850, -2.4285922050, 0.7827717662,\n -0.0040720468, 0.4505937099, -0.8086757660\n);\n\n// value.js OKLAB_TO_LMS_COEFF (constants.ts), row-major → GLSL columns. Rows:\n// l = [1, 0.3963377774, 0.2158037573], m = [1, -0.1055613458, -0.0638541728],\n// s = [1, -0.0894841775, -1.2914855480].\nconst mat3 OKLAB_TO_LMS = mat3(\n 1.0, 1.0, 1.0,\n 0.3963377774, -0.1055613458, -0.0894841775,\n 0.2158037573, -0.0638541728, -1.2914855480\n);\n\n// value.js LMS_TO_LINEAR_SRGB (constants.ts), row-major → GLSL columns.\nconst mat3 LMS_TO_LINEAR_SRGB = mat3(\n 4.0767416621, -1.2684380046, -0.0041960863,\n -3.3077115913, 2.6097574011, -0.7034186147,\n 0.2309699292, -0.3413193965, 1.7076147010\n);\n\n// Gamma sRGB → raw OKLab (L, a, b). Mirrors value.js srgbToOKLab.\nvec3 srgbToOklab(vec3 c) {\n vec3 lin = srgbToLinear(c);\n vec3 lms = LINEAR_SRGB_TO_LMS * lin;\n vec3 lmsCbrt = sign(lms) * pow(abs(lms), vec3(1.0 / 3.0));\n return LMS_TO_OKLAB * lmsCbrt;\n}\n\n// Raw OKLab (L, a, b) → linear sRGB. Mirrors value.js oklabToLinearSRGB.\nvec3 oklabToLinearSrgb(vec3 lab) {\n vec3 lms_ = OKLAB_TO_LMS * lab;\n vec3 lms = lms_ * lms_ * lms_;\n return LMS_TO_LINEAR_SRGB * lms;\n}\n\n// OKLab → OKLCh: H in RADIANS. Mirrors value.js rawOklabToOklch (which returns\n// degrees; we stay in radians and only fold to [0, 2pi)).\nvec3 oklabToOklch(vec3 lab) {\n float C = length(lab.yz);\n float H = atan(lab.z, lab.y);\n if (H < 0.0) H += 2.0 * PI;\n return vec3(lab.x, C, H);\n}\n\n// OKLCh (H radians) → OKLab. Mirrors value.js rawOklchToOklab.\nvec3 oklchToOklab(vec3 lch) {\n return vec3(lch.x, lch.y * cos(lch.z), lch.y * sin(lch.z));\n}", r = "\nfn srgbToLinearCh(c: f32) -> f32 {\n return select(pow((c + 0.055) / 1.055, 2.4), c / 12.92, c <= 0.04045);\n}\nfn srgbToLinear(c: vec3f) -> vec3f {\n return vec3f(srgbToLinearCh(c.r), srgbToLinearCh(c.g), srgbToLinearCh(c.b));\n}\nfn linearToSrgbCh(c: f32) -> f32 {\n return select(1.055 * pow(c, 1.0 / 2.4) - 0.055, c * 12.92, c <= 0.0031308);\n}\nfn linearToSrgb(c: vec3f) -> vec3f {\n return vec3f(linearToSrgbCh(c.r), linearToSrgbCh(c.g), linearToSrgbCh(c.b));\n}", i = "const FBM_ROT: mat2x2f = mat2x2f(0.8, 0.6, -0.6, 0.8);", a = "\nconst LINEAR_SRGB_TO_LMS: mat3x3f = mat3x3f(\n 0.4122214708, 0.2119034982, 0.0883024619,\n 0.5363325363, 0.6806995451, 0.2817188376,\n 0.0514459929, 0.1073969566, 0.6299787005\n);\nconst LMS_TO_OKLAB: mat3x3f = mat3x3f(\n 0.2104542553, 1.9779984951, 0.0259040371,\n 0.7936177850, -2.4285922050, 0.7827717662,\n -0.0040720468, 0.4505937099, -0.8086757660\n);\nconst OKLAB_TO_LMS: mat3x3f = mat3x3f(\n 1.0, 1.0, 1.0,\n 0.3963377774, -0.1055613458, -0.0894841775,\n 0.2158037573, -0.0638541728, -1.2914855480\n);\nconst LMS_TO_LINEAR_SRGB: mat3x3f = mat3x3f(\n 4.0767416621, -1.2684380046, -0.0041960863,\n -3.3077115913, 2.6097574011, -0.7034186147,\n 0.2309699292, -0.3413193965, 1.7076147010\n);\n\nfn srgbToOklab(c: vec3f) -> vec3f {\n let lin = srgbToLinear(c);\n let lms = LINEAR_SRGB_TO_LMS * lin;\n let lmsCbrt = sign(lms) * pow(abs(lms), vec3f(1.0 / 3.0));\n return LMS_TO_OKLAB * lmsCbrt;\n}\nfn oklabToLinearSrgb(lab: vec3f) -> vec3f {\n let lms_ = OKLAB_TO_LMS * lab;\n let lms = lms_ * lms_ * lms_;\n return LMS_TO_LINEAR_SRGB * lms;\n}\nfn oklabToOklch(lab: vec3f) -> vec3f {\n let C = length(lab.yz);\n var H = atan2(lab.z, lab.y);\n if (H < 0.0) { H = H + 2.0 * PI; }\n return vec3f(lab.x, C, H);\n}\nfn oklchToOklab(lch: vec3f) -> vec3f {\n return vec3f(lch.x, lch.y * cos(lch.z), lch.y * sin(lch.z));\n}";
|
|
3
|
-
function o(e, t, n) {
|
|
4
|
-
return Math.max(t, Math.min(n, e));
|
|
5
|
-
}
|
|
6
|
-
function s() {
|
|
7
|
-
let e = typeof window < "u" && window.devicePixelRatio || 1;
|
|
8
|
-
return Math.min(e, 2);
|
|
9
|
-
}
|
|
10
|
-
//#endregion
|
|
11
|
-
//#region src/composables/glass/webgl/createCanvasLifecycle.ts
|
|
12
|
-
function c(e) {
|
|
13
|
-
let { canvas: t, buildContext: n, resize: r } = e, i = e.respectReducedMotion ?? e.mode !== "capture", a = /* @__PURE__ */ new Set();
|
|
14
|
-
e.mode === "capture" && a.add("manual");
|
|
15
|
-
let o = () => a.size === 0, s = 0, c = typeof performance < "u" ? performance.now() : 0, l = null, u = !1, d = !1, f = i && typeof window < "u" && window.matchMedia ? window.matchMedia("(prefers-reduced-motion: reduce)") : null, p = f?.matches ?? !1;
|
|
16
|
-
function m() {
|
|
17
|
-
if (!o() || !l) return;
|
|
18
|
-
let e = (performance.now() - c) / 1e3, t = l.time ? l.time(e) : e;
|
|
19
|
-
l.frame(t), s = !p && l.shouldContinue() ? requestAnimationFrame(m) : 0;
|
|
20
|
-
}
|
|
21
|
-
function h() {
|
|
22
|
-
u && o() && !s && l && (s = requestAnimationFrame(m));
|
|
23
|
-
}
|
|
24
|
-
function g() {
|
|
25
|
-
let e = f?.matches ?? !1;
|
|
26
|
-
e !== p && (p = e, e || (c = performance.now()), h());
|
|
27
|
-
}
|
|
28
|
-
f?.addEventListener("change", g);
|
|
29
|
-
function _(e = "manual") {
|
|
30
|
-
let t = o();
|
|
31
|
-
a.add(e), t && !o() && (cancelAnimationFrame(s), s = 0);
|
|
32
|
-
}
|
|
33
|
-
function v(e = "manual") {
|
|
34
|
-
let t = !o();
|
|
35
|
-
a.delete(e), t && o() && u && l && (c = performance.now() - 1e3, m());
|
|
36
|
-
}
|
|
37
|
-
let y = typeof document < "u";
|
|
38
|
-
function b() {
|
|
39
|
-
document.hidden ? _("tab-hidden") : v("tab-hidden");
|
|
40
|
-
}
|
|
41
|
-
y && document.addEventListener("visibilitychange", b), y && document.hidden && a.add("tab-hidden");
|
|
42
|
-
let x = null;
|
|
43
|
-
function S(e) {
|
|
44
|
-
e.skipped ? _("off-screen") : v("off-screen");
|
|
45
|
-
}
|
|
46
|
-
function C() {
|
|
47
|
-
if (x) return;
|
|
48
|
-
let e = t.parentElement;
|
|
49
|
-
e && (x = e, e.addEventListener("contentvisibilityautostatechange", S));
|
|
50
|
-
}
|
|
51
|
-
function w() {
|
|
52
|
-
x?.removeEventListener("contentvisibilityautostatechange", S), x = null;
|
|
53
|
-
}
|
|
54
|
-
function T() {
|
|
55
|
-
l = n(), r();
|
|
56
|
-
}
|
|
57
|
-
function E() {
|
|
58
|
-
u || d || (e.bindContextEvents?.(() => {
|
|
59
|
-
d || (T(), o() && h());
|
|
60
|
-
}, () => {
|
|
61
|
-
l = null, cancelAnimationFrame(s), s = 0;
|
|
62
|
-
}), T(), C(), u = !0, c = performance.now(), o() && (s = requestAnimationFrame(m)));
|
|
63
|
-
}
|
|
64
|
-
function D(e) {
|
|
65
|
-
u || E(), l?.frame(e);
|
|
66
|
-
}
|
|
67
|
-
function O() {
|
|
68
|
-
d = !0, cancelAnimationFrame(s), s = 0, y && document.removeEventListener("visibilitychange", b), f?.removeEventListener("change", g), w(), e.unbindContextEvents?.(), l?.teardown?.(), l = null, a.clear();
|
|
69
|
-
}
|
|
70
|
-
return e.mode === "capture" && E(), {
|
|
71
|
-
arm: E,
|
|
72
|
-
suspend: _,
|
|
73
|
-
resume: v,
|
|
74
|
-
wake: h,
|
|
75
|
-
renderAt: D,
|
|
76
|
-
dispose: O,
|
|
77
|
-
get armed() {
|
|
78
|
-
return u;
|
|
79
|
-
},
|
|
80
|
-
get disposed() {
|
|
81
|
-
return d;
|
|
82
|
-
},
|
|
83
|
-
get running() {
|
|
84
|
-
return o();
|
|
85
|
-
},
|
|
86
|
-
get reducedMotion() {
|
|
87
|
-
return p;
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
//#endregion
|
|
92
|
-
//#region src/composables/glass/webgl/useWebGLCanvas.ts
|
|
93
|
-
function l(e, t) {
|
|
94
|
-
let { setup: n, contextAttrs: r } = t, i = null, a = null, o = null;
|
|
95
|
-
function s() {
|
|
96
|
-
let t = e.getContext("webgl2", r ?? void 0);
|
|
97
|
-
if (!t) throw Error("[useWebGLCanvas] WebGL2 unavailable");
|
|
98
|
-
return i = t, o = n(i), a || (a = new ResizeObserver(() => o?.resize()), a.observe(e)), {
|
|
99
|
-
frame: o.frame,
|
|
100
|
-
shouldContinue: o.shouldContinue,
|
|
101
|
-
time: o.time,
|
|
102
|
-
teardown: () => {
|
|
103
|
-
o?.teardown?.(), i?.getExtension("WEBGL_lose_context")?.loseContext(), a?.disconnect(), a = null, i = null, o = null;
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
let l = null, u = null;
|
|
108
|
-
function d(e) {
|
|
109
|
-
e.preventDefault(), i = null, o = null, u?.();
|
|
110
|
-
}
|
|
111
|
-
let f = c({
|
|
112
|
-
canvas: e,
|
|
113
|
-
mode: t.mode,
|
|
114
|
-
respectReducedMotion: t.respectReducedMotion,
|
|
115
|
-
buildContext: s,
|
|
116
|
-
resize: () => o?.resize(),
|
|
117
|
-
bindContextEvents: (t, n) => {
|
|
118
|
-
l = t, u = n, e.addEventListener("webglcontextlost", d, !1), e.addEventListener("webglcontextrestored", l, !1);
|
|
119
|
-
},
|
|
120
|
-
unbindContextEvents: () => {
|
|
121
|
-
e.removeEventListener("webglcontextlost", d, !1), l && e.removeEventListener("webglcontextrestored", l, !1);
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
return {
|
|
125
|
-
arm: f.arm,
|
|
126
|
-
suspend: f.suspend,
|
|
127
|
-
resume: f.resume,
|
|
128
|
-
wake: f.wake,
|
|
129
|
-
renderAt: f.renderAt,
|
|
130
|
-
dispose: f.dispose,
|
|
131
|
-
get gl() {
|
|
132
|
-
return i;
|
|
133
|
-
},
|
|
134
|
-
get reducedMotion() {
|
|
135
|
-
return f.reducedMotion;
|
|
136
|
-
}
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
//#endregion
|
|
140
|
-
//#region src/composables/glass/webgl/compile.ts
|
|
141
|
-
function u(e, t, n, r = "[glass-ui:webgl]") {
|
|
142
|
-
let i = e.createShader(t);
|
|
143
|
-
if (e.shaderSource(i, n), e.compileShader(i), !e.getShaderParameter(i, e.COMPILE_STATUS)) {
|
|
144
|
-
let t = e.getShaderInfoLog(i) ?? "unknown";
|
|
145
|
-
throw e.deleteShader(i), Error(`${r} shader compile failed:\n${t}`);
|
|
146
|
-
}
|
|
147
|
-
return i;
|
|
148
|
-
}
|
|
149
|
-
function d(e, t, n, r = "[glass-ui:webgl]") {
|
|
150
|
-
let i = e.createProgram();
|
|
151
|
-
if (e.attachShader(i, t), e.attachShader(i, n), e.linkProgram(i), !e.getProgramParameter(i, e.LINK_STATUS)) {
|
|
152
|
-
let t = e.getProgramInfoLog(i) ?? "unknown";
|
|
153
|
-
throw e.deleteProgram(i), Error(`${r} program link failed:\n${t}`);
|
|
154
|
-
}
|
|
155
|
-
return i;
|
|
156
|
-
}
|
|
157
|
-
//#endregion
|
|
158
|
-
export { o as a, i as c, n as d, a as f, c as i, e as l, d as n, s as o, l as r, t as s, u as t, r as u };
|
|
Binary file
|
package/dist/slider-BA9wIs5e.js
DELETED
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
|
-
import { t } from "./_plugin-vue_export-helper-gLzyemvl.js";
|
|
3
|
-
import { t as n } from "./useTouchGate-YQRwyUGU.js";
|
|
4
|
-
import { i as r } from "./dockContext-DLgrVWsU.js";
|
|
5
|
-
import { Fragment as i, computed as a, createBlock as o, createElementBlock as s, createVNode as c, defineComponent as l, mergeProps as u, onBeforeUnmount as d, openBlock as f, renderList as p, unref as m, useTemplateRef as h, watch as g, withCtx as _ } from "vue";
|
|
6
|
-
import { SliderRange as v, SliderRoot as y, SliderThumb as b, SliderTrack as x, useForwardPropsEmits as S } from "reka-ui";
|
|
7
|
-
import { cva as C } from "class-variance-authority";
|
|
8
|
-
//#endregion
|
|
9
|
-
//#region src/components/ui/slider/Slider.vue
|
|
10
|
-
var w = /* @__PURE__ */ t(/* @__PURE__ */ l({
|
|
11
|
-
__name: "Slider",
|
|
12
|
-
props: {
|
|
13
|
-
defaultValue: {},
|
|
14
|
-
modelValue: {},
|
|
15
|
-
disabled: { type: Boolean },
|
|
16
|
-
orientation: {},
|
|
17
|
-
dir: {},
|
|
18
|
-
inverted: { type: Boolean },
|
|
19
|
-
min: {},
|
|
20
|
-
max: {},
|
|
21
|
-
step: {},
|
|
22
|
-
minStepsBetweenThumbs: {},
|
|
23
|
-
thumbAlignment: {},
|
|
24
|
-
asChild: { type: Boolean },
|
|
25
|
-
as: {},
|
|
26
|
-
name: {},
|
|
27
|
-
required: { type: Boolean },
|
|
28
|
-
class: { type: [
|
|
29
|
-
Boolean,
|
|
30
|
-
null,
|
|
31
|
-
String,
|
|
32
|
-
Object,
|
|
33
|
-
Array
|
|
34
|
-
] },
|
|
35
|
-
variant: {},
|
|
36
|
-
size: {},
|
|
37
|
-
keepDockOpen: { type: Boolean }
|
|
38
|
-
},
|
|
39
|
-
emits: ["update:modelValue", "valueCommit"],
|
|
40
|
-
setup(t, { emit: l }) {
|
|
41
|
-
let C = t, w = l, E = a(() => C.variant ?? "standard"), D = a(() => C.size ?? "md"), O = a(() => C.keepDockOpen ?? !0), k = S(a(() => {
|
|
42
|
-
let { class: e, variant: t, size: n, keepDockOpen: r, ...i } = C;
|
|
43
|
-
return E.value === "spectrum" && !i.thumbAlignment && (i.thumbAlignment = "contain"), i;
|
|
44
|
-
}), w), A = r(), j = !1;
|
|
45
|
-
function M() {
|
|
46
|
-
!O.value || j || (A?.keepOpen(), j = !0);
|
|
47
|
-
}
|
|
48
|
-
function N() {
|
|
49
|
-
j &&= (A?.release(), !1);
|
|
50
|
-
}
|
|
51
|
-
function P() {
|
|
52
|
-
if (M(), typeof window > "u") return;
|
|
53
|
-
let e = () => {
|
|
54
|
-
N(), window.removeEventListener("pointerup", e), window.removeEventListener("pointercancel", e);
|
|
55
|
-
};
|
|
56
|
-
window.addEventListener("pointerup", e), window.addEventListener("pointercancel", e);
|
|
57
|
-
}
|
|
58
|
-
let F = h("sliderRootRef"), I = n();
|
|
59
|
-
function L() {
|
|
60
|
-
let e = F.value;
|
|
61
|
-
return e ? e instanceof HTMLElement ? e : e.$el ?? null : null;
|
|
62
|
-
}
|
|
63
|
-
function R(e) {
|
|
64
|
-
let t = L(), n = e.touches[0];
|
|
65
|
-
!t || !n || I.handleTouchStart(t, n.clientY) || (e.preventDefault(), e.stopPropagation());
|
|
66
|
-
}
|
|
67
|
-
function z(e) {
|
|
68
|
-
I.handleScrollCheck(e);
|
|
69
|
-
}
|
|
70
|
-
function B() {
|
|
71
|
-
I.handleTouchEnd();
|
|
72
|
-
}
|
|
73
|
-
g(I.isActive, (e) => {
|
|
74
|
-
e ? M() : N();
|
|
75
|
-
}), d(N);
|
|
76
|
-
let V = a(() => A?.held.value === !0), H = a(() => I.isActive.value);
|
|
77
|
-
return (n, r) => (f(), o(m(y), u({
|
|
78
|
-
"data-slot": "slider",
|
|
79
|
-
ref_key: "sliderRootRef",
|
|
80
|
-
ref: F,
|
|
81
|
-
class: m(e)(m(T)({
|
|
82
|
-
variant: E.value,
|
|
83
|
-
size: D.value
|
|
84
|
-
}), C.class),
|
|
85
|
-
"data-variant": E.value,
|
|
86
|
-
"data-size": D.value,
|
|
87
|
-
"data-held": V.value || void 0,
|
|
88
|
-
"data-touch-active": H.value || void 0
|
|
89
|
-
}, m(k), {
|
|
90
|
-
onPointerdown: P,
|
|
91
|
-
onTouchstart: R,
|
|
92
|
-
onTouchmove: z,
|
|
93
|
-
onTouchend: B
|
|
94
|
-
}), {
|
|
95
|
-
default: _(() => [c(m(x), { class: "slider-track" }, {
|
|
96
|
-
default: _(() => [c(m(v), { class: "slider-range" })]),
|
|
97
|
-
_: 1
|
|
98
|
-
}), (f(!0), s(i, null, p(t.modelValue, (e, t) => (f(), o(m(b), {
|
|
99
|
-
key: t,
|
|
100
|
-
"aria-label": n.$attrs["aria-label"] ?? void 0,
|
|
101
|
-
class: "slider-thumb"
|
|
102
|
-
}, null, 8, ["aria-label"]))), 128))]),
|
|
103
|
-
_: 1
|
|
104
|
-
}, 16, [
|
|
105
|
-
"class",
|
|
106
|
-
"data-variant",
|
|
107
|
-
"data-size",
|
|
108
|
-
"data-held",
|
|
109
|
-
"data-touch-active"
|
|
110
|
-
]));
|
|
111
|
-
}
|
|
112
|
-
}), [["__scopeId", "data-v-138bdbd1"]]), T = C("glass-slider focus-ring relative flex w-full touch-none select-none items-center transition-colors", {
|
|
113
|
-
variants: {
|
|
114
|
-
variant: {
|
|
115
|
-
standard: "",
|
|
116
|
-
spectrum: ""
|
|
117
|
-
},
|
|
118
|
-
size: {
|
|
119
|
-
sm: "[--slider-track-height:0.25rem] [--slider-thumb-size:0.75rem]",
|
|
120
|
-
md: "[--slider-track-height:0.375rem] [--slider-thumb-size:1rem]",
|
|
121
|
-
lg: "[--slider-track-height:0.75rem] [--slider-thumb-size:1.5rem]"
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
defaultVariants: {
|
|
125
|
-
variant: "standard",
|
|
126
|
-
size: "md"
|
|
127
|
-
}
|
|
128
|
-
});
|
|
129
|
-
//#endregion
|
|
130
|
-
export { w as n, T as t };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
//#region src/composables/motion/useViewTransition.ts
|
|
2
|
-
function e() {
|
|
3
|
-
return typeof document < "u" && typeof document.startViewTransition == "function";
|
|
4
|
-
}
|
|
5
|
-
function t(e, t) {
|
|
6
|
-
let n = typeof document > "u" ? void 0 : document;
|
|
7
|
-
if (!n || typeof n.startViewTransition != "function") return e(), {
|
|
8
|
-
finished: Promise.resolve(),
|
|
9
|
-
transitioned: !1
|
|
10
|
-
};
|
|
11
|
-
let r = t?.types && t.types.length > 0 ? n.startViewTransition({
|
|
12
|
-
update: () => e(),
|
|
13
|
-
types: t.types
|
|
14
|
-
}) : n.startViewTransition(() => e());
|
|
15
|
-
return r.ready?.catch(() => {}), {
|
|
16
|
-
finished: r.finished.then(() => void 0, () => void 0),
|
|
17
|
-
transitioned: !0
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
//#endregion
|
|
21
|
-
export { e as n, t };
|
package/dist/vReveal-BE2TsPoR.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
//#region src/utils/moveBefore.ts
|
|
2
|
-
function e(e, t, n) {
|
|
3
|
-
let r = e;
|
|
4
|
-
typeof r.moveBefore == "function" ? r.moveBefore(t, n) : e.insertBefore(t, n);
|
|
5
|
-
}
|
|
6
|
-
function t() {
|
|
7
|
-
return typeof Element < "u" && "moveBefore" in Element.prototype;
|
|
8
|
-
}
|
|
9
|
-
//#endregion
|
|
10
|
-
//#region src/utils/platformSupport.ts
|
|
11
|
-
function n() {
|
|
12
|
-
return typeof globalThis.scheduler?.postTask == "function";
|
|
13
|
-
}
|
|
14
|
-
//#endregion
|
|
15
|
-
//#region src/composables/motion/vReveal.ts
|
|
16
|
-
function r(e, t) {
|
|
17
|
-
e.setAttribute("data-reveal", t.arg === "fade" ? "fade" : ""), e.style.setProperty("--d", String(t.value ?? 0));
|
|
18
|
-
}
|
|
19
|
-
var i = {
|
|
20
|
-
mounted: r,
|
|
21
|
-
updated: r
|
|
22
|
-
};
|
|
23
|
-
//#endregion
|
|
24
|
-
export { t as i, n, e as r, i as t };
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{_plugin-vue_export-helper-gLzyemvl.js → _plugin-vue_export-helper-ok8pgSl5.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|