@mkbabb/glass-ui 7.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 +4 -3
- package/dist/DialogContent-4hzLiaCQ.js +152 -0
- package/dist/DotRing-Blh4Mc3Q.js +27 -0
- package/dist/{DropdownMenuTrigger-ClIq8RJE.js → DropdownMenuTrigger-8UZsBtZ8.js} +5 -5
- package/dist/Surface-i1tWC-Ga.js +48 -0
- package/dist/aurora.d.ts +1 -1
- package/dist/aurora.js +219 -209
- package/dist/axes.d.ts +1 -1
- package/dist/axes.js +1 -22
- 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.d.ts +1 -1
- package/dist/blob.js +5 -5
- package/dist/button-yvGPb0Bx.js +110 -0
- package/dist/button.d.ts +1 -1
- package/dist/button.js +1 -1
- package/dist/canvas.d.ts +1 -1
- package/dist/canvas.js +2 -2
- package/dist/{card-Bk96VI2R.js → card-3HFFpC7_.js} +51 -95
- package/dist/card.d.ts +1 -1
- package/dist/card.js +2 -2
- package/dist/carousel.d.ts +1 -1
- package/dist/carousel.js +187 -175
- 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 +129 -2
- package/dist/{class-names-Cpy5eaBk.js → class-names-q-UGOkHH.js} +15 -1
- package/dist/{collapsible-BAP95XTt.js → collapsible-B7O6m-Ch.js} +2 -2
- package/dist/collapsible.d.ts +1 -1
- package/dist/collapsible.js +1 -1
- package/dist/color.d.ts +1 -1
- package/dist/color.js +18 -18
- package/dist/{color.wgsl-Ct5o9dpf.js → color.wgsl-B0N3mKMb.js} +168 -167
- 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 +4 -1
- package/dist/components/_shared/class-names.d.ts +1 -1
- package/dist/components/_shared/control.d.ts +11 -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/{fieldControl.d.ts → field/control.d.ts} +1 -1
- package/dist/components/_shared/focus.d.ts +11 -0
- package/dist/components/_shared/index.d.ts +2 -2
- package/dist/components/_shared/interaction.d.ts +1 -1
- 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/selection.d.ts +39 -0
- package/dist/components/_shared/surface/resolve.d.ts +17 -0
- package/dist/components/_shared/useMotionAxis.d.ts +1 -7
- package/dist/components/accordion/Accordion.vue.d.ts +1 -1
- package/dist/components/accordion/index.d.ts +4 -4
- package/dist/components/alert/Alert.vue.d.ts +1 -1
- 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 +9 -9
- package/dist/components/aurora/Aurora.vue.d.ts +4 -4
- package/dist/components/aurora/composables/atoms-fields.d.ts +1 -1
- package/dist/components/aurora/composables/atoms.d.ts +3 -3
- package/dist/components/aurora/composables/auroraFallbackGround.d.ts +1 -1
- package/dist/components/aurora/composables/auroraImageSource.d.ts +2 -2
- package/dist/components/aurora/composables/color.d.ts +3 -4
- package/dist/components/aurora/composables/frameLoop.d.ts +4 -4
- package/dist/components/aurora/composables/glSetup.d.ts +5 -10
- package/dist/components/aurora/composables/runtime.d.ts +2 -2
- package/dist/{composables/glass → components/aurora/composables}/textureUpload.d.ts +0 -13
- package/dist/components/aurora/composables/uniformBridge.d.ts +3 -20
- package/dist/components/aurora/composables/uniformBridgeWGPU.d.ts +2 -2
- package/dist/components/aurora/composables/uniformBridgeWGPUImage.d.ts +2 -2
- package/dist/components/aurora/composables/useAurora.d.ts +4 -4
- package/dist/components/aurora/composables/useCursorInteraction.d.ts +2 -2
- package/dist/components/aurora/composables/wgpuSetup.d.ts +5 -5
- package/dist/components/aurora/constants/budget.d.ts +0 -36
- package/dist/components/aurora/constants/presets.d.ts +2 -2
- package/dist/components/aurora/constants/shaders/aurora-image.frag.d.ts +0 -2
- package/dist/components/aurora/constants/shaders/aurora-image.wgsl.d.ts +0 -2
- package/dist/components/aurora/index.d.ts +15 -14
- package/dist/components/avatar/AvatarImage.vue.d.ts +1 -6
- package/dist/components/avatar/index.d.ts +3 -3
- package/dist/components/badge/Badge.vue.d.ts +2 -9
- package/dist/components/badge/index.d.ts +12 -11
- package/dist/components/blob/Blob.vue.d.ts +4 -4
- package/dist/components/blob/composables/blobSimulation.d.ts +5 -5
- package/dist/components/blob/composables/buildMetaballProgram.d.ts +1 -1
- package/dist/components/blob/composables/resolveBlobSurface.d.ts +1 -1
- package/dist/components/blob/composables/satelliteKinematics.d.ts +1 -1
- package/dist/components/blob/composables/uniformBridgeWGPU.d.ts +4 -4
- package/dist/components/blob/composables/uploadBlobUniforms.d.ts +5 -5
- package/dist/components/blob/composables/useBlobMood.d.ts +1 -1
- package/dist/components/blob/composables/useBlobPointer.d.ts +0 -3
- package/dist/components/blob/composables/useBlobSatellites.d.ts +1 -1
- package/dist/components/blob/composables/useMetaballRenderer.d.ts +6 -6
- package/dist/components/blob/composables/wgpuSetup.d.ts +5 -5
- 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 +1 -1
- package/dist/components/button/Button.vue.d.ts +15 -9
- package/dist/components/button/index.d.ts +1 -1
- package/dist/components/button/styles.css +1 -1
- package/dist/components/card/Card.vue.d.ts +20 -23
- package/dist/components/card/CardHeader.vue.d.ts +8 -1
- package/dist/components/card/index.d.ts +6 -7
- 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 -6
- 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 +6 -6
- package/dist/components/checkbox/index.d.ts +1 -1
- package/dist/components/chip/Chip.vue.d.ts +2 -2
- package/dist/components/chip/accent-tone.css +1 -0
- package/dist/components/chip/chipVariants.d.ts +1 -1
- package/dist/components/chip/index.d.ts +3 -3
- package/dist/components/chip/types.d.ts +2 -2
- package/dist/components/collapsible/CollapsibleTrigger.vue.d.ts +1 -1
- package/dist/components/collapsible/index.d.ts +3 -3
- package/dist/components/command/Command.vue.d.ts +5 -3
- package/dist/components/command/CommandDialog.vue.d.ts +9 -5
- package/dist/components/command/CommandEmpty.vue.d.ts +1 -1
- package/dist/components/command/CommandGroup.vue.d.ts +1 -1
- package/dist/components/command/CommandInput.vue.d.ts +1 -1
- package/dist/components/command/CommandItem.vue.d.ts +3 -3
- package/dist/components/command/CommandList.vue.d.ts +8 -8
- package/dist/components/command/CommandSeparator.vue.d.ts +1 -1
- package/dist/components/command/index.d.ts +11 -10
- package/dist/components/command/types.d.ts +8 -3
- package/dist/components/configurator/Configurator.vue.d.ts +1 -1
- package/dist/components/configurator/ConfiguratorRow.vue.d.ts +1 -1
- package/dist/components/configurator/index.d.ts +6 -6
- 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 +3 -5
- package/dist/components/constellation/composables/createConstellationField.d.ts +1 -1
- package/dist/components/constellation/composables/useConstellation.d.ts +2 -2
- package/dist/components/constellation/constants.d.ts +1 -1
- package/dist/components/constellation/constellationField.d.ts +3 -4
- package/dist/components/constellation/constellationInteraction.d.ts +1 -5
- package/dist/components/constellation/constellationRender.d.ts +1 -3
- package/dist/components/constellation/constellationTypes.d.ts +0 -11
- package/dist/components/constellation/constellationWell.d.ts +1 -1
- package/dist/components/constellation/index.d.ts +8 -6
- package/dist/components/dark-mode-toggle/dark-mode-toggle.css +1 -1
- package/dist/components/dark-mode-toggle/index.d.ts +2 -2
- package/dist/components/data-table/DataTable.vue.d.ts +1 -1
- package/dist/components/data-table/composables/useDataTableResponsive.d.ts +1 -1
- package/dist/components/data-table/index.d.ts +2 -2
- package/dist/components/{number-field/NumberFieldContent.vue.d.ts → deck/DeckSlide.vue.d.ts} +12 -1
- 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 -6
- 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 +13 -0
- package/dist/components/dialog/DialogContent.vue.d.ts +23 -27
- package/dist/components/dialog/DialogFooter.vue.d.ts +2 -2
- package/dist/components/dialog/DialogHeader.vue.d.ts +2 -2
- package/dist/components/dialog/ModalOverlay.vue.d.ts +44 -23
- 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 +8 -4
- package/dist/components/dock/DockCrossfade.vue.d.ts +3 -3
- package/dist/components/dock/DockLayer.vue.d.ts +1 -1
- package/dist/components/dock/DockLayerGroup.vue.d.ts +13 -13
- package/dist/components/dock/DockSeparator.vue.d.ts +23 -18
- package/dist/components/dock/GlassDock.vue.d.ts +4 -4
- package/dist/components/dock/composables/dockContext.d.ts +29 -5
- package/dist/components/dock/composables/dockCrossfadeContext.d.ts +5 -5
- package/dist/components/dock/composables/dockMorphMeasure.d.ts +0 -1
- 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/useDockHold.d.ts +21 -6
- package/dist/components/dock/composables/useDockSearch.d.ts +5 -5
- package/dist/components/dock/composables/useDockShellProps.d.ts +10 -34
- package/dist/components/dock/composables/useDockState.d.ts +17 -4
- package/dist/components/dock/constants.d.ts +17 -3
- package/dist/components/dock/index.d.ts +15 -15
- 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 +15 -13
- package/dist/components/easing/index.d.ts +5 -3
- package/dist/components/easing/{composables/useEasingPicker.d.ts → usePicker.d.ts} +27 -23
- package/dist/components/expandable-container/ExpandableContainer.vue.d.ts +1 -1
- package/dist/components/expandable-container/index.d.ts +1 -1
- package/dist/components/fading-scroll/constants.d.ts +2 -9
- package/dist/components/fading-scroll/index.d.ts +2 -2
- package/dist/components/fourier-field/FourierField.vue.d.ts +6 -8
- package/dist/components/fourier-field/composables/fourierFieldGLSetup.d.ts +4 -4
- package/dist/components/fourier-field/composables/fourierFieldWGPUSetup.d.ts +4 -4
- package/dist/components/fourier-field/composables/uniformBridgeWGPU.d.ts +2 -4
- package/dist/components/fourier-field/composables/useFourierField.d.ts +4 -4
- package/dist/components/fourier-field/constants.d.ts +1 -1
- package/dist/components/fourier-field/index.d.ts +7 -9
- package/dist/components/handmark/HandMark.vue.d.ts +5 -5
- package/dist/components/handmark/composables/useHandMark.d.ts +4 -4
- package/dist/components/handmark/geometry.d.ts +1 -4
- package/dist/components/handmark/index.d.ts +10 -8
- package/dist/components/handmark/ink.d.ts +1 -1
- package/dist/components/handmark/texture.d.ts +2 -2
- package/dist/components/handmark/types.d.ts +1 -1
- package/dist/components/index.d.ts +30 -32
- 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/useInfiniteScroll.d.ts +1 -1
- package/dist/components/infinite-scroll/index.d.ts +2 -2
- package/dist/components/input/Input.vue.d.ts +10 -5
- package/dist/components/input/index.d.ts +3 -2
- package/dist/components/input/types.d.ts +49 -9
- package/dist/components/label/index.d.ts +1 -1
- package/dist/components/labeled-field/LabeledField.vue.d.ts +4 -4
- package/dist/components/labeled-field/LabeledInput.vue.d.ts +1 -1
- package/dist/components/labeled-field/LabeledSlider.vue.d.ts +1 -1
- package/dist/components/labeled-field/LabeledSwitch.vue.d.ts +1 -1
- package/dist/components/labeled-field/index.d.ts +5 -6
- package/dist/components/labeled-field/types.d.ts +5 -14
- package/dist/components/{dropdown-menu → menu}/DropdownMenu.vue.d.ts +2 -2
- package/dist/components/{dropdown-menu → menu}/DropdownMenuCheckboxItem.vue.d.ts +2 -2
- package/dist/components/{dropdown-menu → menu}/DropdownMenuContent.vue.d.ts +4 -7
- package/dist/components/{dropdown-menu → menu}/DropdownMenuRadioGroup.vue.d.ts +1 -1
- package/dist/components/{dropdown-menu → menu}/DropdownMenuRadioItem.vue.d.ts +1 -1
- package/dist/components/{dropdown-menu → menu}/DropdownMenuSubContent.vue.d.ts +7 -7
- package/dist/components/{dropdown-menu → menu}/DropdownMenuTrigger.vue.d.ts +1 -1
- package/dist/components/{dropdown-menu → menu}/index.d.ts +15 -15
- package/dist/components/metric/Metric.vue.d.ts +7 -5
- package/dist/components/metric/MetricRow.vue.d.ts +4 -12
- package/dist/components/metric/MetricStack.vue.d.ts +2 -2
- package/dist/components/metric/coalesce-metric.d.ts +30 -2
- package/dist/components/metric/index.d.ts +6 -5
- package/dist/components/metric/styles.css +1 -1
- package/dist/components/metric/types.d.ts +25 -13
- 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 +7 -2
- package/dist/components/number-field/NumberFieldStep.vue.d.ts +31 -0
- package/dist/components/number-field/context.d.ts +4 -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 -2
- package/dist/components/pager-dots/worm.d.ts +42 -0
- package/dist/components/popover/Popover.vue.d.ts +23 -1
- package/dist/components/popover/PopoverContent.vue.d.ts +17 -14
- package/dist/components/popover/PopoverTrigger.vue.d.ts +1 -1
- package/dist/components/popover/index.d.ts +3 -3
- package/dist/components/popover/popoverContext.d.ts +10 -0
- package/dist/components/progress/Progress.vue.d.ts +5 -5
- package/dist/components/progress/index.d.ts +2 -2
- package/dist/components/progress/types.d.ts +16 -6
- package/dist/components/radio-group/RadioGroup.vue.d.ts +5 -7
- package/dist/components/radio-group/RadioGroupItem.vue.d.ts +3 -2
- package/dist/components/radio-group/index.d.ts +4 -4
- 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 +3 -3
- 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 +3 -4
- package/dist/components/select/Select.vue.d.ts +2 -2
- package/dist/components/select/SelectContent.vue.d.ts +4 -9
- package/dist/components/select/SelectItem.vue.d.ts +1 -1
- package/dist/components/select/SelectScrollButton.vue.d.ts +18 -0
- package/dist/components/select/SelectTrigger.vue.d.ts +1 -8
- package/dist/components/select/SelectValue.vue.d.ts +4 -6
- package/dist/components/select/index.d.ts +18 -16
- package/dist/components/separator/Separator.vue.d.ts +1 -1
- 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/index.d.ts +1 -1
- package/dist/components/slider/Slider.vue.d.ts +2 -3
- package/dist/components/slider/index.d.ts +2 -2
- package/dist/components/slider/styles.css +1 -0
- package/dist/components/slider/types.d.ts +13 -4
- package/dist/components/sortable-list/SortableItem.vue.d.ts +1 -1
- package/dist/components/sortable-list/SortableList.vue.d.ts +1 -2
- 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 +10 -3
- package/dist/components/status-dot/index.d.ts +3 -2
- package/dist/components/status-dot/states.d.ts +4 -0
- package/dist/components/surface/Surface.vue.d.ts +31 -14
- package/dist/components/surface/index.d.ts +2 -2
- package/dist/components/switch/Switch.vue.d.ts +7 -12
- package/dist/components/switch/index.d.ts +2 -2
- package/dist/components/table/index.d.ts +8 -8
- package/dist/components/tabs/SegmentedTabs.vue.d.ts +9 -13
- package/dist/components/tabs/composables/useTabDragMorph.d.ts +2 -2
- package/dist/components/tabs/composables/useTabResponsive.d.ts +1 -1
- package/dist/components/tabs/composables/useTabRovingFocus.d.ts +15 -7
- 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 +10 -5
- package/dist/components/textarea/index.d.ts +2 -2
- package/dist/components/textarea/types.d.ts +34 -11
- package/dist/components/timeline/Timeline.vue.d.ts +41 -0
- package/dist/components/timeline/geometry.d.ts +53 -78
- 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 +3 -3
- package/dist/components/toast/index.d.ts +8 -8
- package/dist/components/toast/use-toast.d.ts +9 -2
- package/dist/components/toggle-group/ToggleGroup.vue.d.ts +29 -40
- package/dist/components/toggle-group/ToggleGroupItem.vue.d.ts +7 -7
- package/dist/components/toggle-group/context.d.ts +28 -0
- package/dist/components/toggle-group/index.d.ts +2 -3
- package/dist/components/tooltip/TooltipContent.vue.d.ts +3 -8
- package/dist/components/tooltip/TooltipTrigger.vue.d.ts +1 -1
- 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 +1 -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 -1
- package/dist/components/typewriter/utils/typoStateMachine.d.ts +1 -1
- package/dist/composables/color/accent-tone-solve.d.ts +1 -1
- package/dist/composables/color/index.d.ts +7 -7
- package/dist/composables/context/index.d.ts +1 -1
- package/dist/composables/dark/index.d.ts +5 -5
- package/dist/composables/dom/index.d.ts +10 -10
- package/dist/composables/dom/useDragVelocity.d.ts +7 -0
- package/dist/composables/glass/backdropLuminanceSample.d.ts +20 -22
- 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 +2 -10
- package/dist/composables/glass/index.d.ts +5 -7
- package/dist/composables/glass/useGlassBackdropLuminance.d.ts +3 -4
- package/dist/composables/glass/useSpecularTracking.d.ts +1 -1
- package/dist/composables/glass/webgl/createCanvasLifecycle.d.ts +13 -22
- package/dist/composables/glass/webgl/useWebGLCanvas.d.ts +10 -13
- package/dist/composables/glass/webgl/visibility.d.ts +1 -1
- package/dist/composables/glass/webgpu/useGpuSubstrate.d.ts +10 -13
- package/dist/composables/glass/webgpu/useWebGPUCanvas.d.ts +3 -4
- package/dist/composables/glass/webgpu/webgpuCanvasTypes.d.ts +9 -11
- package/dist/composables/glass/webgpu/webgpuDevice.d.ts +0 -17
- package/dist/composables/keyboard/index.d.ts +1 -1
- package/dist/composables/motion/core/constants.d.ts +7 -0
- package/dist/composables/motion/core/index.d.ts +21 -21
- package/dist/composables/motion/core/motionTempo.d.ts +0 -2
- 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 -14
- package/dist/composables/motion/morph/eyeglass.d.ts +141 -0
- package/dist/composables/motion/morph/useDockCtaReceive.d.ts +6 -6
- package/dist/composables/motion/morph/useElementMorph.d.ts +4 -4
- package/dist/composables/motion/morph/useLeadTrail.d.ts +30 -28
- package/dist/composables/motion/morph/useSelectionGroup.d.ts +61 -23
- package/dist/composables/motion/morph/useSelectionIndicator.d.ts +52 -22
- package/dist/composables/motion/number/useAnimatedNumberMap.d.ts +1 -1
- package/dist/composables/motion/pointer/pointerFieldMappings.d.ts +1 -1
- package/dist/composables/motion/pointer/useRoutePointer.d.ts +1 -1
- package/dist/composables/motion/reveal/useLiquidReveal.d.ts +7 -6
- package/dist/composables/motion/route/routeGrammar.d.ts +60 -0
- package/dist/composables/motion/route/useRouteTransition.d.ts +45 -0
- package/dist/composables/motion/scroll/useScrollProgress.d.ts +7 -14
- package/dist/composables/motion/scroll/useScrollScene.d.ts +5 -4
- package/dist/composables/motion/spring/springPresets.d.ts +13 -27
- package/dist/composables/motion/spring/springProjection.d.ts +3 -4
- package/dist/composables/motion/spring/useLiquidPress.d.ts +2 -2
- package/dist/composables/motion/spring/useSpring.d.ts +3 -3
- package/dist/composables/motion/spring/useSpringMount.d.ts +6 -3
- package/dist/composables/motion/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/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-M5OaIlJd.js → configurator-BoeScnDL.js} +5 -5
- package/dist/configurator.d.ts +1 -1
- package/dist/configurator.js +1 -1
- package/dist/{constants-nBz23tJE.js → constants-Dk96HZHu.js} +2 -2
- package/dist/constellation.d.ts +1 -1
- package/dist/constellation.js +136 -135
- package/dist/content-CWO-XL7o.js +18 -0
- package/dist/control-Da4XeT43.js +11 -0
- package/dist/{field-control.css_vue_type_style_index_0_src_true_lang-CeLay9Tk.js → control.css_vue_type_style_index_0_src_true_lang-BIdufaDG.js} +1 -1
- package/dist/{createCanvasLifecycle-DbXRwjU_.js → createCanvasLifecycle-hJHobVTn.js} +2 -5
- package/dist/dark-mode-toggle.d.ts +1 -1
- package/dist/dark-mode-toggle.js +2 -2
- package/dist/dark.d.ts +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 +546 -519
- package/dist/dom.d.ts +1 -1
- package/dist/dom.js +57 -35
- package/dist/easing.d.ts +1 -1
- package/dist/easing.js +686 -515
- package/dist/expandable-container.d.ts +1 -1
- package/dist/expandable-container.js +80 -78
- package/dist/{fading-scroll-DhxXIhm2.js → fading-scroll-CTeW3KNS.js} +30 -30
- 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 +84 -86
- package/dist/fourier-math.d.ts +1 -1
- package/dist/glass-ui.css +1 -1
- package/dist/glass-ui.js +123 -472
- package/dist/handmark.d.ts +1 -1
- package/dist/handmark.js +1 -1
- package/dist/index.d.ts +41 -42
- package/dist/infinite-scroll.d.ts +1 -1
- package/dist/infinite-scroll.js +56 -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 +64 -148
- 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 -1
- package/dist/metric.js +79 -132
- package/dist/motion-D4uYE0UM.js +61 -0
- package/dist/motion-core.d.ts +1 -1
- package/dist/motion-core.js +185 -52
- package/dist/motion.d.ts +1 -1
- package/dist/motion.js +160 -178
- 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/popover-DBMKTPkL.js +181 -0
- package/dist/popover.d.ts +1 -1
- package/dist/popover.js +1 -1
- 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/resolve-DdrNvBby.js +6 -0
- package/dist/{resolveCanvasColor-DS_6DBxA.js → resolveCanvasColor-6MCrswTB.js} +3 -4
- 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/search.d.ts +1 -1
- package/dist/search.js +28 -319
- package/dist/select-CDgwGH_P.js +290 -0
- package/dist/select.d.ts +1 -1
- package/dist/select.js +2 -2
- 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/slider-gsc8jDIo.js +227 -0
- package/dist/slider.d.ts +1 -1
- package/dist/slider.js +1 -1
- package/dist/sortable-list.d.ts +1 -1
- package/dist/sortable-list.js +411 -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 -42
- 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 +4 -4
- 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 +2 -2
- 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 -1
- 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-C2zyWpl8.js → supportsCssTimeline-Di9gzleG.js} +5 -4
- package/dist/surface.d.ts +1 -1
- package/dist/surface.js +1 -1
- 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 -311
- package/dist/textarea.d.ts +1 -0
- package/dist/textarea.js +58 -0
- package/dist/timeline.d.ts +1 -1
- package/dist/timeline.js +238 -528
- package/dist/{toast-CH5mnsYT.js → toast-9c6Kp58L.js} +52 -50
- 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 +12 -10
- 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 +10 -32
- package/dist/useAccentTone-DFAh1osB.js +47 -0
- package/dist/{useDockCtaReceive-DkrOTM0q.js → useDockCtaReceive-BSSgD6mu.js} +2 -2
- package/dist/{useDragMorph-BogSV_nv.js → useDragMorph-B363RUbF.js} +59 -59
- package/dist/{useDragVelocity-6ONX0sr0.js → useDragVelocity-C5BkKiNf.js} +28 -24
- package/dist/useIntersectionPause-CzKR3EyP.js +57 -0
- package/dist/useLeadTrail-DQWdpFN1.js +83 -0
- package/dist/{useLiquidPress-BOxuDkKa.js → useLiquidPress-h1scrPtP.js} +1 -1
- package/dist/{useTouchGate-B4mzQcHJ.js → useResolveTokenColor-CspQv_ik.js} +24 -1
- package/dist/useScrollChrome-BJbWV32F.js +162 -0
- package/dist/useScrollProgress-Bq-KPaKM.js +41 -0
- package/dist/{useScrollTrigger-BDdqptlc.js → useScrollTrigger-Abe5dEeO.js} +25 -26
- package/dist/useSelectionGroup-zsEwitF6.js +291 -0
- package/dist/{useSpringMount-uQ8QL9Ff.js → useSpringMount-OA-0mTNv.js} +5 -6
- package/dist/vReveal-B5WYGofz.js +44 -0
- package/dist/{valueDomain-SbVzoHMH.js → valueDomain-DXRzfc8l.js} +1 -1
- package/package.json +53 -92
- package/dist/FeedbackMark-DZq5001h.js +0 -23
- package/dist/Input-9BlLluik.js +0 -77
- package/dist/PagerDots-BEq0MgtH.js +0 -311
- package/dist/Surface-kFQeYrYv.js +0 -82
- package/dist/animated-digit.d.ts +0 -1
- package/dist/animated-digit.js +0 -44
- package/dist/badge-u65NClWn.js +0 -62
- package/dist/button-Bu9F4uU6.js +0 -98
- package/dist/chip-DFZQr6rV.js +0 -129
- package/dist/command-SFqDQ65h.js +0 -320
- package/dist/completion-seal.d.ts +0 -1
- package/dist/completion-seal.js +0 -132
- package/dist/components/_shared/FeedbackMark.vue.d.ts +0 -11
- package/dist/components/_shared/control-size.d.ts +0 -2
- package/dist/components/_shared/disclosure.css +0 -1
- package/dist/components/_shared/feedback-tone.css +0 -1
- package/dist/components/_shared/feedback.d.ts +0 -7
- package/dist/components/_shared/field-control.css +0 -1
- package/dist/components/_shared/field-surfaces.css +0 -1
- package/dist/components/_shared/floating.d.ts +0 -14
- package/dist/components/_shared/menu.css +0 -1
- package/dist/components/_shared/menuRowClass.d.ts +0 -2
- package/dist/components/_shared/resolveSurfaceClass.d.ts +0 -3
- package/dist/components/animated-digit/AnimatedDigit.vue.d.ts +0 -55
- package/dist/components/animated-digit/index.d.ts +0 -2
- package/dist/components/avatar/styles.css +0 -1
- package/dist/components/card/CardAction.vue.d.ts +0 -17
- package/dist/components/card/card-scroll.css +0 -1
- package/dist/components/carousel/interface.d.ts +0 -22
- package/dist/components/checkbox/styles.css +0 -1
- package/dist/components/combobox/Combobox.vue.d.ts +0 -22
- package/dist/components/combobox/ComboboxAnchor.vue.d.ts +0 -14
- package/dist/components/combobox/ComboboxEmpty.vue.d.ts +0 -14
- package/dist/components/combobox/ComboboxGroup.vue.d.ts +0 -14
- package/dist/components/combobox/ComboboxInput.vue.d.ts +0 -18
- package/dist/components/combobox/ComboboxItem.vue.d.ts +0 -18
- package/dist/components/combobox/ComboboxItemIndicator.vue.d.ts +0 -14
- package/dist/components/combobox/ComboboxList.vue.d.ts +0 -29
- package/dist/components/combobox/ComboboxTrigger.vue.d.ts +0 -16
- package/dist/components/combobox/index.d.ts +0 -10
- package/dist/components/combobox/types.d.ts +0 -87
- package/dist/components/command/dialogContext.d.ts +0 -6
- package/dist/components/command/styles.css +0 -1
- 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/data-table/styles.css +0 -1
- package/dist/components/deck/DeckPager.vue.d.ts +0 -29
- package/dist/components/dialog/DialogClose.vue.d.ts +0 -16
- package/dist/components/dialog/DialogTrigger.vue.d.ts +0 -16
- package/dist/components/dialog/dialogStageContext.d.ts +0 -7
- package/dist/components/dialog/placement.css +0 -1
- package/dist/components/dialog/sheet-motion.d.ts +0 -17
- package/dist/components/drawer/Drawer.vue.d.ts +0 -82
- package/dist/components/drawer/DrawerContent.vue.d.ts +0 -39
- package/dist/components/drawer/DrawerDescription.vue.d.ts +0 -17
- 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 -17
- package/dist/components/drawer/composables/drawerSnapContext.d.ts +0 -34
- package/dist/components/drawer/composables/useDrawerSnap.d.ts +0 -26
- package/dist/components/drawer/constants.d.ts +0 -32
- package/dist/components/drawer/index.d.ts +0 -33
- package/dist/components/drawer/styles.css +0 -1
- package/dist/components/dropdown-menu/styles.css +0 -1
- package/dist/components/easing/EasingConfigurator.vue.d.ts +0 -33
- package/dist/components/expandable-container/styles.css +0 -1
- package/dist/components/fourier-field/presets.d.ts +0 -54
- package/dist/components/header-ribbon/HeaderRibbon.vue.d.ts +0 -13
- package/dist/components/header-ribbon/index.d.ts +0 -2
- package/dist/components/header-ribbon/styles.css +0 -1
- package/dist/components/header-ribbon/types.d.ts +0 -10
- package/dist/components/instrument-chassis/InstrumentChassis.vue.d.ts +0 -23
- package/dist/components/instrument-chassis/index.d.ts +0 -2
- package/dist/components/instrument-chassis/styles.css +0 -1
- package/dist/components/instrument-chassis/types.d.ts +0 -13
- package/dist/components/labeled-field/LabeledSelect.vue.d.ts +0 -20
- 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 -92
- 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/MetricCell.vue.d.ts +0 -26
- 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/number-field/styles.css +0 -1
- package/dist/components/pager-dots/composables/usePagerWorm.d.ts +0 -26
- package/dist/components/pager-dots/constants.d.ts +0 -14
- package/dist/components/pager-dots/pagerWindow.d.ts +0 -9
- package/dist/components/paper-backdrop/PaperBackdrop.vue.d.ts +0 -8
- package/dist/components/paper-backdrop/index.d.ts +0 -2
- package/dist/components/pulse/Pulse.vue.d.ts +0 -14
- package/dist/components/pulse/index.d.ts +0 -2
- package/dist/components/radio-group/styles.css +0 -1
- package/dist/components/search/FuzzySearch.vue.d.ts +0 -24
- package/dist/components/select/SelectScrollDownButton.vue.d.ts +0 -17
- package/dist/components/select/SelectScrollUpButton.vue.d.ts +0 -17
- 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/switch/styles.css +0 -1
- package/dist/components/tabs/constants.d.ts +0 -1
- package/dist/components/tags-input/TagsInput.vue.d.ts +0 -41
- package/dist/components/tags-input/TagsInputInput.vue.d.ts +0 -10
- package/dist/components/tags-input/TagsInputItem.vue.d.ts +0 -19
- package/dist/components/tags-input/TagsInputItemDelete.vue.d.ts +0 -17
- package/dist/components/tags-input/TagsInputItemText.vue.d.ts +0 -7
- package/dist/components/tags-input/context.d.ts +0 -5
- package/dist/components/tags-input/index.d.ts +0 -5
- package/dist/components/tags-input/styles.css +0 -1
- package/dist/components/timeline/ContinuousMarkers.vue.d.ts +0 -47
- package/dist/components/timeline/ContinuousRail.vue.d.ts +0 -23
- package/dist/components/timeline/ContinuousTimeline.vue.d.ts +0 -117
- package/dist/components/timeline/GlassTimeline.vue.d.ts +0 -113
- package/dist/components/timeline/ScrubberTimeline.vue.d.ts +0 -45
- package/dist/components/timeline/SegmentedTimeline.vue.d.ts +0 -45
- package/dist/components/toggle-group/styles.css +0 -1
- package/dist/components/toggle-group/toggleGroupContext.d.ts +0 -9
- package/dist/components/typewriter/composables/index.d.ts +0 -1
- package/dist/components/watercolor-dot/WatercolorDot.vue.d.ts +0 -61
- 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 -28
- 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/webgpu/index.d.ts +0 -3
- package/dist/composables/index.d.ts +0 -9
- package/dist/composables/motion/number/useCountup.d.ts +0 -30
- package/dist/composables/motion/number/useNumericTransition.d.ts +0 -56
- package/dist/composables/motion/reveal/bloomUpField.d.ts +0 -29
- package/dist/composables/motion/reveal/useBloomUp.d.ts +0 -33
- package/dist/composables/motion/reveal/useStaggerReveal.d.ts +0 -28
- package/dist/composables/motion/reveal/useTextHighlight.d.ts +0 -41
- package/dist/composables/motion/scroll/useScrollPin.d.ts +0 -49
- package/dist/data-table-BygKg6ZA.js +0 -491
- package/dist/dialog-TNRDkcE4.js +0 -385
- package/dist/dockContext-BUTlGRNJ.js +0 -13
- package/dist/drawer.d.ts +0 -1
- package/dist/drawer.js +0 -496
- package/dist/dropdown-menu-BlbnvMaZ.js +0 -507
- package/dist/dropdown-menu.d.ts +0 -1
- package/dist/floating-dB5TD88k.js +0 -7
- package/dist/flow.wgsl-Cd2GUkPx.js +0 -4
- package/dist/fonts/README.md +0 -120
- 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 -403
- package/dist/header-ribbon.d.ts +0 -1
- package/dist/header-ribbon.js +0 -43
- package/dist/instrument-chassis.d.ts +0 -1
- package/dist/instrument-chassis.js +0 -54
- package/dist/label-DnMqH7jr.js +0 -55
- package/dist/liquid-grid.d.ts +0 -1
- package/dist/liquid-grid.js +0 -1065
- package/dist/menuRowClass-Nh7CtMON.js +0 -12
- package/dist/number-field-Boe09SvX.js +0 -154
- package/dist/paper-backdrop.d.ts +0 -1
- package/dist/paper-backdrop.js +0 -23
- package/dist/popover-BQGYXZyO.js +0 -244
- package/dist/progress-DClbhRAT.js +0 -88
- package/dist/pulse.d.ts +0 -1
- package/dist/pulse.js +0 -42
- package/dist/resolveSurfaceClass-DCZ4PZcy.js +0 -6
- package/dist/select-BcBAyLXA.js +0 -336
- package/dist/separator-CgZInrX-.js +0 -75
- package/dist/slider-DzqeQmMu.js +0 -162
- package/dist/springPresets-rCii5KqX.js +0 -52
- 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-refract.css +0 -1
- package/dist/styles/tokens/manifest.ts +0 -56
- package/dist/styles/tokens.ts +0 -54
- package/dist/switch-DZjQuFLa.js +0 -54
- package/dist/toggle-group-O6jBo7AE.js +0 -150
- package/dist/tooltip-Drx5qnw_.js +0 -148
- package/dist/useAccentTone-DyInfHXE.js +0 -23
- package/dist/useAnimatedNumber-WPtMz0AN.js +0 -40
- package/dist/useDocumentVisibility-Dh_TGXsU.js +0 -21
- package/dist/useIntersectionPause-B5mAU6XY.js +0 -39
- package/dist/useLeadTrail-AW1-zZcd.js +0 -74
- package/dist/useRAFLoop-B3YlWK4M.js +0 -98
- package/dist/useResolveTokenColor-B2FfJnd9.js +0 -24
- package/dist/useScrollProgress-CSFYXIZT.js +0 -43
- package/dist/useSelectionGroup-B5XplBbo.js +0 -132
- package/dist/useTabRovingFocus-YnWh-Ytr.js +0 -169
- package/dist/useTextHighlight-mfwNIC1f.js +0 -112
- package/dist/useUserInvalidAria-0GNrddMX.js +0 -25
- package/dist/watercolor-dot.d.ts +0 -1
- package/dist/watercolor-dot.js +0 -149
- /package/dist/components/_shared/{disclosure-context.d.ts → disclosure/disclosure-context.d.ts} +0 -0
- /package/dist/components/_shared/{valueDomain.d.ts → field/valueDomain.d.ts} +0 -0
- /package/dist/components/{dropdown-menu → menu}/DropdownMenuGroup.vue.d.ts +0 -0
- /package/dist/components/{dropdown-menu → menu}/DropdownMenuItem.vue.d.ts +0 -0
- /package/dist/components/{dropdown-menu → menu}/DropdownMenuLabel.vue.d.ts +0 -0
- /package/dist/components/{dropdown-menu → menu}/DropdownMenuSeparator.vue.d.ts +0 -0
- /package/dist/components/{dropdown-menu → menu}/DropdownMenuShortcut.vue.d.ts +0 -0
- /package/dist/components/{dropdown-menu → menu}/DropdownMenuSub.vue.d.ts +0 -0
- /package/dist/components/{dropdown-menu → menu}/DropdownMenuSubTrigger.vue.d.ts +0 -0
- /package/dist/components/{dropdown-menu/useMenuTrigger.d.ts → menu/context.d.ts} +0 -0
package/dist/dock.js
CHANGED
|
@@ -1,38 +1,50 @@
|
|
|
1
|
-
import { t as e } from "./class-names-
|
|
1
|
+
import { t as e } from "./class-names-q-UGOkHH.js";
|
|
2
2
|
import { n as t } from "./useReducedMotion-vCXA_vyM.js";
|
|
3
3
|
import { t as n } from "./vSpecular-DMJo8pfD.js";
|
|
4
4
|
import { t as r } from "./motionTempo-tscp92Nm.js";
|
|
5
|
-
import { n as i } from "./springPresets-
|
|
6
|
-
import { t as a } from "./useLiquidPress-
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { t as
|
|
11
|
-
import { n as
|
|
12
|
-
import { t as
|
|
13
|
-
import {
|
|
14
|
-
import { t as
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { t as
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
|
|
26
|
-
|
|
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";
|
|
21
|
+
import { PopoverTrigger as ce, Primitive as le, SelectIcon as ue, SelectTrigger as de } from "reka-ui";
|
|
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 ve(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, be = .72, xe = .06, Se = .004;
|
|
50
|
-
function Ce() {
|
|
51
|
-
return {
|
|
52
|
-
weight: new Float64Array($),
|
|
53
|
-
sumCos: new Float64Array($),
|
|
54
|
-
sumSin: new Float64Array($),
|
|
55
|
-
totalMass: 0,
|
|
56
|
-
n: 0
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
function we(e, t, n, r, i) {
|
|
60
|
-
e.n++;
|
|
61
|
-
let [, a, o] = T("accumulateHuePixel:oklch", me(T("accumulateHuePixel:rgb", he(t, n, r)), "oklch")).channels, s = w(a, "accumulateHuePixel"), c = w(o, "accumulateHuePixel");
|
|
62
|
-
if (!Number.isFinite(s) || !Number.isFinite(c) || s <= 0) return;
|
|
63
|
-
let l = s * i;
|
|
64
|
-
if (l <= 0) return;
|
|
65
|
-
let u = c * Math.PI / 180, d = Math.floor(c / 360 * $) % $;
|
|
66
|
-
d < 0 && (d += $), e.weight[d] += l, e.sumCos[d] += l * Math.cos(u), e.sumSin[d] += l * Math.sin(u), e.totalMass += l;
|
|
67
|
-
}
|
|
68
|
-
function Te(e) {
|
|
69
|
-
if (e.n === 0 || e.totalMass / e.n < Se) 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(${be} ${xe} ${n.toFixed(1)})`;
|
|
75
|
-
}
|
|
76
|
-
var Ee = "[data-glass-field-canvas] canvas, canvas[data-glass-field-canvas]";
|
|
77
|
-
function De(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 Oe(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: Te(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 ? je(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
|
|
145
|
+
var je = "data-glass-backdrop-shared";
|
|
146
|
+
function Me(e, n = {}) {
|
|
155
147
|
let { lightThreshold: r = .6, minSampleIntervalMs: i = 250, writeBucket: a = !0 } = n, o = Math.max(250, i), s = n.shared === !0;
|
|
156
|
-
function
|
|
157
|
-
return !s && e.closest(`[${
|
|
148
|
+
function c(e) {
|
|
149
|
+
return !s && e.closest(`[${je}]`) !== null;
|
|
158
150
|
}
|
|
159
|
-
let
|
|
151
|
+
let l = G(null), u = G(null), d = G({
|
|
160
152
|
state: "pending",
|
|
161
153
|
mode: n.live === !0 ? "live" : "static",
|
|
162
154
|
source: n.live === !0 ? "canvas" : "elements"
|
|
163
155
|
});
|
|
164
156
|
if (typeof window > "u") return {
|
|
165
|
-
luma: W(
|
|
166
|
-
bucket: W(
|
|
167
|
-
sample: W(
|
|
157
|
+
luma: W(l),
|
|
158
|
+
bucket: W(u),
|
|
159
|
+
sample: W(d),
|
|
168
160
|
sampleNow: () => {},
|
|
169
161
|
dispose: () => {}
|
|
170
162
|
};
|
|
171
|
-
let
|
|
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 n.live === void 0 ? e.value?.dataset.glassSample === "live" || n.backgroundCanvas != null ||
|
|
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();
|
|
@@ -186,200 +178,193 @@ function Pe(e, n = {}) {
|
|
|
186
178
|
}
|
|
187
179
|
function y(e, t, n, i) {
|
|
188
180
|
let o = e.luma;
|
|
189
|
-
|
|
181
|
+
l.value = o;
|
|
190
182
|
let s = o >= r ? "light" : "dark";
|
|
191
|
-
|
|
183
|
+
u.value = s, d.value = {
|
|
192
184
|
state: "sampled",
|
|
193
185
|
mode: n,
|
|
194
186
|
source: n === "live" ? "canvas" : "elements",
|
|
195
187
|
luma: o,
|
|
196
|
-
ambientHue: e.ambientHue,
|
|
197
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
|
-
function
|
|
202
|
-
|
|
192
|
+
function b(e, t, n, r) {
|
|
193
|
+
l.value = null, u.value = null, d.value = {
|
|
203
194
|
state: "unavailable",
|
|
204
195
|
mode: t,
|
|
205
196
|
source: t === "live" ? "canvas" : "elements",
|
|
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
|
-
let
|
|
212
|
-
function
|
|
202
|
+
let x = 0;
|
|
203
|
+
function S() {
|
|
213
204
|
let t = e.value;
|
|
214
|
-
if (!t ||
|
|
215
|
-
let r =
|
|
216
|
-
o ? y(o, t, i, s) :
|
|
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 &&
|
|
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
223
|
let t = e.value;
|
|
233
|
-
if (t &&
|
|
234
|
-
|
|
224
|
+
if (t && c(t)) {
|
|
225
|
+
C.stop();
|
|
235
226
|
return;
|
|
236
227
|
}
|
|
237
|
-
|
|
228
|
+
f.value ? (C.stop(), S()) : g() && C.start();
|
|
238
229
|
}
|
|
239
|
-
let k =
|
|
230
|
+
let k = Z(f, O, { flush: "sync" }), A = Z(() => e.value, (e) => {
|
|
240
231
|
if (e) {
|
|
241
|
-
if (s) e.setAttribute(
|
|
242
|
-
else if (
|
|
243
|
-
|
|
232
|
+
if (s) e.setAttribute(je, "");
|
|
233
|
+
else if (c(e)) return;
|
|
234
|
+
S(), O();
|
|
244
235
|
}
|
|
245
236
|
}, {
|
|
246
237
|
immediate: !0,
|
|
247
238
|
flush: "post"
|
|
248
239
|
});
|
|
249
240
|
function j() {
|
|
250
|
-
A(), k(),
|
|
241
|
+
A(), k(), C.dispose(), w.dispose(), E.stop(), p = null, m = null;
|
|
251
242
|
}
|
|
252
|
-
return
|
|
253
|
-
luma: W(
|
|
254
|
-
bucket: W(
|
|
255
|
-
sample: W(
|
|
256
|
-
sampleNow:
|
|
243
|
+
return ne(j), {
|
|
244
|
+
luma: W(l),
|
|
245
|
+
bucket: W(u),
|
|
246
|
+
sample: W(d),
|
|
247
|
+
sampleNow: S,
|
|
257
248
|
dispose: j
|
|
258
249
|
};
|
|
259
250
|
}
|
|
260
251
|
//#endregion
|
|
261
|
-
//#region src/components/dock/composables/isTeleportedTarget.ts
|
|
262
|
-
function Fe(e, t) {
|
|
263
|
-
if (!(e instanceof Element)) return !1;
|
|
264
|
-
let n = e.closest("[data-glass-dock-portal]");
|
|
265
|
-
return n ? !t || n.getAttribute("data-glass-dock-owner") === t : !1;
|
|
266
|
-
}
|
|
267
|
-
//#endregion
|
|
268
252
|
//#region src/components/dock/composables/useDockState.ts
|
|
269
|
-
function
|
|
270
|
-
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 =
|
|
271
|
-
function S() {
|
|
272
|
-
x &&= (clearTimeout(x), null);
|
|
273
|
-
}
|
|
274
|
-
let C = f.value;
|
|
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;
|
|
275
255
|
function w() {
|
|
276
|
-
|
|
277
|
-
}
|
|
278
|
-
function T() {
|
|
279
|
-
h &&= (clearTimeout(h), null);
|
|
256
|
+
C &&= (clearTimeout(C), null);
|
|
280
257
|
}
|
|
258
|
+
let T = f.value;
|
|
281
259
|
function E() {
|
|
282
|
-
|
|
260
|
+
l() && (f.value = "pinned"), c && T !== f.value && c(f.value, T), T = f.value;
|
|
283
261
|
}
|
|
284
262
|
function D() {
|
|
285
|
-
|
|
263
|
+
h &&= (clearTimeout(h), null);
|
|
264
|
+
}
|
|
265
|
+
function O() {
|
|
266
|
+
x !== null && (cancelAnimationFrame(x), x = null);
|
|
286
267
|
}
|
|
287
268
|
function k() {
|
|
288
|
-
|
|
289
|
-
|
|
269
|
+
O(), b?.();
|
|
270
|
+
}
|
|
271
|
+
function j() {
|
|
272
|
+
d() || g.value > 0 || (D(), h = setTimeout(() => {
|
|
273
|
+
f.value = "collapsed", E();
|
|
290
274
|
}, t));
|
|
291
275
|
}
|
|
292
|
-
function
|
|
276
|
+
function M() {
|
|
293
277
|
if (l()) {
|
|
294
|
-
f.value = "pinned",
|
|
278
|
+
f.value = "pinned", E();
|
|
295
279
|
return;
|
|
296
280
|
}
|
|
297
|
-
|
|
281
|
+
S ||= (S = !0, D(), w(), f.value = "collapsed", E(), !1);
|
|
298
282
|
}
|
|
299
|
-
function
|
|
283
|
+
function N() {
|
|
300
284
|
if (l()) {
|
|
301
|
-
f.value = "pinned",
|
|
285
|
+
f.value = "pinned", E();
|
|
302
286
|
return;
|
|
303
287
|
}
|
|
304
|
-
|
|
288
|
+
D(), w(), f.value = "hover", E();
|
|
305
289
|
}
|
|
306
|
-
function
|
|
307
|
-
d() || (
|
|
308
|
-
|
|
290
|
+
function P() {
|
|
291
|
+
d() || (D(), f.value === "collapsed" && (w(), C = setTimeout(() => {
|
|
292
|
+
C = null, !d() && f.value === "collapsed" && (f.value = "hover", E());
|
|
309
293
|
}, 60)));
|
|
310
294
|
}
|
|
311
|
-
function
|
|
312
|
-
if (!d() && (
|
|
295
|
+
function F(e) {
|
|
296
|
+
if (!d() && (w(), f.value === "hover")) {
|
|
313
297
|
if (g.value > 0) return;
|
|
314
298
|
if (e) {
|
|
315
299
|
let t = n.value;
|
|
316
|
-
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;
|
|
317
301
|
}
|
|
318
|
-
|
|
302
|
+
j();
|
|
319
303
|
}
|
|
320
304
|
}
|
|
321
|
-
function
|
|
322
|
-
d() || (
|
|
305
|
+
function I() {
|
|
306
|
+
d() || (D(), f.value === "collapsed" && (f.value = "hover", E()));
|
|
323
307
|
}
|
|
324
308
|
function ee(e) {
|
|
325
309
|
if (d() || f.value !== "hover" || g.value > 0) return;
|
|
326
310
|
let t = e.currentTarget;
|
|
327
|
-
e.relatedTarget && t.contains(e.relatedTarget) ||
|
|
311
|
+
e.relatedTarget && t.contains(e.relatedTarget) || $(e.relatedTarget, s) || j();
|
|
328
312
|
}
|
|
329
|
-
function
|
|
330
|
-
d() || (
|
|
313
|
+
function L() {
|
|
314
|
+
d() || (D(), w(), f.value = "pinned", E());
|
|
331
315
|
}
|
|
332
|
-
function
|
|
333
|
-
g.value++,
|
|
316
|
+
function R(e = "morph") {
|
|
317
|
+
g.value++, e === "grasp" && _.value++, D();
|
|
334
318
|
}
|
|
335
|
-
function
|
|
336
|
-
g.value = Math.max(0, g.value - 1), g.value === 0 && f.value === "hover" && (
|
|
337
|
-
g.value === 0 && f.value === "hover" &&
|
|
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();
|
|
338
322
|
}, Math.min(t, 800)));
|
|
339
323
|
}
|
|
340
|
-
function
|
|
324
|
+
function B(e) {
|
|
341
325
|
if (d() || g.value > 0 || o?.value) return;
|
|
342
326
|
let t = n.value;
|
|
343
|
-
!t || t.contains(e.target) ||
|
|
327
|
+
!t || t.contains(e.target) || $(e.target, s) || M();
|
|
344
328
|
}
|
|
345
|
-
return
|
|
329
|
+
return Z(p, (e) => {
|
|
346
330
|
if (e) {
|
|
347
331
|
if (typeof document > "u") return;
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
document.removeEventListener("pointerdown",
|
|
332
|
+
k(), x = requestAnimationFrame(() => {
|
|
333
|
+
x = null, p.value && (document.addEventListener("pointerdown", B, !0), b = () => {
|
|
334
|
+
document.removeEventListener("pointerdown", B, !0), b = null;
|
|
351
335
|
});
|
|
352
336
|
});
|
|
353
|
-
} else
|
|
354
|
-
}, { immediate: !0 }), typeof r == "boolean" ? r && (f.value = "pinned",
|
|
337
|
+
} else k();
|
|
338
|
+
}, { immediate: !0 }), typeof r == "boolean" ? r && (f.value = "pinned", E()) : Z(r, (e) => {
|
|
355
339
|
if (e) {
|
|
356
|
-
|
|
340
|
+
D(), f.value = "pinned", E();
|
|
357
341
|
return;
|
|
358
342
|
}
|
|
359
|
-
f.value = "collapsed",
|
|
360
|
-
}), typeof i != "string" &&
|
|
361
|
-
e === "manual" && (
|
|
343
|
+
f.value = "collapsed", E();
|
|
344
|
+
}), typeof i != "string" && Z(i, (e) => {
|
|
345
|
+
e === "manual" && (D(), w());
|
|
362
346
|
}), H(() => {
|
|
363
|
-
|
|
347
|
+
D(), w(), k();
|
|
364
348
|
}), {
|
|
365
349
|
state: f,
|
|
366
350
|
expanded: p,
|
|
367
351
|
isPinned: m,
|
|
368
|
-
isHeld:
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
352
|
+
isHeld: v,
|
|
353
|
+
graspHeld: y,
|
|
354
|
+
onMouseEnter: P,
|
|
355
|
+
onMouseLeave: F,
|
|
356
|
+
onFocusIn: I,
|
|
372
357
|
onFocusOut: ee,
|
|
373
|
-
onClickCollapsed:
|
|
374
|
-
keepOpen:
|
|
375
|
-
release:
|
|
376
|
-
expand:
|
|
377
|
-
collapse:
|
|
358
|
+
onClickCollapsed: L,
|
|
359
|
+
keepOpen: R,
|
|
360
|
+
release: z,
|
|
361
|
+
expand: N,
|
|
362
|
+
collapse: M
|
|
378
363
|
};
|
|
379
364
|
}
|
|
380
365
|
//#endregion
|
|
381
366
|
//#region src/components/dock/composables/useDockSpring.ts
|
|
382
|
-
function
|
|
367
|
+
function Pe(e) {
|
|
383
368
|
let t = null, n = () => t !== null && !t.settled;
|
|
384
369
|
function i() {
|
|
385
370
|
t &&= (t.dispose(), null);
|
|
@@ -387,7 +372,7 @@ function Le(e) {
|
|
|
387
372
|
function a(a, o, s) {
|
|
388
373
|
let c = n() ? t.velocity * (s.inheritVelocityScale ?? 1) : 0;
|
|
389
374
|
i();
|
|
390
|
-
let l = new
|
|
375
|
+
let l = new he({
|
|
391
376
|
response: e.response * r(),
|
|
392
377
|
dampingFraction: e.dampingFraction,
|
|
393
378
|
initial: a,
|
|
@@ -414,11 +399,11 @@ function Le(e) {
|
|
|
414
399
|
}
|
|
415
400
|
//#endregion
|
|
416
401
|
//#region src/components/dock/composables/useDockMorph.ts
|
|
417
|
-
function
|
|
418
|
-
let { rootEl: t, outerActiveLayer: n } = e, r = G(n.value), i = G(null), a =
|
|
419
|
-
response:
|
|
420
|
-
dampingFraction:
|
|
421
|
-
}), o =
|
|
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)");
|
|
422
407
|
function s() {
|
|
423
408
|
return t.value;
|
|
424
409
|
}
|
|
@@ -427,7 +412,7 @@ function Re(e) {
|
|
|
427
412
|
let t = s();
|
|
428
413
|
t && (t.removeAttribute("data-morphing"), t.style.removeProperty("--dock-morph-t")), e.onMorphActiveChange?.(!1), a.dispose();
|
|
429
414
|
}
|
|
430
|
-
|
|
415
|
+
Z(o, (e) => {
|
|
431
416
|
e && s()?.hasAttribute("data-morphing") && c();
|
|
432
417
|
});
|
|
433
418
|
function l() {
|
|
@@ -443,7 +428,7 @@ function Re(e) {
|
|
|
443
428
|
onSettle: c
|
|
444
429
|
});
|
|
445
430
|
}
|
|
446
|
-
let
|
|
431
|
+
let d = Z(n, (e, t) => {
|
|
447
432
|
if (e === t) return;
|
|
448
433
|
let n = s();
|
|
449
434
|
if (r.value = e, !n) {
|
|
@@ -453,7 +438,7 @@ function Re(e) {
|
|
|
453
438
|
i.value = t, l();
|
|
454
439
|
});
|
|
455
440
|
return H(() => {
|
|
456
|
-
|
|
441
|
+
d(), a.dispose();
|
|
457
442
|
}), {
|
|
458
443
|
outerCurrentLayer: W(r),
|
|
459
444
|
outerLeavingLayer: W(i)
|
|
@@ -461,15 +446,15 @@ function Re(e) {
|
|
|
461
446
|
}
|
|
462
447
|
//#endregion
|
|
463
448
|
//#region src/components/dock/composables/dockMorphMeasure.ts
|
|
464
|
-
function
|
|
449
|
+
function Ie(e, t) {
|
|
465
450
|
return t === "vertical" ? e.offsetHeight : e.offsetWidth;
|
|
466
451
|
}
|
|
467
|
-
function
|
|
452
|
+
function Le(e) {
|
|
468
453
|
let { rootEl: t, contentEl: n, expandedEl: r, collapsedEl: i, axis: a, expanded: o } = e, s = null, c = 0, l = 0, u = !1;
|
|
469
454
|
function d() {
|
|
470
455
|
let e = t.value, s = n.value, u = r.value, d = i.value;
|
|
471
456
|
if (!e || !s || !u || !d || e.hasAttribute("data-morphing")) return;
|
|
472
|
-
let f = a.value, p =
|
|
457
|
+
let f = a.value, p = Ie(e, f), m = Ie(u, f), h = Ie(d, f);
|
|
473
458
|
if (p <= 0 || m < 0 || h < 0) return;
|
|
474
459
|
o.value ? c = p : l = p;
|
|
475
460
|
let g = o.value ? m : h, _ = Math.max(0, p - g), v = c || _ + m, y = l || _ + h;
|
|
@@ -491,44 +476,38 @@ function Be(e) {
|
|
|
491
476
|
d();
|
|
492
477
|
}
|
|
493
478
|
}
|
|
494
|
-
|
|
479
|
+
Z([
|
|
495
480
|
t,
|
|
496
481
|
n,
|
|
497
482
|
r,
|
|
498
483
|
i,
|
|
499
484
|
a
|
|
500
|
-
], f, { immediate: !0 }),
|
|
485
|
+
], f, { immediate: !0 }), Z(o, d);
|
|
501
486
|
let p = typeof document < "u" ? document.fonts : void 0;
|
|
502
|
-
p && p.ready.then(() => !u && d()),
|
|
487
|
+
p && p.ready.then(() => !u && d()), ne(() => {
|
|
503
488
|
u = !0, s?.disconnect(), s = null;
|
|
504
489
|
});
|
|
505
490
|
}
|
|
506
491
|
//#endregion
|
|
507
492
|
//#region src/components/dock/composables/useDockShellProps.ts
|
|
508
|
-
function
|
|
509
|
-
let t =
|
|
510
|
-
if (e.containerName) return {
|
|
511
|
-
"container-type": "inline-size",
|
|
512
|
-
"container-name": e.containerName
|
|
513
|
-
};
|
|
514
|
-
}), n = O(() => e.collapseDelay ?? 3600), r = O(() => e.layout ?? "linear"), i = O(() => e.shape ?? "pill"), a = O(() => e.orientation ?? "horizontal"), o = O(() => e.size ?? "md"), s = O(() => a.value === "vertical" || e.overflow === "wrap" ? null : "dock-scroll-x"), c = O(() => 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");
|
|
515
495
|
return {
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
fitContent: O(() => e.fitContent ?? !1)
|
|
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)
|
|
527
506
|
};
|
|
528
507
|
}
|
|
529
508
|
//#endregion
|
|
530
509
|
//#region src/components/dock/composables/useDockClickIntegrity.ts
|
|
531
|
-
function
|
|
510
|
+
function ze(e) {
|
|
532
511
|
let { rootEl: t, visualExpanded: n } = e, r = null, i = !1, a = 0, o = null, s = G(null), c = null, l = [];
|
|
533
512
|
function u() {
|
|
534
513
|
c?.removeAttribute("data-dock-press-origin"), c = null;
|
|
@@ -570,9 +549,9 @@ function He(e) {
|
|
|
570
549
|
return !!e && e.hasAttribute("data-morphing");
|
|
571
550
|
}
|
|
572
551
|
function _(e) {
|
|
573
|
-
u(), r = e.target,
|
|
552
|
+
u(), r = e.target, i = g();
|
|
574
553
|
}
|
|
575
|
-
|
|
554
|
+
Z(n, (e, t) => {
|
|
576
555
|
t && !e && r && d(r);
|
|
577
556
|
});
|
|
578
557
|
function v() {
|
|
@@ -599,7 +578,7 @@ function He(e) {
|
|
|
599
578
|
e.stopPropagation(), e.preventDefault(), r = null;
|
|
600
579
|
}
|
|
601
580
|
}
|
|
602
|
-
return
|
|
581
|
+
return te(() => {
|
|
603
582
|
f(), u();
|
|
604
583
|
}), {
|
|
605
584
|
onPointerDownCapture: _,
|
|
@@ -611,36 +590,36 @@ function He(e) {
|
|
|
611
590
|
}
|
|
612
591
|
//#endregion
|
|
613
592
|
//#region src/components/dock/composables/useDockTouchGate.ts
|
|
614
|
-
function
|
|
615
|
-
let { collapseDelay: t, rootEl: n, quiet: r, visualExpanded: i, expanded: a, isPinned: o, expand: s, collapse: c } = e,
|
|
616
|
-
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() {
|
|
617
596
|
return !r.value;
|
|
618
597
|
}
|
|
619
|
-
function
|
|
620
|
-
if (!
|
|
598
|
+
function d(e) {
|
|
599
|
+
if (!u() || i.value) return;
|
|
621
600
|
let t = n.value, r = e.touches[0];
|
|
622
|
-
!t || !r ||
|
|
601
|
+
!t || !r || l.handleTouchStart(t, r.clientY);
|
|
623
602
|
}
|
|
624
|
-
function
|
|
625
|
-
|
|
603
|
+
function f(e) {
|
|
604
|
+
u() && l.handleScrollCheck(e);
|
|
626
605
|
}
|
|
627
|
-
function
|
|
628
|
-
if (!
|
|
629
|
-
let e =
|
|
630
|
-
|
|
606
|
+
function p() {
|
|
607
|
+
if (!u()) return;
|
|
608
|
+
let e = l.isActive.value;
|
|
609
|
+
l.handleTouchEnd(), !e && l.isActive.value && !i.value && s();
|
|
631
610
|
}
|
|
632
|
-
return
|
|
611
|
+
return Z(l.isActive, (e) => {
|
|
633
612
|
!e && a.value && !o.value && !r.value && c();
|
|
634
613
|
}), {
|
|
635
|
-
onTouchStart:
|
|
636
|
-
onTouchMove:
|
|
637
|
-
onTouchEnd:
|
|
638
|
-
deactivate: () =>
|
|
614
|
+
onTouchStart: d,
|
|
615
|
+
onTouchMove: f,
|
|
616
|
+
onTouchEnd: p,
|
|
617
|
+
deactivate: () => l.deactivate()
|
|
639
618
|
};
|
|
640
619
|
}
|
|
641
620
|
//#endregion
|
|
642
621
|
//#region src/components/dock/composables/useDockOverflowFit.ts
|
|
643
|
-
function
|
|
622
|
+
function Ve(e) {
|
|
644
623
|
let t = null, n = null, r = 0;
|
|
645
624
|
function i() {
|
|
646
625
|
return e.value?.querySelector(".dock-layer--full") ?? null;
|
|
@@ -654,7 +633,7 @@ function We(e) {
|
|
|
654
633
|
function o() {
|
|
655
634
|
cancelAnimationFrame(r), r = requestAnimationFrame(a);
|
|
656
635
|
}
|
|
657
|
-
return
|
|
636
|
+
return V(() => {
|
|
658
637
|
let r = e.value, a = i();
|
|
659
638
|
o(), r && (t = new ResizeObserver(o), t.observe(r), a && t.observe(a)), r && (n = new MutationObserver(o), n.observe(r, {
|
|
660
639
|
childList: !0,
|
|
@@ -663,29 +642,36 @@ function We(e) {
|
|
|
663
642
|
attributes: !0,
|
|
664
643
|
attributeFilter: ["class", "hidden"]
|
|
665
644
|
}));
|
|
666
|
-
}),
|
|
645
|
+
}), Z(() => e.value, () => o()), H(() => {
|
|
667
646
|
t?.disconnect(), n?.disconnect(), cancelAnimationFrame(r);
|
|
668
647
|
}), { measure: a };
|
|
669
648
|
}
|
|
670
649
|
//#endregion
|
|
671
650
|
//#region src/components/dock/GlassDock.vue?vue&type=script&setup=true&lang.ts
|
|
672
|
-
var
|
|
651
|
+
var He = [
|
|
673
652
|
"data-size",
|
|
674
653
|
"data-backdrop-mode",
|
|
675
654
|
"data-interaction",
|
|
676
655
|
"data-held",
|
|
677
|
-
"data-search"
|
|
678
|
-
|
|
679
|
-
], Ke = { class: "dock-controls" }, qe = {
|
|
656
|
+
"data-search"
|
|
657
|
+
], Ue = ["data-held"], We = { class: "dock-controls" }, Ge = {
|
|
680
658
|
key: 0,
|
|
681
659
|
class: "dock-persistent"
|
|
682
|
-
},
|
|
660
|
+
}, Ke = ["id", "inert"], qe = [
|
|
661
|
+
"id",
|
|
662
|
+
"inert",
|
|
663
|
+
"role",
|
|
664
|
+
"tabindex",
|
|
665
|
+
"aria-label",
|
|
666
|
+
"aria-expanded",
|
|
667
|
+
"aria-controls"
|
|
668
|
+
], Je = {
|
|
683
669
|
key: 0,
|
|
684
670
|
class: "dock-search-field"
|
|
685
|
-
},
|
|
671
|
+
}, Ye = {
|
|
686
672
|
key: 1,
|
|
687
673
|
class: "dock-persistent dock-persistent-end"
|
|
688
|
-
},
|
|
674
|
+
}, Xe = /* @__PURE__ */ I({
|
|
689
675
|
inheritAttrs: !1,
|
|
690
676
|
__name: "GlassDock",
|
|
691
677
|
props: {
|
|
@@ -697,169 +683,203 @@ var Ge = [
|
|
|
697
683
|
orientation: {},
|
|
698
684
|
size: {},
|
|
699
685
|
overflow: {},
|
|
700
|
-
containerName: {},
|
|
701
|
-
viewTransitionName: {},
|
|
702
686
|
collapseDelay: {},
|
|
703
687
|
startCollapsed: { type: Boolean },
|
|
704
688
|
interaction: {},
|
|
705
689
|
layout: {},
|
|
706
|
-
autoLuminance: {
|
|
707
|
-
type: Boolean,
|
|
708
|
-
default: !0
|
|
709
|
-
},
|
|
710
690
|
backgroundCanvas: {},
|
|
711
691
|
search: { type: Boolean }
|
|
712
692
|
},
|
|
713
693
|
setup(e, { expose: t }) {
|
|
714
|
-
let n = e, {
|
|
715
|
-
|
|
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: () => {
|
|
716
696
|
let e = n.backgroundCanvas;
|
|
717
697
|
return typeof e == "function" ? e() : e instanceof HTMLCanvasElement ? e : null;
|
|
718
698
|
} });
|
|
719
|
-
let
|
|
720
|
-
collapseDelay:
|
|
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,
|
|
721
701
|
rootEl: g,
|
|
722
|
-
alwaysExpanded:
|
|
723
|
-
interaction:
|
|
724
|
-
initialExpanded: !
|
|
725
|
-
isTransitioning:
|
|
726
|
-
dockId:
|
|
727
|
-
}),
|
|
728
|
-
|
|
729
|
-
id:
|
|
730
|
-
orientation:
|
|
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,
|
|
710
|
+
orientation: c,
|
|
731
711
|
layout: h,
|
|
732
|
-
keepOpen:
|
|
733
|
-
release:
|
|
734
|
-
held:
|
|
712
|
+
keepOpen: ee,
|
|
713
|
+
release: B,
|
|
714
|
+
held: E
|
|
735
715
|
});
|
|
736
|
-
let
|
|
716
|
+
let H = A(() => p.value || C.value), W = A(() => H.value ? "full" : "summary"), re = A(() => c.value), { outerCurrentLayer: q, outerLeavingLayer: ie } = Fe({
|
|
737
717
|
rootEl: g,
|
|
738
|
-
outerActiveLayer:
|
|
718
|
+
outerActiveLayer: W,
|
|
739
719
|
onMorphActiveChange: (e) => {
|
|
740
|
-
|
|
720
|
+
x.value = e;
|
|
741
721
|
}
|
|
742
|
-
});
|
|
743
|
-
|
|
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({
|
|
744
735
|
rootEl: g,
|
|
745
736
|
contentEl: _,
|
|
746
737
|
expandedEl: v,
|
|
747
738
|
collapsedEl: y,
|
|
748
|
-
axis:
|
|
749
|
-
expanded:
|
|
739
|
+
axis: re,
|
|
740
|
+
expanded: H
|
|
750
741
|
});
|
|
751
|
-
let
|
|
742
|
+
let { onPointerDownCapture: ce, onPointerCancelCapture: le, onClickCapture: ue, markExpandFlip: de, pressKeepaliveLayer: fe } = ze({
|
|
752
743
|
rootEl: g,
|
|
753
|
-
visualExpanded:
|
|
754
|
-
}), { onTouchStart:
|
|
755
|
-
collapseDelay:
|
|
744
|
+
visualExpanded: H
|
|
745
|
+
}), { onTouchStart: pe, onTouchMove: me, onTouchEnd: he, deactivate: ge } = Be({
|
|
746
|
+
collapseDelay: r.value,
|
|
756
747
|
rootEl: g,
|
|
757
|
-
quiet:
|
|
758
|
-
visualExpanded:
|
|
759
|
-
expanded:
|
|
760
|
-
isPinned:
|
|
761
|
-
expand:
|
|
762
|
-
collapse:
|
|
748
|
+
quiet: ne,
|
|
749
|
+
visualExpanded: H,
|
|
750
|
+
expanded: C,
|
|
751
|
+
isPinned: w,
|
|
752
|
+
expand: te,
|
|
753
|
+
collapse: V
|
|
754
|
+
});
|
|
755
|
+
Z(H, (e) => {
|
|
756
|
+
e ? de() : ge();
|
|
757
|
+
});
|
|
758
|
+
let $ = G(!1);
|
|
759
|
+
Z(E, (e) => {
|
|
760
|
+
e && ($.value = !0);
|
|
763
761
|
});
|
|
764
|
-
|
|
765
|
-
e
|
|
766
|
-
}
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
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({
|
|
776
776
|
ref_key: "dockEl",
|
|
777
777
|
ref: g
|
|
778
778
|
}, t.$attrs, {
|
|
779
779
|
class: ["glass-dock", [
|
|
780
|
-
J(
|
|
781
|
-
`shape-${J(
|
|
780
|
+
J(c),
|
|
781
|
+
`shape-${J(s)}`,
|
|
782
782
|
`layout-${J(h)}`,
|
|
783
|
-
J(
|
|
783
|
+
J(u),
|
|
784
784
|
{
|
|
785
|
-
expanded:
|
|
786
|
-
collapsed: !
|
|
787
|
-
pinned: J(
|
|
788
|
-
"fit-content": J(
|
|
789
|
-
"always-expanded": J(
|
|
790
|
-
"dock-overflow-wrap": e.overflow === "wrap" && J(
|
|
785
|
+
expanded: H.value,
|
|
786
|
+
collapsed: !H.value,
|
|
787
|
+
pinned: J(w),
|
|
788
|
+
"fit-content": J(m),
|
|
789
|
+
"always-expanded": J(p),
|
|
790
|
+
"dock-overflow-wrap": e.overflow === "wrap" && J(c) !== "vertical"
|
|
791
791
|
},
|
|
792
792
|
e.position === "fixed" ? "fixed bottom-(--dock-pos) inset-x-0 mx-auto w-max" : e.position === "sticky" ? "dock-sticky" : "dock-inline"
|
|
793
793
|
]],
|
|
794
|
-
"data-
|
|
795
|
-
"data-size": J(u),
|
|
794
|
+
"data-size": J(l),
|
|
796
795
|
"data-backdrop-mode": n.backdropMode,
|
|
797
|
-
"data-interaction": J(
|
|
798
|
-
"data-held": J(
|
|
796
|
+
"data-interaction": J(a) === "manual" ? "manual" : void 0,
|
|
797
|
+
"data-held": J(E) || void 0,
|
|
799
798
|
"data-search": e.search || void 0,
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
onClickCapture: i[10] ||= (...e) => J(Z) && J(Z)(...e)
|
|
812
|
-
}), [i[11] ||= M("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", {
|
|
813
810
|
class: "dock-plate",
|
|
814
|
-
"aria-hidden": "true"
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
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", {
|
|
818
823
|
ref_key: "layersEl",
|
|
819
824
|
ref: _,
|
|
820
825
|
class: "dock-layers"
|
|
821
826
|
}, [
|
|
822
|
-
|
|
827
|
+
P("div", {
|
|
823
828
|
ref_key: "fullEl",
|
|
824
829
|
ref: v,
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
"is-
|
|
828
|
-
"is-
|
|
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"
|
|
829
835
|
}]),
|
|
830
|
-
inert: J(
|
|
831
|
-
|
|
832
|
-
|
|
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", {
|
|
833
841
|
ref_key: "summaryEl",
|
|
834
842
|
ref: y,
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
"is-
|
|
843
|
+
id: `${S}-summary`,
|
|
844
|
+
class: z(["dock-layer dock-layer--summary", {
|
|
845
|
+
"is-active": J(q) === "summary",
|
|
846
|
+
"is-leaving": J(ie) === "summary"
|
|
838
847
|
}]),
|
|
839
|
-
inert: J(
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
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)
|
|
843
859
|
], 512),
|
|
844
|
-
t.$slots["persistent-end"] ? (U(),
|
|
845
|
-
])], 16,
|
|
860
|
+
t.$slots["persistent-end"] ? (U(), N("div", Ye, [K(t.$slots, "persistent-end")])) : M("", !0)
|
|
861
|
+
])], 16, He));
|
|
846
862
|
}
|
|
847
|
-
}),
|
|
848
|
-
function
|
|
849
|
-
|
|
863
|
+
}), Ze = c("glass-ui:dock-switcher-tablist"), { KEY: Qe } = Ze;
|
|
864
|
+
function $e(e) {
|
|
865
|
+
Ze.provide(e);
|
|
850
866
|
}
|
|
851
|
-
var
|
|
852
|
-
|
|
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);
|
|
870
|
+
}
|
|
871
|
+
var it = tt.use;
|
|
872
|
+
tt.useOptional;
|
|
853
873
|
//#endregion
|
|
854
874
|
//#region src/components/dock/DockCrossfade.vue
|
|
855
|
-
var
|
|
875
|
+
var at = /* @__PURE__ */ I({
|
|
856
876
|
__name: "DockCrossfade",
|
|
857
877
|
props: {
|
|
858
878
|
active: {},
|
|
859
879
|
reserve: { default: "block" }
|
|
860
880
|
},
|
|
861
881
|
setup(e, { expose: t }) {
|
|
862
|
-
let n = e, r = G(null), i = G(/* @__PURE__ */ new Map()), a =
|
|
882
|
+
let n = e, r = G(null), i = G(/* @__PURE__ */ new Map()), a = A(() => [...i.value.values()].map(({ id: e, label: t, icon: n }) => ({
|
|
863
883
|
id: e,
|
|
864
884
|
label: t,
|
|
865
885
|
icon: n
|
|
@@ -873,15 +893,15 @@ var rt = /* @__PURE__ */ P({
|
|
|
873
893
|
let t = new Map(i.value);
|
|
874
894
|
t.delete(e), i.value = t, p();
|
|
875
895
|
}
|
|
876
|
-
let
|
|
877
|
-
|
|
896
|
+
let c = A(() => n.active), l = G(null);
|
|
897
|
+
rt({
|
|
878
898
|
register: o,
|
|
879
899
|
unregister: s,
|
|
880
|
-
activeId:
|
|
881
|
-
leavingId:
|
|
900
|
+
activeId: c,
|
|
901
|
+
leavingId: l,
|
|
882
902
|
faces: a
|
|
883
903
|
});
|
|
884
|
-
let d = G(0), f =
|
|
904
|
+
let d = G(0), f = A(() => n.reserve === "inline" ? "min-inline-size" : "min-block-size");
|
|
885
905
|
function p() {
|
|
886
906
|
let e = 0;
|
|
887
907
|
for (let { el: t } of i.value.values()) {
|
|
@@ -890,84 +910,85 @@ var rt = /* @__PURE__ */ P({
|
|
|
890
910
|
}
|
|
891
911
|
e > d.value && (d.value = e);
|
|
892
912
|
}
|
|
893
|
-
let m =
|
|
913
|
+
let m = A(() => d.value > 0 ? {
|
|
894
914
|
[f.value]: `${d.value}px`,
|
|
895
915
|
"--dock-crossfade-peak": `${d.value}px`
|
|
896
916
|
} : void 0);
|
|
897
|
-
|
|
898
|
-
let
|
|
899
|
-
response:
|
|
900
|
-
dampingFraction:
|
|
917
|
+
_(r, () => p());
|
|
918
|
+
let h = Pe({
|
|
919
|
+
response: u.response,
|
|
920
|
+
dampingFraction: u.dampingFraction
|
|
901
921
|
});
|
|
902
|
-
function
|
|
922
|
+
function g(e) {
|
|
903
923
|
return e ? i.value.get(e)?.el : void 0;
|
|
904
924
|
}
|
|
905
925
|
function v(e, t) {
|
|
906
|
-
|
|
926
|
+
g(e)?.style.setProperty("--dock-t", `${t}`);
|
|
907
927
|
}
|
|
908
928
|
function y(e) {
|
|
909
|
-
|
|
929
|
+
g(e)?.style.removeProperty("--dock-t");
|
|
910
930
|
}
|
|
911
931
|
function b(e) {
|
|
912
932
|
return e < 0 ? 0 : e > 1 ? 1 : e;
|
|
913
933
|
}
|
|
914
|
-
let x =
|
|
915
|
-
|
|
916
|
-
e && (
|
|
934
|
+
let x = ge("(prefers-reduced-motion: reduce)"), S = null, C = 1;
|
|
935
|
+
Z(x, (e) => {
|
|
936
|
+
e && (h.dispose(), S?.());
|
|
917
937
|
});
|
|
918
938
|
async function w(e, t) {
|
|
919
939
|
if (typeof document > "u") return;
|
|
920
|
-
let n =
|
|
921
|
-
!n || !r || !n.contains(r) || (await
|
|
940
|
+
let n = g(e), r = document.activeElement;
|
|
941
|
+
!n || !r || !n.contains(r) || (await R(), (g(t) ?? document.body).focus?.());
|
|
922
942
|
}
|
|
923
|
-
return
|
|
943
|
+
return Z(c, (e, t) => {
|
|
924
944
|
if (e === t) return;
|
|
925
945
|
p();
|
|
926
|
-
let n =
|
|
946
|
+
let n = g(e), i = g(t);
|
|
927
947
|
if (!n || !i) {
|
|
928
|
-
|
|
948
|
+
l.value = null, y(e), C = 1;
|
|
929
949
|
return;
|
|
930
950
|
}
|
|
931
|
-
let a =
|
|
932
|
-
a && a !== e && a !== t && y(a),
|
|
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", "");
|
|
933
953
|
let d = () => {
|
|
934
|
-
y(e), y(t), r.value?.removeAttribute("data-crossfading"),
|
|
954
|
+
y(e), y(t), r.value?.removeAttribute("data-crossfading"), l.value = null, C = 1, S === d && (S = null);
|
|
935
955
|
};
|
|
936
956
|
if (S = d, x.value) {
|
|
937
957
|
d();
|
|
938
958
|
return;
|
|
939
959
|
}
|
|
940
|
-
let f =
|
|
941
|
-
C = 1 - c,
|
|
960
|
+
let f = u > .001 ? -C / u : 0;
|
|
961
|
+
C = 1 - c, h.playTo(0, 1, {
|
|
942
962
|
inheritVelocityScale: f,
|
|
943
963
|
onFrame: (n) => {
|
|
944
|
-
v(e, b(c + (1 - c) * n)), v(t, b(1 -
|
|
964
|
+
v(e, b(c + (1 - c) * n)), v(t, b(1 - u * (1 - n)));
|
|
945
965
|
},
|
|
946
966
|
onSettle: d
|
|
947
967
|
});
|
|
948
|
-
}),
|
|
949
|
-
|
|
950
|
-
}), t({ faces: a }), (e, t) => (U(),
|
|
968
|
+
}), te(() => {
|
|
969
|
+
h.dispose(), S = null;
|
|
970
|
+
}), t({ faces: a }), (e, t) => (U(), N("div", {
|
|
951
971
|
ref_key: "rootEl",
|
|
952
972
|
ref: r,
|
|
953
973
|
class: "dock-crossfade",
|
|
954
|
-
style:
|
|
974
|
+
style: B(m.value)
|
|
955
975
|
}, [K(e.$slots, "default")], 4));
|
|
956
976
|
}
|
|
957
|
-
}),
|
|
977
|
+
}), ot = ["data-motion"], st = ["aria-orientation"], ct = [
|
|
978
|
+
"id",
|
|
958
979
|
"tabindex",
|
|
959
|
-
"
|
|
980
|
+
"aria-controls",
|
|
960
981
|
"aria-label",
|
|
961
982
|
"onClick"
|
|
962
|
-
],
|
|
983
|
+
], lt = { key: 1 }, ut = { key: 2 }, dt = /* @__PURE__ */ I({
|
|
963
984
|
__name: "DockLayerGroup",
|
|
964
985
|
props: /*@__PURE__*/ ee({
|
|
965
986
|
orientation: {},
|
|
966
|
-
|
|
987
|
+
showSwitcher: {
|
|
967
988
|
type: Boolean,
|
|
968
989
|
default: !0
|
|
969
990
|
},
|
|
970
|
-
|
|
991
|
+
switcherPosition: { default: "start" },
|
|
971
992
|
motion: {}
|
|
972
993
|
}, {
|
|
973
994
|
active: { required: !0 },
|
|
@@ -975,109 +996,117 @@ var rt = /* @__PURE__ */ P({
|
|
|
975
996
|
}),
|
|
976
997
|
emits: ["update:active"],
|
|
977
998
|
setup(e) {
|
|
978
|
-
let t = e, n =
|
|
979
|
-
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 }))),
|
|
980
1001
|
model: r,
|
|
981
1002
|
mode: "single",
|
|
982
1003
|
role: "tablist",
|
|
983
1004
|
vertical: u,
|
|
984
1005
|
containerRef: d,
|
|
985
1006
|
indicatorRef: f,
|
|
986
|
-
buttonRefs:
|
|
987
|
-
}),
|
|
988
|
-
|
|
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() {
|
|
989
1016
|
let e = d.value;
|
|
990
1017
|
if (!e) return [];
|
|
991
1018
|
let t = Array.from(e.querySelectorAll(".dock-layer-tab"));
|
|
992
1019
|
return c.value.map((e, n) => {
|
|
993
|
-
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;
|
|
994
1021
|
return {
|
|
995
1022
|
value: e.id,
|
|
996
1023
|
center: i
|
|
997
1024
|
};
|
|
998
1025
|
});
|
|
999
1026
|
}
|
|
1000
|
-
let
|
|
1027
|
+
let E = C({
|
|
1001
1028
|
handle: d,
|
|
1002
1029
|
surface: f,
|
|
1003
|
-
axis: () =>
|
|
1004
|
-
snapTargets:
|
|
1030
|
+
axis: () => w.value,
|
|
1031
|
+
snapTargets: T,
|
|
1005
1032
|
onSnap: (e) => {
|
|
1006
1033
|
n.armed.value && r.value !== e && (r.value = e);
|
|
1007
1034
|
}
|
|
1008
1035
|
});
|
|
1009
|
-
|
|
1036
|
+
Z(() => [
|
|
1010
1037
|
c.value.length,
|
|
1011
1038
|
l.value,
|
|
1012
1039
|
n.armed.value
|
|
1013
1040
|
], () => {
|
|
1014
|
-
n.armed.value &&
|
|
1015
|
-
}),
|
|
1016
|
-
n.armed.value &&
|
|
1041
|
+
n.armed.value && R(() => E.refresh());
|
|
1042
|
+
}), V(() => {
|
|
1043
|
+
n.armed.value && R(() => E.refresh());
|
|
1017
1044
|
});
|
|
1018
|
-
function
|
|
1045
|
+
function D(e) {
|
|
1019
1046
|
return typeof e == "object" && !!e || typeof e == "function";
|
|
1020
1047
|
}
|
|
1021
|
-
let
|
|
1022
|
-
function
|
|
1023
|
-
|
|
1048
|
+
let O = p(() => i);
|
|
1049
|
+
function I() {
|
|
1050
|
+
O.acquire();
|
|
1024
1051
|
}
|
|
1025
|
-
function
|
|
1052
|
+
function ee(e) {
|
|
1026
1053
|
let t = e.relatedTarget, n = e.currentTarget;
|
|
1027
|
-
t && n?.contains(t) ||
|
|
1054
|
+
t && n?.contains(t) || O.release();
|
|
1028
1055
|
}
|
|
1029
|
-
return
|
|
1030
|
-
|
|
1031
|
-
}), (t, i) => (U(), j("div", {
|
|
1032
|
-
class: L(["dock-layer-group", [a.value, `rail-${e.railPosition}`]]),
|
|
1056
|
+
return (t, i) => (U(), N("div", {
|
|
1057
|
+
class: z(["dock-layer-group", [a.value, `switcher-${e.switcherPosition}`]]),
|
|
1033
1058
|
"data-motion": J(n).dataMotion.value,
|
|
1034
|
-
style:
|
|
1035
|
-
}, [
|
|
1059
|
+
style: B(J(n).hostStyle.value)
|
|
1060
|
+
}, [_.value ? (U(), N("div", {
|
|
1036
1061
|
key: 0,
|
|
1037
|
-
ref_key: "
|
|
1062
|
+
ref_key: "switcherListEl",
|
|
1038
1063
|
ref: d,
|
|
1039
1064
|
role: "tablist",
|
|
1040
|
-
class:
|
|
1065
|
+
class: z(["dock-layer-switcher", [e.switcherPosition, J(n).armed.value && "glass-drag-grabbable"]]),
|
|
1041
1066
|
"aria-orientation": l.value,
|
|
1042
|
-
onKeydown: i[0] ||= (...e) => J(
|
|
1043
|
-
onFocusin:
|
|
1044
|
-
onFocusout:
|
|
1045
|
-
}, [(U(!0),
|
|
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({
|
|
1046
1071
|
key: e.id,
|
|
1047
1072
|
ref_for: !0,
|
|
1048
1073
|
ref: (e) => {
|
|
1049
|
-
e && (
|
|
1074
|
+
e && (h.value[t] = e);
|
|
1050
1075
|
},
|
|
1051
1076
|
type: "button",
|
|
1052
1077
|
class: "dock-layer-tab",
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
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),
|
|
1056
1082
|
"aria-label": e.label ?? e.id,
|
|
1057
|
-
onClick: (n) => J(
|
|
1058
|
-
}), [
|
|
1083
|
+
onClick: (n) => J(g).select(e.id, t)
|
|
1084
|
+
}), [D(e.icon) ? (U(), j(q(e.icon), {
|
|
1059
1085
|
key: 0,
|
|
1060
1086
|
class: "size-4"
|
|
1061
|
-
})) : typeof e.icon == "string" ? (U(),
|
|
1062
|
-
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",
|
|
1063
1089
|
ref: f,
|
|
1064
|
-
class:
|
|
1065
|
-
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),
|
|
1066
1092
|
"aria-hidden": "true"
|
|
1067
|
-
}, null, 6)], 42,
|
|
1093
|
+
}, null, 6)], 42, st)) : M("", !0), F(at, {
|
|
1068
1094
|
ref_key: "crossfade",
|
|
1069
|
-
ref:
|
|
1095
|
+
ref: s,
|
|
1070
1096
|
active: r.value
|
|
1071
1097
|
}, {
|
|
1072
|
-
default:
|
|
1098
|
+
default: Q(() => [K(t.$slots, "default")]),
|
|
1073
1099
|
_: 3
|
|
1074
|
-
}, 8, ["active"])], 14,
|
|
1100
|
+
}, 8, ["active"])], 14, ot));
|
|
1075
1101
|
}
|
|
1076
|
-
}),
|
|
1102
|
+
}), ft = [
|
|
1103
|
+
"role",
|
|
1104
|
+
"id",
|
|
1105
|
+
"aria-labelledby",
|
|
1077
1106
|
"inert",
|
|
1078
1107
|
"aria-hidden",
|
|
1079
1108
|
"tabindex"
|
|
1080
|
-
],
|
|
1109
|
+
], pt = { class: "dock-face-content" }, mt = /* @__PURE__ */ I({
|
|
1081
1110
|
__name: "DockLayer",
|
|
1082
1111
|
props: {
|
|
1083
1112
|
id: {},
|
|
@@ -1085,15 +1114,15 @@ var rt = /* @__PURE__ */ P({
|
|
|
1085
1114
|
icon: {}
|
|
1086
1115
|
},
|
|
1087
1116
|
setup(e) {
|
|
1088
|
-
let t = e, n =
|
|
1089
|
-
|
|
1117
|
+
let t = e, n = it(), r = X("hostEl");
|
|
1118
|
+
V(() => {
|
|
1090
1119
|
r.value && n.register({
|
|
1091
1120
|
id: t.id,
|
|
1092
1121
|
label: t.label,
|
|
1093
1122
|
icon: t.icon,
|
|
1094
1123
|
el: r.value
|
|
1095
1124
|
});
|
|
1096
|
-
}),
|
|
1125
|
+
}), Z(() => [
|
|
1097
1126
|
t.id,
|
|
1098
1127
|
t.label,
|
|
1099
1128
|
t.icon
|
|
@@ -1104,21 +1133,24 @@ var rt = /* @__PURE__ */ P({
|
|
|
1104
1133
|
icon: t.icon,
|
|
1105
1134
|
el: r.value
|
|
1106
1135
|
});
|
|
1107
|
-
}),
|
|
1108
|
-
let i =
|
|
1109
|
-
return (e, t) => (U(),
|
|
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", {
|
|
1110
1139
|
ref_key: "hostEl",
|
|
1111
1140
|
ref: r,
|
|
1112
|
-
class:
|
|
1141
|
+
class: z(["dock-face", {
|
|
1113
1142
|
"is-active": i.value,
|
|
1114
1143
|
"is-leaving": a.value
|
|
1115
1144
|
}]),
|
|
1145
|
+
role: s.value ? "tabpanel" : void 0,
|
|
1146
|
+
id: c.value,
|
|
1147
|
+
"aria-labelledby": l.value,
|
|
1116
1148
|
inert: !i.value || void 0,
|
|
1117
1149
|
"aria-hidden": !i.value || void 0,
|
|
1118
1150
|
tabindex: i.value ? -1 : void 0
|
|
1119
|
-
}, [
|
|
1151
|
+
}, [P("div", pt, [K(e.$slots, "default")])], 10, ft));
|
|
1120
1152
|
}
|
|
1121
|
-
}),
|
|
1153
|
+
}), ht = /* @__PURE__ */ I({
|
|
1122
1154
|
__name: "DockControl",
|
|
1123
1155
|
props: {
|
|
1124
1156
|
shape: { default: "icon" },
|
|
@@ -1128,7 +1160,7 @@ var rt = /* @__PURE__ */ P({
|
|
|
1128
1160
|
},
|
|
1129
1161
|
active: {
|
|
1130
1162
|
type: Boolean,
|
|
1131
|
-
default:
|
|
1163
|
+
default: void 0
|
|
1132
1164
|
},
|
|
1133
1165
|
type: { default: "button" },
|
|
1134
1166
|
disabled: {
|
|
@@ -1149,16 +1181,13 @@ var rt = /* @__PURE__ */ P({
|
|
|
1149
1181
|
] }
|
|
1150
1182
|
},
|
|
1151
1183
|
setup(t) {
|
|
1152
|
-
let r = t, o =
|
|
1153
|
-
...r.active ? {
|
|
1154
|
-
"aria-pressed":
|
|
1155
|
-
"data-active": ""
|
|
1156
|
-
}
|
|
1157
|
-
...r.disabled ? {
|
|
1158
|
-
|
|
1159
|
-
"aria-disabled": "true"
|
|
1160
|
-
} : {}
|
|
1161
|
-
})), l = O(() => !r.asChild && r.as === "button" ? { type: r.type } : {}), u = i("press"), d = a({
|
|
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({
|
|
1162
1191
|
disabled: () => r.disabled || o.value,
|
|
1163
1192
|
squish: !0,
|
|
1164
1193
|
response: u.response,
|
|
@@ -1166,11 +1195,11 @@ var rt = /* @__PURE__ */ P({
|
|
|
1166
1195
|
pressVar: "--dock-press-t",
|
|
1167
1196
|
shrinkDepth: .04,
|
|
1168
1197
|
maxStretch: 1.03
|
|
1169
|
-
}), f =
|
|
1198
|
+
}), f = A(() => o.value ? {} : { ...d.pressStyle.value });
|
|
1170
1199
|
function p(e) {
|
|
1171
1200
|
r.disabled && (e.preventDefault(), e.stopImmediatePropagation());
|
|
1172
1201
|
}
|
|
1173
|
-
return (e, r) =>
|
|
1202
|
+
return (e, r) => oe((U(), j(J(le), L({
|
|
1174
1203
|
as: t.as,
|
|
1175
1204
|
"as-child": t.asChild
|
|
1176
1205
|
}, {
|
|
@@ -1190,7 +1219,7 @@ var rt = /* @__PURE__ */ P({
|
|
|
1190
1219
|
onBlur: J(d).handlers.onBlur,
|
|
1191
1220
|
onClickCapture: p
|
|
1192
1221
|
}), {
|
|
1193
|
-
default:
|
|
1222
|
+
default: Q(() => [K(e.$slots, "default")]),
|
|
1194
1223
|
_: 3
|
|
1195
1224
|
}, 16, [
|
|
1196
1225
|
"as",
|
|
@@ -1208,7 +1237,7 @@ var rt = /* @__PURE__ */ P({
|
|
|
1208
1237
|
"onBlur"
|
|
1209
1238
|
])), [[J(n)]]);
|
|
1210
1239
|
}
|
|
1211
|
-
}),
|
|
1240
|
+
}), gt = /* @__PURE__ */ I({
|
|
1212
1241
|
inheritAttrs: !1,
|
|
1213
1242
|
__name: "DockTrigger",
|
|
1214
1243
|
props: {
|
|
@@ -1222,28 +1251,28 @@ var rt = /* @__PURE__ */ P({
|
|
|
1222
1251
|
] }
|
|
1223
1252
|
},
|
|
1224
1253
|
setup(t) {
|
|
1225
|
-
let r = t, i =
|
|
1226
|
-
return (e, t) => r.for === "select" ?
|
|
1227
|
-
default:
|
|
1228
|
-
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), {
|
|
1229
1258
|
class: "dock-select-trigger__chevron",
|
|
1230
1259
|
"aria-hidden": "true"
|
|
1231
1260
|
})])]),
|
|
1232
1261
|
_: 3
|
|
1233
1262
|
})]),
|
|
1234
1263
|
_: 3
|
|
1235
|
-
}, 16, ["class"])), [[J(n)]]) : r.for === "dropdown" ?
|
|
1264
|
+
}, 16, ["class"])), [[J(n)]]) : r.for === "dropdown" ? oe((U(), j(x, L({ key: 1 }, e.$attrs, {
|
|
1236
1265
|
action: "pointerdown",
|
|
1237
1266
|
class: i.value
|
|
1238
1267
|
}), {
|
|
1239
|
-
default:
|
|
1268
|
+
default: Q(() => [K(e.$slots, "default")]),
|
|
1240
1269
|
_: 3
|
|
1241
|
-
}, 16, ["class"])), [[J(n)]]) :
|
|
1242
|
-
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")]),
|
|
1243
1272
|
_: 3
|
|
1244
1273
|
}, 16, ["class"])), [[J(n)]]);
|
|
1245
1274
|
}
|
|
1246
|
-
}),
|
|
1275
|
+
}), _t = /* @__PURE__ */ I({
|
|
1247
1276
|
__name: "DockBackgroundToggle",
|
|
1248
1277
|
props: {
|
|
1249
1278
|
paused: {
|
|
@@ -1255,23 +1284,22 @@ var rt = /* @__PURE__ */ P({
|
|
|
1255
1284
|
},
|
|
1256
1285
|
emits: ["update:paused"],
|
|
1257
1286
|
setup(e, { emit: t }) {
|
|
1258
|
-
let n = e, r = t, i =
|
|
1287
|
+
let n = e, r = t, i = A(() => n.paused ? n.playLabel : n.pauseLabel);
|
|
1259
1288
|
function a() {
|
|
1260
1289
|
r("update:paused", !n.paused);
|
|
1261
1290
|
}
|
|
1262
|
-
return (t, n) => (U(),
|
|
1291
|
+
return (t, n) => (U(), j(ht, {
|
|
1263
1292
|
type: "button",
|
|
1264
1293
|
active: e.paused,
|
|
1265
1294
|
"aria-pressed": e.paused,
|
|
1266
1295
|
"aria-label": i.value,
|
|
1267
|
-
title: i.value,
|
|
1268
1296
|
onClick: a
|
|
1269
1297
|
}, {
|
|
1270
|
-
default:
|
|
1298
|
+
default: Q(() => [e.paused ? (U(), j(J(me), {
|
|
1271
1299
|
key: 0,
|
|
1272
1300
|
size: 18,
|
|
1273
1301
|
"aria-hidden": "true"
|
|
1274
|
-
})) : (U(),
|
|
1302
|
+
})) : (U(), j(J(pe), {
|
|
1275
1303
|
key: 1,
|
|
1276
1304
|
size: 18,
|
|
1277
1305
|
"aria-hidden": "true"
|
|
@@ -1280,40 +1308,39 @@ var rt = /* @__PURE__ */ P({
|
|
|
1280
1308
|
}, 8, [
|
|
1281
1309
|
"active",
|
|
1282
1310
|
"aria-pressed",
|
|
1283
|
-
"aria-label"
|
|
1284
|
-
"title"
|
|
1311
|
+
"aria-label"
|
|
1285
1312
|
]));
|
|
1286
1313
|
}
|
|
1287
|
-
}),
|
|
1314
|
+
}), vt = [
|
|
1288
1315
|
"data-orientation",
|
|
1289
|
-
"data-
|
|
1316
|
+
"data-dock-hairline",
|
|
1290
1317
|
"aria-orientation"
|
|
1291
|
-
],
|
|
1318
|
+
], yt = /* @__PURE__ */ I({
|
|
1292
1319
|
__name: "DockSeparator",
|
|
1293
1320
|
props: { anchor: {
|
|
1294
1321
|
type: Boolean,
|
|
1295
1322
|
default: !1
|
|
1296
1323
|
} },
|
|
1297
1324
|
setup(e) {
|
|
1298
|
-
let t =
|
|
1299
|
-
return (t, n) => (U(),
|
|
1300
|
-
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 }]),
|
|
1301
1328
|
role: "separator",
|
|
1302
1329
|
"data-orientation": r.value,
|
|
1303
|
-
"data-
|
|
1330
|
+
"data-dock-hairline": e.anchor || void 0,
|
|
1304
1331
|
"aria-orientation": i.value
|
|
1305
|
-
}, null, 10,
|
|
1332
|
+
}, null, 10, vt));
|
|
1306
1333
|
}
|
|
1307
1334
|
});
|
|
1308
1335
|
//#endregion
|
|
1309
1336
|
//#region src/components/dock/composables/useDockSearch.ts
|
|
1310
|
-
function
|
|
1337
|
+
function bt(e) {
|
|
1311
1338
|
let { dockState: t } = e, n = e.debounceMs ?? 120, r = e.maxResults ?? 30, i = G([]), a = null, o = e.items ? e.items : () => i.value;
|
|
1312
1339
|
function s(t) {
|
|
1313
1340
|
let n = t.item.id;
|
|
1314
1341
|
e.ensureTargetWindow?.(n), e.scrollTo?.(n), e.onResultSelect?.(t);
|
|
1315
1342
|
}
|
|
1316
|
-
let c =
|
|
1343
|
+
let c = O({
|
|
1317
1344
|
items: o,
|
|
1318
1345
|
debounceMs: n,
|
|
1319
1346
|
maxResults: r,
|
|
@@ -1321,7 +1348,7 @@ function vt(e) {
|
|
|
1321
1348
|
});
|
|
1322
1349
|
if (e.onSearch) {
|
|
1323
1350
|
let t = e.onSearch;
|
|
1324
|
-
|
|
1351
|
+
Z(() => c.query.value, (e) => {
|
|
1325
1352
|
if (a?.abort(), !e) {
|
|
1326
1353
|
i.value = [];
|
|
1327
1354
|
return;
|
|
@@ -1334,7 +1361,7 @@ function vt(e) {
|
|
|
1334
1361
|
});
|
|
1335
1362
|
});
|
|
1336
1363
|
}
|
|
1337
|
-
let l =
|
|
1364
|
+
let l = A(() => {
|
|
1338
1365
|
let e = c.query.value;
|
|
1339
1366
|
if (!e) return "";
|
|
1340
1367
|
let t = c.results.value[0];
|
|
@@ -1346,28 +1373,28 @@ function vt(e) {
|
|
|
1346
1373
|
let e = l.value;
|
|
1347
1374
|
e && (c.query.value = c.query.value + e);
|
|
1348
1375
|
}
|
|
1349
|
-
let d =
|
|
1350
|
-
function
|
|
1351
|
-
|
|
1376
|
+
let d = p(() => t), f = d.isHeld;
|
|
1377
|
+
function m() {
|
|
1378
|
+
f.value || (t.expand(), d.acquire(), c.open());
|
|
1352
1379
|
}
|
|
1353
|
-
function
|
|
1354
|
-
|
|
1380
|
+
function h() {
|
|
1381
|
+
f.value && (c.close(), d.release());
|
|
1355
1382
|
}
|
|
1356
|
-
let
|
|
1357
|
-
return e.collapseOnScroll && e.scrollContainer && (
|
|
1383
|
+
let g = null;
|
|
1384
|
+
return e.collapseOnScroll && e.scrollContainer && (g = E(e.scrollContainer, {
|
|
1358
1385
|
collapseOnScroll: !0,
|
|
1359
1386
|
chromeRef: e.chromeRef
|
|
1360
|
-
})),
|
|
1361
|
-
|
|
1387
|
+
})), ne(() => {
|
|
1388
|
+
a?.abort(), a = null;
|
|
1362
1389
|
}), {
|
|
1363
1390
|
fuzzy: c,
|
|
1364
1391
|
autocompleteText: l,
|
|
1365
|
-
scrollChrome:
|
|
1366
|
-
armSearch:
|
|
1367
|
-
disarmSearch:
|
|
1392
|
+
scrollChrome: g,
|
|
1393
|
+
armSearch: m,
|
|
1394
|
+
disarmSearch: h,
|
|
1368
1395
|
acceptAutocomplete: u,
|
|
1369
|
-
isSearchArmed:
|
|
1396
|
+
isSearchArmed: f
|
|
1370
1397
|
};
|
|
1371
1398
|
}
|
|
1372
1399
|
//#endregion
|
|
1373
|
-
export {
|
|
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 };
|