@mkbabb/glass-ui 6.0.0 → 8.0.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 +40 -37
- package/dist/DialogContent-4hzLiaCQ.js +152 -0
- package/dist/DotRing-Blh4Mc3Q.js +27 -0
- package/dist/DropdownMenuTrigger-8UZsBtZ8.js +93 -0
- package/dist/Surface-i1tWC-Ga.js +48 -0
- package/dist/accent-tone-solve-Cw7WkRD9.js +14 -0
- package/dist/asElement-CRnm6A2v.js +9 -0
- package/dist/aurora.d.ts +1 -1
- package/dist/aurora.js +832 -767
- package/dist/axes.d.ts +1 -1
- package/dist/axes.js +16 -26
- package/dist/badge-owUOaaba.js +63 -0
- package/dist/badge.d.ts +1 -1
- package/dist/badge.js +2 -2
- package/dist/blob-config.d.ts +1 -1
- package/dist/blob-config.js +1 -1
- package/dist/blob.d.ts +1 -1
- package/dist/blob.js +442 -395
- package/dist/button-yvGPb0Bx.js +110 -0
- package/dist/button.d.ts +1 -1
- package/dist/button.js +2 -2
- package/dist/canvas.d.ts +1 -1
- package/dist/canvas.js +2 -2
- package/dist/card-3HFFpC7_.js +190 -0
- package/dist/card.d.ts +1 -1
- package/dist/card.js +2 -2
- package/dist/carousel.d.ts +1 -1
- package/dist/carousel.js +191 -239
- package/dist/checkbox-BnXuGgJ3.js +64 -0
- package/dist/checkbox.d.ts +1 -0
- package/dist/checkbox.js +2 -0
- package/dist/chip.d.ts +1 -1
- package/dist/chip.js +101 -53
- package/dist/{class-names-5jotTFzp.js → class-names-q-UGOkHH.js} +26 -5
- package/dist/collapsible-B7O6m-Ch.js +154 -0
- package/dist/collapsible.d.ts +1 -1
- package/dist/collapsible.js +1 -1
- package/dist/color.d.ts +1 -1
- package/dist/color.js +46 -50
- package/dist/{procedural-color.wgsl-B9mLK7v0.js → color.wgsl-B0N3mKMb.js} +200 -165
- package/dist/command-BuBnYpxF.js +340 -0
- package/dist/command.d.ts +1 -1
- package/dist/command.js +1 -1
- package/dist/component-styles.css +4 -0
- package/dist/components/_shared/axes.d.ts +13 -4
- package/dist/components/_shared/class-names.d.ts +10 -9
- package/dist/components/_shared/control.d.ts +11 -0
- package/dist/components/_shared/disclosure/disclosure-context.d.ts +7 -0
- package/dist/components/_shared/feedback/DotRing.vue.d.ts +3 -0
- package/dist/components/_shared/feedback/dot-ring.css +1 -0
- package/dist/components/_shared/feedback/feedback-tone.css +1 -0
- package/dist/components/_shared/field/control.d.ts +13 -0
- package/dist/components/_shared/focus.d.ts +11 -0
- package/dist/components/_shared/index.d.ts +2 -6
- package/dist/components/_shared/interaction.d.ts +23 -0
- package/dist/components/_shared/menu/menu.css +1 -0
- package/dist/components/_shared/menu/rowClass.d.ts +2 -0
- package/dist/components/_shared/overlay/content.d.ts +40 -0
- package/dist/components/_shared/overlay/index.d.ts +12 -0
- package/dist/components/{dock/composables → _shared/overlay}/isTeleportedTarget.d.ts +5 -0
- package/dist/components/_shared/overlay/participation.d.ts +66 -0
- package/dist/components/_shared/overlay/placement.d.ts +22 -0
- package/dist/components/_shared/primitive.d.ts +19 -0
- package/dist/components/_shared/selection.d.ts +46 -0
- package/dist/components/_shared/surface/resolve.d.ts +17 -0
- package/dist/components/_shared/useMotionAxis.d.ts +3 -8
- package/dist/components/accordion/Accordion.vue.d.ts +41 -16
- package/dist/components/accordion/AccordionContent.vue.d.ts +11 -9
- package/dist/components/accordion/AccordionItem.vue.d.ts +12 -9
- package/dist/components/accordion/AccordionTrigger.vue.d.ts +8 -11
- package/dist/components/accordion/index.d.ts +4 -4
- package/dist/components/alert/Alert.vue.d.ts +9 -5
- package/dist/components/alert/AlertDescription.vue.d.ts +2 -2
- package/dist/components/alert/AlertTitle.vue.d.ts +2 -2
- package/dist/components/alert/index.d.ts +17 -8
- package/dist/components/aurora/Aurora.vue.d.ts +41 -46
- package/dist/components/aurora/composables/atoms-fields.d.ts +13 -2
- package/dist/components/aurora/composables/atoms.d.ts +54 -52
- package/dist/components/aurora/composables/auroraFallbackGround.d.ts +14 -14
- package/dist/components/aurora/composables/auroraImageSource.d.ts +6 -7
- package/dist/components/aurora/composables/color.d.ts +18 -24
- package/dist/components/aurora/composables/frameLoop.d.ts +17 -14
- package/dist/components/aurora/composables/glSetup.d.ts +19 -7
- package/dist/components/aurora/composables/runtime.d.ts +58 -62
- package/dist/{composables/glass → components/aurora/composables}/textureUpload.d.ts +8 -23
- package/dist/components/aurora/composables/uniformBridge.d.ts +11 -33
- package/dist/components/aurora/composables/uniformBridgeWGPU.d.ts +23 -24
- package/dist/components/aurora/composables/uniformBridgeWGPUImage.d.ts +15 -15
- package/dist/components/aurora/composables/useAurora.d.ts +23 -34
- package/dist/components/aurora/composables/useCursorInteraction.d.ts +2 -2
- package/dist/components/aurora/composables/wgpuSetup.d.ts +14 -12
- package/dist/components/aurora/constants/budget.d.ts +5 -54
- package/dist/components/aurora/constants/presets.d.ts +49 -60
- package/dist/components/aurora/constants/renderMode.d.ts +21 -36
- package/dist/components/aurora/constants/shaders/aurora-image.frag.d.ts +0 -2
- package/dist/components/aurora/constants/shaders/aurora-image.wgsl.d.ts +1 -3
- package/dist/components/aurora/constants/shaders/aurora-mediums.wgsl.d.ts +1 -1
- package/dist/components/aurora/constants/shaders/aurora.wgsl.d.ts +1 -1
- package/dist/components/aurora/constants/shaders/brush.glsl.d.ts +1 -1
- package/dist/components/aurora/constants/shaders/composition.glsl.d.ts +1 -1
- package/dist/components/aurora/constants/shaders/flow.glsl.d.ts +1 -1
- package/dist/components/aurora/constants/shaders/metal-medium.glsl.d.ts +2 -2
- package/dist/components/aurora/constants/shaders/oil-modes.glsl.d.ts +1 -1
- package/dist/components/aurora/constants/shaders/vangogh-medium.glsl.d.ts +1 -1
- package/dist/components/aurora/index.d.ts +15 -13
- package/dist/components/avatar/Avatar.vue.d.ts +72 -11
- package/dist/components/avatar/AvatarFallback.vue.d.ts +1 -2
- package/dist/components/avatar/AvatarImage.vue.d.ts +7 -8
- package/dist/components/avatar/index.d.ts +3 -9
- package/dist/components/badge/Badge.vue.d.ts +3 -17
- package/dist/components/badge/index.d.ts +33 -9
- package/dist/components/blob/Blob.vue.d.ts +8 -15
- package/dist/components/blob/composables/blobSimulation.d.ts +80 -0
- package/dist/components/blob/composables/buildMetaballProgram.d.ts +1 -1
- package/dist/components/blob/composables/resolveBlobSurface.d.ts +6 -0
- package/dist/components/blob/composables/satelliteKinematics.d.ts +4 -4
- package/dist/components/blob/composables/uniformBridgeWGPU.d.ts +4 -4
- package/dist/components/blob/composables/uploadBlobUniforms.d.ts +7 -34
- package/dist/components/blob/composables/useBlobMood.d.ts +6 -6
- package/dist/components/blob/composables/useBlobPointer.d.ts +11 -15
- package/dist/components/blob/composables/useBlobSatellites.d.ts +1 -1
- package/dist/components/blob/composables/useMetaballRenderer.d.ts +32 -29
- package/dist/components/blob/composables/wgpuSetup.d.ts +10 -8
- package/dist/components/blob/config.d.ts +3 -3
- package/dist/components/blob/constants.d.ts +1 -3
- package/dist/components/blob/index.d.ts +8 -8
- package/dist/components/blob/presets.d.ts +3 -3
- package/dist/components/blob/shaders/metaball-palette.wgsl.d.ts +1 -1
- package/dist/components/blob/shaders/metaball-uniforms.glsl.d.ts +1 -1
- package/dist/components/blob/shaders/metaball.wgsl.d.ts +1 -1
- package/dist/components/blob/shaders/sdf-body.glsl.d.ts +1 -1
- package/dist/components/blob/shaders/watercolor-edges.glsl.d.ts +1 -1
- package/dist/components/blob/types.d.ts +28 -60
- package/dist/components/button/Button.vue.d.ts +32 -20
- package/dist/components/button/index.d.ts +1 -9
- package/dist/components/button/styles.css +1 -0
- package/dist/components/card/Card.vue.d.ts +24 -162
- package/dist/components/card/CardContent.vue.d.ts +2 -2
- package/dist/components/card/CardDescription.vue.d.ts +2 -2
- package/dist/components/card/CardFooter.vue.d.ts +2 -2
- package/dist/components/card/CardHeader.vue.d.ts +8 -40
- package/dist/components/card/CardTitle.vue.d.ts +6 -3
- package/dist/components/card/index.d.ts +6 -9
- package/dist/components/card/scroll.css +1 -0
- package/dist/components/card/styles.css +1 -1
- package/dist/components/carousel/Carousel.vue.d.ts +14 -19
- package/dist/components/carousel/CarouselContent.vue.d.ts +2 -12
- package/dist/components/carousel/CarouselItem.vue.d.ts +14 -3
- package/dist/components/carousel/CarouselPager.vue.d.ts +2 -2
- package/dist/components/carousel/index.d.ts +7 -8
- package/dist/components/carousel/projection.d.ts +23 -0
- package/dist/components/carousel/styles.css +1 -0
- package/dist/components/carousel/types.d.ts +47 -0
- package/dist/components/carousel/useCarousel.d.ts +4 -21
- package/dist/components/checkbox/Checkbox.vue.d.ts +17 -9
- package/dist/components/checkbox/index.d.ts +1 -1
- package/dist/components/chip/Chip.vue.d.ts +12 -7
- package/dist/components/chip/accent-tone.css +1 -0
- package/dist/components/chip/chipVariants.d.ts +20 -43
- package/dist/components/chip/index.d.ts +3 -3
- package/dist/components/chip/types.d.ts +46 -31
- package/dist/components/collapsible/Collapsible.vue.d.ts +22 -9
- package/dist/components/collapsible/CollapsibleContent.vue.d.ts +11 -5
- package/dist/components/collapsible/CollapsibleTrigger.vue.d.ts +12 -9
- package/dist/components/collapsible/index.d.ts +3 -3
- package/dist/components/command/Command.vue.d.ts +11 -23
- package/dist/components/command/CommandDialog.vue.d.ts +10 -11
- package/dist/components/command/CommandEmpty.vue.d.ts +2 -6
- package/dist/components/command/CommandGroup.vue.d.ts +2 -7
- package/dist/components/command/CommandInput.vue.d.ts +6 -7
- package/dist/components/command/CommandItem.vue.d.ts +7 -11
- package/dist/components/command/CommandList.vue.d.ts +12 -19
- package/dist/components/command/CommandSeparator.vue.d.ts +2 -6
- package/dist/components/command/CommandShortcut.vue.d.ts +2 -2
- package/dist/components/command/index.d.ts +11 -10
- package/dist/components/command/types.d.ts +32 -0
- package/dist/components/configurator/Configurator.vue.d.ts +7 -7
- package/dist/components/configurator/ConfiguratorLayer.vue.d.ts +14 -18
- package/dist/components/configurator/ConfiguratorRow.vue.d.ts +15 -18
- package/dist/components/configurator/index.d.ts +6 -6
- package/dist/components/configurator/size.d.ts +5 -7
- package/dist/components/configurator/styles.css +1 -1
- package/dist/components/configurator/useConfiguratorState.d.ts +1 -1
- package/dist/components/constellation/Constellation.vue.d.ts +4 -6
- package/dist/components/constellation/composables/createConstellationField.d.ts +3 -3
- package/dist/components/constellation/composables/useConstellation.d.ts +2 -2
- package/dist/components/constellation/constants.d.ts +9 -9
- package/dist/components/constellation/constellationField.d.ts +8 -10
- package/dist/components/constellation/constellationInteraction.d.ts +9 -13
- package/dist/components/constellation/constellationRender.d.ts +1 -3
- package/dist/components/constellation/constellationTypes.d.ts +51 -63
- package/dist/components/constellation/constellationWell.d.ts +3 -3
- package/dist/components/constellation/index.d.ts +8 -6
- package/dist/components/dark-mode-toggle/DarkModeToggle.vue.d.ts +12 -0
- package/dist/components/dark-mode-toggle/dark-mode-toggle.css +1 -0
- package/dist/components/dark-mode-toggle/index.d.ts +2 -0
- package/dist/components/data-table/DataTable.vue.d.ts +11 -59
- package/dist/components/data-table/composables/useDataTableResponsive.d.ts +1 -1
- package/dist/components/data-table/composables/useDataTableRowIdentity.d.ts +5 -23
- package/dist/components/data-table/index.d.ts +2 -2
- package/dist/components/data-table/types.d.ts +10 -12
- package/dist/components/{card/CardAction.vue.d.ts → deck/DeckSlide.vue.d.ts} +12 -8
- package/dist/components/deck/DeckStage.vue.d.ts +36 -0
- package/dist/components/deck/composables/useDeck.d.ts +35 -10
- package/dist/components/deck/composables/useDeckCapture.d.ts +26 -0
- package/dist/components/deck/composables/useDeckHashSync.d.ts +8 -0
- package/dist/components/deck/composables/useDeckKeyboard.d.ts +16 -8
- package/dist/components/deck/composables/useDeckSnap.d.ts +20 -0
- package/dist/components/deck/composables/useDeckSwipe.d.ts +13 -0
- package/dist/components/deck/composables/useEdgeZones.d.ts +14 -0
- package/dist/components/deck/constants.d.ts +0 -3
- package/dist/components/deck/index.d.ts +22 -7
- package/dist/components/deck/slideContext.d.ts +21 -0
- package/dist/components/deck/styles/capture.css +1 -0
- package/dist/components/deck/styles/index.css +1 -0
- package/dist/components/deck/styles/reveal.css +1 -0
- package/dist/components/deck/styles/stage.css +1 -0
- package/dist/components/deck/styles/turn.css +1 -0
- package/dist/components/deck/types.d.ts +26 -0
- package/dist/components/deck/window.d.ts +27 -0
- package/dist/components/dialog/Dialog.vue.d.ts +21 -3
- package/dist/components/dialog/DialogContent.vue.d.ts +32 -99
- package/dist/components/dialog/DialogDescription.vue.d.ts +5 -6
- package/dist/components/dialog/DialogFooter.vue.d.ts +2 -2
- package/dist/components/dialog/DialogHeader.vue.d.ts +2 -2
- package/dist/components/dialog/DialogTitle.vue.d.ts +5 -6
- package/dist/components/dialog/ModalOverlay.vue.d.ts +66 -0
- package/dist/components/dialog/index.d.ts +7 -8
- package/dist/components/dialog/styles.css +1 -0
- package/dist/components/dock/DockControl.vue.d.ts +15 -14
- package/dist/components/dock/DockCrossfade.vue.d.ts +6 -10
- package/dist/components/dock/DockLayer.vue.d.ts +3 -4
- package/dist/components/dock/DockLayerGroup.vue.d.ts +18 -18
- package/dist/components/dock/DockSeparator.vue.d.ts +25 -20
- package/dist/components/dock/GlassDock.vue.d.ts +4 -4
- package/dist/components/dock/composables/dockContext.d.ts +33 -19
- package/dist/components/dock/composables/dockCrossfadeContext.d.ts +10 -11
- package/dist/components/dock/composables/dockMorphMeasure.d.ts +7 -87
- package/dist/components/dock/composables/dockSwitcherContext.d.ts +29 -0
- package/dist/components/dock/composables/index.d.ts +10 -10
- package/dist/components/dock/composables/useDockClickIntegrity.d.ts +1 -1
- package/dist/components/dock/composables/useDockHold.d.ts +24 -10
- package/dist/components/dock/composables/useDockMorph.d.ts +26 -0
- package/dist/components/dock/composables/useDockOverflowFit.d.ts +4 -6
- package/dist/components/dock/composables/useDockSearch.d.ts +12 -12
- package/dist/components/dock/composables/useDockShellProps.d.ts +44 -65
- package/dist/components/dock/composables/useDockSpring.d.ts +7 -11
- package/dist/components/dock/composables/useDockState.d.ts +28 -6
- package/dist/components/dock/composables/useDockTouchGate.d.ts +14 -23
- package/dist/components/dock/constants.d.ts +21 -80
- package/dist/components/dock/index.d.ts +15 -20
- package/dist/components/dock/styles/adaptive-legibility.css +1 -1
- package/dist/components/dock/styles/controls/icon-button.css +1 -1
- package/dist/components/dock/styles/controls/tab-button.css +1 -1
- package/dist/components/dock/styles/controls/touch-floor.css +1 -1
- package/dist/components/dock/styles/controls/triggers.css +1 -1
- package/dist/components/dock/styles/controls.css +1 -1
- package/dist/components/dock/styles/crossfade.css +1 -1
- package/dist/components/dock/styles/cta-seat.css +1 -1
- package/dist/components/dock/styles/density.css +1 -1
- package/dist/components/dock/styles/dock.css +1 -1
- package/dist/components/dock/styles/index.css +1 -1
- package/dist/components/dock/styles/layer-group.css +1 -1
- package/dist/components/dock/styles/layers.css +1 -1
- package/dist/components/dock/styles/morph.css +1 -1
- package/dist/components/dock/styles/overflow.css +1 -1
- package/dist/components/dock/styles/search.css +1 -1
- package/dist/components/dock/styles/shape.css +1 -1
- package/dist/components/dock/styles/shell-regions.css +1 -1
- package/dist/components/dock/styles/shell.css +1 -1
- package/dist/components/easing/EasingCurve.vue.d.ts +51 -0
- package/dist/components/easing/EasingPicker.vue.d.ts +16 -32
- package/dist/components/easing/constants.d.ts +16 -14
- package/dist/components/easing/index.d.ts +5 -3
- package/dist/components/easing/{composables/useEasingPicker.d.ts → usePicker.d.ts} +31 -30
- package/dist/components/expandable-container/ExpandableContainer.vue.d.ts +1 -25
- package/dist/components/expandable-container/index.d.ts +1 -1
- package/dist/components/fading-scroll/FadingScroll.vue.d.ts +4 -0
- package/dist/components/fading-scroll/composables/useFadingScroll.d.ts +4 -0
- package/dist/components/fading-scroll/constants.d.ts +2 -10
- package/dist/components/fading-scroll/index.d.ts +2 -2
- package/dist/components/fourier-field/FourierField.vue.d.ts +9 -13
- package/dist/components/fourier-field/composables/fourierFieldGLSetup.d.ts +5 -5
- package/dist/components/fourier-field/composables/fourierFieldWGPUSetup.d.ts +5 -5
- package/dist/components/fourier-field/composables/uniformBridgeWGPU.d.ts +2 -4
- package/dist/components/fourier-field/composables/useFourierField.d.ts +8 -8
- package/dist/components/fourier-field/constants.d.ts +11 -11
- package/dist/components/fourier-field/index.d.ts +10 -12
- package/dist/components/fourier-field/shaders/fourier-field.glsl.d.ts +2 -2
- package/dist/components/fourier-field/shaders/fourier-field.render.wgsl.d.ts +1 -1
- package/dist/components/handmark/HandMark.vue.d.ts +6 -6
- package/dist/components/handmark/brush.d.ts +1 -1
- package/dist/components/handmark/composables/useHandMark.d.ts +8 -8
- package/dist/components/handmark/constants.d.ts +10 -10
- package/dist/components/handmark/geometry.d.ts +9 -12
- package/dist/components/handmark/index.d.ts +17 -16
- package/dist/components/handmark/ink.d.ts +1 -1
- package/dist/components/handmark/noise.d.ts +3 -3
- package/dist/components/handmark/texture.d.ts +2 -2
- package/dist/components/handmark/types.d.ts +3 -3
- package/dist/components/index.d.ts +30 -35
- package/dist/components/infinite-scroll/InfiniteScroll.vue.d.ts +3 -3
- package/dist/components/infinite-scroll/composables/index.d.ts +2 -2
- package/dist/components/infinite-scroll/composables/types.d.ts +1 -1
- package/dist/components/infinite-scroll/composables/useInfiniteScroll.d.ts +1 -1
- package/dist/components/infinite-scroll/index.d.ts +2 -2
- package/dist/components/input/Input.vue.d.ts +15 -35
- package/dist/components/input/index.d.ts +3 -1
- package/dist/components/input/types.d.ts +62 -0
- package/dist/components/label/Label.vue.d.ts +9 -14
- package/dist/components/label/index.d.ts +1 -1
- package/dist/components/labeled-field/LabeledField.vue.d.ts +10 -108
- package/dist/components/labeled-field/LabeledInput.vue.d.ts +3 -23
- package/dist/components/labeled-field/LabeledSlider.vue.d.ts +12 -18
- package/dist/components/labeled-field/LabeledSwitch.vue.d.ts +14 -17
- package/dist/components/labeled-field/index.d.ts +5 -5
- package/dist/components/labeled-field/types.d.ts +41 -0
- package/dist/components/menu/DropdownMenu.vue.d.ts +51 -0
- package/dist/components/menu/DropdownMenuCheckboxItem.vue.d.ts +33 -0
- package/dist/components/menu/DropdownMenuContent.vue.d.ts +42 -0
- package/dist/components/{dropdown-menu → menu}/DropdownMenuGroup.vue.d.ts +6 -4
- package/dist/components/menu/DropdownMenuItem.vue.d.ts +31 -0
- package/dist/components/menu/DropdownMenuLabel.vue.d.ts +19 -0
- package/dist/components/{dropdown-menu → menu}/DropdownMenuRadioGroup.vue.d.ts +13 -6
- package/dist/components/menu/DropdownMenuRadioItem.vue.d.ts +29 -0
- package/dist/components/menu/DropdownMenuSeparator.vue.d.ts +7 -0
- package/dist/components/menu/DropdownMenuShortcut.vue.d.ts +16 -0
- package/dist/components/{dropdown-menu → menu}/DropdownMenuSub.vue.d.ts +15 -7
- package/dist/components/menu/DropdownMenuSubContent.vue.d.ts +41 -0
- package/dist/components/menu/DropdownMenuSubTrigger.vue.d.ts +20 -0
- package/dist/components/menu/DropdownMenuTrigger.vue.d.ts +27 -0
- package/dist/components/menu/context.d.ts +7 -0
- package/dist/components/menu/index.d.ts +15 -0
- package/dist/components/metric/Metric.vue.d.ts +26 -0
- package/dist/components/metric/MetricRow.vue.d.ts +14 -0
- package/dist/components/metric/MetricStack.vue.d.ts +16 -0
- package/dist/components/metric/coalesce-metric.d.ts +31 -24
- package/dist/components/metric/index.d.ts +6 -0
- package/dist/components/metric/styles.css +1 -0
- package/dist/components/metric/types.d.ts +44 -0
- package/dist/components/music-staff/MusicStaff.vue.d.ts +22 -0
- package/dist/components/music-staff/glyphs.d.ts +74 -0
- package/dist/components/music-staff/index.d.ts +4 -0
- package/dist/components/music-staff/midiAdapter.d.ts +22 -0
- package/dist/components/music-staff/staffGeometry.d.ts +216 -0
- package/dist/components/music-staff/styles.css +1 -0
- package/dist/components/number-field/NumberField.vue.d.ts +27 -10
- package/dist/components/number-field/NumberFieldInput.vue.d.ts +1 -6
- package/dist/components/number-field/NumberFieldStep.vue.d.ts +31 -0
- package/dist/components/number-field/context.d.ts +10 -0
- package/dist/components/number-field/index.d.ts +3 -5
- package/dist/components/pager-dots/PagerDots.vue.d.ts +22 -10
- package/dist/components/pager-dots/index.d.ts +3 -4
- package/dist/components/pager-dots/worm.d.ts +42 -0
- package/dist/components/popover/Popover.vue.d.ts +45 -35
- package/dist/components/popover/PopoverContent.vue.d.ts +27 -30
- package/dist/components/popover/PopoverTrigger.vue.d.ts +12 -7
- package/dist/components/popover/index.d.ts +3 -3
- package/dist/components/popover/popoverContext.d.ts +13 -4
- package/dist/components/progress/Progress.vue.d.ts +6 -14
- package/dist/components/progress/index.d.ts +2 -1
- package/dist/components/progress/types.d.ts +29 -0
- package/dist/components/radio-group/RadioGroup.vue.d.ts +25 -15
- package/dist/components/radio-group/RadioGroupItem.vue.d.ts +10 -6
- package/dist/components/radio-group/index.d.ts +4 -2
- package/dist/components/scroll-progress-rim/ScrollProgressRim.vue.d.ts +2 -14
- package/dist/components/scroll-progress-rim/index.d.ts +2 -3
- package/dist/components/scroll-progress-rim/styles.css +1 -1
- package/dist/components/scroll-progress-rim/types.d.ts +20 -2
- package/dist/components/search/SearchBar.vue.d.ts +4 -4
- package/dist/components/search/composables/fuzzySearchIndex.d.ts +1 -1
- package/dist/components/search/composables/index.d.ts +5 -5
- package/dist/components/search/composables/useFuzzySearch.d.ts +1 -1
- package/dist/components/search/index.d.ts +8 -9
- package/dist/components/search/searchVariants.d.ts +15 -18
- package/dist/components/select/Select.vue.d.ts +25 -14
- package/dist/components/select/SelectContent.vue.d.ts +24 -32
- package/dist/components/select/SelectGroup.vue.d.ts +7 -11
- package/dist/components/select/SelectItem.vue.d.ts +24 -13
- package/dist/components/select/SelectLabel.vue.d.ts +7 -11
- package/dist/components/select/SelectScrollButton.vue.d.ts +18 -0
- package/dist/components/select/SelectSeparator.vue.d.ts +5 -6
- package/dist/components/select/SelectTrigger.vue.d.ts +8 -41
- package/dist/components/select/SelectValue.vue.d.ts +11 -7
- package/dist/components/select/index.d.ts +18 -8
- package/dist/components/separator/Separator.vue.d.ts +11 -6
- package/dist/components/separator/index.d.ts +1 -1
- package/dist/components/sheet/SheetContent.vue.d.ts +60 -0
- package/dist/components/sheet/detents/projection.d.ts +42 -0
- package/dist/components/sheet/detents/use.d.ts +27 -0
- package/dist/components/sheet/index.d.ts +4 -0
- package/dist/components/sheet/motion.d.ts +29 -0
- package/dist/components/sheet/styles.css +1 -0
- package/dist/components/skeleton/Skeleton.vue.d.ts +3 -31
- package/dist/components/skeleton/index.d.ts +1 -1
- package/dist/components/slider/Slider.vue.d.ts +10 -38
- package/dist/components/slider/index.d.ts +2 -46
- package/dist/components/slider/styles.css +1 -0
- package/dist/components/slider/types.d.ts +34 -0
- package/dist/components/sortable-list/SortableItem.vue.d.ts +1 -1
- package/dist/components/sortable-list/SortableList.vue.d.ts +2 -3
- package/dist/components/sortable-list/context.d.ts +1 -1
- package/dist/components/sortable-list/drag.d.ts +52 -0
- package/dist/components/sortable-list/ghost.d.ts +40 -0
- package/dist/components/sortable-list/index.d.ts +4 -4
- package/dist/components/sortable-list/motion.d.ts +75 -0
- package/dist/components/sortable-list/resolve.d.ts +56 -0
- package/dist/components/sortable-list/{composables/types.d.ts → types.d.ts} +14 -7
- package/dist/components/sortable-list/{composables/useSortable.d.ts → useSortable.d.ts} +2 -4
- package/dist/components/status-dot/StatusDot.vue.d.ts +14 -10
- package/dist/components/status-dot/index.d.ts +3 -1
- package/dist/components/status-dot/states.d.ts +4 -0
- package/dist/components/surface/Surface.vue.d.ts +33 -24
- package/dist/components/surface/index.d.ts +2 -2
- package/dist/components/switch/Switch.vue.d.ts +15 -11
- package/dist/components/switch/index.d.ts +2 -1
- package/dist/components/table/Table.vue.d.ts +1 -1
- package/dist/components/table/index.d.ts +8 -8
- package/dist/components/tabs/SegmentedTabs.vue.d.ts +28 -24
- package/dist/components/tabs/composables/useTabDragMorph.d.ts +7 -7
- package/dist/components/tabs/composables/useTabResponsive.d.ts +6 -7
- package/dist/components/tabs/composables/useTabRovingFocus.d.ts +31 -23
- package/dist/components/tabs/index.d.ts +2 -2
- package/dist/components/tabs/styles/drag.css +1 -1
- package/dist/components/tabs/styles/segmented.css +1 -1
- package/dist/components/textarea/Textarea.vue.d.ts +14 -54
- package/dist/components/textarea/index.d.ts +2 -1
- package/dist/components/textarea/types.d.ts +45 -0
- package/dist/components/timeline/Timeline.vue.d.ts +41 -0
- package/dist/components/timeline/geometry.d.ts +53 -79
- package/dist/components/timeline/index.d.ts +2 -2
- package/dist/components/timeline/types.d.ts +42 -42
- package/dist/components/toast/Toast.vue.d.ts +39 -81
- package/dist/components/toast/ToastAction.vue.d.ts +5 -5
- package/dist/components/toast/ToastClose.vue.d.ts +4 -5
- package/dist/components/toast/ToastDescription.vue.d.ts +4 -5
- package/dist/components/toast/ToastTitle.vue.d.ts +4 -5
- package/dist/components/toast/Toaster.vue.d.ts +1 -1
- package/dist/components/toast/index.d.ts +8 -9
- package/dist/components/toast/use-toast.d.ts +27 -163
- package/dist/components/toggle-group/ToggleGroup.vue.d.ts +25 -14
- package/dist/components/toggle-group/ToggleGroupItem.vue.d.ts +14 -12
- package/dist/components/toggle-group/context.d.ts +28 -0
- package/dist/components/toggle-group/index.d.ts +2 -2
- package/dist/components/tooltip/Tooltip.vue.d.ts +20 -7
- package/dist/components/tooltip/TooltipContent.vue.d.ts +16 -13
- package/dist/components/tooltip/TooltipProvider.vue.d.ts +12 -5
- package/dist/components/tooltip/TooltipTrigger.vue.d.ts +12 -5
- package/dist/components/tooltip/index.d.ts +4 -4
- package/dist/components/typewriter/TypewriterText.vue.d.ts +12 -32
- package/dist/components/typewriter/composables/useTypewriter.d.ts +2 -1
- package/dist/components/typewriter/index.d.ts +7 -7
- package/dist/components/typewriter/types.d.ts +1 -1
- package/dist/components/typewriter/utils/timing.d.ts +1 -3
- package/dist/components/typewriter/utils/typoStateMachine.d.ts +1 -1
- package/dist/composables/color/accent-tone-solve.d.ts +3 -6
- package/dist/composables/color/index.d.ts +36 -43
- package/dist/composables/color/useAccentTone.d.ts +0 -3
- package/dist/composables/color/value.d.ts +21 -0
- package/dist/composables/context/createContext.d.ts +2 -2
- package/dist/composables/context/index.d.ts +1 -1
- package/dist/composables/dark/index.d.ts +5 -5
- package/dist/composables/dark/useGlobalDark.d.ts +7 -6
- package/dist/composables/dom/index.d.ts +10 -10
- package/dist/composables/dom/useBreakpoint.d.ts +2 -2
- package/dist/composables/dom/useClipboard.d.ts +28 -52
- package/dist/composables/dom/useDocumentVisibility.d.ts +3 -1
- package/dist/composables/dom/useDragVelocity.d.ts +7 -0
- package/dist/composables/dom/useIdleReady.d.ts +5 -6
- package/dist/composables/dom/useTokenColor.d.ts +2 -2
- package/dist/composables/dom/useUserInvalidAria.d.ts +2 -3
- package/dist/composables/dom/useViewportReady.d.ts +4 -4
- package/dist/composables/glass/backdropLuminanceSample.d.ts +23 -24
- package/dist/composables/glass/backdropSampleMath.d.ts +10 -0
- package/dist/composables/glass/canvas2d/index.d.ts +3 -3
- package/dist/composables/glass/canvas2d/useCanvas2D.d.ts +8 -10
- package/dist/composables/glass/index.d.ts +5 -7
- package/dist/composables/glass/useGlassBackdropLuminance.d.ts +13 -22
- package/dist/composables/glass/useSpecularTracking.d.ts +13 -16
- package/dist/composables/glass/webgl/backingSize.d.ts +5 -8
- package/dist/composables/glass/webgl/compile.d.ts +1 -1
- package/dist/composables/glass/webgl/createCanvasLifecycle.d.ts +25 -34
- package/dist/composables/glass/webgl/useWebGLCanvas.d.ts +24 -39
- package/dist/composables/glass/webgl/visibility.d.ts +4 -5
- package/dist/composables/glass/webgpu/useGpuSubstrate.d.ts +20 -23
- package/dist/composables/glass/webgpu/useWebGPUCanvas.d.ts +4 -5
- package/dist/composables/glass/webgpu/webgpuCanvasTypes.d.ts +19 -19
- package/dist/composables/glass/webgpu/webgpuDevice.d.ts +8 -26
- package/dist/composables/keyboard/index.d.ts +1 -1
- package/dist/composables/motion/core/asElement.d.ts +2 -0
- package/dist/composables/motion/core/constants.d.ts +25 -0
- package/dist/composables/motion/core/index.d.ts +21 -24
- package/dist/composables/motion/{motionTempo.d.ts → core/motionTempo.d.ts} +0 -2
- package/dist/composables/motion/core/useReducedMotion.d.ts +5 -0
- package/dist/composables/motion/core/useViewTransition.d.ts +44 -0
- package/dist/composables/motion/dissolve/dissolveGrammar.d.ts +88 -0
- package/dist/composables/motion/engage/engageEnvelopes.d.ts +45 -0
- package/dist/composables/motion/engage/engageLadder.d.ts +86 -0
- package/dist/composables/motion/index.d.ts +14 -16
- package/dist/composables/motion/morph/eyeglass.d.ts +141 -0
- package/dist/composables/motion/{useDockCtaReceive.d.ts → morph/useDockCtaReceive.d.ts} +8 -9
- package/dist/composables/motion/{useDragMorph.d.ts → morph/useDragMorph.d.ts} +7 -7
- package/dist/composables/motion/morph/useElementMorph.d.ts +50 -0
- package/dist/composables/motion/morph/useLeadTrail.d.ts +71 -0
- package/dist/composables/motion/morph/useSelectionGroup.d.ts +123 -0
- package/dist/composables/motion/morph/useSelectionIndicator.d.ts +113 -0
- package/dist/composables/motion/{useAnimatedNumberMap.d.ts → number/useAnimatedNumberMap.d.ts} +1 -1
- package/dist/composables/motion/{pointerFieldMappings.d.ts → pointer/pointerFieldMappings.d.ts} +8 -11
- package/dist/composables/motion/{usePointerVelocityField.d.ts → pointer/usePointerVelocityField.d.ts} +1 -1
- package/dist/composables/motion/{useRoutePointer.d.ts → pointer/useRoutePointer.d.ts} +1 -1
- package/dist/composables/motion/{useLiquidReveal.d.ts → reveal/useLiquidReveal.d.ts} +11 -10
- package/dist/composables/motion/{useStagger.d.ts → reveal/useStagger.d.ts} +3 -3
- package/dist/composables/motion/route/routeGrammar.d.ts +60 -0
- package/dist/composables/motion/route/useRouteTransition.d.ts +45 -0
- package/dist/composables/motion/{useScrollChrome.d.ts → scroll/useScrollChrome.d.ts} +2 -2
- package/dist/composables/motion/{useScrollProgress.d.ts → scroll/useScrollProgress.d.ts} +9 -6
- package/dist/composables/motion/{useScrollScene.d.ts → scroll/useScrollScene.d.ts} +5 -4
- package/dist/composables/motion/spring/springPresets.d.ts +32 -0
- package/dist/composables/motion/{springProjection.d.ts → spring/springProjection.d.ts} +6 -4
- package/dist/composables/motion/{useLiquidFlex.d.ts → spring/useLiquidFlex.d.ts} +11 -12
- package/dist/composables/motion/{useLiquidPress.d.ts → spring/useLiquidPress.d.ts} +5 -5
- package/dist/composables/motion/{useSpring.d.ts → spring/useSpring.d.ts} +5 -2
- package/dist/composables/motion/{useSpringMount.d.ts → spring/useSpringMount.d.ts} +14 -4
- package/dist/composables/motion/{useSpringPress.d.ts → spring/useSpringPress.d.ts} +6 -6
- package/dist/composables/reactive/index.d.ts +2 -2
- package/dist/composables/sidebar/index.d.ts +10 -10
- package/dist/composables/sidebar/types.d.ts +3 -3
- package/dist/composables/sidebar/useClickDelegate.d.ts +1 -1
- package/dist/composables/sidebar/useLazyLoader.d.ts +1 -1
- package/dist/composables/sidebar/useScrollTo.d.ts +1 -1
- package/dist/composables/sidebar/useScrollTracker.d.ts +1 -1
- package/dist/composables/sidebar/useSidebarState.d.ts +1 -1
- package/dist/composables/sidebar/useTreeIndex.d.ts +1 -1
- package/dist/{configurator-CSENXXSy.js → configurator-BoeScnDL.js} +12 -12
- package/dist/configurator.d.ts +1 -1
- package/dist/configurator.js +1 -1
- package/dist/{constants-DRZmNIY-.js → constants-Dk96HZHu.js} +3 -3
- package/dist/constellation.d.ts +1 -1
- package/dist/constellation.js +198 -196
- package/dist/content-CWO-XL7o.js +18 -0
- package/dist/control-Da4XeT43.js +11 -0
- package/dist/control.css_vue_type_style_index_0_src_true_lang-BIdufaDG.js +21 -0
- package/dist/{createCanvasLifecycle-hsFkQVdl.js → createCanvasLifecycle-hJHobVTn.js} +84 -82
- package/dist/dark-mode-toggle.d.ts +1 -0
- package/dist/dark-mode-toggle.js +43 -0
- package/dist/dark.d.ts +1 -1
- package/dist/dark.js +1 -1
- package/dist/data-table-_RrOEdiw.js +493 -0
- package/dist/data-table.d.ts +1 -1
- package/dist/data-table.js +1 -1
- package/dist/deck-Ci6YjB5e.js +453 -0
- package/dist/deck.d.ts +1 -1
- package/dist/deck.js +2 -94
- package/dist/dialog-CbRnTRtg.js +78 -0
- package/dist/dialog.d.ts +1 -1
- package/dist/dialog.js +3 -2
- package/dist/dock.d.ts +1 -1
- package/dist/dock.js +654 -1044
- package/dist/dom.d.ts +1 -1
- package/dist/dom.js +65 -105
- package/dist/easing.d.ts +1 -1
- package/dist/easing.js +709 -522
- package/dist/expandable-container.d.ts +1 -1
- package/dist/expandable-container.js +109 -93
- package/dist/fading-scroll-CTeW3KNS.js +96 -0
- package/dist/fading-scroll.d.ts +1 -1
- package/dist/fading-scroll.js +1 -1
- package/dist/focus-Duf7EpUu.js +13 -0
- package/dist/fourier-field.d.ts +1 -1
- package/dist/fourier-field.js +172 -174
- package/dist/fourier-math.d.ts +1 -1
- package/dist/glass-ui.css +1 -1
- package/dist/glass-ui.js +295 -505
- package/dist/handmark.d.ts +1 -1
- package/dist/handmark.js +4 -4
- package/dist/index.d.ts +41 -51
- package/dist/infinite-scroll.d.ts +1 -1
- package/dist/infinite-scroll.js +59 -43
- package/dist/input-Bls2A4Tt.js +54 -0
- package/dist/input.d.ts +1 -0
- package/dist/input.js +2 -0
- package/dist/keyboard.d.ts +1 -1
- package/dist/label-BQEZhnK_.js +53 -0
- package/dist/label.d.ts +1 -1
- package/dist/label.js +1 -1
- package/dist/labeled-field.d.ts +1 -1
- package/dist/labeled-field.js +232 -239
- package/dist/menu-wLu1XGKn.js +501 -0
- package/dist/menu.d.ts +1 -0
- package/dist/{dropdown-menu.js → menu.js} +2 -2
- package/dist/metric.d.ts +1 -0
- package/dist/metric.js +139 -0
- package/dist/motion-D4uYE0UM.js +61 -0
- package/dist/motion-core.d.ts +1 -1
- package/dist/motion-core.js +206 -165
- package/dist/motion.d.ts +1 -1
- package/dist/motion.js +164 -239
- package/dist/music-staff.d.ts +1 -0
- package/dist/music-staff.js +915 -0
- package/dist/number-field-NFAwQ0HK.js +111 -0
- package/dist/number-field.d.ts +1 -1
- package/dist/number-field.js +2 -2
- package/dist/pager-dots.d.ts +1 -1
- package/dist/pager-dots.js +362 -2
- package/dist/participation-B0hdsIRo.js +42 -0
- package/dist/{pointerFieldMappings-CZojkgKj.js → pointerFieldMappings-DP5tla5z.js} +4 -7
- package/dist/popover-DBMKTPkL.js +181 -0
- package/dist/popover.d.ts +1 -1
- package/dist/popover.js +1 -1
- package/dist/{presets-CxeNvxuO.js → presets-5myqNv59.js} +1 -1
- package/dist/primitive-B2t2jdqM.js +11 -0
- package/dist/progress-DF8dWZIX.js +74 -0
- package/dist/progress.d.ts +1 -1
- package/dist/progress.js +1 -1
- package/dist/radio-group-Ci8o-pDx.js +85 -0
- package/dist/radio-group.d.ts +1 -0
- package/dist/radio-group.js +2 -0
- package/dist/reactive.d.ts +1 -1
- package/dist/reactive.js +1 -1
- package/dist/resolve-DdrNvBby.js +6 -0
- package/dist/resolveCanvasColor-6MCrswTB.js +81 -0
- package/dist/rowClass-DYOXwxhO.js +10 -0
- package/dist/scroll-progress-rim.d.ts +1 -1
- package/dist/scroll-progress-rim.js +48 -42
- package/dist/{scrollReader-C2oK9Hb8.js → scrollReader-Brf5cQNo.js} +1 -1
- package/dist/search.d.ts +1 -1
- package/dist/search.js +33 -296
- package/dist/select-CDgwGH_P.js +290 -0
- package/dist/select.d.ts +1 -1
- package/dist/select.js +2 -2
- package/dist/selection-DqIULxRG.js +6 -0
- package/dist/separator-CN11t406.js +73 -0
- package/dist/separator.d.ts +1 -1
- package/dist/separator.js +1 -1
- package/dist/sheet-BEFvnO_u.js +340 -0
- package/dist/sheet.d.ts +1 -0
- package/dist/sheet.js +3 -0
- package/dist/sidebar.d.ts +1 -1
- package/dist/sidebar.js +53 -42
- package/dist/slider-gsc8jDIo.js +227 -0
- package/dist/slider.d.ts +1 -1
- package/dist/slider.js +2 -2
- package/dist/sortable-list.d.ts +1 -1
- package/dist/sortable-list.js +412 -286
- package/dist/springPresets-Cbe0Voqg.js +52 -0
- package/dist/status-dot-BpnqOP5N.js +56 -0
- package/dist/status-dot.d.ts +1 -1
- package/dist/status-dot.js +2 -59
- package/dist/styles/accessibility.css +1 -1
- package/dist/styles/animations.css +1 -1
- package/dist/styles/components.css +1 -1
- package/dist/styles/fonts.css +1 -1
- package/dist/styles/glass/a11y-fallback.css +1 -1
- package/dist/styles/glass/control-bit.css +1 -0
- package/dist/styles/glass/control-edge.css +1 -0
- package/dist/styles/glass/control-surfaces.css +1 -1
- package/dist/styles/glass/deep.css +1 -1
- package/dist/styles/glass/defined.css +1 -1
- package/dist/styles/glass/dissolve.css +1 -0
- package/dist/styles/glass/focus-veil.css +1 -0
- package/dist/styles/glass/glass-atom.css +1 -1
- package/dist/styles/glass/glass-capsule.css +1 -1
- package/dist/styles/glass/glass-chip.css +1 -1
- package/dist/styles/glass/grasp.css +1 -0
- package/dist/styles/glass/ladder-undershadow.css +1 -1
- package/dist/styles/glass/ladder.css +1 -1
- package/dist/styles/glass/liquid-enter.css +1 -1
- package/dist/styles/glass/liquid-fill.css +1 -1
- package/dist/styles/glass/mark.css +1 -0
- package/dist/styles/glass/material.css +1 -1
- package/dist/styles/glass/overlay-plate.css +1 -0
- package/dist/styles/glass/reveal.css +1 -1
- package/dist/styles/glass/rim.css +1 -1
- package/dist/styles/glass/squircle.css +1 -1
- package/dist/styles/glass/surface-axis.css +1 -1
- package/dist/styles/glass/surfaces-pager.css +1 -1
- package/dist/styles/glass/surfaces.css +1 -1
- package/dist/styles/glass/track-flow.css +1 -0
- package/dist/styles/glass/value-marks.css +1 -0
- package/dist/styles/glass/veil.css +1 -0
- package/dist/styles/glass-specular-track.css +1 -1
- package/dist/styles/glass.css +1 -1
- package/dist/styles/index.css +1 -1
- package/dist/styles/paper.css +1 -1
- package/dist/styles/scroll-choreography.css +1 -1
- package/dist/styles/scroll-chrome.css +1 -1
- package/dist/styles/scroll-driven.css +1 -1
- package/dist/styles/theme/bridges.css +1 -1
- package/dist/styles/theme/dark.css +1 -1
- package/dist/styles/theme/literals.css +1 -1
- package/dist/styles/theme/radius.css +1 -1
- package/dist/styles/theme.css +1 -1
- package/dist/styles/tokens/color-radius.css +1 -1
- package/dist/styles/tokens/dark-arm-glass.css +1 -1
- package/dist/styles/tokens/dark-arm.css +1 -1
- package/dist/styles/tokens/glass-deep.css +1 -1
- package/dist/styles/tokens/glass-fx.css +1 -1
- package/dist/styles/tokens/glass.css +1 -1
- package/dist/styles/tokens/light-dark.css +1 -1
- package/dist/styles/tokens/manifest.d.ts +14 -0
- package/dist/styles/tokens/motion-registers.css +1 -1
- package/dist/styles/tokens/offsets.css +1 -1
- package/dist/styles/tokens/on-glass-fg.css +1 -1
- package/dist/styles/tokens/property-regs-specular.css +1 -1
- package/dist/styles/tokens/property-regs.css +1 -1
- package/dist/styles/tokens/scale-paper.css +1 -1
- package/dist/styles/tokens/scheme-motion.css +1 -1
- package/dist/styles/tokens/scheme-spring.css +1 -1
- package/dist/styles/tokens/scroll-tokens.css +1 -1
- package/dist/styles/tokens/shadow.css +1 -1
- package/dist/styles/tokens/sizing-config.css +1 -1
- package/dist/styles/tokens/sizing.css +1 -1
- package/dist/styles/tokens.css +1 -1
- package/dist/styles/tokens.d.ts +5 -10
- package/dist/styles/track-well.css +1 -0
- package/dist/styles/transitions.css +1 -1
- package/dist/styles/typography/scale.css +1 -1
- package/dist/styles/typography/semantic.css +1 -1
- package/dist/styles/typography/utilities.css +1 -1
- package/dist/styles/typography.css +1 -1
- package/dist/styles/utilities/a11y-overrides.css +1 -1
- package/dist/styles/utilities/base-misc.css +1 -1
- package/dist/styles/utilities/base.css +1 -1
- package/dist/styles/utilities/btn.css +1 -1
- package/dist/styles/utilities/components.css +1 -1
- package/dist/styles/utilities/metal.css +1 -1
- package/dist/styles/utilities/responsive.css +1 -0
- package/dist/styles/utilities.css +1 -1
- package/dist/styles/view-transition.css +1 -1
- package/dist/styles/viz-reveal.css +1 -1
- package/dist/{supportsCssTimeline-Dz-GVxXM.js → supportsCssTimeline-Di9gzleG.js} +6 -5
- package/dist/surface.d.ts +1 -1
- package/dist/surface.js +2 -3
- package/dist/switch-DxZzDrmV.js +49 -0
- package/dist/switch.d.ts +1 -1
- package/dist/switch.js +1 -1
- package/dist/tabs-CYscnq5H.js +268 -0
- package/dist/tabs.d.ts +1 -1
- package/dist/tabs.js +2 -339
- package/dist/textarea.d.ts +1 -0
- package/dist/textarea.js +58 -0
- package/dist/timeline.d.ts +1 -1
- package/dist/timeline.js +241 -532
- package/dist/toast-9c6Kp58L.js +269 -0
- package/dist/toast.d.ts +1 -1
- package/dist/toast.js +1 -1
- package/dist/toggle-group-11aPGMfE.js +125 -0
- package/dist/toggle-group.d.ts +1 -1
- package/dist/toggle-group.js +1 -1
- package/dist/tokens.d.ts +1 -1
- package/dist/tokens.js +98 -5
- package/dist/tooltip-DqKMZ4dn.js +142 -0
- package/dist/tooltip.d.ts +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/typewriter.d.ts +1 -1
- package/dist/typewriter.js +215 -208
- package/dist/useAccentTone-DFAh1osB.js +47 -0
- package/dist/useClipboard-D36OTaeT.js +53 -0
- package/dist/useDockCtaReceive-BSSgD6mu.js +146 -0
- package/dist/useDragMorph-B363RUbF.js +293 -0
- package/dist/{useDragVelocity-CbMZEBaC.js → useDragVelocity-C5BkKiNf.js} +28 -24
- package/dist/useIntersectionPause-CzKR3EyP.js +57 -0
- package/dist/useLeadTrail-DQWdpFN1.js +83 -0
- package/dist/{useLiquidFlex-Ch4exNvN.js → useLiquidFlex-TJZmRqyY.js} +1 -1
- package/dist/useLiquidPress-h1scrPtP.js +101 -0
- package/dist/useMotionAxis-D-rtIhca.js +19 -0
- package/dist/usePointerVelocityField-DsIf7yyq.js +121 -0
- package/dist/useReducedMotion-vCXA_vyM.js +27 -0
- package/dist/{useTouchGate-Cj5fOkTv.js → useResolveTokenColor-CspQv_ik.js} +25 -2
- package/dist/useRoutePointer-B8itM7Ka.js +53 -0
- package/dist/useScrollChrome-BJbWV32F.js +162 -0
- package/dist/useScrollProgress-Bq-KPaKM.js +41 -0
- package/dist/useScrollTrigger-Abe5dEeO.js +86 -0
- package/dist/useSelectionGroup-zsEwitF6.js +291 -0
- package/dist/{useSpring-BBSKFx_0.js → useSpring-9u2_shxV.js} +2 -2
- package/dist/useSpringMount-OA-0mTNv.js +73 -0
- package/dist/vReveal-B5WYGofz.js +44 -0
- package/dist/vSpecular-DMJo8pfD.js +68 -0
- package/dist/value-DMhh2R94.js +33 -0
- package/dist/{valueDomain-B8L04u3U.js → valueDomain-DXRzfc8l.js} +1 -1
- package/package.json +183 -291
- package/dist/DropdownMenuTrigger-BzQtd9lt.js +0 -65
- package/dist/FadingScroll-C1ZWEjmG.js +0 -83
- package/dist/Input-B4WQ_CMc.js +0 -57
- package/dist/PagerDots-BoTQ7g5l.js +0 -307
- package/dist/Surface-BWRfwyn8.js +0 -59
- package/dist/accent-tone-solve-Dii9ePhK.js +0 -20
- package/dist/animated-digit.d.ts +0 -1
- package/dist/animated-digit.js +0 -44
- package/dist/badge-C0C-rTBu.js +0 -80
- package/dist/button-32mg6xA8.js +0 -194
- package/dist/card-16xmzIr3.js +0 -303
- package/dist/coalesce-metric-znAcLzkB.js +0 -13
- package/dist/collapsible-bPzS1aQk.js +0 -63
- package/dist/color-swatch.d.ts +0 -1
- package/dist/color-swatch.js +0 -48
- package/dist/command-BjPjUU9z.js +0 -307
- package/dist/completion-seal.d.ts +0 -1
- package/dist/completion-seal.js +0 -132
- package/dist/components/_shared/ModalOverlay.vue.d.ts +0 -43
- package/dist/components/_shared/feedback-tone.css +0 -1
- package/dist/components/_shared/field-surfaces.css +0 -1
- package/dist/components/_shared/menu.css +0 -1
- package/dist/components/_shared/menuItemVariants.d.ts +0 -51
- package/dist/components/_shared/useControlSize.d.ts +0 -46
- package/dist/components/_shared/useStalePropWarning.d.ts +0 -27
- package/dist/components/_shared/useSurfaceAxis.d.ts +0 -64
- package/dist/components/animated-digit/AnimatedDigit.vue.d.ts +0 -56
- package/dist/components/animated-digit/index.d.ts +0 -2
- package/dist/components/card/ScrollCard.vue.d.ts +0 -33
- package/dist/components/card/ScrollCardHeader.vue.d.ts +0 -17
- package/dist/components/card/card-scroll.css +0 -1
- package/dist/components/carousel/CarouselNext.vue.d.ts +0 -21
- package/dist/components/carousel/CarouselPrevious.vue.d.ts +0 -21
- package/dist/components/carousel/interface.d.ts +0 -20
- package/dist/components/color-swatch/ColorSwatch.vue.d.ts +0 -22
- package/dist/components/color-swatch/index.d.ts +0 -1
- package/dist/components/combobox/Combobox.vue.d.ts +0 -32
- package/dist/components/combobox/ComboboxAnchor.vue.d.ts +0 -18
- package/dist/components/combobox/ComboboxEmpty.vue.d.ts +0 -18
- package/dist/components/combobox/ComboboxGroup.vue.d.ts +0 -19
- package/dist/components/combobox/ComboboxInput.vue.d.ts +0 -23
- package/dist/components/combobox/ComboboxItem.vue.d.ts +0 -22
- package/dist/components/combobox/ComboboxItemIndicator.vue.d.ts +0 -18
- package/dist/components/combobox/ComboboxList.vue.d.ts +0 -32
- package/dist/components/combobox/index.d.ts +0 -9
- package/dist/components/completion-seal/CompletionSeal.vue.d.ts +0 -28
- package/dist/components/completion-seal/composables/useCompletionSeal.d.ts +0 -37
- package/dist/components/completion-seal/constants.d.ts +0 -66
- package/dist/components/completion-seal/index.d.ts +0 -4
- package/dist/components/completion-seal/styles.css +0 -1
- package/dist/components/controls/DarkModeToggle.vue.d.ts +0 -32
- package/dist/components/controls/dark-mode-toggle.css +0 -1
- package/dist/components/controls/index.d.ts +0 -1
- package/dist/components/data-table/DataTablePagination.vue.d.ts +0 -13
- package/dist/components/deck/DeckPager.vue.d.ts +0 -29
- package/dist/components/dialog/DialogClose.vue.d.ts +0 -14
- package/dist/components/dialog/DialogTrigger.vue.d.ts +0 -14
- package/dist/components/dialog/placement.css +0 -1
- package/dist/components/dock/DockSection.vue.d.ts +0 -69
- package/dist/components/dock/DockStack.vue.d.ts +0 -73
- package/dist/components/dock/composables/dockMorphContext.d.ts +0 -91
- package/dist/components/dock/composables/useDockFisheye.d.ts +0 -24
- package/dist/components/dock/composables/useDockPopover.d.ts +0 -70
- package/dist/components/dock/styles/fisheye.css +0 -1
- package/dist/components/dock/styles/popover.css +0 -1
- package/dist/components/dock/styles/section.css +0 -1
- package/dist/components/drawer/Drawer.vue.d.ts +0 -85
- package/dist/components/drawer/DrawerContent.vue.d.ts +0 -40
- package/dist/components/drawer/DrawerDescription.vue.d.ts +0 -18
- package/dist/components/drawer/DrawerFooter.vue.d.ts +0 -17
- package/dist/components/drawer/DrawerHeader.vue.d.ts +0 -17
- package/dist/components/drawer/DrawerOverlay.vue.d.ts +0 -8
- package/dist/components/drawer/DrawerTitle.vue.d.ts +0 -18
- package/dist/components/drawer/composables/drawerSnapContext.d.ts +0 -28
- package/dist/components/drawer/composables/useDrawerSnap.d.ts +0 -24
- package/dist/components/drawer/constants.d.ts +0 -50
- package/dist/components/drawer/index.d.ts +0 -33
- package/dist/components/drawer/styles.css +0 -1
- package/dist/components/dropdown-menu/DropdownMenu.vue.d.ts +0 -24
- package/dist/components/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +0 -24
- package/dist/components/dropdown-menu/DropdownMenuContent.vue.d.ts +0 -36
- package/dist/components/dropdown-menu/DropdownMenuItem.vue.d.ts +0 -19
- package/dist/components/dropdown-menu/DropdownMenuLabel.vue.d.ts +0 -19
- package/dist/components/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +0 -22
- package/dist/components/dropdown-menu/DropdownMenuSeparator.vue.d.ts +0 -8
- package/dist/components/dropdown-menu/DropdownMenuShortcut.vue.d.ts +0 -17
- package/dist/components/dropdown-menu/DropdownMenuSubContent.vue.d.ts +0 -34
- package/dist/components/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +0 -18
- package/dist/components/dropdown-menu/DropdownMenuTrigger.vue.d.ts +0 -20
- package/dist/components/dropdown-menu/index.d.ts +0 -15
- package/dist/components/dropdown-menu/useMenuTrigger.d.ts +0 -14
- package/dist/components/easing/EasingConfigurator.vue.d.ts +0 -33
- package/dist/components/focus-scope/FocusScope.vue.d.ts +0 -20
- package/dist/components/focus-scope/index.d.ts +0 -2
- package/dist/components/fourier-field/presets.d.ts +0 -54
- package/dist/components/goo-filter/GooFilter.vue.d.ts +0 -22
- package/dist/components/goo-filter/index.d.ts +0 -1
- package/dist/components/header-ribbon/HeaderRibbon.vue.d.ts +0 -31
- package/dist/components/header-ribbon/index.d.ts +0 -2
- package/dist/components/header-ribbon/types.d.ts +0 -7
- package/dist/components/icon-chip/IconChip.vue.d.ts +0 -4
- package/dist/components/icon-chip/index.d.ts +0 -2
- package/dist/components/icon-chip/styles.css +0 -1
- package/dist/components/icon-chip/types.d.ts +0 -92
- package/dist/components/icon-tooltip/IconTooltip.vue.d.ts +0 -16
- package/dist/components/icon-tooltip/index.d.ts +0 -1
- package/dist/components/instrument-chassis/ChassisDivider.vue.d.ts +0 -30
- package/dist/components/instrument-chassis/InstrumentChassis.vue.d.ts +0 -97
- package/dist/components/instrument-chassis/index.d.ts +0 -3
- package/dist/components/instrument-chassis/styles.css +0 -1
- package/dist/components/labeled-field/LabeledSelect.vue.d.ts +0 -26
- package/dist/components/liquid-grid/LiquidGrid.vue.d.ts +0 -46
- package/dist/components/liquid-grid/composables/liquidGrid.d.ts +0 -113
- package/dist/components/liquid-grid/composables/liquidGridGLSetup.d.ts +0 -18
- package/dist/components/liquid-grid/composables/liquidGridWGPUSetup.d.ts +0 -21
- package/dist/components/liquid-grid/composables/uniformBridgeWGPU.d.ts +0 -16
- package/dist/components/liquid-grid/composables/useLiquidGrid.d.ts +0 -32
- package/dist/components/liquid-grid/constants.d.ts +0 -93
- package/dist/components/liquid-grid/index.d.ts +0 -5
- package/dist/components/liquid-grid/shaders/liquid-grid.glsl.d.ts +0 -4
- package/dist/components/liquid-grid/shaders/liquid-grid.wgsl.d.ts +0 -1
- package/dist/components/metric-badge/MetricBadge.vue.d.ts +0 -40
- package/dist/components/metric-badge/index.d.ts +0 -2
- package/dist/components/metric-cell/MetricCell.vue.d.ts +0 -108
- package/dist/components/metric-cell/index.d.ts +0 -2
- package/dist/components/metric-stack/MetricRow.vue.d.ts +0 -120
- package/dist/components/metric-stack/MetricStack.vue.d.ts +0 -92
- package/dist/components/metric-stack/index.d.ts +0 -4
- package/dist/components/notification/Notification.vue.d.ts +0 -16
- package/dist/components/notification/index.d.ts +0 -1
- package/dist/components/number-field/NumberFieldContent.vue.d.ts +0 -17
- package/dist/components/number-field/NumberFieldDecrement.vue.d.ts +0 -18
- package/dist/components/number-field/NumberFieldIncrement.vue.d.ts +0 -18
- package/dist/components/pager-dots/composables/usePagerWorm.d.ts +0 -26
- package/dist/components/pager-dots/constants.d.ts +0 -15
- package/dist/components/pager-dots/pagerWindow.d.ts +0 -9
- package/dist/components/paper-backdrop/PaperBackdrop.vue.d.ts +0 -21
- package/dist/components/paper-backdrop/index.d.ts +0 -2
- package/dist/components/progress/ProgressDefault.vue.d.ts +0 -9
- package/dist/components/progress/ProgressGradient.vue.d.ts +0 -26
- package/dist/components/progress/ProgressLiquid.vue.d.ts +0 -22
- package/dist/components/progress/valueMarks.css +0 -1
- package/dist/components/pulse/Pulse.vue.d.ts +0 -53
- package/dist/components/pulse/index.d.ts +0 -1
- package/dist/components/search/FuzzySearch.vue.d.ts +0 -24
- package/dist/components/select/SelectScrollDownButton.vue.d.ts +0 -18
- package/dist/components/select/SelectScrollUpButton.vue.d.ts +0 -18
- package/dist/components/sortable-list/composables/dragController.d.ts +0 -29
- package/dist/components/sortable-list/composables/dropResolver.d.ts +0 -34
- package/dist/components/sortable-list/composables/ghostRenderer.d.ts +0 -44
- package/dist/components/sortable-list/composables/index.d.ts +0 -1
- package/dist/components/sortable-list/composables/touchGate.d.ts +0 -26
- package/dist/components/sortable-list/composables/transitionTiming.d.ts +0 -50
- package/dist/components/spa-view/SpaView.vue.d.ts +0 -50
- package/dist/components/spa-view/index.d.ts +0 -2
- package/dist/components/split-chars/SplitChars.vue.d.ts +0 -53
- package/dist/components/split-chars/index.d.ts +0 -1
- package/dist/components/tabs/composables/useEyeglassLive.d.ts +0 -17
- package/dist/components/tabs/constants.d.ts +0 -1
- package/dist/components/tags-input/TagsInput.vue.d.ts +0 -28
- package/dist/components/tags-input/TagsInputInput.vue.d.ts +0 -8
- package/dist/components/tags-input/TagsInputItem.vue.d.ts +0 -18
- package/dist/components/tags-input/TagsInputItemDelete.vue.d.ts +0 -18
- package/dist/components/tags-input/TagsInputItemText.vue.d.ts +0 -8
- package/dist/components/tags-input/index.d.ts +0 -5
- package/dist/components/timeline/ContinuousMarkers.vue.d.ts +0 -49
- package/dist/components/timeline/ContinuousRail.vue.d.ts +0 -26
- package/dist/components/timeline/ContinuousTimeline.vue.d.ts +0 -118
- package/dist/components/timeline/GlassTimeline.vue.d.ts +0 -114
- package/dist/components/timeline/ScrubberTimeline.vue.d.ts +0 -45
- package/dist/components/timeline/SegmentedTimeline.vue.d.ts +0 -46
- package/dist/components/toggle/Toggle.vue.d.ts +0 -29
- package/dist/components/toggle/index.d.ts +0 -26
- package/dist/components/toggle-group/toggleGroupContext.d.ts +0 -20
- package/dist/components/typewriter/composables/index.d.ts +0 -1
- package/dist/components/watercolor-dot/WatercolorDot.vue.d.ts +0 -74
- package/dist/components/watercolor-dot/index.d.ts +0 -3
- package/dist/components/watercolor-dot/prng.d.ts +0 -5
- package/dist/components/watercolor-dot/useWatercolorBlob.d.ts +0 -31
- package/dist/composables/glass/ambientHueHistogram.d.ts +0 -27
- package/dist/composables/glass/useSpecularPointer.d.ts +0 -52
- package/dist/composables/glass/wave/index.d.ts +0 -4
- package/dist/composables/glass/wave/waveField.d.ts +0 -136
- package/dist/composables/glass/wave/waveField.glsl.d.ts +0 -1
- package/dist/composables/glass/wave/waveField.wgsl.d.ts +0 -1
- package/dist/composables/glass/webgl/shaders/glass-refract.glsl.d.ts +0 -36
- package/dist/composables/glass/webgpu/index.d.ts +0 -3
- package/dist/composables/index.d.ts +0 -9
- package/dist/composables/motion/bloomUpField.d.ts +0 -29
- package/dist/composables/motion/constants.d.ts +0 -19
- package/dist/composables/motion/curves.d.ts +0 -48
- package/dist/composables/motion/gooBarbellGeometry.d.ts +0 -79
- package/dist/composables/motion/morphSignatures.d.ts +0 -88
- package/dist/composables/motion/springPresets.d.ts +0 -45
- package/dist/composables/motion/suite.d.ts +0 -2
- package/dist/composables/motion/useBloomUp.d.ts +0 -97
- package/dist/composables/motion/useCharStagger.d.ts +0 -44
- package/dist/composables/motion/useCountup.d.ts +0 -30
- package/dist/composables/motion/useElementMorph.d.ts +0 -107
- package/dist/composables/motion/useGooMorph.d.ts +0 -72
- package/dist/composables/motion/useLeadTrail.d.ts +0 -69
- package/dist/composables/motion/useNumericTransition.d.ts +0 -56
- package/dist/composables/motion/usePrioritizedTask.d.ts +0 -41
- package/dist/composables/motion/useScrollPin.d.ts +0 -49
- package/dist/composables/motion/useSelectionGroup.d.ts +0 -83
- package/dist/composables/motion/useSelectionIndicator.d.ts +0 -90
- package/dist/composables/motion/useStaggerReveal.d.ts +0 -52
- package/dist/composables/motion/useTextHighlight.d.ts +0 -41
- package/dist/composables/motion/useViewTransition.d.ts +0 -81
- package/dist/composables/virtual/index.d.ts +0 -4
- package/dist/composables/virtual/useVirtualSectionWindow.d.ts +0 -72
- package/dist/composables/virtual/useWindowedStore.d.ts +0 -43
- package/dist/composables/virtual/virtualSectionLayout.d.ts +0 -103
- package/dist/controls.d.ts +0 -1
- package/dist/controls.js +0 -83
- package/dist/data-table-DveMdgBM.js +0 -629
- package/dist/dialog-BzQxKrUr.js +0 -281
- package/dist/dockContext-4S9qP0Z4.js +0 -13
- package/dist/drawer.d.ts +0 -1
- package/dist/drawer.js +0 -443
- package/dist/dropdown-menu-DORIA52F.js +0 -378
- package/dist/dropdown-menu.d.ts +0 -1
- package/dist/flow.glsl-DEGFGE11.js +0 -4
- package/dist/focus-scope-DUTKveod.js +0 -23
- package/dist/focus-scope.d.ts +0 -1
- package/dist/focus-scope.js +0 -2
- package/dist/fonts/README.md +0 -124
- package/dist/fonts/fira-code/OFL.txt +0 -93
- package/dist/fonts/plus-jakarta-sans/OFL.txt +0 -93
- package/dist/forms.d.ts +0 -5
- package/dist/forms.js +0 -298
- package/dist/header-ribbon.d.ts +0 -1
- package/dist/header-ribbon.js +0 -74
- package/dist/icon-chip-BWuxz1-u.js +0 -57
- package/dist/icon-chip.d.ts +0 -1
- package/dist/icon-chip.js +0 -2
- package/dist/icon-tooltip-CO6rw0dZ.js +0 -25
- package/dist/icon-tooltip.d.ts +0 -1
- package/dist/icon-tooltip.js +0 -2
- package/dist/instrument-chassis-Cvstg4_U.js +0 -65
- package/dist/instrument-chassis.d.ts +0 -1
- package/dist/instrument-chassis.js +0 -2
- package/dist/label-Cj38tJKG.js +0 -36
- package/dist/liquid-grid.d.ts +0 -1
- package/dist/liquid-grid.js +0 -1075
- package/dist/menuItemVariants-D6AOzzND.js +0 -36
- package/dist/metric-badge.d.ts +0 -1
- package/dist/metric-badge.js +0 -79
- package/dist/metric-cell.d.ts +0 -1
- package/dist/metric-cell.js +0 -61
- package/dist/metric-stack.d.ts +0 -1
- package/dist/metric-stack.js +0 -113
- package/dist/motion-curves.d.ts +0 -1
- package/dist/motion-curves.js +0 -146
- package/dist/notification-DVs7ODMg.js +0 -52
- package/dist/notification.d.ts +0 -1
- package/dist/notification.js +0 -2
- package/dist/number-field-PvkGedHk.js +0 -140
- package/dist/paper-backdrop.d.ts +0 -1
- package/dist/paper-backdrop.js +0 -31
- package/dist/popover-WMgyRSyN.js +0 -256
- package/dist/progress-C-HHuFZy.js +0 -192
- package/dist/pulse.d.ts +0 -1
- package/dist/pulse.js +0 -56
- package/dist/resolveCanvasColor-yarP5bdk.js +0 -93
- package/dist/select-BIv4R3Ir.js +0 -326
- package/dist/separator-CBU94kTM.js +0 -62
- package/dist/slider-Cc_qw6GA.js +0 -166
- package/dist/spa-view.d.ts +0 -1
- package/dist/spa-view.js +0 -46
- package/dist/springPresets-h5VKJQqG.js +0 -58
- package/dist/styles/draw-in.css +0 -1
- package/dist/styles/glass/accent-tone.css +0 -1
- package/dist/styles/glass/grain-overlay.css +0 -1
- package/dist/styles/glass/material-roles.css +0 -1
- package/dist/styles/glass/progress-rail.css +0 -1
- package/dist/styles/glass-refract.css +0 -1
- package/dist/styles/tokens.ts +0 -58
- package/dist/switch-Boj4Ucn5.js +0 -49
- package/dist/toast-kAbchIN2.js +0 -281
- package/dist/toggle-group-BPchFsns.js +0 -178
- package/dist/tooltip-BmOQJzh0.js +0 -111
- package/dist/useAccentTone-C-p6WdPe.js +0 -23
- package/dist/useAnimatedNumber-BRVVaFFc.js +0 -40
- package/dist/useControlSize-CFfOk8I-.js +0 -9
- package/dist/useDockCtaReceive-CK-RLASa.js +0 -257
- package/dist/useDocumentVisibility-YeBDGqtI.js +0 -17
- package/dist/useDragMorph-7ygF9O0m.js +0 -93
- package/dist/useGooMorph-D1F6QJlH.js +0 -349
- package/dist/useIntersectionPause-B-dbxl9w.js +0 -39
- package/dist/useLeadTrail-BYu8dq4G.js +0 -74
- package/dist/useLiquidPress-BYcwwGQV.js +0 -68
- package/dist/useMotionAxis-DCCXMC-i.js +0 -20
- package/dist/usePointerVelocityField-BdvnO0py.js +0 -122
- package/dist/useRAFLoop-BtwQ9DyY.js +0 -109
- package/dist/useResolveTokenColor-C07e-qaT.js +0 -24
- package/dist/useRoutePointer-BDNMFN73.js +0 -52
- package/dist/useScrollProgress-DZI4nf4v.js +0 -35
- package/dist/useSelectionGroup-LDzBdR1Y.js +0 -215
- package/dist/useSpringMount-C6-DBx4e.js +0 -71
- package/dist/useSpringPress-BypV_KO-.js +0 -36
- package/dist/useSurfaceAxis-DudiZVOR.js +0 -10
- package/dist/useTabRovingFocus-DkLYwo4L.js +0 -143
- package/dist/useUserInvalidAria-Cr4nR3tu.js +0 -25
- package/dist/vReveal-DZfWl9XI.js +0 -10
- package/dist/vSpecular-CQFmLNzA.js +0 -68
- package/dist/watercolor-dot.d.ts +0 -1
- package/dist/watercolor-dot.js +0 -175
- package/src/fonts/README.md +0 -124
- package/src/fonts/fira-code/OFL.txt +0 -93
- package/src/fonts/fira-code/fira-code-latin-ext.woff2 +0 -0
- package/src/fonts/fira-code/fira-code-latin.woff2 +0 -0
- package/src/fonts/plus-jakarta-sans/OFL.txt +0 -93
- package/src/fonts/plus-jakarta-sans/plus-jakarta-sans-latin-ext.woff2 +0 -0
- package/src/fonts/plus-jakarta-sans/plus-jakarta-sans-latin.woff2 +0 -0
- package/src/styles/accessibility.css +0 -48
- package/src/styles/animations.css +0 -468
- package/src/styles/draw-in.css +0 -89
- package/src/styles/fonts.css +0 -143
- package/src/styles/glass/a11y-fallback.css +0 -188
- package/src/styles/glass/accent-tone.css +0 -66
- package/src/styles/glass/control-surfaces.css +0 -171
- package/src/styles/glass/deep.css +0 -114
- package/src/styles/glass/defined.css +0 -88
- package/src/styles/glass/glass-atom.css +0 -247
- package/src/styles/glass/glass-capsule.css +0 -175
- package/src/styles/glass/glass-chip.css +0 -211
- package/src/styles/glass/grain-overlay.css +0 -79
- package/src/styles/glass/ladder-undershadow.css +0 -61
- package/src/styles/glass/ladder.css +0 -452
- package/src/styles/glass/liquid-enter.css +0 -240
- package/src/styles/glass/liquid-fill.css +0 -65
- package/src/styles/glass/material-roles.css +0 -18
- package/src/styles/glass/material.css +0 -500
- package/src/styles/glass/progress-rail.css +0 -78
- package/src/styles/glass/reveal.css +0 -333
- package/src/styles/glass/rim.css +0 -122
- package/src/styles/glass/squircle.css +0 -58
- package/src/styles/glass/surface-axis.css +0 -136
- package/src/styles/glass/surfaces-pager.css +0 -79
- package/src/styles/glass/surfaces.css +0 -434
- package/src/styles/glass-refract.css +0 -112
- package/src/styles/glass-specular-track.css +0 -74
- package/src/styles/glass.css +0 -110
- package/src/styles/index.css +0 -288
- package/src/styles/paper.css +0 -187
- package/src/styles/scroll-choreography.css +0 -294
- package/src/styles/scroll-chrome.css +0 -123
- package/src/styles/scroll-driven.css +0 -123
- package/src/styles/theme/bridges.css +0 -380
- package/src/styles/theme/dark.css +0 -7
- package/src/styles/theme/literals.css +0 -104
- package/src/styles/theme/radius.css +0 -148
- package/src/styles/theme.css +0 -33
- package/src/styles/tokens/color-radius.css +0 -308
- package/src/styles/tokens/dark-arm-glass.css +0 -55
- package/src/styles/tokens/dark-arm.css +0 -455
- package/src/styles/tokens/glass-deep.css +0 -126
- package/src/styles/tokens/glass-fx.css +0 -480
- package/src/styles/tokens/glass.css +0 -477
- package/src/styles/tokens/light-dark.css +0 -216
- package/src/styles/tokens/motion-registers.css +0 -93
- package/src/styles/tokens/offsets.css +0 -142
- package/src/styles/tokens/on-glass-fg.css +0 -39
- package/src/styles/tokens/property-regs-specular.css +0 -160
- package/src/styles/tokens/property-regs.css +0 -448
- package/src/styles/tokens/scale-paper.css +0 -495
- package/src/styles/tokens/scheme-motion.css +0 -425
- package/src/styles/tokens/scheme-spring.css +0 -282
- package/src/styles/tokens/scroll-tokens.css +0 -137
- package/src/styles/tokens/shadow.css +0 -206
- package/src/styles/tokens/sizing-config.css +0 -110
- package/src/styles/tokens/sizing.css +0 -505
- package/src/styles/tokens.css +0 -68
- package/src/styles/tokens.ts +0 -58
- package/src/styles/transitions.css +0 -228
- package/src/styles/typography/scale.css +0 -166
- package/src/styles/typography/semantic.css +0 -233
- package/src/styles/typography/utilities.css +0 -197
- package/src/styles/typography.css +0 -46
- package/src/styles/utilities/a11y-overrides.css +0 -184
- package/src/styles/utilities/base-misc.css +0 -307
- package/src/styles/utilities/base.css +0 -337
- package/src/styles/utilities/btn.css +0 -306
- package/src/styles/utilities/components.css +0 -337
- package/src/styles/utilities/metal.css +0 -272
- package/src/styles/utilities.css +0 -24
- package/src/styles/view-transition.css +0 -67
- package/src/styles/viz-reveal.css +0 -63
- /package/dist/{_plugin-vue_export-helper-C1je1s0u.js → _plugin-vue_export-helper-B3ysoDQm.js} +0 -0
- /package/dist/{compile-DK3Fri1B.js → compile-D7VYG3gi.js} +0 -0
- /package/dist/components/_shared/{valueDomain.d.ts → field/valueDomain.d.ts} +0 -0
- /package/dist/composables/glass/{webgl/shaders/procedural-color.glsl.d.ts → procedural/color.glsl.d.ts} +0 -0
- /package/dist/{components/aurora/constants/shaders/procedural-color.wgsl.d.ts → composables/glass/procedural/color.wgsl.d.ts} +0 -0
- /package/dist/composables/motion/{useIntersectionPause.d.ts → core/useIntersectionPause.d.ts} +0 -0
- /package/dist/composables/motion/{useRAFLoop.d.ts → core/useRAFLoop.d.ts} +0 -0
- /package/dist/composables/motion/{useYieldToMain.d.ts → core/useYieldToMain.d.ts} +0 -0
- /package/dist/composables/motion/{useAnimatedNumber.d.ts → number/useAnimatedNumber.d.ts} +0 -0
- /package/dist/composables/motion/{vReveal.d.ts → reveal/vReveal.d.ts} +0 -0
- /package/dist/composables/motion/{scrollReader.d.ts → scroll/scrollReader.d.ts} +0 -0
- /package/dist/composables/motion/{supportsCssTimeline.d.ts → scroll/supportsCssTimeline.d.ts} +0 -0
- /package/dist/composables/motion/{useScrollTrigger.d.ts → scroll/useScrollTrigger.d.ts} +0 -0
- /package/dist/{createContext-FU0n5MGK.js → createContext-BhkE9mLH.js} +0 -0
- /package/dist/{dark-DIH-blY1.js → dark-z_P5QwqI.js} +0 -0
- /package/dist/{motionTempo-CMS5b0Vu.js → motionTempo-tscp92Nm.js} +0 -0
- /package/dist/{prng-Dz2_9RJu.js → prng-2uS6J_A1.js} +0 -0
- /package/dist/{rendererStatus-C2-zC2Q-.js → rendererStatus-BxUlBLVy.js} +0 -0
- /package/dist/{useFuzzySearch-BOgep7RE.js → useFuzzySearch-CUnZknpm.js} +0 -0
- /package/dist/{useResizeObserver-BcUTquV7.js → useResizeObserver-CdUlm2QZ.js} +0 -0
- /package/dist/{useTimer-D8koDvJS.js → useTimer-C3yfti4C.js} +0 -0
- /package/dist/{writeVelocityWeight-D_AcvTsE.js → writeVelocityWeight-DoGOCW3e.js} +0 -0
package/dist/dock.js
CHANGED
|
@@ -1,38 +1,50 @@
|
|
|
1
|
-
import { t as e } from "./class-names-
|
|
2
|
-
import { t } from "./
|
|
3
|
-
import { n } from "./
|
|
4
|
-
import { t as r } from "./
|
|
5
|
-
import {
|
|
6
|
-
import { t as a } from "./
|
|
7
|
-
import { t as o } from "./
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { n as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { Fragment as O, computed as k, createBlock as A, createCommentVNode as j, createElementBlock as M, createElementVNode as N, createVNode as P, defineComponent as F, mergeModels as I, mergeProps as L, nextTick as ee, normalizeClass as R, normalizeStyle as z, onBeforeUnmount as B, onMounted as te, onScopeDispose as V, onUnmounted as ne, openBlock as H, readonly as U, ref as W, renderList as G, renderSlot as K, resolveDynamicComponent as q, toDisplayString as re, toValue as ie, unref as J, useId as ae, useModel as oe, useTemplateRef as Y, watch as X, withCtx as Z, withDirectives as Q, withKeys as se } from "vue";
|
|
1
|
+
import { t as e } from "./class-names-q-UGOkHH.js";
|
|
2
|
+
import { n as t } from "./useReducedMotion-vCXA_vyM.js";
|
|
3
|
+
import { t as n } from "./vSpecular-DMJo8pfD.js";
|
|
4
|
+
import { t as r } from "./motionTempo-tscp92Nm.js";
|
|
5
|
+
import { n as i } from "./springPresets-Cbe0Voqg.js";
|
|
6
|
+
import { t as a } from "./useLiquidPress-h1scrPtP.js";
|
|
7
|
+
import { t as o } from "./useMotionAxis-D-rtIhca.js";
|
|
8
|
+
import { n as s, t as c } from "./createContext-BhkE9mLH.js";
|
|
9
|
+
import { a as l, c as u, i as d, l as f, n as p, o as m, r as h, s as g } from "./participation-B0hdsIRo.js";
|
|
10
|
+
import { t as _ } from "./useResizeObserver-CdUlm2QZ.js";
|
|
11
|
+
import { n as v, r as y } from "./useResolveTokenColor-CspQv_ik.js";
|
|
12
|
+
import { t as b } from "./focus-Duf7EpUu.js";
|
|
13
|
+
import { t as x } from "./DropdownMenuTrigger-8UZsBtZ8.js";
|
|
14
|
+
import { t as S } from "./useSelectionGroup-zsEwitF6.js";
|
|
15
|
+
import { t as C } from "./useDragMorph-B363RUbF.js";
|
|
16
|
+
import { n as w } from "./useDockCtaReceive-BSSgD6mu.js";
|
|
17
|
+
import { n as T, t as E } from "./useScrollChrome-BJbWV32F.js";
|
|
18
|
+
import { t as D } from "./useIntersectionPause-CzKR3EyP.js";
|
|
19
|
+
import { t as O } from "./useFuzzySearch-CUnZknpm.js";
|
|
20
|
+
import { Fragment as k, computed as A, createBlock as j, createCommentVNode as M, createElementBlock as N, createElementVNode as P, createVNode as F, defineComponent as I, mergeModels as ee, mergeProps as L, nextTick as R, normalizeClass as z, normalizeStyle as B, onBeforeUnmount as te, onMounted as V, onScopeDispose as ne, onUnmounted as H, openBlock as U, readonly as W, ref as G, renderList as re, renderSlot as K, resolveDynamicComponent as q, toDisplayString as ie, unref as J, useId as ae, useModel as Y, useTemplateRef as X, watch as Z, withCtx as Q, withDirectives as oe, withModifiers as se } from "vue";
|
|
22
21
|
import { PopoverTrigger as ce, Primitive as le, SelectIcon as ue, SelectTrigger as de } from "reka-ui";
|
|
23
|
-
import { ChevronDown as fe,
|
|
24
|
-
import { SpringProgress as
|
|
25
|
-
import { useMediaQuery as
|
|
26
|
-
|
|
22
|
+
import { ChevronDown as fe, Pause as pe, Play as me } from "@lucide/vue";
|
|
23
|
+
import { SpringProgress as he } from "@mkbabb/keyframes.js";
|
|
24
|
+
import { useMediaQuery as ge } from "@vueuse/core";
|
|
25
|
+
//#region src/components/_shared/overlay/isTeleportedTarget.ts
|
|
26
|
+
function $(e, t) {
|
|
27
|
+
if (!(e instanceof Element)) return !1;
|
|
28
|
+
let n = e.closest("[data-glass-dock-portal]");
|
|
29
|
+
return n ? !t || n.getAttribute("data-glass-dock-owner") === t : !1;
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
27
32
|
//#region src/composables/glass/backdropSampleMath.ts
|
|
28
|
-
function
|
|
33
|
+
function _e(e) {
|
|
29
34
|
let t = e / 255;
|
|
30
35
|
return t <= .03928 ? t / 12.92 : ((t + .055) / 1.055) ** 2.4;
|
|
31
36
|
}
|
|
32
|
-
function
|
|
33
|
-
return .2126 *
|
|
37
|
+
function ve(e, t, n) {
|
|
38
|
+
return .2126 * _e(e) + .7152 * _e(t) + .0722 * _e(n);
|
|
39
|
+
}
|
|
40
|
+
function ye(e, t, n, r, i) {
|
|
41
|
+
return [
|
|
42
|
+
e * r + i[0] * (1 - r),
|
|
43
|
+
t * r + i[1] * (1 - r),
|
|
44
|
+
n * r + i[2] * (1 - r)
|
|
45
|
+
];
|
|
34
46
|
}
|
|
35
|
-
function
|
|
47
|
+
function be(e) {
|
|
36
48
|
let t = e.match(/rgba?\(\s*([\d.]+)[,\s]+([\d.]+)[,\s]+([\d.]+)(?:[,\s/]+([\d.]+))?/i);
|
|
37
49
|
return t ? [
|
|
38
50
|
Number(t[1]),
|
|
@@ -41,60 +53,31 @@ function Se(e) {
|
|
|
41
53
|
t[4] === void 0 ? 1 : Number(t[4])
|
|
42
54
|
] : null;
|
|
43
55
|
}
|
|
44
|
-
function
|
|
56
|
+
function xe(e) {
|
|
45
57
|
return typeof HTMLCanvasElement < "u" && e instanceof HTMLCanvasElement;
|
|
46
58
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
var $ = 12, we = .72, Te = .06, Ee = .004;
|
|
50
|
-
function De() {
|
|
51
|
-
return {
|
|
52
|
-
weight: new Float64Array($),
|
|
53
|
-
sumCos: new Float64Array($),
|
|
54
|
-
sumSin: new Float64Array($),
|
|
55
|
-
totalMass: 0,
|
|
56
|
-
n: 0
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
function Oe(e, t, n, r, i) {
|
|
60
|
-
e.n++;
|
|
61
|
-
let [a, o, s] = ye(t, n, r), [, c, l] = ve(a, o, s);
|
|
62
|
-
if (!Number.isFinite(c) || !Number.isFinite(l) || c <= 0) return;
|
|
63
|
-
let u = c * i;
|
|
64
|
-
if (u <= 0) return;
|
|
65
|
-
let d = l * Math.PI / 180, f = Math.floor(l / 360 * $) % $;
|
|
66
|
-
f < 0 && (f += $), e.weight[f] += u, e.sumCos[f] += u * Math.cos(d), e.sumSin[f] += u * Math.sin(d), e.totalMass += u;
|
|
67
|
-
}
|
|
68
|
-
function ke(e) {
|
|
69
|
-
if (e.n === 0 || e.totalMass / e.n < Ee) return "transparent";
|
|
70
|
-
let t = 0;
|
|
71
|
-
for (let n = 1; n < $; n++) e.weight[n] > e.weight[t] && (t = n);
|
|
72
|
-
if (e.weight[t] <= 0) return "transparent";
|
|
73
|
-
let n = Math.atan2(e.sumSin[t], e.sumCos[t]) * 180 / Math.PI;
|
|
74
|
-
return n < 0 && (n += 360), `oklch(${we} ${Te} ${n.toFixed(1)})`;
|
|
75
|
-
}
|
|
76
|
-
var Ae = "[data-glass-field-canvas] canvas, canvas[data-glass-field-canvas]";
|
|
77
|
-
function je(e) {
|
|
59
|
+
var Se = "[data-glass-field-canvas] canvas, canvas[data-glass-field-canvas]";
|
|
60
|
+
function Ce(e) {
|
|
78
61
|
if (!e) {
|
|
79
62
|
if (typeof document < "u") {
|
|
80
|
-
let e = document.querySelector(
|
|
81
|
-
if (
|
|
63
|
+
let e = document.querySelector(Se);
|
|
64
|
+
if (xe(e)) return e;
|
|
82
65
|
}
|
|
83
66
|
return null;
|
|
84
67
|
}
|
|
85
|
-
if (
|
|
68
|
+
if (xe(e)) return e;
|
|
86
69
|
if (typeof e == "function") {
|
|
87
70
|
let t = e();
|
|
88
|
-
return
|
|
71
|
+
return xe(t) ? t : null;
|
|
89
72
|
}
|
|
90
73
|
if (typeof e == "string" && typeof document < "u") {
|
|
91
74
|
let t = document.querySelector(e);
|
|
92
|
-
return
|
|
75
|
+
return xe(t) ? t : null;
|
|
93
76
|
}
|
|
94
77
|
return null;
|
|
95
78
|
}
|
|
96
|
-
function
|
|
97
|
-
let n =
|
|
79
|
+
function we(e, t) {
|
|
80
|
+
let n = be(e);
|
|
98
81
|
if (n) return n;
|
|
99
82
|
if (!t) return null;
|
|
100
83
|
try {
|
|
@@ -110,70 +93,79 @@ function Me(e, t) {
|
|
|
110
93
|
return null;
|
|
111
94
|
}
|
|
112
95
|
}
|
|
113
|
-
function
|
|
96
|
+
function Te(e, t, n, r) {
|
|
114
97
|
if (!t || t.width === 0 || t.height === 0 || !n) return null;
|
|
115
|
-
let
|
|
116
|
-
if (
|
|
117
|
-
let
|
|
118
|
-
if (
|
|
98
|
+
let i = e.getBoundingClientRect(), a = t.getBoundingClientRect();
|
|
99
|
+
if (a.width === 0 || a.height === 0) return null;
|
|
100
|
+
let o = t.width / a.width, s = t.height / a.height, c = Math.max(0, (i.left - a.left) * o), l = Math.max(0, (i.top - a.top) * s), u = Math.min(t.width - c, Math.max(1, i.width * o)), d = Math.min(t.height - l, Math.max(1, i.height * s));
|
|
101
|
+
if (u <= 0 || d <= 0) return null;
|
|
119
102
|
try {
|
|
120
|
-
n.clearRect(0, 0, 32, 32), n.drawImage(t,
|
|
121
|
-
let e = n.getImageData(0, 0, 32, 32).data,
|
|
103
|
+
n.clearRect(0, 0, 32, 32), n.drawImage(t, c, l, u, d, 0, 0, 32, 32);
|
|
104
|
+
let e = n.getImageData(0, 0, 32, 32).data, i = 0, a = 0, o = 0;
|
|
122
105
|
for (let t = 0; t < e.length; t += 4) {
|
|
123
|
-
let n = e[t + 3] / 255, s = e[t]
|
|
124
|
-
|
|
106
|
+
let n = e[t + 3] / 255, [s, c, l] = ye(e[t], e[t + 1], e[t + 2], n, r);
|
|
107
|
+
i += ve(s, c, l), a += n, o++;
|
|
125
108
|
}
|
|
126
|
-
return
|
|
127
|
-
luma: r / a,
|
|
128
|
-
ambientHue: ke(o)
|
|
129
|
-
};
|
|
109
|
+
return o === 0 || a / o < .02 ? null : { luma: i / o };
|
|
130
110
|
} catch {
|
|
131
111
|
return null;
|
|
132
112
|
}
|
|
133
113
|
}
|
|
134
|
-
function
|
|
114
|
+
function Ee(e, t) {
|
|
135
115
|
let n = e.getBoundingClientRect(), r = n.left + n.width / 2, i = n.top + n.height / 2, a = document.elementsFromPoint(r, i);
|
|
136
116
|
for (let n of a) {
|
|
137
117
|
if (!(n instanceof HTMLElement) || n === e || e.contains(n)) continue;
|
|
138
|
-
let r = getComputedStyle(n).backgroundColor, i =
|
|
139
|
-
if (i && !(i[3] < .5)) return
|
|
118
|
+
let r = getComputedStyle(n).backgroundColor, i = we(v(r, e), t);
|
|
119
|
+
if (i && !(i[3] < .5)) return i;
|
|
140
120
|
}
|
|
141
|
-
|
|
142
|
-
return o ? Fe(o) : null;
|
|
121
|
+
return we(v(getComputedStyle(document.body).backgroundColor, e), t);
|
|
143
122
|
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
123
|
+
var De = [
|
|
124
|
+
255,
|
|
125
|
+
255,
|
|
126
|
+
255
|
|
127
|
+
];
|
|
128
|
+
function Oe(e, t) {
|
|
129
|
+
let n = Ee(e, t);
|
|
130
|
+
return n && n[3] >= .5 ? [
|
|
131
|
+
n[0],
|
|
132
|
+
n[1],
|
|
133
|
+
n[2]
|
|
134
|
+
] : [...De];
|
|
135
|
+
}
|
|
136
|
+
function ke(e, t) {
|
|
137
|
+
let n = Ee(e, t);
|
|
138
|
+
return n ? Ae(n) : null;
|
|
139
|
+
}
|
|
140
|
+
function Ae(e) {
|
|
141
|
+
return { luma: ve(e[0], e[1], e[2]) };
|
|
150
142
|
}
|
|
151
143
|
//#endregion
|
|
152
144
|
//#region src/composables/glass/useGlassBackdropLuminance.ts
|
|
153
|
-
var
|
|
154
|
-
function
|
|
155
|
-
let { lightThreshold:
|
|
145
|
+
var je = "data-glass-backdrop-shared";
|
|
146
|
+
function Me(e, n = {}) {
|
|
147
|
+
let { lightThreshold: r = .6, minSampleIntervalMs: i = 250, writeBucket: a = !0 } = n, o = Math.max(250, i), s = n.shared === !0;
|
|
156
148
|
function c(e) {
|
|
157
|
-
return
|
|
149
|
+
return !s && e.closest(`[${je}]`) !== null;
|
|
158
150
|
}
|
|
159
|
-
let l =
|
|
151
|
+
let l = G(null), u = G(null), d = G({
|
|
160
152
|
state: "pending",
|
|
161
|
-
mode:
|
|
162
|
-
source:
|
|
153
|
+
mode: n.live === !0 ? "live" : "static",
|
|
154
|
+
source: n.live === !0 ? "canvas" : "elements"
|
|
163
155
|
});
|
|
164
156
|
if (typeof window > "u") return {
|
|
165
|
-
luma:
|
|
166
|
-
bucket:
|
|
167
|
-
sample:
|
|
157
|
+
luma: W(l),
|
|
158
|
+
bucket: W(u),
|
|
159
|
+
sample: W(d),
|
|
168
160
|
sampleNow: () => {},
|
|
169
161
|
dispose: () => {}
|
|
170
162
|
};
|
|
171
|
-
let f =
|
|
172
|
-
function
|
|
173
|
-
return
|
|
163
|
+
let f = t(), p = null, m = null;
|
|
164
|
+
function h() {
|
|
165
|
+
return p || (p = document.createElement("canvas"), p.width = 32, p.height = 32), m ||= p.getContext("2d", { willReadFrequently: !0 }), m;
|
|
174
166
|
}
|
|
175
|
-
function
|
|
176
|
-
return
|
|
167
|
+
function g() {
|
|
168
|
+
return n.live === void 0 ? e.value?.dataset.glassSample === "live" || n.backgroundCanvas != null || Ce(void 0) !== null : n.live;
|
|
177
169
|
}
|
|
178
170
|
function v(e) {
|
|
179
171
|
let t = e.getBoundingClientRect();
|
|
@@ -184,19 +176,18 @@ function ze(e, t = {}) {
|
|
|
184
176
|
height: t.height
|
|
185
177
|
};
|
|
186
178
|
}
|
|
187
|
-
function y(e, t,
|
|
179
|
+
function y(e, t, n, i) {
|
|
188
180
|
let o = e.luma;
|
|
189
181
|
l.value = o;
|
|
190
|
-
let s = o >=
|
|
182
|
+
let s = o >= r ? "light" : "dark";
|
|
191
183
|
u.value = s, d.value = {
|
|
192
184
|
state: "sampled",
|
|
193
|
-
mode:
|
|
194
|
-
source:
|
|
185
|
+
mode: n,
|
|
186
|
+
source: n === "live" ? "canvas" : "elements",
|
|
195
187
|
luma: o,
|
|
196
|
-
|
|
197
|
-
sampledAt: a,
|
|
188
|
+
sampledAt: i,
|
|
198
189
|
targetRect: v(t)
|
|
199
|
-
}, t.style.setProperty("--glass-backdrop-luma", o.toFixed(3)), t.
|
|
190
|
+
}, t.style.setProperty("--glass-backdrop-luma", o.toFixed(3)), t.setAttribute("data-backdrop-sampled", ""), t.setAttribute("data-backdrop-sample-state", "sampled"), t.setAttribute("data-backdrop-sample-source", n === "live" ? "canvas" : "elements"), t.removeAttribute("data-backdrop-sample-reason"), t.style.setProperty("--glass-backdrop-sampled", "1"), a && t.style.setProperty("--glass-backdrop", s);
|
|
200
191
|
}
|
|
201
192
|
function b(e, t, n, r) {
|
|
202
193
|
l.value = null, u.value = null, d.value = {
|
|
@@ -206,42 +197,39 @@ function ze(e, t = {}) {
|
|
|
206
197
|
reason: n,
|
|
207
198
|
sampledAt: r,
|
|
208
199
|
targetRect: v(e)
|
|
209
|
-
}, e.style.removeProperty("--glass-backdrop-luma"), e.style.removeProperty("--glass-
|
|
200
|
+
}, e.style.removeProperty("--glass-backdrop-luma"), e.style.removeProperty("--glass-backdrop-sampled"), a && e.style.removeProperty("--glass-backdrop"), e.removeAttribute("data-backdrop-sampled"), e.setAttribute("data-backdrop-sample-state", "unavailable"), e.setAttribute("data-backdrop-sample-source", t === "live" ? "canvas" : "elements"), e.setAttribute("data-backdrop-sample-reason", n);
|
|
210
201
|
}
|
|
211
202
|
let x = 0;
|
|
212
203
|
function S() {
|
|
213
|
-
let
|
|
214
|
-
if (!
|
|
215
|
-
let r =
|
|
216
|
-
o ? y(o,
|
|
204
|
+
let t = e.value;
|
|
205
|
+
if (!t || c(t)) return;
|
|
206
|
+
let r = h(), i = g() ? "live" : "static", a = i === "live" ? Ce(n.backgroundCanvas) : null, o = i === "live" ? Te(t, a, r, Oe(t, r)) : ke(t, r), s = Date.now();
|
|
207
|
+
o ? y(o, t, i, s) : b(t, i, i === "live" && !a ? "source-unavailable" : "sample-unavailable", s), x = typeof performance < "u" ? performance.now() : s;
|
|
217
208
|
}
|
|
218
|
-
let
|
|
219
|
-
|
|
209
|
+
let C = T(({ now: e }) => {
|
|
210
|
+
f.value || e - x < o || S();
|
|
220
211
|
}, {
|
|
221
212
|
immediate: !1,
|
|
222
213
|
pauseWhenHidden: !0,
|
|
223
214
|
respectReducedMotion: !0
|
|
224
|
-
}),
|
|
225
|
-
pause: () =>
|
|
215
|
+
}), w = D(() => e.value, {
|
|
216
|
+
pause: () => C.pause(),
|
|
226
217
|
resume: () => {
|
|
227
218
|
let t = e.value;
|
|
228
|
-
t && c(t) ||
|
|
219
|
+
t && c(t) || g() && !f.value && C.resume();
|
|
229
220
|
}
|
|
230
|
-
}, { rootMargin: "200px" }),
|
|
221
|
+
}, { rootMargin: "200px" }), E = _(e, () => S());
|
|
231
222
|
function O() {
|
|
232
|
-
p = f.matches;
|
|
233
223
|
let t = e.value;
|
|
234
224
|
if (t && c(t)) {
|
|
235
|
-
|
|
225
|
+
C.stop();
|
|
236
226
|
return;
|
|
237
227
|
}
|
|
238
|
-
|
|
228
|
+
f.value ? (C.stop(), S()) : g() && C.start();
|
|
239
229
|
}
|
|
240
|
-
let k = () =>
|
|
241
|
-
typeof f.addEventListener == "function" && f.addEventListener("change", k);
|
|
242
|
-
let A = X(() => e.value, (e) => {
|
|
230
|
+
let k = Z(f, O, { flush: "sync" }), A = Z(() => e.value, (e) => {
|
|
243
231
|
if (e) {
|
|
244
|
-
if (
|
|
232
|
+
if (s) e.setAttribute(je, "");
|
|
245
233
|
else if (c(e)) return;
|
|
246
234
|
S(), O();
|
|
247
235
|
}
|
|
@@ -250,335 +238,277 @@ function ze(e, t = {}) {
|
|
|
250
238
|
flush: "post"
|
|
251
239
|
});
|
|
252
240
|
function j() {
|
|
253
|
-
A(),
|
|
241
|
+
A(), k(), C.dispose(), w.dispose(), E.stop(), p = null, m = null;
|
|
254
242
|
}
|
|
255
|
-
return
|
|
256
|
-
luma:
|
|
257
|
-
bucket:
|
|
258
|
-
sample:
|
|
243
|
+
return ne(j), {
|
|
244
|
+
luma: W(l),
|
|
245
|
+
bucket: W(u),
|
|
246
|
+
sample: W(d),
|
|
259
247
|
sampleNow: S,
|
|
260
248
|
dispose: j
|
|
261
249
|
};
|
|
262
250
|
}
|
|
263
251
|
//#endregion
|
|
264
|
-
//#region src/components/dock/composables/isTeleportedTarget.ts
|
|
265
|
-
function Be(e, t) {
|
|
266
|
-
if (!(e instanceof Element)) return !1;
|
|
267
|
-
let n = e.closest("[data-glass-dock-portal]");
|
|
268
|
-
return n ? t ? n.getAttribute("data-glass-dock-owner") === t : !0 : !1;
|
|
269
|
-
}
|
|
270
|
-
//#endregion
|
|
271
252
|
//#region src/components/dock/composables/useDockState.ts
|
|
272
|
-
function
|
|
273
|
-
let { collapseDelay: t = 3600, rootEl: n, alwaysExpanded: r = !1,
|
|
274
|
-
function
|
|
275
|
-
|
|
253
|
+
function Ne(e) {
|
|
254
|
+
let { collapseDelay: t = 3600, rootEl: n, alwaysExpanded: r = !1, interaction: i = "auto", initialExpanded: a = !1, isTransitioning: o, dockId: s, onStateChange: c } = e, l = () => typeof r == "boolean" ? r : r.value, u = () => typeof i == "string" ? i : i.value, d = () => l() || u() === "manual", f = G(l() ? "pinned" : a ? "hover" : "collapsed"), p = A(() => f.value !== "collapsed"), m = A(() => f.value === "pinned"), h = null, g = G(0), _ = G(0), v = A(() => g.value > 0), y = A(() => _.value > 0), b = null, x = null, S = !1, C = null;
|
|
255
|
+
function w() {
|
|
256
|
+
C &&= (clearTimeout(C), null);
|
|
276
257
|
}
|
|
277
|
-
let
|
|
278
|
-
function
|
|
279
|
-
|
|
258
|
+
let T = f.value;
|
|
259
|
+
function E() {
|
|
260
|
+
l() && (f.value = "pinned"), c && T !== f.value && c(f.value, T), T = f.value;
|
|
280
261
|
}
|
|
281
|
-
function
|
|
282
|
-
|
|
262
|
+
function D() {
|
|
263
|
+
h &&= (clearTimeout(h), null);
|
|
283
264
|
}
|
|
284
|
-
function
|
|
285
|
-
|
|
265
|
+
function O() {
|
|
266
|
+
x !== null && (cancelAnimationFrame(x), x = null);
|
|
286
267
|
}
|
|
287
|
-
function
|
|
288
|
-
|
|
268
|
+
function k() {
|
|
269
|
+
O(), b?.();
|
|
289
270
|
}
|
|
290
|
-
function
|
|
291
|
-
|
|
292
|
-
|
|
271
|
+
function j() {
|
|
272
|
+
d() || g.value > 0 || (D(), h = setTimeout(() => {
|
|
273
|
+
f.value = "collapsed", E();
|
|
293
274
|
}, t));
|
|
294
275
|
}
|
|
295
|
-
function
|
|
296
|
-
if (
|
|
297
|
-
|
|
276
|
+
function M() {
|
|
277
|
+
if (l()) {
|
|
278
|
+
f.value = "pinned", E();
|
|
298
279
|
return;
|
|
299
280
|
}
|
|
300
|
-
|
|
281
|
+
S ||= (S = !0, D(), w(), f.value = "collapsed", E(), !1);
|
|
301
282
|
}
|
|
302
|
-
function
|
|
303
|
-
if (
|
|
304
|
-
|
|
283
|
+
function N() {
|
|
284
|
+
if (l()) {
|
|
285
|
+
f.value = "pinned", E();
|
|
305
286
|
return;
|
|
306
287
|
}
|
|
307
|
-
|
|
288
|
+
D(), w(), f.value = "hover", E();
|
|
308
289
|
}
|
|
309
|
-
function
|
|
310
|
-
|
|
311
|
-
|
|
290
|
+
function P() {
|
|
291
|
+
d() || (D(), f.value === "collapsed" && (w(), C = setTimeout(() => {
|
|
292
|
+
C = null, !d() && f.value === "collapsed" && (f.value = "hover", E());
|
|
312
293
|
}, 60)));
|
|
313
294
|
}
|
|
314
|
-
function
|
|
315
|
-
if (!
|
|
316
|
-
if (
|
|
295
|
+
function F(e) {
|
|
296
|
+
if (!d() && (w(), f.value === "hover")) {
|
|
297
|
+
if (g.value > 0) return;
|
|
317
298
|
if (e) {
|
|
318
299
|
let t = n.value;
|
|
319
|
-
if (t && e.relatedTarget instanceof Node && t.contains(e.relatedTarget) ||
|
|
300
|
+
if (t && e.relatedTarget instanceof Node && t.contains(e.relatedTarget) || $(e.relatedTarget, s)) return;
|
|
320
301
|
}
|
|
321
|
-
|
|
302
|
+
j();
|
|
322
303
|
}
|
|
323
304
|
}
|
|
324
|
-
function
|
|
325
|
-
|
|
305
|
+
function I() {
|
|
306
|
+
d() || (D(), f.value === "collapsed" && (f.value = "hover", E()));
|
|
326
307
|
}
|
|
327
|
-
function
|
|
328
|
-
if (
|
|
308
|
+
function ee(e) {
|
|
309
|
+
if (d() || f.value !== "hover" || g.value > 0) return;
|
|
329
310
|
let t = e.currentTarget;
|
|
330
|
-
e.relatedTarget && t.contains(e.relatedTarget) ||
|
|
311
|
+
e.relatedTarget && t.contains(e.relatedTarget) || $(e.relatedTarget, s) || j();
|
|
331
312
|
}
|
|
332
|
-
function
|
|
333
|
-
|
|
334
|
-
l.value = "pinned", x();
|
|
335
|
-
return;
|
|
336
|
-
}
|
|
337
|
-
S(), y(), l.value = "pinned", x();
|
|
313
|
+
function L() {
|
|
314
|
+
d() || (D(), w(), f.value = "pinned", E());
|
|
338
315
|
}
|
|
339
|
-
function
|
|
340
|
-
|
|
316
|
+
function R(e = "morph") {
|
|
317
|
+
g.value++, e === "grasp" && _.value++, D();
|
|
341
318
|
}
|
|
342
|
-
function
|
|
343
|
-
|
|
344
|
-
|
|
319
|
+
function z(e = "morph") {
|
|
320
|
+
e === "grasp" && (_.value = Math.max(0, _.value - 1)), g.value = Math.max(0, g.value - 1), g.value === 0 && f.value === "hover" && (D(), h = setTimeout(() => {
|
|
321
|
+
g.value === 0 && f.value === "hover" && j();
|
|
345
322
|
}, Math.min(t, 800)));
|
|
346
323
|
}
|
|
347
|
-
function
|
|
348
|
-
if (
|
|
324
|
+
function B(e) {
|
|
325
|
+
if (d() || g.value > 0 || o?.value) return;
|
|
349
326
|
let t = n.value;
|
|
350
|
-
!t || t.contains(e.target) ||
|
|
327
|
+
!t || t.contains(e.target) || $(e.target, s) || M();
|
|
351
328
|
}
|
|
352
|
-
return
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
329
|
+
return Z(p, (e) => {
|
|
330
|
+
if (e) {
|
|
331
|
+
if (typeof document > "u") return;
|
|
332
|
+
k(), x = requestAnimationFrame(() => {
|
|
333
|
+
x = null, p.value && (document.addEventListener("pointerdown", B, !0), b = () => {
|
|
334
|
+
document.removeEventListener("pointerdown", B, !0), b = null;
|
|
335
|
+
});
|
|
356
336
|
});
|
|
357
|
-
}
|
|
358
|
-
}), typeof r == "boolean" ? r && (
|
|
337
|
+
} else k();
|
|
338
|
+
}, { immediate: !0 }), typeof r == "boolean" ? r && (f.value = "pinned", E()) : Z(r, (e) => {
|
|
359
339
|
if (e) {
|
|
360
|
-
|
|
340
|
+
D(), f.value = "pinned", E();
|
|
361
341
|
return;
|
|
362
342
|
}
|
|
363
|
-
|
|
364
|
-
},
|
|
365
|
-
|
|
343
|
+
f.value = "collapsed", E();
|
|
344
|
+
}), typeof i != "string" && Z(i, (e) => {
|
|
345
|
+
e === "manual" && (D(), w());
|
|
346
|
+
}), H(() => {
|
|
347
|
+
D(), w(), k();
|
|
366
348
|
}), {
|
|
367
|
-
state:
|
|
368
|
-
expanded:
|
|
369
|
-
isPinned:
|
|
370
|
-
isHeld:
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
349
|
+
state: f,
|
|
350
|
+
expanded: p,
|
|
351
|
+
isPinned: m,
|
|
352
|
+
isHeld: v,
|
|
353
|
+
graspHeld: y,
|
|
354
|
+
onMouseEnter: P,
|
|
355
|
+
onMouseLeave: F,
|
|
356
|
+
onFocusIn: I,
|
|
357
|
+
onFocusOut: ee,
|
|
358
|
+
onClickCollapsed: L,
|
|
359
|
+
keepOpen: R,
|
|
360
|
+
release: z,
|
|
361
|
+
expand: N,
|
|
362
|
+
collapse: M
|
|
380
363
|
};
|
|
381
364
|
}
|
|
382
365
|
//#endregion
|
|
383
366
|
//#region src/components/dock/composables/useDockSpring.ts
|
|
384
|
-
function
|
|
385
|
-
let
|
|
367
|
+
function Pe(e) {
|
|
368
|
+
let t = null, n = () => t !== null && !t.settled;
|
|
386
369
|
function i() {
|
|
387
|
-
|
|
370
|
+
t &&= (t.dispose(), null);
|
|
388
371
|
}
|
|
389
372
|
function a(a, o, s) {
|
|
390
|
-
let c =
|
|
373
|
+
let c = n() ? t.velocity * (s.inheritVelocityScale ?? 1) : 0;
|
|
391
374
|
i();
|
|
392
|
-
let l = new
|
|
393
|
-
response: e.response *
|
|
375
|
+
let l = new he({
|
|
376
|
+
response: e.response * r(),
|
|
394
377
|
dampingFraction: e.dampingFraction,
|
|
395
378
|
initial: a,
|
|
396
379
|
respectReducedMotion: !0
|
|
397
380
|
});
|
|
398
|
-
|
|
399
|
-
s.onFrame(e,
|
|
381
|
+
t = l, l.reset(a, c), l.target = o, l.play((e, n) => {
|
|
382
|
+
s.onFrame(e, n), l.settled && (s.onSettle?.(), t === l && i());
|
|
400
383
|
});
|
|
401
384
|
}
|
|
402
385
|
function o(e) {
|
|
403
|
-
|
|
386
|
+
n() && (t.target = e);
|
|
404
387
|
}
|
|
405
388
|
return {
|
|
406
389
|
playTo: a,
|
|
407
390
|
retarget: o,
|
|
408
391
|
get live() {
|
|
409
|
-
return
|
|
392
|
+
return n();
|
|
410
393
|
},
|
|
411
394
|
get velocity() {
|
|
412
|
-
return
|
|
395
|
+
return n() ? t.velocity : 0;
|
|
413
396
|
},
|
|
414
397
|
dispose: i
|
|
415
398
|
};
|
|
416
399
|
}
|
|
417
400
|
//#endregion
|
|
418
|
-
//#region src/components/dock/composables/
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
function
|
|
425
|
-
let { rootEl: t, outerEl: n, outerActiveLayer: r, outerAxis: i } = e, a = He({
|
|
426
|
-
response: v.response,
|
|
427
|
-
dampingFraction: v.dampingFraction
|
|
428
|
-
}), o = _e("(prefers-reduced-motion: reduce)"), s = /* @__PURE__ */ new Set();
|
|
429
|
-
function c() {
|
|
401
|
+
//#region src/components/dock/composables/useDockMorph.ts
|
|
402
|
+
function Fe(e) {
|
|
403
|
+
let { rootEl: t, outerActiveLayer: n } = e, r = G(n.value), i = G(null), a = Pe({
|
|
404
|
+
response: u.response,
|
|
405
|
+
dampingFraction: u.dampingFraction
|
|
406
|
+
}), o = ge("(prefers-reduced-motion: reduce)");
|
|
407
|
+
function s() {
|
|
430
408
|
return t.value;
|
|
431
409
|
}
|
|
432
|
-
function
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
function u(e) {
|
|
437
|
-
e.leavingLayer.value = null;
|
|
438
|
-
}
|
|
439
|
-
function d() {
|
|
440
|
-
let t = c();
|
|
441
|
-
t && (t.removeAttribute("data-morphing"), t.removeAttribute("data-pane-swap"), t.style.removeProperty("--dock-morph-t")), e.onMorphActiveChange?.(!1), a.dispose();
|
|
442
|
-
}
|
|
443
|
-
function f() {
|
|
444
|
-
for (let e of s) u(e);
|
|
445
|
-
d();
|
|
410
|
+
function c() {
|
|
411
|
+
i.value = null;
|
|
412
|
+
let t = s();
|
|
413
|
+
t && (t.removeAttribute("data-morphing"), t.style.removeProperty("--dock-morph-t")), e.onMorphActiveChange?.(!1), a.dispose();
|
|
446
414
|
}
|
|
447
|
-
|
|
448
|
-
e &&
|
|
415
|
+
Z(o, (e) => {
|
|
416
|
+
e && s()?.hasAttribute("data-morphing") && c();
|
|
449
417
|
});
|
|
450
|
-
function
|
|
451
|
-
let
|
|
452
|
-
|
|
418
|
+
function l() {
|
|
419
|
+
let t = s();
|
|
420
|
+
if (!t) return;
|
|
421
|
+
e.onMorphActiveChange?.(!0), t.setAttribute("data-morphing", "");
|
|
422
|
+
let n = Number.parseFloat(t.style.getPropertyValue("--dock-morph-t")), r = a.live && !Number.isNaN(n), i = r ? 1 - n : 0;
|
|
423
|
+
t.style.setProperty("--dock-morph-t", `${i}`), a.playTo(i, 1, {
|
|
424
|
+
inheritVelocityScale: r ? -1 : 1,
|
|
453
425
|
onFrame: (e) => {
|
|
454
|
-
|
|
455
|
-
t && t.style.setProperty("--dock-morph-t", `${e}`);
|
|
426
|
+
s()?.style.setProperty("--dock-morph-t", `${e}`);
|
|
456
427
|
},
|
|
457
|
-
onSettle:
|
|
458
|
-
|
|
459
|
-
}
|
|
460
|
-
}));
|
|
428
|
+
onSettle: c
|
|
429
|
+
});
|
|
461
430
|
}
|
|
462
|
-
|
|
463
|
-
if (
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
e.leavingLayer.value = n, e.currentLayer.value = t, p(!e.isOuter);
|
|
431
|
+
let d = Z(n, (e, t) => {
|
|
432
|
+
if (e === t) return;
|
|
433
|
+
let n = s();
|
|
434
|
+
if (r.value = e, !n) {
|
|
435
|
+
i.value = null;
|
|
436
|
+
return;
|
|
469
437
|
}
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
axis: e.axis,
|
|
475
|
-
activeLayer: e.activeLayer,
|
|
476
|
-
currentLayer: W(e.activeLayer.value),
|
|
477
|
-
leavingLayer: W(null),
|
|
478
|
-
isOuter: t,
|
|
479
|
-
stop: () => {}
|
|
480
|
-
};
|
|
481
|
-
return n.stop = X(e.activeLayer, (e, t) => {
|
|
482
|
-
m(n, e, t);
|
|
483
|
-
}), s.add(n), n;
|
|
484
|
-
}
|
|
485
|
-
function g(e) {
|
|
486
|
-
e.stop(), s.delete(e), l() || a.dispose();
|
|
487
|
-
}
|
|
488
|
-
let _ = h({
|
|
489
|
-
containerEl: n,
|
|
490
|
-
activeLayer: r,
|
|
491
|
-
axis: i
|
|
492
|
-
}, !0);
|
|
493
|
-
return ne(() => {
|
|
494
|
-
for (let e of s) e.stop();
|
|
495
|
-
s.clear(), a.dispose();
|
|
438
|
+
i.value = t, l();
|
|
439
|
+
});
|
|
440
|
+
return H(() => {
|
|
441
|
+
d(), a.dispose();
|
|
496
442
|
}), {
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
return {
|
|
500
|
-
currentLayer: U(t.currentLayer),
|
|
501
|
-
leavingLayer: U(t.leavingLayer),
|
|
502
|
-
release: () => g(t)
|
|
503
|
-
};
|
|
504
|
-
} },
|
|
505
|
-
outerCurrentLayer: U(_.currentLayer),
|
|
506
|
-
outerLeavingLayer: U(_.leavingLayer)
|
|
443
|
+
outerCurrentLayer: W(r),
|
|
444
|
+
outerLeavingLayer: W(i)
|
|
507
445
|
};
|
|
508
446
|
}
|
|
509
447
|
//#endregion
|
|
510
448
|
//#region src/components/dock/composables/dockMorphMeasure.ts
|
|
511
|
-
function
|
|
512
|
-
return
|
|
513
|
-
}
|
|
514
|
-
function Je(e, t) {
|
|
515
|
-
return e.getBoundingClientRect()[qe(t)];
|
|
516
|
-
}
|
|
517
|
-
function Ye(e) {
|
|
518
|
-
let t = e.ownerDocument.createElement("i");
|
|
519
|
-
t.style.cssText = "position:absolute;visibility:hidden;pointer-events:none;contain:strict;inline-size:var(--dock-morph-min);block-size:0", e.append(t);
|
|
520
|
-
let n = Number.parseFloat(e.ownerDocument.defaultView?.getComputedStyle(t).inlineSize ?? "");
|
|
521
|
-
return t.remove(), Number.isFinite(n) && n > 0 ? n : null;
|
|
449
|
+
function Ie(e, t) {
|
|
450
|
+
return t === "vertical" ? e.offsetHeight : e.offsetWidth;
|
|
522
451
|
}
|
|
523
|
-
function
|
|
524
|
-
let { rootEl: t, contentEl: n,
|
|
525
|
-
function u(e) {
|
|
526
|
-
return e.hasAttribute("data-morphing");
|
|
527
|
-
}
|
|
452
|
+
function Le(e) {
|
|
453
|
+
let { rootEl: t, contentEl: n, expandedEl: r, collapsedEl: i, axis: a, expanded: o } = e, s = null, c = 0, l = 0, u = !1;
|
|
528
454
|
function d() {
|
|
529
|
-
let e = t.value,
|
|
530
|
-
if (!e || !
|
|
531
|
-
let
|
|
532
|
-
if (
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
token: t
|
|
537
|
-
}), e.style.removeProperty("--dock-collapsed-px"), e.style.removeProperty("--dock-expanded-px");
|
|
538
|
-
return;
|
|
539
|
-
}
|
|
540
|
-
if (a.value = null, l || (c = f), !u(e)) {
|
|
541
|
-
let t = Je(e, d);
|
|
542
|
-
t > 0 && (i.value ? s = t : (c = t, l = !0));
|
|
543
|
-
}
|
|
544
|
-
let p = s > 0 ? s : Math.max(Je(o, d), c), m = Math.max(p, c);
|
|
545
|
-
e.style.setProperty("--dock-collapsed-px", `${c}px`), e.style.setProperty("--dock-expanded-px", `${m}px`);
|
|
455
|
+
let e = t.value, s = n.value, u = r.value, d = i.value;
|
|
456
|
+
if (!e || !s || !u || !d || e.hasAttribute("data-morphing")) return;
|
|
457
|
+
let f = a.value, p = Ie(e, f), m = Ie(u, f), h = Ie(d, f);
|
|
458
|
+
if (p <= 0 || m < 0 || h < 0) return;
|
|
459
|
+
o.value ? c = p : l = p;
|
|
460
|
+
let g = o.value ? m : h, _ = Math.max(0, p - g), v = c || _ + m, y = l || _ + h;
|
|
461
|
+
v <= 0 || y <= 0 || (e.style.setProperty("--dock-collapsed-px", `${y}px`), e.style.setProperty("--dock-expanded-px", `${Math.max(v, y)}px`));
|
|
546
462
|
}
|
|
547
|
-
function f(
|
|
548
|
-
|
|
463
|
+
function f() {
|
|
464
|
+
s?.disconnect(), s = null;
|
|
465
|
+
let e = t.value;
|
|
466
|
+
if (e) {
|
|
467
|
+
if (typeof ResizeObserver < "u") {
|
|
468
|
+
s = new ResizeObserver(d);
|
|
469
|
+
for (let t of [
|
|
470
|
+
e,
|
|
471
|
+
n.value,
|
|
472
|
+
r.value,
|
|
473
|
+
i.value
|
|
474
|
+
]) t && s.observe(t);
|
|
475
|
+
}
|
|
476
|
+
d();
|
|
477
|
+
}
|
|
549
478
|
}
|
|
550
|
-
|
|
479
|
+
Z([
|
|
480
|
+
t,
|
|
481
|
+
n,
|
|
482
|
+
r,
|
|
483
|
+
i,
|
|
484
|
+
a
|
|
485
|
+
], f, { immediate: !0 }), Z(o, d);
|
|
551
486
|
let p = typeof document < "u" ? document.fonts : void 0;
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
})
|
|
487
|
+
p && p.ready.then(() => !u && d()), ne(() => {
|
|
488
|
+
u = !0, s?.disconnect(), s = null;
|
|
489
|
+
});
|
|
555
490
|
}
|
|
556
491
|
//#endregion
|
|
557
492
|
//#region src/components/dock/composables/useDockShellProps.ts
|
|
558
|
-
function
|
|
559
|
-
let t =
|
|
560
|
-
if (e.containerName) return {
|
|
561
|
-
"container-type": "inline-size",
|
|
562
|
-
"container-name": e.containerName
|
|
563
|
-
};
|
|
564
|
-
}), n = k(() => e.collapseDelay ?? 3600), r = k(() => e.layout ?? "linear"), i = k(() => e.shape ?? "pill"), a = k(() => e.orientation ?? "horizontal"), o = k(() => e.size ?? "md"), s = k(() => a.value === "vertical" || e.overflow === "wrap" ? null : "dock-scroll-x"), c = k(() => e.alwaysExpanded || r.value === "grid");
|
|
493
|
+
function Re(e) {
|
|
494
|
+
let t = A(() => e.collapseDelay ?? 3600), n = A(() => e.layout ?? "linear"), r = A(() => e.shape ?? "pill"), i = A(() => e.orientation ?? "horizontal"), a = A(() => e.size ?? "md"), o = A(() => i.value === "vertical" || e.overflow === "wrap" ? null : "dock-scroll-x"), s = A(() => e.alwaysExpanded || n.value === "grid");
|
|
565
495
|
return {
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
layoutValue:
|
|
570
|
-
shape:
|
|
571
|
-
orientation:
|
|
572
|
-
size:
|
|
573
|
-
scrollClass:
|
|
574
|
-
alwaysExpanded:
|
|
575
|
-
fitContent:
|
|
496
|
+
collapseDelay: t,
|
|
497
|
+
startCollapsed: A(() => s.value ? !1 : e.startCollapsed ?? !0),
|
|
498
|
+
interaction: A(() => s.value ? "auto" : e.interaction ?? "auto"),
|
|
499
|
+
layoutValue: n,
|
|
500
|
+
shape: r,
|
|
501
|
+
orientation: i,
|
|
502
|
+
size: a,
|
|
503
|
+
scrollClass: o,
|
|
504
|
+
alwaysExpanded: s,
|
|
505
|
+
fitContent: A(() => e.fitContent ?? !1)
|
|
576
506
|
};
|
|
577
507
|
}
|
|
578
508
|
//#endregion
|
|
579
509
|
//#region src/components/dock/composables/useDockClickIntegrity.ts
|
|
580
|
-
function
|
|
581
|
-
let { rootEl: t, visualExpanded: n } = e, r = null, i = !1, a = 0, o = null, s =
|
|
510
|
+
function ze(e) {
|
|
511
|
+
let { rootEl: t, visualExpanded: n } = e, r = null, i = !1, a = 0, o = null, s = G(null), c = null, l = [];
|
|
582
512
|
function u() {
|
|
583
513
|
c?.removeAttribute("data-dock-press-origin"), c = null;
|
|
584
514
|
for (let { element: e, wasInert: t } of l.splice(0)) e.toggleAttribute("inert", t);
|
|
@@ -619,9 +549,9 @@ function Qe(e) {
|
|
|
619
549
|
return !!e && e.hasAttribute("data-morphing");
|
|
620
550
|
}
|
|
621
551
|
function _(e) {
|
|
622
|
-
u(), r = e.target,
|
|
552
|
+
u(), r = e.target, i = g();
|
|
623
553
|
}
|
|
624
|
-
|
|
554
|
+
Z(n, (e, t) => {
|
|
625
555
|
t && !e && r && d(r);
|
|
626
556
|
});
|
|
627
557
|
function v() {
|
|
@@ -648,48 +578,48 @@ function Qe(e) {
|
|
|
648
578
|
e.stopPropagation(), e.preventDefault(), r = null;
|
|
649
579
|
}
|
|
650
580
|
}
|
|
651
|
-
return
|
|
581
|
+
return te(() => {
|
|
652
582
|
f(), u();
|
|
653
583
|
}), {
|
|
654
584
|
onPointerDownCapture: _,
|
|
655
585
|
onPointerCancelCapture: v,
|
|
656
586
|
onClickCapture: b,
|
|
657
587
|
markExpandFlip: p,
|
|
658
|
-
pressKeepaliveLayer:
|
|
588
|
+
pressKeepaliveLayer: W(s)
|
|
659
589
|
};
|
|
660
590
|
}
|
|
661
591
|
//#endregion
|
|
662
592
|
//#region src/components/dock/composables/useDockTouchGate.ts
|
|
663
|
-
function
|
|
664
|
-
let { collapseDelay: t, rootEl: n,
|
|
665
|
-
function
|
|
593
|
+
function Be(e) {
|
|
594
|
+
let { collapseDelay: t, rootEl: n, quiet: r, visualExpanded: i, expanded: a, isPinned: o, expand: s, collapse: c } = e, l = y(t);
|
|
595
|
+
function u() {
|
|
666
596
|
return !r.value;
|
|
667
597
|
}
|
|
668
|
-
function
|
|
669
|
-
if (!
|
|
598
|
+
function d(e) {
|
|
599
|
+
if (!u() || i.value) return;
|
|
670
600
|
let t = n.value, r = e.touches[0];
|
|
671
|
-
!t || !r ||
|
|
601
|
+
!t || !r || l.handleTouchStart(t, r.clientY);
|
|
672
602
|
}
|
|
673
|
-
function
|
|
674
|
-
|
|
603
|
+
function f(e) {
|
|
604
|
+
u() && l.handleScrollCheck(e);
|
|
675
605
|
}
|
|
676
|
-
function
|
|
677
|
-
if (!
|
|
678
|
-
let e =
|
|
679
|
-
|
|
606
|
+
function p() {
|
|
607
|
+
if (!u()) return;
|
|
608
|
+
let e = l.isActive.value;
|
|
609
|
+
l.handleTouchEnd(), !e && l.isActive.value && !i.value && s();
|
|
680
610
|
}
|
|
681
|
-
return
|
|
682
|
-
!e && a.value && !o.value && !r.value &&
|
|
611
|
+
return Z(l.isActive, (e) => {
|
|
612
|
+
!e && a.value && !o.value && !r.value && c();
|
|
683
613
|
}), {
|
|
684
|
-
onTouchStart:
|
|
685
|
-
onTouchMove:
|
|
686
|
-
onTouchEnd:
|
|
687
|
-
deactivate: () =>
|
|
614
|
+
onTouchStart: d,
|
|
615
|
+
onTouchMove: f,
|
|
616
|
+
onTouchEnd: p,
|
|
617
|
+
deactivate: () => l.deactivate()
|
|
688
618
|
};
|
|
689
619
|
}
|
|
690
620
|
//#endregion
|
|
691
621
|
//#region src/components/dock/composables/useDockOverflowFit.ts
|
|
692
|
-
function
|
|
622
|
+
function Ve(e) {
|
|
693
623
|
let t = null, n = null, r = 0;
|
|
694
624
|
function i() {
|
|
695
625
|
return e.value?.querySelector(".dock-layer--full") ?? null;
|
|
@@ -703,7 +633,7 @@ function et(e) {
|
|
|
703
633
|
function o() {
|
|
704
634
|
cancelAnimationFrame(r), r = requestAnimationFrame(a);
|
|
705
635
|
}
|
|
706
|
-
return
|
|
636
|
+
return V(() => {
|
|
707
637
|
let r = e.value, a = i();
|
|
708
638
|
o(), r && (t = new ResizeObserver(o), t.observe(r), a && t.observe(a)), r && (n = new MutationObserver(o), n.observe(r, {
|
|
709
639
|
childList: !0,
|
|
@@ -712,28 +642,36 @@ function et(e) {
|
|
|
712
642
|
attributes: !0,
|
|
713
643
|
attributeFilter: ["class", "hidden"]
|
|
714
644
|
}));
|
|
715
|
-
}),
|
|
645
|
+
}), Z(() => e.value, () => o()), H(() => {
|
|
716
646
|
t?.disconnect(), n?.disconnect(), cancelAnimationFrame(r);
|
|
717
647
|
}), { measure: a };
|
|
718
648
|
}
|
|
719
649
|
//#endregion
|
|
720
650
|
//#region src/components/dock/GlassDock.vue?vue&type=script&setup=true&lang.ts
|
|
721
|
-
var
|
|
651
|
+
var He = [
|
|
722
652
|
"data-size",
|
|
723
653
|
"data-backdrop-mode",
|
|
654
|
+
"data-interaction",
|
|
724
655
|
"data-held",
|
|
725
|
-
"data-search"
|
|
726
|
-
|
|
727
|
-
], nt = { class: "dock-controls" }, rt = {
|
|
656
|
+
"data-search"
|
|
657
|
+
], Ue = ["data-held"], We = { class: "dock-controls" }, Ge = {
|
|
728
658
|
key: 0,
|
|
729
659
|
class: "dock-persistent"
|
|
730
|
-
},
|
|
660
|
+
}, Ke = ["id", "inert"], qe = [
|
|
661
|
+
"id",
|
|
662
|
+
"inert",
|
|
663
|
+
"role",
|
|
664
|
+
"tabindex",
|
|
665
|
+
"aria-label",
|
|
666
|
+
"aria-expanded",
|
|
667
|
+
"aria-controls"
|
|
668
|
+
], Je = {
|
|
731
669
|
key: 0,
|
|
732
670
|
class: "dock-search-field"
|
|
733
|
-
},
|
|
671
|
+
}, Ye = {
|
|
734
672
|
key: 1,
|
|
735
673
|
class: "dock-persistent dock-persistent-end"
|
|
736
|
-
},
|
|
674
|
+
}, Xe = /* @__PURE__ */ I({
|
|
737
675
|
inheritAttrs: !1,
|
|
738
676
|
__name: "GlassDock",
|
|
739
677
|
props: {
|
|
@@ -745,164 +683,203 @@ var tt = [
|
|
|
745
683
|
orientation: {},
|
|
746
684
|
size: {},
|
|
747
685
|
overflow: {},
|
|
748
|
-
containerName: {},
|
|
749
686
|
collapseDelay: {},
|
|
750
687
|
startCollapsed: { type: Boolean },
|
|
688
|
+
interaction: {},
|
|
751
689
|
layout: {},
|
|
752
|
-
autoLuminance: {
|
|
753
|
-
type: Boolean,
|
|
754
|
-
default: !0
|
|
755
|
-
},
|
|
756
690
|
backgroundCanvas: {},
|
|
757
691
|
search: { type: Boolean }
|
|
758
692
|
},
|
|
759
693
|
setup(e, { expose: t }) {
|
|
760
|
-
let n = e, {
|
|
761
|
-
|
|
694
|
+
let n = e, { collapseDelay: r, startCollapsed: i, interaction: a, layoutValue: o, shape: s, orientation: c, size: l, scrollClass: u, alwaysExpanded: p, fitContent: m } = Re(n), h = o, g = X("dockEl"), _ = X("layersEl"), v = X("fullEl"), y = X("summaryEl");
|
|
695
|
+
Ve(g), n.backdropMode === "live" && Me(g, { backgroundCanvas: () => {
|
|
762
696
|
let e = n.backgroundCanvas;
|
|
763
697
|
return typeof e == "function" ? e() : e instanceof HTMLCanvasElement ? e : null;
|
|
764
698
|
} });
|
|
765
|
-
let
|
|
766
|
-
collapseDelay:
|
|
767
|
-
rootEl:
|
|
768
|
-
alwaysExpanded:
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
699
|
+
let x = G(!1), S = `glass-dock-${ae()}`, { expanded: C, isPinned: w, isHeld: T, graspHeld: E, onMouseEnter: D, onMouseLeave: O, onFocusIn: j, onFocusOut: F, onClickCollapsed: I, keepOpen: ee, release: B, expand: te, collapse: V } = Ne({
|
|
700
|
+
collapseDelay: r.value,
|
|
701
|
+
rootEl: g,
|
|
702
|
+
alwaysExpanded: p,
|
|
703
|
+
interaction: a,
|
|
704
|
+
initialExpanded: !i.value,
|
|
705
|
+
isTransitioning: x,
|
|
706
|
+
dockId: S
|
|
707
|
+
}), ne = A(() => p.value || a.value === "manual");
|
|
708
|
+
d({
|
|
709
|
+
id: S,
|
|
774
710
|
orientation: c,
|
|
775
|
-
layout:
|
|
776
|
-
keepOpen:
|
|
777
|
-
release:
|
|
778
|
-
held:
|
|
711
|
+
layout: h,
|
|
712
|
+
keepOpen: ee,
|
|
713
|
+
release: B,
|
|
714
|
+
held: E
|
|
779
715
|
});
|
|
780
|
-
let
|
|
781
|
-
rootEl:
|
|
782
|
-
|
|
783
|
-
outerActiveLayer: I,
|
|
784
|
-
outerAxis: ee,
|
|
716
|
+
let H = A(() => p.value || C.value), W = A(() => H.value ? "full" : "summary"), re = A(() => c.value), { outerCurrentLayer: q, outerLeavingLayer: ie } = Fe({
|
|
717
|
+
rootEl: g,
|
|
718
|
+
outerActiveLayer: W,
|
|
785
719
|
onMorphActiveChange: (e) => {
|
|
786
|
-
|
|
720
|
+
x.value = e;
|
|
787
721
|
}
|
|
722
|
+
}), Y = A(() => a.value === "auto" && q.value === "summary");
|
|
723
|
+
async function Q(e) {
|
|
724
|
+
!Y.value || !["Enter", " "].includes(e.key) || (e.preventDefault(), I(), await R(), (v.value?.querySelector(b) ?? v.value)?.focus({ preventScroll: !0 }));
|
|
725
|
+
}
|
|
726
|
+
async function oe(e) {
|
|
727
|
+
if (a.value !== "auto" || e.key !== "Escape") return;
|
|
728
|
+
let t = e.target?.closest?.(f);
|
|
729
|
+
if (t && v.value?.contains(t)) return;
|
|
730
|
+
V(), await R();
|
|
731
|
+
let n = y.value;
|
|
732
|
+
n && !n.hasAttribute("inert") && n.focus({ preventScroll: !0 });
|
|
733
|
+
}
|
|
734
|
+
Le({
|
|
735
|
+
rootEl: g,
|
|
736
|
+
contentEl: _,
|
|
737
|
+
expandedEl: v,
|
|
738
|
+
collapsedEl: y,
|
|
739
|
+
axis: re,
|
|
740
|
+
expanded: H
|
|
788
741
|
});
|
|
789
|
-
|
|
790
|
-
rootEl:
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
742
|
+
let { onPointerDownCapture: ce, onPointerCancelCapture: le, onClickCapture: ue, markExpandFlip: de, pressKeepaliveLayer: fe } = ze({
|
|
743
|
+
rootEl: g,
|
|
744
|
+
visualExpanded: H
|
|
745
|
+
}), { onTouchStart: pe, onTouchMove: me, onTouchEnd: he, deactivate: ge } = Be({
|
|
746
|
+
collapseDelay: r.value,
|
|
747
|
+
rootEl: g,
|
|
748
|
+
quiet: ne,
|
|
749
|
+
visualExpanded: H,
|
|
750
|
+
expanded: C,
|
|
751
|
+
isPinned: w,
|
|
752
|
+
expand: te,
|
|
753
|
+
collapse: V
|
|
798
754
|
});
|
|
799
|
-
|
|
800
|
-
|
|
755
|
+
Z(H, (e) => {
|
|
756
|
+
e ? de() : ge();
|
|
801
757
|
});
|
|
802
|
-
let
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
alwaysExpanded: d,
|
|
806
|
-
visualExpanded: F,
|
|
807
|
-
expanded: y,
|
|
808
|
-
isPinned: b,
|
|
809
|
-
expand: A,
|
|
810
|
-
collapse: P
|
|
758
|
+
let $ = G(!1);
|
|
759
|
+
Z(E, (e) => {
|
|
760
|
+
e && ($.value = !0);
|
|
811
761
|
});
|
|
812
|
-
|
|
813
|
-
e
|
|
814
|
-
}
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
762
|
+
function _e(e) {
|
|
763
|
+
e.propertyName === "opacity" && !E.value && ($.value = !1);
|
|
764
|
+
}
|
|
765
|
+
return t({
|
|
766
|
+
expanded: C,
|
|
767
|
+
isPinned: w,
|
|
768
|
+
isHeld: T,
|
|
769
|
+
graspHeld: E,
|
|
770
|
+
isTransitioning: x,
|
|
771
|
+
expand: te,
|
|
772
|
+
collapse: V,
|
|
773
|
+
keepOpen: ee,
|
|
774
|
+
release: B
|
|
775
|
+
}), (t, r) => (U(), N("div", L({
|
|
824
776
|
ref_key: "dockEl",
|
|
825
|
-
ref:
|
|
777
|
+
ref: g
|
|
826
778
|
}, t.$attrs, {
|
|
827
779
|
class: ["glass-dock", [
|
|
828
780
|
J(c),
|
|
829
781
|
`shape-${J(s)}`,
|
|
830
|
-
`layout-${J(
|
|
782
|
+
`layout-${J(h)}`,
|
|
831
783
|
J(u),
|
|
832
784
|
{
|
|
833
|
-
expanded:
|
|
834
|
-
collapsed: !
|
|
835
|
-
pinned: J(
|
|
836
|
-
"fit-content": J(
|
|
837
|
-
"always-expanded": J(
|
|
785
|
+
expanded: H.value,
|
|
786
|
+
collapsed: !H.value,
|
|
787
|
+
pinned: J(w),
|
|
788
|
+
"fit-content": J(m),
|
|
789
|
+
"always-expanded": J(p),
|
|
838
790
|
"dock-overflow-wrap": e.overflow === "wrap" && J(c) !== "vertical"
|
|
839
791
|
},
|
|
840
792
|
e.position === "fixed" ? "fixed bottom-(--dock-pos) inset-x-0 mx-auto w-max" : e.position === "sticky" ? "dock-sticky" : "dock-inline"
|
|
841
793
|
]],
|
|
842
|
-
"data-material": "functional-glass",
|
|
843
794
|
"data-size": J(l),
|
|
844
795
|
"data-backdrop-mode": n.backdropMode,
|
|
845
|
-
"data-
|
|
796
|
+
"data-interaction": J(a) === "manual" ? "manual" : void 0,
|
|
797
|
+
"data-held": J(E) || void 0,
|
|
846
798
|
"data-search": e.search || void 0,
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
onClickCapture: i[10] ||= (...e) => J(q) && J(q)(...e)
|
|
859
|
-
}), [i[11] ||= N("div", {
|
|
799
|
+
onMouseenter: r[2] ||= (...e) => J(D) && J(D)(...e),
|
|
800
|
+
onMouseleave: r[3] ||= (e) => J(O)(e),
|
|
801
|
+
onFocusin: r[4] ||= (...e) => J(j) && J(j)(...e),
|
|
802
|
+
onFocusout: r[5] ||= (...e) => J(F) && J(F)(...e),
|
|
803
|
+
onTouchstart: r[6] ||= (...e) => J(pe) && J(pe)(...e),
|
|
804
|
+
onTouchmove: r[7] ||= (...e) => J(me) && J(me)(...e),
|
|
805
|
+
onTouchend: r[8] ||= (...e) => J(he) && J(he)(...e),
|
|
806
|
+
onPointerdownCapture: r[9] ||= (...e) => J(ce) && J(ce)(...e),
|
|
807
|
+
onPointercancelCapture: r[10] ||= (...e) => J(le) && J(le)(...e),
|
|
808
|
+
onClickCapture: r[11] ||= (...e) => J(ue) && J(ue)(...e)
|
|
809
|
+
}), [P("div", {
|
|
860
810
|
class: "dock-plate",
|
|
861
|
-
"aria-hidden": "true"
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
811
|
+
"aria-hidden": "true",
|
|
812
|
+
"data-held": J(E) || void 0
|
|
813
|
+
}, [$.value ? (U(), N(k, { key: 0 }, [r[12] ||= P("span", {
|
|
814
|
+
class: "glass-grasp-carrier",
|
|
815
|
+
"data-grasp": "rest"
|
|
816
|
+
}, null, -1), P("span", {
|
|
817
|
+
class: "glass-grasp-carrier",
|
|
818
|
+
"data-grasp": "grasp",
|
|
819
|
+
onTransitionend: _e
|
|
820
|
+
}, null, 32)], 64)) : M("", !0)], 8, Ue), P("div", We, [
|
|
821
|
+
t.$slots.persistent ? (U(), N("div", Ge, [K(t.$slots, "persistent")])) : M("", !0),
|
|
822
|
+
P("div", {
|
|
865
823
|
ref_key: "layersEl",
|
|
866
|
-
ref:
|
|
824
|
+
ref: _,
|
|
867
825
|
class: "dock-layers"
|
|
868
826
|
}, [
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
827
|
+
P("div", {
|
|
828
|
+
ref_key: "fullEl",
|
|
829
|
+
ref: v,
|
|
830
|
+
id: `${S}-full`,
|
|
831
|
+
class: z(["dock-layer dock-layer--full", {
|
|
832
|
+
"is-active": J(q) === "full",
|
|
833
|
+
"is-leaving": J(ie) === "full" || J(fe) === "full" && J(q) !== "full",
|
|
834
|
+
"is-press-keepalive": J(fe) === "full"
|
|
874
835
|
}]),
|
|
875
|
-
inert: J(
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
836
|
+
inert: J(q) !== "full" && J(fe) !== "full" || void 0,
|
|
837
|
+
tabindex: "-1",
|
|
838
|
+
onKeydown: oe
|
|
839
|
+
}, [K(t.$slots, "default")], 42, Ke),
|
|
840
|
+
P("div", {
|
|
841
|
+
ref_key: "summaryEl",
|
|
842
|
+
ref: y,
|
|
843
|
+
id: `${S}-summary`,
|
|
844
|
+
class: z(["dock-layer dock-layer--summary", {
|
|
845
|
+
"is-active": J(q) === "summary",
|
|
846
|
+
"is-leaving": J(ie) === "summary"
|
|
881
847
|
}]),
|
|
882
|
-
inert: J(
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
848
|
+
inert: J(q) !== "summary" || void 0,
|
|
849
|
+
role: Y.value ? "button" : void 0,
|
|
850
|
+
tabindex: Y.value ? 0 : void 0,
|
|
851
|
+
"aria-label": Y.value ? "Expand dock" : void 0,
|
|
852
|
+
"aria-expanded": Y.value ? "false" : void 0,
|
|
853
|
+
"aria-controls": Y.value ? `${S}-full` : void 0,
|
|
854
|
+
onFocusin: r[0] ||= se(() => {}, ["stop"]),
|
|
855
|
+
onKeydown: Q,
|
|
856
|
+
onClick: r[1] ||= (...e) => J(I) && J(I)(...e)
|
|
857
|
+
}, [K(t.$slots, "collapsed")], 42, qe),
|
|
858
|
+
e.search ? (U(), N("div", Je, [K(t.$slots, "search")])) : M("", !0)
|
|
886
859
|
], 512),
|
|
887
|
-
t.$slots["persistent-end"] ? (
|
|
888
|
-
])], 16,
|
|
860
|
+
t.$slots["persistent-end"] ? (U(), N("div", Ye, [K(t.$slots, "persistent-end")])) : M("", !0)
|
|
861
|
+
])], 16, He));
|
|
889
862
|
}
|
|
890
|
-
}),
|
|
891
|
-
function
|
|
892
|
-
|
|
863
|
+
}), Ze = c("glass-ui:dock-switcher-tablist"), { KEY: Qe } = Ze;
|
|
864
|
+
function $e(e) {
|
|
865
|
+
Ze.provide(e);
|
|
866
|
+
}
|
|
867
|
+
var et = Ze.use, tt = s(g, "[glass-ui:dock] <DockLayer> must be used inside <DockCrossfade> (or <DockLayerGroup>)"), { KEY: nt } = tt;
|
|
868
|
+
function rt(e) {
|
|
869
|
+
tt.provide(e);
|
|
893
870
|
}
|
|
894
|
-
var
|
|
895
|
-
|
|
871
|
+
var it = tt.use;
|
|
872
|
+
tt.useOptional;
|
|
896
873
|
//#endregion
|
|
897
874
|
//#region src/components/dock/DockCrossfade.vue
|
|
898
|
-
var
|
|
875
|
+
var at = /* @__PURE__ */ I({
|
|
899
876
|
__name: "DockCrossfade",
|
|
900
877
|
props: {
|
|
901
878
|
active: {},
|
|
902
879
|
reserve: { default: "block" }
|
|
903
880
|
},
|
|
904
881
|
setup(e, { expose: t }) {
|
|
905
|
-
let n = e, r =
|
|
882
|
+
let n = e, r = G(null), i = G(/* @__PURE__ */ new Map()), a = A(() => [...i.value.values()].map(({ id: e, label: t, icon: n }) => ({
|
|
906
883
|
id: e,
|
|
907
884
|
label: t,
|
|
908
885
|
icon: n
|
|
@@ -911,20 +888,20 @@ var pt = /* @__PURE__ */ F({
|
|
|
911
888
|
let t = new Map(i.value);
|
|
912
889
|
t.set(e.id, e), i.value = t, p();
|
|
913
890
|
}
|
|
914
|
-
function
|
|
891
|
+
function s(e) {
|
|
915
892
|
if (!i.value.has(e)) return;
|
|
916
893
|
let t = new Map(i.value);
|
|
917
894
|
t.delete(e), i.value = t, p();
|
|
918
895
|
}
|
|
919
|
-
let
|
|
920
|
-
|
|
896
|
+
let c = A(() => n.active), l = G(null);
|
|
897
|
+
rt({
|
|
921
898
|
register: o,
|
|
922
|
-
unregister:
|
|
923
|
-
activeId:
|
|
924
|
-
leavingId:
|
|
899
|
+
unregister: s,
|
|
900
|
+
activeId: c,
|
|
901
|
+
leavingId: l,
|
|
925
902
|
faces: a
|
|
926
903
|
});
|
|
927
|
-
let d =
|
|
904
|
+
let d = G(0), f = A(() => n.reserve === "inline" ? "min-inline-size" : "min-block-size");
|
|
928
905
|
function p() {
|
|
929
906
|
let e = 0;
|
|
930
907
|
for (let { el: t } of i.value.values()) {
|
|
@@ -933,19 +910,19 @@ var pt = /* @__PURE__ */ F({
|
|
|
933
910
|
}
|
|
934
911
|
e > d.value && (d.value = e);
|
|
935
912
|
}
|
|
936
|
-
let m =
|
|
913
|
+
let m = A(() => d.value > 0 ? {
|
|
937
914
|
[f.value]: `${d.value}px`,
|
|
938
915
|
"--dock-crossfade-peak": `${d.value}px`
|
|
939
916
|
} : void 0);
|
|
940
|
-
|
|
941
|
-
let h =
|
|
942
|
-
response:
|
|
943
|
-
dampingFraction:
|
|
917
|
+
_(r, () => p());
|
|
918
|
+
let h = Pe({
|
|
919
|
+
response: u.response,
|
|
920
|
+
dampingFraction: u.dampingFraction
|
|
944
921
|
});
|
|
945
922
|
function g(e) {
|
|
946
923
|
return e ? i.value.get(e)?.el : void 0;
|
|
947
924
|
}
|
|
948
|
-
function
|
|
925
|
+
function v(e, t) {
|
|
949
926
|
g(e)?.style.setProperty("--dock-t", `${t}`);
|
|
950
927
|
}
|
|
951
928
|
function y(e) {
|
|
@@ -954,64 +931,64 @@ var pt = /* @__PURE__ */ F({
|
|
|
954
931
|
function b(e) {
|
|
955
932
|
return e < 0 ? 0 : e > 1 ? 1 : e;
|
|
956
933
|
}
|
|
957
|
-
let x =
|
|
958
|
-
|
|
934
|
+
let x = ge("(prefers-reduced-motion: reduce)"), S = null, C = 1;
|
|
935
|
+
Z(x, (e) => {
|
|
959
936
|
e && (h.dispose(), S?.());
|
|
960
937
|
});
|
|
961
|
-
async function
|
|
938
|
+
async function w(e, t) {
|
|
962
939
|
if (typeof document > "u") return;
|
|
963
940
|
let n = g(e), r = document.activeElement;
|
|
964
|
-
!n || !r || !n.contains(r) || (await
|
|
941
|
+
!n || !r || !n.contains(r) || (await R(), (g(t) ?? document.body).focus?.());
|
|
965
942
|
}
|
|
966
|
-
return
|
|
943
|
+
return Z(c, (e, t) => {
|
|
967
944
|
if (e === t) return;
|
|
968
945
|
p();
|
|
969
946
|
let n = g(e), i = g(t);
|
|
970
947
|
if (!n || !i) {
|
|
971
|
-
|
|
948
|
+
l.value = null, y(e), C = 1;
|
|
972
949
|
return;
|
|
973
950
|
}
|
|
974
|
-
let a = u.
|
|
975
|
-
a && a !== e && a !== t && y(a),
|
|
976
|
-
let
|
|
977
|
-
|
|
978
|
-
let s = () => {
|
|
979
|
-
y(e), y(t), r.value?.removeAttribute("data-crossfading"), u.value = null, S === s && (S = null);
|
|
951
|
+
let a = l.value, o = Number.parseFloat(n.style.getPropertyValue("--dock-t")), s = Number.parseFloat(i.style.getPropertyValue("--dock-t")), c = a === e && Number.isFinite(o) ? 1 - b(o) : 0, u = Number.isFinite(s) ? b(s) : 1;
|
|
952
|
+
a && a !== e && a !== t && y(a), l.value = t, v(e, c), v(t, 1 - u), w(t, e), r.value?.setAttribute("data-crossfading", "");
|
|
953
|
+
let d = () => {
|
|
954
|
+
y(e), y(t), r.value?.removeAttribute("data-crossfading"), l.value = null, C = 1, S === d && (S = null);
|
|
980
955
|
};
|
|
981
|
-
if (S =
|
|
982
|
-
|
|
956
|
+
if (S = d, x.value) {
|
|
957
|
+
d();
|
|
983
958
|
return;
|
|
984
959
|
}
|
|
985
|
-
|
|
960
|
+
let f = u > .001 ? -C / u : 0;
|
|
961
|
+
C = 1 - c, h.playTo(0, 1, {
|
|
962
|
+
inheritVelocityScale: f,
|
|
986
963
|
onFrame: (n) => {
|
|
987
|
-
|
|
988
|
-
_(e, r), _(t, r);
|
|
964
|
+
v(e, b(c + (1 - c) * n)), v(t, b(1 - u * (1 - n)));
|
|
989
965
|
},
|
|
990
|
-
onSettle:
|
|
966
|
+
onSettle: d
|
|
991
967
|
});
|
|
992
|
-
}),
|
|
968
|
+
}), te(() => {
|
|
993
969
|
h.dispose(), S = null;
|
|
994
|
-
}), t({ faces: a }), (e, t) => (
|
|
970
|
+
}), t({ faces: a }), (e, t) => (U(), N("div", {
|
|
995
971
|
ref_key: "rootEl",
|
|
996
972
|
ref: r,
|
|
997
973
|
class: "dock-crossfade",
|
|
998
|
-
style:
|
|
974
|
+
style: B(m.value)
|
|
999
975
|
}, [K(e.$slots, "default")], 4));
|
|
1000
976
|
}
|
|
1001
|
-
}),
|
|
977
|
+
}), ot = ["data-motion"], st = ["aria-orientation"], ct = [
|
|
978
|
+
"id",
|
|
1002
979
|
"tabindex",
|
|
1003
|
-
"
|
|
980
|
+
"aria-controls",
|
|
1004
981
|
"aria-label",
|
|
1005
982
|
"onClick"
|
|
1006
|
-
],
|
|
983
|
+
], lt = { key: 1 }, ut = { key: 2 }, dt = /* @__PURE__ */ I({
|
|
1007
984
|
__name: "DockLayerGroup",
|
|
1008
|
-
props:
|
|
985
|
+
props: /*@__PURE__*/ ee({
|
|
1009
986
|
orientation: {},
|
|
1010
|
-
|
|
987
|
+
showSwitcher: {
|
|
1011
988
|
type: Boolean,
|
|
1012
989
|
default: !0
|
|
1013
990
|
},
|
|
1014
|
-
|
|
991
|
+
switcherPosition: { default: "start" },
|
|
1015
992
|
motion: {}
|
|
1016
993
|
}, {
|
|
1017
994
|
active: { required: !0 },
|
|
@@ -1019,114 +996,117 @@ var pt = /* @__PURE__ */ F({
|
|
|
1019
996
|
}),
|
|
1020
997
|
emits: ["update:active"],
|
|
1021
998
|
setup(e) {
|
|
1022
|
-
let t = e, n =
|
|
1023
|
-
options:
|
|
999
|
+
let t = e, n = o(() => t.motion), r = Y(e, "active"), i = m(), a = A(() => t.orientation ?? i?.orientation.value ?? "horizontal"), s = X("crossfade"), c = A(() => s.value?.faces ?? []), l = A(() => a.value === "vertical" ? "horizontal" : "vertical"), u = A(() => l.value === "vertical"), d = G(null), f = G(null), h = G([]), g = S({
|
|
1000
|
+
options: A(() => c.value.map((e) => ({ value: e.id }))),
|
|
1024
1001
|
model: r,
|
|
1025
1002
|
mode: "single",
|
|
1026
1003
|
role: "tablist",
|
|
1027
1004
|
vertical: u,
|
|
1028
1005
|
containerRef: d,
|
|
1029
1006
|
indicatorRef: f,
|
|
1030
|
-
buttonRefs:
|
|
1031
|
-
}),
|
|
1032
|
-
|
|
1007
|
+
buttonRefs: h
|
|
1008
|
+
}), _ = A(() => t.showSwitcher && c.value.length > 1), v = ae(), y = (e) => e.replace(/[^a-zA-Z0-9_-]/g, ""), b = (e) => `dock-tab-${v}-${y(e)}`, x = (e) => `dock-panel-${v}-${y(e)}`;
|
|
1009
|
+
$e({
|
|
1010
|
+
isTablist: _,
|
|
1011
|
+
tabId: b,
|
|
1012
|
+
panelId: x
|
|
1013
|
+
});
|
|
1014
|
+
let w = A(() => u.value ? "y" : "x");
|
|
1015
|
+
function T() {
|
|
1033
1016
|
let e = d.value;
|
|
1034
1017
|
if (!e) return [];
|
|
1035
1018
|
let t = Array.from(e.querySelectorAll(".dock-layer-tab"));
|
|
1036
1019
|
return c.value.map((e, n) => {
|
|
1037
|
-
let r = t[n]?.getBoundingClientRect(), i = r ?
|
|
1020
|
+
let r = t[n]?.getBoundingClientRect(), i = r ? w.value === "y" ? r.top + r.height / 2 : r.left + r.width / 2 : 0;
|
|
1038
1021
|
return {
|
|
1039
1022
|
value: e.id,
|
|
1040
1023
|
center: i
|
|
1041
1024
|
};
|
|
1042
1025
|
});
|
|
1043
1026
|
}
|
|
1044
|
-
let
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1027
|
+
let E = C({
|
|
1028
|
+
handle: d,
|
|
1029
|
+
surface: f,
|
|
1030
|
+
axis: () => w.value,
|
|
1031
|
+
snapTargets: T,
|
|
1048
1032
|
onSnap: (e) => {
|
|
1049
1033
|
n.armed.value && r.value !== e && (r.value = e);
|
|
1050
1034
|
}
|
|
1051
1035
|
});
|
|
1052
|
-
|
|
1036
|
+
Z(() => [
|
|
1053
1037
|
c.value.length,
|
|
1054
1038
|
l.value,
|
|
1055
1039
|
n.armed.value
|
|
1056
1040
|
], () => {
|
|
1057
|
-
n.armed.value &&
|
|
1058
|
-
}),
|
|
1059
|
-
n.armed.value &&
|
|
1041
|
+
n.armed.value && R(() => E.refresh());
|
|
1042
|
+
}), V(() => {
|
|
1043
|
+
n.armed.value && R(() => E.refresh());
|
|
1060
1044
|
});
|
|
1061
|
-
function
|
|
1045
|
+
function D(e) {
|
|
1062
1046
|
return typeof e == "object" && !!e || typeof e == "function";
|
|
1063
1047
|
}
|
|
1064
|
-
let
|
|
1065
|
-
function
|
|
1066
|
-
|
|
1048
|
+
let O = p(() => i);
|
|
1049
|
+
function I() {
|
|
1050
|
+
O.acquire();
|
|
1067
1051
|
}
|
|
1068
|
-
function
|
|
1052
|
+
function ee(e) {
|
|
1069
1053
|
let t = e.relatedTarget, n = e.currentTarget;
|
|
1070
|
-
t && n?.contains(t) ||
|
|
1054
|
+
t && n?.contains(t) || O.release();
|
|
1071
1055
|
}
|
|
1072
|
-
return
|
|
1073
|
-
|
|
1074
|
-
}), (t, i) => (H(), M("div", {
|
|
1075
|
-
class: R(["dock-layer-group", [o.value, `rail-${e.railPosition}`]]),
|
|
1056
|
+
return (t, i) => (U(), N("div", {
|
|
1057
|
+
class: z(["dock-layer-group", [a.value, `switcher-${e.switcherPosition}`]]),
|
|
1076
1058
|
"data-motion": J(n).dataMotion.value,
|
|
1077
|
-
style:
|
|
1078
|
-
}, [
|
|
1059
|
+
style: B(J(n).hostStyle.value)
|
|
1060
|
+
}, [_.value ? (U(), N("div", {
|
|
1079
1061
|
key: 0,
|
|
1080
|
-
ref_key: "
|
|
1062
|
+
ref_key: "switcherListEl",
|
|
1081
1063
|
ref: d,
|
|
1082
1064
|
role: "tablist",
|
|
1083
|
-
class:
|
|
1084
|
-
e.railPosition,
|
|
1085
|
-
J(n).armed.value && "glass-drag-grabbable",
|
|
1086
|
-
J(n).armed.value && J(v).dragging.value && "glass-drag-lift"
|
|
1087
|
-
]]),
|
|
1065
|
+
class: z(["dock-layer-switcher", [e.switcherPosition, J(n).armed.value && "glass-drag-grabbable"]]),
|
|
1088
1066
|
"aria-orientation": l.value,
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
}, [(H(!0), M(O, null, G(c.value, (e, t) => (H(), M("button", L({
|
|
1067
|
+
onKeydown: i[0] ||= (...e) => J(g).onKeydown && J(g).onKeydown(...e),
|
|
1068
|
+
onFocusin: I,
|
|
1069
|
+
onFocusout: ee
|
|
1070
|
+
}, [(U(!0), N(k, null, re(c.value, (e, t) => (U(), N("button", L({
|
|
1094
1071
|
key: e.id,
|
|
1095
1072
|
ref_for: !0,
|
|
1096
1073
|
ref: (e) => {
|
|
1097
|
-
e && (
|
|
1074
|
+
e && (h.value[t] = e);
|
|
1098
1075
|
},
|
|
1099
1076
|
type: "button",
|
|
1100
1077
|
class: "dock-layer-tab",
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1078
|
+
id: b(e.id),
|
|
1079
|
+
tabindex: J(g).rovingTabindex(t)
|
|
1080
|
+
}, { ref_for: !0 }, J(g).itemAttrs(e.id), {
|
|
1081
|
+
"aria-controls": x(e.id),
|
|
1104
1082
|
"aria-label": e.label ?? e.id,
|
|
1105
|
-
onClick: (n) => J(
|
|
1106
|
-
}), [
|
|
1083
|
+
onClick: (n) => J(g).select(e.id, t)
|
|
1084
|
+
}), [D(e.icon) ? (U(), j(q(e.icon), {
|
|
1107
1085
|
key: 0,
|
|
1108
1086
|
class: "size-4"
|
|
1109
|
-
})) : typeof e.icon == "string" ? (
|
|
1110
|
-
ref_key: "
|
|
1087
|
+
})) : typeof e.icon == "string" ? (U(), N("span", lt, ie(e.icon), 1)) : (U(), N("span", ut, ie((e.label ?? e.id).charAt(0)), 1))], 16, ct))), 128)), P("div", {
|
|
1088
|
+
ref_key: "switcherIndicatorEl",
|
|
1111
1089
|
ref: f,
|
|
1112
|
-
class: "dock-layer-tab-indicator",
|
|
1113
|
-
style:
|
|
1090
|
+
class: z(["dock-layer-tab-indicator", J(n).armed.value && J(E).dragging.value && "glass-drag-lift"]),
|
|
1091
|
+
style: B(J(g).singleSliderStyle.value),
|
|
1114
1092
|
"aria-hidden": "true"
|
|
1115
|
-
}, null,
|
|
1093
|
+
}, null, 6)], 42, st)) : M("", !0), F(at, {
|
|
1116
1094
|
ref_key: "crossfade",
|
|
1117
1095
|
ref: s,
|
|
1118
|
-
active: r.value
|
|
1119
|
-
class: "dock-layer-stack"
|
|
1096
|
+
active: r.value
|
|
1120
1097
|
}, {
|
|
1121
|
-
default:
|
|
1098
|
+
default: Q(() => [K(t.$slots, "default")]),
|
|
1122
1099
|
_: 3
|
|
1123
|
-
}, 8, ["active"])], 14,
|
|
1100
|
+
}, 8, ["active"])], 14, ot));
|
|
1124
1101
|
}
|
|
1125
|
-
}),
|
|
1102
|
+
}), ft = [
|
|
1103
|
+
"role",
|
|
1104
|
+
"id",
|
|
1105
|
+
"aria-labelledby",
|
|
1126
1106
|
"inert",
|
|
1127
1107
|
"aria-hidden",
|
|
1128
1108
|
"tabindex"
|
|
1129
|
-
],
|
|
1109
|
+
], pt = { class: "dock-face-content" }, mt = /* @__PURE__ */ I({
|
|
1130
1110
|
__name: "DockLayer",
|
|
1131
1111
|
props: {
|
|
1132
1112
|
id: {},
|
|
@@ -1134,15 +1114,15 @@ var pt = /* @__PURE__ */ F({
|
|
|
1134
1114
|
icon: {}
|
|
1135
1115
|
},
|
|
1136
1116
|
setup(e) {
|
|
1137
|
-
let t = e, n =
|
|
1138
|
-
|
|
1117
|
+
let t = e, n = it(), r = X("hostEl");
|
|
1118
|
+
V(() => {
|
|
1139
1119
|
r.value && n.register({
|
|
1140
1120
|
id: t.id,
|
|
1141
1121
|
label: t.label,
|
|
1142
1122
|
icon: t.icon,
|
|
1143
1123
|
el: r.value
|
|
1144
1124
|
});
|
|
1145
|
-
}),
|
|
1125
|
+
}), Z(() => [
|
|
1146
1126
|
t.id,
|
|
1147
1127
|
t.label,
|
|
1148
1128
|
t.icon
|
|
@@ -1153,21 +1133,24 @@ var pt = /* @__PURE__ */ F({
|
|
|
1153
1133
|
icon: t.icon,
|
|
1154
1134
|
el: r.value
|
|
1155
1135
|
});
|
|
1156
|
-
}),
|
|
1157
|
-
let i =
|
|
1158
|
-
return (e, t) => (
|
|
1136
|
+
}), te(() => n.unregister(t.id));
|
|
1137
|
+
let i = A(() => n.activeId.value === t.id), a = A(() => n.leavingId.value === t.id), o = et(), s = A(() => o?.isTablist.value ?? !1), c = A(() => s.value ? o.panelId(t.id) : void 0), l = A(() => s.value ? o.tabId(t.id) : void 0);
|
|
1138
|
+
return (e, t) => (U(), N("div", {
|
|
1159
1139
|
ref_key: "hostEl",
|
|
1160
1140
|
ref: r,
|
|
1161
|
-
class:
|
|
1141
|
+
class: z(["dock-face", {
|
|
1162
1142
|
"is-active": i.value,
|
|
1163
1143
|
"is-leaving": a.value
|
|
1164
1144
|
}]),
|
|
1165
|
-
|
|
1166
|
-
|
|
1145
|
+
role: s.value ? "tabpanel" : void 0,
|
|
1146
|
+
id: c.value,
|
|
1147
|
+
"aria-labelledby": l.value,
|
|
1148
|
+
inert: !i.value || void 0,
|
|
1149
|
+
"aria-hidden": !i.value || void 0,
|
|
1167
1150
|
tabindex: i.value ? -1 : void 0
|
|
1168
|
-
}, [
|
|
1151
|
+
}, [P("div", pt, [K(e.$slots, "default")])], 10, ft));
|
|
1169
1152
|
}
|
|
1170
|
-
}),
|
|
1153
|
+
}), ht = /* @__PURE__ */ I({
|
|
1171
1154
|
__name: "DockControl",
|
|
1172
1155
|
props: {
|
|
1173
1156
|
shape: { default: "icon" },
|
|
@@ -1177,7 +1160,7 @@ var pt = /* @__PURE__ */ F({
|
|
|
1177
1160
|
},
|
|
1178
1161
|
active: {
|
|
1179
1162
|
type: Boolean,
|
|
1180
|
-
default:
|
|
1163
|
+
default: void 0
|
|
1181
1164
|
},
|
|
1182
1165
|
type: { default: "button" },
|
|
1183
1166
|
disabled: {
|
|
@@ -1198,28 +1181,25 @@ var pt = /* @__PURE__ */ F({
|
|
|
1198
1181
|
] }
|
|
1199
1182
|
},
|
|
1200
1183
|
setup(t) {
|
|
1201
|
-
let
|
|
1202
|
-
...
|
|
1203
|
-
"aria-pressed":
|
|
1204
|
-
"data-active": ""
|
|
1205
|
-
}
|
|
1206
|
-
...
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
} : {}
|
|
1210
|
-
})), l = k(() => !a.asChild && a.as === "button" ? { type: a.type } : {}), u = n("press"), d = r({
|
|
1211
|
-
disabled: () => a.disabled || o.value,
|
|
1184
|
+
let r = t, o = A(() => r.shape === "tab"), s = A(() => o.value ? e("dock-tab-button glass-specular-track", r.class) : e("dock-icon-button glass-specular-track glass-capsule-hover", { "glass-capsule": r.active }, { "dock-icon-button--compact": r.compact }, r.class)), c = A(() => ({
|
|
1185
|
+
...r.active === void 0 ? {} : {
|
|
1186
|
+
"aria-pressed": String(r.active),
|
|
1187
|
+
...r.active ? { "data-active": "" } : {}
|
|
1188
|
+
},
|
|
1189
|
+
...r.disabled ? { "aria-disabled": "true" } : {}
|
|
1190
|
+
})), l = A(() => !r.asChild && r.as === "button" ? { type: r.type } : {}), u = i("press"), d = a({
|
|
1191
|
+
disabled: () => r.disabled || o.value,
|
|
1212
1192
|
squish: !0,
|
|
1213
1193
|
response: u.response,
|
|
1214
1194
|
dampingFraction: u.dampingFraction,
|
|
1215
1195
|
pressVar: "--dock-press-t",
|
|
1216
1196
|
shrinkDepth: .04,
|
|
1217
1197
|
maxStretch: 1.03
|
|
1218
|
-
}), f =
|
|
1198
|
+
}), f = A(() => o.value ? {} : { ...d.pressStyle.value });
|
|
1219
1199
|
function p(e) {
|
|
1220
|
-
|
|
1200
|
+
r.disabled && (e.preventDefault(), e.stopImmediatePropagation());
|
|
1221
1201
|
}
|
|
1222
|
-
return (e,
|
|
1202
|
+
return (e, r) => oe((U(), j(J(le), L({
|
|
1223
1203
|
as: t.as,
|
|
1224
1204
|
"as-child": t.asChild
|
|
1225
1205
|
}, {
|
|
@@ -1239,7 +1219,7 @@ var pt = /* @__PURE__ */ F({
|
|
|
1239
1219
|
onBlur: J(d).handlers.onBlur,
|
|
1240
1220
|
onClickCapture: p
|
|
1241
1221
|
}), {
|
|
1242
|
-
default:
|
|
1222
|
+
default: Q(() => [K(e.$slots, "default")]),
|
|
1243
1223
|
_: 3
|
|
1244
1224
|
}, 16, [
|
|
1245
1225
|
"as",
|
|
@@ -1255,9 +1235,9 @@ var pt = /* @__PURE__ */ F({
|
|
|
1255
1235
|
"onKeydown",
|
|
1256
1236
|
"onKeyup",
|
|
1257
1237
|
"onBlur"
|
|
1258
|
-
])), [[J(
|
|
1238
|
+
])), [[J(n)]]);
|
|
1259
1239
|
}
|
|
1260
|
-
}),
|
|
1240
|
+
}), gt = /* @__PURE__ */ I({
|
|
1261
1241
|
inheritAttrs: !1,
|
|
1262
1242
|
__name: "DockTrigger",
|
|
1263
1243
|
props: {
|
|
@@ -1271,28 +1251,28 @@ var pt = /* @__PURE__ */ F({
|
|
|
1271
1251
|
] }
|
|
1272
1252
|
},
|
|
1273
1253
|
setup(t) {
|
|
1274
|
-
let
|
|
1275
|
-
return (e, t) =>
|
|
1276
|
-
default:
|
|
1277
|
-
default:
|
|
1254
|
+
let r = t, i = A(() => e("dock-trigger", r.for === "select" && "dock-select-trigger", r.for !== "select" && "dock-dropdown-trigger", r.class));
|
|
1255
|
+
return (e, t) => r.for === "select" ? oe((U(), j(J(de), L({ key: 0 }, e.$attrs, { class: i.value }), {
|
|
1256
|
+
default: Q(() => [K(e.$slots, "default"), F(J(ue), { "as-child": "" }, {
|
|
1257
|
+
default: Q(() => [K(e.$slots, "icon", {}, () => [F(J(fe), {
|
|
1278
1258
|
class: "dock-select-trigger__chevron",
|
|
1279
1259
|
"aria-hidden": "true"
|
|
1280
1260
|
})])]),
|
|
1281
1261
|
_: 3
|
|
1282
1262
|
})]),
|
|
1283
1263
|
_: 3
|
|
1284
|
-
}, 16, ["class"])), [[J(
|
|
1264
|
+
}, 16, ["class"])), [[J(n)]]) : r.for === "dropdown" ? oe((U(), j(x, L({ key: 1 }, e.$attrs, {
|
|
1285
1265
|
action: "pointerdown",
|
|
1286
|
-
class:
|
|
1266
|
+
class: i.value
|
|
1287
1267
|
}), {
|
|
1288
|
-
default:
|
|
1268
|
+
default: Q(() => [K(e.$slots, "default")]),
|
|
1289
1269
|
_: 3
|
|
1290
|
-
}, 16, ["class"])), [[J(
|
|
1291
|
-
default:
|
|
1270
|
+
}, 16, ["class"])), [[J(n)]]) : oe((U(), j(J(ce), L({ key: 2 }, e.$attrs, { class: i.value }), {
|
|
1271
|
+
default: Q(() => [K(e.$slots, "default")]),
|
|
1292
1272
|
_: 3
|
|
1293
|
-
}, 16, ["class"])), [[J(
|
|
1273
|
+
}, 16, ["class"])), [[J(n)]]);
|
|
1294
1274
|
}
|
|
1295
|
-
}),
|
|
1275
|
+
}), _t = /* @__PURE__ */ I({
|
|
1296
1276
|
__name: "DockBackgroundToggle",
|
|
1297
1277
|
props: {
|
|
1298
1278
|
paused: {
|
|
@@ -1304,23 +1284,22 @@ var pt = /* @__PURE__ */ F({
|
|
|
1304
1284
|
},
|
|
1305
1285
|
emits: ["update:paused"],
|
|
1306
1286
|
setup(e, { emit: t }) {
|
|
1307
|
-
let n = e, r = t, i =
|
|
1287
|
+
let n = e, r = t, i = A(() => n.paused ? n.playLabel : n.pauseLabel);
|
|
1308
1288
|
function a() {
|
|
1309
1289
|
r("update:paused", !n.paused);
|
|
1310
1290
|
}
|
|
1311
|
-
return (t, n) => (
|
|
1291
|
+
return (t, n) => (U(), j(ht, {
|
|
1312
1292
|
type: "button",
|
|
1313
1293
|
active: e.paused,
|
|
1314
1294
|
"aria-pressed": e.paused,
|
|
1315
1295
|
"aria-label": i.value,
|
|
1316
|
-
title: i.value,
|
|
1317
1296
|
onClick: a
|
|
1318
1297
|
}, {
|
|
1319
|
-
default:
|
|
1298
|
+
default: Q(() => [e.paused ? (U(), j(J(me), {
|
|
1320
1299
|
key: 0,
|
|
1321
1300
|
size: 18,
|
|
1322
1301
|
"aria-hidden": "true"
|
|
1323
|
-
})) : (
|
|
1302
|
+
})) : (U(), j(J(pe), {
|
|
1324
1303
|
key: 1,
|
|
1325
1304
|
size: 18,
|
|
1326
1305
|
"aria-hidden": "true"
|
|
@@ -1329,336 +1308,39 @@ var pt = /* @__PURE__ */ F({
|
|
|
1329
1308
|
}, 8, [
|
|
1330
1309
|
"active",
|
|
1331
1310
|
"aria-pressed",
|
|
1332
|
-
"aria-label"
|
|
1333
|
-
"title"
|
|
1311
|
+
"aria-label"
|
|
1334
1312
|
]));
|
|
1335
1313
|
}
|
|
1336
|
-
}),
|
|
1314
|
+
}), vt = [
|
|
1337
1315
|
"data-orientation",
|
|
1338
|
-
"data-
|
|
1316
|
+
"data-dock-hairline",
|
|
1339
1317
|
"aria-orientation"
|
|
1340
|
-
],
|
|
1318
|
+
], yt = /* @__PURE__ */ I({
|
|
1341
1319
|
__name: "DockSeparator",
|
|
1342
1320
|
props: { anchor: {
|
|
1343
1321
|
type: Boolean,
|
|
1344
1322
|
default: !1
|
|
1345
1323
|
} },
|
|
1346
1324
|
setup(e) {
|
|
1347
|
-
let t = m(), n =
|
|
1348
|
-
return (t, n) => (
|
|
1349
|
-
class:
|
|
1325
|
+
let t = m(), n = A(() => t?.orientation.value ?? "horizontal"), r = A(() => n.value), i = A(() => n.value === "vertical" ? "horizontal" : "vertical");
|
|
1326
|
+
return (t, n) => (U(), N("div", {
|
|
1327
|
+
class: z(["dock-separator", { "dock-hairline": e.anchor }]),
|
|
1350
1328
|
role: "separator",
|
|
1351
1329
|
"data-orientation": r.value,
|
|
1352
|
-
"data-
|
|
1330
|
+
"data-dock-hairline": e.anchor || void 0,
|
|
1353
1331
|
"aria-orientation": i.value
|
|
1354
|
-
}, null, 10,
|
|
1355
|
-
}
|
|
1356
|
-
});
|
|
1357
|
-
//#endregion
|
|
1358
|
-
//#region src/components/dock/composables/useDockPopover.ts
|
|
1359
|
-
function Ot(e) {
|
|
1360
|
-
let t = W(!1), n = e.gap ?? 8, r = e.viewportMargin ?? 8, i = e.hoverIntentMs ?? 60, a = e.hoverGraceMs ?? 120, o = null, s = null, c = !1, l = !1;
|
|
1361
|
-
function u() {
|
|
1362
|
-
o != null && (clearTimeout(o), o = null);
|
|
1363
|
-
}
|
|
1364
|
-
function d() {
|
|
1365
|
-
s != null && (clearTimeout(s), s = null);
|
|
1366
|
-
}
|
|
1367
|
-
function f() {
|
|
1368
|
-
let t = e.anchor(), i = e.popover.value;
|
|
1369
|
-
if (!t || !i) return;
|
|
1370
|
-
let a = t.getBoundingClientRect(), o = i.offsetWidth, s = i.offsetHeight, c = ie(e.side) ?? "top", l = ie(e.align) ?? "center", u = (e, t, n) => l === "start" ? e : l === "end" ? e + t - n : e + t / 2 - n / 2, d = 0, f = 0;
|
|
1371
|
-
switch (c) {
|
|
1372
|
-
case "bottom":
|
|
1373
|
-
d = a.bottom + n, f = u(a.left, a.width, o);
|
|
1374
|
-
break;
|
|
1375
|
-
case "left":
|
|
1376
|
-
f = a.left - o - n, d = u(a.top, a.height, s);
|
|
1377
|
-
break;
|
|
1378
|
-
case "right":
|
|
1379
|
-
f = a.right + n, d = u(a.top, a.height, s);
|
|
1380
|
-
break;
|
|
1381
|
-
default:
|
|
1382
|
-
d = a.top - s - n, f = u(a.left, a.width, o);
|
|
1383
|
-
break;
|
|
1384
|
-
}
|
|
1385
|
-
let p = Math.max(r, window.innerWidth - o - r), m = Math.max(r, window.innerHeight - s - r);
|
|
1386
|
-
f = Math.min(Math.max(f, r), p), d = Math.min(Math.max(d, r), m), i.style.position = "fixed", i.style.margin = "0", i.style.inset = "auto", i.style.top = `${Math.round(d)}px`, i.style.left = `${Math.round(f)}px`;
|
|
1387
|
-
}
|
|
1388
|
-
function p() {
|
|
1389
|
-
f();
|
|
1390
|
-
}
|
|
1391
|
-
function m(t) {
|
|
1392
|
-
let n = t.target, r = e.popover.value, i = e.anchor();
|
|
1393
|
-
n && (r && r.contains(n) || i && i.contains(n)) || v();
|
|
1394
|
-
}
|
|
1395
|
-
function h() {
|
|
1396
|
-
c || (c = !0, window.addEventListener("resize", p), window.addEventListener("scroll", p, !0), document.addEventListener("pointerdown", m, !0));
|
|
1397
|
-
}
|
|
1398
|
-
function g() {
|
|
1399
|
-
c && (c = !1, window.removeEventListener("resize", p), window.removeEventListener("scroll", p, !0), document.removeEventListener("pointerdown", m, !0));
|
|
1400
|
-
}
|
|
1401
|
-
function _() {
|
|
1402
|
-
u(), d();
|
|
1403
|
-
let n = e.popover.value;
|
|
1404
|
-
if (!(!n || t.value)) {
|
|
1405
|
-
try {
|
|
1406
|
-
n.showPopover();
|
|
1407
|
-
} catch {
|
|
1408
|
-
return;
|
|
1409
|
-
}
|
|
1410
|
-
t.value = !0, f(), h();
|
|
1411
|
-
}
|
|
1412
|
-
}
|
|
1413
|
-
function v() {
|
|
1414
|
-
u(), d();
|
|
1415
|
-
let n = e.popover.value;
|
|
1416
|
-
if (!n || !t.value) return;
|
|
1417
|
-
let r = n.contains(document.activeElement);
|
|
1418
|
-
try {
|
|
1419
|
-
n.hidePopover();
|
|
1420
|
-
} catch {}
|
|
1421
|
-
if (t.value = !1, g(), r) {
|
|
1422
|
-
l = !0;
|
|
1423
|
-
try {
|
|
1424
|
-
e.anchor()?.focus();
|
|
1425
|
-
} finally {
|
|
1426
|
-
l = !1;
|
|
1427
|
-
}
|
|
1428
|
-
}
|
|
1429
|
-
}
|
|
1430
|
-
function y() {
|
|
1431
|
-
t.value ? v() : _();
|
|
1432
|
-
}
|
|
1433
|
-
function b() {
|
|
1434
|
-
d(), !t.value && (u(), o = setTimeout(() => {
|
|
1435
|
-
o = null, _();
|
|
1436
|
-
}, i));
|
|
1437
|
-
}
|
|
1438
|
-
function x() {
|
|
1439
|
-
u(), D();
|
|
1440
|
-
}
|
|
1441
|
-
function S() {
|
|
1442
|
-
u(), d();
|
|
1443
|
-
}
|
|
1444
|
-
function C() {
|
|
1445
|
-
D();
|
|
1446
|
-
}
|
|
1447
|
-
function w() {
|
|
1448
|
-
l || (u(), d(), _());
|
|
1449
|
-
}
|
|
1450
|
-
function T(t) {
|
|
1451
|
-
let n = t.relatedTarget, r = e.popover.value, i = e.anchor();
|
|
1452
|
-
n && (r && r.contains(n) || i && i.contains(n)) || v();
|
|
1453
|
-
}
|
|
1454
|
-
function E(e) {
|
|
1455
|
-
t.value && (e.preventDefault(), e.stopPropagation(), v());
|
|
1456
|
-
}
|
|
1457
|
-
function D() {
|
|
1458
|
-
d(), s = setTimeout(() => {
|
|
1459
|
-
s = null, v();
|
|
1460
|
-
}, a);
|
|
1461
|
-
}
|
|
1462
|
-
return V(() => {
|
|
1463
|
-
u(), d(), g();
|
|
1464
|
-
let n = e.popover.value;
|
|
1465
|
-
if (n && t.value) try {
|
|
1466
|
-
n.hidePopover();
|
|
1467
|
-
} catch {}
|
|
1468
|
-
}), {
|
|
1469
|
-
open: t,
|
|
1470
|
-
show: _,
|
|
1471
|
-
hide: v,
|
|
1472
|
-
toggle: y,
|
|
1473
|
-
place: f,
|
|
1474
|
-
onAnchorEnter: b,
|
|
1475
|
-
onAnchorLeave: x,
|
|
1476
|
-
onPopoverEnter: S,
|
|
1477
|
-
onPopoverLeave: C,
|
|
1478
|
-
onFocusIn: w,
|
|
1479
|
-
onFocusOut: T,
|
|
1480
|
-
onEscape: E
|
|
1481
|
-
};
|
|
1482
|
-
}
|
|
1483
|
-
//#endregion
|
|
1484
|
-
//#region src/components/dock/DockStack.vue?vue&type=script&setup=true&lang.ts
|
|
1485
|
-
var kt = ["data-orientation", "data-mode"], At = ["data-scrolls", "data-wrap"], jt = /* @__PURE__ */ F({
|
|
1486
|
-
__name: "DockStack",
|
|
1487
|
-
props: /* @__PURE__ */ I({
|
|
1488
|
-
items: {},
|
|
1489
|
-
mode: { default: "stack" },
|
|
1490
|
-
core: {},
|
|
1491
|
-
coreLabel: { default: "Open stack" },
|
|
1492
|
-
visibleCount: { default: 3 },
|
|
1493
|
-
wrap: {
|
|
1494
|
-
type: Boolean,
|
|
1495
|
-
default: !1
|
|
1496
|
-
},
|
|
1497
|
-
position: { default: "end" }
|
|
1498
|
-
}, {
|
|
1499
|
-
selected: {},
|
|
1500
|
-
selectedModifiers: {}
|
|
1501
|
-
}),
|
|
1502
|
-
emits: /* @__PURE__ */ I(["select"], ["update:selected"]),
|
|
1503
|
-
setup(e, { emit: t }) {
|
|
1504
|
-
let n = e, r = t, i = oe(e, "selected"), a = m(), o = k(() => a?.orientation.value ?? "vertical"), s = k(() => n.core ?? pe), c = k(() => [...n.items]), l = k(() => n.mode === "facets"), u = k(() => c.value.length > n.visibleCount), d = `dock-stack-fan-${ae()}`, f = Y("stackRoot"), p = Y("fanEl"), h = Ot({
|
|
1505
|
-
anchor: () => f.value?.querySelector(".dock-stack-core") ?? null,
|
|
1506
|
-
popover: p,
|
|
1507
|
-
side: () => o.value === "vertical" ? "right" : "top",
|
|
1508
|
-
align: k(() => n.position === "start" ? "start" : "end")
|
|
1509
|
-
});
|
|
1510
|
-
function g(e) {
|
|
1511
|
-
i.value = e.id, e.onSelect?.(), r("select", e.id), h.hide();
|
|
1512
|
-
}
|
|
1513
|
-
return (t, n) => (H(), M("div", {
|
|
1514
|
-
ref_key: "stackRoot",
|
|
1515
|
-
ref: f,
|
|
1516
|
-
class: R(["dock-stack", [
|
|
1517
|
-
o.value,
|
|
1518
|
-
`mode-${e.mode}`,
|
|
1519
|
-
`at-${e.position}`
|
|
1520
|
-
]]),
|
|
1521
|
-
"data-orientation": o.value,
|
|
1522
|
-
"data-mode": e.mode,
|
|
1523
|
-
onFocusin: n[2] ||= (...e) => J(h).onFocusIn && J(h).onFocusIn(...e),
|
|
1524
|
-
onFocusout: n[3] ||= (e) => J(h).onFocusOut(e),
|
|
1525
|
-
onKeydown: n[4] ||= se((...e) => J(h).onEscape && J(h).onEscape(...e), ["escape"])
|
|
1526
|
-
}, [P(Ct, {
|
|
1527
|
-
type: "button",
|
|
1528
|
-
class: "dock-stack-core",
|
|
1529
|
-
"aria-label": e.coreLabel,
|
|
1530
|
-
"aria-expanded": J(h).open.value,
|
|
1531
|
-
"aria-controls": d,
|
|
1532
|
-
title: e.coreLabel,
|
|
1533
|
-
onPointerenter: J(h).onAnchorEnter,
|
|
1534
|
-
onPointerleave: J(h).onAnchorLeave,
|
|
1535
|
-
onClick: J(h).toggle
|
|
1536
|
-
}, {
|
|
1537
|
-
default: Z(() => [(H(), A(q(s.value), {
|
|
1538
|
-
class: "size-4",
|
|
1539
|
-
"aria-hidden": "true"
|
|
1540
|
-
}))]),
|
|
1541
|
-
_: 1
|
|
1542
|
-
}, 8, [
|
|
1543
|
-
"aria-label",
|
|
1544
|
-
"aria-expanded",
|
|
1545
|
-
"title",
|
|
1546
|
-
"onPointerenter",
|
|
1547
|
-
"onPointerleave",
|
|
1548
|
-
"onClick"
|
|
1549
|
-
]), N("div", {
|
|
1550
|
-
id: d,
|
|
1551
|
-
ref_key: "fanEl",
|
|
1552
|
-
ref: p,
|
|
1553
|
-
popover: "manual",
|
|
1554
|
-
class: R(["dock-stack-fan", [
|
|
1555
|
-
o.value,
|
|
1556
|
-
`mode-${e.mode}`,
|
|
1557
|
-
{ "mode-facets": l.value }
|
|
1558
|
-
]]),
|
|
1559
|
-
"data-scrolls": u.value && !e.wrap || void 0,
|
|
1560
|
-
"data-wrap": e.wrap || void 0,
|
|
1561
|
-
onPointerenter: n[0] ||= (...e) => J(h).onPopoverEnter && J(h).onPopoverEnter(...e),
|
|
1562
|
-
onPointerleave: n[1] ||= (...e) => J(h).onPopoverLeave && J(h).onPopoverLeave(...e)
|
|
1563
|
-
}, [P(b, {
|
|
1564
|
-
axis: o.value === "vertical" ? "x" : "y",
|
|
1565
|
-
class: "dock-stack-fan-scroll",
|
|
1566
|
-
"data-scrolls": u.value && !e.wrap || void 0,
|
|
1567
|
-
"data-wrap": e.wrap || void 0
|
|
1568
|
-
}, {
|
|
1569
|
-
default: Z(() => [(H(!0), M(O, null, G(c.value, (e, t) => (H(), A(Ct, {
|
|
1570
|
-
key: e.id,
|
|
1571
|
-
type: "button",
|
|
1572
|
-
class: R(["dock-stack-member", {
|
|
1573
|
-
"is-active": i.value === e.id,
|
|
1574
|
-
"dock-facet-chip": l.value
|
|
1575
|
-
}]),
|
|
1576
|
-
style: z({
|
|
1577
|
-
"--i": t,
|
|
1578
|
-
...l.value && e.accent ? {
|
|
1579
|
-
"--glass-accent": e.accent,
|
|
1580
|
-
"--glass-accent-strength": "var(--dock-facet-accent-strength)"
|
|
1581
|
-
} : {}
|
|
1582
|
-
}),
|
|
1583
|
-
"aria-label": e.label,
|
|
1584
|
-
"aria-pressed": i.value === e.id,
|
|
1585
|
-
title: e.label,
|
|
1586
|
-
onClick: (t) => g(e)
|
|
1587
|
-
}, {
|
|
1588
|
-
default: Z(() => [(H(), A(q(e.icon ?? s.value), {
|
|
1589
|
-
class: "size-4",
|
|
1590
|
-
"aria-hidden": "true"
|
|
1591
|
-
}))]),
|
|
1592
|
-
_: 2
|
|
1593
|
-
}, 1032, [
|
|
1594
|
-
"class",
|
|
1595
|
-
"style",
|
|
1596
|
-
"aria-label",
|
|
1597
|
-
"aria-pressed",
|
|
1598
|
-
"title",
|
|
1599
|
-
"onClick"
|
|
1600
|
-
]))), 128))]),
|
|
1601
|
-
_: 1
|
|
1602
|
-
}, 8, [
|
|
1603
|
-
"axis",
|
|
1604
|
-
"data-scrolls",
|
|
1605
|
-
"data-wrap"
|
|
1606
|
-
])], 42, At)], 42, kt));
|
|
1607
|
-
}
|
|
1608
|
-
}), Mt = ["aria-label"], Nt = [
|
|
1609
|
-
"data-kind",
|
|
1610
|
-
"data-section-id",
|
|
1611
|
-
"aria-label"
|
|
1612
|
-
], Pt = /* @__PURE__ */ F({
|
|
1613
|
-
__name: "DockSection",
|
|
1614
|
-
props: {
|
|
1615
|
-
sections: {},
|
|
1616
|
-
anchorId: {},
|
|
1617
|
-
ariaLabel: { default: "Dock sections" }
|
|
1618
|
-
},
|
|
1619
|
-
setup(e) {
|
|
1620
|
-
let t = e, n = k(() => {
|
|
1621
|
-
if (t.anchorId) return t.anchorId;
|
|
1622
|
-
let e = t.sections.find((e) => e.kind === "nav");
|
|
1623
|
-
return e ? e.id : t.sections.find((e) => e.kind !== "rail-core")?.id;
|
|
1624
|
-
});
|
|
1625
|
-
function r(e) {
|
|
1626
|
-
return e > 0;
|
|
1627
|
-
}
|
|
1628
|
-
function i(e) {
|
|
1629
|
-
return e.id === n.value;
|
|
1630
|
-
}
|
|
1631
|
-
function a(e) {
|
|
1632
|
-
return `dock-section-zone--${e === "rail-core" ? "core" : e}`;
|
|
1633
|
-
}
|
|
1634
|
-
return (t, n) => (H(), M("div", {
|
|
1635
|
-
class: "dock-section",
|
|
1636
|
-
role: "group",
|
|
1637
|
-
"aria-label": e.ariaLabel
|
|
1638
|
-
}, [(H(!0), M(O, null, G(e.sections, (e, n) => (H(), M(O, { key: e.id }, [r(n) ? (H(), A(Dt, {
|
|
1639
|
-
key: 0,
|
|
1640
|
-
anchor: i(e)
|
|
1641
|
-
}, null, 8, ["anchor"])) : j("", !0), N("div", {
|
|
1642
|
-
class: R(["dock-section-zone", a(e.kind)]),
|
|
1643
|
-
"data-kind": e.kind,
|
|
1644
|
-
"data-section-id": e.id,
|
|
1645
|
-
role: "group",
|
|
1646
|
-
"aria-label": e.label || void 0
|
|
1647
|
-
}, [K(t.$slots, e.id, {
|
|
1648
|
-
section: e,
|
|
1649
|
-
kind: e.kind
|
|
1650
|
-
})], 10, Nt)], 64))), 128))], 8, Mt));
|
|
1332
|
+
}, null, 10, vt));
|
|
1651
1333
|
}
|
|
1652
1334
|
});
|
|
1653
1335
|
//#endregion
|
|
1654
1336
|
//#region src/components/dock/composables/useDockSearch.ts
|
|
1655
|
-
function
|
|
1656
|
-
let { dockState: t } = e, n = e.debounceMs ?? 120, r = e.maxResults ?? 30, i =
|
|
1337
|
+
function bt(e) {
|
|
1338
|
+
let { dockState: t } = e, n = e.debounceMs ?? 120, r = e.maxResults ?? 30, i = G([]), a = null, o = e.items ? e.items : () => i.value;
|
|
1657
1339
|
function s(t) {
|
|
1658
1340
|
let n = t.item.id;
|
|
1659
1341
|
e.ensureTargetWindow?.(n), e.scrollTo?.(n), e.onResultSelect?.(t);
|
|
1660
1342
|
}
|
|
1661
|
-
let c =
|
|
1343
|
+
let c = O({
|
|
1662
1344
|
items: o,
|
|
1663
1345
|
debounceMs: n,
|
|
1664
1346
|
maxResults: r,
|
|
@@ -1666,7 +1348,7 @@ function Ft(e) {
|
|
|
1666
1348
|
});
|
|
1667
1349
|
if (e.onSearch) {
|
|
1668
1350
|
let t = e.onSearch;
|
|
1669
|
-
|
|
1351
|
+
Z(() => c.query.value, (e) => {
|
|
1670
1352
|
if (a?.abort(), !e) {
|
|
1671
1353
|
i.value = [];
|
|
1672
1354
|
return;
|
|
@@ -1679,7 +1361,7 @@ function Ft(e) {
|
|
|
1679
1361
|
});
|
|
1680
1362
|
});
|
|
1681
1363
|
}
|
|
1682
|
-
let l =
|
|
1364
|
+
let l = A(() => {
|
|
1683
1365
|
let e = c.query.value;
|
|
1684
1366
|
if (!e) return "";
|
|
1685
1367
|
let t = c.results.value[0];
|
|
@@ -1691,100 +1373,28 @@ function Ft(e) {
|
|
|
1691
1373
|
let e = l.value;
|
|
1692
1374
|
e && (c.query.value = c.query.value + e);
|
|
1693
1375
|
}
|
|
1694
|
-
let d =
|
|
1695
|
-
function
|
|
1696
|
-
|
|
1376
|
+
let d = p(() => t), f = d.isHeld;
|
|
1377
|
+
function m() {
|
|
1378
|
+
f.value || (t.expand(), d.acquire(), c.open());
|
|
1697
1379
|
}
|
|
1698
|
-
function
|
|
1699
|
-
|
|
1380
|
+
function h() {
|
|
1381
|
+
f.value && (c.close(), d.release());
|
|
1700
1382
|
}
|
|
1701
|
-
let
|
|
1702
|
-
return e.collapseOnScroll && e.scrollContainer && (
|
|
1383
|
+
let g = null;
|
|
1384
|
+
return e.collapseOnScroll && e.scrollContainer && (g = E(e.scrollContainer, {
|
|
1703
1385
|
collapseOnScroll: !0,
|
|
1704
1386
|
chromeRef: e.chromeRef
|
|
1705
|
-
})),
|
|
1706
|
-
|
|
1387
|
+
})), ne(() => {
|
|
1388
|
+
a?.abort(), a = null;
|
|
1707
1389
|
}), {
|
|
1708
1390
|
fuzzy: c,
|
|
1709
1391
|
autocompleteText: l,
|
|
1710
|
-
scrollChrome:
|
|
1711
|
-
armSearch:
|
|
1712
|
-
disarmSearch:
|
|
1392
|
+
scrollChrome: g,
|
|
1393
|
+
armSearch: m,
|
|
1394
|
+
disarmSearch: h,
|
|
1713
1395
|
acceptAutocomplete: u,
|
|
1714
|
-
isSearchArmed:
|
|
1396
|
+
isSearchArmed: f
|
|
1715
1397
|
};
|
|
1716
1398
|
}
|
|
1717
1399
|
//#endregion
|
|
1718
|
-
|
|
1719
|
-
var It = {
|
|
1720
|
-
class: "goo-filter-host",
|
|
1721
|
-
"aria-hidden": "true",
|
|
1722
|
-
focusable: "false",
|
|
1723
|
-
width: "1",
|
|
1724
|
-
height: "1"
|
|
1725
|
-
}, Lt = ["id"], Rt = ["stdDeviation"], zt = ["values"], Bt = /* @__PURE__ */ o(/* @__PURE__ */ F({
|
|
1726
|
-
__name: "GooFilter",
|
|
1727
|
-
props: { extra: { default: () => [] } },
|
|
1728
|
-
setup(e) {
|
|
1729
|
-
let t = [
|
|
1730
|
-
{
|
|
1731
|
-
id: "glass-goo",
|
|
1732
|
-
blur: 10,
|
|
1733
|
-
slope: 15,
|
|
1734
|
-
offset: -7
|
|
1735
|
-
},
|
|
1736
|
-
{
|
|
1737
|
-
id: "dock-fission-goo",
|
|
1738
|
-
blur: 7,
|
|
1739
|
-
slope: 20,
|
|
1740
|
-
offset: -9
|
|
1741
|
-
},
|
|
1742
|
-
{
|
|
1743
|
-
id: "pager-worm-goo",
|
|
1744
|
-
blur: 4,
|
|
1745
|
-
slope: 18,
|
|
1746
|
-
offset: -6
|
|
1747
|
-
},
|
|
1748
|
-
{
|
|
1749
|
-
id: "dock-morph-goo",
|
|
1750
|
-
blur: 16,
|
|
1751
|
-
slope: 14,
|
|
1752
|
-
offset: -7
|
|
1753
|
-
},
|
|
1754
|
-
{
|
|
1755
|
-
id: "morph-goo",
|
|
1756
|
-
blur: 10,
|
|
1757
|
-
slope: 18,
|
|
1758
|
-
offset: -7
|
|
1759
|
-
}
|
|
1760
|
-
], n = e, r = k(() => [...t, ...n.extra]);
|
|
1761
|
-
return (e, t) => (H(), M("svg", It, [N("defs", null, [(H(!0), M(O, null, G(r.value, (e) => (H(), M("filter", {
|
|
1762
|
-
key: e.id,
|
|
1763
|
-
id: e.id,
|
|
1764
|
-
"color-interpolation-filters": "sRGB",
|
|
1765
|
-
x: "-50%",
|
|
1766
|
-
y: "-50%",
|
|
1767
|
-
width: "200%",
|
|
1768
|
-
height: "200%"
|
|
1769
|
-
}, [
|
|
1770
|
-
N("feGaussianBlur", {
|
|
1771
|
-
in: "SourceGraphic",
|
|
1772
|
-
stdDeviation: e.blur,
|
|
1773
|
-
result: "blur"
|
|
1774
|
-
}, null, 8, Rt),
|
|
1775
|
-
N("feColorMatrix", {
|
|
1776
|
-
in: "blur",
|
|
1777
|
-
mode: "matrix",
|
|
1778
|
-
values: `1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 ${e.slope} ${e.offset}`,
|
|
1779
|
-
result: "goo"
|
|
1780
|
-
}, null, 8, zt),
|
|
1781
|
-
t[0] ||= N("feComposite", {
|
|
1782
|
-
in: "SourceGraphic",
|
|
1783
|
-
in2: "goo",
|
|
1784
|
-
operator: "atop"
|
|
1785
|
-
}, null, -1)
|
|
1786
|
-
], 8, Lt))), 128))])]));
|
|
1787
|
-
}
|
|
1788
|
-
}), [["__scopeId", "data-v-0a04b2a9"]]);
|
|
1789
|
-
//#endregion
|
|
1790
|
-
export { y as DOCK_CONTEXT_KEY, Tt as DockBackgroundToggle, Ct as DockControl, pt as DockCrossfade, St as DockLayer, yt as DockLayerGroup, Pt as DockSection, Dt as DockSeparator, jt as DockStack, wt as DockTrigger, ct as GlassDock, Bt as GooFilter, h as provideDockContext, _ as useDockContext, S as useDockCtaReceive, Ft as useDockSearch, m as useOptionalDockContext };
|
|
1400
|
+
export { h as DOCK_CONTEXT_KEY, _t as DockBackgroundToggle, ht as DockControl, at as DockCrossfade, mt as DockLayer, dt as DockLayerGroup, yt as DockSeparator, gt as DockTrigger, Xe as GlassDock, d as provideDockContext, l as useDockContext, w as useDockCtaReceive, bt as useDockSearch, m as useOptionalDockContext };
|