@mkbabb/glass-ui 5.0.0 → 6.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 +30 -27
- package/dist/DropdownMenuTrigger-BzQtd9lt.js +65 -0
- package/dist/{FadingScroll-BSRLqQCx.js → FadingScroll-C1ZWEjmG.js} +32 -25
- package/dist/{Input-DKf-XwUM.js → Input-B4WQ_CMc.js} +1 -1
- package/dist/{PagerDots-BP6jh7z4.js → PagerDots-BoTQ7g5l.js} +123 -95
- package/dist/{accent-tone-solve-CBw3L0cy.js → accent-tone-solve-Dii9ePhK.js} +1 -1
- package/dist/animated-digit.js +1 -1
- package/dist/aurora.js +324 -314
- package/dist/blob-config.d.ts +0 -4
- package/dist/blob-config.js +1 -1
- package/dist/blob.js +280 -261
- package/dist/{button-BXzhydVB.js → button-32mg6xA8.js} +63 -56
- package/dist/button.js +1 -1
- package/dist/canvas.js +1 -1
- package/dist/{CardAction-2uUvjMQK.js → card-16xmzIr3.js} +29 -11
- package/dist/card.js +1 -1
- package/dist/carousel.d.ts +1 -2
- package/dist/carousel.js +26 -95
- package/dist/chip.d.ts +0 -9
- package/dist/chip.js +1 -1
- package/dist/collapsible.js +1 -1
- package/dist/color-swatch.js +1 -0
- package/dist/color.js +87 -3
- package/dist/{CommandShortcut-fmdbsEJL.js → command-BjPjUU9z.js} +56 -51
- package/dist/command.js +1 -1
- package/dist/completion-seal.js +64 -55
- package/dist/components/_shared/ModalOverlay.vue.d.ts +5 -52
- package/dist/components/_shared/field-surfaces.css +1 -0
- package/dist/components/_shared/menuItemVariants.d.ts +2 -2
- package/dist/components/_shared/useMotionAxis.d.ts +2 -2
- package/dist/components/_shared/valueDomain.d.ts +6 -0
- package/dist/components/alert/index.d.ts +1 -1
- package/dist/components/animated-digit/AnimatedDigit.vue.d.ts +1 -1
- package/dist/components/aurora/Aurora.vue.d.ts +7 -1
- package/dist/components/aurora/composables/runtime.d.ts +5 -3
- package/dist/components/aurora/composables/useAurora.d.ts +4 -2
- package/dist/components/avatar/AvatarImage.vue.d.ts +3 -1
- package/dist/components/badge/index.d.ts +2 -2
- package/dist/components/blob/Blob.vue.d.ts +11 -0
- package/dist/components/blob/composables/useMetaballRenderer.d.ts +2 -0
- package/dist/components/button/Button.vue.d.ts +4 -2
- package/dist/components/button/index.d.ts +2 -2
- package/dist/components/card/Card.vue.d.ts +4 -4
- package/dist/components/card/ScrollCard.vue.d.ts +1 -1
- package/dist/components/card/styles.css +1 -0
- package/dist/components/carousel/Carousel.vue.d.ts +2 -2
- package/dist/components/carousel/CarouselNext.vue.d.ts +1 -1
- package/dist/components/carousel/CarouselPrevious.vue.d.ts +1 -1
- package/dist/components/carousel/index.d.ts +0 -1
- package/dist/components/carousel/useCarousel.d.ts +2 -2
- package/dist/components/combobox/ComboboxList.vue.d.ts +1 -1
- package/dist/components/combobox/index.d.ts +1 -3
- package/dist/components/command/Command.vue.d.ts +1 -1
- package/dist/components/command/CommandDialog.vue.d.ts +9 -6
- package/dist/components/completion-seal/styles.css +1 -0
- package/dist/components/constellation/Constellation.vue.d.ts +6 -1
- package/dist/components/constellation/composables/useConstellation.d.ts +3 -16
- package/dist/components/constellation/constants.d.ts +6 -16
- package/dist/components/constellation/constellationField.d.ts +3 -5
- package/dist/components/constellation/constellationInteraction.d.ts +1 -1
- package/dist/components/constellation/constellationRender.d.ts +11 -21
- package/dist/components/constellation/constellationTypes.d.ts +12 -9
- package/dist/components/constellation/index.d.ts +1 -1
- package/dist/components/controls/DarkModeToggle.vue.d.ts +0 -2
- package/dist/components/data-table/DataTable.vue.d.ts +14 -2
- package/dist/components/data-table/index.d.ts +1 -2
- package/dist/components/data-table/types.d.ts +26 -1
- package/dist/components/deck/constants.d.ts +0 -10
- package/dist/components/deck/index.d.ts +0 -1
- package/dist/components/dialog/DialogContent.vue.d.ts +7 -1
- package/dist/components/dialog/index.d.ts +0 -1
- package/dist/components/dock/DockControl.vue.d.ts +4 -4
- package/dist/components/dock/DockStack.vue.d.ts +2 -2
- package/dist/components/dock/GlassDock.vue.d.ts +1 -0
- package/dist/components/dock/composables/dockMorphContext.d.ts +2 -0
- package/dist/components/dock/composables/dockMorphMeasure.d.ts +11 -1
- package/dist/components/dock/composables/useDockClickIntegrity.d.ts +4 -0
- package/dist/components/dock/composables/useDockOverflowFit.d.ts +3 -3
- package/dist/components/dock/composables/useDockPopover.d.ts +2 -0
- package/dist/components/dock/composables/useDockShellProps.d.ts +7 -0
- package/dist/components/dock/composables/useDockState.d.ts +2 -2
- package/dist/components/dock/constants.d.ts +0 -12
- package/dist/components/dock/index.d.ts +1 -0
- package/dist/components/dock/styles/adaptive-legibility.css +1 -0
- package/dist/components/dock/styles/controls/icon-button.css +1 -0
- package/dist/{styles/dock-controls → components/dock/styles/controls}/touch-floor.css +1 -1
- package/dist/components/dock/styles/controls.css +1 -0
- package/dist/{styles/dock → components/dock/styles}/density.css +1 -1
- package/dist/components/dock/styles/dock.css +1 -0
- package/dist/components/dock/styles/index.css +1 -0
- package/dist/components/dock/styles/layer-group.css +1 -0
- package/dist/components/dock/styles/layers.css +1 -0
- package/dist/components/dock/styles/overflow.css +1 -0
- package/dist/components/dock/styles/popover.css +1 -0
- package/dist/components/dock/styles/shape.css +1 -0
- package/dist/components/dock/styles/shell.css +1 -0
- package/dist/components/drawer/Drawer.vue.d.ts +3 -3
- package/dist/components/drawer/composables/drawerSnapContext.d.ts +3 -1
- package/dist/components/drawer/constants.d.ts +6 -6
- package/dist/components/drawer/index.d.ts +4 -6
- package/dist/components/drawer/styles.css +1 -0
- package/dist/components/dropdown-menu/DropdownMenuContent.vue.d.ts +1 -1
- package/dist/components/dropdown-menu/DropdownMenuTrigger.vue.d.ts +9 -3
- package/dist/components/dropdown-menu/index.d.ts +0 -1
- package/dist/components/easing/EasingConfigurator.vue.d.ts +1 -1
- package/dist/components/easing/EasingPicker.vue.d.ts +2 -2
- package/dist/components/easing/composables/useEasingPicker.d.ts +4 -0
- package/dist/components/easing/constants.d.ts +2 -0
- package/dist/components/fading-scroll/composables/useFadingScroll.d.ts +3 -3
- package/dist/components/fourier-field/FourierField.vue.d.ts +7 -1
- package/dist/components/fourier-field/composables/useFourierField.d.ts +2 -1
- package/dist/components/handmark/HandMark.vue.d.ts +1 -1
- package/dist/components/handmark/geometry.d.ts +1 -1
- package/dist/components/handmark/index.d.ts +4 -6
- package/dist/components/icon-chip/styles.css +1 -0
- package/dist/components/index.d.ts +0 -1
- package/dist/components/infinite-scroll/index.d.ts +1 -0
- package/dist/components/instrument-chassis/styles.css +1 -0
- package/dist/components/labeled-field/LabeledField.vue.d.ts +12 -2
- package/dist/components/labeled-field/LabeledInput.vue.d.ts +10 -3
- package/dist/components/liquid-grid/LiquidGrid.vue.d.ts +4 -0
- package/dist/components/liquid-grid/composables/useLiquidGrid.d.ts +2 -1
- package/dist/components/metric-stack/MetricStack.vue.d.ts +1 -1
- package/dist/components/pager-dots/PagerDots.vue.d.ts +1 -1
- package/dist/components/popover/PopoverContent.vue.d.ts +1 -1
- package/dist/components/progress/Progress.vue.d.ts +5 -40
- package/dist/components/progress/ProgressDefault.vue.d.ts +1 -17
- package/dist/components/progress/ProgressGradient.vue.d.ts +1 -0
- package/dist/components/progress/ProgressLiquid.vue.d.ts +1 -0
- package/dist/components/progress/index.d.ts +0 -5
- package/dist/components/progress/valueMarks.css +1 -0
- package/dist/components/pulse/Pulse.vue.d.ts +2 -2
- package/dist/components/scroll-progress-rim/styles.css +1 -0
- package/dist/components/search/FuzzySearch.vue.d.ts +4 -2
- package/dist/components/search/SearchBar.vue.d.ts +2 -2
- package/dist/components/search/searchVariants.d.ts +1 -1
- package/dist/components/select/SelectContent.vue.d.ts +1 -1
- package/dist/components/select/index.d.ts +0 -2
- package/dist/components/skeleton/Skeleton.vue.d.ts +1 -1
- package/dist/components/slider/Slider.vue.d.ts +2 -0
- package/dist/components/split-chars/SplitChars.vue.d.ts +1 -1
- package/dist/components/surface/Surface.vue.d.ts +1 -1
- package/dist/components/table/Table.vue.d.ts +4 -0
- package/dist/components/tabs/SegmentedTabs.vue.d.ts +10 -0
- package/dist/components/tabs/index.d.ts +1 -1
- package/dist/components/tabs/styles/drag.css +1 -0
- package/dist/components/tags-input/TagsInput.vue.d.ts +2 -2
- package/dist/components/timeline/ContinuousTimeline.vue.d.ts +1 -1
- package/dist/components/timeline/GlassTimeline.vue.d.ts +4 -4
- package/dist/components/toast/Toast.vue.d.ts +3 -3
- package/dist/components/toast/use-toast.d.ts +4 -4
- package/dist/components/typewriter/TypewriterText.vue.d.ts +1 -4
- package/dist/components/typewriter/composables/useTypewriter.d.ts +0 -1
- package/dist/components/typewriter/utils/graphemes.d.ts +1 -0
- package/dist/components/watercolor-dot/WatercolorDot.vue.d.ts +2 -2
- package/dist/composables/glass/useGlassBackdropLuminance.d.ts +31 -0
- package/dist/composables/glass/webgpu/rendererStatus.d.ts +13 -0
- package/dist/composables/glass/webgpu/useGpuSubstrate.d.ts +3 -0
- package/dist/composables/glass/webgpu/webgpuCanvasTypes.d.ts +2 -0
- package/dist/composables/motion/springProjection.d.ts +16 -0
- package/dist/composables/motion/useAnimatedNumber.d.ts +1 -6
- package/dist/composables/motion/useCountup.d.ts +1 -6
- package/dist/composables/motion/useDockCtaReceive.d.ts +55 -0
- package/dist/composables/motion/useElementMorph.d.ts +8 -0
- package/dist/composables/motion/useLiquidPress.d.ts +12 -4
- package/dist/composables/motion/useNumericTransition.d.ts +2 -0
- package/dist/composables/motion/useTextHighlight.d.ts +2 -1
- package/dist/configurator-CSENXXSy.js +311 -0
- package/dist/configurator.js +2 -3
- package/dist/constellation.js +235 -571
- package/dist/controls.js +55 -63
- package/dist/{createCanvasLifecycle-DlrcvWbb.js → createCanvasLifecycle-hsFkQVdl.js} +32 -32
- package/dist/dark-DIH-blY1.js +70 -0
- package/dist/dark.d.ts +1 -2
- package/dist/dark.js +2 -20
- package/dist/{DataTable-Bxya8nBn.js → data-table-DveMdgBM.js} +231 -120
- package/dist/data-table.js +2 -2
- package/dist/deck.js +10 -21
- package/dist/dialog-BzQxKrUr.js +281 -0
- package/dist/dialog.js +2 -3
- package/dist/dock.js +561 -428
- package/dist/{dockContext-d-WpJN2Z.js → dockContext-4S9qP0Z4.js} +1 -1
- package/dist/dom.js +196 -7
- package/dist/drawer.js +111 -66
- package/dist/dropdown-menu-DORIA52F.js +378 -0
- package/dist/dropdown-menu.js +3 -2
- package/dist/easing.d.ts +0 -9
- package/dist/easing.js +334 -187
- package/dist/expandable-container.js +12 -4
- package/dist/fading-scroll.js +1 -1
- package/dist/focus-scope.js +1 -1
- package/dist/forms.js +37 -78
- package/dist/fourier-field.js +273 -263
- package/dist/fourier-math.d.ts +0 -6
- package/dist/fourier-math.js +112 -2
- package/dist/glass-ui.css +1 -1
- package/dist/glass-ui.js +131 -195
- package/dist/handmark.d.ts +0 -2
- package/dist/handmark.js +82 -82
- package/dist/header-ribbon.js +41 -30
- package/dist/{IconChip-CwLmBJ_K.js → icon-chip-BWuxz1-u.js} +1 -1
- package/dist/icon-chip.js +1 -1
- package/dist/{IconTooltip-D9sbK-Mk.js → icon-tooltip-CO6rw0dZ.js} +1 -1
- package/dist/icon-tooltip.js +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/infinite-scroll.d.ts +0 -1
- package/dist/infinite-scroll.js +17 -15
- package/dist/instrument-chassis.js +1 -1
- package/dist/keyboard.js +104 -2
- package/dist/label.js +1 -1
- package/dist/labeled-field.js +95 -69
- package/dist/liquid-grid.js +173 -162
- package/dist/metric-badge.js +3 -3
- package/dist/metric-cell.js +2 -2
- package/dist/metric-stack.js +1 -1
- package/dist/motion-core.js +15 -16
- package/dist/motion-curves.d.ts +0 -20
- package/dist/motion.js +59 -58
- package/dist/{Notification-DQv2cOh9.js → notification-DVs7ODMg.js} +17 -8
- package/dist/notification.js +1 -1
- package/dist/{NumberFieldContent-BkE7xPS9.js → number-field-PvkGedHk.js} +2 -2
- package/dist/number-field.js +1 -1
- package/dist/pager-dots.js +1 -1
- package/dist/paper-backdrop.js +31 -2
- package/dist/{PopoverContent-DOtszFWK.js → popover-WMgyRSyN.js} +7 -2
- package/dist/popover.js +1 -1
- package/dist/procedural-color.wgsl-B9mLK7v0.js +377 -0
- package/dist/progress-C-HHuFZy.js +192 -0
- package/dist/progress.js +2 -2
- package/dist/pulse.js +3 -1
- package/dist/reactive.js +19 -3
- package/dist/rendererStatus-C2-zC2Q-.js +40 -0
- package/dist/{resolveCanvasColor-B3L-akX0.js → resolveCanvasColor-yarP5bdk.js} +1 -1
- package/dist/scroll-progress-rim.js +1 -1
- package/dist/search.js +187 -146
- package/dist/{SelectScrollDownButton-CDtwaWkZ.js → select-BIv4R3Ir.js} +109 -44
- package/dist/select.js +2 -4
- package/dist/separator-CBU94kTM.js +62 -0
- package/dist/separator.js +1 -1
- package/dist/sidebar.js +1 -1
- package/dist/slider-Cc_qw6GA.js +166 -0
- package/dist/slider.js +1 -1
- package/dist/sortable-list.js +43 -43
- package/dist/styles/accessibility.css +1 -0
- package/dist/styles/components.css +1 -1
- package/dist/styles/glass/control-surfaces.css +1 -1
- package/dist/styles/glass/glass-capsule.css +1 -1
- package/dist/styles/glass/ladder.css +1 -1
- package/dist/styles/glass/liquid-fill.css +1 -1
- package/dist/styles/glass/material-roles.css +1 -0
- package/dist/styles/glass/material.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.css +1 -1
- package/dist/styles/index.css +1 -1
- package/dist/styles/theme/bridges.css +1 -1
- package/dist/styles/tokens/glass-fx.css +1 -1
- package/dist/styles/tokens/glass.css +1 -1
- package/dist/styles/tokens/offsets.css +1 -1
- package/dist/styles/tokens/scale-paper.css +1 -1
- package/dist/styles/tokens/scheme-spring.css +1 -1
- package/dist/styles/tokens/shadow.css +1 -1
- package/dist/styles/tokens.d.ts +53 -0
- package/dist/styles/tokens.ts +58 -0
- 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/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.css +1 -1
- package/dist/{Switch-BPBfhMU3.js → switch-Boj4Ucn5.js} +1 -1
- package/dist/switch.js +1 -1
- package/dist/tabs.js +51 -45
- package/dist/timeline.js +2 -2
- package/dist/toast.js +1 -1
- package/dist/{ToggleGroupItem-DNWx2aSW.js → toggle-group-BPchFsns.js} +10 -7
- package/dist/toggle-group.js +1 -1
- package/dist/tokens.d.ts +1 -53
- package/dist/tokens.js +1 -1
- package/dist/{TooltipProvider-GtfYdSVf.js → tooltip-BmOQJzh0.js} +1 -0
- package/dist/tooltip.js +1 -1
- package/dist/typewriter.js +151 -166
- package/dist/{useAccentTone-D25DxviG.js → useAccentTone-C-p6WdPe.js} +1 -1
- package/dist/{useAnimatedNumber-2XC4aRB6.js → useAnimatedNumber-BRVVaFFc.js} +1 -1
- package/dist/useDockCtaReceive-CK-RLASa.js +257 -0
- package/dist/{useGooMorph-CU1pwuC6.js → useGooMorph-D1F6QJlH.js} +140 -59
- package/dist/{useIntersectionPause-Cmt5Tnv9.js → useIntersectionPause-B-dbxl9w.js} +1 -1
- package/dist/useLiquidPress-BYcwwGQV.js +68 -0
- package/dist/{useRAFLoop-CvOo_kgb.js → useRAFLoop-BtwQ9DyY.js} +1 -1
- package/dist/{useScrollProgress-C-yImzhU.js → useScrollProgress-DZI4nf4v.js} +1 -1
- package/dist/{useSelectionGroup-Btpf24aY.js → useSelectionGroup-LDzBdR1Y.js} +3 -3
- package/dist/{useTabRovingFocus-CG1H1k1J.js → useTabRovingFocus-DkLYwo4L.js} +1 -1
- package/dist/{useTouchGate-BlegwvwL.js → useTouchGate-Cj5fOkTv.js} +1 -1
- package/dist/valueDomain-B8L04u3U.js +13 -0
- package/dist/watercolor-dot.js +5 -3
- package/package.json +5 -12
- package/src/styles/accessibility.css +48 -0
- package/src/styles/glass/glass-capsule.css +2 -2
- package/src/styles/glass/ladder.css +1 -1
- package/src/styles/glass/material-roles.css +18 -0
- package/src/styles/glass/material.css +18 -12
- package/src/styles/glass.css +5 -5
- package/src/styles/index.css +38 -30
- package/src/styles/theme/bridges.css +0 -6
- package/src/styles/tokens/glass-fx.css +1 -5
- package/src/styles/tokens/glass.css +1 -2
- package/src/styles/tokens/offsets.css +0 -1
- package/src/styles/tokens/property-regs.css +11 -10
- package/src/styles/tokens/scale-paper.css +0 -1
- package/src/styles/tokens/scheme-motion.css +3 -0
- package/src/styles/tokens/scheme-spring.css +0 -10
- package/src/styles/tokens/shadow.css +3 -29
- package/src/styles/tokens.ts +58 -0
- package/src/styles/typography/scale.css +5 -2
- package/src/styles/typography/semantic.css +5 -5
- package/src/styles/typography/utilities.css +5 -5
- package/src/styles/utilities/base.css +5 -5
- package/src/styles/utilities/btn.css +6 -27
- package/src/styles/utilities.css +4 -6
- package/dist/ConfiguratorRow-BV6zPjTM.js +0 -151
- package/dist/DialogContent-Bl4v10AC.js +0 -192
- package/dist/DialogFooter-C0v4Hz2F.js +0 -168
- package/dist/PaperBackdrop-BYwE8_kg.js +0 -31
- package/dist/Progress-uWLyXE7J.js +0 -308
- package/dist/SelectGroup-BuEptUsa.js +0 -31
- package/dist/SelectSeparator-4QGephvr.js +0 -49
- package/dist/Separator-DqJ6PfOd.js +0 -44
- package/dist/color-Bp5jmv4Z.js +0 -86
- package/dist/components/carousel/GlassCarouselPager.vue.d.ts +0 -50
- package/dist/components/combobox/ComboboxSeparator.vue.d.ts +0 -18
- package/dist/components/combobox/ComboboxViewport.vue.d.ts +0 -18
- package/dist/components/constellation/composables/constellationGLSetup.d.ts +0 -10
- package/dist/components/constellation/composables/constellationWGPUSetup.d.ts +0 -19
- package/dist/components/constellation/composables/uniformBridgeWGPU.d.ts +0 -66
- package/dist/components/constellation/shaders/constellation-lines.glsl.d.ts +0 -2
- package/dist/components/constellation/shaders/constellation-lines.wgsl.d.ts +0 -1
- package/dist/components/constellation/shaders/constellation-points.glsl.d.ts +0 -2
- package/dist/components/constellation/shaders/constellation-points.wgsl.d.ts +0 -1
- package/dist/components/deck/composables/useDeckSpring.d.ts +0 -22
- package/dist/components/dialog/DialogScrollContent.vue.d.ts +0 -33
- package/dist/components/progress/ProgressSectioned.vue.d.ts +0 -47
- package/dist/components/progress/useProgressGeometry.d.ts +0 -60
- package/dist/components/section/Section.vue.d.ts +0 -73
- package/dist/components/section/index.d.ts +0 -1
- package/dist/components/stacked-icons/StackedIconGroup.vue.d.ts +0 -30
- package/dist/components/stacked-icons/index.d.ts +0 -2
- package/dist/components/stacked-icons/types.d.ts +0 -19
- package/dist/dropdown-menu-DaGlVdp9.js +0 -421
- package/dist/math-CIEcwsYi.js +0 -112
- package/dist/procedural-color.wgsl-ByduxnzV.js +0 -4
- package/dist/slider-Cxuj_W_H.js +0 -151
- package/dist/stacked-icons.d.ts +0 -1
- package/dist/stacked-icons.js +0 -98
- package/dist/styles/cards.css +0 -1
- package/dist/styles/completion-seal.css +0 -1
- package/dist/styles/dock/adaptive-legibility.css +0 -1
- package/dist/styles/dock/dock.css +0 -1
- package/dist/styles/dock/layer-group.css +0 -1
- package/dist/styles/dock/layers.css +0 -1
- package/dist/styles/dock/overflow.css +0 -1
- package/dist/styles/dock/popover.css +0 -1
- package/dist/styles/dock/shape.css +0 -1
- package/dist/styles/dock/shell.css +0 -1
- package/dist/styles/dock-controls/icon-button.css +0 -1
- package/dist/styles/dock-controls.css +0 -1
- package/dist/styles/dock.css +0 -1
- package/dist/styles/drawer.css +0 -1
- package/dist/styles/icon-chip.css +0 -1
- package/dist/styles/instrument-chassis.css +0 -1
- package/dist/styles/scroll-progress-rim.css +0 -1
- package/dist/styles/select.css +0 -1
- package/dist/styles/tabs/segmented-tabs-drag.css +0 -1
- package/dist/styles/utilities/animate.css +0 -0
- package/dist/useConfiguratorState-Dq35N_7t.js +0 -167
- package/dist/useDockCtaReceive-BgMmeINo.js +0 -161
- package/dist/useGlobalDark-DjKMEQE2.js +0 -53
- package/dist/useGpuSubstrate-DcY584kE.js +0 -347
- package/dist/useInterval-ZATRi-1T.js +0 -18
- package/dist/useKeyboardShortcuts-ynVmNFo3.js +0 -104
- package/dist/useLiquidPress-BXNHydZh.js +0 -40
- package/dist/useTextHighlight-C46Le9u_.js +0 -72
- package/dist/useViewportReady-c0isoKL8.js +0 -191
- package/src/styles/card-scroll.css +0 -189
- package/src/styles/cards.css +0 -485
- package/src/styles/completion-seal.css +0 -205
- package/src/styles/configurator.css +0 -359
- package/src/styles/dialog-placement.css +0 -68
- package/src/styles/dock/adaptive-legibility.css +0 -119
- package/src/styles/dock/crossfade.css +0 -139
- package/src/styles/dock/cta-seat.css +0 -87
- package/src/styles/dock/density.css +0 -458
- package/src/styles/dock/dock.css +0 -199
- package/src/styles/dock/fisheye.css +0 -81
- package/src/styles/dock/layer-group.css +0 -329
- package/src/styles/dock/layers.css +0 -438
- package/src/styles/dock/morph.css +0 -455
- package/src/styles/dock/overflow.css +0 -332
- package/src/styles/dock/popover.css +0 -249
- package/src/styles/dock/search.css +0 -68
- package/src/styles/dock/section.css +0 -59
- package/src/styles/dock/shape.css +0 -188
- package/src/styles/dock/shell-regions.css +0 -73
- package/src/styles/dock/shell.css +0 -500
- package/src/styles/dock-controls/dark-mode-toggle.css +0 -123
- package/src/styles/dock-controls/icon-button.css +0 -221
- package/src/styles/dock-controls/tab-button.css +0 -143
- package/src/styles/dock-controls/touch-floor.css +0 -119
- package/src/styles/dock-controls/triggers.css +0 -157
- package/src/styles/dock-controls.css +0 -92
- package/src/styles/dock.css +0 -219
- package/src/styles/drawer.css +0 -434
- package/src/styles/feedback-tone.css +0 -104
- package/src/styles/icon-chip.css +0 -256
- package/src/styles/instrument-chassis.css +0 -449
- package/src/styles/menu.css +0 -187
- package/src/styles/scroll-progress-rim.css +0 -87
- package/src/styles/segmented-tabs.css +0 -424
- package/src/styles/select.css +0 -201
- package/src/styles/tabs/segmented-tabs-drag.css +0 -200
- package/src/styles/utilities/animate.css +0 -29
- /package/dist/{coalesce-metric-B8o7zT9u.js → coalesce-metric-znAcLzkB.js} +0 -0
- /package/dist/{CollapsibleContent-DiHcB_HH.js → collapsible-bPzS1aQk.js} +0 -0
- /package/dist/{compile-C55K3P9g.js → compile-DK3Fri1B.js} +0 -0
- /package/dist/{styles → components/_shared}/feedback-tone.css +0 -0
- /package/dist/{styles → components/_shared}/menu.css +0 -0
- /package/dist/{styles → components/card}/card-scroll.css +0 -0
- /package/dist/{styles/configurator.css → components/configurator/styles.css} +0 -0
- /package/dist/{styles/dock-controls → components/controls}/dark-mode-toggle.css +0 -0
- /package/dist/{styles/dialog-placement.css → components/dialog/placement.css} +0 -0
- /package/dist/{styles/dock-controls → components/dock/styles/controls}/tab-button.css +0 -0
- /package/dist/{styles/dock-controls → components/dock/styles/controls}/triggers.css +0 -0
- /package/dist/{styles/dock → components/dock/styles}/crossfade.css +0 -0
- /package/dist/{styles/dock → components/dock/styles}/cta-seat.css +0 -0
- /package/dist/{styles/dock → components/dock/styles}/fisheye.css +0 -0
- /package/dist/{styles/dock → components/dock/styles}/morph.css +0 -0
- /package/dist/{styles/dock → components/dock/styles}/search.css +0 -0
- /package/dist/{styles/dock → components/dock/styles}/section.css +0 -0
- /package/dist/{styles/dock → components/dock/styles}/shell-regions.css +0 -0
- /package/dist/{styles/segmented-tabs.css → components/tabs/styles/segmented.css} +0 -0
- /package/dist/{constants-D8lSMkOz.js → constants-DRZmNIY-.js} +0 -0
- /package/dist/{createContext-BQ1Gy_LB.js → createContext-FU0n5MGK.js} +0 -0
- /package/dist/{flow.glsl-CVqPSj8_.js → flow.glsl-DEGFGE11.js} +0 -0
- /package/dist/{FocusScope-BzKwhsBn.js → focus-scope-DUTKveod.js} +0 -0
- /package/dist/{InstrumentChassis-Dss5Tjcm.js → instrument-chassis-Cvstg4_U.js} +0 -0
- /package/dist/{Label-C84TaQiw.js → label-Cj38tJKG.js} +0 -0
- /package/dist/{menuItemVariants-DbO-Fr74.js → menuItemVariants-D6AOzzND.js} +0 -0
- /package/dist/{pointerFieldMappings-4VtmkOWv.js → pointerFieldMappings-CZojkgKj.js} +0 -0
- /package/dist/{presets-B07HzyKd.js → presets-CxeNvxuO.js} +0 -0
- /package/dist/{prng-B0PLRmR6.js → prng-Dz2_9RJu.js} +0 -0
- /package/dist/{scrollReader-DzYqPQ6V.js → scrollReader-C2oK9Hb8.js} +0 -0
- /package/dist/{supportsCssTimeline-Ie4xJFbD.js → supportsCssTimeline-Dz-GVxXM.js} +0 -0
- /package/dist/{Toaster-C_-WeU9W.js → toast-kAbchIN2.js} +0 -0
- /package/dist/{useControlSize-DJwe-7ZQ.js → useControlSize-CFfOk8I-.js} +0 -0
- /package/dist/{useDocumentVisibility-CpJGUgcJ.js → useDocumentVisibility-YeBDGqtI.js} +0 -0
- /package/dist/{useDragMorph-65ihHePq.js → useDragMorph-7ygF9O0m.js} +0 -0
- /package/dist/{useDragVelocity-BWcNMCux.js → useDragVelocity-CbMZEBaC.js} +0 -0
- /package/dist/{useFuzzySearch-KslRxiJY.js → useFuzzySearch-BOgep7RE.js} +0 -0
- /package/dist/{useLeadTrail-DOH4XkL1.js → useLeadTrail-BYu8dq4G.js} +0 -0
- /package/dist/{usePointerVelocityField-CwXyeW0Z.js → usePointerVelocityField-BdvnO0py.js} +0 -0
- /package/dist/{useResizeObserver-DDuoBeBo.js → useResizeObserver-BcUTquV7.js} +0 -0
- /package/dist/{useResolveTokenColor-DVT5kwv6.js → useResolveTokenColor-C07e-qaT.js} +0 -0
- /package/dist/{useRoutePointer-DL7I0gY4.js → useRoutePointer-BDNMFN73.js} +0 -0
- /package/dist/{useSpringMount-CNvvgGiC.js → useSpringMount-C6-DBx4e.js} +0 -0
- /package/dist/{useTimer-CkDV8SC2.js → useTimer-D8koDvJS.js} +0 -0
- /package/dist/{useUserInvalidAria-Bkruei7M.js → useUserInvalidAria-Cr4nR3tu.js} +0 -0
- /package/dist/{vReveal-DUmiEkX_.js → vReveal-DZfWl9XI.js} +0 -0
- /package/dist/{vSpecular-DlYN0UZy.js → vSpecular-CQFmLNzA.js} +0 -0
- /package/dist/{writeVelocityWeight-D1rvdxJu.js → writeVelocityWeight-D_AcvTsE.js} +0 -0
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
import { n as e } from "./springPresets-h5VKJQqG.js";
|
|
2
|
+
import { onScopeDispose as t, readonly as n, ref as r } from "vue";
|
|
3
|
+
import { ElementMorph as i, springTimingFunction as a } from "@mkbabb/keyframes.js";
|
|
4
|
+
//#region src/composables/motion/useElementMorph.ts
|
|
5
|
+
function o(e) {
|
|
6
|
+
if (!e) return null;
|
|
7
|
+
if (e instanceof HTMLElement) return e;
|
|
8
|
+
let t = e.$el;
|
|
9
|
+
return t instanceof HTMLElement ? t : null;
|
|
10
|
+
}
|
|
11
|
+
function s(e) {
|
|
12
|
+
return {
|
|
13
|
+
x: e.x + e.width * .04,
|
|
14
|
+
y: e.y + e.height * .04,
|
|
15
|
+
width: e.width * .92,
|
|
16
|
+
height: e.height * .92
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function c(e) {
|
|
20
|
+
let t = e.style.transitionProperty;
|
|
21
|
+
return e.style.transitionProperty = "none", () => {
|
|
22
|
+
e.style.transitionProperty = t;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function l() {
|
|
26
|
+
return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
27
|
+
}
|
|
28
|
+
var u = (e) => e < 0 ? 0 : e > 1 ? 1 : e, d = (e) => ({
|
|
29
|
+
x: e.x,
|
|
30
|
+
y: e.y,
|
|
31
|
+
width: e.width,
|
|
32
|
+
height: e.height
|
|
33
|
+
});
|
|
34
|
+
function f(f, p = {}) {
|
|
35
|
+
let m = p.respectReducedMotion !== !1, h = p.direction ?? "in", g = p.channels?.opacity !== !1, _ = p.channels?.blur ?? 0, v = p.origin ?? "to", { response: y, dampingFraction: b } = e(p.preset ?? "snappy"), x = a({
|
|
36
|
+
response: y,
|
|
37
|
+
dampingFraction: b
|
|
38
|
+
}), S = y * 4 * 1e3, C = r(!1), w = r(0), T = r(null), E = null, D = 0, O = 0, k = null;
|
|
39
|
+
function A() {
|
|
40
|
+
D && typeof cancelAnimationFrame == "function" && cancelAnimationFrame(D), D = 0;
|
|
41
|
+
}
|
|
42
|
+
function j(e) {
|
|
43
|
+
let t = e ?? o(f.value);
|
|
44
|
+
t && (t.style.transform = "", t.style.transformOrigin = "", t.style.opacity = "", t.style.filter = "");
|
|
45
|
+
}
|
|
46
|
+
function M() {
|
|
47
|
+
A(), E = null, k?.(), k = null, C.value = !1;
|
|
48
|
+
}
|
|
49
|
+
function N(e) {
|
|
50
|
+
let t = d(e.getBoundingClientRect()), n = (e) => {
|
|
51
|
+
if (e === void 0 || e === "self") return t;
|
|
52
|
+
let n = o(e.value);
|
|
53
|
+
return n ? d(n.getBoundingClientRect()) : s(t);
|
|
54
|
+
}, r = n(p.from ?? "self"), i = n(p.to), a;
|
|
55
|
+
return a = v === "center" ? "center center" : v === "from" ? `${r.x - t.x}px ${r.y - t.y}px` : v === "to" ? `${i.x - t.x}px ${i.y - t.y}px` : v, {
|
|
56
|
+
from: r,
|
|
57
|
+
to: i,
|
|
58
|
+
origin: a
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function P(e, t) {
|
|
62
|
+
let n = h === "in" ? 1 - t : t;
|
|
63
|
+
if (E?.apply(e, n), g && (e.style.opacity = u(1 - n).toFixed(4)), _ > 0) {
|
|
64
|
+
let t = _ * Math.max(0, n);
|
|
65
|
+
e.style.filter = `blur(${t.toFixed(2)}px)`;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
function F(e) {
|
|
69
|
+
j(e), g && (e.style.opacity = h === "in" ? "1" : "0"), E = null, D = 0, k?.(), k = null, w.value = 1, C.value = !1, p.onSettled?.();
|
|
70
|
+
}
|
|
71
|
+
function I(e) {
|
|
72
|
+
let t = o(f.value);
|
|
73
|
+
if (!t || D) return;
|
|
74
|
+
let n = N(t), r = new i(n.from, n.to, { transformOrigin: n.origin }), a = h === "in" ? 1 - e : e;
|
|
75
|
+
r.apply(t, a);
|
|
76
|
+
}
|
|
77
|
+
function L() {
|
|
78
|
+
let e = o(f.value);
|
|
79
|
+
if (!e) return;
|
|
80
|
+
M();
|
|
81
|
+
let t = N(e), n = t.from.x + t.from.width / 2, r = t.from.y + t.from.height / 2, a = t.to.x + t.to.width / 2, s = t.to.y + t.to.height / 2;
|
|
82
|
+
if (T.value = {
|
|
83
|
+
travelPx: Math.hypot(a - n, s - r),
|
|
84
|
+
scaleX: t.from.width > 0 ? t.to.width / t.from.width : 1,
|
|
85
|
+
scaleY: t.from.height > 0 ? t.to.height / t.from.height : 1,
|
|
86
|
+
durationMs: S
|
|
87
|
+
}, C.value = !0, w.value = 0, m && l()) {
|
|
88
|
+
F(e);
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
k = c(e), E = new i(t.from, t.to, { transformOrigin: t.origin }), O = 0;
|
|
92
|
+
let d = (t) => {
|
|
93
|
+
if (!E || !o(f.value)) {
|
|
94
|
+
M();
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
O === 0 && (O = t);
|
|
98
|
+
let n = Math.min(1, (t - O) / S), r = x.fn(n);
|
|
99
|
+
w.value = u(r), P(e, r), p.onFrame?.(u(r)), n < 1 && typeof requestAnimationFrame == "function" ? D = requestAnimationFrame(d) : F(e);
|
|
100
|
+
};
|
|
101
|
+
typeof requestAnimationFrame == "function" ? D = requestAnimationFrame(d) : F(e);
|
|
102
|
+
}
|
|
103
|
+
return t(M), {
|
|
104
|
+
play: L,
|
|
105
|
+
cancel: M,
|
|
106
|
+
clear: j,
|
|
107
|
+
seat: I,
|
|
108
|
+
playing: n(C),
|
|
109
|
+
progress: n(w),
|
|
110
|
+
measurement: n(T)
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
//#endregion
|
|
114
|
+
//#region src/composables/motion/useDockCtaReceive.ts
|
|
115
|
+
var p = {
|
|
116
|
+
fine: {
|
|
117
|
+
latencyFactor: [.9, 1.2],
|
|
118
|
+
travelPx: [16, 520],
|
|
119
|
+
scaleRatio: [.2, 1.4]
|
|
120
|
+
},
|
|
121
|
+
coarse: {
|
|
122
|
+
latencyFactor: [.9, 1.2],
|
|
123
|
+
travelPx: [16, 360],
|
|
124
|
+
scaleRatio: [.2, 1.4]
|
|
125
|
+
},
|
|
126
|
+
"reduced-motion": {
|
|
127
|
+
latencyFactor: [0, .017],
|
|
128
|
+
travelPx: [0, 0],
|
|
129
|
+
scaleRatio: [1, 1]
|
|
130
|
+
},
|
|
131
|
+
"no-target": {
|
|
132
|
+
latencyFactor: [0, .017],
|
|
133
|
+
travelPx: [0, 0],
|
|
134
|
+
scaleRatio: [1, 1]
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
function m(e, t) {
|
|
138
|
+
let i = t.respectReducedMotion !== !1, a = r(!1), s = r({
|
|
139
|
+
phase: "idle",
|
|
140
|
+
path: null,
|
|
141
|
+
run: 0,
|
|
142
|
+
interruptions: 0,
|
|
143
|
+
resets: 0,
|
|
144
|
+
startedAtMs: null,
|
|
145
|
+
settledAtMs: null,
|
|
146
|
+
handedOffAtMs: null,
|
|
147
|
+
completedAtMs: null,
|
|
148
|
+
latencyMs: null,
|
|
149
|
+
travelPx: 0,
|
|
150
|
+
scaleRatio: 1,
|
|
151
|
+
latencyBandMs: null,
|
|
152
|
+
travelBandPx: null,
|
|
153
|
+
scaleBand: null,
|
|
154
|
+
withinBand: null,
|
|
155
|
+
supportsReverse: !1
|
|
156
|
+
}), c = () => typeof performance < "u" ? performance.now() : Date.now(), u = (e, [t, n]) => e >= t && e <= n;
|
|
157
|
+
function d() {
|
|
158
|
+
let e = o(t.dockControl.value);
|
|
159
|
+
e && (e.setAttribute("data-cta-pending", ""), a.value = !0);
|
|
160
|
+
}
|
|
161
|
+
function m() {
|
|
162
|
+
a.value = !1;
|
|
163
|
+
let e = o(t.dockControl.value);
|
|
164
|
+
e && e.removeAttribute("data-cta-pending");
|
|
165
|
+
}
|
|
166
|
+
function h() {
|
|
167
|
+
s.value = {
|
|
168
|
+
...s.value,
|
|
169
|
+
phase: "handed-off",
|
|
170
|
+
handedOffAtMs: c()
|
|
171
|
+
}, m(), t.onReceived?.();
|
|
172
|
+
let e = c(), n = e - (s.value.startedAtMs ?? e), r = p[s.value.path ?? "fine"], i = _.measurement.value?.durationMs ?? 1920, a = [i * r.latencyFactor[0], i * r.latencyFactor[1]];
|
|
173
|
+
s.value = {
|
|
174
|
+
...s.value,
|
|
175
|
+
phase: "completed",
|
|
176
|
+
completedAtMs: e,
|
|
177
|
+
latencyMs: n,
|
|
178
|
+
latencyBandMs: a,
|
|
179
|
+
travelBandPx: r.travelPx,
|
|
180
|
+
scaleBand: r.scaleRatio,
|
|
181
|
+
withinBand: u(n, a) && u(s.value.travelPx, r.travelPx) && u(s.value.scaleRatio, r.scaleRatio)
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
function g() {
|
|
185
|
+
let e = _.measurement.value, t = s.value.path, n = t === "fine" || t === "coarse";
|
|
186
|
+
s.value = {
|
|
187
|
+
...s.value,
|
|
188
|
+
phase: "settled",
|
|
189
|
+
settledAtMs: c(),
|
|
190
|
+
travelPx: n ? e?.travelPx ?? 0 : 0,
|
|
191
|
+
scaleRatio: n && e ? Math.sqrt(Math.abs(e.scaleX * e.scaleY)) : 1
|
|
192
|
+
}, h();
|
|
193
|
+
}
|
|
194
|
+
let _ = f(e, {
|
|
195
|
+
direction: "out",
|
|
196
|
+
to: t.dockControl,
|
|
197
|
+
origin: "center",
|
|
198
|
+
preset: t.preset ?? "snappy",
|
|
199
|
+
respectReducedMotion: t.respectReducedMotion,
|
|
200
|
+
channels: {
|
|
201
|
+
opacity: !0,
|
|
202
|
+
blur: t.blur ?? 4
|
|
203
|
+
},
|
|
204
|
+
onSettled: g
|
|
205
|
+
});
|
|
206
|
+
function v() {
|
|
207
|
+
let n = o(e.value);
|
|
208
|
+
if (!n) return;
|
|
209
|
+
let r = _.playing.value, a = !!o(t.dockControl.value), u = a ? i && l() ? "reduced-motion" : typeof window < "u" && window.matchMedia?.("(pointer: coarse)").matches ? "coarse" : "fine" : "no-target";
|
|
210
|
+
if (s.value = {
|
|
211
|
+
...s.value,
|
|
212
|
+
phase: "receiving",
|
|
213
|
+
path: u,
|
|
214
|
+
run: s.value.run + 1,
|
|
215
|
+
interruptions: s.value.interruptions + Number(r),
|
|
216
|
+
startedAtMs: c(),
|
|
217
|
+
settledAtMs: null,
|
|
218
|
+
handedOffAtMs: null,
|
|
219
|
+
completedAtMs: null,
|
|
220
|
+
latencyMs: null,
|
|
221
|
+
travelPx: 0,
|
|
222
|
+
scaleRatio: 1,
|
|
223
|
+
latencyBandMs: null,
|
|
224
|
+
travelBandPx: p[u].travelPx,
|
|
225
|
+
scaleBand: p[u].scaleRatio,
|
|
226
|
+
withinBand: null
|
|
227
|
+
}, !a) {
|
|
228
|
+
n.style.opacity = "0", g();
|
|
229
|
+
return;
|
|
230
|
+
}
|
|
231
|
+
_.play();
|
|
232
|
+
}
|
|
233
|
+
function y() {
|
|
234
|
+
let t = _.playing.value;
|
|
235
|
+
_.cancel(), _.clear(o(e.value)), s.value = {
|
|
236
|
+
...s.value,
|
|
237
|
+
phase: "reset",
|
|
238
|
+
interruptions: s.value.interruptions + Number(t),
|
|
239
|
+
resets: s.value.resets + 1,
|
|
240
|
+
completedAtMs: null,
|
|
241
|
+
latencyMs: null,
|
|
242
|
+
withinBand: null
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
return {
|
|
246
|
+
receive: v,
|
|
247
|
+
reset: y,
|
|
248
|
+
setPending: d,
|
|
249
|
+
clearPending: m,
|
|
250
|
+
pending: n(a),
|
|
251
|
+
playing: _.playing,
|
|
252
|
+
progress: _.progress,
|
|
253
|
+
observables: n(s)
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
//#endregion
|
|
257
|
+
export { c as a, s as i, m as n, l as o, o as r, f as s, p as t };
|
|
@@ -54,33 +54,114 @@ function u() {
|
|
|
54
54
|
function d() {
|
|
55
55
|
return typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
56
56
|
}
|
|
57
|
-
function f(
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
function f() {
|
|
58
|
+
return typeof CSS < "u" && typeof CSS.supports == "function" && CSS.supports("selector(:active-view-transition-type(glass))");
|
|
59
|
+
}
|
|
60
|
+
function p(e) {
|
|
61
|
+
return {
|
|
60
62
|
finished: (async () => e())().then(() => void 0, () => void 0),
|
|
61
63
|
transitioned: !1
|
|
62
64
|
};
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
}
|
|
66
|
+
function m(e, t) {
|
|
67
|
+
let n = typeof document > "u" ? void 0 : document;
|
|
68
|
+
if (!n || typeof n.startViewTransition != "function" || t?.instantUnderReducedMotion && d()) return p(e);
|
|
69
|
+
let r;
|
|
70
|
+
try {
|
|
71
|
+
r = t?.types?.length && f() ? n.startViewTransition({
|
|
72
|
+
update: e,
|
|
73
|
+
types: t.types
|
|
74
|
+
}) : n.startViewTransition(e);
|
|
75
|
+
} catch {
|
|
76
|
+
return p(e);
|
|
77
|
+
}
|
|
67
78
|
return r.ready?.catch(() => {}), {
|
|
68
79
|
finished: r.finished.then(() => void 0, () => void 0),
|
|
69
80
|
transitioned: !0
|
|
70
81
|
};
|
|
71
82
|
}
|
|
72
|
-
function
|
|
73
|
-
return
|
|
83
|
+
function h(e, t) {
|
|
84
|
+
return m(e, {
|
|
74
85
|
...t,
|
|
75
86
|
instantUnderReducedMotion: !0
|
|
76
87
|
});
|
|
77
88
|
}
|
|
78
|
-
function
|
|
89
|
+
function g() {
|
|
79
90
|
return u();
|
|
80
91
|
}
|
|
81
92
|
//#endregion
|
|
93
|
+
//#region src/composables/motion/useTextHighlight.ts
|
|
94
|
+
var _ = /* @__PURE__ */ new Map();
|
|
95
|
+
function v() {
|
|
96
|
+
return typeof CSS < "u" && "highlights" in CSS && typeof globalThis.Highlight == "function";
|
|
97
|
+
}
|
|
98
|
+
function y(e) {
|
|
99
|
+
let t = _.get(e);
|
|
100
|
+
if (!t || t.size === 0) {
|
|
101
|
+
CSS.highlights.delete(e);
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
let n = new Highlight();
|
|
105
|
+
for (let e of t) for (let t of e.ranges) n.add(t);
|
|
106
|
+
CSS.highlights.set(e, n);
|
|
107
|
+
}
|
|
108
|
+
function b(e, t) {
|
|
109
|
+
let n = t.trim().toLowerCase();
|
|
110
|
+
if (!n) return [];
|
|
111
|
+
let r = e.toLowerCase(), i = [], a = 0;
|
|
112
|
+
for (;;) {
|
|
113
|
+
let e = r.indexOf(n, a);
|
|
114
|
+
if (e === -1) break;
|
|
115
|
+
i.push({
|
|
116
|
+
start: e,
|
|
117
|
+
end: e + n.length
|
|
118
|
+
}), a = e + n.length;
|
|
119
|
+
}
|
|
120
|
+
return i;
|
|
121
|
+
}
|
|
122
|
+
function x(e) {
|
|
123
|
+
let r = v(), i = null;
|
|
124
|
+
function a() {
|
|
125
|
+
if (i) return i;
|
|
126
|
+
i = { ranges: [] };
|
|
127
|
+
let t = _.get(e);
|
|
128
|
+
return t || (t = /* @__PURE__ */ new Set(), _.set(e, t)), t.add(i), i;
|
|
129
|
+
}
|
|
130
|
+
function o(t) {
|
|
131
|
+
r && (a().ranges = t.slice(), y(e));
|
|
132
|
+
}
|
|
133
|
+
function s(e, t, n = b) {
|
|
134
|
+
if (!r) return;
|
|
135
|
+
let i = [], a = document.createTreeWalker(e, NodeFilter.SHOW_TEXT);
|
|
136
|
+
for (let e = a.nextNode(); e; e = a.nextNode()) {
|
|
137
|
+
let r = e.textContent ?? "";
|
|
138
|
+
if (r) for (let a of n(r, t)) {
|
|
139
|
+
if (a.start >= a.end) continue;
|
|
140
|
+
let t = document.createRange();
|
|
141
|
+
t.setStart(e, a.start), t.setEnd(e, a.end), i.push(t);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
o(i);
|
|
145
|
+
}
|
|
146
|
+
function c() {
|
|
147
|
+
!r || !i || (i.ranges = [], y(e));
|
|
148
|
+
}
|
|
149
|
+
function l() {
|
|
150
|
+
if (!r || !i) return;
|
|
151
|
+
_.get(e)?.delete(i), y(e);
|
|
152
|
+
let t = _.get(e);
|
|
153
|
+
t && t.size === 0 && _.delete(e), i = null;
|
|
154
|
+
}
|
|
155
|
+
return t() && n(l), {
|
|
156
|
+
set: o,
|
|
157
|
+
setFromMatches: s,
|
|
158
|
+
clear: c,
|
|
159
|
+
supported: r
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
//#endregion
|
|
82
163
|
//#region src/composables/motion/morphSignatures.ts
|
|
83
|
-
var
|
|
164
|
+
var S = {
|
|
84
165
|
lateralNeck: {
|
|
85
166
|
vector: "lateral",
|
|
86
167
|
kRest: .92,
|
|
@@ -130,45 +211,45 @@ var h = {
|
|
|
130
211
|
neckHold: .45,
|
|
131
212
|
maxStretch: 1.1
|
|
132
213
|
}
|
|
133
|
-
},
|
|
134
|
-
function
|
|
214
|
+
}, C = 1.618033988749895;
|
|
215
|
+
function w(e, t) {
|
|
135
216
|
return Math.sin(Math.PI * Math.min(1, Math.max(0, e))) ** +t;
|
|
136
217
|
}
|
|
137
|
-
function
|
|
138
|
-
return Math.max(1, e) /
|
|
218
|
+
function T(e) {
|
|
219
|
+
return Math.max(1, e) / C;
|
|
139
220
|
}
|
|
140
|
-
function
|
|
141
|
-
let { A: t, B: n, fromIdx: r, toIdx: i, gooT: a, step: o, neckGap: s, weight: c } = e, l =
|
|
221
|
+
function E(e) {
|
|
222
|
+
let { A: t, B: n, fromIdx: r, toIdx: i, gooT: a, step: o, neckGap: s, weight: c } = e, l = T(o), u = n - t, d = i - r, f = d === 0 ? 1 : Math.min(1, Math.max(0, (a - r) / d)), p = 1 - w(f, 1) * (1 - s), m = (t + n) / 2, h = u / 2 * p, g = m - h, _ = m + h, v = w(f, 1.5), y = Math.abs(_ - g), b = Math.min(1, Math.max(0, c)), x = 1 + w(f, 1) * .12 * b, S = 1 / x, C = -l * .06 * w(f, 1) * b;
|
|
142
223
|
return {
|
|
143
224
|
D: l,
|
|
144
225
|
cA: g,
|
|
145
|
-
cB:
|
|
226
|
+
cB: _,
|
|
146
227
|
mid: m,
|
|
147
|
-
neckSpanScale: l > 0 ?
|
|
148
|
-
neckGirth:
|
|
149
|
-
stretchOn:
|
|
150
|
-
stretchCross:
|
|
151
|
-
arc:
|
|
228
|
+
neckSpanScale: l > 0 ? y / l : 1,
|
|
229
|
+
neckGirth: v,
|
|
230
|
+
stretchOn: x,
|
|
231
|
+
stretchCross: S,
|
|
232
|
+
arc: C
|
|
152
233
|
};
|
|
153
234
|
}
|
|
154
|
-
function
|
|
235
|
+
function D(e, t, n, r, i) {
|
|
155
236
|
return i ? `translateY(${e.toFixed(2)}px) translateX(${t.toFixed(2)}px) translateY(-50%) translateX(-50%) scaleY(${n.toFixed(4)}) scaleX(${r.toFixed(4)})` : `translateX(${e.toFixed(2)}px) translateY(${t.toFixed(2)}px) translateX(-50%) translateY(-50%) scaleX(${n.toFixed(4)}) scaleY(${r.toFixed(4)})`;
|
|
156
237
|
}
|
|
157
|
-
function
|
|
238
|
+
function O(e, t, n, r) {
|
|
158
239
|
return r ? `translateY(${e.toFixed(2)}px) translateY(-50%) scaleY(${t.toFixed(4)}) scaleX(${n.toFixed(4)})` : `translateX(${e.toFixed(2)}px) translateX(-50%) scaleX(${t.toFixed(4)}) scaleY(${n.toFixed(4)})`;
|
|
159
240
|
}
|
|
160
|
-
function
|
|
241
|
+
function k(e, t) {
|
|
161
242
|
return t ? `translateY(${e.toFixed(2)}px) translateY(-50%) scaleY(0.0001) scaleX(0)` : `translateX(${e.toFixed(2)}px) translateX(-50%) scaleX(0.0001) scaleY(0)`;
|
|
162
243
|
}
|
|
163
244
|
//#endregion
|
|
164
245
|
//#region src/composables/motion/useGooMorph.ts
|
|
165
|
-
var
|
|
166
|
-
function
|
|
246
|
+
var A = S.lateralNeck, j = () => typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
247
|
+
function M(e, t, n) {
|
|
167
248
|
let r = getComputedStyle(e).getPropertyValue(t).trim();
|
|
168
249
|
return r ? r.endsWith("ms") ? Number.parseFloat(r) || n : r.endsWith("s") ? (Number.parseFloat(r) || n / 1e3) * 1e3 : Number.parseFloat(r) || n : n;
|
|
169
250
|
}
|
|
170
|
-
function
|
|
171
|
-
let { barbellRefs: r, hostRef: i, vertical: a, centerOf: o, restSize: s, tokenPrefix: c = "pager-worm", neckGap: l =
|
|
251
|
+
function N(t) {
|
|
252
|
+
let { barbellRefs: r, hostRef: i, vertical: a, centerOf: o, restSize: s, tokenPrefix: c = "pager-worm", neckGap: l = A.kPeak } = t, { bodyARef: u, bodyBRef: d, neckRef: f } = r, p = `--${c}-flow`, m = `--${c}-duration`, h = `--${c}-max-stretch`, g = e({
|
|
172
253
|
from: 0,
|
|
173
254
|
to: 0,
|
|
174
255
|
axis: "width",
|
|
@@ -180,89 +261,89 @@ function E(t) {
|
|
|
180
261
|
return Number(t) || 1.4;
|
|
181
262
|
}
|
|
182
263
|
}), _ = 0, v = null;
|
|
183
|
-
function
|
|
264
|
+
function y() {
|
|
184
265
|
_ &&= (cancelAnimationFrame(_), 0), v &&= (clearTimeout(v), null);
|
|
185
266
|
}
|
|
186
|
-
function
|
|
267
|
+
function b(e) {
|
|
187
268
|
let t = getComputedStyle(e).getPropertyValue("--goo-t").trim();
|
|
188
269
|
return Number.parseFloat(t) || 0;
|
|
189
270
|
}
|
|
190
|
-
function
|
|
271
|
+
function x(e) {
|
|
191
272
|
let t = getComputedStyle(e).getPropertyValue(`--${c}-neck-gap`).trim(), n = Number.parseFloat(t);
|
|
192
273
|
return Number.isFinite(n) && n > 0 ? n : l;
|
|
193
274
|
}
|
|
194
|
-
function
|
|
195
|
-
e.style.transform =
|
|
275
|
+
function S(e, t, n, r, i) {
|
|
276
|
+
e.style.transform = D(t, n, r, i, a.value);
|
|
196
277
|
}
|
|
197
|
-
function
|
|
278
|
+
function C(e, t, n, r, o) {
|
|
198
279
|
let c = u.value, l = d.value, p = f.value, m = i.value;
|
|
199
280
|
if (!c || !l || !p || !m) return;
|
|
200
|
-
let h = getComputedStyle(m).getPropertyValue("--goo-weight").trim(), g = Number.parseFloat(h) || 0, _ =
|
|
281
|
+
let h = getComputedStyle(m).getPropertyValue("--goo-weight").trim(), g = Number.parseFloat(h) || 0, _ = E({
|
|
201
282
|
A: e,
|
|
202
283
|
B: t,
|
|
203
284
|
fromIdx: n,
|
|
204
285
|
toIdx: r,
|
|
205
286
|
gooT: o,
|
|
206
287
|
step: s(),
|
|
207
|
-
neckGap:
|
|
288
|
+
neckGap: x(m),
|
|
208
289
|
weight: g
|
|
209
290
|
});
|
|
210
|
-
|
|
291
|
+
S(c, _.cA, _.arc, _.stretchOn, _.stretchCross), S(l, _.cB, _.arc, _.stretchOn, _.stretchCross), p.style.transform = O(_.mid, _.neckSpanScale, _.neckGirth, a.value), p.style.opacity = _.neckGirth.toFixed(4), m.style.setProperty("--goo-neck-girth", _.neckGirth.toFixed(4));
|
|
211
292
|
}
|
|
212
|
-
function
|
|
293
|
+
function w(e) {
|
|
213
294
|
let t = u.value, n = d.value, r = f.value, s = i.value, c = o(e);
|
|
214
|
-
!t || !n || !r || c == null || (
|
|
295
|
+
!t || !n || !r || c == null || (S(t, c, 0, 1, 1), S(n, c, 0, 1, 1), r.style.opacity = "0", r.style.transform = k(c, a.value), s && (s.style.setProperty("--goo-neck-girth", "0"), s.style.setProperty("--stretch", "1")));
|
|
215
296
|
}
|
|
216
|
-
function
|
|
217
|
-
|
|
297
|
+
function T(e) {
|
|
298
|
+
y();
|
|
218
299
|
let t = i.value;
|
|
219
300
|
if (t) {
|
|
220
301
|
let n = t.style.transition;
|
|
221
302
|
t.style.transition = "none", t.style.setProperty("--goo-t", String(e)), t.offsetWidth, t.style.transition = n;
|
|
222
303
|
}
|
|
223
|
-
|
|
304
|
+
w(e);
|
|
224
305
|
}
|
|
225
306
|
function N(e) {
|
|
226
307
|
let t = i.value;
|
|
227
|
-
if (!t || !u.value ||
|
|
228
|
-
|
|
308
|
+
if (!t || !u.value || j()) return;
|
|
309
|
+
y();
|
|
229
310
|
let n = t.style.transition;
|
|
230
311
|
t.style.transition = "none", t.style.setProperty("--goo-t", String(e)), t.offsetWidth, t.style.transition = n;
|
|
231
312
|
let r = Math.floor(e), a = Math.ceil(e), s = o(r), c = o(a);
|
|
232
|
-
s == null || c == null ||
|
|
313
|
+
s == null || c == null || C(s, c, r, a, e);
|
|
233
314
|
}
|
|
234
315
|
function P(e, t) {
|
|
235
316
|
let n = i.value;
|
|
236
317
|
if (!u.value || !n || e === t) {
|
|
237
|
-
n &&
|
|
318
|
+
n && T(t);
|
|
238
319
|
return;
|
|
239
320
|
}
|
|
240
|
-
if (
|
|
241
|
-
|
|
321
|
+
if (j()) {
|
|
322
|
+
T(t);
|
|
242
323
|
return;
|
|
243
324
|
}
|
|
244
325
|
let r = o(e), s = o(t);
|
|
245
326
|
if (r == null || s == null) {
|
|
246
|
-
|
|
327
|
+
T(t);
|
|
247
328
|
return;
|
|
248
329
|
}
|
|
249
|
-
|
|
330
|
+
y();
|
|
250
331
|
let c = a.value ? n.offsetHeight || 1 : n.offsetWidth || 1, l = Math.min(Math.abs(s - r) / Math.max(1, c), 1), d = Math.max(.5, l);
|
|
251
332
|
g.squish(d), n.style.setProperty("--stretch", String(g.stretch.value));
|
|
252
|
-
let f =
|
|
333
|
+
let f = M(n, m, 1800), h = getComputedStyle(n).getPropertyValue(p).trim() || "ease-in-out";
|
|
253
334
|
n.style.transition = "none", n.style.setProperty("--goo-t", String(e)), n.offsetWidth, n.style.transition = `--goo-t ${f}ms ${h}`, n.style.setProperty("--goo-t", String(t)), v = setTimeout(() => {
|
|
254
335
|
g.squish(0), n.style.setProperty("--stretch", String(g.stretch.value)), v = null;
|
|
255
336
|
}, f * .82);
|
|
256
|
-
let
|
|
257
|
-
|
|
337
|
+
let x = performance.now(), S = () => {
|
|
338
|
+
C(r, s, e, t, b(n)), performance.now() - x < f + 80 ? _ = requestAnimationFrame(S) : (_ = 0, w(t));
|
|
258
339
|
};
|
|
259
|
-
_ = requestAnimationFrame(
|
|
340
|
+
_ = requestAnimationFrame(S);
|
|
260
341
|
}
|
|
261
|
-
return n(
|
|
342
|
+
return n(y), {
|
|
262
343
|
travel: P,
|
|
263
|
-
snap:
|
|
344
|
+
snap: T,
|
|
264
345
|
drive: N
|
|
265
346
|
};
|
|
266
347
|
}
|
|
267
348
|
//#endregion
|
|
268
|
-
export { m as a,
|
|
349
|
+
export { m as a, l as c, h as i, S as n, g as o, x as r, u as s, N as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./useDocumentVisibility-
|
|
1
|
+
import { t as e } from "./useDocumentVisibility-YeBDGqtI.js";
|
|
2
2
|
import { getCurrentScope as t, onScopeDispose as n, readonly as r, ref as i, toValue as a, watch as o } from "vue";
|
|
3
3
|
//#region src/composables/motion/useIntersectionPause.ts
|
|
4
4
|
function s(s, c, l = {}) {
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { t as e } from "./useSpringPress-BypV_KO-.js";
|
|
2
|
+
import { t } from "./useLiquidFlex-Ch4exNvN.js";
|
|
3
|
+
import { n } from "./writeVelocityWeight-D_AcvTsE.js";
|
|
4
|
+
import { computed as r, onMounted as i, readonly as a, ref as o, toValue as s, watch as c } from "vue";
|
|
5
|
+
//#region src/composables/motion/useLiquidPress.ts
|
|
6
|
+
function l(l = {}) {
|
|
7
|
+
let u = l.shrinkDepth ?? .03, d = l.pressVar ?? "--press-t", f = l.engageThreshold ?? .001, p = l.squish !== !1, m = e({
|
|
8
|
+
response: l.response,
|
|
9
|
+
dampingFraction: l.dampingFraction,
|
|
10
|
+
initial: l.initial,
|
|
11
|
+
initialVelocity: l.initialVelocity,
|
|
12
|
+
settleThreshold: l.settleThreshold,
|
|
13
|
+
velocitySettleThreshold: l.velocitySettleThreshold,
|
|
14
|
+
respectReducedMotion: l.respectReducedMotion,
|
|
15
|
+
onValue: l.onValue
|
|
16
|
+
}), h = p ? t({
|
|
17
|
+
from: 0,
|
|
18
|
+
to: 1,
|
|
19
|
+
axis: "width",
|
|
20
|
+
maxStretch: () => n(l.el?.value ?? null, s(l.maxStretch ?? 1.04)),
|
|
21
|
+
squishLaw: "linear"
|
|
22
|
+
}) : null, g = o(!1);
|
|
23
|
+
i(() => {
|
|
24
|
+
g.value = !0;
|
|
25
|
+
});
|
|
26
|
+
let _ = () => !!s(l.disabled), v = () => {
|
|
27
|
+
_() || m.press();
|
|
28
|
+
}, y = () => m.release();
|
|
29
|
+
l.disabled !== void 0 && c(_, (e) => {
|
|
30
|
+
e && y();
|
|
31
|
+
});
|
|
32
|
+
let b = (e) => e.key === "Enter" || e.key === " " || e.key === "Spacebar", x = {
|
|
33
|
+
onPointerdown: (e) => {
|
|
34
|
+
(!e || e.button === 0) && v();
|
|
35
|
+
},
|
|
36
|
+
onPointerup: y,
|
|
37
|
+
onPointercancel: y,
|
|
38
|
+
onPointerleave: y,
|
|
39
|
+
onPointerenter: (e) => {
|
|
40
|
+
e.buttons & 1 && v();
|
|
41
|
+
},
|
|
42
|
+
onKeydown: (e) => {
|
|
43
|
+
b(e) && !e.repeat && v();
|
|
44
|
+
},
|
|
45
|
+
onKeyup: (e) => {
|
|
46
|
+
b(e) && y();
|
|
47
|
+
},
|
|
48
|
+
onBlur: y
|
|
49
|
+
};
|
|
50
|
+
h && c(() => m.value.value, (e) => h.squish(e), {
|
|
51
|
+
immediate: !0,
|
|
52
|
+
flush: "sync"
|
|
53
|
+
});
|
|
54
|
+
let S = r(() => {
|
|
55
|
+
let e = m.value.value, t = h ? h.stretch.value : 1, n = 1 - e * u, r = (n * t).toFixed(4), i = (n / t).toFixed(4), a = { [d]: e.toFixed(4) };
|
|
56
|
+
return h && (a["--flex-vel"] = h.flexVel.value.toFixed(4)), e > f && (a.scale = `${r} ${i}`), a;
|
|
57
|
+
});
|
|
58
|
+
return {
|
|
59
|
+
value: m.value,
|
|
60
|
+
press: v,
|
|
61
|
+
release: y,
|
|
62
|
+
armed: a(g),
|
|
63
|
+
handlers: x,
|
|
64
|
+
pressStyle: S
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
//#endregion
|
|
68
|
+
export { l as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./useDocumentVisibility-
|
|
1
|
+
import { t as e } from "./useDocumentVisibility-YeBDGqtI.js";
|
|
2
2
|
import { computed as t, getCurrentScope as n, onScopeDispose as r, readonly as i, ref as a, watch as o } from "vue";
|
|
3
3
|
//#region src/composables/motion/useYieldToMain.ts
|
|
4
4
|
function s() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./supportsCssTimeline-
|
|
1
|
+
import { t as e } from "./supportsCssTimeline-Dz-GVxXM.js";
|
|
2
2
|
import { onBeforeUnmount as t, onMounted as n, ref as r, unref as i, watch as a } from "vue";
|
|
3
3
|
//#region src/composables/motion/useScrollProgress.ts
|
|
4
4
|
var o = e();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as e } from "./supportsCssTimeline-
|
|
2
|
-
import { t } from "./scrollReader-
|
|
3
|
-
import { a as n, t as r } from "./useTabRovingFocus-
|
|
1
|
+
import { t as e } from "./supportsCssTimeline-Dz-GVxXM.js";
|
|
2
|
+
import { t } from "./scrollReader-C2oK9Hb8.js";
|
|
3
|
+
import { a as n, t as r } from "./useTabRovingFocus-DkLYwo4L.js";
|
|
4
4
|
import { computed as i, onBeforeUnmount as a, onMounted as o, ref as s, toValue as c, watch as l } from "vue";
|
|
5
5
|
//#region src/composables/motion/useScrollTrigger.ts
|
|
6
6
|
var u = "(prefers-reduced-motion: reduce)", d = e();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./useLiquidFlex-Ch4exNvN.js";
|
|
2
|
-
import { n as t, r as n } from "./writeVelocityWeight-
|
|
2
|
+
import { n as t, r as n } from "./writeVelocityWeight-D_AcvTsE.js";
|
|
3
3
|
import { computed as r, nextTick as i, onMounted as a, onUnmounted as o, ref as s, watch as c } from "vue";
|
|
4
4
|
//#region src/composables/motion/useSelectionIndicator.ts
|
|
5
5
|
var l = 1.11, u = 1.045, d = .82;
|