@mkbabb/glass-ui 4.0.0 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/dist/CardAction-8whJrLWt.js +268 -0
- package/dist/{CommandShortcut-DdtWXxOK.js → CommandShortcut-D3yxgHNn.js} +25 -14
- package/dist/ConfiguratorRow-CaP7U3ZA.js +143 -0
- package/dist/ContextMenuContent-B3ZsheLV.js +90 -0
- package/dist/{ContextMenuSubContent-B0Vs6atR.js → ContextMenuSubContent-DDRID3qC.js} +28 -33
- package/dist/{DataTable-C464Zbqd.js → DataTable-Bc9kUtu_.js} +4 -4
- package/dist/{DialogContent-DDE6pQBU.js → DialogContent-6JtTB5x2.js} +11 -8
- package/dist/DialogFooter-9phqcRIS.js +80 -0
- package/dist/DialogScrollContent-TTuovQst.js +93 -0
- package/dist/{FadingScroll-DwNnvKMs.js → FadingScroll-DLRbH5Xr.js} +1 -1
- package/dist/HoverCardContent-Bel1gdLZ.js +88 -0
- package/dist/{HoverPopover-Dpzwvc4t.js → HoverPopover-BcIxvyqZ.js} +2 -2
- package/dist/{IconChip-BDw1j5mu.js → IconChip-DhbdGdFQ.js} +2 -1
- package/dist/{IconTooltip-DSjasZIt.js → IconTooltip-B0zimd2H.js} +1 -1
- package/dist/Input-Cg9DF62r.js +57 -0
- package/dist/{MetricBadge-BpC0R_Ec.js → MetricBadge-RHdBP72w.js} +1 -1
- package/dist/Notification-CphK7AAm.js +43 -0
- package/dist/NumberFieldContent-D8cXeyO4.js +140 -0
- package/dist/PagerDots-Cjx96la-.js +98 -0
- package/dist/{PopoverContent-BTorlp--.js → PopoverContent-DL7E6vJP.js} +4 -4
- package/dist/{Progress-hAT4gqGH.js → Progress-CnqB7gLm.js} +4 -4
- package/dist/{ScrollingText-CUVFTWk2.js → ScrollingText-CTZbA_cG.js} +2 -2
- package/dist/{SelectScrollDownButton-C1jb3b3K.js → SelectScrollDownButton-DAKCBEdW.js} +65 -61
- package/dist/{SelectSeparator-DK2y1Bun.js → SelectSeparator-C2UGOkXF.js} +1 -1
- package/dist/Separator-DQcwC2TR.js +44 -0
- package/dist/Switch-B8RscmRu.js +49 -0
- package/dist/Toaster-D9qIHjBI.js +274 -0
- package/dist/ToggleGroupItem-BLtr3TJq.js +170 -0
- package/dist/TooltipProvider-BJ_Y5EGX.js +109 -0
- package/dist/animated-digit.js +2 -2
- package/dist/api/index.d.ts +21 -33
- package/dist/api/types-extra.d.ts +37 -0
- package/dist/api.js +1 -1
- package/dist/aurora.js +1231 -260
- package/dist/badge.js +1 -1
- package/dist/border-progress.d.ts +1 -0
- package/dist/border-progress.js +98 -0
- package/dist/button-5dY1Dvhd.js +125 -0
- package/dist/button.js +1 -1
- package/dist/canvas.js +2 -3
- package/dist/card.js +2 -2
- package/dist/carousel.js +93 -110
- package/dist/collapsible.js +1 -1
- package/dist/color-Cs0-oxYL.js +116 -0
- package/dist/color.js +2 -2
- package/dist/command.js +1 -1
- package/dist/compile-nZ1xVYTp.js +19 -0
- package/dist/completion-seal.d.ts +1 -0
- package/dist/completion-seal.js +89 -0
- package/dist/components/custom/aurora/Aurora.vue.d.ts +10 -5
- package/dist/components/custom/aurora/composables/atoms-fields.d.ts +39 -0
- package/dist/components/custom/aurora/composables/auroraFallbackGround.d.ts +108 -0
- package/dist/components/custom/aurora/composables/color.d.ts +13 -0
- package/dist/components/custom/aurora/composables/frameLoop.d.ts +9 -0
- package/dist/components/custom/aurora/composables/runtime.d.ts +31 -0
- package/dist/components/custom/aurora/composables/uniformBridge.d.ts +5 -1
- package/dist/components/custom/aurora/composables/uniformBridgeWGPU.d.ts +60 -0
- package/dist/components/custom/aurora/composables/wgpuSetup.d.ts +37 -0
- package/dist/components/custom/aurora/constants/budget.d.ts +21 -0
- package/dist/components/custom/aurora/constants/presets.d.ts +20 -2
- package/dist/components/custom/aurora/constants/renderMode.d.ts +77 -18
- package/dist/components/custom/aurora/constants/shaders/aurora-mediums.wgsl.d.ts +1 -0
- package/dist/components/custom/aurora/constants/shaders/aurora.wgsl.d.ts +1 -0
- package/dist/components/custom/aurora/constants/shaders/oil-modes.glsl.d.ts +1 -0
- package/dist/components/custom/aurora/constants/shaders/procedural-color.wgsl.d.ts +4 -0
- package/dist/components/custom/aurora/index.d.ts +2 -1
- package/dist/components/custom/border-progress/BorderProgress.vue.d.ts +46 -0
- package/dist/components/custom/border-progress/composables/spectrum-walk.d.ts +25 -0
- package/dist/components/custom/border-progress/composables/useBorderSpectrum.d.ts +18 -0
- package/dist/components/custom/border-progress/constants.d.ts +59 -0
- package/dist/components/custom/border-progress/index.d.ts +4 -0
- package/dist/components/custom/completion-seal/CompletionSeal.vue.d.ts +21 -0
- package/dist/components/custom/completion-seal/composables/useCompletionSeal.d.ts +37 -0
- package/dist/components/custom/completion-seal/constants.d.ts +46 -0
- package/dist/components/custom/completion-seal/index.d.ts +4 -0
- package/dist/components/custom/concentric/Concentric.vue.d.ts +39 -0
- package/dist/components/custom/concentric/composables/concentricGLSetup.d.ts +18 -0
- package/dist/components/custom/concentric/composables/concentricWGPUSetup.d.ts +22 -0
- package/dist/components/custom/concentric/composables/ringField.d.ts +85 -0
- package/dist/components/custom/concentric/composables/uniformBridgeWGPU.d.ts +14 -0
- package/dist/components/custom/concentric/composables/useConcentric.d.ts +35 -0
- package/dist/components/custom/concentric/constants.d.ts +67 -0
- package/dist/components/custom/concentric/index.d.ts +5 -0
- package/dist/components/custom/concentric/shaders/concentric.glsl.d.ts +4 -0
- package/dist/components/custom/concentric/shaders/concentric.wgsl.d.ts +1 -0
- package/dist/components/custom/confirm-dialog/ConfirmDialog.vue.d.ts +3 -3
- package/dist/components/custom/constellation/Constellation.vue.d.ts +5 -4
- package/dist/components/custom/constellation/composables/constellationGLSetup.d.ts +10 -0
- package/dist/components/custom/constellation/composables/constellationWGPUSetup.d.ts +19 -0
- package/dist/components/custom/constellation/composables/uniformBridgeWGPU.d.ts +66 -0
- package/dist/components/custom/constellation/composables/useConstellation.d.ts +3 -10
- package/dist/components/custom/constellation/constants.d.ts +33 -0
- package/dist/components/custom/constellation/constellationField.d.ts +31 -1
- package/dist/components/custom/constellation/constellationInteraction.d.ts +23 -14
- package/dist/components/custom/constellation/constellationRender.d.ts +25 -0
- package/dist/components/custom/constellation/constellationTypes.d.ts +38 -0
- package/dist/components/custom/constellation/constellationWell.d.ts +15 -0
- package/dist/components/custom/constellation/index.d.ts +5 -5
- package/dist/components/custom/constellation/shaders/constellation-lines.glsl.d.ts +2 -0
- package/dist/components/custom/constellation/shaders/constellation-lines.wgsl.d.ts +1 -0
- package/dist/components/custom/constellation/shaders/constellation-points.glsl.d.ts +2 -0
- package/dist/components/custom/constellation/shaders/constellation-points.wgsl.d.ts +1 -0
- package/dist/components/custom/deck/DeckPager.vue.d.ts +29 -0
- package/dist/components/custom/deck/composables/useDeck.d.ts +27 -0
- package/dist/components/custom/deck/composables/useDeckKeyboard.d.ts +25 -0
- package/dist/components/custom/deck/composables/useDeckSpring.d.ts +22 -0
- package/dist/components/custom/deck/constants.d.ts +14 -0
- package/dist/components/custom/deck/index.d.ts +8 -0
- package/dist/components/custom/dock/DockIconButton.vue.d.ts +25 -4
- package/dist/components/custom/dock/DockLayerGroup.vue.d.ts +10 -2
- package/dist/components/custom/dock/DockStack.vue.d.ts +65 -0
- package/dist/components/custom/dock/GlassDock.vue.d.ts +4 -2
- package/dist/components/custom/dock/composables/dockMorphMeasure.d.ts +155 -0
- package/dist/components/custom/dock/composables/index.d.ts +2 -0
- package/dist/components/custom/dock/composables/useDockSearch.d.ts +85 -0
- package/dist/components/custom/dock/composables/useDockShellProps.d.ts +11 -0
- package/dist/components/custom/dock/composables/useLayerTransition.d.ts +13 -0
- package/dist/components/custom/dock/constants.d.ts +18 -14
- package/dist/components/custom/dock/index.d.ts +5 -2
- package/dist/components/custom/dot-flow-field/DotFlowField.vue.d.ts +42 -0
- package/dist/components/custom/dot-flow-field/composables/flowField.d.ts +83 -0
- package/dist/components/custom/dot-flow-field/composables/uniformBridgeWGPU.d.ts +39 -0
- package/dist/components/custom/dot-flow-field/composables/useDotFlowField.d.ts +35 -0
- package/dist/components/custom/dot-flow-field/composables/useFlowParticles.d.ts +31 -0
- package/dist/components/custom/dot-flow-field/constants.d.ts +69 -0
- package/dist/components/custom/dot-flow-field/index.d.ts +5 -0
- package/dist/components/custom/dot-flow-field/shaders/flow-field.compute.wgsl.d.ts +1 -0
- package/dist/components/custom/dot-flow-field/shaders/flow-field.glsl.d.ts +4 -0
- package/dist/components/custom/dot-flow-field/shaders/flow-field.render.wgsl.d.ts +1 -0
- package/dist/components/custom/dot-matrix/DotMatrix.vue.d.ts +43 -0
- package/dist/components/custom/dot-matrix/composables/dotMatrixField.d.ts +89 -0
- package/dist/components/custom/dot-matrix/composables/uniformBridgeWGPU.d.ts +52 -0
- package/dist/components/custom/dot-matrix/composables/useDotMatrix.d.ts +34 -0
- package/dist/components/custom/dot-matrix/composables/useDotSphere.d.ts +27 -0
- package/dist/components/custom/dot-matrix/constants.d.ts +58 -0
- package/dist/components/custom/dot-matrix/index.d.ts +5 -0
- package/dist/components/custom/dot-matrix/shaders/dot-matrix.glsl.d.ts +4 -0
- package/dist/components/custom/dot-matrix/shaders/dot-matrix.wgsl.d.ts +1 -0
- package/dist/components/custom/easing/EasingConfigurator.vue.d.ts +33 -0
- package/dist/components/custom/easing/EasingPicker.vue.d.ts +49 -0
- package/dist/components/custom/easing/composables/useEasingPicker.d.ts +80 -0
- package/dist/components/custom/easing/constants.d.ts +28 -0
- package/dist/components/custom/easing/index.d.ts +3 -0
- package/dist/components/custom/expandable-container/ExpandableContainer.vue.d.ts +11 -0
- package/dist/components/custom/fourier-field/FourierField.vue.d.ts +43 -40
- package/dist/components/custom/fourier-field/composables/fourierFieldGLSetup.d.ts +15 -0
- package/dist/components/custom/fourier-field/composables/fourierFieldWGPUSetup.d.ts +20 -0
- package/dist/components/custom/fourier-field/composables/uniformBridgeWGPU.d.ts +41 -0
- package/dist/components/custom/fourier-field/composables/useFourierField.d.ts +42 -0
- package/dist/components/custom/fourier-field/constants.d.ts +64 -0
- package/dist/components/custom/fourier-field/index.d.ts +23 -18
- package/dist/components/custom/fourier-field/shaders/fourier-field.compute.wgsl.d.ts +1 -0
- package/dist/components/custom/fourier-field/shaders/fourier-field.glsl.d.ts +4 -0
- package/dist/components/custom/fourier-field/shaders/fourier-field.render.wgsl.d.ts +1 -0
- package/dist/components/custom/glass-panel/GlassPanel.vue.d.ts +1 -1
- package/dist/components/custom/goo-blob/GooBlob.vue.d.ts +13 -3
- package/dist/components/custom/goo-blob/composables/uniformBridgeWGPU.d.ts +24 -0
- package/dist/components/custom/goo-blob/composables/useMetaballRenderer.d.ts +18 -11
- package/dist/components/custom/goo-blob/composables/wgpuSetup.d.ts +23 -0
- package/dist/components/custom/goo-blob/constants.d.ts +1 -1
- package/dist/components/custom/goo-blob/index.d.ts +1 -1
- package/dist/components/custom/goo-blob/shaders/metaball-noise.wgsl.d.ts +1 -0
- package/dist/components/custom/goo-blob/shaders/metaball-palette.wgsl.d.ts +1 -0
- package/dist/components/custom/goo-blob/shaders/metaball-uniforms.glsl.d.ts +1 -1
- package/dist/components/custom/goo-blob/shaders/metaball.wgsl.d.ts +1 -0
- package/dist/components/custom/goo-blob/types.d.ts +36 -0
- package/dist/components/custom/goo-dot-matrix/GooDotMatrix.vue.d.ts +49 -0
- package/dist/components/custom/goo-dot-matrix/composables/gooDotLattice.d.ts +24 -0
- package/dist/components/custom/goo-dot-matrix/composables/gooDotSetup.d.ts +50 -0
- package/dist/components/custom/goo-dot-matrix/composables/uniformBridgeWGPU.d.ts +35 -0
- package/dist/components/custom/goo-dot-matrix/composables/useGooDotMatrix.d.ts +31 -0
- package/dist/components/custom/goo-dot-matrix/constants.d.ts +76 -0
- package/dist/components/custom/goo-dot-matrix/index.d.ts +5 -0
- package/dist/components/custom/goo-dot-matrix/shaders/goo-dot.frag.d.ts +11 -0
- package/dist/components/custom/goo-dot-matrix/shaders/goo-dot.wgsl.d.ts +3 -0
- package/dist/components/custom/handmark/HandMark.vue.d.ts +1 -1
- package/dist/components/custom/icon-chip/types.d.ts +11 -1
- package/dist/components/custom/instrument-chassis/InstrumentChassis.vue.d.ts +3 -1
- package/dist/components/custom/labeled-field/LabeledField.vue.d.ts +21 -2
- package/dist/components/custom/metric-stack/MetricRow.vue.d.ts +15 -0
- package/dist/components/custom/metric-stack/MetricStack.vue.d.ts +1 -1
- package/dist/components/custom/pager-dots/PagerDots.vue.d.ts +9 -0
- package/dist/components/custom/pager-dots/index.d.ts +2 -0
- package/dist/components/custom/pager-dots/pagerWindow.d.ts +9 -0
- package/dist/components/custom/paper-grid/PaperGrid.vue.d.ts +42 -0
- package/dist/components/custom/paper-grid/composables/paperGrid.d.ts +90 -0
- package/dist/components/custom/paper-grid/composables/paperGridGLSetup.d.ts +16 -0
- package/dist/components/custom/paper-grid/composables/paperGridWGPUSetup.d.ts +19 -0
- package/dist/components/custom/paper-grid/composables/uniformBridgeWGPU.d.ts +16 -0
- package/dist/components/custom/paper-grid/composables/usePaperGrid.d.ts +31 -0
- package/dist/components/custom/paper-grid/constants.d.ts +57 -0
- package/dist/components/custom/paper-grid/index.d.ts +5 -0
- package/dist/components/custom/paper-grid/shaders/paper-grid.glsl.d.ts +4 -0
- package/dist/components/custom/paper-grid/shaders/paper-grid.wgsl.d.ts +1 -0
- package/dist/components/custom/search/FuzzySearch.vue.d.ts +8 -2
- package/dist/components/custom/search/SearchBar.vue.d.ts +8 -0
- package/dist/components/custom/search/index.d.ts +2 -0
- package/dist/components/custom/search/searchVariants.d.ts +19 -0
- package/dist/components/custom/selectable-chip/SelectableChip.vue.d.ts +50 -0
- package/dist/components/custom/selectable-chip/index.d.ts +2 -0
- package/dist/components/custom/selectable-chip/selectableChipVariants.d.ts +23 -0
- package/dist/components/custom/spa-view/SpaView.vue.d.ts +50 -0
- package/dist/components/custom/spa-view/index.d.ts +2 -0
- package/dist/components/custom/split-chars/SplitChars.vue.d.ts +39 -0
- package/dist/components/custom/split-chars/index.d.ts +1 -0
- package/dist/components/custom/tabs/SegmentedTabs.vue.d.ts +12 -0
- package/dist/components/custom/tabs/composables/useTabDragMorph.d.ts +42 -0
- package/dist/components/custom/tabs/constants.d.ts +20 -2
- package/dist/components/custom/watercolor-dot/WatercolorDot.vue.d.ts +30 -17
- package/dist/components/custom/watercolor-dot/useWatercolorBlob.d.ts +10 -5
- package/dist/components/ui/_shared/index.d.ts +2 -0
- package/dist/components/ui/_shared/menuItemVariants.d.ts +1 -1
- package/dist/components/ui/_shared/useControlSize.d.ts +46 -0
- package/dist/components/ui/badge/index.d.ts +1 -1
- package/dist/components/ui/button/Button.vue.d.ts +5 -2
- package/dist/components/ui/button/index.d.ts +2 -2
- package/dist/components/ui/card/Card.vue.d.ts +79 -4
- package/dist/components/ui/card/CardHeader.vue.d.ts +42 -16
- package/dist/components/ui/card/ScrollCard.vue.d.ts +33 -0
- package/dist/components/ui/card/ScrollCardHeader.vue.d.ts +17 -0
- package/dist/components/ui/card/index.d.ts +3 -1
- package/dist/components/ui/carousel/CarouselNext.vue.d.ts +2 -2
- package/dist/components/ui/carousel/CarouselPrevious.vue.d.ts +2 -2
- package/dist/components/ui/carousel/GlassCarouselPager.vue.d.ts +2 -2
- package/dist/components/ui/command/Command.vue.d.ts +1 -1
- package/dist/components/ui/command/CommandDialog.vue.d.ts +9 -3
- package/dist/components/ui/command/CommandList.vue.d.ts +3 -0
- package/dist/components/ui/context-menu/ContextMenuContent.vue.d.ts +5 -1
- package/dist/components/ui/drawer/Drawer.vue.d.ts +46 -33
- package/dist/components/ui/drawer/DrawerContent.vue.d.ts +7 -8
- package/dist/components/ui/drawer/DrawerDescription.vue.d.ts +2 -2
- package/dist/components/ui/drawer/DrawerOverlay.vue.d.ts +1 -1
- package/dist/components/ui/drawer/DrawerTitle.vue.d.ts +2 -2
- package/dist/components/ui/drawer/composables/drawerSnapContext.d.ts +26 -0
- package/dist/components/ui/drawer/composables/useDrawerSnap.d.ts +17 -0
- package/dist/components/ui/drawer/constants.d.ts +45 -0
- package/dist/components/ui/drawer/index.d.ts +23 -15
- package/dist/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +4 -0
- package/dist/components/ui/focus-scope/FocusScope.vue.d.ts +20 -0
- package/dist/components/ui/focus-scope/index.d.ts +2 -0
- package/dist/components/ui/hover-card/HoverCardContent.vue.d.ts +3 -0
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/input/Input.vue.d.ts +3 -0
- package/dist/components/ui/number-field/NumberFieldInput.vue.d.ts +6 -1
- package/dist/components/ui/progress/ProgressDefault.vue.d.ts +3 -2
- package/dist/components/ui/select/SelectContent.vue.d.ts +4 -1
- package/dist/components/ui/sheet/index.d.ts +1 -1
- package/dist/components/ui/switch/Switch.vue.d.ts +2 -0
- package/dist/components/ui/tags-input/TagsInput.vue.d.ts +2 -2
- package/dist/components/ui/textarea/Textarea.vue.d.ts +3 -0
- package/dist/components/ui/toast/Toast.vue.d.ts +5 -2
- package/dist/components/ui/toast/use-toast.d.ts +14 -0
- package/dist/components/ui/toggle/Toggle.vue.d.ts +1 -1
- package/dist/components/ui/tooltip/TooltipContent.vue.d.ts +3 -0
- package/dist/composables/color/index.d.ts +2 -0
- package/dist/composables/color/useAccentTone.d.ts +34 -0
- package/dist/composables/glass/canvas2d/useCanvas2D.d.ts +13 -6
- package/dist/composables/glass/index.d.ts +5 -2
- package/dist/composables/glass/useSpecularPointer.d.ts +33 -0
- package/dist/composables/glass/useSpecularTracking.d.ts +20 -0
- package/dist/composables/glass/useVizChoreography.d.ts +123 -0
- package/dist/composables/glass/vSpecular.d.ts +2 -0
- package/dist/composables/glass/webgl/createCanvasLifecycle.d.ts +10 -0
- package/dist/composables/glass/webgl/shaders/flow.glsl.d.ts +1 -0
- package/dist/composables/glass/webgl/shaders/flow.wgsl.d.ts +1 -0
- package/dist/composables/glass/webgl/useWebGLCanvas.d.ts +16 -0
- package/dist/composables/glass/webgpu/index.d.ts +2 -0
- package/dist/composables/glass/webgpu/useGpuSubstrate.d.ts +75 -0
- package/dist/composables/glass/webgpu/useWebGPUCanvas.d.ts +85 -0
- package/dist/composables/glass/webgpu/webgpuDevice.d.ts +42 -0
- package/dist/composables/motion/core/index.d.ts +4 -0
- package/dist/composables/motion/index.d.ts +4 -0
- package/dist/composables/motion/scrollReader.d.ts +25 -0
- package/dist/composables/motion/springPresets.d.ts +20 -1
- package/dist/composables/motion/useCharStagger.d.ts +44 -0
- package/dist/composables/motion/useDockCtaReceive.d.ts +84 -0
- package/dist/composables/motion/useDragMorph.d.ts +77 -0
- package/dist/composables/motion/useLiquidFlex.d.ts +11 -0
- package/dist/composables/motion/useLiquidPress.d.ts +71 -0
- package/dist/composables/motion/useLiquidReveal.d.ts +51 -0
- package/dist/composables/motion/useNumericTransition.d.ts +3 -3
- package/dist/composables/motion/usePointerVelocityField.d.ts +98 -0
- package/dist/composables/motion/useScrollChrome.d.ts +58 -0
- package/dist/composables/motion/useScrollTrigger.d.ts +67 -0
- package/dist/composables/motion/useSpringPress.d.ts +5 -5
- package/dist/composables/motion/useStaggerReveal.d.ts +24 -0
- package/dist/composables/sidebar/index.d.ts +4 -1
- package/dist/composables/sidebar/types.d.ts +68 -3
- package/dist/composables/sidebar/useClickDelegate.d.ts +4 -0
- package/dist/composables/sidebar/useLazyLoader.d.ts +5 -0
- package/dist/composables/sidebar/useScrollTo.d.ts +5 -0
- package/dist/composables/virtual/index.d.ts +4 -0
- package/dist/composables/virtual/useVirtualSectionWindow.d.ts +72 -0
- package/dist/composables/virtual/useWindowedStore.d.ts +43 -0
- package/dist/composables/virtual/virtualSectionLayout.d.ts +103 -0
- package/dist/concentric.d.ts +1 -0
- package/dist/concentric.js +836 -0
- package/dist/configurator.js +3 -2
- package/dist/confirm-dialog.js +62 -49
- package/dist/constellation.js +635 -235
- package/dist/context-menu.js +3 -3
- package/dist/controls.js +2 -2
- package/dist/createCanvasLifecycle-Gh45Ce-p.js +93 -0
- package/dist/dark.js +1 -1
- package/dist/data-table.js +1 -1
- package/dist/deck.d.ts +1 -0
- package/dist/deck.js +105 -0
- package/dist/dialog.js +4 -3
- package/dist/dock.js +819 -568
- package/dist/{dockContext-Bu1Avy-a.js → dockContext-BNfyPLe9.js} +1 -1
- package/dist/dom.js +5 -5
- package/dist/dot-flow-field.d.ts +1 -0
- package/dist/dot-flow-field.js +894 -0
- package/dist/dot-matrix.d.ts +1 -0
- package/dist/dot-matrix.js +630 -0
- package/dist/dotMatrixField-D_x9_1qq.js +48 -0
- package/dist/drawer.d.ts +1 -0
- package/dist/drawer.js +380 -0
- package/dist/{dropdown-menu-BJ7E9js_.js → dropdown-menu-aJmV5SqE.js} +82 -79
- package/dist/dropdown-menu.js +1 -1
- package/dist/easing.d.ts +1 -0
- package/dist/easing.js +475 -0
- package/dist/expandable-container.js +46 -21
- package/dist/fading-scroll.js +1 -1
- package/dist/flow.glsl-B2P7e0MT.js +4 -0
- package/dist/focus-scope.d.ts +1 -0
- package/dist/focus-scope.js +23 -0
- package/dist/forms.js +65 -63
- package/dist/fourier-field.js +831 -172
- package/dist/fourier-math.js +1 -1
- package/dist/glass-panel.js +2 -2
- package/dist/glass-ui.css +1 -1
- package/dist/glass-ui.js +187 -338
- package/dist/goo-blob.js +241 -692
- package/dist/goo-dot-matrix.d.ts +1 -0
- package/dist/goo-dot-matrix.js +591 -0
- package/dist/handmark.js +2 -2
- package/dist/header-ribbon.js +1 -1
- package/dist/hover-card.js +1 -1
- package/dist/hover-popover.js +1 -1
- package/dist/icon-chip.js +1 -1
- package/dist/icon-tooltip.js +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/instrument-chassis.js +1 -1
- package/dist/keyboard.js +1 -1
- package/dist/label.js +1 -1
- package/dist/labeled-field.js +70 -60
- package/dist/metric-badge.js +1 -1
- package/dist/metric-cell.js +1 -1
- package/dist/metric-stack.js +14 -9
- package/dist/motion-core.js +58 -36
- package/dist/motion-curves.js +11 -1
- package/dist/motion.js +90 -53
- package/dist/notification.js +1 -1
- package/dist/number-field.js +1 -1
- package/dist/pager-dots.js +2 -91
- package/dist/paper-backdrop.js +1 -1
- package/dist/paper-grid.d.ts +1 -0
- package/dist/paper-grid.js +788 -0
- package/dist/popover.js +1 -1
- package/dist/{presets-BW2b-fr1.js → presets-CvOUqtdY.js} +3 -3
- package/dist/{compile-EXXzEr1q.js → procedural-color.wgsl-m7Zgv35j.js} +2 -156
- package/dist/progress.js +1 -1
- package/dist/pulse.js +2 -2
- package/dist/reactive.js +1 -1
- package/dist/resolveCanvasColor-yPyIpJt9.js +93 -0
- package/dist/scrollReader-DI1NWxUw.js +42 -0
- package/dist/scrolling-text.js +1 -1
- package/dist/search.js +162 -308
- package/dist/select.js +3 -3
- package/dist/selectable-chip.d.ts +1 -0
- package/dist/selectable-chip.js +65 -0
- package/dist/separator.js +1 -1
- package/dist/{sheet-CquRYOAw.js → sheet-B2flBfLH.js} +5 -5
- package/dist/sheet.js +1 -1
- package/dist/sidebar.js +216 -114
- package/dist/{slider-DQ95MET2.js → slider-2A0rPn79.js} +3 -3
- package/dist/slider.js +1 -1
- package/dist/sortable-list.js +2 -2
- package/dist/spa-view.d.ts +1 -0
- package/dist/spa-view.js +46 -0
- package/dist/spectrum-walk-BVzA7Biz.js +33 -0
- package/dist/{springPresets-WXaLbu8u.js → springPresets-Ce7OYCm9.js} +12 -6
- package/dist/styles/animations.css +46 -12
- package/dist/styles/border-progress.css +109 -0
- package/dist/styles/cards.css +145 -0
- package/dist/styles/completion-seal.css +131 -0
- package/dist/styles/components.css +2 -3
- package/dist/styles/configurator.css +55 -0
- package/dist/styles/critical-partition.mjs +162 -0
- package/dist/styles/critical.css +12 -0
- package/dist/styles/deferred.css +33 -0
- package/dist/styles/dock/cta-seat.css +87 -0
- package/dist/styles/dock/density.css +198 -0
- package/dist/styles/dock/layers.css +101 -29
- package/dist/styles/dock/morph-bridge.css +54 -18
- package/dist/styles/dock/morph.css +132 -7
- package/dist/styles/dock/overflow.css +28 -2
- package/dist/styles/dock/search.css +68 -0
- package/dist/styles/dock/shape.css +124 -0
- package/dist/styles/dock/shell.css +77 -21
- package/dist/styles/dock/stack-rail.css +264 -0
- package/dist/styles/dock-controls/dark-mode-toggle.css +17 -4
- package/dist/styles/dock-controls/icon-button.css +14 -0
- package/dist/styles/dock.css +43 -1
- package/dist/styles/drawer.css +81 -35
- package/dist/styles/glass/accent-tone.css +66 -0
- package/dist/styles/glass/control-surfaces.css +167 -0
- package/dist/styles/glass/deep.css +44 -0
- package/dist/styles/glass/ladder.css +147 -41
- package/dist/styles/glass/material.css +78 -15
- package/dist/styles/glass/reveal.css +136 -0
- package/dist/styles/glass/rim.css +110 -0
- package/dist/styles/glass/surfaces.css +148 -129
- package/dist/styles/glass-refract.css +96 -44
- package/dist/styles/glass-specular-track.css +7 -0
- package/dist/styles/glass.css +13 -0
- package/dist/styles/hover-popover.css +7 -6
- package/dist/styles/icon-chip.css +77 -15
- package/dist/styles/index.css +36 -9
- package/dist/styles/instrument-chassis.css +66 -3
- package/dist/styles/scroll-choreography.css +300 -0
- package/dist/styles/scroll-chrome.css +123 -0
- package/dist/styles/scroll-driven.css +38 -0
- package/dist/styles/segmented-tabs.css +81 -14
- package/dist/styles/theme/bridges.css +33 -0
- package/dist/styles/theme/literals.css +11 -2
- package/dist/styles/theme/radius.css +24 -2
- package/dist/styles/tokens/color-radius.css +13 -3
- package/dist/styles/tokens/dark-arm.css +137 -32
- package/dist/styles/tokens/glass-deep.css +100 -0
- package/dist/styles/tokens/glass-fx.css +376 -0
- package/dist/styles/tokens/glass.css +131 -351
- package/dist/styles/tokens/light-dark.css +16 -3
- package/dist/styles/tokens/offsets.css +143 -0
- package/dist/styles/tokens/on-glass-fg.css +39 -0
- package/dist/styles/tokens/property-regs.css +260 -0
- package/dist/styles/tokens/scale-paper.css +168 -96
- package/dist/styles/tokens/scheme-motion.css +114 -38
- package/dist/styles/tokens/scroll-tokens.css +123 -0
- package/dist/styles/tokens/sizing-config.css +110 -0
- package/{src/styles/tokens/offsets-sizing.css → dist/styles/tokens/sizing.css} +92 -204
- package/dist/styles/tokens.css +14 -3
- package/dist/styles/typography/semantic.css +26 -13
- package/dist/styles/typography/utilities.css +22 -7
- package/dist/styles/utilities/a11y-overrides.css +20 -5
- package/dist/styles/utilities/animate.css +27 -24
- package/dist/styles/utilities/base-misc.css +307 -0
- package/dist/styles/utilities/base.css +47 -261
- package/dist/styles/utilities/btn.css +17 -4
- package/dist/styles/utilities/components.css +31 -6
- package/dist/styles/utilities/metal.css +215 -0
- package/dist/styles/utilities.css +14 -7
- package/dist/switch.js +1 -1
- package/dist/tabs.js +220 -107
- package/dist/timeline.js +2 -2
- package/dist/toast.js +1 -1
- package/dist/toggle-chip.js +10 -10
- package/dist/toggle-group.js +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/typewriter.js +2 -2
- package/dist/uniformBridgeWGPU-CtAKl45L.js +1204 -0
- package/dist/{useAnimatedNumber-C_3wZLx4.js → useAnimatedNumber-CLrxicG9.js} +1 -1
- package/dist/useConfiguratorState-4xblKfwd.js +162 -0
- package/dist/useControlSize-SH1UmJCi.js +9 -0
- package/dist/useDockCtaReceive-DfFkmgL1.js +82 -0
- package/dist/useDragMorph-BUgAC-zK.js +102 -0
- package/dist/useFuzzySearch-DIhcYtcw.js +177 -0
- package/dist/useGpuSubstrate-4pTcp6mX.js +294 -0
- package/dist/useLiquidPress-BooG97RY.js +39 -0
- package/dist/usePointerVelocityField-QLsy3_kv.js +91 -0
- package/dist/useScrollChrome-D66AVP7C.js +258 -0
- package/dist/useSpring-C0jyvEJB.js +40 -0
- package/dist/useSpringMount-BWDnKIwh.js +71 -0
- package/dist/useSpringPress-B1-Czp-V.js +36 -0
- package/dist/{useTouchGate-28Tk2-t2.js → useTouchGate-CBZTD4SD.js} +1 -1
- package/dist/useViewTransition-CUI1nAgn.js +95 -0
- package/dist/vSpecular-EX7loENl.js +68 -0
- package/dist/vendor-B2qOlYY3.js +239 -0
- package/dist/virtual.d.ts +1 -0
- package/dist/virtual.js +225 -0
- package/dist/watercolor-dot.js +117 -74
- package/package.json +252 -28
- package/src/styles/animations.css +46 -12
- package/src/styles/border-progress.css +109 -0
- package/src/styles/cards.css +145 -0
- package/src/styles/completion-seal.css +131 -0
- package/src/styles/configurator.css +55 -0
- package/src/styles/critical-partition.mjs +162 -0
- package/src/styles/dock/cta-seat.css +87 -0
- package/src/styles/dock/density.css +198 -0
- package/src/styles/dock/layers.css +101 -29
- package/src/styles/dock/morph-bridge.css +54 -18
- package/src/styles/dock/morph.css +132 -7
- package/src/styles/dock/overflow.css +28 -2
- package/src/styles/dock/search.css +68 -0
- package/src/styles/dock/shape.css +124 -0
- package/src/styles/dock/shell.css +77 -21
- package/src/styles/dock/stack-rail.css +264 -0
- package/src/styles/dock-controls/dark-mode-toggle.css +17 -4
- package/src/styles/dock-controls/icon-button.css +14 -0
- package/src/styles/dock.css +43 -1
- package/src/styles/drawer.css +81 -35
- package/src/styles/glass/accent-tone.css +66 -0
- package/src/styles/glass/control-surfaces.css +167 -0
- package/src/styles/glass/deep.css +44 -0
- package/src/styles/glass/ladder.css +147 -41
- package/src/styles/glass/material.css +78 -15
- package/src/styles/glass/reveal.css +136 -0
- package/src/styles/glass/rim.css +110 -0
- package/src/styles/glass/surfaces.css +148 -129
- package/src/styles/glass-refract.css +96 -44
- package/src/styles/glass-specular-track.css +7 -0
- package/src/styles/glass.css +13 -0
- package/src/styles/hover-popover.css +7 -6
- package/src/styles/icon-chip.css +77 -15
- package/src/styles/index.css +27 -0
- package/src/styles/instrument-chassis.css +66 -3
- package/src/styles/scroll-choreography.css +300 -0
- package/src/styles/scroll-chrome.css +123 -0
- package/src/styles/scroll-driven.css +38 -0
- package/src/styles/segmented-tabs.css +81 -14
- package/src/styles/theme/bridges.css +33 -0
- package/src/styles/theme/literals.css +11 -2
- package/src/styles/theme/radius.css +24 -2
- package/src/styles/tokens/color-radius.css +13 -3
- package/src/styles/tokens/dark-arm.css +137 -32
- package/src/styles/tokens/glass-deep.css +100 -0
- package/src/styles/tokens/glass-fx.css +376 -0
- package/src/styles/tokens/glass.css +131 -351
- package/src/styles/tokens/light-dark.css +16 -3
- package/src/styles/tokens/offsets.css +143 -0
- package/src/styles/tokens/on-glass-fg.css +39 -0
- package/src/styles/tokens/property-regs.css +260 -0
- package/src/styles/tokens/scale-paper.css +168 -96
- package/src/styles/tokens/scheme-motion.css +114 -38
- package/src/styles/tokens/scroll-tokens.css +123 -0
- package/src/styles/tokens/sizing-config.css +110 -0
- package/{dist/styles/tokens/offsets-sizing.css → src/styles/tokens/sizing.css} +92 -204
- package/src/styles/tokens.css +14 -3
- package/src/styles/typography/semantic.css +26 -13
- package/src/styles/typography/utilities.css +22 -7
- package/src/styles/utilities/a11y-overrides.css +20 -5
- package/src/styles/utilities/animate.css +27 -24
- package/src/styles/utilities/base-misc.css +307 -0
- package/src/styles/utilities/base.css +47 -261
- package/src/styles/utilities/btn.css +17 -4
- package/src/styles/utilities/components.css +31 -6
- package/src/styles/utilities/metal.css +215 -0
- package/src/styles/utilities.css +14 -7
- package/dist/CardAction-XH4YBVEK.js +0 -158
- package/dist/ContextMenuContent-ON3x7cuk.js +0 -85
- package/dist/DialogFooter-8eZbdmPc.js +0 -165
- package/dist/HoverCardContent-DkMaQzH5.js +0 -83
- package/dist/Input-DVG_J0ne.js +0 -55
- package/dist/Notification-DKjKsQq8.js +0 -100
- package/dist/NumberFieldContent-1VtwDSgf.js +0 -145
- package/dist/Separator-BArl4OaB.js +0 -37
- package/dist/Switch-Dr--uLGH.js +0 -47
- package/dist/Toaster-Bm_HQSpc.js +0 -263
- package/dist/ToggleGroupItem-Dzk9hWsF.js +0 -157
- package/dist/TooltipProvider-B3MkB_8P.js +0 -104
- package/dist/button-BNDWhAZb.js +0 -81
- package/dist/check-njhk-vfu.js +0 -7
- package/dist/chevron-down-DKkxb4VV.js +0 -7
- package/dist/chevron-right-CPXbqQQz.js +0 -7
- package/dist/chevron-up-n_24SqI-.js +0 -7
- package/dist/color-DweYl7pE.js +0 -86
- package/dist/components/custom/constellation/composables/useConstellationPointer.d.ts +0 -35
- package/dist/components/custom/constellation/constellationDraw.d.ts +0 -30
- package/dist/components/custom/dock/DockRail.vue.d.ts +0 -89
- package/dist/createLucideIcon-DydS2qgk.js +0 -43
- package/dist/minimize-2-BV31Ob_h.js +0 -38
- package/dist/resolveCanvasColor-BBiYfp8g.js +0 -11
- package/dist/search-BSGrf2Sk.js +0 -12
- package/dist/styles/dock/rail-extend.css +0 -397
- package/dist/useCanvas2D-ClrQuZtp.js +0 -96
- package/dist/useConfiguratorState-kiIlun8I.js +0 -303
- package/dist/useRAFLoop-CdwJ7284.js +0 -109
- package/dist/useSpecularTracking-Bo5su68i.js +0 -32
- package/dist/useSpringMount-CvopqiFr.js +0 -108
- package/dist/useViewTransition-COsPjQVZ.js +0 -47
- package/dist/x-BUwTKe50.js +0 -10
- package/src/styles/dock/rail-extend.css +0 -397
- /package/dist/{CollapsibleContent-C_s6fG7r.js → CollapsibleContent-68dEXIAl.js} +0 -0
- /package/dist/{InstrumentChassis-UUJX0-mW.js → InstrumentChassis-CxsHSyMj.js} +0 -0
- /package/dist/{Label-Ck9SWEKM.js → Label-C2ejNWeC.js} +0 -0
- /package/dist/{ModalOverlay-CkPRRgl_.js → ModalOverlay-D1VrWyoi.js} +0 -0
- /package/dist/{PaperBackdrop-nBKe0vkB.js → PaperBackdrop-CqwjnfLv.js} +0 -0
- /package/dist/{SelectGroup-Dcczq44n.js → SelectGroup-BFiod7X2.js} +0 -0
- /package/dist/{_plugin-vue_export-helper-CBt_VvXa.js → _plugin-vue_export-helper-C1je1s0u.js} +0 -0
- /package/dist/{badge-UILT_3pZ.js → badge-D9XWW4GT.js} +0 -0
- /package/dist/{constants-BPOqYJAm.js → constants--C2DkLW8.js} +0 -0
- /package/dist/{createContext-B2RaZ-b8.js → createContext-CpBNTRMI.js} +0 -0
- /package/dist/{math-DeuJwLFx.js → math-Eb0w3LqU.js} +0 -0
- /package/dist/{menuItemVariants-DWRQXBxJ.js → menuItemVariants-D8VNHq22.js} +0 -0
- /package/dist/{prng-Cg22zv8g.js → prng-B-d9eYX8.js} +0 -0
- /package/dist/{useGlobalDark-C28t0VWJ.js → useGlobalDark-CmjB9E32.js} +0 -0
- /package/dist/{useIntersectionPause-Bj4sPkMh.js → useIntersectionPause-Dbozzjgm.js} +0 -0
- /package/dist/{useKeyboardShortcuts-BXWXOZ-9.js → useKeyboardShortcuts-BPRp33Im.js} +0 -0
- /package/dist/{useLiquidFlex-C12hXwOZ.js → useLiquidFlex-UmA6LMZu.js} +0 -0
- /package/dist/{useResizeObserver-V6nq5gJb.js → useResizeObserver-Bpoi7tRE.js} +0 -0
- /package/dist/{useResolveTokenColor-NUG2zYAW.js → useResolveTokenColor-vAylyR0x.js} +0 -0
- /package/dist/{useScrollProgress-D7bYU2RK.js → useScrollProgress-c3yxmH6a.js} +0 -0
- /package/dist/{useSurfaceAxis-CMnF2zHb.js → useSurfaceAxis-g0NloYEF.js} +0 -0
- /package/dist/{useTimer-B_PAasDL.js → useTimer-BHJOKr35.js} +0 -0
- /package/dist/{useUserInvalidAria-CDfJuakL.js → useUserInvalidAria-y5namzeE.js} +0 -0
- /package/dist/{useViewportReady-CvBcCYDf.js → useViewportReady-anbac3m6.js} +0 -0
package/dist/dock.js
CHANGED
|
@@ -1,49 +1,34 @@
|
|
|
1
1
|
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
|
-
import { t } from "./
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import {
|
|
8
|
-
import { n as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
height: "18",
|
|
23
|
-
rx: "1",
|
|
24
|
-
key: "kaeet6"
|
|
25
|
-
}], ["rect", {
|
|
26
|
-
x: "5",
|
|
27
|
-
y: "3",
|
|
28
|
-
width: "5",
|
|
29
|
-
height: "18",
|
|
30
|
-
rx: "1",
|
|
31
|
-
key: "1wsw3u"
|
|
32
|
-
}]]), fe = t("play", [["path", {
|
|
33
|
-
d: "M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",
|
|
34
|
-
key: "10ikf1"
|
|
35
|
-
}]]), pe = "(prefers-reduced-motion: reduce)", $ = 32;
|
|
36
|
-
function me(e) {
|
|
2
|
+
import { a as t, d as n, o as r, x as i } from "./vendor-B2qOlYY3.js";
|
|
3
|
+
import { t as a } from "./useLiquidFlex-UmA6LMZu.js";
|
|
4
|
+
import { t as o } from "./vSpecular-EX7loENl.js";
|
|
5
|
+
import { t as s } from "./useResizeObserver-Bpoi7tRE.js";
|
|
6
|
+
import { t as c } from "./useTouchGate-CBZTD4SD.js";
|
|
7
|
+
import { n as l } from "./useResolveTokenColor-vAylyR0x.js";
|
|
8
|
+
import { n as u, t as d } from "./createContext-CpBNTRMI.js";
|
|
9
|
+
import { a as f, c as p, i as m, n as h, o as g, r as _, s as v, t as y } from "./dockContext-BNfyPLe9.js";
|
|
10
|
+
import { t as b } from "./FadingScroll-DLRbH5Xr.js";
|
|
11
|
+
import { t as x } from "./useIntersectionPause-Dbozzjgm.js";
|
|
12
|
+
import { t as S } from "./useDragMorph-BUgAC-zK.js";
|
|
13
|
+
import { t as C } from "./useDockCtaReceive-DfFkmgL1.js";
|
|
14
|
+
import { r as w, t as T } from "./useScrollChrome-D66AVP7C.js";
|
|
15
|
+
import { t as E } from "./useFuzzySearch-DIhcYtcw.js";
|
|
16
|
+
import { Fragment as D, computed as O, createBlock as k, createCommentVNode as A, createElementBlock as j, createElementVNode as M, createVNode as N, defineComponent as P, mergeModels as F, mergeProps as I, nextTick as L, normalizeClass as R, normalizeStyle as z, onBeforeUnmount as ee, onMounted as te, onScopeDispose as B, onUnmounted as V, openBlock as H, readonly as U, ref as W, renderList as ne, renderSlot as G, resolveDynamicComponent as re, toDisplayString as ie, unref as K, useId as ae, useModel as q, useSlots as oe, useTemplateRef as J, watch as Y, withCtx as X, withDirectives as Z } from "vue";
|
|
17
|
+
import { DropdownMenuTrigger as se, Primitive as ce, SelectIcon as le, SelectTrigger as ue, TabsIndicator as de, TabsList as fe, TabsRoot as pe, TabsTrigger as me, useForwardProps as he, useForwardPropsEmits as ge } from "reka-ui";
|
|
18
|
+
import { SpringProgress as _e } from "@mkbabb/keyframes.js";
|
|
19
|
+
//#region src/composables/glass/useGlassBackdropLuminance.ts
|
|
20
|
+
var ve = "(prefers-reduced-motion: reduce)", Q = 32;
|
|
21
|
+
function ye(e) {
|
|
37
22
|
return typeof HTMLCanvasElement < "u" && e instanceof HTMLCanvasElement;
|
|
38
23
|
}
|
|
39
|
-
function
|
|
24
|
+
function be(e) {
|
|
40
25
|
let t = e / 255;
|
|
41
26
|
return t <= .03928 ? t / 12.92 : ((t + .055) / 1.055) ** 2.4;
|
|
42
27
|
}
|
|
43
|
-
function
|
|
44
|
-
return .2126 *
|
|
28
|
+
function xe(e, t, n) {
|
|
29
|
+
return .2126 * be(e) + .7152 * be(t) + .0722 * be(n);
|
|
45
30
|
}
|
|
46
|
-
function
|
|
31
|
+
function Se(e) {
|
|
47
32
|
let t = e.match(/rgba?\(\s*([\d.]+)[,\s]+([\d.]+)[,\s]+([\d.]+)(?:[,\s/]+([\d.]+))?/i);
|
|
48
33
|
return t ? [
|
|
49
34
|
Number(t[1]),
|
|
@@ -52,36 +37,36 @@ function _e(e) {
|
|
|
52
37
|
t[4] === void 0 ? 1 : Number(t[4])
|
|
53
38
|
] : null;
|
|
54
39
|
}
|
|
55
|
-
function
|
|
40
|
+
function Ce(e) {
|
|
56
41
|
if (!e) return null;
|
|
57
|
-
if (
|
|
42
|
+
if (ye(e)) return e;
|
|
58
43
|
if (typeof e == "function") {
|
|
59
44
|
let t = e();
|
|
60
|
-
return
|
|
45
|
+
return ye(t) ? t : null;
|
|
61
46
|
}
|
|
62
47
|
if (typeof e == "string" && typeof document < "u") {
|
|
63
48
|
let t = document.querySelector(e);
|
|
64
|
-
return
|
|
49
|
+
return ye(t) ? t : null;
|
|
65
50
|
}
|
|
66
51
|
return null;
|
|
67
52
|
}
|
|
68
|
-
function
|
|
69
|
-
let { lightThreshold: n = .6, minSampleIntervalMs: r = 250, writeBucket: i = !0 } = t,
|
|
53
|
+
function we(e, t = {}) {
|
|
54
|
+
let { lightThreshold: n = .6, minSampleIntervalMs: r = 250, writeBucket: i = !0 } = t, a = Math.max(250, r), o = W(null), c = W(null);
|
|
70
55
|
if (typeof window > "u") return {
|
|
71
|
-
luma:
|
|
72
|
-
bucket:
|
|
56
|
+
luma: U(o),
|
|
57
|
+
bucket: U(c),
|
|
73
58
|
sampleNow: () => {},
|
|
74
59
|
dispose: () => {}
|
|
75
60
|
};
|
|
76
|
-
let u = window.matchMedia(
|
|
61
|
+
let u = window.matchMedia(ve), d = u.matches, f = null, p = null;
|
|
77
62
|
function m() {
|
|
78
|
-
return f || (f = document.createElement("canvas"), f.width =
|
|
63
|
+
return f || (f = document.createElement("canvas"), f.width = Q, f.height = Q), p ||= f.getContext("2d", { willReadFrequently: !0 }), p;
|
|
79
64
|
}
|
|
80
65
|
function h() {
|
|
81
66
|
return t.live === void 0 ? e.value?.dataset.glassSample === "live" : t.live;
|
|
82
67
|
}
|
|
83
68
|
function g(e) {
|
|
84
|
-
let n =
|
|
69
|
+
let n = Ce(t.backgroundCanvas);
|
|
85
70
|
if (!n || n.width === 0 || n.height === 0) return null;
|
|
86
71
|
let r = m();
|
|
87
72
|
if (!r) return null;
|
|
@@ -90,11 +75,11 @@ function ye(e, t = {}) {
|
|
|
90
75
|
let o = n.width / a.width, s = n.height / a.height, c = Math.max(0, (i.left - a.left) * o), l = Math.max(0, (i.top - a.top) * s), u = Math.min(n.width - c, Math.max(1, i.width * o)), d = Math.min(n.height - l, Math.max(1, i.height * s));
|
|
91
76
|
if (u <= 0 || d <= 0) return null;
|
|
92
77
|
try {
|
|
93
|
-
r.clearRect(0, 0,
|
|
94
|
-
let e = r.getImageData(0, 0,
|
|
78
|
+
r.clearRect(0, 0, Q, Q), r.drawImage(n, c, l, u, d, 0, 0, Q, Q);
|
|
79
|
+
let e = r.getImageData(0, 0, Q, Q).data, t = 0, i = 0;
|
|
95
80
|
for (let n = 0; n < e.length; n += 4) {
|
|
96
81
|
let r = e[n + 3] / 255, a = e[n] * r + 255 * (1 - r), o = e[n + 1] * r + 255 * (1 - r), s = e[n + 2] * r + 255 * (1 - r);
|
|
97
|
-
t +=
|
|
82
|
+
t += xe(a, o, s), i++;
|
|
98
83
|
}
|
|
99
84
|
return i > 0 ? t / i : null;
|
|
100
85
|
} catch {
|
|
@@ -105,71 +90,71 @@ function ye(e, t = {}) {
|
|
|
105
90
|
let t = e.getBoundingClientRect(), n = t.left + t.width / 2, r = t.top + t.height / 2, i = document.elementsFromPoint(n, r);
|
|
106
91
|
for (let t of i) {
|
|
107
92
|
if (!(t instanceof HTMLElement) || t === e || e.contains(t)) continue;
|
|
108
|
-
let n = getComputedStyle(t).backgroundColor, r =
|
|
109
|
-
if (r && !(r[3] < .5)) return
|
|
93
|
+
let n = getComputedStyle(t).backgroundColor, r = Se(l(n, e));
|
|
94
|
+
if (r && !(r[3] < .5)) return xe(r[0], r[1], r[2]);
|
|
110
95
|
}
|
|
111
|
-
let a =
|
|
112
|
-
return a ?
|
|
96
|
+
let a = Se(l(getComputedStyle(document.body).backgroundColor, e));
|
|
97
|
+
return a ? xe(a[0], a[1], a[2]) : null;
|
|
113
98
|
}
|
|
114
99
|
function v(t) {
|
|
115
|
-
|
|
100
|
+
o.value = t;
|
|
116
101
|
let r = e.value;
|
|
117
102
|
if (r && (r.style.setProperty("--glass-backdrop-luma", t.toFixed(3)), i)) {
|
|
118
103
|
let e = t >= n ? "light" : "dark";
|
|
119
|
-
|
|
104
|
+
c.value = e, r.style.setProperty("--glass-backdrop", e);
|
|
120
105
|
}
|
|
121
106
|
}
|
|
122
107
|
let y = 0;
|
|
123
|
-
function
|
|
108
|
+
function b() {
|
|
124
109
|
let t = e.value;
|
|
125
110
|
if (!t) return;
|
|
126
111
|
let n = h() ? g(t) ?? _(t) : _(t);
|
|
127
112
|
n !== null && v(n), y = typeof performance < "u" ? performance.now() : Date.now();
|
|
128
113
|
}
|
|
129
|
-
let
|
|
130
|
-
d || e - y <
|
|
114
|
+
let S = w(({ now: e }) => {
|
|
115
|
+
d || e - y < a || b();
|
|
131
116
|
}, {
|
|
132
117
|
immediate: !1,
|
|
133
118
|
pauseWhenHidden: !0,
|
|
134
119
|
respectReducedMotion: !0
|
|
135
|
-
}),
|
|
136
|
-
pause: () =>
|
|
120
|
+
}), C = x(() => e.value, {
|
|
121
|
+
pause: () => S.pause(),
|
|
137
122
|
resume: () => {
|
|
138
|
-
h() && !d &&
|
|
123
|
+
h() && !d && S.resume();
|
|
139
124
|
}
|
|
140
|
-
}, { rootMargin: "200px" }), T =
|
|
125
|
+
}, { rootMargin: "200px" }), T = s(e, () => b());
|
|
141
126
|
function E() {
|
|
142
|
-
d = u.matches, d ? (
|
|
127
|
+
d = u.matches, d ? (S.stop(), b()) : h() && S.start();
|
|
143
128
|
}
|
|
144
129
|
let D = () => E();
|
|
145
130
|
typeof u.addEventListener == "function" && u.addEventListener("change", D);
|
|
146
131
|
let O = Y(() => e.value, (e) => {
|
|
147
|
-
e && (
|
|
132
|
+
e && (b(), E());
|
|
148
133
|
}, {
|
|
149
134
|
immediate: !0,
|
|
150
135
|
flush: "post"
|
|
151
136
|
});
|
|
152
137
|
function k() {
|
|
153
|
-
O(),
|
|
138
|
+
O(), S.dispose(), C.dispose(), T.stop(), typeof u.removeEventListener == "function" && u.removeEventListener("change", D), f = null, p = null;
|
|
154
139
|
}
|
|
155
|
-
return
|
|
156
|
-
luma:
|
|
157
|
-
bucket:
|
|
158
|
-
sampleNow:
|
|
140
|
+
return B(k), {
|
|
141
|
+
luma: U(o),
|
|
142
|
+
bucket: U(c),
|
|
143
|
+
sampleNow: b,
|
|
159
144
|
dispose: k
|
|
160
145
|
};
|
|
161
146
|
}
|
|
162
147
|
//#endregion
|
|
163
148
|
//#region src/components/custom/dock/composables/isTeleportedTarget.ts
|
|
164
|
-
function
|
|
149
|
+
function Te(e, t) {
|
|
165
150
|
if (!(e instanceof Element)) return !1;
|
|
166
151
|
let n = e.closest("[data-glass-dock-portal]");
|
|
167
152
|
return n ? t ? n.getAttribute("data-glass-dock-owner") === t : !0 : !1;
|
|
168
153
|
}
|
|
169
154
|
//#endregion
|
|
170
155
|
//#region src/components/custom/dock/composables/useDockState.ts
|
|
171
|
-
function
|
|
172
|
-
let { collapseDelay: t = 2500, rootEl: n, alwaysExpanded: r = !1, isTransitioning: i, dockId: a, onStateChange: o } = e, s = () => typeof r == "boolean" ? r : r.value, c = s(), l =
|
|
156
|
+
function Ee(e) {
|
|
157
|
+
let { collapseDelay: t = 2500, rootEl: n, alwaysExpanded: r = !1, isTransitioning: i, dockId: a, onStateChange: o } = e, s = () => typeof r == "boolean" ? r : r.value, c = s(), l = W(c ? "pinned" : "collapsed"), u = W(c), d = W(c), f = null, p = W(0), m = O(() => p.value > 0), h = null, g = null, _ = !1, v = null;
|
|
173
158
|
function y() {
|
|
174
159
|
v &&= (clearTimeout(v), null);
|
|
175
160
|
}
|
|
@@ -184,21 +169,21 @@ function xe(e) {
|
|
|
184
169
|
function S() {
|
|
185
170
|
s() && (l.value = "pinned"), u.value = l.value !== "collapsed", d.value = l.value === "pinned", o && x !== l.value && o(l.value, x), x = l.value;
|
|
186
171
|
}
|
|
187
|
-
function
|
|
172
|
+
function C() {
|
|
188
173
|
f &&= (clearTimeout(f), null);
|
|
189
174
|
}
|
|
190
|
-
function
|
|
175
|
+
function w() {
|
|
191
176
|
g !== null && (cancelAnimationFrame(g), g = null);
|
|
192
177
|
}
|
|
193
|
-
function
|
|
194
|
-
|
|
178
|
+
function T() {
|
|
179
|
+
w(), h?.();
|
|
195
180
|
}
|
|
196
|
-
function
|
|
197
|
-
s() || p.value > 0 || (
|
|
198
|
-
|
|
181
|
+
function E() {
|
|
182
|
+
s() || p.value > 0 || (C(), f = setTimeout(() => {
|
|
183
|
+
D(), l.value = "collapsed", S();
|
|
199
184
|
}, t));
|
|
200
185
|
}
|
|
201
|
-
function
|
|
186
|
+
function D() {
|
|
202
187
|
typeof document > "u" || typeof PointerEvent > "u" || document.body.dispatchEvent(new PointerEvent("pointerdown", {
|
|
203
188
|
bubbles: !0,
|
|
204
189
|
composed: !0
|
|
@@ -209,17 +194,17 @@ function xe(e) {
|
|
|
209
194
|
l.value = "pinned", S();
|
|
210
195
|
return;
|
|
211
196
|
}
|
|
212
|
-
_ ||= (_ = !0,
|
|
197
|
+
_ ||= (_ = !0, C(), y(), D(), l.value = "collapsed", S(), !1);
|
|
213
198
|
}
|
|
214
199
|
function A() {
|
|
215
200
|
if (s()) {
|
|
216
201
|
l.value = "pinned", S();
|
|
217
202
|
return;
|
|
218
203
|
}
|
|
219
|
-
|
|
204
|
+
C(), y(), l.value = "hover", S();
|
|
220
205
|
}
|
|
221
206
|
function j() {
|
|
222
|
-
s() || (
|
|
207
|
+
s() || (C(), l.value === "collapsed" && (y(), v = setTimeout(() => {
|
|
223
208
|
v = null, !s() && l.value === "collapsed" && (l.value = "hover", S());
|
|
224
209
|
}, 60)));
|
|
225
210
|
}
|
|
@@ -228,53 +213,53 @@ function xe(e) {
|
|
|
228
213
|
if (p.value > 0) return;
|
|
229
214
|
if (e) {
|
|
230
215
|
let t = n.value;
|
|
231
|
-
if (t && e.relatedTarget instanceof Node && t.contains(e.relatedTarget) ||
|
|
216
|
+
if (t && e.relatedTarget instanceof Node && t.contains(e.relatedTarget) || Te(e.relatedTarget, a) || b(e)) return;
|
|
232
217
|
}
|
|
233
|
-
|
|
218
|
+
E();
|
|
234
219
|
}
|
|
235
220
|
}
|
|
236
221
|
function N() {
|
|
237
|
-
s() || (
|
|
222
|
+
s() || (C(), l.value === "collapsed" && (l.value = "hover", S()));
|
|
238
223
|
}
|
|
239
224
|
function P(e) {
|
|
240
225
|
if (s() || l.value !== "hover" || p.value > 0) return;
|
|
241
226
|
let t = e.currentTarget;
|
|
242
|
-
e.relatedTarget && t.contains(e.relatedTarget) ||
|
|
227
|
+
e.relatedTarget && t.contains(e.relatedTarget) || Te(e.relatedTarget, a) || E();
|
|
243
228
|
}
|
|
244
229
|
function F() {
|
|
245
230
|
if (s()) {
|
|
246
231
|
l.value = "pinned", S();
|
|
247
232
|
return;
|
|
248
233
|
}
|
|
249
|
-
|
|
234
|
+
C(), y(), l.value = "pinned", S();
|
|
250
235
|
}
|
|
251
236
|
function I() {
|
|
252
|
-
p.value++,
|
|
237
|
+
p.value++, C();
|
|
253
238
|
}
|
|
254
239
|
function L() {
|
|
255
|
-
p.value = Math.max(0, p.value - 1), p.value === 0 && l.value === "hover" && (
|
|
256
|
-
p.value === 0 && l.value === "hover" &&
|
|
240
|
+
p.value = Math.max(0, p.value - 1), p.value === 0 && l.value === "hover" && (C(), f = setTimeout(() => {
|
|
241
|
+
p.value === 0 && l.value === "hover" && E();
|
|
257
242
|
}, Math.min(t, 800)));
|
|
258
243
|
}
|
|
259
|
-
function
|
|
244
|
+
function R(e) {
|
|
260
245
|
if (s() || i?.value) return;
|
|
261
246
|
let t = n.value;
|
|
262
|
-
!t || t.contains(e.target) ||
|
|
247
|
+
!t || t.contains(e.target) || Te(e.target, a) || k();
|
|
263
248
|
}
|
|
264
249
|
return Y(u, (e) => {
|
|
265
|
-
e ? (
|
|
266
|
-
g = null, u.value && (document.addEventListener("pointerdown",
|
|
267
|
-
document.removeEventListener("pointerdown",
|
|
250
|
+
e ? (T(), g = requestAnimationFrame(() => {
|
|
251
|
+
g = null, u.value && (document.addEventListener("pointerdown", R, !0), h = () => {
|
|
252
|
+
document.removeEventListener("pointerdown", R, !0), h = null;
|
|
268
253
|
});
|
|
269
|
-
})) :
|
|
254
|
+
})) : T();
|
|
270
255
|
}), typeof r == "boolean" ? r && (l.value = "pinned", S()) : Y(r, (e) => {
|
|
271
256
|
if (e) {
|
|
272
|
-
|
|
257
|
+
C(), l.value = "pinned", S();
|
|
273
258
|
return;
|
|
274
259
|
}
|
|
275
260
|
l.value = "collapsed", S();
|
|
276
|
-
}, { immediate: !0 }),
|
|
277
|
-
|
|
261
|
+
}, { immediate: !0 }), V(() => {
|
|
262
|
+
C(), y(), T();
|
|
278
263
|
}), {
|
|
279
264
|
state: l,
|
|
280
265
|
expanded: u,
|
|
@@ -292,13 +277,98 @@ function xe(e) {
|
|
|
292
277
|
};
|
|
293
278
|
}
|
|
294
279
|
//#endregion
|
|
280
|
+
//#region src/components/custom/dock/composables/dockMorphMeasure.ts
|
|
281
|
+
function De(e) {
|
|
282
|
+
return e === "vertical" ? "height" : "width";
|
|
283
|
+
}
|
|
284
|
+
function Oe(e) {
|
|
285
|
+
return De(e) === "width" ? "inline-size" : "block-size";
|
|
286
|
+
}
|
|
287
|
+
function $(e, t) {
|
|
288
|
+
return e.getBoundingClientRect()[De(t)];
|
|
289
|
+
}
|
|
290
|
+
function ke(e) {
|
|
291
|
+
e.style.removeProperty("--dock-morph-from"), e.style.removeProperty("--dock-morph-to");
|
|
292
|
+
}
|
|
293
|
+
function Ae(e) {
|
|
294
|
+
if (!e || typeof getComputedStyle != "function") return 44;
|
|
295
|
+
let t = getComputedStyle(e).getPropertyValue("--dock-morph-min").trim();
|
|
296
|
+
if (!t) return 44;
|
|
297
|
+
let n = Number.parseFloat(t);
|
|
298
|
+
return Number.isFinite(n) && n > 0 ? n : 44;
|
|
299
|
+
}
|
|
300
|
+
function je(e, t, n) {
|
|
301
|
+
let r = [];
|
|
302
|
+
for (let i of n) {
|
|
303
|
+
if (i === e) continue;
|
|
304
|
+
let n = i.containerEl.value;
|
|
305
|
+
n && n !== t && t.contains(n) && r.push(i);
|
|
306
|
+
}
|
|
307
|
+
return r;
|
|
308
|
+
}
|
|
309
|
+
function Me(e) {
|
|
310
|
+
let t = e.containerEl.value;
|
|
311
|
+
if (!t) return () => {};
|
|
312
|
+
let n = Oe(e.axis.value), r = t.style.getPropertyValue(n);
|
|
313
|
+
return t.style.setProperty(n, "max-content"), () => {
|
|
314
|
+
r ? t.style.setProperty(n, r) : t.style.removeProperty(n);
|
|
315
|
+
};
|
|
316
|
+
}
|
|
317
|
+
function Ne(e, t, n) {
|
|
318
|
+
let r = e.axis.value, i = Oe(r);
|
|
319
|
+
ke(t);
|
|
320
|
+
let a = je(e, t, n).map((e) => Me(e)), o = t.style.getPropertyValue(i);
|
|
321
|
+
t.style.setProperty(i, "max-content");
|
|
322
|
+
let s = $(t, r);
|
|
323
|
+
o ? t.style.setProperty(i, o) : t.style.removeProperty(i);
|
|
324
|
+
for (let e of a) e();
|
|
325
|
+
return s;
|
|
326
|
+
}
|
|
327
|
+
function Pe(e, t, n, r, i) {
|
|
328
|
+
if (t !== e.txId) return;
|
|
329
|
+
let a = e.containerEl.value, o = n;
|
|
330
|
+
if (!a || !o) return;
|
|
331
|
+
let s = e.axis.value, c = Ne(e, a, r);
|
|
332
|
+
a.style.setProperty("--dock-morph-from", `${c}px`), a.style.setProperty("--dock-morph-to", `${c}px`), o.style.setProperty("--dock-morph-t", "1"), a.getBoundingClientRect()[De(s)], i.settleTarget(e), i.maybeSettleRoot();
|
|
333
|
+
}
|
|
334
|
+
function Fe(e, t) {
|
|
335
|
+
for (let n of t) {
|
|
336
|
+
if (n === e) continue;
|
|
337
|
+
let t = n.containerEl.value;
|
|
338
|
+
if (t && t.style.getPropertyValue("--dock-morph-to")) {
|
|
339
|
+
let e = $(t, n.axis.value);
|
|
340
|
+
t.style.setProperty("--dock-morph-from", `${e}px`);
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
function Ie(e) {
|
|
345
|
+
e && (e.style.removeProperty("--dock-root-morph-from"), e.style.removeProperty("--dock-root-morph-to"));
|
|
346
|
+
}
|
|
347
|
+
function Le(e, t, n) {
|
|
348
|
+
e && (e.style.setProperty("--dock-root-morph-from", `${t}px`), e.style.setProperty("--dock-root-morph-to", `${n}px`));
|
|
349
|
+
}
|
|
350
|
+
function Re(e, t, n, r, i, a, o, s, c) {
|
|
351
|
+
if (t !== e.txId) return;
|
|
352
|
+
let l = e.containerEl.value, u = o;
|
|
353
|
+
if (!l || !u) return;
|
|
354
|
+
ke(l);
|
|
355
|
+
let d = Oe(n), f = je(e, l, s).map((e) => Me(e)), p = a, m = p ? u.style.getPropertyValue("--dock-root-morph-from") : "", h = p ? u.style.getPropertyValue("--dock-root-morph-to") : "";
|
|
356
|
+
p && Ie(u), l.style.setProperty(d, "max-content");
|
|
357
|
+
let g = $(l, n), _ = p ? $(u, n) : 0;
|
|
358
|
+
l.style.removeProperty(d);
|
|
359
|
+
let v = Ae(l), y = g > 0 ? g : v, b = !p || _ > 0 ? _ : Ae(u);
|
|
360
|
+
p && (m && u.style.setProperty("--dock-root-morph-from", m), h && u.style.setProperty("--dock-root-morph-to", h));
|
|
361
|
+
for (let e of f) e();
|
|
362
|
+
c.armTarget(e, t, r, y), a && (Math.abs(b - i) < .5 ? Ie(u) : Le(u, i, b));
|
|
363
|
+
}
|
|
364
|
+
//#endregion
|
|
295
365
|
//#region src/components/custom/dock/composables/dockMorphContext.ts
|
|
296
|
-
var
|
|
297
|
-
function
|
|
298
|
-
|
|
366
|
+
var ze = d(g), { KEY: Be } = ze;
|
|
367
|
+
function Ve(e) {
|
|
368
|
+
ze.provide(e);
|
|
299
369
|
}
|
|
300
|
-
var
|
|
301
|
-
function
|
|
370
|
+
var He = ze.use;
|
|
371
|
+
function Ue(e) {
|
|
302
372
|
let { rootEl: t, outerEl: n, outerActiveLayer: r, outerAxis: i } = e, a = null, o = /* @__PURE__ */ new Set();
|
|
303
373
|
function s() {
|
|
304
374
|
return t.value;
|
|
@@ -306,196 +376,157 @@ function Ee(e) {
|
|
|
306
376
|
function c() {
|
|
307
377
|
a &&= (a.dispose(), null);
|
|
308
378
|
}
|
|
309
|
-
function l(
|
|
310
|
-
return
|
|
311
|
-
}
|
|
312
|
-
function u(e) {
|
|
313
|
-
return l(e) === "width" ? "inline-size" : "block-size";
|
|
314
|
-
}
|
|
315
|
-
function d(e, t) {
|
|
316
|
-
return e.getBoundingClientRect()[l(t)];
|
|
317
|
-
}
|
|
318
|
-
function f(e) {
|
|
319
|
-
e.style.removeProperty("--dock-morph-from"), e.style.removeProperty("--dock-morph-to");
|
|
379
|
+
function l() {
|
|
380
|
+
return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
320
381
|
}
|
|
321
|
-
function
|
|
382
|
+
function u() {
|
|
322
383
|
for (let e of o) {
|
|
323
384
|
let t = e.containerEl.value;
|
|
324
385
|
if (t && t.style.getPropertyValue("--dock-morph-to")) return !0;
|
|
325
386
|
}
|
|
326
387
|
return !1;
|
|
327
388
|
}
|
|
328
|
-
function
|
|
389
|
+
function d(e) {
|
|
329
390
|
let t = e.containerEl.value;
|
|
330
|
-
t &&
|
|
391
|
+
t && ke(t), e === b && Ie(s()), e.leavingLayer.value = null;
|
|
331
392
|
}
|
|
332
|
-
function
|
|
333
|
-
if (
|
|
393
|
+
function f() {
|
|
394
|
+
if (u()) return;
|
|
334
395
|
let e = s();
|
|
335
396
|
e && (e.style.removeProperty("--dock-morph-t"), e.removeAttribute("data-morphing")), c();
|
|
336
397
|
}
|
|
337
|
-
function
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
}
|
|
355
|
-
h();
|
|
398
|
+
function p() {
|
|
399
|
+
let e = s();
|
|
400
|
+
if (!e) return;
|
|
401
|
+
let t = a !== null && !a.settled ? a.velocity : 0;
|
|
402
|
+
c(), a = new _e({
|
|
403
|
+
response: v.response,
|
|
404
|
+
dampingFraction: v.dampingFraction,
|
|
405
|
+
initial: 0,
|
|
406
|
+
respectReducedMotion: !0
|
|
407
|
+
});
|
|
408
|
+
let n = a;
|
|
409
|
+
n.reset(0, t), n.target = 1, e.style.setProperty("--dock-morph-t", "0"), n.play((e) => {
|
|
410
|
+
let t = s();
|
|
411
|
+
if (t && t.style.setProperty("--dock-morph-t", `${e}`), n.settled) {
|
|
412
|
+
for (let e of o) {
|
|
413
|
+
let t = e.containerEl.value;
|
|
414
|
+
t && t.style.getPropertyValue("--dock-morph-to") && d(e);
|
|
356
415
|
}
|
|
357
|
-
|
|
358
|
-
|
|
416
|
+
f();
|
|
417
|
+
}
|
|
418
|
+
});
|
|
359
419
|
}
|
|
360
|
-
function
|
|
420
|
+
function m(e, t, n, r) {
|
|
361
421
|
if (t !== e.txId) return;
|
|
362
422
|
let i = e.containerEl.value, a = s();
|
|
363
423
|
if (!(!i || !a)) {
|
|
364
424
|
if (Math.abs(r - n) < .5) {
|
|
365
|
-
|
|
425
|
+
d(e), f();
|
|
366
426
|
return;
|
|
367
427
|
}
|
|
368
|
-
i.style.setProperty("--dock-morph-from", `${n}px`), i.style.setProperty("--dock-morph-to", `${r}px`), a.setAttribute("data-morphing", ""),
|
|
428
|
+
i.style.setProperty("--dock-morph-from", `${n}px`), i.style.setProperty("--dock-morph-to", `${r}px`), a.setAttribute("data-morphing", ""), p();
|
|
369
429
|
}
|
|
370
430
|
}
|
|
371
|
-
|
|
431
|
+
let h = {
|
|
432
|
+
settleTarget: d,
|
|
433
|
+
maybeSettleRoot: f
|
|
434
|
+
};
|
|
435
|
+
function g(e, t, n) {
|
|
372
436
|
if (t === n) return;
|
|
373
437
|
let r = e.containerEl.value, i = s();
|
|
374
438
|
if (!r || !i) {
|
|
375
439
|
e.currentLayer.value = t, e.leavingLayer.value = null;
|
|
376
440
|
return;
|
|
377
441
|
}
|
|
378
|
-
let a = ++e.txId, c = e.axis.value,
|
|
379
|
-
e.leavingLayer.value = n, e.currentLayer.value = t
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
let n = t.containerEl.value;
|
|
383
|
-
if (n && n.style.getPropertyValue("--dock-morph-to")) {
|
|
384
|
-
let e = d(n, t.axis.value);
|
|
385
|
-
n.style.setProperty("--dock-morph-from", `${e}px`);
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
r.style.setProperty("--dock-morph-from", `${l}px`), r.style.setProperty("--dock-morph-to", `${l}px`), i.style.setProperty("--dock-morph-t", "0"), i.setAttribute("data-morphing", ""), requestAnimationFrame(() => {
|
|
389
|
-
if (a !== e.txId) return;
|
|
390
|
-
let t = e.containerEl.value, n = s();
|
|
391
|
-
if (!t || !n) return;
|
|
392
|
-
f(t);
|
|
393
|
-
let r = u(c), i = b(e, t).map((e) => x(e));
|
|
394
|
-
t.style.setProperty(r, "max-content");
|
|
395
|
-
let o = d(t, c);
|
|
396
|
-
t.style.removeProperty(r);
|
|
397
|
-
for (let e of i) e();
|
|
398
|
-
v(e, a, l, o);
|
|
399
|
-
});
|
|
400
|
-
}
|
|
401
|
-
function b(e, t) {
|
|
402
|
-
let n = [];
|
|
403
|
-
for (let r of o) {
|
|
404
|
-
if (r === e) continue;
|
|
405
|
-
let i = r.containerEl.value;
|
|
406
|
-
i && i !== t && t.contains(i) && n.push(r);
|
|
442
|
+
let a = ++e.txId, c = e.axis.value, u = $(r, c), d = e === b ? $(i, c) : 0;
|
|
443
|
+
if (e.leavingLayer.value = n, e.currentLayer.value = t, Fe(e, o), r.style.setProperty("--dock-morph-from", `${u}px`), r.style.setProperty("--dock-morph-to", `${u}px`), i.style.setProperty("--dock-morph-t", "0"), i.setAttribute("data-morphing", ""), e === b && Le(s(), d, d), l()) {
|
|
444
|
+
L(() => Pe(e, a, s(), o, h));
|
|
445
|
+
return;
|
|
407
446
|
}
|
|
408
|
-
|
|
447
|
+
L(() => requestAnimationFrame(() => Re(e, a, c, u, d, e === b, s(), o, { armTarget: m })));
|
|
409
448
|
}
|
|
410
|
-
function
|
|
411
|
-
let t = e.containerEl.value;
|
|
412
|
-
if (!t) return () => {};
|
|
413
|
-
let n = u(e.axis.value), r = t.style.getPropertyValue(n);
|
|
414
|
-
return t.style.setProperty(n, "max-content"), () => {
|
|
415
|
-
r ? t.style.setProperty(n, r) : t.style.removeProperty(n);
|
|
416
|
-
};
|
|
417
|
-
}
|
|
418
|
-
function S(e) {
|
|
449
|
+
function _(e) {
|
|
419
450
|
let t = {
|
|
420
451
|
containerEl: e.containerEl,
|
|
421
452
|
activeLayer: e.activeLayer,
|
|
422
453
|
axis: e.axis,
|
|
423
|
-
currentLayer:
|
|
424
|
-
leavingLayer:
|
|
454
|
+
currentLayer: W(e.activeLayer.value),
|
|
455
|
+
leavingLayer: W(null),
|
|
425
456
|
txId: 0,
|
|
426
457
|
stop: () => {}
|
|
427
458
|
};
|
|
428
459
|
return t.stop = Y(e.activeLayer, (e, n) => {
|
|
429
|
-
|
|
460
|
+
g(t, e, n);
|
|
430
461
|
}), o.add(t), t;
|
|
431
462
|
}
|
|
432
|
-
function
|
|
433
|
-
e.stop(), o.delete(e),
|
|
463
|
+
function y(e) {
|
|
464
|
+
e.stop(), o.delete(e), f();
|
|
434
465
|
}
|
|
435
|
-
let
|
|
466
|
+
let b = _({
|
|
436
467
|
containerEl: n,
|
|
437
468
|
activeLayer: r,
|
|
438
469
|
axis: i
|
|
439
|
-
}),
|
|
440
|
-
let t =
|
|
470
|
+
}), x = { registerGroup(e) {
|
|
471
|
+
let t = _(e);
|
|
441
472
|
return {
|
|
442
|
-
currentLayer:
|
|
443
|
-
leavingLayer:
|
|
444
|
-
release: () =>
|
|
473
|
+
currentLayer: U(t.currentLayer),
|
|
474
|
+
leavingLayer: U(t.leavingLayer),
|
|
475
|
+
release: () => y(t)
|
|
445
476
|
};
|
|
446
477
|
} };
|
|
447
|
-
function
|
|
478
|
+
function S(e) {
|
|
448
479
|
let t = n.value;
|
|
449
480
|
if (!t || e.target !== t) return;
|
|
450
|
-
let r =
|
|
451
|
-
e.propertyName !== r && e.propertyName !==
|
|
481
|
+
let r = Oe(i.value);
|
|
482
|
+
e.propertyName !== r && e.propertyName !== De(i.value) || a && a.settled && (d(b), f());
|
|
452
483
|
}
|
|
453
|
-
return
|
|
484
|
+
return V(() => {
|
|
454
485
|
for (let e of o) e.stop();
|
|
455
486
|
o.clear(), c();
|
|
456
487
|
}), {
|
|
457
|
-
context:
|
|
458
|
-
outerCurrentLayer:
|
|
459
|
-
onOuterTransitionEnd:
|
|
488
|
+
context: x,
|
|
489
|
+
outerCurrentLayer: U(b.currentLayer),
|
|
490
|
+
onOuterTransitionEnd: S
|
|
460
491
|
};
|
|
461
492
|
}
|
|
462
493
|
//#endregion
|
|
463
494
|
//#region src/components/custom/dock/composables/useDockShellProps.ts
|
|
464
|
-
function
|
|
465
|
-
let t =
|
|
495
|
+
function We(e) {
|
|
496
|
+
let t = O(() => {
|
|
466
497
|
if (e.containerName) return {
|
|
467
498
|
"container-type": "inline-size",
|
|
468
499
|
"container-name": e.containerName
|
|
469
500
|
};
|
|
470
|
-
}), n =
|
|
501
|
+
}), n = O(() => e.collapseDelay ?? 2e3), r = O(() => e.layout ?? "linear"), i = O(() => e.shape ?? "pill"), a = O(() => e.orientation ?? "horizontal"), o = O(() => e.density ?? "comfortable"), s = O(() => e.overflow === "scroll" ? a.value === "vertical" ? "dock-scroll-y" : "dock-scroll-x" : null), c = O(() => e.alwaysExpanded || r.value === "grid");
|
|
471
502
|
return {
|
|
472
503
|
containerStyle: t,
|
|
473
504
|
collapseDelay: n,
|
|
474
|
-
startCollapsed:
|
|
505
|
+
startCollapsed: O(() => c.value ? !1 : e.startCollapsed ?? !0),
|
|
475
506
|
layoutValue: r,
|
|
476
507
|
shape: i,
|
|
477
508
|
orientation: a,
|
|
478
509
|
density: o,
|
|
479
510
|
scrollClass: s,
|
|
480
511
|
alwaysExpanded: c,
|
|
481
|
-
fitContent:
|
|
512
|
+
fitContent: O(() => e.fitContent ?? !1)
|
|
482
513
|
};
|
|
483
514
|
}
|
|
484
515
|
//#endregion
|
|
485
516
|
//#region src/components/custom/dock/composables/useDockMorphWindow.ts
|
|
486
|
-
function
|
|
517
|
+
function Ge(e) {
|
|
487
518
|
let t = e.trim();
|
|
488
519
|
return t ? t.endsWith("ms") ? Number.parseFloat(t) : t.endsWith("s") ? Number.parseFloat(t) * 1e3 : Number.parseFloat(t) || 0 : 0;
|
|
489
520
|
}
|
|
490
|
-
function
|
|
491
|
-
let t = getComputedStyle(e), n = t.transitionDuration.split(",").map(
|
|
521
|
+
function Ke(e) {
|
|
522
|
+
let t = getComputedStyle(e), n = t.transitionDuration.split(",").map(Ge), r = t.transitionDelay.split(",").map(Ge);
|
|
492
523
|
return Math.max(0, ...n.map((e, t) => e + (r[t] ?? r[0] ?? 0)));
|
|
493
524
|
}
|
|
494
|
-
function
|
|
495
|
-
let t =
|
|
525
|
+
function qe(e) {
|
|
526
|
+
let t = Ge(getComputedStyle(e).getPropertyValue("--duration-normal") || "0.3s");
|
|
496
527
|
return Math.max(t > 0 ? t * 2 : 0, 600);
|
|
497
528
|
}
|
|
498
|
-
function
|
|
529
|
+
function Je(e, t) {
|
|
499
530
|
let n = null, r = 0;
|
|
500
531
|
function i() {
|
|
501
532
|
n &&= (clearTimeout(n), null);
|
|
@@ -506,12 +537,12 @@ function je(e, t) {
|
|
|
506
537
|
let o = ++r;
|
|
507
538
|
i(), t.value = !0, n = setTimeout(() => {
|
|
508
539
|
o === r && (t.value = !1, n = null);
|
|
509
|
-
}, Math.max(
|
|
540
|
+
}, Math.max(Ke(a), qe(a)) + 50);
|
|
510
541
|
}
|
|
511
542
|
function o(n) {
|
|
512
|
-
n.target === e.value &&
|
|
543
|
+
n.target === e.value && p.has(n.propertyName) && (i(), r++, t.value = !1);
|
|
513
544
|
}
|
|
514
|
-
return
|
|
545
|
+
return ee(i), {
|
|
515
546
|
markTransitioning: a,
|
|
516
547
|
onDockTransitionDone: o,
|
|
517
548
|
clearTransitionTimer: i
|
|
@@ -519,7 +550,7 @@ function je(e, t) {
|
|
|
519
550
|
}
|
|
520
551
|
//#endregion
|
|
521
552
|
//#region src/components/custom/dock/composables/useDockClickIntegrity.ts
|
|
522
|
-
function
|
|
553
|
+
function Ye(e) {
|
|
523
554
|
let { rootEl: t, visualExpanded: n } = e, r = null, i = !1, a = 0, o = null;
|
|
524
555
|
function s() {
|
|
525
556
|
o !== null && (clearTimeout(o), o = null);
|
|
@@ -563,7 +594,7 @@ function Me(e) {
|
|
|
563
594
|
e.stopPropagation(), e.preventDefault(), r = null;
|
|
564
595
|
}
|
|
565
596
|
}
|
|
566
|
-
return
|
|
597
|
+
return ee(s), {
|
|
567
598
|
onPointerDownCapture: f,
|
|
568
599
|
onClickCapture: m,
|
|
569
600
|
markExpandFlip: c
|
|
@@ -571,14 +602,18 @@ function Me(e) {
|
|
|
571
602
|
}
|
|
572
603
|
//#endregion
|
|
573
604
|
//#region src/components/custom/dock/GlassDock.vue?vue&type=script&setup=true&lang.ts
|
|
574
|
-
var
|
|
605
|
+
var Xe = ["data-has-rail"], Ze = [
|
|
575
606
|
"data-density",
|
|
576
607
|
"data-held",
|
|
608
|
+
"data-search",
|
|
577
609
|
"data-container-name"
|
|
578
|
-
],
|
|
610
|
+
], Qe = {
|
|
579
611
|
key: 0,
|
|
580
612
|
class: "dock-persistent"
|
|
581
|
-
},
|
|
613
|
+
}, $e = ["inert"], et = ["inert"], tt = {
|
|
614
|
+
key: 0,
|
|
615
|
+
class: "dock-search-field"
|
|
616
|
+
}, nt = /* @__PURE__ */ P({
|
|
582
617
|
inheritAttrs: !1,
|
|
583
618
|
__name: "GlassDock",
|
|
584
619
|
props: {
|
|
@@ -598,139 +633,132 @@ var Ne = ["data-has-rail"], Pe = [
|
|
|
598
633
|
Function,
|
|
599
634
|
String,
|
|
600
635
|
null
|
|
601
|
-
] }
|
|
636
|
+
] },
|
|
637
|
+
search: { type: Boolean }
|
|
602
638
|
},
|
|
603
639
|
setup(e, { expose: t }) {
|
|
604
|
-
let n = e, { containerStyle: r, collapseDelay: i, startCollapsed:
|
|
605
|
-
n.autoLuminance !== !1 &&
|
|
606
|
-
let
|
|
640
|
+
let n = e, { containerStyle: r, collapseDelay: i, startCollapsed: a, layoutValue: o, shape: s, orientation: l, density: u, scrollClass: d, alwaysExpanded: f, fitContent: p } = We(n), m = o, g = J("dockEl"), _ = J("layersEl");
|
|
641
|
+
n.autoLuminance !== !1 && we(g, { backgroundCanvas: n.backgroundCanvas ?? null });
|
|
642
|
+
let v = W(!1), y = c(i.value), b = `glass-dock-${ae()}`, { expanded: x, isPinned: S, isHeld: C, onMouseEnter: w, onMouseLeave: T, onFocusIn: E, onFocusOut: D, onClickCollapsed: k, keepOpen: N, release: P, expand: F, collapse: L } = Ee({
|
|
607
643
|
collapseDelay: i.value,
|
|
608
|
-
rootEl:
|
|
609
|
-
alwaysExpanded:
|
|
610
|
-
isTransitioning:
|
|
611
|
-
dockId:
|
|
644
|
+
rootEl: g,
|
|
645
|
+
alwaysExpanded: f,
|
|
646
|
+
isTransitioning: v,
|
|
647
|
+
dockId: b
|
|
612
648
|
});
|
|
613
|
-
|
|
614
|
-
id:
|
|
615
|
-
orientation:
|
|
616
|
-
layout:
|
|
617
|
-
keepOpen:
|
|
618
|
-
release:
|
|
619
|
-
held:
|
|
649
|
+
h({
|
|
650
|
+
id: b,
|
|
651
|
+
orientation: l,
|
|
652
|
+
layout: m,
|
|
653
|
+
keepOpen: N,
|
|
654
|
+
release: P,
|
|
655
|
+
held: C
|
|
620
656
|
});
|
|
621
|
-
let
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
if (!t) {
|
|
627
|
-
e.style.removeProperty("--dock-rail-seam-offset");
|
|
628
|
-
return;
|
|
629
|
-
}
|
|
630
|
-
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), i = u.value === "vertical" ? r.top + r.height / 2 - n.top : r.left + r.width / 2 - n.left;
|
|
631
|
-
e.style.setProperty("--dock-rail-seam-offset", `${Math.round(i)}px`);
|
|
632
|
-
}
|
|
633
|
-
a(_, () => Z()), I(() => Z()), Y([u, q], () => Z(), { flush: "post" });
|
|
634
|
-
let { context: ne, onOuterTransitionEnd: re } = Ee({
|
|
635
|
-
rootEl: _,
|
|
636
|
-
outerEl: v,
|
|
637
|
-
outerActiveLayer: C(() => W.value ? "full" : "summary"),
|
|
638
|
-
outerAxis: C(() => u.value)
|
|
657
|
+
let z = O(() => f.value || x.value), ee = oe(), B = O(() => !!ee.rail), V = J("frameEl"), { context: U, onOuterTransitionEnd: ne } = Ue({
|
|
658
|
+
rootEl: g,
|
|
659
|
+
outerEl: _,
|
|
660
|
+
outerActiveLayer: O(() => z.value ? "full" : "summary"),
|
|
661
|
+
outerAxis: O(() => l.value)
|
|
639
662
|
});
|
|
640
|
-
|
|
641
|
-
let
|
|
642
|
-
rootEl:
|
|
643
|
-
visualExpanded:
|
|
663
|
+
Ve(U);
|
|
664
|
+
let re = O(() => ({ "view-transition-name": b.replace(/[^a-zA-Z0-9_-]/g, "-") })), { markTransitioning: ie, onDockTransitionDone: q } = Je(g, v), { onPointerDownCapture: X, onClickCapture: Z, markExpandFlip: se } = Ye({
|
|
665
|
+
rootEl: g,
|
|
666
|
+
visualExpanded: z
|
|
644
667
|
});
|
|
645
|
-
|
|
646
|
-
(n.alwaysExpanded || !
|
|
668
|
+
te(() => {
|
|
669
|
+
(n.alwaysExpanded || !a.value) && F();
|
|
647
670
|
});
|
|
648
|
-
function
|
|
649
|
-
return !
|
|
671
|
+
function ce() {
|
|
672
|
+
return !f.value;
|
|
650
673
|
}
|
|
651
|
-
function
|
|
652
|
-
if (!
|
|
653
|
-
let t =
|
|
654
|
-
!t || !n ||
|
|
674
|
+
function le(e) {
|
|
675
|
+
if (!ce() || z.value) return;
|
|
676
|
+
let t = g.value, n = e.touches[0];
|
|
677
|
+
!t || !n || y.handleTouchStart(t, n.clientY);
|
|
655
678
|
}
|
|
656
|
-
function
|
|
657
|
-
|
|
679
|
+
function ue(e) {
|
|
680
|
+
ce() && y.handleScrollCheck(e);
|
|
658
681
|
}
|
|
659
|
-
function
|
|
660
|
-
if (!
|
|
661
|
-
let e =
|
|
662
|
-
|
|
682
|
+
function de() {
|
|
683
|
+
if (!ce()) return;
|
|
684
|
+
let e = y.isActive.value;
|
|
685
|
+
y.handleTouchEnd(), !e && y.isActive.value && !z.value && F();
|
|
663
686
|
}
|
|
664
|
-
return Y(
|
|
665
|
-
!e &&
|
|
666
|
-
}), Y(
|
|
667
|
-
|
|
687
|
+
return Y(y.isActive, (e) => {
|
|
688
|
+
!e && x.value && !S.value && !f.value && L();
|
|
689
|
+
}), Y(z, (e) => {
|
|
690
|
+
ie(), e ? se() : y.deactivate();
|
|
668
691
|
}), t({
|
|
669
|
-
expanded:
|
|
670
|
-
isPinned:
|
|
671
|
-
isHeld:
|
|
672
|
-
isTransitioning:
|
|
673
|
-
expand:
|
|
674
|
-
collapse:
|
|
675
|
-
keepOpen:
|
|
676
|
-
release:
|
|
677
|
-
}), (t, n) => (
|
|
692
|
+
expanded: x,
|
|
693
|
+
isPinned: S,
|
|
694
|
+
isHeld: C,
|
|
695
|
+
isTransitioning: v,
|
|
696
|
+
expand: F,
|
|
697
|
+
collapse: L,
|
|
698
|
+
keepOpen: N,
|
|
699
|
+
release: P
|
|
700
|
+
}), (t, n) => (H(), j("div", {
|
|
678
701
|
ref_key: "frameEl",
|
|
679
|
-
ref:
|
|
680
|
-
class:
|
|
681
|
-
"data-has-rail":
|
|
682
|
-
}, [
|
|
702
|
+
ref: V,
|
|
703
|
+
class: R(["glass-dock-frame", K(l)]),
|
|
704
|
+
"data-has-rail": B.value || void 0
|
|
705
|
+
}, [M("div", I({
|
|
683
706
|
ref_key: "dockEl",
|
|
684
|
-
ref:
|
|
707
|
+
ref: g
|
|
685
708
|
}, t.$attrs, {
|
|
686
709
|
class: ["glass-dock", [
|
|
687
|
-
K(
|
|
688
|
-
`shape-${K(
|
|
689
|
-
`layout-${K(
|
|
690
|
-
K(
|
|
710
|
+
K(l),
|
|
711
|
+
`shape-${K(s)}`,
|
|
712
|
+
`layout-${K(m)}`,
|
|
713
|
+
K(d),
|
|
691
714
|
{
|
|
692
|
-
expanded:
|
|
693
|
-
collapsed: !
|
|
694
|
-
pinned: K(
|
|
695
|
-
"fit-content": K(
|
|
696
|
-
"always-expanded": K(
|
|
697
|
-
"dock-overflow-wrap": e.overflow === "wrap" && K(
|
|
715
|
+
expanded: z.value,
|
|
716
|
+
collapsed: !z.value,
|
|
717
|
+
pinned: K(S),
|
|
718
|
+
"fit-content": K(p),
|
|
719
|
+
"always-expanded": K(f),
|
|
720
|
+
"dock-overflow-wrap": e.overflow === "wrap" && K(l) !== "vertical"
|
|
698
721
|
},
|
|
699
722
|
e.position === "fixed" ? "fixed bottom-(--dock-pos) left-1/2 -translate-x-1/2" : e.position === "sticky" ? "dock-sticky" : "dock-inline"
|
|
700
723
|
]],
|
|
701
|
-
"data-density": K(
|
|
702
|
-
"data-held": K(
|
|
724
|
+
"data-density": K(u),
|
|
725
|
+
"data-held": K(C) || void 0,
|
|
726
|
+
"data-search": e.search || void 0,
|
|
703
727
|
"data-container-name": e.containerName || void 0,
|
|
704
|
-
style: [K(r),
|
|
705
|
-
onMouseenter: n[2] ||= (...e) => K(
|
|
706
|
-
onMouseleave: n[3] ||= (e) => K(
|
|
707
|
-
onFocusin: n[4] ||= (...e) => K(
|
|
708
|
-
onFocusout: n[5] ||= (...e) => K(
|
|
709
|
-
onTouchstart:
|
|
710
|
-
onTouchmove:
|
|
711
|
-
onTouchend:
|
|
712
|
-
onPointerdownCapture: n[6] ||= (...e) => K(
|
|
713
|
-
onClickCapture: n[7] ||= (...e) => K(
|
|
714
|
-
onTransitionend: n[8] ||= (...e) => K(
|
|
715
|
-
onTransitioncancel: n[9] ||= (...e) => K(
|
|
716
|
-
}), [t.$slots.persistent ? (
|
|
728
|
+
style: [K(r), re.value],
|
|
729
|
+
onMouseenter: n[2] ||= (...e) => K(w) && K(w)(...e),
|
|
730
|
+
onMouseleave: n[3] ||= (e) => K(T)(e),
|
|
731
|
+
onFocusin: n[4] ||= (...e) => K(E) && K(E)(...e),
|
|
732
|
+
onFocusout: n[5] ||= (...e) => K(D) && K(D)(...e),
|
|
733
|
+
onTouchstart: le,
|
|
734
|
+
onTouchmove: ue,
|
|
735
|
+
onTouchend: de,
|
|
736
|
+
onPointerdownCapture: n[6] ||= (...e) => K(X) && K(X)(...e),
|
|
737
|
+
onClickCapture: n[7] ||= (...e) => K(Z) && K(Z)(...e),
|
|
738
|
+
onTransitionend: n[8] ||= (...e) => K(q) && K(q)(...e),
|
|
739
|
+
onTransitioncancel: n[9] ||= (...e) => K(q) && K(q)(...e)
|
|
740
|
+
}), [t.$slots.persistent ? (H(), j("div", Qe, [G(t.$slots, "persistent")])) : A("", !0), M("div", {
|
|
717
741
|
ref_key: "layersEl",
|
|
718
|
-
ref:
|
|
742
|
+
ref: _,
|
|
719
743
|
class: "dock-layers",
|
|
720
|
-
onTransitionend: n[1] ||= (...e) => K(
|
|
721
|
-
}, [
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
744
|
+
onTransitionend: n[1] ||= (...e) => K(ne) && K(ne)(...e)
|
|
745
|
+
}, [
|
|
746
|
+
M("div", {
|
|
747
|
+
class: R(["dock-layer dock-layer--full", { "is-active": z.value }]),
|
|
748
|
+
inert: !z.value || void 0
|
|
749
|
+
}, [G(t.$slots, "default")], 10, $e),
|
|
750
|
+
M("div", {
|
|
751
|
+
class: R(["dock-layer dock-layer--summary", { "is-active": !z.value }]),
|
|
752
|
+
inert: z.value || void 0,
|
|
753
|
+
onClick: n[0] ||= (...e) => K(k) && K(k)(...e)
|
|
754
|
+
}, [G(t.$slots, "collapsed")], 10, et),
|
|
755
|
+
e.search ? (H(), j("div", tt, [G(t.$slots, "search")])) : A("", !0)
|
|
756
|
+
], 544)], 16, Ze), B.value ? (H(), j("div", {
|
|
729
757
|
key: 0,
|
|
730
|
-
class:
|
|
731
|
-
}, [
|
|
758
|
+
class: R(["dock-hairline-slot", K(l)])
|
|
759
|
+
}, [G(t.$slots, "rail")], 2)) : A("", !0)], 10, Xe));
|
|
732
760
|
}
|
|
733
|
-
}),
|
|
761
|
+
}), rt = /* @__PURE__ */ P({
|
|
734
762
|
__name: "Tabs",
|
|
735
763
|
props: {
|
|
736
764
|
defaultValue: {},
|
|
@@ -744,13 +772,13 @@ var Ne = ["data-has-rail"], Pe = [
|
|
|
744
772
|
},
|
|
745
773
|
emits: ["update:modelValue"],
|
|
746
774
|
setup(e, { emit: t }) {
|
|
747
|
-
let n =
|
|
748
|
-
return (e, t) => (
|
|
749
|
-
default: X(() => [
|
|
775
|
+
let n = ge(e, t);
|
|
776
|
+
return (e, t) => (H(), k(K(pe), I({ "data-slot": "tabs" }, K(n)), {
|
|
777
|
+
default: X(() => [G(e.$slots, "default")]),
|
|
750
778
|
_: 3
|
|
751
779
|
}, 16));
|
|
752
780
|
}
|
|
753
|
-
}),
|
|
781
|
+
}), it = /* @__PURE__ */ P({
|
|
754
782
|
__name: "TabsTrigger",
|
|
755
783
|
props: {
|
|
756
784
|
value: {},
|
|
@@ -766,16 +794,16 @@ var Ne = ["data-has-rail"], Pe = [
|
|
|
766
794
|
] }
|
|
767
795
|
},
|
|
768
796
|
setup(t) {
|
|
769
|
-
let n = t, r =
|
|
797
|
+
let n = t, r = he(O(() => {
|
|
770
798
|
let { class: e, ...t } = n;
|
|
771
799
|
return t;
|
|
772
800
|
}));
|
|
773
|
-
return (t, i) => (
|
|
774
|
-
default: X(() => [
|
|
801
|
+
return (t, i) => (H(), k(K(me), I({ "data-slot": "tabs-trigger" }, K(r), { class: K(e)("tap-squish focus-ring relative z-[1] inline-flex items-center justify-center whitespace-nowrap rounded-control p-1 px-3 text-sm font-medium transition-control disabled:pointer-events-none disabled:opacity-disabled data-[state=active]:text-[var(--active-tab-color,var(--foreground))] hover:text-foreground/70", n.class) }), {
|
|
802
|
+
default: X(() => [G(t.$slots, "default")]),
|
|
775
803
|
_: 3
|
|
776
804
|
}, 16, ["class"]));
|
|
777
805
|
}
|
|
778
|
-
}),
|
|
806
|
+
}), at = /* @__PURE__ */ P({
|
|
779
807
|
__name: "TabsIndicator",
|
|
780
808
|
props: {
|
|
781
809
|
asChild: { type: Boolean },
|
|
@@ -793,13 +821,13 @@ var Ne = ["data-has-rail"], Pe = [
|
|
|
793
821
|
}
|
|
794
822
|
},
|
|
795
823
|
setup(t) {
|
|
796
|
-
let n = t, r =
|
|
824
|
+
let n = t, r = O(() => {
|
|
797
825
|
let { class: e, surface: t, ...r } = n;
|
|
798
826
|
return r;
|
|
799
827
|
});
|
|
800
|
-
return (t, i) => (
|
|
828
|
+
return (t, i) => (H(), k(K(de), I({ "data-slot": "tabs-indicator" }, r.value, { class: K(e)("pointer-events-none absolute left-0 bottom-1 top-1 z-0 w-(--reka-tabs-indicator-size) translate-x-(--reka-tabs-indicator-position) rounded-pill transition-[width,translate] duration-normal ease-spring-snappy", n.surface && "bg-(--glass-bg-quiet) [backdrop-filter:var(--glass-blur-quiet)]", n.class) }), null, 16, ["class"]));
|
|
801
829
|
}
|
|
802
|
-
}),
|
|
830
|
+
}), ot = /* @__PURE__ */ P({
|
|
803
831
|
__name: "TabsList",
|
|
804
832
|
props: {
|
|
805
833
|
loop: { type: Boolean },
|
|
@@ -818,51 +846,76 @@ var Ne = ["data-has-rail"], Pe = [
|
|
|
818
846
|
}
|
|
819
847
|
},
|
|
820
848
|
setup(t) {
|
|
821
|
-
let n = t, r =
|
|
849
|
+
let n = t, r = O(() => {
|
|
822
850
|
let { class: e, indicator: t, ...r } = n;
|
|
823
851
|
return r;
|
|
824
852
|
});
|
|
825
|
-
return (i, a) => (
|
|
826
|
-
default: X(() => [t.indicator ? (
|
|
853
|
+
return (i, a) => (H(), k(K(fe), I({ "data-slot": "tabs-list" }, r.value, { class: K(e)("relative inline-flex h-(--control-h-md) items-center justify-center rounded-input p-1 text-muted-foreground", n.class) }), {
|
|
854
|
+
default: X(() => [t.indicator ? (H(), k(at, { key: 0 })) : A("", !0), G(i.$slots, "default")]),
|
|
827
855
|
_: 3
|
|
828
856
|
}, 16, ["class"]));
|
|
829
857
|
}
|
|
830
|
-
}),
|
|
831
|
-
function
|
|
832
|
-
|
|
858
|
+
}), st = u(f, "[glass-ui:dock] <DockLayer> must be used inside <DockLayerGroup>"), { KEY: ct } = st;
|
|
859
|
+
function lt(e) {
|
|
860
|
+
st.provide(e);
|
|
833
861
|
}
|
|
834
|
-
var
|
|
835
|
-
|
|
862
|
+
var ut = st.use;
|
|
863
|
+
st.useOptional;
|
|
836
864
|
//#endregion
|
|
837
865
|
//#region src/components/custom/dock/composables/useLayerTransition.ts
|
|
838
|
-
function
|
|
839
|
-
let { containerEl: t, activeLayer: n, axis: r } = e, i =
|
|
866
|
+
function dt(e) {
|
|
867
|
+
let { containerEl: t, activeLayer: n, axis: r } = e, i = O(() => r?.value === "vertical" ? "height" : "width"), a = O(() => i.value === "width" ? "inline-size" : "block-size"), o = (e) => e.getBoundingClientRect()[i.value], s = W(n.value), c = W(null), l = 0, u = W(!1), d = [];
|
|
840
868
|
function f() {
|
|
841
|
-
|
|
869
|
+
if (d.length === 0) return;
|
|
870
|
+
let e = d.splice(0, d.length);
|
|
871
|
+
for (let t of e) t();
|
|
842
872
|
}
|
|
843
|
-
|
|
873
|
+
let p = null, m = null;
|
|
874
|
+
function h() {
|
|
875
|
+
p &&= (p.dispose(), null), m = null;
|
|
876
|
+
}
|
|
877
|
+
function g(e) {
|
|
844
878
|
return e.closest(".glass-dock") ?? e;
|
|
845
879
|
}
|
|
846
|
-
function
|
|
880
|
+
function _(e) {
|
|
881
|
+
if (u.value) {
|
|
882
|
+
d.push(e);
|
|
883
|
+
return;
|
|
884
|
+
}
|
|
885
|
+
requestAnimationFrame(e);
|
|
886
|
+
}
|
|
887
|
+
function y(e) {
|
|
847
888
|
e.style.removeProperty("--dock-morph-from"), e.style.removeProperty("--dock-morph-to");
|
|
848
889
|
}
|
|
849
|
-
function
|
|
850
|
-
|
|
890
|
+
function b() {
|
|
891
|
+
return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
892
|
+
}
|
|
893
|
+
function x(e, t, n) {
|
|
894
|
+
if (n !== l) return;
|
|
895
|
+
let r = a.value;
|
|
896
|
+
y(e);
|
|
897
|
+
let s = e.style.getPropertyValue(r);
|
|
898
|
+
e.style.setProperty(r, "max-content");
|
|
899
|
+
let c = o(e);
|
|
900
|
+
s ? e.style.setProperty(r, s) : e.style.removeProperty(r), e.style.setProperty("--dock-morph-from", `${c}px`), e.style.setProperty("--dock-morph-to", `${c}px`), t.style.setProperty("--dock-morph-t", "1"), e.getBoundingClientRect()[i.value], S(e, t);
|
|
851
901
|
}
|
|
852
|
-
function
|
|
902
|
+
function S(e, t) {
|
|
903
|
+
y(e), t.style.removeProperty("--dock-morph-t"), t.removeAttribute("data-morphing"), c.value = null, h(), u.value = !1, f();
|
|
904
|
+
}
|
|
905
|
+
function C(e, t, n, r, i, a, o) {
|
|
853
906
|
if (Math.abs(i - r) < .5) {
|
|
854
|
-
|
|
907
|
+
S(e, t);
|
|
855
908
|
return;
|
|
856
909
|
}
|
|
857
|
-
e.style.setProperty("--dock-morph-from", `${r}px`), e.style.setProperty("--dock-morph-to", `${i}px`), t.style.setProperty("--dock-morph-t", "0"), t.setAttribute("data-morphing", ""), o || (
|
|
858
|
-
response:
|
|
859
|
-
dampingFraction:
|
|
910
|
+
e.style.setProperty("--dock-morph-from", `${r}px`), e.style.setProperty("--dock-morph-to", `${i}px`), t.style.setProperty("--dock-morph-t", "0"), t.setAttribute("data-morphing", ""), u.value = !0, o || (h(), p = new _e({
|
|
911
|
+
response: v.response,
|
|
912
|
+
dampingFraction: v.dampingFraction,
|
|
860
913
|
initial: 0,
|
|
861
914
|
respectReducedMotion: !0
|
|
862
|
-
}),
|
|
863
|
-
let s =
|
|
915
|
+
}), m = e);
|
|
916
|
+
let s = p;
|
|
864
917
|
s.reset(0, a), s.target = 1, s.play((r) => {
|
|
865
|
-
n === l && (t.style.setProperty("--dock-morph-t", `${r}`), s.settled &&
|
|
918
|
+
n === l && (t.style.setProperty("--dock-morph-t", `${r}`), s.settled && S(e, t));
|
|
866
919
|
});
|
|
867
920
|
}
|
|
868
921
|
Y(n, (e, n) => {
|
|
@@ -872,141 +925,216 @@ function qe(e) {
|
|
|
872
925
|
s.value = e, c.value = null;
|
|
873
926
|
return;
|
|
874
927
|
}
|
|
875
|
-
let i =
|
|
876
|
-
c.value = n, s.value = e, r.style.setProperty("--dock-morph-from", `${
|
|
877
|
-
|
|
928
|
+
let i = g(r), d = ++l, f = p !== null && m === r && !p.settled ? p : null, h = f ? f.velocity : 0, _ = o(r);
|
|
929
|
+
if (c.value = n, s.value = e, r.style.setProperty("--dock-morph-from", `${_}px`), r.style.setProperty("--dock-morph-to", `${_}px`), i.style.setProperty("--dock-morph-t", "0"), i.setAttribute("data-morphing", ""), u.value = !0, b()) {
|
|
930
|
+
L(() => x(r, i, d));
|
|
931
|
+
return;
|
|
932
|
+
}
|
|
933
|
+
requestAnimationFrame(() => {
|
|
934
|
+
if (d !== l) return;
|
|
878
935
|
let e = t.value;
|
|
879
936
|
if (!e) return;
|
|
880
|
-
let n =
|
|
881
|
-
|
|
937
|
+
let n = g(e);
|
|
938
|
+
y(e), n.style.removeProperty("--dock-morph-t"), e.style.setProperty(a.value, "max-content");
|
|
882
939
|
let r = o(e);
|
|
883
|
-
e.style.removeProperty(a.value),
|
|
940
|
+
e.style.removeProperty(a.value), C(e, n, d, _, r, h, f);
|
|
884
941
|
});
|
|
885
942
|
});
|
|
886
|
-
function
|
|
943
|
+
function w(e) {
|
|
887
944
|
let n = t.value;
|
|
888
|
-
n && e.target === n && (e.propertyName !== a.value && e.propertyName !== i.value ||
|
|
945
|
+
n && e.target === n && (e.propertyName !== a.value && e.propertyName !== i.value || p && p.settled && S(n, g(n)));
|
|
889
946
|
}
|
|
890
|
-
return
|
|
891
|
-
|
|
947
|
+
return V(() => {
|
|
948
|
+
h(), d.length = 0;
|
|
949
|
+
}), {
|
|
950
|
+
onTransitionEnd: w,
|
|
892
951
|
currentLayer: s,
|
|
893
|
-
leavingLayer: c
|
|
952
|
+
leavingLayer: c,
|
|
953
|
+
morphing: u,
|
|
954
|
+
deferReposition: _
|
|
894
955
|
};
|
|
895
956
|
}
|
|
896
957
|
//#endregion
|
|
897
958
|
//#region src/components/custom/dock/DockLayerGroup.vue?vue&type=script&setup=true&lang.ts
|
|
898
|
-
var
|
|
959
|
+
var ft = { key: 1 }, pt = { key: 2 }, mt = /* @__PURE__ */ P({
|
|
899
960
|
__name: "DockLayerGroup",
|
|
900
|
-
props: /* @__PURE__ */
|
|
961
|
+
props: /* @__PURE__ */ F({
|
|
901
962
|
orientation: {},
|
|
902
963
|
showRail: {
|
|
903
964
|
type: Boolean,
|
|
904
965
|
default: !0
|
|
905
966
|
},
|
|
906
|
-
railPosition: { default: "start" }
|
|
967
|
+
railPosition: { default: "start" },
|
|
968
|
+
draggable: {
|
|
969
|
+
type: Boolean,
|
|
970
|
+
default: !1
|
|
971
|
+
}
|
|
907
972
|
}, {
|
|
908
973
|
active: { required: !0 },
|
|
909
974
|
activeModifiers: {}
|
|
910
975
|
}),
|
|
911
976
|
emits: ["update:active"],
|
|
912
977
|
setup(e) {
|
|
913
|
-
let t = e, n = q(e, "active"), r =
|
|
914
|
-
function
|
|
915
|
-
i.value.find((t) => t.id === e.id) || i.value.push(e);
|
|
978
|
+
let t = e, n = q(e, "active"), r = m(), i = W([]), a = J("containerEl"), o = J("groupEl");
|
|
979
|
+
function c(e) {
|
|
980
|
+
i.value.find((t) => t.id === e.id) || i.value.push(e), d();
|
|
981
|
+
}
|
|
982
|
+
function l(e) {
|
|
983
|
+
i.value = i.value.filter((t) => t.id !== e), d();
|
|
984
|
+
}
|
|
985
|
+
let u = W(0);
|
|
986
|
+
function d() {
|
|
987
|
+
let e = a.value, t = o.value;
|
|
988
|
+
if (!e || !t) return;
|
|
989
|
+
let n = 0, r = e.querySelectorAll(".dock-layer-item-host");
|
|
990
|
+
for (let e of r) {
|
|
991
|
+
let t = e.scrollHeight;
|
|
992
|
+
t > n && (n = t);
|
|
993
|
+
}
|
|
994
|
+
n > u.value && (u.value = n);
|
|
916
995
|
}
|
|
917
|
-
|
|
918
|
-
|
|
996
|
+
let f = O(() => u.value > 0 ? {
|
|
997
|
+
"min-block-size": `${u.value}px`,
|
|
998
|
+
"--dock-layer-peak-block-size": `${u.value}px`
|
|
999
|
+
} : void 0);
|
|
1000
|
+
s(a, () => d()), Y(() => i.value.length, () => d());
|
|
1001
|
+
let p = O(() => t.orientation ?? r?.orientation.value ?? "horizontal"), h = O(() => p.value === "vertical" ? "horizontal" : "vertical"), g = J("railListEl"), _ = W(null);
|
|
1002
|
+
function v() {
|
|
1003
|
+
let e = g.value;
|
|
1004
|
+
_.value = e ? e.$el ?? e : null;
|
|
919
1005
|
}
|
|
920
|
-
let
|
|
921
|
-
|
|
922
|
-
let e =
|
|
1006
|
+
let y = O(() => h.value === "vertical" ? "y" : "x");
|
|
1007
|
+
function b() {
|
|
1008
|
+
let e = _.value;
|
|
1009
|
+
if (!e) return [];
|
|
1010
|
+
let t = Array.from(e.querySelectorAll(".dock-layer-tab"));
|
|
1011
|
+
return i.value.map((e, n) => {
|
|
1012
|
+
let r = t[n]?.getBoundingClientRect(), i = r ? y.value === "y" ? r.top + r.height / 2 : r.left + r.width / 2 : 0;
|
|
1013
|
+
return {
|
|
1014
|
+
value: e.id,
|
|
1015
|
+
center: i
|
|
1016
|
+
};
|
|
1017
|
+
});
|
|
1018
|
+
}
|
|
1019
|
+
let x = S({
|
|
1020
|
+
el: _,
|
|
1021
|
+
axis: () => y.value,
|
|
1022
|
+
snapTargets: b,
|
|
1023
|
+
onSnap: (e) => {
|
|
1024
|
+
t.draggable && n.value !== e && (n.value = e);
|
|
1025
|
+
}
|
|
1026
|
+
});
|
|
1027
|
+
Y(() => [
|
|
1028
|
+
i.value.length,
|
|
1029
|
+
h.value,
|
|
1030
|
+
t.draggable
|
|
1031
|
+
], () => {
|
|
1032
|
+
v(), t.draggable && L(() => x.refresh());
|
|
1033
|
+
}), te(() => {
|
|
1034
|
+
v(), t.draggable && L(() => x.refresh());
|
|
1035
|
+
});
|
|
1036
|
+
let C = He(), w, T, E;
|
|
1037
|
+
if (C) {
|
|
1038
|
+
let e = C.registerGroup({
|
|
923
1039
|
containerEl: a,
|
|
924
1040
|
activeLayer: n,
|
|
925
|
-
axis:
|
|
1041
|
+
axis: p
|
|
926
1042
|
});
|
|
927
|
-
|
|
1043
|
+
w = e.currentLayer, T = e.leavingLayer, E = () => {}, ee(() => e.release());
|
|
928
1044
|
} else {
|
|
929
|
-
let e =
|
|
1045
|
+
let e = dt({
|
|
930
1046
|
containerEl: a,
|
|
931
1047
|
activeLayer: n,
|
|
932
|
-
axis:
|
|
1048
|
+
axis: p,
|
|
933
1049
|
directionTypes: (e, t) => {
|
|
934
1050
|
let n = i.value.findIndex((t) => t.id === e);
|
|
935
1051
|
return [i.value.findIndex((e) => e.id === t) < n ? "layer-back" : "layer-forward"];
|
|
936
1052
|
}
|
|
937
1053
|
});
|
|
938
|
-
|
|
1054
|
+
w = U(e.currentLayer), T = U(e.leavingLayer), E = e.onTransitionEnd;
|
|
939
1055
|
}
|
|
940
|
-
let
|
|
941
|
-
"view-transition-name": `gl-dock-stack-${
|
|
1056
|
+
let P = typeof document < "u" && "startViewTransition" in document, F = ae(), I = O(() => P ? {
|
|
1057
|
+
"view-transition-name": `gl-dock-stack-${F.replace(/[^a-zA-Z0-9_-]/g, "-")}`,
|
|
942
1058
|
"view-transition-class": "gl-dock-layer"
|
|
943
1059
|
} : void 0);
|
|
944
|
-
|
|
945
|
-
register:
|
|
946
|
-
unregister:
|
|
947
|
-
currentLayerId:
|
|
948
|
-
leavingLayerId:
|
|
1060
|
+
lt({
|
|
1061
|
+
register: c,
|
|
1062
|
+
unregister: l,
|
|
1063
|
+
currentLayerId: w,
|
|
1064
|
+
leavingLayerId: T
|
|
949
1065
|
});
|
|
950
|
-
function
|
|
1066
|
+
function B(e) {
|
|
951
1067
|
return typeof e == "object" && !!e || typeof e == "function";
|
|
952
1068
|
}
|
|
953
|
-
let
|
|
954
|
-
function
|
|
955
|
-
|
|
1069
|
+
let V = W(!1);
|
|
1070
|
+
function oe() {
|
|
1071
|
+
V.value || (V.value = !0, r?.keepOpen());
|
|
956
1072
|
}
|
|
957
|
-
function
|
|
1073
|
+
function Z(e) {
|
|
958
1074
|
let t = e.relatedTarget, n = e.currentTarget;
|
|
959
|
-
t && n?.contains(t) ||
|
|
1075
|
+
t && n?.contains(t) || V.value && (V.value = !1, r?.release());
|
|
960
1076
|
}
|
|
961
|
-
return (
|
|
1077
|
+
return (r, s) => (H(), j("div", {
|
|
1078
|
+
ref_key: "groupEl",
|
|
1079
|
+
ref: o,
|
|
1080
|
+
class: R(["dock-layer-group", [p.value, `rail-${e.railPosition}`]]),
|
|
1081
|
+
style: z(f.value)
|
|
1082
|
+
}, [e.showRail && i.value.length > 1 ? (H(), k(K(rt), {
|
|
962
1083
|
key: 0,
|
|
963
1084
|
modelValue: n.value,
|
|
964
|
-
"onUpdate:modelValue":
|
|
965
|
-
orientation:
|
|
1085
|
+
"onUpdate:modelValue": s[0] ||= (e) => n.value = e,
|
|
1086
|
+
orientation: h.value,
|
|
966
1087
|
"as-child": !0
|
|
967
1088
|
}, {
|
|
968
|
-
default: X(() => [
|
|
969
|
-
|
|
1089
|
+
default: X(() => [N(K(ot), {
|
|
1090
|
+
ref_key: "railListEl",
|
|
1091
|
+
ref: g,
|
|
1092
|
+
class: R(["dock-layer-rail", [
|
|
1093
|
+
e.railPosition,
|
|
1094
|
+
t.draggable && "glass-drag-grabbable",
|
|
1095
|
+
t.draggable && K(x).dragging.value && "glass-drag-lift"
|
|
1096
|
+
]]),
|
|
1097
|
+
style: z(t.draggable ? K(x).dragStyle.value : void 0),
|
|
970
1098
|
indicator: !1,
|
|
971
|
-
onFocusin:
|
|
972
|
-
onFocusout:
|
|
1099
|
+
onFocusin: oe,
|
|
1100
|
+
onFocusout: Z
|
|
973
1101
|
}, {
|
|
974
|
-
default: X(() => [(
|
|
1102
|
+
default: X(() => [(H(!0), j(D, null, ne(i.value, (e) => (H(), k(K(it), {
|
|
975
1103
|
key: e.id,
|
|
976
1104
|
value: e.id,
|
|
977
1105
|
class: "dock-layer-tab",
|
|
978
1106
|
title: e.label,
|
|
979
1107
|
"aria-label": e.label ?? e.id
|
|
980
1108
|
}, {
|
|
981
|
-
default: X(() => [
|
|
1109
|
+
default: X(() => [B(e.icon) ? (H(), k(re(e.icon), {
|
|
982
1110
|
key: 0,
|
|
983
1111
|
class: "size-4"
|
|
984
|
-
})) : typeof e.icon == "string" ? (
|
|
1112
|
+
})) : typeof e.icon == "string" ? (H(), j("span", ft, ie(e.icon), 1)) : (H(), j("span", pt, ie((e.label ?? e.id).charAt(0)), 1))]),
|
|
985
1113
|
_: 2
|
|
986
1114
|
}, 1032, [
|
|
987
1115
|
"value",
|
|
988
1116
|
"title",
|
|
989
1117
|
"aria-label"
|
|
990
|
-
]))), 128)),
|
|
1118
|
+
]))), 128)), N(K(at), {
|
|
991
1119
|
class: "dock-layer-tab-indicator",
|
|
992
1120
|
surface: !1
|
|
993
1121
|
})]),
|
|
994
1122
|
_: 1
|
|
995
|
-
}, 8, ["class"])]),
|
|
1123
|
+
}, 8, ["class", "style"])]),
|
|
996
1124
|
_: 1
|
|
997
|
-
}, 8, ["modelValue", "orientation"])) :
|
|
1125
|
+
}, 8, ["modelValue", "orientation"])) : A("", !0), M("div", {
|
|
998
1126
|
ref_key: "containerEl",
|
|
999
1127
|
ref: a,
|
|
1000
1128
|
class: "dock-layer-stack",
|
|
1001
|
-
style:
|
|
1002
|
-
onTransitionend:
|
|
1003
|
-
}, [
|
|
1129
|
+
style: z(I.value),
|
|
1130
|
+
onTransitionend: s[1] ||= (...e) => K(E) && K(E)(...e)
|
|
1131
|
+
}, [G(r.$slots, "default")], 36)], 6));
|
|
1004
1132
|
}
|
|
1005
|
-
}),
|
|
1133
|
+
}), ht = [
|
|
1006
1134
|
"inert",
|
|
1007
1135
|
"aria-hidden",
|
|
1008
1136
|
"tabindex"
|
|
1009
|
-
],
|
|
1137
|
+
], gt = /* @__PURE__ */ P({
|
|
1010
1138
|
__name: "DockLayer",
|
|
1011
1139
|
props: {
|
|
1012
1140
|
id: {},
|
|
@@ -1014,41 +1142,45 @@ var Je = { key: 1 }, Ye = { key: 2 }, Xe = /* @__PURE__ */ k({
|
|
|
1014
1142
|
icon: {}
|
|
1015
1143
|
},
|
|
1016
1144
|
setup(e) {
|
|
1017
|
-
let t = e, n =
|
|
1018
|
-
|
|
1145
|
+
let t = e, n = ut();
|
|
1146
|
+
te(() => {
|
|
1019
1147
|
n.register({
|
|
1020
1148
|
id: t.id,
|
|
1021
1149
|
label: t.label,
|
|
1022
1150
|
icon: t.icon
|
|
1023
1151
|
});
|
|
1024
|
-
}),
|
|
1152
|
+
}), ee(() => {
|
|
1025
1153
|
n.unregister(t.id);
|
|
1026
1154
|
});
|
|
1027
|
-
let r =
|
|
1155
|
+
let r = O(() => n.currentLayerId.value === t.id), i = O(() => n.leavingLayerId.value === t.id), a = J("hostEl");
|
|
1028
1156
|
return Y(r, async (e, t) => {
|
|
1029
1157
|
!e || t || typeof document < "u" && (() => {
|
|
1030
1158
|
let e = document.activeElement;
|
|
1031
1159
|
return !e || e === document.body ? !0 : !!e.closest("[inert]");
|
|
1032
|
-
})() && (await
|
|
1033
|
-
}), (e, t) => (
|
|
1160
|
+
})() && (await L(), a.value?.focus());
|
|
1161
|
+
}), (e, t) => (H(), j("div", {
|
|
1034
1162
|
ref_key: "hostEl",
|
|
1035
1163
|
ref: a,
|
|
1036
|
-
class:
|
|
1164
|
+
class: R(["dock-layer-item-host", {
|
|
1037
1165
|
"is-active": r.value,
|
|
1038
1166
|
"is-leaving": i.value
|
|
1039
1167
|
}]),
|
|
1040
1168
|
inert: r.value ? void 0 : !0,
|
|
1041
1169
|
"aria-hidden": r.value ? void 0 : !0,
|
|
1042
1170
|
tabindex: r.value ? -1 : void 0
|
|
1043
|
-
}, [
|
|
1171
|
+
}, [G(e.$slots, "default")], 10, ht));
|
|
1044
1172
|
}
|
|
1045
|
-
}),
|
|
1173
|
+
}), _t = /* @__PURE__ */ P({
|
|
1046
1174
|
__name: "DockIconButton",
|
|
1047
1175
|
props: {
|
|
1048
1176
|
compact: {
|
|
1049
1177
|
type: Boolean,
|
|
1050
1178
|
default: !1
|
|
1051
1179
|
},
|
|
1180
|
+
active: {
|
|
1181
|
+
type: Boolean,
|
|
1182
|
+
default: !1
|
|
1183
|
+
},
|
|
1052
1184
|
type: { default: "button" },
|
|
1053
1185
|
as: { default: "button" },
|
|
1054
1186
|
asChild: {
|
|
@@ -1064,26 +1196,26 @@ var Je = { key: 1 }, Ye = { key: 2 }, Xe = /* @__PURE__ */ k({
|
|
|
1064
1196
|
] }
|
|
1065
1197
|
},
|
|
1066
1198
|
setup(t) {
|
|
1067
|
-
let n = t, r =
|
|
1068
|
-
|
|
1199
|
+
let n = t, r = O(() => e("dock-icon-button glass-specular-track", { "dock-icon-button--compact": n.compact }, n.class)), i = O(() => n.active ? {
|
|
1200
|
+
"aria-pressed": "true",
|
|
1201
|
+
"data-active": ""
|
|
1202
|
+
} : {}), a = O(() => !n.asChild && n.as === "button" ? { type: n.type } : {});
|
|
1203
|
+
return (e, n) => Z((H(), k(K(ce), I({
|
|
1069
1204
|
as: t.as,
|
|
1070
1205
|
"as-child": t.asChild
|
|
1071
|
-
},
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
default: X(() => [U(e.$slots, "default")]),
|
|
1206
|
+
}, {
|
|
1207
|
+
...a.value,
|
|
1208
|
+
...i.value
|
|
1209
|
+
}, { class: r.value }), {
|
|
1210
|
+
default: X(() => [G(e.$slots, "default")]),
|
|
1077
1211
|
_: 3
|
|
1078
1212
|
}, 16, [
|
|
1079
1213
|
"as",
|
|
1080
1214
|
"as-child",
|
|
1081
|
-
"class"
|
|
1082
|
-
|
|
1083
|
-
"onPointermove"
|
|
1084
|
-
]));
|
|
1215
|
+
"class"
|
|
1216
|
+
])), [[K(o)]]);
|
|
1085
1217
|
}
|
|
1086
|
-
}),
|
|
1218
|
+
}), vt = /* @__PURE__ */ P({
|
|
1087
1219
|
__name: "DockBackgroundToggle",
|
|
1088
1220
|
props: {
|
|
1089
1221
|
paused: {
|
|
@@ -1094,23 +1226,23 @@ var Je = { key: 1 }, Ye = { key: 2 }, Xe = /* @__PURE__ */ k({
|
|
|
1094
1226
|
playLabel: { default: "Resume background animation" }
|
|
1095
1227
|
},
|
|
1096
1228
|
emits: ["update:paused"],
|
|
1097
|
-
setup(e, { emit:
|
|
1098
|
-
let
|
|
1099
|
-
function
|
|
1100
|
-
|
|
1229
|
+
setup(e, { emit: n }) {
|
|
1230
|
+
let i = e, a = n, o = O(() => i.paused ? i.playLabel : i.pauseLabel);
|
|
1231
|
+
function s() {
|
|
1232
|
+
a("update:paused", !i.paused);
|
|
1101
1233
|
}
|
|
1102
|
-
return (
|
|
1234
|
+
return (n, i) => (H(), k(_t, {
|
|
1103
1235
|
type: "button",
|
|
1104
1236
|
"aria-pressed": e.paused,
|
|
1105
|
-
"aria-label":
|
|
1106
|
-
title:
|
|
1107
|
-
onClick:
|
|
1237
|
+
"aria-label": o.value,
|
|
1238
|
+
title: o.value,
|
|
1239
|
+
onClick: s
|
|
1108
1240
|
}, {
|
|
1109
|
-
default: X(() => [e.paused ? (
|
|
1241
|
+
default: X(() => [e.paused ? (H(), k(K(t), {
|
|
1110
1242
|
key: 0,
|
|
1111
1243
|
size: 18,
|
|
1112
1244
|
"aria-hidden": "true"
|
|
1113
|
-
})) : (
|
|
1245
|
+
})) : (H(), k(K(r), {
|
|
1114
1246
|
key: 1,
|
|
1115
1247
|
size: 18,
|
|
1116
1248
|
"aria-hidden": "true"
|
|
@@ -1122,7 +1254,7 @@ var Je = { key: 1 }, Ye = { key: 2 }, Xe = /* @__PURE__ */ k({
|
|
|
1122
1254
|
"title"
|
|
1123
1255
|
]));
|
|
1124
1256
|
}
|
|
1125
|
-
}),
|
|
1257
|
+
}), yt = /* @__PURE__ */ P({
|
|
1126
1258
|
__name: "DockTabButton",
|
|
1127
1259
|
props: {
|
|
1128
1260
|
as: { default: "button" },
|
|
@@ -1139,21 +1271,21 @@ var Je = { key: 1 }, Ye = { key: 2 }, Xe = /* @__PURE__ */ k({
|
|
|
1139
1271
|
] }
|
|
1140
1272
|
},
|
|
1141
1273
|
setup(t) {
|
|
1142
|
-
let n = t, r =
|
|
1143
|
-
return (e, n) => (
|
|
1274
|
+
let n = t, r = O(() => e("dock-tab-button", n.class));
|
|
1275
|
+
return (e, n) => Z((H(), k(K(ce), {
|
|
1144
1276
|
as: t.as,
|
|
1145
1277
|
"as-child": t.asChild,
|
|
1146
|
-
class:
|
|
1278
|
+
class: R(r.value)
|
|
1147
1279
|
}, {
|
|
1148
|
-
default: X(() => [
|
|
1280
|
+
default: X(() => [G(e.$slots, "default")]),
|
|
1149
1281
|
_: 3
|
|
1150
1282
|
}, 8, [
|
|
1151
1283
|
"as",
|
|
1152
1284
|
"as-child",
|
|
1153
1285
|
"class"
|
|
1154
|
-
]));
|
|
1286
|
+
])), [[K(o)]]);
|
|
1155
1287
|
}
|
|
1156
|
-
}),
|
|
1288
|
+
}), bt = /* @__PURE__ */ P({
|
|
1157
1289
|
__name: "DockSelectTrigger",
|
|
1158
1290
|
props: {
|
|
1159
1291
|
disabled: { type: Boolean },
|
|
@@ -1169,19 +1301,19 @@ var Je = { key: 1 }, Ye = { key: 2 }, Xe = /* @__PURE__ */ k({
|
|
|
1169
1301
|
] }
|
|
1170
1302
|
},
|
|
1171
1303
|
setup(t) {
|
|
1172
|
-
let
|
|
1173
|
-
let { class: e, ...t } =
|
|
1304
|
+
let n = t, r = he(O(() => {
|
|
1305
|
+
let { class: e, ...t } = n;
|
|
1174
1306
|
return t;
|
|
1175
1307
|
}));
|
|
1176
|
-
return (t, a) => (
|
|
1177
|
-
default: X(() => [
|
|
1178
|
-
default: X(() => [
|
|
1308
|
+
return (t, a) => Z((H(), k(K(ue), I(K(r), { class: K(e)("dock-select-trigger", n.class) }), {
|
|
1309
|
+
default: X(() => [G(t.$slots, "default"), N(K(le), { "as-child": "" }, {
|
|
1310
|
+
default: X(() => [G(t.$slots, "icon", {}, () => [N(K(i), { class: "dock-select-trigger__chevron" })])]),
|
|
1179
1311
|
_: 3
|
|
1180
1312
|
})]),
|
|
1181
1313
|
_: 3
|
|
1182
|
-
}, 16, ["class"]));
|
|
1314
|
+
}, 16, ["class"])), [[K(o)]]);
|
|
1183
1315
|
}
|
|
1184
|
-
}),
|
|
1316
|
+
}), xt = /* @__PURE__ */ P({
|
|
1185
1317
|
__name: "DockDropdownTrigger",
|
|
1186
1318
|
props: {
|
|
1187
1319
|
disabled: { type: Boolean },
|
|
@@ -1197,97 +1329,145 @@ var Je = { key: 1 }, Ye = { key: 2 }, Xe = /* @__PURE__ */ k({
|
|
|
1197
1329
|
] }
|
|
1198
1330
|
},
|
|
1199
1331
|
setup(t) {
|
|
1200
|
-
let n = t, r =
|
|
1332
|
+
let n = t, r = he(O(() => {
|
|
1201
1333
|
let { class: e, ...t } = n;
|
|
1202
1334
|
return t;
|
|
1203
1335
|
}));
|
|
1204
|
-
return (t, i) => (
|
|
1205
|
-
default: X(() => [
|
|
1336
|
+
return (t, i) => Z((H(), k(K(se), I(K(r), { class: K(e)("dock-dropdown-trigger", n.class) }), {
|
|
1337
|
+
default: X(() => [G(t.$slots, "default")]),
|
|
1206
1338
|
_: 3
|
|
1207
|
-
}, 16, ["class"]));
|
|
1339
|
+
}, 16, ["class"])), [[K(o)]]);
|
|
1208
1340
|
}
|
|
1209
|
-
}),
|
|
1341
|
+
}), St = [
|
|
1210
1342
|
"data-orientation",
|
|
1211
1343
|
"data-rail-anchor",
|
|
1212
1344
|
"aria-orientation"
|
|
1213
|
-
],
|
|
1345
|
+
], Ct = /* @__PURE__ */ P({
|
|
1214
1346
|
__name: "DockSeparator",
|
|
1215
1347
|
props: { anchor: {
|
|
1216
1348
|
type: Boolean,
|
|
1217
1349
|
default: !1
|
|
1218
1350
|
} },
|
|
1219
1351
|
setup(e) {
|
|
1220
|
-
let t =
|
|
1221
|
-
return (t, n) => (
|
|
1222
|
-
class:
|
|
1352
|
+
let t = m(), n = O(() => t?.orientation.value ?? "horizontal"), r = O(() => n.value), i = O(() => n.value === "vertical" ? "horizontal" : "vertical");
|
|
1353
|
+
return (t, n) => (H(), j("div", {
|
|
1354
|
+
class: R(["dock-separator", { "dock-separator--anchor": e.anchor }]),
|
|
1223
1355
|
role: "separator",
|
|
1224
1356
|
"data-orientation": r.value,
|
|
1225
1357
|
"data-rail-anchor": e.anchor || void 0,
|
|
1226
1358
|
"aria-orientation": i.value
|
|
1227
|
-
}, null, 10,
|
|
1359
|
+
}, null, 10, St));
|
|
1228
1360
|
}
|
|
1229
|
-
}),
|
|
1230
|
-
__name: "
|
|
1231
|
-
props: /* @__PURE__ */
|
|
1232
|
-
extent: { default: "beyond" },
|
|
1233
|
-
position: { default: "end" },
|
|
1361
|
+
}), wt = ["data-orientation"], Tt = /* @__PURE__ */ P({
|
|
1362
|
+
__name: "DockStack",
|
|
1363
|
+
props: /* @__PURE__ */ F({
|
|
1234
1364
|
items: {},
|
|
1235
|
-
|
|
1236
|
-
|
|
1365
|
+
core: {},
|
|
1366
|
+
coreLabel: { default: "Open stack" },
|
|
1367
|
+
visibleCount: { default: 3 },
|
|
1368
|
+
position: { default: "end" }
|
|
1237
1369
|
}, {
|
|
1238
|
-
|
|
1239
|
-
|
|
1370
|
+
selected: {},
|
|
1371
|
+
selectedModifiers: {},
|
|
1372
|
+
expanded: {
|
|
1373
|
+
type: Boolean,
|
|
1374
|
+
default: !1
|
|
1375
|
+
},
|
|
1376
|
+
expandedModifiers: {}
|
|
1240
1377
|
}),
|
|
1241
|
-
emits: /* @__PURE__ */
|
|
1378
|
+
emits: /* @__PURE__ */ F(["select"], ["update:selected", "update:expanded"]),
|
|
1242
1379
|
setup(e, { emit: t }) {
|
|
1243
|
-
let
|
|
1244
|
-
function
|
|
1245
|
-
|
|
1380
|
+
let r = e, i = t, a = q(e, "selected"), o = q(e, "expanded"), s = m(), c = O(() => s?.orientation.value ?? "vertical"), l = O(() => r.core ?? n), u = O(() => [...r.items]), d = O(() => u.value.length > r.visibleCount), f = O(() => Math.min(u.value.length, r.visibleCount)), p = null;
|
|
1381
|
+
function h() {
|
|
1382
|
+
p != null && (clearTimeout(p), p = null);
|
|
1383
|
+
}
|
|
1384
|
+
function g() {
|
|
1385
|
+
h(), p = setTimeout(() => {
|
|
1386
|
+
o.value = !0, p = null;
|
|
1387
|
+
}, 60);
|
|
1388
|
+
}
|
|
1389
|
+
function _() {
|
|
1390
|
+
h(), o.value = !1;
|
|
1391
|
+
}
|
|
1392
|
+
function v() {
|
|
1393
|
+
h(), o.value = !0;
|
|
1394
|
+
}
|
|
1395
|
+
function y(e) {
|
|
1396
|
+
let t = e.relatedTarget, n = e.currentTarget;
|
|
1397
|
+
n && t && n.contains(t) || (o.value = !1);
|
|
1246
1398
|
}
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1399
|
+
ee(h);
|
|
1400
|
+
function x(e) {
|
|
1401
|
+
a.value = e.id, e.onSelect?.(), i("select", e.id);
|
|
1402
|
+
}
|
|
1403
|
+
return (t, n) => (H(), j("div", {
|
|
1404
|
+
class: R(["dock-stack", [
|
|
1405
|
+
c.value,
|
|
1406
|
+
`at-${e.position}`,
|
|
1407
|
+
{ "is-expanded": o.value }
|
|
1252
1408
|
]]),
|
|
1253
|
-
"data-orientation":
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1409
|
+
"data-orientation": c.value,
|
|
1410
|
+
onPointerenter: g,
|
|
1411
|
+
onPointerleave: _,
|
|
1412
|
+
onFocusin: v,
|
|
1413
|
+
onFocusout: y
|
|
1414
|
+
}, [N(_t, {
|
|
1415
|
+
type: "button",
|
|
1416
|
+
class: "dock-stack-core",
|
|
1417
|
+
"aria-label": e.coreLabel,
|
|
1418
|
+
"aria-expanded": o.value,
|
|
1419
|
+
title: e.coreLabel
|
|
1420
|
+
}, {
|
|
1421
|
+
default: X(() => [(H(), k(re(l.value), {
|
|
1422
|
+
class: "size-4",
|
|
1423
|
+
"aria-hidden": "true"
|
|
1424
|
+
}))]),
|
|
1425
|
+
_: 1
|
|
1426
|
+
}, 8, [
|
|
1427
|
+
"aria-label",
|
|
1428
|
+
"aria-expanded",
|
|
1429
|
+
"title"
|
|
1430
|
+
]), N(b, {
|
|
1431
|
+
axis: c.value === "vertical" ? "x" : "y",
|
|
1432
|
+
class: "dock-stack-fan",
|
|
1433
|
+
style: z({ "--dock-stack-visible": f.value }),
|
|
1434
|
+
"data-scrolls": d.value || void 0
|
|
1259
1435
|
}, {
|
|
1260
|
-
default: X(() => [D(
|
|
1261
|
-
class: "dock-hairline-strip",
|
|
1262
|
-
role: "tablist",
|
|
1263
|
-
"aria-label": e.iconLabel
|
|
1264
|
-
}, [(z(!0), E(S, null, H(l.value, (e) => (z(), w($e, {
|
|
1436
|
+
default: X(() => [(H(!0), j(D, null, ne(u.value, (e, t) => (H(), k(_t, {
|
|
1265
1437
|
key: e.id,
|
|
1266
1438
|
type: "button",
|
|
1267
|
-
class:
|
|
1268
|
-
|
|
1269
|
-
"aria-selected": i.value === e.id,
|
|
1439
|
+
class: R(["dock-stack-member", { "is-active": a.value === e.id }]),
|
|
1440
|
+
style: z({ "--i": t }),
|
|
1270
1441
|
"aria-label": e.label,
|
|
1442
|
+
"aria-pressed": a.value === e.id,
|
|
1271
1443
|
title: e.label,
|
|
1272
|
-
onClick: (t) =>
|
|
1444
|
+
onClick: (t) => x(e)
|
|
1273
1445
|
}, {
|
|
1274
|
-
default: X(() => [(
|
|
1446
|
+
default: X(() => [(H(), k(re(e.icon ?? l.value), {
|
|
1447
|
+
class: "size-4",
|
|
1448
|
+
"aria-hidden": "true"
|
|
1449
|
+
}))]),
|
|
1275
1450
|
_: 2
|
|
1276
1451
|
}, 1032, [
|
|
1277
1452
|
"class",
|
|
1278
|
-
"
|
|
1453
|
+
"style",
|
|
1279
1454
|
"aria-label",
|
|
1455
|
+
"aria-pressed",
|
|
1280
1456
|
"title",
|
|
1281
1457
|
"onClick"
|
|
1282
|
-
]))), 128))]
|
|
1458
|
+
]))), 128))]),
|
|
1283
1459
|
_: 1
|
|
1284
|
-
}
|
|
1460
|
+
}, 8, [
|
|
1461
|
+
"axis",
|
|
1462
|
+
"style",
|
|
1463
|
+
"data-scrolls"
|
|
1464
|
+
])], 42, wt));
|
|
1285
1465
|
}
|
|
1286
|
-
}),
|
|
1466
|
+
}), Et = ["aria-label"], Dt = [
|
|
1287
1467
|
"data-kind",
|
|
1288
1468
|
"data-section-id",
|
|
1289
1469
|
"aria-label"
|
|
1290
|
-
],
|
|
1470
|
+
], Ot = /* @__PURE__ */ P({
|
|
1291
1471
|
__name: "DockSection",
|
|
1292
1472
|
props: {
|
|
1293
1473
|
sections: {},
|
|
@@ -1295,7 +1475,7 @@ var Je = { key: 1 }, Ye = { key: 2 }, Xe = /* @__PURE__ */ k({
|
|
|
1295
1475
|
ariaLabel: { default: "Dock sections" }
|
|
1296
1476
|
},
|
|
1297
1477
|
setup(e) {
|
|
1298
|
-
let t = e, n =
|
|
1478
|
+
let t = e, n = O(() => {
|
|
1299
1479
|
if (t.anchorId) return t.anchorId;
|
|
1300
1480
|
let e = t.sections.find((e) => e.kind === "nav");
|
|
1301
1481
|
return e ? e.id : t.sections.find((e) => e.kind !== "rail-core")?.id;
|
|
@@ -1309,106 +1489,177 @@ var Je = { key: 1 }, Ye = { key: 2 }, Xe = /* @__PURE__ */ k({
|
|
|
1309
1489
|
function a(e) {
|
|
1310
1490
|
return `dock-section-zone--${e === "rail-core" ? "core" : e}`;
|
|
1311
1491
|
}
|
|
1312
|
-
return (t, n) => (
|
|
1492
|
+
return (t, n) => (H(), j("div", {
|
|
1313
1493
|
class: "dock-section",
|
|
1314
1494
|
role: "group",
|
|
1315
1495
|
"aria-label": e.ariaLabel
|
|
1316
|
-
}, [(
|
|
1496
|
+
}, [(H(!0), j(D, null, ne(e.sections, (e, n) => (H(), j(D, { key: e.id }, [r(n) ? (H(), k(Ct, {
|
|
1317
1497
|
key: 0,
|
|
1318
1498
|
anchor: i(e)
|
|
1319
|
-
}, null, 8, ["anchor"])) :
|
|
1320
|
-
class:
|
|
1499
|
+
}, null, 8, ["anchor"])) : A("", !0), M("div", {
|
|
1500
|
+
class: R(["dock-section-zone", a(e.kind)]),
|
|
1321
1501
|
"data-kind": e.kind,
|
|
1322
1502
|
"data-section-id": e.id,
|
|
1323
1503
|
"aria-label": e.label || void 0
|
|
1324
|
-
}, [
|
|
1504
|
+
}, [G(t.$slots, e.id, {
|
|
1325
1505
|
section: e,
|
|
1326
1506
|
kind: e.kind
|
|
1327
|
-
})], 10,
|
|
1507
|
+
})], 10, Dt)], 64))), 128))], 8, Et));
|
|
1328
1508
|
}
|
|
1329
1509
|
});
|
|
1330
1510
|
//#endregion
|
|
1511
|
+
//#region src/components/custom/dock/composables/useDockSearch.ts
|
|
1512
|
+
function kt(e) {
|
|
1513
|
+
let { dockState: t } = e, n = e.debounceMs ?? 120, r = e.maxResults ?? 30, i = W([]), a = null, o = e.items ? e.items : () => i.value;
|
|
1514
|
+
function s(t) {
|
|
1515
|
+
let n = t.item.id;
|
|
1516
|
+
e.ensureTargetWindow?.(n), e.scrollTo?.(n), e.onResultSelect?.(t);
|
|
1517
|
+
}
|
|
1518
|
+
let c = E({
|
|
1519
|
+
items: o,
|
|
1520
|
+
debounceMs: n,
|
|
1521
|
+
maxResults: r,
|
|
1522
|
+
onSelect: s
|
|
1523
|
+
});
|
|
1524
|
+
if (e.onSearch) {
|
|
1525
|
+
let t = e.onSearch;
|
|
1526
|
+
Y(() => c.query.value, (e) => {
|
|
1527
|
+
if (a?.abort(), !e) {
|
|
1528
|
+
i.value = [];
|
|
1529
|
+
return;
|
|
1530
|
+
}
|
|
1531
|
+
let n = new AbortController();
|
|
1532
|
+
a = n, t(e, n.signal).then((e) => {
|
|
1533
|
+
n.signal.aborted || (i.value = e);
|
|
1534
|
+
}).catch((e) => {
|
|
1535
|
+
n.signal.aborted || e?.name !== "AbortError" && (i.value = []);
|
|
1536
|
+
});
|
|
1537
|
+
});
|
|
1538
|
+
}
|
|
1539
|
+
let l = O(() => {
|
|
1540
|
+
let e = c.query.value;
|
|
1541
|
+
if (!e) return "";
|
|
1542
|
+
let t = c.results.value[0];
|
|
1543
|
+
if (!t) return "";
|
|
1544
|
+
let n = t.item.label;
|
|
1545
|
+
return n.toLowerCase().startsWith(e.toLowerCase()) && n.length > e.length ? n.slice(e.length) : "";
|
|
1546
|
+
});
|
|
1547
|
+
function u() {
|
|
1548
|
+
let e = l.value;
|
|
1549
|
+
e && (c.query.value = c.query.value + e);
|
|
1550
|
+
}
|
|
1551
|
+
let d = W(!1);
|
|
1552
|
+
function f() {
|
|
1553
|
+
d.value || (d.value = !0, t.onClickCollapsed(), t.keepOpen(), c.open());
|
|
1554
|
+
}
|
|
1555
|
+
function p() {
|
|
1556
|
+
d.value && (d.value = !1, c.close(), t.release());
|
|
1557
|
+
}
|
|
1558
|
+
let m = null;
|
|
1559
|
+
return e.collapseOnScroll && e.scrollContainer && (m = T(e.scrollContainer, {
|
|
1560
|
+
collapseOnScroll: !0,
|
|
1561
|
+
chromeRef: e.chromeRef
|
|
1562
|
+
})), B(() => {
|
|
1563
|
+
a?.abort(), a = null;
|
|
1564
|
+
}), {
|
|
1565
|
+
fuzzy: c,
|
|
1566
|
+
autocompleteText: l,
|
|
1567
|
+
scrollChrome: m,
|
|
1568
|
+
armSearch: f,
|
|
1569
|
+
disarmSearch: p,
|
|
1570
|
+
acceptAutocomplete: u,
|
|
1571
|
+
isSearchArmed: d
|
|
1572
|
+
};
|
|
1573
|
+
}
|
|
1574
|
+
//#endregion
|
|
1331
1575
|
//#region src/components/custom/dock/composables/useDockOrientationMorph.ts
|
|
1332
|
-
function
|
|
1333
|
-
let { rootEl: t } = e, n =
|
|
1576
|
+
function At(e) {
|
|
1577
|
+
let { rootEl: t } = e, n = W("vertical"), r = W(0), i = W(!1), o = () => {
|
|
1578
|
+
let e = t.value;
|
|
1579
|
+
if (!e) return 1.08;
|
|
1580
|
+
let n = getComputedStyle(e).getPropertyValue("--dock-morph-max-stretch").trim(), r = n ? Number.parseFloat(n) : NaN;
|
|
1581
|
+
return Number.isFinite(r) && r >= 1 ? r : 1.08;
|
|
1582
|
+
}, s = a({
|
|
1334
1583
|
from: e.verticalSize,
|
|
1335
1584
|
to: 0,
|
|
1336
|
-
axis: "height"
|
|
1337
|
-
|
|
1585
|
+
axis: "height",
|
|
1586
|
+
maxStretch: o
|
|
1587
|
+
}), c = a({
|
|
1338
1588
|
from: 0,
|
|
1339
1589
|
to: e.horizontalSize,
|
|
1340
|
-
axis: "width"
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1590
|
+
axis: "width",
|
|
1591
|
+
maxStretch: o
|
|
1592
|
+
}), l = null;
|
|
1593
|
+
function u(e) {
|
|
1594
|
+
r.value = e, s.drive(e), c.drive(e);
|
|
1344
1595
|
let n = t.value;
|
|
1345
|
-
n && n.style.setProperty("--dock-morph-t", `${e}`);
|
|
1596
|
+
n && (n.style.setProperty("--dock-morph-t", `${e}`), n.style.setProperty("--stretch", `${Math.max(s.stretch.value, c.stretch.value)}`));
|
|
1346
1597
|
}
|
|
1347
|
-
function
|
|
1348
|
-
|
|
1598
|
+
function d() {
|
|
1599
|
+
l &&= (l.dispose(), null);
|
|
1349
1600
|
}
|
|
1350
|
-
function
|
|
1601
|
+
function f() {
|
|
1351
1602
|
return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
1352
1603
|
}
|
|
1353
|
-
function
|
|
1354
|
-
if (
|
|
1355
|
-
|
|
1604
|
+
function p(e) {
|
|
1605
|
+
if (f()) {
|
|
1606
|
+
g(e);
|
|
1356
1607
|
return;
|
|
1357
1608
|
}
|
|
1358
|
-
let n = t.value, a =
|
|
1359
|
-
if (!
|
|
1360
|
-
|
|
1361
|
-
response:
|
|
1362
|
-
dampingFraction:
|
|
1609
|
+
let n = t.value, a = l !== null && !l.settled ? l.velocity : 0;
|
|
1610
|
+
if (!l || l.settled) {
|
|
1611
|
+
d(), l = new _e({
|
|
1612
|
+
response: v.response,
|
|
1613
|
+
dampingFraction: v.dampingFraction,
|
|
1363
1614
|
initial: r.value,
|
|
1364
1615
|
respectReducedMotion: !0
|
|
1365
1616
|
});
|
|
1366
|
-
let o =
|
|
1617
|
+
let o = l;
|
|
1367
1618
|
o.reset(r.value, a), o.target = e, i.value = !0, n && n.setAttribute("data-morphing", ""), o.play((e) => {
|
|
1368
|
-
if (
|
|
1619
|
+
if (u(e), o.settled) {
|
|
1369
1620
|
i.value = !1;
|
|
1370
1621
|
let e = t.value;
|
|
1371
1622
|
e && e.removeAttribute("data-morphing");
|
|
1372
1623
|
}
|
|
1373
1624
|
});
|
|
1374
|
-
} else
|
|
1625
|
+
} else l.reset(r.value, a), l.target = e;
|
|
1375
1626
|
}
|
|
1376
|
-
function
|
|
1377
|
-
e === n.value && !i.value || (n.value = e,
|
|
1627
|
+
function m(e) {
|
|
1628
|
+
e === n.value && !i.value || (n.value = e, p(+(e === "horizontal")));
|
|
1378
1629
|
}
|
|
1379
|
-
function
|
|
1380
|
-
|
|
1630
|
+
function h() {
|
|
1631
|
+
m(n.value === "vertical" ? "horizontal" : "vertical");
|
|
1381
1632
|
}
|
|
1382
|
-
function
|
|
1633
|
+
function g(e) {
|
|
1383
1634
|
let r = e < 0 ? 0 : e > 1 ? 1 : e;
|
|
1384
|
-
|
|
1635
|
+
d(), i.value = !1, n.value = r >= .5 ? "horizontal" : "vertical", u(r), u(r);
|
|
1385
1636
|
let a = t.value;
|
|
1386
1637
|
a && a.removeAttribute("data-morphing");
|
|
1387
1638
|
}
|
|
1388
|
-
function
|
|
1639
|
+
function _(e) {
|
|
1389
1640
|
let t = Math.min(Math.max(e / .5, 0), 1);
|
|
1390
1641
|
return 1 - t * t * (3 - 2 * t);
|
|
1391
1642
|
}
|
|
1392
|
-
function
|
|
1643
|
+
function y(e) {
|
|
1393
1644
|
let t = Math.min(Math.max((e - .5) / .5, 0), 1);
|
|
1394
1645
|
return t * t * (3 - 2 * t);
|
|
1395
1646
|
}
|
|
1396
|
-
let
|
|
1647
|
+
let b = O(() => s.sizeStyle.value), x = O(() => c.sizeStyle.value), S = O(() => ({ opacity: String(_(r.value)) })), C = O(() => ({ opacity: String(y(r.value)) })), w = O(() => Math.max(s.stretch.value, c.stretch.value));
|
|
1397
1648
|
return Y(t, (e) => {
|
|
1398
1649
|
e && e.style.setProperty("--dock-morph-t", `${r.value}`);
|
|
1399
|
-
}, { immediate: !0 }),
|
|
1650
|
+
}, { immediate: !0 }), B(d), {
|
|
1400
1651
|
orientation: n,
|
|
1401
1652
|
t: r,
|
|
1402
1653
|
morphing: i,
|
|
1403
|
-
verticalStyle:
|
|
1404
|
-
horizontalStyle:
|
|
1405
|
-
verticalOpacity:
|
|
1406
|
-
horizontalOpacity:
|
|
1654
|
+
verticalStyle: b,
|
|
1655
|
+
horizontalStyle: x,
|
|
1656
|
+
verticalOpacity: S,
|
|
1657
|
+
horizontalOpacity: C,
|
|
1407
1658
|
stretch: w,
|
|
1408
|
-
morphTo:
|
|
1409
|
-
toggle:
|
|
1410
|
-
pin:
|
|
1659
|
+
morphTo: m,
|
|
1660
|
+
toggle: h,
|
|
1661
|
+
pin: g
|
|
1411
1662
|
};
|
|
1412
1663
|
}
|
|
1413
1664
|
//#endregion
|
|
1414
|
-
export {
|
|
1665
|
+
export { y as DOCK_CONTEXT_KEY, vt as DockBackgroundToggle, xt as DockDropdownTrigger, _t as DockIconButton, gt as DockLayer, mt as DockLayerGroup, Ot as DockSection, bt as DockSelectTrigger, Ct as DockSeparator, Tt as DockStack, yt as DockTabButton, nt as GlassDock, h as provideDockContext, _ as useDockContext, C as useDockCtaReceive, At as useDockOrientationMorph, kt as useDockSearch, dt as useLayerTransition, m as useOptionalDockContext };
|