@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
package/dist/timeline.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as e } from "./useSpring-BBSKFx_0.js";
|
|
2
2
|
import { t } from "./useSpringPress-BypV_KO-.js";
|
|
3
3
|
import { t as n } from "./useLiquidFlex-Ch4exNvN.js";
|
|
4
|
-
import { t as r } from "./vSpecular-
|
|
4
|
+
import { t as r } from "./vSpecular-CQFmLNzA.js";
|
|
5
5
|
import { t as i } from "./_plugin-vue_export-helper-C1je1s0u.js";
|
|
6
|
-
import { n as a, r as o, t as s } from "./
|
|
6
|
+
import { n as a, r as o, t as s } from "./popover-WMgyRSyN.js";
|
|
7
7
|
import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as m, createVNode as h, defineComponent as g, guardReactiveProps as _, normalizeClass as v, normalizeProps as y, normalizeStyle as b, openBlock as x, ref as S, renderList as C, renderSlot as w, toDisplayString as T, unref as E, watch as D, withCtx as O, withDirectives as ee } from "vue";
|
|
8
8
|
//#region src/components/timeline/geometry.ts
|
|
9
9
|
function k(e) {
|
package/dist/toast.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, i as n, n as r, o as i, r as a, s as o, t as s } from "./
|
|
1
|
+
import { a as e, c as t, i as n, n as r, o as i, r as a, s as o, t as s } from "./toast-kAbchIN2.js";
|
|
2
2
|
export { t as Toast, o as ToastAction, i as ToastClose, e as ToastDescription, n as ToastTitle, s as Toaster, r as toast, a as useToast };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./class-names-5jotTFzp.js";
|
|
2
|
-
import { t } from "./createContext-
|
|
2
|
+
import { t } from "./createContext-FU0n5MGK.js";
|
|
3
3
|
import { computed as n, createBlock as r, createElementVNode as i, defineComponent as a, mergeProps as o, normalizeClass as s, normalizeStyle as c, openBlock as l, renderSlot as u, unref as d, withCtx as f } from "vue";
|
|
4
4
|
import { Toggle as p, ToggleGroupItem as m, ToggleGroupRoot as h, injectToggleGroupRootContext as g, useForwardProps as _, useForwardPropsEmits as v } from "reka-ui";
|
|
5
5
|
import { cva as y } from "class-variance-authority";
|
|
@@ -113,11 +113,14 @@ var w = S.use, T = ["role"], E = /* @__PURE__ */ a({
|
|
|
113
113
|
variant: p.variant,
|
|
114
114
|
size: p.size
|
|
115
115
|
});
|
|
116
|
-
let g = n(() => p.type === "single" ? "radiogroup" : "group"), _ = n(() => p.type === "single" ? "glass-capsule-track p-1" : ""), y = n(() =>
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
116
|
+
let g = n(() => p.type === "single" ? "radiogroup" : "group"), _ = n(() => p.type === "single" ? "glass-capsule-track p-1" : ""), y = n(() => ({
|
|
117
|
+
justifyContent: "safe center",
|
|
118
|
+
...p.type === "single" ? {
|
|
119
|
+
"--radius-inset": "0.25rem",
|
|
120
|
+
"--radius-ctx": p.variant === "card" ? "var(--radius-card)" : "var(--radius-pill)",
|
|
121
|
+
borderRadius: "calc(var(--radius-ctx) + var(--radius-inset))"
|
|
122
|
+
} : {}
|
|
123
|
+
})), b = v(n(() => {
|
|
121
124
|
let { class: e, ...t } = p;
|
|
122
125
|
return t;
|
|
123
126
|
}), m);
|
|
@@ -126,7 +129,7 @@ var w = S.use, T = ["role"], E = /* @__PURE__ */ a({
|
|
|
126
129
|
"data-slot": "toggle-group",
|
|
127
130
|
role: g.value,
|
|
128
131
|
style: c(y.value),
|
|
129
|
-
class: s(d(e)("flex items-center
|
|
132
|
+
class: s(d(e)("flex items-center gap-1", _.value, p.class))
|
|
130
133
|
}, [u(t.$slots, "default")], 14, T)]),
|
|
131
134
|
_: 3
|
|
132
135
|
}, 16));
|
package/dist/toggle-group.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./
|
|
1
|
+
import { n as e, t } from "./toggle-group-BPchFsns.js";
|
|
2
2
|
export { e as ToggleGroup, t as ToggleGroupItem };
|
package/dist/tokens.d.ts
CHANGED
|
@@ -1,53 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Runtime design tokens — the JS/TS projection of glass-ui's CSS custom properties.
|
|
3
|
-
*
|
|
4
|
-
* CSS tokens in `src/styles/tokens.css` drive the rendered UI. Some contexts
|
|
5
|
-
* (echarts configs, Canvas 2D, WebGL, canvas-rendered charts) cannot resolve
|
|
6
|
-
* CSS variables at render time — they need literal numbers and strings.
|
|
7
|
-
*
|
|
8
|
-
* This module mirrors the CSS tokens for those consumers. Keep in sync.
|
|
9
|
-
*/
|
|
10
|
-
/** Chart container heights (px). Match `--chart-height-*` in tokens.css. */
|
|
11
|
-
export declare const chartHeights: {
|
|
12
|
-
readonly compact: 240;
|
|
13
|
-
readonly default: 360;
|
|
14
|
-
readonly large: 400;
|
|
15
|
-
};
|
|
16
|
-
/** Echarts grid margin (px). Matches `--chart-margin` in tokens.css. */
|
|
17
|
-
export declare const chartMargin = 20;
|
|
18
|
-
/**
|
|
19
|
-
* Neutral divider colors for chart gridlines, axis ticks, overlays.
|
|
20
|
-
* rgba literals — echarts / Canvas 2D can't parse CSS vars in color options.
|
|
21
|
-
* Match `--color-divider-*` in tokens.css.
|
|
22
|
-
*/
|
|
23
|
-
export declare const chartColors: {
|
|
24
|
-
readonly dividerSubtle: "rgba(128, 128, 128, 0.05)";
|
|
25
|
-
readonly dividerMedium: "rgba(128, 128, 128, 0.4)";
|
|
26
|
-
readonly dividerStrong: "rgba(128, 128, 128, 0.7)";
|
|
27
|
-
};
|
|
28
|
-
/** Default form-select minimum width (px). Matches `--min-width-input-sm`. */
|
|
29
|
-
export declare const minWidthInputSm = 80;
|
|
30
|
-
/**
|
|
31
|
-
* Stagger increments (ms) — TS mirror of the `--motion-stagger-*` canon
|
|
32
|
-
* promoted at AJ-W4-κ. Use these for animation cascades driven from JS
|
|
33
|
-
* (e.g. echarts `animationDelay: (idx) => idx * motionStagger.default`,
|
|
34
|
-
* Vue inline-style binding) so the JS-driven cascade and CSS-driven
|
|
35
|
-
* cascade resolve to the same value. The three named tiers correspond
|
|
36
|
-
* to `--motion-stagger-tight | --motion-stagger-default | --motion-stagger-relaxed`
|
|
37
|
-
* in `styles/tokens.css`:
|
|
38
|
-
*
|
|
39
|
-
* - `tight` (40ms) — dense row cascades (StatsCards row strip,
|
|
40
|
-
* results-table `:nth-child` delays)
|
|
41
|
-
* - `default` (80ms) — canonical row stagger (ResultStack, bar
|
|
42
|
-
* entrance, useStaggerReveal default)
|
|
43
|
-
* - `relaxed` (120ms) — wider series cascades (TimeSeriesChart)
|
|
44
|
-
*
|
|
45
|
-
* Retires per-consumer constants (SERIES_STAGGER_MS, BAR_STAGGER_MS,
|
|
46
|
-
* STATS_CARD_STAGGER_MS) into single-source token reads. Per A5 §8.9 +
|
|
47
|
-
* AJ-W4-κ.
|
|
48
|
-
*/
|
|
49
|
-
export declare const motionStagger: {
|
|
50
|
-
readonly tight: 40;
|
|
51
|
-
readonly default: 80;
|
|
52
|
-
readonly relaxed: 120;
|
|
53
|
-
};
|
|
1
|
+
export * from "./styles/tokens";
|
package/dist/tokens.js
CHANGED
|
@@ -64,6 +64,7 @@ var y = /* @__PURE__ */ a({
|
|
|
64
64
|
...n.$attrs
|
|
65
65
|
}, {
|
|
66
66
|
"data-surface": c.surface,
|
|
67
|
+
"data-material": "transient-overlay",
|
|
67
68
|
"data-reveal": "tooltip",
|
|
68
69
|
class: d(e)("z-tooltip overflow-hidden rounded-tooltip border text-popover-foreground glass-reveal", d(t)(c.surface, "floating"), "[--overlay-pad-inline:--spacing(2)] [--overlay-pad-block:calc(var(--overlay-pad-inline)*1.272)] px-(--overlay-pad-inline) py-(--overlay-pad-block) text-(length:--tooltip-text)", c.class)
|
|
69
70
|
}), {
|
package/dist/tooltip.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as e, n as t, r as n, t as r } from "./
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "./tooltip-BmOQJzh0.js";
|
|
2
2
|
export { e as Tooltip, n as TooltipContent, r as TooltipProvider, t as TooltipTrigger };
|
package/dist/typewriter.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-C1je1s0u.js";
|
|
2
|
-
import {
|
|
2
|
+
import { computed as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createTextVNode as a, defineComponent as o, normalizeClass as s, onMounted as c, onUnmounted as l, openBlock as u, ref as d, toDisplayString as f, unref as p, watch as m } from "vue";
|
|
3
3
|
//#region src/components/typewriter/types.ts
|
|
4
|
-
var
|
|
4
|
+
var h = {
|
|
5
5
|
ngramSize: {
|
|
6
6
|
min: 1,
|
|
7
7
|
max: 3
|
|
@@ -27,7 +27,7 @@ var g = {
|
|
|
27
27
|
deletingSpeed: 70,
|
|
28
28
|
respectReducedMotion: !0,
|
|
29
29
|
loop: !1
|
|
30
|
-
},
|
|
30
|
+
}, g = {
|
|
31
31
|
1: {
|
|
32
32
|
row: 0,
|
|
33
33
|
col: 1,
|
|
@@ -310,42 +310,42 @@ var g = {
|
|
|
310
310
|
finger: "pinky",
|
|
311
311
|
hand: "right"
|
|
312
312
|
}
|
|
313
|
-
},
|
|
314
|
-
let n =
|
|
313
|
+
}, _ = (e, t) => {
|
|
314
|
+
let n = g[e.toLowerCase()], r = g[t.toLowerCase()];
|
|
315
315
|
if (!n || !r) return 250;
|
|
316
316
|
if (n.hand !== r.hand) return 150 + Math.random() * 50;
|
|
317
317
|
if (n.row === r.row && n.col === r.col) return 350 + Math.random() * 100;
|
|
318
318
|
let i = Math.abs(n.col - r.col);
|
|
319
319
|
return i === 1 && n.row === r.row ? 180 + Math.random() * 40 : n.row === 2 && r.row === 2 ? 200 + Math.random() * 50 : n.row === 2 && r.row !== 2 || n.row !== 2 && r.row === 2 ? 280 + Math.random() * 70 : (n.row === 3 || r.row === 3) && (["pinky", "ring"].includes(n.finger) || ["pinky", "ring"].includes(r.finger)) ? 320 + Math.random() * 80 : Math.abs(n.row - r.row) > 1 || i > 2 ? 300 + Math.random() * 100 : 250 + Math.random() * 50;
|
|
320
|
-
},
|
|
320
|
+
}, v = {
|
|
321
321
|
0: 0,
|
|
322
322
|
1: .25,
|
|
323
323
|
2: .5,
|
|
324
324
|
3: .75,
|
|
325
325
|
4: 0
|
|
326
|
-
},
|
|
327
|
-
function
|
|
328
|
-
let n =
|
|
326
|
+
}, y = 1.2, b = 1;
|
|
327
|
+
function x(e, t) {
|
|
328
|
+
let n = v[e.row] ?? 0, r = v[t.row] ?? 0, i = e.col + n - (t.col + r), a = e.row - t.row;
|
|
329
329
|
return Math.sqrt(i * i + a * a);
|
|
330
330
|
}
|
|
331
|
-
var
|
|
332
|
-
for (let [e, t] of
|
|
331
|
+
var S = {}, C = Object.entries(g).filter(([e]) => /^[a-z]$/.test(e));
|
|
332
|
+
for (let [e, t] of C) {
|
|
333
333
|
let n = [];
|
|
334
|
-
for (let [r, i] of
|
|
335
|
-
|
|
334
|
+
for (let [r, i] of C) e !== r && (Math.abs(t.row - i.row) > b || x(t, i) <= y && n.push(r));
|
|
335
|
+
S[e] = n;
|
|
336
336
|
}
|
|
337
|
-
function
|
|
338
|
-
return
|
|
337
|
+
function w(e) {
|
|
338
|
+
return S[e.toLowerCase()] ?? [];
|
|
339
339
|
}
|
|
340
|
-
function
|
|
341
|
-
let t = e.toLowerCase(), n = e !== t, r =
|
|
340
|
+
function T(e) {
|
|
341
|
+
let t = e.toLowerCase(), n = e !== t, r = g[t], i = S[t];
|
|
342
342
|
if (!r || !i || i.length === 0) {
|
|
343
343
|
let e = "asdfghjkl"[Math.floor(Math.random() * 9)];
|
|
344
344
|
return n ? e.toUpperCase() : e;
|
|
345
345
|
}
|
|
346
346
|
let a = [];
|
|
347
347
|
for (let e of i) {
|
|
348
|
-
let t =
|
|
348
|
+
let t = g[e];
|
|
349
349
|
if (!t) continue;
|
|
350
350
|
let n = 1;
|
|
351
351
|
t.finger === r.finger ? n = 2 : t.hand === r.hand && (n = 1.5), a.push({
|
|
@@ -358,6 +358,12 @@ function E(e) {
|
|
|
358
358
|
throw Error("[typewriter:weighted-pool] pool exhausted without selection — invariant violation; ADJACENCY_MAP integrity check needed.");
|
|
359
359
|
}
|
|
360
360
|
//#endregion
|
|
361
|
+
//#region src/components/typewriter/utils/graphemes.ts
|
|
362
|
+
function E(e) {
|
|
363
|
+
let t = Intl.Segmenter;
|
|
364
|
+
return typeof t == "function" ? [...new t(void 0, { granularity: "grapheme" }).segment(e)].map(({ segment: e }) => e) : [...e];
|
|
365
|
+
}
|
|
366
|
+
//#endregion
|
|
361
367
|
//#region src/components/typewriter/utils/pausePatterns.ts
|
|
362
368
|
var D = {
|
|
363
369
|
sentenceEnd: {
|
|
@@ -481,7 +487,7 @@ function B(e, t, n) {
|
|
|
481
487
|
return Math.random() < r && /[a-zA-Z]/.test(t) ? {
|
|
482
488
|
action: {
|
|
483
489
|
type: "type_wrong",
|
|
484
|
-
char:
|
|
490
|
+
char: T(t),
|
|
485
491
|
intended: t
|
|
486
492
|
},
|
|
487
493
|
ctx: {
|
|
@@ -598,142 +604,135 @@ function G(e, t) {
|
|
|
598
604
|
//#endregion
|
|
599
605
|
//#region src/components/typewriter/composables/useTypewriter.ts
|
|
600
606
|
function K(e) {
|
|
601
|
-
let
|
|
602
|
-
...
|
|
607
|
+
let n = {
|
|
608
|
+
...h,
|
|
603
609
|
...e
|
|
604
|
-
}, r =
|
|
605
|
-
function
|
|
610
|
+
}, r = n.words != null && n.words.length > 0, i = d(""), a = d(!1), o = d(!0), s = d(!1), c = d(0), l = d(r ? n.words[0] : { text: n.text ?? "" }), u = r ? n.words[0].text : n.text ?? "", f = E(u), p = null;
|
|
611
|
+
function m() {
|
|
606
612
|
return {
|
|
607
613
|
...L,
|
|
608
|
-
maxCharsBeforeNotice:
|
|
609
|
-
continueAfterTypoProbability:
|
|
610
|
-
sequentialTypoDecay:
|
|
614
|
+
maxCharsBeforeNotice: n.maxCharsBeforeNotice,
|
|
615
|
+
continueAfterTypoProbability: n.continueAfterTypoProbability,
|
|
616
|
+
sequentialTypoDecay: n.sequentialTypoDecay
|
|
611
617
|
};
|
|
612
618
|
}
|
|
613
|
-
async function
|
|
614
|
-
let
|
|
615
|
-
for (; i.value.length <
|
|
619
|
+
async function g(e) {
|
|
620
|
+
let t = f, r = R(), a = m(), s = o.value ? n.firstAnimationSpeedFactor : 1, c = o.value;
|
|
621
|
+
for (; E(i.value).length < t.length;) {
|
|
616
622
|
if (e.cancelled) return;
|
|
617
|
-
let l = i.value.length, u =
|
|
623
|
+
let l = E(i.value).length, u = t[l], d = l > 0 ? t[l - 1] : "";
|
|
618
624
|
if (r.state !== "normal") {
|
|
619
|
-
let
|
|
620
|
-
if (r =
|
|
625
|
+
let t = z(r, u, a, n.errorRate);
|
|
626
|
+
if (r = t.ctx, !await v(t.action, e, d, s)) return;
|
|
621
627
|
continue;
|
|
622
628
|
}
|
|
623
|
-
if (!c && l > 3 && l <
|
|
624
|
-
let
|
|
625
|
-
if (r =
|
|
626
|
-
if (!await
|
|
629
|
+
if (!c && l > 3 && l < t.length - 3) {
|
|
630
|
+
let t = z(r, u, a, n.errorRate);
|
|
631
|
+
if (r = t.ctx, t.action.type === "type_wrong") {
|
|
632
|
+
if (!await v(t.action, e, d, s)) return;
|
|
627
633
|
continue;
|
|
628
634
|
}
|
|
629
635
|
}
|
|
630
|
-
let f = Math.min(P(
|
|
636
|
+
let f = Math.min(P(n.ngramSize), t.length - l);
|
|
631
637
|
for (let r = 0; r < f; r++) {
|
|
632
638
|
if (e.cancelled) return;
|
|
633
|
-
let a = l + r, c =
|
|
639
|
+
let a = l + r, c = t[a], u = a > 0 ? t[a - 1] : "";
|
|
634
640
|
if (i.value += c, r === f - 1) {
|
|
635
|
-
let r =
|
|
641
|
+
let r = t[a + 1] ?? "", i = M(_(u, c) * s, n.variance), l = 0;
|
|
636
642
|
if (o.value || (l = k(c, r, D)), !await j(i + l, e)) return;
|
|
637
643
|
}
|
|
638
644
|
}
|
|
639
645
|
}
|
|
640
646
|
}
|
|
641
|
-
async function
|
|
647
|
+
async function v(e, t, r, a) {
|
|
642
648
|
switch (e.type) {
|
|
643
|
-
case "type_correct": return e.char === "" ? !0 : (i.value += e.char, j(M(
|
|
644
|
-
case "type_wrong": return i.value += e.char, j(M(
|
|
645
|
-
case "type_past_correct": return i.value += e.char, j(M(
|
|
646
|
-
case "notice": return j(e.pauseMs,
|
|
647
|
-
case "backspace": return
|
|
648
|
-
case "resume": return j(e.pauseMs,
|
|
649
|
+
case "type_correct": return e.char === "" ? !0 : (i.value += e.char, j(M(_(r, e.char) * a, n.variance), t));
|
|
650
|
+
case "type_wrong": return i.value += e.char, j(M(_(r, e.char) * a, n.variance), t);
|
|
651
|
+
case "type_past_correct": return i.value += e.char, j(M(_(r, e.char) * a * n.correctionSpeedMultiplier, n.variance), t);
|
|
652
|
+
case "notice": return j(e.pauseMs, t);
|
|
653
|
+
case "backspace": return y(e.count, t, e.frantic);
|
|
654
|
+
case "resume": return j(e.pauseMs, t);
|
|
649
655
|
}
|
|
650
656
|
}
|
|
651
|
-
async function
|
|
652
|
-
let a = r ?
|
|
653
|
-
for (let r = 0; r < e; r++) if (
|
|
657
|
+
async function y(e, t, r) {
|
|
658
|
+
let a = r ? n.correctionBaseDelay : n.backspaceBaseDelay, o = r ? n.backspaceAcceleration * 2 : n.backspaceAcceleration;
|
|
659
|
+
for (let r = 0; r < e; r++) if (t.cancelled || (i.value = E(i.value).slice(0, -1).join(""), !await j(N(a, n.variance * .5, r, o), t))) return !1;
|
|
654
660
|
return !0;
|
|
655
661
|
}
|
|
656
|
-
async function
|
|
662
|
+
async function b(e) {
|
|
657
663
|
s.value = !0;
|
|
658
|
-
let
|
|
659
|
-
for (; i.value.length > 0;) if (e.cancelled || (i.value = i.value.slice(0, -1), !await j(
|
|
664
|
+
let t = n.deletingSpeed;
|
|
665
|
+
for (; i.value.length > 0;) if (e.cancelled || (i.value = E(i.value).slice(0, -1).join(""), !await j(t + Math.random() * 20, e))) return s.value = !1, !1;
|
|
660
666
|
return s.value = !1, !0;
|
|
661
667
|
}
|
|
662
|
-
async function
|
|
663
|
-
let
|
|
668
|
+
async function x(e) {
|
|
669
|
+
let t = n.words, r = c.value;
|
|
664
670
|
for (; !e.cancelled;) {
|
|
665
|
-
if (l.value =
|
|
666
|
-
r = (r + 1) %
|
|
671
|
+
if (l.value = t[r], c.value = r, u = t[r].text, f = E(u), await g(e), e.cancelled || (o.value = !1, n.onWordComplete?.(r), !await j(n.pauseAfterType, e)) || !await b(e) || !await j(n.pauseAfterDelete, e)) return;
|
|
672
|
+
r = (r + 1) % t.length;
|
|
667
673
|
}
|
|
668
674
|
}
|
|
669
|
-
async function
|
|
670
|
-
|
|
675
|
+
async function S() {
|
|
676
|
+
p?.cancel();
|
|
671
677
|
let e = A();
|
|
672
|
-
if (
|
|
673
|
-
r ? (i.value =
|
|
678
|
+
if (p = e, a.value = !0, n.respectReducedMotion && I()) {
|
|
679
|
+
r ? (i.value = n.words[0].text, l.value = n.words[0]) : i.value = u, a.value = !1, o.value = !1, n.onComplete?.();
|
|
674
680
|
return;
|
|
675
681
|
}
|
|
676
|
-
if (r) await
|
|
682
|
+
if (r) await x(e), e.cancelled || (a.value = !1);
|
|
677
683
|
else {
|
|
678
|
-
if (!o.value && i.value.length > 0 && (!await j(
|
|
679
|
-
await
|
|
684
|
+
if (!o.value && i.value.length > 0 && (!await j(n.preBackspacePause, e) || !await y(E(i.value).length, e, !1) || !await j(n.postBackspacePause, e))) return;
|
|
685
|
+
await g(e), e.cancelled || (o.value = !1, a.value = !1, n.onComplete?.(), n.loop && (await j(2e3, e), e.cancelled || S()));
|
|
680
686
|
}
|
|
681
687
|
}
|
|
682
|
-
function S() {
|
|
683
|
-
f?.cancel(), f = null, a.value = !1, s.value = !1;
|
|
684
|
-
}
|
|
685
688
|
function C() {
|
|
686
|
-
|
|
687
|
-
}
|
|
688
|
-
function w(e) {
|
|
689
|
-
u = e, r || (t.text = e), i.value.length > 0 && (o.value = !1);
|
|
689
|
+
p?.cancel(), p = null, a.value = !1, s.value = !1;
|
|
690
690
|
}
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
f?.cancel();
|
|
694
|
-
let t = A();
|
|
695
|
-
f = t, a.value = !0, await _(i.value.length - e, t, !1), a.value = !1, t.cancelled || (await j(200, t), t.cancelled || x());
|
|
691
|
+
function w() {
|
|
692
|
+
C(), i.value = "", o.value = !0, r && (c.value = 0, l.value = n.words[0], u = n.words[0].text, f = E(u));
|
|
696
693
|
}
|
|
697
|
-
function
|
|
698
|
-
|
|
694
|
+
function T(e) {
|
|
695
|
+
u = e, f = E(e), r || (n.text = e), i.value.length > 0 && (o.value = !1);
|
|
699
696
|
}
|
|
700
697
|
function O() {
|
|
701
|
-
|
|
698
|
+
C();
|
|
702
699
|
}
|
|
703
|
-
function F(
|
|
704
|
-
|
|
705
|
-
i.value = u.slice(0, n);
|
|
700
|
+
function F() {
|
|
701
|
+
a.value || S();
|
|
706
702
|
}
|
|
707
|
-
function B(e
|
|
703
|
+
function B(e) {
|
|
704
|
+
let t = f.length, n = Math.max(0, Math.min(e, t));
|
|
705
|
+
i.value = f.slice(0, n).join("");
|
|
706
|
+
}
|
|
707
|
+
function V(e, t) {
|
|
708
708
|
if (!r) return;
|
|
709
|
-
|
|
710
|
-
let i =
|
|
711
|
-
c.value = a, l.value = i[a], u = i[a].text,
|
|
709
|
+
C();
|
|
710
|
+
let i = n.words, a = e % i.length;
|
|
711
|
+
c.value = a, l.value = i[a], u = i[a].text, f = E(u), B(t);
|
|
712
712
|
}
|
|
713
713
|
return {
|
|
714
714
|
displayText: i,
|
|
715
715
|
isTyping: a,
|
|
716
716
|
isFirstAnimation: o,
|
|
717
717
|
isDeleting: s,
|
|
718
|
-
currentWordIndex:
|
|
719
|
-
currentWord:
|
|
720
|
-
startTyping:
|
|
721
|
-
stopTyping:
|
|
722
|
-
reset:
|
|
723
|
-
updateText:
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
forceWord: B
|
|
718
|
+
currentWordIndex: t(() => c.value),
|
|
719
|
+
currentWord: t(() => l.value),
|
|
720
|
+
startTyping: S,
|
|
721
|
+
stopTyping: C,
|
|
722
|
+
reset: w,
|
|
723
|
+
updateText: T,
|
|
724
|
+
pause: O,
|
|
725
|
+
resume: F,
|
|
726
|
+
setCharPosition: B,
|
|
727
|
+
forceWord: V
|
|
729
728
|
};
|
|
730
729
|
}
|
|
731
730
|
//#endregion
|
|
732
731
|
//#region src/components/typewriter/TypewriterText.vue?vue&type=script&setup=true&lang.ts
|
|
733
|
-
var q = { class: "tw-root" }, J =
|
|
732
|
+
var q = { class: "tw-root" }, J = {
|
|
734
733
|
key: 0,
|
|
735
734
|
class: "tw-tail"
|
|
736
|
-
},
|
|
735
|
+
}, Y = /* @__PURE__ */ e(/* @__PURE__ */ o({
|
|
737
736
|
__name: "TypewriterText",
|
|
738
737
|
props: {
|
|
739
738
|
text: { default: void 0 },
|
|
@@ -767,10 +766,6 @@ var q = { class: "tw-root" }, J = ["onClick"], Y = {
|
|
|
767
766
|
pauseAfterType: { default: 3e3 },
|
|
768
767
|
pauseAfterDelete: { default: 800 },
|
|
769
768
|
deletingSpeed: { default: 70 },
|
|
770
|
-
interactive: {
|
|
771
|
-
type: Boolean,
|
|
772
|
-
default: !0
|
|
773
|
-
},
|
|
774
769
|
respectReducedMotion: {
|
|
775
770
|
type: Boolean,
|
|
776
771
|
default: !0
|
|
@@ -782,79 +777,69 @@ var q = { class: "tw-root" }, J = ["onClick"], Y = {
|
|
|
782
777
|
"wordComplete"
|
|
783
778
|
],
|
|
784
779
|
setup(e, { expose: o, emit: d }) {
|
|
785
|
-
let
|
|
786
|
-
text:
|
|
787
|
-
words:
|
|
788
|
-
ngramSize:
|
|
789
|
-
baseSpeed:
|
|
790
|
-
variance:
|
|
791
|
-
errorRate:
|
|
792
|
-
firstAnimationSpeedFactor:
|
|
793
|
-
maxCharsBeforeNotice:
|
|
794
|
-
continueAfterTypoProbability:
|
|
795
|
-
sequentialTypoDecay:
|
|
796
|
-
correctionSpeedMultiplier:
|
|
797
|
-
cursorVisible:
|
|
798
|
-
cursorBlink:
|
|
799
|
-
cursorChar:
|
|
800
|
-
loop:
|
|
801
|
-
pauseAfterType:
|
|
802
|
-
pauseAfterDelete:
|
|
803
|
-
deletingSpeed:
|
|
804
|
-
respectReducedMotion:
|
|
805
|
-
onComplete: () =>
|
|
806
|
-
onWordComplete: (e) =>
|
|
807
|
-
}), { displayText:
|
|
808
|
-
function
|
|
780
|
+
let h = e, g = d, _ = K({
|
|
781
|
+
text: h.text,
|
|
782
|
+
words: h.words,
|
|
783
|
+
ngramSize: h.ngramSize,
|
|
784
|
+
baseSpeed: h.baseSpeed,
|
|
785
|
+
variance: h.variance,
|
|
786
|
+
errorRate: h.errorRate,
|
|
787
|
+
firstAnimationSpeedFactor: h.firstAnimationSpeedFactor,
|
|
788
|
+
maxCharsBeforeNotice: h.maxCharsBeforeNotice,
|
|
789
|
+
continueAfterTypoProbability: h.continueAfterTypoProbability,
|
|
790
|
+
sequentialTypoDecay: h.sequentialTypoDecay,
|
|
791
|
+
correctionSpeedMultiplier: h.correctionSpeedMultiplier,
|
|
792
|
+
cursorVisible: h.cursorVisible,
|
|
793
|
+
cursorBlink: h.cursorBlink,
|
|
794
|
+
cursorChar: h.cursorChar,
|
|
795
|
+
loop: h.loop,
|
|
796
|
+
pauseAfterType: h.pauseAfterType,
|
|
797
|
+
pauseAfterDelete: h.pauseAfterDelete,
|
|
798
|
+
deletingSpeed: h.deletingSpeed,
|
|
799
|
+
respectReducedMotion: h.respectReducedMotion,
|
|
800
|
+
onComplete: () => g("complete"),
|
|
801
|
+
onWordComplete: (e) => g("wordComplete", e)
|
|
802
|
+
}), { displayText: v, startTyping: y, stopTyping: b, reset: x } = _, S = t(() => E(v.value)), C = t(() => S.value.slice(0, -1).join("")), w = t(() => S.value.length > 0 ? S.value[S.value.length - 1] : null), T = /* @__PURE__ */ new Set();
|
|
803
|
+
function D(e, t) {
|
|
809
804
|
let n = setTimeout(() => {
|
|
810
|
-
|
|
805
|
+
T.delete(n), e();
|
|
811
806
|
}, t);
|
|
812
|
-
return
|
|
813
|
-
}
|
|
814
|
-
function A() {
|
|
815
|
-
O.forEach((e) => clearTimeout(e)), O.clear();
|
|
807
|
+
return T.add(n), n;
|
|
816
808
|
}
|
|
817
|
-
function
|
|
818
|
-
|
|
819
|
-
_("start"), b();
|
|
820
|
-
}, g.startDelay);
|
|
809
|
+
function O() {
|
|
810
|
+
T.forEach((e) => clearTimeout(e)), T.clear();
|
|
821
811
|
}
|
|
822
|
-
function
|
|
823
|
-
|
|
812
|
+
function k() {
|
|
813
|
+
O(), D(() => {
|
|
814
|
+
g("start"), y();
|
|
815
|
+
}, h.startDelay);
|
|
824
816
|
}
|
|
825
|
-
return
|
|
826
|
-
e !== t && e && (
|
|
817
|
+
return m(() => h.text, (e, t) => {
|
|
818
|
+
e !== t && e && (b(), _.updateText(e), k());
|
|
827
819
|
}), c(() => {
|
|
828
|
-
(
|
|
820
|
+
(h.text || h.words && h.words.length > 0) && k();
|
|
829
821
|
}), l(() => {
|
|
830
|
-
|
|
822
|
+
O(), b();
|
|
831
823
|
}), o({
|
|
832
|
-
startTyping:
|
|
833
|
-
stopTyping:
|
|
834
|
-
reset:
|
|
835
|
-
isTyping:
|
|
836
|
-
isDeleting:
|
|
837
|
-
currentWord:
|
|
838
|
-
currentWordIndex:
|
|
839
|
-
pause:
|
|
840
|
-
resume:
|
|
841
|
-
setCharPosition:
|
|
842
|
-
forceWord:
|
|
843
|
-
}), (
|
|
844
|
-
key: t,
|
|
845
|
-
class: s(D.value),
|
|
846
|
-
onClick: (e) => M(t)
|
|
847
|
-
}, p(e), 11, J))), 128)), E.value === null ? e.cursorVisible ? (u(), i("span", {
|
|
824
|
+
startTyping: y,
|
|
825
|
+
stopTyping: b,
|
|
826
|
+
reset: x,
|
|
827
|
+
isTyping: _.isTyping,
|
|
828
|
+
isDeleting: _.isDeleting,
|
|
829
|
+
currentWord: _.currentWord,
|
|
830
|
+
currentWordIndex: _.currentWordIndex,
|
|
831
|
+
pause: _.pause,
|
|
832
|
+
resume: _.resume,
|
|
833
|
+
setCharPosition: _.setCharPosition,
|
|
834
|
+
forceWord: _.forceWord
|
|
835
|
+
}), (t, o) => (u(), r("span", q, [i("span", null, f(C.value), 1), w.value === null ? e.cursorVisible ? (u(), r("span", {
|
|
848
836
|
key: 1,
|
|
849
|
-
class: s(["tw-cursor", { "tw-cursor--blink": e.cursorBlink && !
|
|
850
|
-
},
|
|
851
|
-
class: s(D.value),
|
|
852
|
-
onClick: o[0] ||= (e) => M(w.value.length - 1)
|
|
853
|
-
}, p(E.value), 3), e.cursorVisible ? (u(), i("span", {
|
|
837
|
+
class: s(["tw-cursor", { "tw-cursor--blink": e.cursorBlink && !p(_).isTyping.value }])
|
|
838
|
+
}, f(e.cursorChar), 3)) : n("", !0) : (u(), r("span", J, [a(f(w.value) + " ", 1), e.cursorVisible ? (u(), r("span", {
|
|
854
839
|
key: 0,
|
|
855
|
-
class: s(["tw-cursor", { "tw-cursor--blink": e.cursorBlink && !
|
|
856
|
-
},
|
|
840
|
+
class: s(["tw-cursor", { "tw-cursor--blink": e.cursorBlink && !p(_).isTyping.value }])
|
|
841
|
+
}, f(e.cursorChar), 3)) : n("", !0)]))]));
|
|
857
842
|
}
|
|
858
|
-
}), [["__scopeId", "data-v-
|
|
843
|
+
}), [["__scopeId", "data-v-81b49262"]]);
|
|
859
844
|
//#endregion
|
|
860
|
-
export {
|
|
845
|
+
export { h as DEFAULTS, L as DEFAULT_TYPO_CONFIG, D as PAUSE_PATTERNS, g as QWERTY_MAP, Y as TypewriterText, N as backspaceDelay, _ as calculateKeyDelay, A as createCancellationToken, R as createTypoContext, w as getAdjacentKeys, k as getPauseDelay, z as nextTypoAction, P as pickNgramSize, T as pickTypoChar, I as prefersReducedMotion, F as randomInRange, j as sleep, M as stochasticDelay, K as useTypewriter };
|
|
@@ -7,7 +7,7 @@ function a(a, o = {}) {
|
|
|
7
7
|
let e = n(a) || "var(--primary)";
|
|
8
8
|
if (/var\(/.test(e)) return "";
|
|
9
9
|
let t = i(e, o), c = r.get(t);
|
|
10
|
-
return c === void 0 ? (import("./accent-tone-solve-
|
|
10
|
+
return c === void 0 ? (import("./accent-tone-solve-Dii9ePhK.js").then(({ solveAccentInk: n }) => {
|
|
11
11
|
r.set(t, n(e, o)), s.value++;
|
|
12
12
|
}), "") : c;
|
|
13
13
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, t } from "./constants-
|
|
1
|
+
import { n as e, t } from "./constants-DRZmNIY-.js";
|
|
2
2
|
import { getCurrentScope as n, onScopeDispose as r, readonly as i, ref as a, shallowRef as o, toValue as s, watch as c } from "vue";
|
|
3
3
|
import { SmoothProgress as l } from "@mkbabb/keyframes.js";
|
|
4
4
|
//#region src/composables/motion/useAnimatedNumber.ts
|