@mkbabb/glass-ui 4.0.1 → 4.2.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/dist/{CardAction-CW7a0m8M.js → CardAction-DlVP2evz.js} +72 -53
- package/dist/{CommandShortcut-DvZNQ_HF.js → CommandShortcut-By-VQcLO.js} +25 -14
- package/dist/{ConfiguratorRow-BR4l-ixA.js → ConfiguratorRow-YMXdINHx.js} +14 -14
- package/dist/ContextMenuContent-CMWn6huB.js +90 -0
- package/dist/{ContextMenuSubContent-xol4sD2q.js → ContextMenuSubContent-DvwWCUc0.js} +16 -16
- package/dist/{DataTable-CuKwF7wr.js → DataTable-C4tG3eIJ.js} +4 -4
- package/dist/DialogContent-D8U9ZfWS.js +121 -0
- package/dist/DialogFooter-DoLy0ewI.js +80 -0
- package/dist/DialogScrollContent-BMekN7gq.js +93 -0
- package/dist/{FadingScroll-DI6hQhT9.js → FadingScroll-P8B30rAD.js} +1 -1
- package/dist/HoverCardContent-DAmGYglo.js +88 -0
- package/dist/{HoverPopover-CbqbNwgU.js → HoverPopover-DYpBOzzF.js} +1 -1
- package/dist/{IconChip-BTD-nay5.js → IconChip-CQa7XZYc.js} +7 -5
- package/dist/{IconTooltip-Bl8gFZ8d.js → IconTooltip-_df8M3xm.js} +1 -1
- package/dist/Input-CyU4_hIC.js +57 -0
- package/dist/{MetricBadge-RHdBP72w.js → MetricBadge-DQt_dGah.js} +1 -1
- package/dist/{Notification-VUwexFUf.js → Notification-BlSPJhtZ.js} +4 -4
- package/dist/NumberFieldContent-Z3VxGu_6.js +140 -0
- package/dist/PagerDots-CYlqVFd4.js +196 -0
- package/dist/PaperBackdrop-DYWgrnh8.js +42 -0
- package/dist/{PopoverContent-DL7E6vJP.js → PopoverContent-BuKyHZSz.js} +2 -2
- package/dist/{Progress-DctG61iZ.js → Progress-C9SsdwIZ.js} +1 -1
- package/dist/{ScrollingText-yOpBzFYq.js → ScrollingText-DY3W1Jfh.js} +2 -2
- package/dist/SelectScrollDownButton-3mFHX_R-.js +260 -0
- package/dist/{SelectSeparator-DXswVdRz.js → SelectSeparator-CNRGG7Ew.js} +1 -1
- package/dist/Separator-Cf9-JFgi.js +44 -0
- package/dist/Switch-uf-UKPA2.js +49 -0
- package/dist/{Toaster-Bw4xR8xV.js → Toaster-ozrsR4mP.js} +2 -2
- package/dist/{ToggleGroupItem-pEM9vIhs.js → ToggleGroupItem-BpzaVzNm.js} +6 -6
- package/dist/TooltipProvider-QQVM_80r.js +109 -0
- package/dist/animated-digit.js +2 -2
- package/dist/api/index.d.ts +16 -32
- package/dist/api/types-extra.d.ts +33 -0
- package/dist/api.js +2 -2
- package/dist/aurora.js +629 -269
- package/dist/badge-Bt14yURi.js +72 -0
- package/dist/badge.js +1 -1
- package/dist/border-progress.js +49 -57
- package/dist/button-D1W9PrzI.js +130 -0
- package/dist/button.js +1 -1
- package/dist/canvas.js +2 -3
- package/dist/card.js +1 -1
- package/dist/carousel.js +235 -106
- package/dist/chipVariants-BJQ0I2kB.js +18 -0
- package/dist/collapsible.js +1 -1
- package/dist/color-B9jZdhJX.js +116 -0
- package/dist/color.js +2 -2
- package/dist/command.js +1 -1
- package/dist/completion-seal.d.ts +1 -0
- package/dist/completion-seal.js +89 -0
- package/dist/components/custom/aurora/Aurora.vue.d.ts +10 -5
- package/dist/components/custom/aurora/composables/color.d.ts +13 -0
- package/dist/components/custom/aurora/composables/frameLoop.d.ts +9 -0
- package/dist/components/custom/aurora/composables/glSetup.d.ts +1 -1
- package/dist/components/custom/aurora/composables/runtime.d.ts +12 -0
- package/dist/components/custom/aurora/composables/uniformBridgeWGPU.d.ts +12 -3
- package/dist/components/custom/aurora/composables/wgpuSetup.d.ts +8 -0
- package/dist/components/custom/aurora/constants/presets.d.ts +47 -0
- package/dist/components/custom/aurora/constants/renderMode.d.ts +16 -8
- package/dist/components/custom/aurora/constants/shaders/aurora-mediums.wgsl.d.ts +1 -0
- package/dist/components/custom/aurora/constants/shaders/aurora.wgsl.d.ts +1 -1
- package/dist/components/custom/aurora/index.d.ts +1 -1
- package/dist/components/custom/border-progress/composables/spectrum-walk.d.ts +25 -0
- package/dist/components/custom/border-progress/composables/useBorderSpectrum.d.ts +14 -18
- package/dist/components/custom/border-progress/index.d.ts +1 -1
- package/dist/components/custom/completion-seal/CompletionSeal.vue.d.ts +21 -0
- package/dist/components/custom/completion-seal/composables/useCompletionSeal.d.ts +37 -0
- package/dist/components/custom/completion-seal/constants.d.ts +46 -0
- package/dist/components/custom/completion-seal/index.d.ts +4 -0
- package/dist/components/custom/concentric/Concentric.vue.d.ts +15 -12
- package/dist/components/custom/concentric/composables/concentricGLSetup.d.ts +12 -0
- package/dist/components/custom/concentric/composables/concentricWGPUSetup.d.ts +13 -0
- package/dist/components/custom/concentric/composables/levelField.d.ts +50 -0
- package/dist/components/custom/concentric/composables/uniformBridgeWGPU.d.ts +7 -3
- package/dist/components/custom/concentric/composables/useConcentric.d.ts +3 -3
- package/dist/components/custom/concentric/constants.d.ts +69 -24
- package/dist/components/custom/concentric/index.d.ts +2 -2
- package/dist/components/custom/concentric/shaders/concentric.glsl.d.ts +2 -2
- package/dist/components/custom/concentric/shaders/concentric.wgsl.d.ts +1 -1
- package/dist/components/custom/configurator/Configurator.vue.d.ts +23 -2
- package/dist/components/custom/configurator/index.d.ts +1 -1
- package/dist/components/custom/confirm-dialog/ConfirmDialog.vue.d.ts +3 -3
- package/dist/components/custom/constellation/Constellation.vue.d.ts +5 -4
- package/dist/components/custom/constellation/composables/constellationGLSetup.d.ts +10 -0
- package/dist/components/custom/constellation/composables/constellationWGPUSetup.d.ts +19 -0
- package/dist/components/custom/constellation/composables/uniformBridgeWGPU.d.ts +66 -0
- package/dist/components/custom/constellation/composables/useConstellation.d.ts +3 -10
- package/dist/components/custom/constellation/constants.d.ts +33 -0
- package/dist/components/custom/constellation/constellationField.d.ts +31 -1
- package/dist/components/custom/constellation/constellationInteraction.d.ts +23 -14
- package/dist/components/custom/constellation/constellationRender.d.ts +25 -0
- package/dist/components/custom/constellation/constellationTypes.d.ts +38 -0
- package/dist/components/custom/constellation/constellationWell.d.ts +15 -0
- package/dist/components/custom/constellation/index.d.ts +5 -5
- package/dist/components/custom/constellation/shaders/constellation-lines.glsl.d.ts +2 -0
- package/dist/components/custom/constellation/shaders/constellation-lines.wgsl.d.ts +1 -0
- package/dist/components/custom/constellation/shaders/constellation-points.glsl.d.ts +2 -0
- package/dist/components/custom/constellation/shaders/constellation-points.wgsl.d.ts +1 -0
- package/dist/components/custom/deck/DeckPager.vue.d.ts +29 -0
- package/dist/components/custom/deck/composables/useDeck.d.ts +27 -0
- package/dist/components/custom/deck/composables/useDeckKeyboard.d.ts +25 -0
- package/dist/components/custom/deck/composables/useDeckSpring.d.ts +22 -0
- package/dist/components/custom/deck/constants.d.ts +14 -0
- package/dist/components/custom/deck/index.d.ts +8 -0
- package/dist/components/custom/dock/DockDropdownTrigger.vue.d.ts +4 -3
- package/dist/components/custom/dock/DockIconButton.vue.d.ts +22 -0
- package/dist/components/custom/dock/DockPopoverTrigger.vue.d.ts +19 -0
- package/dist/components/custom/dock/DockStack.vue.d.ts +78 -0
- package/dist/components/custom/dock/GlassDock.vue.d.ts +21 -3
- package/dist/components/custom/dock/composables/dockMorphContext.d.ts +18 -32
- package/dist/components/custom/dock/composables/dockMorphMeasure.d.ts +78 -67
- package/dist/components/custom/dock/composables/index.d.ts +3 -0
- package/dist/components/custom/dock/composables/railProjection.d.ts +45 -0
- package/dist/components/custom/dock/composables/useDockContextSilhouette.d.ts +192 -0
- package/dist/components/custom/dock/composables/useDockFission.d.ts +158 -0
- package/dist/components/custom/dock/composables/useDockItemDrag.d.ts +18 -0
- package/dist/components/custom/dock/composables/useDockSearch.d.ts +85 -0
- package/dist/components/custom/dock/composables/useDockShellProps.d.ts +49 -0
- package/dist/components/custom/dock/constants.d.ts +32 -17
- package/dist/components/custom/dock/index.d.ts +8 -2
- package/dist/components/custom/dot-flow-field/DotFlowField.vue.d.ts +15 -11
- package/dist/components/custom/dot-flow-field/composables/flowField.d.ts +69 -6
- package/dist/components/custom/dot-flow-field/composables/flowGLProgram.d.ts +8 -0
- package/dist/components/custom/dot-flow-field/composables/flowSetupGL.d.ts +9 -0
- package/dist/components/custom/dot-flow-field/composables/flowSetupGLFlow.d.ts +12 -0
- package/dist/components/custom/dot-flow-field/composables/flowSetupWGPU.d.ts +7 -0
- package/dist/components/custom/dot-flow-field/composables/uniformBridgeWGPU.d.ts +50 -9
- package/dist/components/custom/dot-flow-field/composables/useDotFlowField.d.ts +6 -5
- package/dist/components/custom/dot-flow-field/composables/useFlowParticles.d.ts +23 -9
- package/dist/components/custom/dot-flow-field/constants.d.ts +92 -20
- package/dist/components/custom/dot-flow-field/index.d.ts +2 -2
- package/dist/components/custom/dot-flow-field/shaders/flow-field.compute.wgsl.d.ts +1 -1
- package/dist/components/custom/dot-flow-field/shaders/flow-field.glsl.d.ts +31 -18
- package/dist/components/custom/dot-flow-field/shaders/flow-field.render.wgsl.d.ts +2 -1
- package/dist/components/custom/dot-matrix/DotMatrix.vue.d.ts +43 -0
- package/dist/components/custom/dot-matrix/composables/dotMatrixField.d.ts +89 -0
- package/dist/components/custom/dot-matrix/composables/uniformBridgeWGPU.d.ts +61 -0
- package/dist/components/custom/dot-matrix/composables/useDotMatrix.d.ts +34 -0
- package/dist/components/custom/dot-matrix/composables/useDotSphere.d.ts +34 -0
- package/dist/components/custom/dot-matrix/constants.d.ts +72 -0
- package/dist/components/custom/dot-matrix/index.d.ts +5 -0
- package/dist/components/custom/dot-matrix/shaders/dot-matrix.glsl.d.ts +4 -0
- package/dist/components/custom/dot-matrix/shaders/dot-matrix.wgsl.d.ts +1 -0
- package/dist/components/custom/easing/EasingPicker.vue.d.ts +2 -2
- package/dist/components/custom/easing/composables/useEasingPicker.d.ts +5 -0
- package/dist/components/custom/expandable-container/ExpandableContainer.vue.d.ts +11 -0
- package/dist/components/custom/fourier-field/FourierField.vue.d.ts +44 -47
- package/dist/components/custom/fourier-field/composables/fourierFieldGLSetup.d.ts +24 -0
- package/dist/components/custom/fourier-field/composables/fourierFieldWGPUSetup.d.ts +31 -0
- package/dist/components/custom/fourier-field/composables/uniformBridgeWGPU.d.ts +56 -0
- package/dist/components/custom/fourier-field/composables/useFourierField.d.ts +61 -37
- package/dist/components/custom/fourier-field/constants.d.ts +114 -4
- package/dist/components/custom/fourier-field/index.d.ts +23 -18
- package/dist/components/custom/fourier-field/shaders/fourier-field.compute.wgsl.d.ts +1 -0
- package/dist/components/custom/fourier-field/shaders/fourier-field.glsl.d.ts +4 -0
- package/dist/components/custom/fourier-field/shaders/fourier-field.render.wgsl.d.ts +1 -0
- package/dist/components/custom/goo-blob/GooBlob.vue.d.ts +9 -1
- package/dist/components/custom/goo-blob/composables/easing.d.ts +1 -0
- package/dist/components/custom/goo-blob/composables/useBlobSatellites.d.ts +1 -0
- package/dist/components/custom/goo-blob/constants.d.ts +26 -1
- package/dist/components/custom/goo-blob/index.d.ts +1 -1
- package/dist/components/custom/goo-blob/shaders/metaball-noise.wgsl.d.ts +1 -0
- package/dist/components/custom/goo-blob/shaders/metaball-palette.wgsl.d.ts +1 -0
- package/dist/components/custom/goo-blob/shaders/metaball-uniforms.glsl.d.ts +1 -1
- package/dist/components/custom/goo-blob/shaders/metaball.wgsl.d.ts +1 -1
- package/dist/components/custom/goo-blob/types.d.ts +86 -1
- package/dist/components/custom/goo-dot-matrix/GooDotMatrix.vue.d.ts +49 -0
- package/dist/components/custom/goo-dot-matrix/composables/gooDotLattice.d.ts +24 -0
- package/dist/components/custom/goo-dot-matrix/composables/gooDotSetup.d.ts +79 -0
- package/dist/components/custom/goo-dot-matrix/composables/uniformBridgeWGPU.d.ts +45 -0
- package/dist/components/custom/goo-dot-matrix/composables/useGooDotMatrix.d.ts +31 -0
- package/dist/components/custom/goo-dot-matrix/constants.d.ts +115 -0
- package/dist/components/custom/goo-dot-matrix/index.d.ts +5 -0
- package/dist/components/custom/goo-dot-matrix/shaders/goo-dot.frag.d.ts +13 -0
- package/dist/components/custom/goo-dot-matrix/shaders/goo-dot.wgsl.d.ts +4 -0
- package/dist/components/custom/goo-filter/GooFilter.vue.d.ts +22 -0
- package/dist/components/custom/goo-filter/index.d.ts +1 -0
- package/dist/components/custom/handmark/brush.d.ts +17 -17
- package/dist/components/custom/handmark/constants.d.ts +28 -8
- package/dist/components/custom/handmark/geometry.d.ts +34 -1
- package/dist/components/custom/handmark/index.d.ts +1 -1
- package/dist/components/custom/icon-chip/types.d.ts +10 -0
- package/dist/components/custom/labeled-field/LabeledField.vue.d.ts +21 -2
- package/dist/components/custom/metric-stack/MetricRow.vue.d.ts +15 -0
- package/dist/components/custom/pager-dots/PagerDots.vue.d.ts +9 -0
- package/dist/components/custom/pager-dots/index.d.ts +2 -0
- package/dist/components/custom/pager-dots/pagerWindow.d.ts +9 -0
- package/dist/components/custom/paper-backdrop/PaperBackdrop.vue.d.ts +18 -0
- package/dist/components/custom/paper-grid/PaperGrid.vue.d.ts +42 -0
- package/dist/components/custom/paper-grid/composables/paperGrid.d.ts +105 -0
- package/dist/components/custom/paper-grid/composables/paperGridGLSetup.d.ts +18 -0
- package/dist/components/custom/paper-grid/composables/paperGridWGPUSetup.d.ts +21 -0
- package/dist/components/custom/paper-grid/composables/uniformBridgeWGPU.d.ts +16 -0
- package/dist/components/custom/paper-grid/composables/usePaperGrid.d.ts +31 -0
- package/dist/components/custom/paper-grid/constants.d.ts +95 -0
- package/dist/components/custom/paper-grid/index.d.ts +5 -0
- package/dist/components/custom/paper-grid/shaders/paper-grid.glsl.d.ts +4 -0
- package/dist/components/custom/paper-grid/shaders/paper-grid.wgsl.d.ts +1 -0
- package/dist/components/custom/search/FuzzySearch.vue.d.ts +8 -2
- package/dist/components/custom/search/SearchBar.vue.d.ts +8 -0
- package/dist/components/custom/search/index.d.ts +2 -0
- package/dist/components/custom/search/searchVariants.d.ts +19 -0
- package/dist/components/custom/selectable-chip/SelectableChip.vue.d.ts +50 -0
- package/dist/components/custom/selectable-chip/chipVariants.d.ts +39 -0
- package/dist/components/custom/selectable-chip/index.d.ts +2 -0
- package/dist/components/custom/selectable-chip/selectableChipVariants.d.ts +15 -0
- package/dist/components/custom/split-chars/SplitChars.vue.d.ts +39 -0
- package/dist/components/custom/split-chars/index.d.ts +1 -0
- package/dist/components/custom/tabs/SegmentedTabs.vue.d.ts +8 -6
- package/dist/components/custom/tabs/constants.d.ts +28 -2
- package/dist/components/custom/timeline/ScrubberTimeline.vue.d.ts +16 -0
- package/dist/components/custom/timeline/geometry.d.ts +0 -8
- package/dist/components/custom/toggle-chip/index.d.ts +15 -4
- package/dist/components/custom/watercolor-dot/WatercolorDot.vue.d.ts +32 -17
- package/dist/components/custom/watercolor-dot/useWatercolorBlob.d.ts +10 -5
- package/dist/components/ui/_shared/index.d.ts +2 -0
- package/dist/components/ui/_shared/useControlSize.d.ts +46 -0
- package/dist/components/ui/_shared/useSurfaceAxis.d.ts +17 -3
- package/dist/components/ui/badge/Badge.vue.d.ts +14 -0
- package/dist/components/ui/badge/index.d.ts +1 -0
- package/dist/components/ui/button/Button.vue.d.ts +1 -0
- package/dist/components/ui/button/index.d.ts +1 -1
- package/dist/components/ui/card/Card.vue.d.ts +46 -1
- package/dist/components/ui/card/ScrollCard.vue.d.ts +1 -1
- package/dist/components/ui/card/index.d.ts +1 -1
- package/dist/components/ui/carousel/CarouselContent.vue.d.ts +2 -4
- package/dist/components/ui/carousel/CarouselNext.vue.d.ts +1 -1
- package/dist/components/ui/carousel/CarouselPrevious.vue.d.ts +1 -1
- package/dist/components/ui/command/CommandDialog.vue.d.ts +9 -3
- package/dist/components/ui/command/CommandList.vue.d.ts +3 -0
- package/dist/components/ui/context-menu/ContextMenuContent.vue.d.ts +5 -1
- package/dist/components/ui/dialog/DialogContent.vue.d.ts +9 -0
- package/dist/components/ui/drawer/Drawer.vue.d.ts +33 -14
- package/dist/components/ui/drawer/constants.d.ts +8 -6
- package/dist/components/ui/drawer/index.d.ts +12 -2
- package/dist/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +4 -0
- package/dist/components/ui/hover-card/HoverCardContent.vue.d.ts +3 -0
- package/dist/components/ui/input/Input.vue.d.ts +3 -0
- package/dist/components/ui/number-field/NumberFieldInput.vue.d.ts +6 -1
- package/dist/components/ui/select/SelectContent.vue.d.ts +12 -0
- package/dist/components/ui/slider/Slider.vue.d.ts +9 -0
- package/dist/components/ui/switch/Switch.vue.d.ts +2 -0
- package/dist/components/ui/textarea/Textarea.vue.d.ts +3 -0
- package/dist/components/ui/tooltip/TooltipContent.vue.d.ts +3 -0
- package/dist/composables/color/index.d.ts +2 -0
- package/dist/composables/color/useAccentTone.d.ts +34 -0
- package/dist/composables/dom/index.d.ts +1 -0
- package/dist/composables/dom/useDragVelocity.d.ts +46 -0
- package/dist/composables/glass/useVizChoreography.d.ts +123 -0
- package/dist/composables/glass/wave/index.d.ts +4 -0
- package/dist/composables/glass/wave/waveField.d.ts +115 -0
- package/dist/composables/glass/wave/waveField.glsl.d.ts +1 -0
- package/dist/composables/glass/wave/waveField.wgsl.d.ts +1 -0
- package/dist/composables/glass/webgl/createCanvasLifecycle.d.ts +105 -2
- package/dist/composables/glass/webgl/shaders/flow.wgsl.d.ts +1 -0
- package/dist/composables/glass/webgl/useWebGLCanvas.d.ts +40 -2
- package/dist/composables/glass/webgpu/index.d.ts +2 -1
- package/dist/composables/glass/webgpu/useGpuSubstrate.d.ts +65 -7
- package/dist/composables/glass/webgpu/useWebGPUCanvas.d.ts +50 -2
- package/dist/composables/glass/webgpu/webgpuDevice.d.ts +42 -0
- package/dist/composables/motion/core/index.d.ts +7 -0
- package/dist/composables/motion/core/useHaptic.d.ts +48 -0
- package/dist/composables/motion/core/writeVelocityWeight.d.ts +31 -0
- package/dist/composables/motion/index.d.ts +2 -0
- package/dist/composables/motion/scrollReader.d.ts +25 -0
- package/dist/composables/motion/springPresets.d.ts +19 -1
- package/dist/composables/motion/suite.d.ts +2 -2
- package/dist/composables/motion/useBloomUp.d.ts +97 -0
- package/dist/composables/motion/useCelebrationBurst.d.ts +50 -0
- package/dist/composables/motion/useCharStagger.d.ts +44 -0
- package/dist/composables/motion/useDockCtaReceive.d.ts +29 -22
- package/dist/composables/motion/useGooMorph.d.ts +72 -0
- package/dist/composables/motion/useLiquidFlex.d.ts +18 -0
- package/dist/composables/motion/useLiquidMorph.d.ts +108 -0
- package/dist/composables/motion/useLiquidPress.d.ts +12 -0
- package/dist/composables/motion/useLiquidReveal.d.ts +7 -4
- package/dist/composables/motion/useMorphField.d.ts +157 -0
- package/dist/composables/motion/useScrollChrome.d.ts +58 -0
- package/dist/composables/motion/useScrollPin.d.ts +49 -0
- package/dist/composables/motion/useScrollScene.d.ts +67 -0
- package/dist/composables/motion/useScrollTrigger.d.ts +67 -0
- package/dist/composables/motion/useSpringPress.d.ts +5 -5
- package/dist/composables/motion/useStaggerReveal.d.ts +24 -0
- package/dist/composables/sidebar/index.d.ts +4 -1
- package/dist/composables/sidebar/types.d.ts +68 -3
- package/dist/composables/sidebar/useClickDelegate.d.ts +4 -0
- package/dist/composables/sidebar/useLazyLoader.d.ts +5 -0
- package/dist/composables/sidebar/useScrollTo.d.ts +5 -0
- package/dist/composables/virtual/index.d.ts +4 -0
- package/dist/composables/virtual/useVirtualSectionWindow.d.ts +72 -0
- package/dist/composables/virtual/useWindowedStore.d.ts +43 -0
- package/dist/composables/virtual/virtualSectionLayout.d.ts +103 -0
- package/dist/concentric.js +552 -309
- package/dist/configurator.js +2 -2
- package/dist/confirm-dialog.js +62 -47
- package/dist/constellation.js +635 -235
- package/dist/context-menu.js +2 -2
- package/dist/controls.js +2 -2
- package/dist/createCanvasLifecycle-CuCrGRfq.js +173 -0
- package/dist/dark.js +1 -1
- package/dist/data-table.js +1 -1
- package/dist/deck.d.ts +1 -0
- package/dist/deck.js +105 -0
- package/dist/dialog.js +4 -3
- package/dist/dock.js +1320 -631
- package/dist/dockContext-gFVS2gMg.js +18 -0
- package/dist/dom.js +7 -6
- package/dist/dot-flow-field.js +1268 -387
- package/dist/dot-matrix.d.ts +1 -0
- package/dist/dot-matrix.js +774 -0
- package/dist/dotMatrixField-CRO0ZFk4.js +48 -0
- package/dist/drawer.js +106 -96
- package/dist/{dropdown-menu-CofSZuk8.js → dropdown-menu-CCfcCQ68.js} +83 -79
- package/dist/dropdown-menu.js +1 -1
- package/dist/easing.js +188 -176
- package/dist/expandable-container.js +43 -21
- package/dist/fading-scroll.js +1 -1
- package/dist/flow.glsl-DqEGRpl4.js +4 -0
- package/dist/forms.js +64 -62
- package/dist/fourier-field.js +1069 -178
- package/dist/fourier-math.js +1 -1
- package/dist/glass-panel.js +2 -2
- package/dist/glass-ui.css +1 -1
- package/dist/glass-ui.js +164 -119
- package/dist/goo-blob.js +175 -1230
- package/dist/goo-dot-matrix.d.ts +1 -0
- package/dist/goo-dot-matrix.js +811 -0
- package/dist/handmark.js +137 -94
- package/dist/header-ribbon.js +1 -1
- package/dist/hover-card.js +1 -1
- package/dist/hover-popover.js +1 -1
- package/dist/icon-chip.js +1 -1
- package/dist/icon-tooltip.js +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/instrument-chassis.js +1 -1
- package/dist/keyboard.js +1 -1
- package/dist/label.js +1 -1
- package/dist/labeled-field.js +70 -60
- package/dist/metric-badge.js +1 -1
- package/dist/metric-cell.js +1 -1
- package/dist/metric-stack.js +12 -3
- package/dist/motion-core.js +59 -34
- package/dist/motion-curves.js +30 -14
- package/dist/motion.js +231 -96
- package/dist/notification.js +1 -1
- package/dist/number-field.js +1 -1
- package/dist/pager-dots.js +2 -91
- package/dist/paper-backdrop.js +1 -1
- package/dist/paper-grid.d.ts +1 -0
- package/dist/paper-grid.js +761 -0
- package/dist/paperGrid-CXCSMbZ1.js +191 -0
- package/dist/popover.js +1 -1
- package/dist/{presets-BW2b-fr1.js → presets-QvYgnFIZ.js} +14 -13
- package/dist/{procedural-color.glsl-CIFsJhwI.js → procedural-color.wgsl-C1Y5PkM6.js} +2 -2
- package/dist/progress.js +1 -1
- package/dist/pulse.js +2 -2
- package/dist/reactive.js +2 -2
- package/dist/{useCanvas2D-B8w_E3Rr.js → resolveCanvasColor-DsSJk06I.js} +16 -6
- package/dist/scrollReader-rc3Ns_NM.js +42 -0
- package/dist/scrolling-text.js +1 -1
- package/dist/search.js +162 -306
- package/dist/select.js +3 -3
- package/dist/selectable-chip.d.ts +1 -0
- package/dist/selectable-chip.js +48 -0
- package/dist/separator.js +1 -1
- package/dist/{sheet-tZMg0E0w.js → sheet-DUCIoOe0.js} +4 -4
- package/dist/sheet.js +1 -1
- package/dist/sidebar.js +216 -114
- package/dist/slider-CcICPe3u.js +149 -0
- package/dist/slider.js +1 -1
- package/dist/sortable-list.js +3 -3
- package/dist/spectrum-walk-cBNSx_zm.js +33 -0
- package/dist/springPresets-DfoQ6XRY.js +64 -0
- package/dist/stacked-icons.js +54 -39
- package/dist/styles/animations.css +13 -3
- package/dist/styles/cards.css +271 -2
- package/dist/styles/completion-seal.css +131 -0
- package/dist/styles/components.css +1 -4
- package/dist/styles/configurator.css +221 -1
- package/dist/styles/critical-partition.mjs +66 -11
- package/dist/styles/deferred.css +4 -0
- package/dist/styles/dock/adaptive-legibility.css +119 -0
- package/dist/styles/dock/cta-seat.css +87 -0
- package/dist/styles/dock/density.css +167 -6
- package/dist/styles/dock/fission-bridge.css +552 -0
- package/dist/styles/dock/layers.css +90 -78
- package/dist/styles/dock/morph-bridge.css +67 -18
- package/dist/styles/dock/morph.css +57 -118
- package/dist/styles/dock/overflow.css +12 -0
- package/dist/styles/dock/search.css +68 -0
- package/dist/styles/dock/shape.css +250 -0
- package/dist/styles/dock/shell.css +24 -8
- package/dist/styles/dock/stack-rail.css +352 -0
- package/dist/styles/dock-controls/dark-mode-toggle.css +17 -4
- package/dist/styles/dock-controls/icon-button.css +46 -0
- package/dist/styles/dock-controls/triggers.css +23 -1
- package/dist/styles/dock-controls.css +18 -0
- package/dist/styles/dock.css +27 -2
- package/dist/styles/drawer.css +166 -0
- package/dist/styles/glass/accent-tone.css +66 -0
- package/dist/styles/glass/control-surfaces.css +167 -0
- package/dist/styles/glass/glass-atom.css +244 -0
- package/dist/styles/glass/glass-capsule.css +143 -0
- package/dist/styles/glass/glass-chip.css +215 -0
- package/dist/styles/glass/ladder.css +67 -17
- package/dist/styles/glass/liquid-enter.css +252 -0
- package/dist/styles/glass/liquid-morph.css +850 -0
- package/dist/styles/glass/material.css +70 -1
- package/dist/styles/glass/reveal.css +22 -2
- package/dist/styles/glass/rim.css +31 -9
- package/dist/styles/glass/surfaces.css +81 -150
- package/dist/styles/glass.css +21 -0
- package/dist/styles/icon-chip.css +45 -0
- package/dist/styles/index.css +26 -0
- package/dist/styles/jubilance.css +65 -0
- package/dist/styles/motion/morph-field.css +229 -0
- package/dist/styles/paper.css +230 -14
- package/dist/styles/scroll-choreography.css +135 -78
- package/dist/styles/scroll-chrome.css +123 -0
- package/dist/styles/scroll-driven.css +38 -0
- package/dist/styles/segmented-tabs.css +110 -40
- package/dist/styles/select.css +151 -0
- package/dist/styles/theme/bridges.css +22 -0
- package/dist/styles/theme/radius.css +18 -1
- package/dist/styles/tokens/color-radius.css +14 -4
- package/dist/styles/tokens/dark-arm.css +94 -12
- package/dist/styles/tokens/glass-deep.css +33 -4
- package/dist/styles/tokens/glass-fx.css +122 -1
- package/dist/styles/tokens/glass.css +226 -34
- package/dist/styles/tokens/light-dark.css +3 -3
- package/dist/styles/tokens/offsets.css +27 -0
- package/dist/styles/tokens/property-regs.css +277 -0
- package/dist/styles/tokens/scale-paper.css +86 -30
- package/dist/styles/tokens/scheme-motion.css +106 -133
- package/dist/styles/tokens/scheme-spring.css +239 -0
- package/dist/styles/tokens/scroll-tokens.css +15 -15
- package/dist/styles/tokens/shadow.css +73 -13
- package/dist/styles/tokens/sizing-config.css +110 -0
- package/dist/styles/tokens/sizing.css +55 -104
- package/dist/styles/tokens.css +14 -2
- package/dist/styles/typography/semantic.css +18 -5
- package/dist/styles/utilities/a11y-overrides.css +20 -5
- package/dist/styles/utilities/base-misc.css +52 -0
- package/dist/styles/utilities/btn.css +84 -3
- package/dist/styles/utilities/components.css +31 -6
- package/dist/styles/utilities/metal.css +26 -0
- package/dist/switch.js +1 -1
- package/dist/tabs.js +199 -182
- package/dist/timeline.js +241 -206
- package/dist/toast.js +1 -1
- package/dist/toggle-chip.js +14 -41
- package/dist/toggle-group.js +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/typewriter.js +2 -2
- package/dist/uniformBridgeWGPU-BCse1SHU.js +1268 -0
- package/dist/{useAnimatedNumber-BfUq2bUM.js → useAnimatedNumber-BntskVdQ.js} +1 -1
- package/dist/{useConfiguratorState-DNlOh6c8.js → useConfiguratorState-22BcULzF.js} +41 -38
- package/dist/useControlSize-DAZ062x7.js +9 -0
- package/dist/useDockCtaReceive-DX7RDb6_.js +88 -0
- package/dist/{useDragMorph-DgxnsVJz.js → useDragMorph-DGLSewwB.js} +4 -4
- package/dist/useDragVelocity-CjcfX3dA.js +57 -0
- package/dist/useFuzzySearch-0fTYOhS4.js +177 -0
- package/dist/useGooMorph-Cs13NgYL.js +104 -0
- package/dist/useGpuSubstrate-Ceet70xq.js +347 -0
- package/dist/useHaptic-CPz5BT9I.js +134 -0
- package/dist/{useLiquidFlex-mZPMiNXh.js → useLiquidFlex-Cc6PjVJD.js} +8 -3
- package/dist/useLiquidPress-CtOQ8Z0_.js +43 -0
- package/dist/useMorphField-ogBM7ubT.js +141 -0
- package/dist/usePointerVelocityField-BrkqZFhj.js +91 -0
- package/dist/useScrollChrome-JuImi1DM.js +258 -0
- package/dist/{useSpringMount-q1amq1SJ.js → useSpringMount-DFxtzmkR.js} +1 -1
- package/dist/useSpringPress-VM9RgVq3.js +36 -0
- package/dist/{useSurfaceAxis-g0NloYEF.js → useSurfaceAxis-Ci7Dnaw2.js} +1 -1
- package/dist/{useTouchGate-CBZTD4SD.js → useTouchGate-B1Lf9XqN.js} +1 -1
- package/dist/{vendor-CKmzio-i.js → vendor-B2qOlYY3.js} +24 -11
- package/dist/virtual.d.ts +1 -0
- package/dist/virtual.js +225 -0
- package/dist/watercolor-dot.js +107 -74
- package/dist/writeVelocityWeight-Bh83xZfs.js +19 -0
- package/package.json +140 -9
- package/src/styles/animations.css +13 -3
- package/src/styles/cards.css +271 -2
- package/src/styles/completion-seal.css +131 -0
- package/src/styles/configurator.css +221 -1
- package/src/styles/critical-partition.mjs +66 -11
- package/src/styles/dock/adaptive-legibility.css +119 -0
- package/src/styles/dock/cta-seat.css +87 -0
- package/src/styles/dock/density.css +167 -6
- package/src/styles/dock/fission-bridge.css +552 -0
- package/src/styles/dock/layers.css +90 -78
- package/src/styles/dock/morph-bridge.css +67 -18
- package/src/styles/dock/morph.css +57 -118
- package/src/styles/dock/overflow.css +12 -0
- package/src/styles/dock/search.css +68 -0
- package/src/styles/dock/shape.css +250 -0
- package/src/styles/dock/shell.css +24 -8
- package/src/styles/dock/stack-rail.css +352 -0
- package/src/styles/dock-controls/dark-mode-toggle.css +17 -4
- package/src/styles/dock-controls/icon-button.css +46 -0
- package/src/styles/dock-controls/triggers.css +23 -1
- package/src/styles/dock-controls.css +18 -0
- package/src/styles/dock.css +27 -2
- package/src/styles/drawer.css +164 -0
- package/src/styles/glass/accent-tone.css +66 -0
- package/src/styles/glass/control-surfaces.css +167 -0
- package/src/styles/glass/glass-atom.css +244 -0
- package/src/styles/glass/glass-capsule.css +143 -0
- package/src/styles/glass/glass-chip.css +215 -0
- package/src/styles/glass/ladder.css +67 -17
- package/src/styles/glass/liquid-enter.css +252 -0
- package/src/styles/glass/liquid-morph.css +850 -0
- package/src/styles/glass/material.css +70 -1
- package/src/styles/glass/reveal.css +22 -2
- package/src/styles/glass/rim.css +31 -9
- package/src/styles/glass/surfaces.css +81 -150
- package/src/styles/glass.css +21 -0
- package/src/styles/icon-chip.css +45 -0
- package/src/styles/index.css +26 -0
- package/src/styles/jubilance.css +65 -0
- package/src/styles/motion/morph-field.css +229 -0
- package/src/styles/paper.css +230 -14
- package/src/styles/scroll-choreography.css +135 -78
- package/src/styles/scroll-chrome.css +123 -0
- package/src/styles/scroll-driven.css +38 -0
- package/src/styles/segmented-tabs.css +110 -36
- package/src/styles/select.css +151 -0
- package/src/styles/theme/bridges.css +22 -0
- package/src/styles/theme/radius.css +18 -1
- package/src/styles/tokens/color-radius.css +14 -4
- package/src/styles/tokens/dark-arm.css +94 -12
- package/src/styles/tokens/glass-deep.css +33 -4
- package/src/styles/tokens/glass-fx.css +122 -1
- package/src/styles/tokens/glass.css +226 -34
- package/src/styles/tokens/light-dark.css +3 -3
- package/src/styles/tokens/offsets.css +27 -0
- package/src/styles/tokens/property-regs.css +277 -0
- package/src/styles/tokens/scale-paper.css +86 -30
- package/src/styles/tokens/scheme-motion.css +106 -133
- package/src/styles/tokens/scheme-spring.css +239 -0
- package/src/styles/tokens/scroll-tokens.css +15 -15
- package/src/styles/tokens/shadow.css +73 -13
- package/src/styles/tokens/sizing-config.css +110 -0
- package/src/styles/tokens/sizing.css +55 -104
- package/src/styles/tokens.css +14 -2
- package/src/styles/typography/semantic.css +18 -5
- package/src/styles/utilities/a11y-overrides.css +20 -5
- package/src/styles/utilities/base-misc.css +52 -0
- package/src/styles/utilities/btn.css +84 -3
- package/src/styles/utilities/components.css +31 -6
- package/src/styles/utilities/metal.css +26 -0
- package/dist/ContextMenuContent-uWnVxDab.js +0 -85
- package/dist/DialogContent-DcKK8k9i.js +0 -103
- package/dist/DialogFooter-BZNX5aVr.js +0 -165
- package/dist/HoverCardContent-b2uaAMRR.js +0 -83
- package/dist/Input-h9v5LeXf.js +0 -55
- package/dist/NumberFieldContent-Cq7EzX-U.js +0 -138
- package/dist/PaperBackdrop-Vf3tlpvd.js +0 -31
- package/dist/SelectScrollDownButton-CrA8F0iV.js +0 -252
- package/dist/Separator-pKF0oA4M.js +0 -37
- package/dist/Switch-CwYNf8bo.js +0 -47
- package/dist/TooltipProvider-rzvnXz60.js +0 -104
- package/dist/badge-D9XWW4GT.js +0 -53
- package/dist/button-DYCUa-tH.js +0 -126
- package/dist/color-DweYl7pE.js +0 -86
- package/dist/components/custom/concentric/composables/ringField.d.ts +0 -44
- package/dist/components/custom/constellation/composables/useConstellationPointer.d.ts +0 -35
- package/dist/components/custom/constellation/constellationDraw.d.ts +0 -30
- package/dist/components/custom/dock/DockRail.vue.d.ts +0 -89
- package/dist/createCanvasLifecycle-CHD5XrDW.js +0 -82
- package/dist/dockContext-BNfyPLe9.js +0 -17
- package/dist/procedural-color.wgsl-CToRHugY.js +0 -224
- package/dist/resolveCanvasColor-CUyHr5Uu.js +0 -11
- package/dist/slider-DVb4HXU-.js +0 -142
- package/dist/springPresets-CFQGQfdl.js +0 -40
- package/dist/styles/dock/rail-extend.css +0 -397
- package/dist/useLiquidPress-kfb4KX79.js +0 -39
- package/dist/usePointerVelocityField-JbRd5CrM.js +0 -137
- package/dist/useRAFLoop-UYa4zoiN.js +0 -109
- package/dist/useSpringPress-BsqPr7FJ.js +0 -34
- package/src/styles/dock/rail-extend.css +0 -397
- /package/dist/{CollapsibleContent-68dEXIAl.js → CollapsibleContent-D7UNsXQr.js} +0 -0
- /package/dist/{InstrumentChassis-Bx0F_q5g.js → InstrumentChassis-UUJX0-mW.js} +0 -0
- /package/dist/{Label-C2ejNWeC.js → Label-B_HPqi_q.js} +0 -0
- /package/dist/{ModalOverlay-D1VrWyoi.js → ModalOverlay-DfAf7o15.js} +0 -0
- /package/dist/{SelectGroup-DwwjicPY.js → SelectGroup-Dcczq44n.js} +0 -0
- /package/dist/{_plugin-vue_export-helper-C1je1s0u.js → _plugin-vue_export-helper-gLzyemvl.js} +0 -0
- /package/dist/{compile-CQEFRTmx.js → compile-INR_tPk_.js} +0 -0
- /package/dist/{constants-BPOqYJAm.js → constants-BWj7DkMn.js} +0 -0
- /package/dist/{createContext-CpBNTRMI.js → createContext-Cd23P9j0.js} +0 -0
- /package/dist/{math-BINYmg5z.js → math-5RcIgCB4.js} +0 -0
- /package/dist/{menuItemVariants-D8VNHq22.js → menuItemVariants-DAXquKja.js} +0 -0
- /package/dist/{prng-Za0Rmgag.js → prng-B5tIXTtj.js} +0 -0
- /package/dist/{useGlobalDark-C28t0VWJ.js → useGlobalDark-B4HO9LXG.js} +0 -0
- /package/dist/{useIntersectionPause-Bj4sPkMh.js → useIntersectionPause-DO8Vl4gs.js} +0 -0
- /package/dist/{useInterval-CvK1mL92.js → useInterval-BVUI-sez.js} +0 -0
- /package/dist/{useKeyboardShortcuts-BXWXOZ-9.js → useKeyboardShortcuts-BEut54Tk.js} +0 -0
- /package/dist/{useResizeObserver-Bpoi7tRE.js → useResizeObserver-DdEn3v2f.js} +0 -0
- /package/dist/{useResolveTokenColor-vAylyR0x.js → useResolveTokenColor-ChOnCckA.js} +0 -0
- /package/dist/{useScrollProgress-D7bYU2RK.js → useScrollProgress-A0M6qRl7.js} +0 -0
- /package/dist/{useSortable-DHjtZSEd.js → useSortable-DQV_UNDw.js} +0 -0
- /package/dist/{useTextHighlight-CWEi25hf.js → useTextHighlight-Bma3UlKA.js} +0 -0
- /package/dist/{useTimer-BHJOKr35.js → useTimer-BBLGPXR8.js} +0 -0
- /package/dist/{useUserInvalidAria-y5namzeE.js → useUserInvalidAria-EmmwWPOl.js} +0 -0
- /package/dist/{useViewportReady-anbac3m6.js → useViewportReady-C9pYnn7K.js} +0 -0
- /package/dist/{vReveal-Czsb7zQC.js → vReveal-CT1KtwZA.js} +0 -0
- /package/dist/{vSpecular-CQFmLNzA.js → vSpecular-EX7loENl.js} +0 -0
package/dist/search.js
CHANGED
|
@@ -1,170 +1,81 @@
|
|
|
1
1
|
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
|
-
import { c as t, l as n, n as r, t as i } from "./vendor-
|
|
3
|
-
import { n as a } from "./badge-
|
|
4
|
-
import { n as o } from "./button-
|
|
5
|
-
import { n as s, t as c } from "./DialogContent-
|
|
6
|
-
import { n as l, r as u, t as d } from "./PopoverContent-
|
|
7
|
-
import { t as f } from "./
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
return a < n ? null : (o -= Math.max(0, (r - n) * .1), {
|
|
30
|
-
score: o,
|
|
31
|
-
matches: i
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
function F(e, t) {
|
|
35
|
-
if (!t) return null;
|
|
36
|
-
let n = 0, r = [];
|
|
37
|
-
for (let i of e) {
|
|
38
|
-
let e = P(i, t);
|
|
39
|
-
if (!e) return null;
|
|
40
|
-
n += e.score;
|
|
41
|
-
for (let t of e.matches) r.push(t);
|
|
42
|
-
}
|
|
43
|
-
return {
|
|
44
|
-
score: n,
|
|
45
|
-
matches: r
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
function I(e, t) {
|
|
49
|
-
let n = 0, r = [], i = [
|
|
50
|
-
[t._lc.label, 12],
|
|
51
|
-
[t._lc.type, 10],
|
|
52
|
-
[t._lc.text, 3]
|
|
53
|
-
];
|
|
54
|
-
for (let [a, o] of i) {
|
|
55
|
-
if (!a) continue;
|
|
56
|
-
let i = F(e, a);
|
|
57
|
-
i && i.score * o > n && (n = i.score * o, r = a === t._lc.label ? i.matches : []);
|
|
58
|
-
}
|
|
59
|
-
return n <= 0 ? null : {
|
|
60
|
-
score: n,
|
|
61
|
-
matches: r
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
function L(e) {
|
|
65
|
-
return e.map((e) => ({
|
|
66
|
-
item: e,
|
|
67
|
-
_lc: {
|
|
68
|
-
label: e.label.toLowerCase(),
|
|
69
|
-
text: e.text.toLowerCase(),
|
|
70
|
-
type: e.type?.toLowerCase() ?? ""
|
|
71
|
-
}
|
|
72
|
-
}));
|
|
73
|
-
}
|
|
74
|
-
var R = /* @__PURE__ */ new WeakMap();
|
|
75
|
-
function z(e) {
|
|
76
|
-
let t = R.get(e);
|
|
77
|
-
return t || (t = /* @__PURE__ */ new Map(), R.set(e, t)), t;
|
|
78
|
-
}
|
|
79
|
-
function B(e, t, n = 30) {
|
|
80
|
-
let r = t.toLowerCase().trim();
|
|
81
|
-
if (!r) return [];
|
|
82
|
-
let i = z(e), a = i.get(r);
|
|
83
|
-
if (a) return a.slice(0, n);
|
|
84
|
-
i.size > 200 && i.clear();
|
|
85
|
-
let o = r.split(/\s+/).filter(Boolean);
|
|
86
|
-
if (o.length === 0) return [];
|
|
87
|
-
let s = e;
|
|
88
|
-
if (r.length > 1) {
|
|
89
|
-
let e = r.slice(0, -1), t = i.get(e);
|
|
90
|
-
t && (s = t.map((e) => ({
|
|
91
|
-
item: e.item,
|
|
92
|
-
_lc: {
|
|
93
|
-
label: e.item.label.toLowerCase(),
|
|
94
|
-
text: e.item.text.toLowerCase(),
|
|
95
|
-
type: e.item.type?.toLowerCase() ?? ""
|
|
96
|
-
}
|
|
97
|
-
})));
|
|
98
|
-
}
|
|
99
|
-
let c = [];
|
|
100
|
-
for (let e of s) {
|
|
101
|
-
let t = I(o, e);
|
|
102
|
-
t && c.push({
|
|
103
|
-
item: e.item,
|
|
104
|
-
score: t.score,
|
|
105
|
-
matchIndices: t.matches
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
return c.sort((e, t) => t.score - e.score), i.set(r, c), c.slice(0, n);
|
|
109
|
-
}
|
|
110
|
-
function V(e) {
|
|
111
|
-
if (e) {
|
|
112
|
-
R.delete(e);
|
|
113
|
-
return;
|
|
114
|
-
}
|
|
115
|
-
R = /* @__PURE__ */ new WeakMap();
|
|
116
|
-
}
|
|
117
|
-
//#endregion
|
|
118
|
-
//#region src/components/custom/search/FuzzySearch.vue?vue&type=script&setup=true&lang.ts
|
|
119
|
-
var H = ["placeholder", "value"], U = ["onClick", "onMouseenter"], W = { class: "fuzzy-search-label flex-1 min-w-0 truncate text-foreground/85" }, G = { class: "flex items-center gap-2 border-b border-border/50 px-3.5 py-3" }, K = ["placeholder", "value"], q = ["onClick", "onMouseenter"], J = { class: "fuzzy-search-label flex-1 min-w-0 truncate text-base text-foreground/85" }, Y = {
|
|
2
|
+
import { c as t, l as n, n as r, t as i } from "./vendor-B2qOlYY3.js";
|
|
3
|
+
import { n as a } from "./badge-Bt14yURi.js";
|
|
4
|
+
import { n as o } from "./button-D1W9PrzI.js";
|
|
5
|
+
import { n as s, t as c } from "./DialogContent-D8U9ZfWS.js";
|
|
6
|
+
import { n as l, r as u, t as d } from "./PopoverContent-BuKyHZSz.js";
|
|
7
|
+
import { t as f } from "./useControlSize-DAZ062x7.js";
|
|
8
|
+
import { t as p } from "./useTextHighlight-Bma3UlKA.js";
|
|
9
|
+
import { a as m, i as h, n as g, r as _, t as v } from "./useFuzzySearch-0fTYOhS4.js";
|
|
10
|
+
import { Fragment as y, computed as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createTextVNode as T, createVNode as E, defineComponent as D, nextTick as O, normalizeClass as k, openBlock as A, ref as j, renderList as M, renderSlot as N, resolveDynamicComponent as P, toDisplayString as F, unref as I, watch as L, withCtx as R } from "vue";
|
|
11
|
+
import { cva as z } from "class-variance-authority";
|
|
12
|
+
//#region src/components/custom/search/searchVariants.ts
|
|
13
|
+
var B = z("", {
|
|
14
|
+
variants: { variant: {
|
|
15
|
+
inline: "",
|
|
16
|
+
bare: "border-none bg-transparent p-0 rounded-none",
|
|
17
|
+
floating: "border-none bg-transparent p-0 rounded-none"
|
|
18
|
+
} },
|
|
19
|
+
defaultVariants: { variant: "inline" }
|
|
20
|
+
}), V = ["data-surface"], H = ["placeholder", "value"], U = [
|
|
21
|
+
"data-highlighted",
|
|
22
|
+
"onClick",
|
|
23
|
+
"onMouseenter"
|
|
24
|
+
], W = { class: "fuzzy-search-label flex-1 min-w-0 truncate text-foreground/85" }, G = { class: "flex items-center gap-2 border-b border-border/50 [--overlay-pad-inline:1rem] [--overlay-pad-block:calc(var(--overlay-pad-inline)*1.272)] px-(--overlay-pad-inline) py-(--overlay-pad-block)" }, K = ["placeholder", "value"], q = [
|
|
25
|
+
"data-highlighted",
|
|
26
|
+
"onClick",
|
|
27
|
+
"onMouseenter"
|
|
28
|
+
], J = { class: "fuzzy-search-label flex-1 min-w-0 truncate text-foreground/85" }, Y = {
|
|
120
29
|
key: 1,
|
|
121
30
|
class: "px-4 py-8 text-center text-muted-foreground/60"
|
|
122
|
-
}, X = /* @__PURE__ */
|
|
31
|
+
}, X = /* @__PURE__ */ D({
|
|
123
32
|
__name: "FuzzySearch",
|
|
124
33
|
props: {
|
|
125
34
|
state: {},
|
|
126
|
-
variant: { default: "
|
|
35
|
+
variant: { default: "inline" },
|
|
36
|
+
size: { default: "default" },
|
|
37
|
+
surface: { default: "glass" },
|
|
127
38
|
placeholder: { default: "Search…" },
|
|
128
39
|
typeLabel: {}
|
|
129
40
|
},
|
|
130
|
-
setup(
|
|
131
|
-
let
|
|
132
|
-
get: () =>
|
|
41
|
+
setup(m, { expose: g }) {
|
|
42
|
+
let _ = m, v = j(null), D = j(null), N = b({
|
|
43
|
+
get: () => _.state.isOpen.value && !_.state.isExpanded.value && _.state.results.value.length > 0,
|
|
133
44
|
set: (e) => {
|
|
134
|
-
e ||
|
|
45
|
+
e || _.state.close();
|
|
135
46
|
}
|
|
136
47
|
});
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
}),
|
|
140
|
-
e &&
|
|
141
|
-
}),
|
|
142
|
-
e &&
|
|
143
|
-
}),
|
|
144
|
-
() =>
|
|
145
|
-
() =>
|
|
146
|
-
() =>
|
|
147
|
-
|
|
48
|
+
L(() => _.state.selectedIndex.value, () => {
|
|
49
|
+
O(() => document.querySelector(".fuzzy-search-result.is-selected")?.scrollIntoView({ block: "nearest" }));
|
|
50
|
+
}), L(() => _.state.isOpen.value, (e) => {
|
|
51
|
+
e && O(() => v.value?.focus());
|
|
52
|
+
}), L(() => _.state.isExpanded.value, (e) => {
|
|
53
|
+
e && O(() => D.value?.focus());
|
|
54
|
+
}), L([
|
|
55
|
+
() => _.state.query.value,
|
|
56
|
+
() => _.state.results.value,
|
|
57
|
+
() => _.state.isExpanded.value,
|
|
58
|
+
N
|
|
148
59
|
], () => {
|
|
149
|
-
|
|
60
|
+
te(_.state.isExpanded.value ? Q.value : N.value ? Z.value : null);
|
|
150
61
|
}, { flush: "post" });
|
|
151
|
-
function
|
|
152
|
-
|
|
62
|
+
function P() {
|
|
63
|
+
v.value?.focus();
|
|
153
64
|
}
|
|
154
|
-
|
|
155
|
-
function
|
|
65
|
+
g({ focus: P });
|
|
66
|
+
function z(e) {
|
|
156
67
|
return e.item.label || e.item.text.slice(0, 120);
|
|
157
68
|
}
|
|
158
|
-
function
|
|
159
|
-
return
|
|
69
|
+
function X(e) {
|
|
70
|
+
return _.typeLabel ? _.typeLabel(e.item) : e.item.type ?? "";
|
|
160
71
|
}
|
|
161
|
-
let
|
|
162
|
-
function
|
|
72
|
+
let Z = j(null), Q = j(null), $ = p("glass-search-mark");
|
|
73
|
+
function ee(e, t) {
|
|
163
74
|
let n = t.toLowerCase().trim().split(/\s+/).filter(Boolean);
|
|
164
75
|
if (n.length === 0) return [];
|
|
165
76
|
let r = e.toLowerCase(), i = /* @__PURE__ */ new Set();
|
|
166
77
|
for (let e of n) {
|
|
167
|
-
let t =
|
|
78
|
+
let t = h(e, r);
|
|
168
79
|
if (t) for (let e of t.matches) i.add(e);
|
|
169
80
|
}
|
|
170
81
|
let a = [];
|
|
@@ -177,173 +88,184 @@ var H = ["placeholder", "value"], U = ["onClick", "onMouseenter"], W = { class:
|
|
|
177
88
|
}
|
|
178
89
|
return a;
|
|
179
90
|
}
|
|
180
|
-
function
|
|
91
|
+
function te(e) {
|
|
181
92
|
if (!e) {
|
|
182
|
-
|
|
93
|
+
$.clear();
|
|
183
94
|
return;
|
|
184
95
|
}
|
|
185
|
-
|
|
96
|
+
O(() => $.setFromMatches(e, _.state.query.value, ee));
|
|
186
97
|
}
|
|
187
|
-
return (
|
|
188
|
-
open:
|
|
189
|
-
"onUpdate:open":
|
|
98
|
+
return (p, h) => (A(), C("div", { class: k(["fuzzy-search relative", `fuzzy-search--${m.variant}`]) }, [E(I(u), {
|
|
99
|
+
open: N.value,
|
|
100
|
+
"onUpdate:open": h[6] ||= (e) => N.value = e
|
|
190
101
|
}, {
|
|
191
|
-
default:
|
|
192
|
-
default:
|
|
193
|
-
|
|
194
|
-
|
|
102
|
+
default: R(() => [E(I(l), { "as-child": "" }, {
|
|
103
|
+
default: R(() => [w("div", {
|
|
104
|
+
class: k(["input-bar", I(e)(I(f)(m.size), I(B)({ variant: m.variant }))]),
|
|
105
|
+
"data-surface": m.surface
|
|
106
|
+
}, [
|
|
107
|
+
E(I(r), { class: "size-(--search-icon-size) shrink-0 text-muted-foreground/70" }),
|
|
108
|
+
w("input", {
|
|
195
109
|
ref_key: "inputRef",
|
|
196
|
-
ref:
|
|
110
|
+
ref: v,
|
|
197
111
|
type: "text",
|
|
198
|
-
class: "input-bar-field
|
|
199
|
-
placeholder:
|
|
200
|
-
value:
|
|
201
|
-
onInput:
|
|
202
|
-
onKeydown:
|
|
203
|
-
onFocus:
|
|
112
|
+
class: "input-bar-field",
|
|
113
|
+
placeholder: m.placeholder,
|
|
114
|
+
value: m.state.query.value,
|
|
115
|
+
onInput: h[0] ||= (e) => m.state.query.value = e.target.value,
|
|
116
|
+
onKeydown: h[1] ||= (...e) => m.state.onKeydown && m.state.onKeydown(...e),
|
|
117
|
+
onFocus: h[2] ||= (e) => m.state.isOpen.value = !0
|
|
204
118
|
}, null, 40, H),
|
|
205
|
-
|
|
119
|
+
m.state.query.value && m.state.results.value.length > 0 ? (A(), x(I(o), {
|
|
206
120
|
key: 0,
|
|
207
121
|
type: "button",
|
|
208
122
|
variant: "ghost",
|
|
209
123
|
size: "icon",
|
|
210
|
-
class: "
|
|
211
|
-
title:
|
|
212
|
-
onClick:
|
|
124
|
+
class: "size-(--search-button-size)",
|
|
125
|
+
title: m.state.isExpanded.value ? "Collapse" : "Expand",
|
|
126
|
+
onClick: h[3] ||= (e) => m.state.toggleExpanded()
|
|
213
127
|
}, {
|
|
214
|
-
default:
|
|
128
|
+
default: R(() => [m.state.isExpanded.value ? (A(), x(I(t), {
|
|
215
129
|
key: 1,
|
|
216
|
-
class: "
|
|
217
|
-
})) : (
|
|
130
|
+
class: "size-(--search-icon-size)"
|
|
131
|
+
})) : (A(), x(I(n), {
|
|
218
132
|
key: 0,
|
|
219
|
-
class: "
|
|
133
|
+
class: "size-(--search-icon-size)"
|
|
220
134
|
}))]),
|
|
221
135
|
_: 1
|
|
222
|
-
}, 8, ["title"])) :
|
|
223
|
-
|
|
136
|
+
}, 8, ["title"])) : S("", !0),
|
|
137
|
+
m.state.query.value ? (A(), x(I(o), {
|
|
224
138
|
key: 1,
|
|
225
139
|
type: "button",
|
|
226
140
|
variant: "ghost",
|
|
227
141
|
size: "icon",
|
|
228
|
-
class: "
|
|
142
|
+
class: "size-(--search-button-size)",
|
|
229
143
|
title: "Clear search",
|
|
230
|
-
onClick:
|
|
144
|
+
onClick: h[4] ||= (e) => m.state.close()
|
|
231
145
|
}, {
|
|
232
|
-
default:
|
|
146
|
+
default: R(() => [E(I(i), { class: "size-(--search-icon-size)" })]),
|
|
233
147
|
_: 1
|
|
234
|
-
})) :
|
|
235
|
-
],
|
|
148
|
+
})) : S("", !0)
|
|
149
|
+
], 10, V)]),
|
|
236
150
|
_: 1
|
|
237
|
-
}),
|
|
151
|
+
}), E(I(d), {
|
|
238
152
|
align: "start",
|
|
239
153
|
"side-offset": 4,
|
|
240
154
|
portal: !1,
|
|
241
155
|
class: "w-(--reka-popover-trigger-width) max-h-[50vh] overflow-y-auto overscroll-contain p-1",
|
|
242
|
-
onOpenAutoFocus:
|
|
156
|
+
onOpenAutoFocus: h[5] ||= (e) => e.preventDefault()
|
|
243
157
|
}, {
|
|
244
|
-
default:
|
|
158
|
+
default: R(() => [w("div", {
|
|
245
159
|
ref_key: "inlineListRef",
|
|
246
|
-
ref:
|
|
247
|
-
}, [(
|
|
248
|
-
key: `${
|
|
160
|
+
ref: Z
|
|
161
|
+
}, [(A(!0), C(y, null, M(m.state.results.value, (e, t) => (A(), C("button", {
|
|
162
|
+
key: `${e.item.id}-${e.item.type}-${t}`,
|
|
249
163
|
type: "button",
|
|
250
|
-
class:
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
164
|
+
class: k(["fuzzy-search-result glass-menu-row interactive-item flex w-full items-baseline gap-1.5 px-2 py-1.5 text-left text-(length:--search-result-text)", { "is-selected": t === m.state.selectedIndex.value }]),
|
|
165
|
+
"data-highlighted": t === m.state.selectedIndex.value ? "" : void 0,
|
|
166
|
+
onClick: (t) => m.state.selectResult(e),
|
|
167
|
+
onMouseenter: (e) => m.state.selectedIndex.value = t
|
|
168
|
+
}, [X(e) ? (A(), x(I(a), {
|
|
254
169
|
key: 0,
|
|
255
170
|
variant: "secondary",
|
|
256
|
-
class: "shrink-0 text-
|
|
171
|
+
class: "shrink-0 text-(length:--search-result-text-secondary) font-bold uppercase tracking-wider"
|
|
257
172
|
}, {
|
|
258
|
-
default:
|
|
173
|
+
default: R(() => [T(F(X(e)), 1)]),
|
|
259
174
|
_: 2
|
|
260
|
-
}, 1024)) :
|
|
175
|
+
}, 1024)) : S("", !0), w("span", W, F(z(e)), 1)], 42, U))), 128))], 512)]),
|
|
261
176
|
_: 1
|
|
262
177
|
})]),
|
|
263
178
|
_: 1
|
|
264
|
-
}, 8, ["open"]),
|
|
265
|
-
open:
|
|
266
|
-
"onUpdate:open":
|
|
179
|
+
}, 8, ["open"]), E(I(s), {
|
|
180
|
+
open: m.state.isExpanded.value,
|
|
181
|
+
"onUpdate:open": h[11] ||= (e) => m.state.isExpanded.value = e
|
|
267
182
|
}, {
|
|
268
|
-
default:
|
|
269
|
-
surface:
|
|
270
|
-
class: "
|
|
271
|
-
onOpenAutoFocus:
|
|
183
|
+
default: R(() => [E(I(c), {
|
|
184
|
+
surface: m.surface,
|
|
185
|
+
class: "max-w-(--search-modal-width) max-h-[70vh] [--overlay-pad-inline:0] [--overlay-pad-block:0] [--search-modal-width:36rem] overflow-hidden flex flex-col gap-0",
|
|
186
|
+
onOpenAutoFocus: h[10] ||= (e) => e.preventDefault()
|
|
272
187
|
}, {
|
|
273
|
-
default:
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
188
|
+
default: R(() => [
|
|
189
|
+
w("div", G, [
|
|
190
|
+
E(I(r), { class: "size-(--search-icon-size) shrink-0 text-muted-foreground/70" }),
|
|
191
|
+
w("input", {
|
|
277
192
|
ref_key: "modalInputRef",
|
|
278
|
-
ref:
|
|
193
|
+
ref: D,
|
|
279
194
|
type: "text",
|
|
280
|
-
class: "input-bar-field flex-1 text-
|
|
281
|
-
placeholder:
|
|
282
|
-
value:
|
|
283
|
-
onInput:
|
|
284
|
-
onKeydown:
|
|
195
|
+
class: "input-bar-field flex-1 text-(length:--search-result-text)",
|
|
196
|
+
placeholder: m.placeholder,
|
|
197
|
+
value: m.state.query.value,
|
|
198
|
+
onInput: h[7] ||= (e) => m.state.query.value = e.target.value,
|
|
199
|
+
onKeydown: h[8] ||= (...e) => m.state.onKeydown && m.state.onKeydown(...e)
|
|
285
200
|
}, null, 40, K),
|
|
286
|
-
|
|
201
|
+
E(I(o), {
|
|
287
202
|
type: "button",
|
|
288
203
|
variant: "ghost",
|
|
289
204
|
size: "icon",
|
|
290
|
-
class: "
|
|
205
|
+
class: "size-(--search-button-size)",
|
|
291
206
|
title: "Collapse",
|
|
292
|
-
onClick:
|
|
207
|
+
onClick: h[9] ||= (e) => m.state.toggleExpanded()
|
|
293
208
|
}, {
|
|
294
|
-
default:
|
|
209
|
+
default: R(() => [E(I(t), { class: "size-(--search-icon-size)" })]),
|
|
295
210
|
_: 1
|
|
296
211
|
})
|
|
297
212
|
]),
|
|
298
|
-
|
|
213
|
+
m.state.results.value.length > 0 ? (A(), C("div", {
|
|
299
214
|
key: 0,
|
|
300
215
|
ref_key: "modalListRef",
|
|
301
|
-
ref:
|
|
216
|
+
ref: Q,
|
|
302
217
|
class: "flex-1 min-h-0 overflow-y-auto overscroll-contain p-1.5"
|
|
303
|
-
}, [(
|
|
304
|
-
key: `modal-${
|
|
218
|
+
}, [(A(!0), C(y, null, M(m.state.results.value, (e, t) => (A(), C("button", {
|
|
219
|
+
key: `modal-${e.item.id}-${e.item.type}-${t}`,
|
|
305
220
|
type: "button",
|
|
306
|
-
class:
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
221
|
+
class: k(["fuzzy-search-result glass-menu-row interactive-item flex w-full items-baseline gap-1.5 px-2.5 py-2 text-left text-(length:--search-result-text)", { "is-selected": t === m.state.selectedIndex.value }]),
|
|
222
|
+
"data-highlighted": t === m.state.selectedIndex.value ? "" : void 0,
|
|
223
|
+
onClick: (t) => m.state.selectResult(e),
|
|
224
|
+
onMouseenter: (e) => m.state.selectedIndex.value = t
|
|
225
|
+
}, [X(e) ? (A(), x(I(a), {
|
|
310
226
|
key: 0,
|
|
311
227
|
variant: "secondary",
|
|
312
|
-
class: "shrink-0 text-
|
|
228
|
+
class: "shrink-0 text-(length:--search-result-text-secondary) font-bold uppercase tracking-wider"
|
|
313
229
|
}, {
|
|
314
|
-
default:
|
|
230
|
+
default: R(() => [T(F(X(e)), 1)]),
|
|
315
231
|
_: 2
|
|
316
|
-
}, 1024)) :
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
232
|
+
}, 1024)) : S("", !0), w("span", J, F(z(e)), 1)], 42, q))), 128))], 512)) : (A(), C("div", Y, "No results")),
|
|
233
|
+
h[12] ||= w("div", { class: "flex items-center gap-4 border-t border-border/50 [--overlay-pad-inline:1rem] [--overlay-pad-block:calc(var(--overlay-pad-inline)*1.272)] px-(--overlay-pad-inline) py-(--overlay-pad-block) text-mono-caption text-muted-foreground/60" }, [
|
|
234
|
+
w("span", { class: "flex items-center gap-1" }, [
|
|
235
|
+
w("kbd", { class: "kbd" }, "↑"),
|
|
236
|
+
w("kbd", { class: "kbd" }, "↓"),
|
|
237
|
+
T(" navigate")
|
|
322
238
|
]),
|
|
323
|
-
|
|
324
|
-
|
|
239
|
+
w("span", { class: "flex items-center gap-1" }, [w("kbd", { class: "kbd" }, "↵"), T(" select")]),
|
|
240
|
+
w("span", { class: "flex items-center gap-1" }, [w("kbd", { class: "kbd" }, "esc"), T(" close")])
|
|
325
241
|
], -1)
|
|
326
242
|
]),
|
|
327
243
|
_: 1
|
|
328
|
-
})]),
|
|
244
|
+
}, 8, ["surface"])]),
|
|
329
245
|
_: 1
|
|
330
246
|
}, 8, ["open"])], 2));
|
|
331
247
|
}
|
|
332
|
-
}), Z = ["value", "placeholder"], Q = /* @__PURE__ */
|
|
248
|
+
}), Z = ["value", "placeholder"], Q = /* @__PURE__ */ D({
|
|
333
249
|
__name: "SearchBar",
|
|
334
250
|
props: {
|
|
335
251
|
modelValue: { default: "" },
|
|
336
252
|
placeholder: { default: "Search…" },
|
|
337
253
|
icon: {},
|
|
338
|
-
tag: { default: "div" }
|
|
254
|
+
tag: { default: "div" },
|
|
255
|
+
size: { default: "default" },
|
|
256
|
+
surface: { default: "glass" },
|
|
257
|
+
variant: { default: "inline" }
|
|
339
258
|
},
|
|
340
259
|
emits: ["update:modelValue"],
|
|
341
260
|
setup(t, { expose: n, emit: i }) {
|
|
342
|
-
let a = i, o =
|
|
343
|
-
return n({ inputRef: o }), (n, i) => (
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
261
|
+
let a = i, o = j(null);
|
|
262
|
+
return n({ inputRef: o }), (n, i) => (A(), x(P(t.tag), {
|
|
263
|
+
class: k(I(e)("input-bar", I(f)(t.size), I(B)({ variant: t.variant }), n.$attrs.class)),
|
|
264
|
+
"data-surface": t.surface
|
|
265
|
+
}, {
|
|
266
|
+
default: R(() => [
|
|
267
|
+
(A(), x(P(t.icon ?? I(r)), { class: "size-(--search-icon-size) text-muted-foreground shrink-0" })),
|
|
268
|
+
w("input", {
|
|
347
269
|
ref_key: "inputRef",
|
|
348
270
|
ref: o,
|
|
349
271
|
value: t.modelValue,
|
|
@@ -351,77 +273,11 @@ var H = ["placeholder", "value"], U = ["onClick", "onMouseenter"], W = { class:
|
|
|
351
273
|
class: "input-bar-field",
|
|
352
274
|
onInput: i[0] ||= (e) => a("update:modelValue", e.target.value)
|
|
353
275
|
}, null, 40, Z),
|
|
354
|
-
|
|
276
|
+
N(n.$slots, "default")
|
|
355
277
|
]),
|
|
356
278
|
_: 3
|
|
357
|
-
}, 8, ["class"]));
|
|
279
|
+
}, 8, ["class", "data-surface"]));
|
|
358
280
|
}
|
|
359
281
|
});
|
|
360
282
|
//#endregion
|
|
361
|
-
|
|
362
|
-
function $(e) {
|
|
363
|
-
let t = typeof e.items == "function" ? e.items : () => e.items, n = e.debounceMs ?? 120, r = e.maxResults ?? 30, i = E(""), a = E(!1), o = E(!1), s = E(0), c = E(""), l = m(() => t()), u = m(() => L(l.value)), d;
|
|
364
|
-
function f(e = d) {
|
|
365
|
-
e !== void 0 && (clearTimeout(e), d === e && (d = void 0));
|
|
366
|
-
}
|
|
367
|
-
M(i, (e, t, r) => {
|
|
368
|
-
if (f(), !e || n <= 0) {
|
|
369
|
-
c.value = e;
|
|
370
|
-
return;
|
|
371
|
-
}
|
|
372
|
-
let i = setTimeout(() => {
|
|
373
|
-
d === i && (c.value = e, d = void 0);
|
|
374
|
-
}, n);
|
|
375
|
-
d = i, r(() => f(i));
|
|
376
|
-
}), M(l, () => {
|
|
377
|
-
f(), c.value = i.value, s.value = 0;
|
|
378
|
-
}, { deep: !0 });
|
|
379
|
-
let p = m(() => B(u.value, c.value, r));
|
|
380
|
-
M(p, () => {
|
|
381
|
-
s.value = 0;
|
|
382
|
-
});
|
|
383
|
-
function h(t) {
|
|
384
|
-
e.onSelect?.(t), g();
|
|
385
|
-
}
|
|
386
|
-
function g() {
|
|
387
|
-
a.value = !1, o.value = !1, f(), i.value = "", c.value = "", s.value = 0, V(u.value);
|
|
388
|
-
}
|
|
389
|
-
function _() {
|
|
390
|
-
a.value = !0;
|
|
391
|
-
}
|
|
392
|
-
function v() {
|
|
393
|
-
o.value = !o.value;
|
|
394
|
-
}
|
|
395
|
-
function y(e) {
|
|
396
|
-
switch (e.key) {
|
|
397
|
-
case "ArrowDown":
|
|
398
|
-
e.preventDefault(), s.value < p.value.length - 1 && s.value++;
|
|
399
|
-
break;
|
|
400
|
-
case "ArrowUp":
|
|
401
|
-
e.preventDefault(), s.value > 0 && s.value--;
|
|
402
|
-
break;
|
|
403
|
-
case "Enter":
|
|
404
|
-
e.preventDefault(), p.value[s.value] && h(p.value[s.value]);
|
|
405
|
-
break;
|
|
406
|
-
case "Escape":
|
|
407
|
-
e.preventDefault(), o.value ? o.value = !1 : g();
|
|
408
|
-
break;
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
return w(() => {
|
|
412
|
-
f(), V(u.value);
|
|
413
|
-
}, !0), {
|
|
414
|
-
query: i,
|
|
415
|
-
results: p,
|
|
416
|
-
isOpen: a,
|
|
417
|
-
isExpanded: o,
|
|
418
|
-
selectedIndex: s,
|
|
419
|
-
selectResult: h,
|
|
420
|
-
close: g,
|
|
421
|
-
open: _,
|
|
422
|
-
toggleExpanded: v,
|
|
423
|
-
onKeydown: y
|
|
424
|
-
};
|
|
425
|
-
}
|
|
426
|
-
//#endregion
|
|
427
|
-
export { X as FuzzySearch, Q as SearchBar, L as buildIndex, V as clearSearchCache, P as fuzzyMatch, B as searchIndex, $ as useFuzzySearch };
|
|
283
|
+
export { X as FuzzySearch, Q as SearchBar, g as buildIndex, _ as clearSearchCache, h as fuzzyMatch, B as searchFieldVariants, m as searchIndex, v as useFuzzySearch };
|
package/dist/select.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./SelectScrollDownButton-
|
|
2
|
-
import { t as s } from "./SelectGroup-
|
|
3
|
-
import { n as c, t as l } from "./SelectSeparator-
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./SelectScrollDownButton-3mFHX_R-.js";
|
|
2
|
+
import { t as s } from "./SelectGroup-Dcczq44n.js";
|
|
3
|
+
import { n as c, t as l } from "./SelectSeparator-CNRGG7Ew.js";
|
|
4
4
|
export { a as Select, t as SelectContent, s as SelectGroup, i as SelectItem, c as SelectLabel, o as SelectScrollDownButton, n as SelectScrollUpButton, l as SelectSeparator, e as SelectTrigger, r as SelectValue };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./components/custom/selectable-chip";
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
|
+
import { u as t } from "./color-B9jZdhJX.js";
|
|
3
|
+
import { t as n } from "./chipVariants-BJQ0I2kB.js";
|
|
4
|
+
import { computed as r, createBlock as i, defineComponent as a, mergeProps as o, openBlock as s, renderSlot as c, unref as l, withCtx as u } from "vue";
|
|
5
|
+
import { Toggle as d, useForwardPropsEmits as f } from "reka-ui";
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region src/components/custom/selectable-chip/SelectableChip.vue
|
|
8
|
+
var p = /* @__PURE__ */ a({
|
|
9
|
+
__name: "SelectableChip",
|
|
10
|
+
props: {
|
|
11
|
+
defaultValue: { type: Boolean },
|
|
12
|
+
modelValue: { type: [Boolean, null] },
|
|
13
|
+
disabled: { type: Boolean },
|
|
14
|
+
asChild: { type: Boolean },
|
|
15
|
+
as: {},
|
|
16
|
+
name: {},
|
|
17
|
+
required: { type: Boolean },
|
|
18
|
+
tone: {},
|
|
19
|
+
size: {},
|
|
20
|
+
class: { type: [
|
|
21
|
+
Boolean,
|
|
22
|
+
null,
|
|
23
|
+
String,
|
|
24
|
+
Object,
|
|
25
|
+
Array
|
|
26
|
+
] }
|
|
27
|
+
},
|
|
28
|
+
emits: ["update:modelValue"],
|
|
29
|
+
setup(a, { emit: p }) {
|
|
30
|
+
let m = a, h = p, { toneStyle: g } = t(() => m.tone ?? "var(--primary)"), _ = f(() => {
|
|
31
|
+
let { class: e, tone: t, size: n, ...r } = m;
|
|
32
|
+
return r;
|
|
33
|
+
}, h), v = r(() => e(n({ size: m.size }), m.class)), y = r(() => ({
|
|
34
|
+
...g.value,
|
|
35
|
+
"--glass-fill-tint": m.tone ?? "var(--primary)",
|
|
36
|
+
"--glass-fill-strength": "var(--chip-glass-strength, 12%)"
|
|
37
|
+
}));
|
|
38
|
+
return (e, t) => (s(), i(l(d), o(l(_), {
|
|
39
|
+
class: v.value,
|
|
40
|
+
style: y.value
|
|
41
|
+
}), {
|
|
42
|
+
default: u(() => [c(e.$slots, "default")]),
|
|
43
|
+
_: 3
|
|
44
|
+
}, 16, ["class", "style"]));
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
//#endregion
|
|
48
|
+
export { p as SelectableChip, n as selectableChipVariants };
|
package/dist/separator.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./Separator-
|
|
1
|
+
import { t as e } from "./Separator-Cf9-JFgi.js";
|
|
2
2
|
export { e as Separator };
|