@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/handmark.d.ts
CHANGED
package/dist/handmark.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-C1je1s0u.js";
|
|
2
|
-
import { n as t } from "./prng-
|
|
2
|
+
import { n as t } from "./prng-Dz2_9RJu.js";
|
|
3
3
|
import { Fragment as n, computed as r, createCommentVNode as i, createElementBlock as a, defineComponent as o, normalizeClass as s, normalizeStyle as c, onBeforeUnmount as l, onMounted as u, openBlock as d, ref as f, renderList as p, renderSlot as m, unref as h, useId as g, watch as _ } from "vue";
|
|
4
4
|
import { catmullRomToBezier as v, ellipsePoints as y, perturbPoints as b, perturbPointsClosed as x, pointsToLinear as S, useLineBoil as C, wobbleLinePoints as w } from "@mkbabb/pencil-boil";
|
|
5
5
|
//#region src/components/handmark/brush.ts
|
|
@@ -197,10 +197,10 @@ var T = {
|
|
|
197
197
|
}, O = 100, k = 40, A = .06, j = .22, M = .66, N = 1.618033988749895, P = 2.5, F = .05, I = .12;
|
|
198
198
|
//#endregion
|
|
199
199
|
//#region src/components/handmark/noise.ts
|
|
200
|
-
function
|
|
200
|
+
function L(e) {
|
|
201
201
|
return e * e * e * (e * (e * 6 - 15) + 10);
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function R(e, n, r, i, a, o = 1) {
|
|
204
204
|
let s = r - e;
|
|
205
205
|
if (s <= 0) return [[e, n], [r, n]];
|
|
206
206
|
let c = i >>> 0, l = s * F * o, u = t(c), d = 0, f = Array.from({ length: 4 }, (e, n) => {
|
|
@@ -216,7 +216,7 @@ function L(e, n, r, i, a, o = 1) {
|
|
|
216
216
|
weight: a,
|
|
217
217
|
vnoise: (e) => {
|
|
218
218
|
let t = Math.floor(e), n = e - t, r = l(t);
|
|
219
|
-
return r + (l(t + 1) - r) *
|
|
219
|
+
return r + (l(t + 1) - r) * L(n);
|
|
220
220
|
}
|
|
221
221
|
};
|
|
222
222
|
}), p = Math.max(6, a), m = [];
|
|
@@ -231,14 +231,14 @@ function L(e, n, r, i, a, o = 1) {
|
|
|
231
231
|
}
|
|
232
232
|
//#endregion
|
|
233
233
|
//#region src/components/handmark/geometry.ts
|
|
234
|
-
function
|
|
234
|
+
function z(e, t, n = null, r = null, i = !1, a = 40, o = 1) {
|
|
235
235
|
let s = n == null && (e === "underline" || e === "strikethrough" || e === "highlight") ? a : 40, c = n ? n.x : 4, l = n ? n.x + n.w : 96, u = n ? n.y + n.h / 2 : s / 2, d = n ? n.y + n.h * .92 : r == null ? s - 8 : s * (r + A), f = t.seed ?? 1, p = t.segments ?? 9, m = (e, n, r, i, a = 0) => w(e, n, r, i, {
|
|
236
236
|
...t,
|
|
237
237
|
seed: f + a
|
|
238
238
|
});
|
|
239
239
|
switch (e) {
|
|
240
240
|
case "underline": return {
|
|
241
|
-
lines: [i ?
|
|
241
|
+
lines: [i ? R(c, d, l, f, p, o) : m(c, d, l, d)],
|
|
242
242
|
closed: !1
|
|
243
243
|
};
|
|
244
244
|
case "strikethrough": return {
|
|
@@ -289,19 +289,19 @@ function R(e, t, n = null, r = null, i = !1, a = 40, o = 1) {
|
|
|
289
289
|
};
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function B({ lines: e, closed: t }, n, r) {
|
|
293
293
|
return e.map((e, i) => {
|
|
294
294
|
if (t) return x(e, n, r + i);
|
|
295
295
|
let a = e[0], o = e[e.length - 1];
|
|
296
296
|
return b(e, a[0], a[1], o[0], o[1], n, r + i);
|
|
297
297
|
});
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function V(e, t = !1) {
|
|
300
300
|
return e.map((e) => t ? S(e) : v(e)).join(" ");
|
|
301
301
|
}
|
|
302
302
|
//#endregion
|
|
303
303
|
//#region src/components/handmark/freehand.ts
|
|
304
|
-
var
|
|
304
|
+
var H = (e, t) => [e[0] + t[0], e[1] + t[1]], U = (e, t) => [e[0] - t[0], e[1] - t[1]], W = (e, t) => [e[0] * t, e[1] * t], ee = (e) => [-e[0], -e[1]], G = (e) => [e[1], -e[0]], te = (e, t) => e[0] * t[0] + e[1] * t[1], ne = (e) => e[0] * e[0] + e[1] * e[1], K = (e, t) => ne(U(e, t)), re = (e, t) => Math.hypot(e[1] - t[1], e[0] - t[0]), ie = (e) => W(e, 1 / (Math.hypot(e[0], e[1]) || 1)), q = (e, t, n) => H(e, W(U(t, e), n)), J = (e, t) => W(H(e, t), .5), Y = (e, t, n) => {
|
|
305
305
|
let r = Math.sin(n), i = Math.cos(n), a = e[0] - t[0], o = e[1] - t[1];
|
|
306
306
|
return [a * i - o * r + t[0], a * r + o * i + t[1]];
|
|
307
307
|
}, { min: X, PI: ae } = Math, Z = ae + 1e-4, oe = (e) => e;
|
|
@@ -317,7 +317,7 @@ function se(e, t = {}) {
|
|
|
317
317
|
let e = o[1];
|
|
318
318
|
o[1] = q(o[0], e, .5), o.push(e);
|
|
319
319
|
}
|
|
320
|
-
o.length === 1 && o.push([...
|
|
320
|
+
o.length === 1 && o.push([...H(o[0], [1, 1]), ...o[0].slice(2)]);
|
|
321
321
|
let s = [{
|
|
322
322
|
point: [o[0][0], o[0][1]],
|
|
323
323
|
pressure: o[0][2] >= 0 ? o[0][2] : .25,
|
|
@@ -336,7 +336,7 @@ function se(e, t = {}) {
|
|
|
336
336
|
u = {
|
|
337
337
|
point: t,
|
|
338
338
|
pressure: o[e][2] >= 0 ? o[e][2] : .5,
|
|
339
|
-
vector: ie(
|
|
339
|
+
vector: ie(U(u.point, t)),
|
|
340
340
|
distance: n,
|
|
341
341
|
runningLength: l
|
|
342
342
|
}, s.push(u);
|
|
@@ -353,7 +353,7 @@ function ce(e, t = {}) {
|
|
|
353
353
|
r = X(1, e + (X(1, 1 - i) - e) * (i * .275));
|
|
354
354
|
}
|
|
355
355
|
return (e + r) / 2;
|
|
356
|
-
}, e[0].pressure), S =
|
|
356
|
+
}, e[0].pressure), S = Q(n, i, e[e.length - 1].pressure, o), C, w = e[0].vector, T = e[0].point, E = T, D = T, O = E, k = !1;
|
|
357
357
|
for (let t = 0; t < e.length; t++) {
|
|
358
358
|
let { pressure: r } = e[t], { point: s, vector: c, distance: l, runningLength: u } = e[t];
|
|
359
359
|
if (t < e.length - 1 && m - u < 3) continue;
|
|
@@ -362,30 +362,30 @@ function ce(e, t = {}) {
|
|
|
362
362
|
let e = X(1, l / n), t = X(1, 1 - e);
|
|
363
363
|
r = X(1, x + (t - x) * (e * .275));
|
|
364
364
|
}
|
|
365
|
-
S =
|
|
365
|
+
S = Q(n, i, r, o);
|
|
366
366
|
} else S = n / 2;
|
|
367
367
|
C === void 0 && (C = S);
|
|
368
368
|
let f = u < h ? d(u / h) : 1, A = m - u < g ? p((m - u) / g) : 1;
|
|
369
369
|
S = Math.max(.01, S * Math.min(f, A));
|
|
370
370
|
let j = (t < e.length - 1 ? e[t + 1] : e[t]).vector, M = t < e.length - 1 ? te(c, j) : 1, N = te(c, w) < 0 && !k, P = M !== null && M < .2;
|
|
371
371
|
if (N || P) {
|
|
372
|
-
let e =
|
|
373
|
-
for (let t = 0; t <= 1; t += .07692307692307693) D = Y(
|
|
372
|
+
let e = W(G(w), S);
|
|
373
|
+
for (let t = 0; t <= 1; t += .07692307692307693) D = Y(U(s, e), s, Z * t), v.push(D), O = Y(H(s, e), s, Z * -t), y.push(O);
|
|
374
374
|
T = D, E = O, P && (k = !0);
|
|
375
375
|
continue;
|
|
376
376
|
}
|
|
377
377
|
if (k = !1, t === e.length - 1) {
|
|
378
|
-
let e =
|
|
379
|
-
v.push(
|
|
378
|
+
let e = W(G(c), S);
|
|
379
|
+
v.push(U(s, e)), y.push(H(s, e));
|
|
380
380
|
continue;
|
|
381
381
|
}
|
|
382
|
-
let F =
|
|
383
|
-
D =
|
|
382
|
+
let F = W(G(q(j, c, M)), S);
|
|
383
|
+
D = U(s, F), (t <= 1 || K(T, D) > _) && (v.push(D), T = D), O = H(s, F), (t <= 1 || K(E, O) > _) && (y.push(O), E = O), x = r, w = c, b.push(S);
|
|
384
384
|
}
|
|
385
|
-
let A = e[0].point.slice(0, 2), j = e.length > 1 ? e[e.length - 1].point.slice(0, 2) :
|
|
385
|
+
let A = e[0].point.slice(0, 2), j = e.length > 1 ? e[e.length - 1].point.slice(0, 2) : H(e[0].point, [1, 1]), M = [], N = [];
|
|
386
386
|
if (e.length === 1) {
|
|
387
387
|
if (!(h || g) || l) {
|
|
388
|
-
let e =
|
|
388
|
+
let e = H(A, W(ie(G(U(A, j))), -(C ?? S))), t = [];
|
|
389
389
|
for (let n = 1 / 13, r = n; r <= 1; r += n) t.push(Y(e, A, Z * 2 * r));
|
|
390
390
|
return t;
|
|
391
391
|
}
|
|
@@ -395,27 +395,27 @@ function ce(e, t = {}) {
|
|
|
395
395
|
M.push(e);
|
|
396
396
|
}
|
|
397
397
|
else {
|
|
398
|
-
let e =
|
|
399
|
-
M.push(
|
|
398
|
+
let e = U(v[0], y[0]), t = W(e, .5), n = W(e, .51);
|
|
399
|
+
M.push(U(A, t), U(A, n), H(A, n), H(A, t));
|
|
400
400
|
}
|
|
401
|
-
let t = G(
|
|
401
|
+
let t = G(ee(e[e.length - 1].vector));
|
|
402
402
|
if (g || h && e.length === 1) N.push(j);
|
|
403
403
|
else if (f) {
|
|
404
|
-
let e =
|
|
404
|
+
let e = H(j, W(t, S));
|
|
405
405
|
for (let t = 1 / 29, n = t; n < 1; n += t) N.push(Y(e, j, Z * 3 * n));
|
|
406
|
-
} else N.push(
|
|
406
|
+
} else N.push(H(j, W(t, S)), H(j, W(t, S * .99)), U(j, W(t, S * .99)), U(j, W(t, S)));
|
|
407
407
|
}
|
|
408
408
|
return v.concat(N, y.reverse(), M);
|
|
409
409
|
}
|
|
410
|
-
function
|
|
410
|
+
function Q(e, t, n, r = oe) {
|
|
411
411
|
if (!t) return e / 2;
|
|
412
412
|
let i = n;
|
|
413
413
|
return i < 0 && (i = 0), i > 1 && (i = 1), e * r(.5 - t * (.5 - i)) * .5 + e / 2 * (1 - Math.abs(t));
|
|
414
414
|
}
|
|
415
|
-
function
|
|
415
|
+
function le(e, t = {}) {
|
|
416
416
|
return ce(se(e, t), t);
|
|
417
417
|
}
|
|
418
|
-
function
|
|
418
|
+
function ue(e, t = !0) {
|
|
419
419
|
if (e.length < 4) return "";
|
|
420
420
|
let n = e[0], r = e[1], i = e[2], a = `M${n[0].toFixed(2)},${n[1].toFixed(2)} Q${r[0].toFixed(2)},${r[1].toFixed(2)} ${J(r, i)[0].toFixed(2)},${J(r, i)[1].toFixed(2)} T`;
|
|
421
421
|
for (let t = 2, i = e.length - 1; t < i; t++) n = e[t], r = e[t + 1], a += `${J(n, r)[0].toFixed(2)},${J(n, r)[1].toFixed(2)} `;
|
|
@@ -423,7 +423,7 @@ function de(e, t = !0) {
|
|
|
423
423
|
}
|
|
424
424
|
//#endregion
|
|
425
425
|
//#region src/components/handmark/texture.ts
|
|
426
|
-
function
|
|
426
|
+
function de(e, t, n) {
|
|
427
427
|
if (t.grain <= 0 && t.grainScale <= 0) return "";
|
|
428
428
|
let r = (n ^ 34283) & 65535, i = (.55 - t.grain * .42).toFixed(3), a = t.grain > 0 ? "in" : "over";
|
|
429
429
|
return `
|
|
@@ -437,17 +437,17 @@ function fe(e, t, n) {
|
|
|
437
437
|
<feDisplacementMap in="grained" in2="grain" scale="${(t.grainScale * 2).toFixed(2)}" xChannelSelector="R" yChannelSelector="G"/>
|
|
438
438
|
</filter>`;
|
|
439
439
|
}
|
|
440
|
-
function
|
|
440
|
+
function $(e) {
|
|
441
441
|
return e.grain > 0 || e.grainScale > 0;
|
|
442
442
|
}
|
|
443
443
|
//#endregion
|
|
444
444
|
//#region src/components/handmark/ink.ts
|
|
445
|
-
function
|
|
445
|
+
function fe(e) {
|
|
446
446
|
let t = 0;
|
|
447
447
|
for (let n = 1; n < e.length; n++) t += Math.hypot(e[n][0] - e[n - 1][0], e[n][1] - e[n - 1][1]);
|
|
448
448
|
return t;
|
|
449
449
|
}
|
|
450
|
-
function
|
|
450
|
+
function pe(e) {
|
|
451
451
|
let t = e.length;
|
|
452
452
|
if (t < 3) return e;
|
|
453
453
|
let n = [e[0]];
|
|
@@ -457,7 +457,7 @@ function me(e) {
|
|
|
457
457
|
}
|
|
458
458
|
return n.push(e[t - 1]), n;
|
|
459
459
|
}
|
|
460
|
-
function
|
|
460
|
+
function me(e, t) {
|
|
461
461
|
let n = e.length;
|
|
462
462
|
if (t <= 0 || t >= n - 1) return 0;
|
|
463
463
|
let r = e[t - 1], i = e[t], a = e[t + 1], o = i[0] - r[0], s = i[1] - r[1], c = a[0] - i[0], l = a[1] - i[1], u = Math.hypot(o, s), d = Math.hypot(c, l);
|
|
@@ -465,11 +465,11 @@ function he(e, t) {
|
|
|
465
465
|
let f = Math.abs(o * l - s * c) / (u * d);
|
|
466
466
|
return Math.min(1, f);
|
|
467
467
|
}
|
|
468
|
-
var
|
|
469
|
-
function
|
|
470
|
-
let i = t(r >>> 0), a =
|
|
468
|
+
var he = 2.5, ge = .9;
|
|
469
|
+
function _e(e, n, r) {
|
|
470
|
+
let i = t(r >>> 0), a = pe(e);
|
|
471
471
|
return e.map((e, t) => {
|
|
472
|
-
let r =
|
|
472
|
+
let r = ge * (1 - he * me(a, t)) + (i() - .5) * n.weightJitter * .4;
|
|
473
473
|
return [
|
|
474
474
|
e[0],
|
|
475
475
|
e[1],
|
|
@@ -477,17 +477,17 @@ function ve(e, n, r) {
|
|
|
477
477
|
];
|
|
478
478
|
});
|
|
479
479
|
}
|
|
480
|
-
function
|
|
480
|
+
function ve(e) {
|
|
481
481
|
return e === "out-cubic" ? (e) => 1 - (1 - e) ** 3 : (e) => e;
|
|
482
482
|
}
|
|
483
|
-
function
|
|
483
|
+
function ye(e, n, r, i, a, o = !1) {
|
|
484
484
|
if (n.stamp) {
|
|
485
485
|
let a = t(r >>> 0), o = n.stamp({
|
|
486
486
|
centerline: e,
|
|
487
487
|
brush: n,
|
|
488
488
|
rng: a,
|
|
489
489
|
seed: r,
|
|
490
|
-
length:
|
|
490
|
+
length: fe(e),
|
|
491
491
|
color: i
|
|
492
492
|
});
|
|
493
493
|
return {
|
|
@@ -500,20 +500,20 @@ function $(e, n, r, i, a, o = !1) {
|
|
|
500
500
|
for (let t = 0; t < n.passes; t++) {
|
|
501
501
|
let a = e[0], o = e[e.length - 1], l = b(e, a[0], a[1], o[0], o[1], n.weight * .06, r + 991 * t), u = n.opacity * (1 - n.passOpacity * t);
|
|
502
502
|
if (n.ribbon === "hull") {
|
|
503
|
-
let e =
|
|
503
|
+
let e = _e(l, n, r + 7 * t), a = Math.max(.12, Math.min(.6, .875 - .75 * n.roughness)), o = le(e, {
|
|
504
504
|
size: n.weight,
|
|
505
505
|
thinning: n.thinning,
|
|
506
506
|
streamline: a,
|
|
507
507
|
last: !0,
|
|
508
508
|
start: {
|
|
509
509
|
taper: n.taper.start,
|
|
510
|
-
easing:
|
|
510
|
+
easing: ve(n.taper.ease)
|
|
511
511
|
},
|
|
512
512
|
end: {
|
|
513
513
|
taper: n.taper.end,
|
|
514
|
-
easing:
|
|
514
|
+
easing: ve(n.taper.ease)
|
|
515
515
|
}
|
|
516
|
-
}), d =
|
|
516
|
+
}), d = ue(o);
|
|
517
517
|
o.length < 4 || d === "" ? s.push({
|
|
518
518
|
d: c(l),
|
|
519
519
|
stroke: i,
|
|
@@ -535,7 +535,7 @@ function $(e, n, r, i, a, o = !1) {
|
|
|
535
535
|
cap: n.cap
|
|
536
536
|
});
|
|
537
537
|
}
|
|
538
|
-
let l =
|
|
538
|
+
let l = $(n) ? de(a, n, r) : "";
|
|
539
539
|
return {
|
|
540
540
|
paths: s,
|
|
541
541
|
filterId: l ? a : null,
|
|
@@ -575,9 +575,9 @@ function Se(e) {
|
|
|
575
575
|
let t = r(() => {
|
|
576
576
|
let t = { ...e.value.overrides ?? {} };
|
|
577
577
|
return e.value.roughness != null && (t.roughness = e.value.roughness), e.value.segments != null && (t.segments = e.value.segments), E(e.value.brush, t);
|
|
578
|
-
}), n = r(() =>
|
|
578
|
+
}), n = r(() => $(t.value)), i = r(() => {
|
|
579
579
|
let n = e.value.amplitude ?? t.value.wobble / 1.4;
|
|
580
|
-
return
|
|
580
|
+
return z(e.value.shape, {
|
|
581
581
|
roughness: t.value.roughness,
|
|
582
582
|
segments: t.value.segments,
|
|
583
583
|
seed: e.value.seed,
|
|
@@ -588,10 +588,10 @@ function Se(e) {
|
|
|
588
588
|
let n = i.value.lines;
|
|
589
589
|
if (a.value && c.value) {
|
|
590
590
|
let r = t.value.wobble * .4 + .4, a = l.currentFrame.value;
|
|
591
|
-
n =
|
|
591
|
+
n = B(i.value, r, e.value.seed + a * 31);
|
|
592
592
|
}
|
|
593
|
-
return
|
|
594
|
-
}), d = r(() => e.value.path ? [] : a.value && c.value ?
|
|
593
|
+
return V(n, e.value.jagged);
|
|
594
|
+
}), d = r(() => e.value.path ? [] : a.value && c.value ? B(i.value, t.value.wobble * .4 + .4, e.value.seed + l.currentFrame.value * 31) : i.value.lines);
|
|
595
595
|
return {
|
|
596
596
|
brush: t,
|
|
597
597
|
baseGeom: i,
|
|
@@ -602,7 +602,7 @@ function Se(e) {
|
|
|
602
602
|
defs: []
|
|
603
603
|
}, r = d.value.length ? d.value : [[]];
|
|
604
604
|
for (let i of r) {
|
|
605
|
-
let r =
|
|
605
|
+
let r = ye(i, t.value, e.value.seed, e.value.color, e.value.filterId, e.value.jagged);
|
|
606
606
|
n.paths.push(...r.paths), r.filterId && !n.filterId && (n.filterId = r.filterId, n.defs = r.defs);
|
|
607
607
|
}
|
|
608
608
|
return n;
|
|
@@ -661,25 +661,25 @@ var Ce = [
|
|
|
661
661
|
let o = e, v = `hm-${g().replace(/[^a-zA-Z0-9_-]/g, "")}`, y = f(null), b = f(null), x = r(() => {
|
|
662
662
|
let e = o.box == null && (o.shape === "underline" || o.shape === "strikethrough" || o.shape === "highlight"), t = b.value;
|
|
663
663
|
return !e || t == null || t <= 0 ? 40 : 100 / t;
|
|
664
|
-
}), { brush: S, fragment: C, grained: w, drawKind: T, draws: E, boils: D, boil: O, boilArmed: k } = Se(r(() => xe(o, v, y.value, x.value))), A = r(() => o.shape === "highlight"), j = r(() => o.path ?? null), M = f(!1), N = f(null), P = r(() => E.value ? `${T.value === "clip" ? "clip-path" : "stroke-dashoffset"} ${o.drawMs}ms var(--ease-out-expo) ${o.drawDelayMs}ms` : "none");
|
|
665
|
-
function
|
|
664
|
+
}), { brush: S, fragment: C, grained: w, drawKind: T, draws: E, boils: D, boil: O, boilArmed: k } = Se(r(() => xe(o, v, y.value, x.value))), A = r(() => o.shape === "highlight"), j = r(() => o.path ?? null), M = f(!1), N = f(null), P = null, F = r(() => E.value ? `${T.value === "clip" ? "clip-path" : "stroke-dashoffset"} ${o.drawMs}ms var(--ease-out-expo) ${o.drawDelayMs}ms` : "none");
|
|
665
|
+
function I() {
|
|
666
666
|
D.value && (k.value = !0, O.start());
|
|
667
667
|
}
|
|
668
|
-
function
|
|
668
|
+
function L() {
|
|
669
669
|
if (!E.value) {
|
|
670
|
-
|
|
670
|
+
I();
|
|
671
671
|
return;
|
|
672
672
|
}
|
|
673
|
-
M.value = !1, N.value && N.value.offsetWidth, requestAnimationFrame(() => {
|
|
674
|
-
M.value = !0;
|
|
673
|
+
P !== null && cancelAnimationFrame(P), M.value = !1, N.value && N.value.offsetWidth, P = requestAnimationFrame(() => {
|
|
674
|
+
P = null, M.value = !0;
|
|
675
675
|
});
|
|
676
676
|
}
|
|
677
|
-
function
|
|
678
|
-
o.animation === "draw-then-boil" &&
|
|
677
|
+
function R() {
|
|
678
|
+
o.animation === "draw-then-boil" && I();
|
|
679
679
|
}
|
|
680
|
-
t({ play:
|
|
681
|
-
let
|
|
682
|
-
function
|
|
680
|
+
t({ play: L });
|
|
681
|
+
let z = r(() => o.box == null && (o.shape === "underline" || o.shape === "strikethrough" || o.shape === "highlight"));
|
|
682
|
+
function B(e) {
|
|
683
683
|
if (typeof document > "u" || typeof Range > "u") return null;
|
|
684
684
|
let t = Array.from(e.childNodes).filter((e) => e.nodeType === Node.ELEMENT_NODE ? e.tagName !== "svg" : e.nodeType === Node.TEXT_NODE && (e.textContent ?? "").trim().length > 0);
|
|
685
685
|
if (t.length === 0) return null;
|
|
@@ -688,11 +688,11 @@ var Ce = [
|
|
|
688
688
|
let r = n.getBoundingClientRect();
|
|
689
689
|
return n.detach?.(), r.height > 0 ? r : null;
|
|
690
690
|
}
|
|
691
|
-
function
|
|
692
|
-
if (!
|
|
691
|
+
function V() {
|
|
692
|
+
if (!z.value) return;
|
|
693
693
|
let e = N.value;
|
|
694
694
|
if (!e) return;
|
|
695
|
-
let t =
|
|
695
|
+
let t = B(e);
|
|
696
696
|
if (!t) return;
|
|
697
697
|
let n = e.getBoundingClientRect();
|
|
698
698
|
if (n.height <= 0) return;
|
|
@@ -700,30 +700,30 @@ var Ce = [
|
|
|
700
700
|
let r = (t.bottom - n.top) / n.height;
|
|
701
701
|
y.value = Math.min(1, Math.max(0, r));
|
|
702
702
|
}
|
|
703
|
-
let B = null;
|
|
704
|
-
function V() {
|
|
705
|
-
!L.value || !N.value || (z(), typeof document < "u" && document.fonts?.ready && document.fonts.ready.then(() => z()), typeof ResizeObserver < "u" && (B = new ResizeObserver(() => z()), B.observe(N.value)));
|
|
706
|
-
}
|
|
707
703
|
let H = null;
|
|
704
|
+
function U() {
|
|
705
|
+
!z.value || !N.value || (V(), typeof document < "u" && document.fonts?.ready && document.fonts.ready.then(() => V()), typeof ResizeObserver < "u" && (H = new ResizeObserver(() => V()), H.observe(N.value)));
|
|
706
|
+
}
|
|
707
|
+
let W = null;
|
|
708
708
|
u(() => {
|
|
709
|
-
|
|
710
|
-
e.some((e) => e.isIntersecting) && (
|
|
711
|
-
}, { threshold: .01 }), N.value &&
|
|
709
|
+
U(), o.animation === "boil" && I(), o.appear === "mount" ? L() : o.appear === "visible" && typeof IntersectionObserver < "u" ? (W = new IntersectionObserver((e) => {
|
|
710
|
+
e.some((e) => e.isIntersecting) && (L(), W?.disconnect());
|
|
711
|
+
}, { threshold: .01 }), N.value && W.observe(N.value)) : o.appear === "visible" && L();
|
|
712
712
|
}), l(() => {
|
|
713
|
-
|
|
713
|
+
P !== null && cancelAnimationFrame(P), W?.disconnect(), H?.disconnect(), O.stop();
|
|
714
714
|
}), _(() => o.animation, () => {
|
|
715
715
|
M.value = !1, k.value = !1;
|
|
716
716
|
});
|
|
717
|
-
let
|
|
717
|
+
let ee = {
|
|
718
718
|
"source-over": "normal",
|
|
719
719
|
multiply: "multiply",
|
|
720
720
|
darken: "darken",
|
|
721
721
|
screen: "screen"
|
|
722
722
|
};
|
|
723
|
-
function
|
|
723
|
+
function G(e) {
|
|
724
724
|
return {
|
|
725
|
-
mixBlendMode:
|
|
726
|
-
transition:
|
|
725
|
+
mixBlendMode: ee[e],
|
|
726
|
+
transition: F.value
|
|
727
727
|
};
|
|
728
728
|
}
|
|
729
729
|
return (t, r) => (d(), a("span", {
|
|
@@ -759,10 +759,10 @@ var Ce = [
|
|
|
759
759
|
"stroke-linecap": e.cap ?? "round",
|
|
760
760
|
"stroke-linejoin": "round",
|
|
761
761
|
filter: h(C).filterId ? `url(#${h(C).filterId})` : void 0,
|
|
762
|
-
style: c(
|
|
763
|
-
onTransitionend:
|
|
762
|
+
style: c(G(e.blend)),
|
|
763
|
+
onTransitionend: R
|
|
764
764
|
}, null, 46, Ee))), 128))], 8, we))], 8, Ce));
|
|
765
765
|
}
|
|
766
|
-
}), [["__scopeId", "data-v-
|
|
766
|
+
}), [["__scopeId", "data-v-1097f080"]]);
|
|
767
767
|
//#endregion
|
|
768
|
-
export { T as BRUSHES, De as HandMark,
|
|
768
|
+
export { T as BRUSHES, De as HandMark, A as UNDERLINE_GAP, k as VB_H, O as VB_W, B as boilLines, le as getStroke, se as getStrokePoints, ue as getSvgPathFromStroke, de as grainFilter, $ as hasGrain, ye as ink, D as lerpBrush, R as naturalUnderlinePoints, xe as normalizeProps, E as resolveBrush, V as serialize, z as shapeGeom, Se as useHandMark };
|
package/dist/header-ribbon.js
CHANGED
|
@@ -4,60 +4,71 @@ import { computed as t, createCommentVNode as n, createElementBlock as r, create
|
|
|
4
4
|
var d = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "pointer-events-auto shrink-0 mr-2"
|
|
7
|
-
}, f = /* @__PURE__ */ e(/* @__PURE__ */ a({
|
|
7
|
+
}, f = ["inert"], p = ["inert"], m = /* @__PURE__ */ e(/* @__PURE__ */ a({
|
|
8
8
|
__name: "HeaderRibbon",
|
|
9
9
|
props: {
|
|
10
10
|
placement: { default: "left" },
|
|
11
11
|
hideTimeoutMs: { default: 2e3 }
|
|
12
12
|
},
|
|
13
13
|
setup(e, { expose: a }) {
|
|
14
|
-
let
|
|
15
|
-
function
|
|
16
|
-
|
|
14
|
+
let m = e, h = l(!1), g = l(!1), _ = l(!1), v = l(!1), y = l(!1), b, x = t(() => h.value || g.value);
|
|
15
|
+
function S() {
|
|
16
|
+
b != null && (clearTimeout(b), b = void 0);
|
|
17
17
|
}
|
|
18
|
-
function
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
},
|
|
18
|
+
function C() {
|
|
19
|
+
v.value || y.value || (S(), b = setTimeout(() => {
|
|
20
|
+
h.value = !1;
|
|
21
|
+
}, m.hideTimeoutMs));
|
|
22
22
|
}
|
|
23
|
-
function
|
|
24
|
-
|
|
23
|
+
function w() {
|
|
24
|
+
v.value = !0, S(), h.value = !0;
|
|
25
25
|
}
|
|
26
|
-
function
|
|
27
|
-
|
|
26
|
+
function T() {
|
|
27
|
+
v.value = !1, g.value || C();
|
|
28
28
|
}
|
|
29
|
-
function
|
|
30
|
-
|
|
29
|
+
function E() {
|
|
30
|
+
y.value = !0, S(), h.value = !0;
|
|
31
|
+
}
|
|
32
|
+
function D(e) {
|
|
33
|
+
let t = e.currentTarget;
|
|
34
|
+
e.relatedTarget instanceof Node && t.contains(e.relatedTarget) || (y.value = !1, g.value || C());
|
|
35
|
+
}
|
|
36
|
+
function O() {
|
|
37
|
+
g.value ? (g.value = !1, _.value = !1, C()) : (g.value = !0, h.value = !0, _.value = !0, S());
|
|
31
38
|
}
|
|
32
|
-
return s(
|
|
33
|
-
isPinned:
|
|
34
|
-
isExpanded:
|
|
35
|
-
isVisible:
|
|
36
|
-
isToggled:
|
|
39
|
+
return s(S), a({
|
|
40
|
+
isPinned: g,
|
|
41
|
+
isExpanded: h,
|
|
42
|
+
isVisible: x,
|
|
43
|
+
isToggled: _
|
|
37
44
|
}), (t, a) => (c(), r("div", {
|
|
38
45
|
class: o(["fixed z-dock pointer-events-none w-fit flex items-center px-4 pt-4 pb-2", e.placement === "left" ? "top-0 left-0" : "top-0 right-0"]),
|
|
39
|
-
onMouseleave:
|
|
46
|
+
onMouseleave: T,
|
|
47
|
+
onFocusin: E,
|
|
48
|
+
onFocusout: D
|
|
40
49
|
}, [t.$slots.left ? (c(), r("div", d, [u(t.$slots, "left", {}, void 0, !0)])) : n("", !0), i("div", {
|
|
41
50
|
class: "pointer-events-auto flex items-center h-6",
|
|
42
|
-
onMouseenter:
|
|
51
|
+
onMouseenter: w
|
|
43
52
|
}, [
|
|
44
53
|
e.placement === "right" ? (c(), r("div", {
|
|
45
54
|
key: 0,
|
|
46
|
-
class: o(["header-items-wrapper header-items-right flex items-center gap-3",
|
|
47
|
-
|
|
55
|
+
class: o(["header-items-wrapper header-items-right flex items-center gap-3", x.value ? "" : "header-collapsed-right"]),
|
|
56
|
+
inert: !x.value || void 0
|
|
57
|
+
}, [u(t.$slots, "items", {}, void 0, !0)], 10, f)) : n("", !0),
|
|
48
58
|
i("div", {
|
|
49
59
|
class: "shrink-0",
|
|
50
|
-
onClick:
|
|
60
|
+
onClick: O
|
|
51
61
|
}, [u(t.$slots, "anchor", {
|
|
52
|
-
pinned:
|
|
53
|
-
toggled:
|
|
62
|
+
pinned: g.value,
|
|
63
|
+
toggled: _.value
|
|
54
64
|
}, void 0, !0)]),
|
|
55
65
|
e.placement === "left" ? (c(), r("div", {
|
|
56
66
|
key: 1,
|
|
57
|
-
class: o(["header-items-wrapper header-items-left flex items-center gap-3",
|
|
58
|
-
|
|
67
|
+
class: o(["header-items-wrapper header-items-left flex items-center gap-3", x.value ? "" : "header-collapsed-left"]),
|
|
68
|
+
inert: !x.value || void 0
|
|
69
|
+
}, [u(t.$slots, "items", {}, void 0, !0)], 10, p)) : n("", !0)
|
|
59
70
|
], 32)], 34));
|
|
60
71
|
}
|
|
61
|
-
}), [["__scopeId", "data-v-
|
|
72
|
+
}), [["__scopeId", "data-v-711f1018"]]);
|
|
62
73
|
//#endregion
|
|
63
|
-
export {
|
|
74
|
+
export { m as HeaderRibbon };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./class-names-5jotTFzp.js";
|
|
2
|
-
import { t } from "./vReveal-
|
|
2
|
+
import { t } from "./vReveal-DZfWl9XI.js";
|
|
3
3
|
import { computed as n, createBlock as r, createElementBlock as i, defineComponent as a, normalizeClass as o, normalizeStyle as s, openBlock as c, resolveDynamicComponent as l, unref as u, withDirectives as d } from "vue";
|
|
4
4
|
//#region src/components/icon-chip/IconChip.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var f = ["data-duotone", "data-surface"], p = 48, m = 22, h = /* @__PURE__ */ a({
|
package/dist/icon-chip.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./
|
|
1
|
+
import { t as e } from "./icon-chip-BWuxz1-u.js";
|
|
2
2
|
export { e as IconChip };
|
|
@@ -1,4 +1,4 @@
|
|
|
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
|
import { createBlock as i, createTextVNode as a, createVNode as o, defineComponent as s, openBlock as c, renderSlot as l, toDisplayString as u, unref as d, withCtx as f } from "vue";
|
|
3
3
|
//#endregion
|
|
4
4
|
//#region src/components/icon-tooltip/IconTooltip.vue
|
package/dist/icon-tooltip.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./
|
|
1
|
+
import { t as e } from "./icon-tooltip-CO6rw0dZ.js";
|
|
2
2
|
export { e as IconTooltip };
|
package/dist/index.d.ts
CHANGED
|
@@ -16,7 +16,6 @@ export * from "./components/number-field";
|
|
|
16
16
|
export * from "./components/popover";
|
|
17
17
|
export * from "./components/progress";
|
|
18
18
|
export * from "./components/radio-group";
|
|
19
|
-
export * from "./components/section";
|
|
20
19
|
export * from "./components/select";
|
|
21
20
|
export * from "./components/separator";
|
|
22
21
|
export * from "./components/skeleton";
|
package/dist/infinite-scroll.js
CHANGED
|
@@ -1,33 +1,35 @@
|
|
|
1
1
|
import { createCommentVNode as e, createElementBlock as t, createElementVNode as n, defineComponent as r, onScopeDispose as i, openBlock as a, ref as o, renderSlot as s, toRef as c, toValue as l, watch as u } from "vue";
|
|
2
2
|
//#region src/components/infinite-scroll/composables/useInfiniteScroll.ts
|
|
3
3
|
function d(e) {
|
|
4
|
-
let { threshold: t = 200, hasMore: n, isLoading: r, onLoadMore: a } = e, s = o(null), c = null;
|
|
5
|
-
function
|
|
4
|
+
let { threshold: t = 200, hasMore: n, isLoading: r, onLoadMore: a } = e, s = o(null), c = null, d = 0;
|
|
5
|
+
function f() {
|
|
6
6
|
return l(n) && !l(r);
|
|
7
7
|
}
|
|
8
|
-
function
|
|
9
|
-
for (let t of e) t.isIntersecting &&
|
|
8
|
+
function p(e) {
|
|
9
|
+
for (let t of e) t.isIntersecting && f() && a();
|
|
10
10
|
}
|
|
11
|
-
function
|
|
12
|
-
|
|
11
|
+
function m(n) {
|
|
12
|
+
h(), c = new IntersectionObserver(p, {
|
|
13
13
|
root: e.scrollContainer?.value ?? null,
|
|
14
14
|
rootMargin: `0px 0px ${t}px 0px`
|
|
15
15
|
}), c.observe(n);
|
|
16
16
|
}
|
|
17
|
-
function m() {
|
|
18
|
-
c &&= (c.disconnect(), null);
|
|
19
|
-
}
|
|
20
17
|
function h() {
|
|
21
|
-
|
|
18
|
+
c &&= (c.disconnect(), null), d &&= (cancelAnimationFrame(d), 0);
|
|
19
|
+
}
|
|
20
|
+
function g() {
|
|
21
|
+
s.value && f() && a();
|
|
22
22
|
}
|
|
23
23
|
return u(s, (e) => {
|
|
24
|
-
e ?
|
|
24
|
+
e ? m(e) : h();
|
|
25
25
|
}), u(() => l(r), (e) => {
|
|
26
|
-
!e && s.value && requestAnimationFrame(
|
|
27
|
-
|
|
26
|
+
!e && s.value && (d && cancelAnimationFrame(d), d = requestAnimationFrame(() => {
|
|
27
|
+
d = 0, g();
|
|
28
|
+
}));
|
|
29
|
+
}), i(h), {
|
|
28
30
|
sentinelRef: s,
|
|
29
|
-
check:
|
|
30
|
-
stop:
|
|
31
|
+
check: g,
|
|
32
|
+
stop: h
|
|
31
33
|
};
|
|
32
34
|
}
|
|
33
35
|
//#endregion
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./
|
|
1
|
+
import { n as e, t } from "./instrument-chassis-Cvstg4_U.js";
|
|
2
2
|
export { e as ChassisDivider, t as InstrumentChassis };
|