@mkbabb/glass-ui 3.1.1 → 3.3.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/{CardFooter-CSGcJkqa.js → CardFooter-C390imy7.js} +3 -3
- package/dist/{CollapsibleContent-CVMOcYlV.js → CollapsibleContent-cauTbZEM.js} +1 -1
- package/dist/{CommandShortcut-DWT19a2Y.js → CommandShortcut-BiVyqipe.js} +7 -6
- package/dist/{ContextMenuSubContent-gAFxJ-qi.js → ContextMenuSubContent-DrWkXKQP.js} +4 -4
- package/dist/DataTable-FfkaAg2z.js +465 -0
- package/dist/DialogContent-IQ8_BRrC.js +100 -0
- package/dist/{DialogFooter-ClrNEOVU.js → DialogFooter-Er0wA3K6.js} +2 -2
- package/dist/{DiscoGlyph-C3JfMnRV.js → DiscoGlyph-BaZ8OawK.js} +1 -1
- package/dist/{GlyphFace-BRS8vUb7.js → GlyphFace-B_7vOmYn.js} +1 -1
- package/dist/HoverPopover-DTSYkJtw.js +96 -0
- package/dist/{IconTooltip-BkaA7tZ2.js → IconTooltip-BTyYn4mr.js} +1 -1
- package/dist/Input-CU9CNKmo.js +52 -0
- package/dist/{MetricBadge-DmAihkXd.js → MetricBadge-BlrdbOGN.js} +2 -2
- package/dist/{Notification-OqIpADml.js → Notification-DP_ApJLo.js} +3 -3
- package/dist/{NumberFieldContent-DTH9gb_N.js → NumberFieldContent-iOTQ5rGO.js} +9 -5
- package/dist/{PopoverContent-EiklFrna.js → PopoverContent-B8WtJECb.js} +1 -1
- package/dist/Progress-DjM86vfb.js +254 -0
- package/dist/{ScrollingText-BFd0i2zJ.js → ScrollingText-P9o_DuMn.js} +2 -2
- package/dist/{SelectScrollDownButton-Dth8-wXQ.js → SelectScrollDownButton-BGn3rjs9.js} +12 -11
- package/dist/TabsIndicator-DA0x9gPr.js +97 -0
- package/dist/{Toaster-Bjlunvq4.js → Toaster-DdhMKfus.js} +1 -1
- package/dist/{ToggleGroupItem-OesUouE7.js → ToggleGroupItem-gyXj998A.js} +37 -40
- package/dist/UnderlineTabs-Cq_AD03t.js +39 -0
- package/dist/animated-digit.js +3 -3
- package/dist/api/index.d.ts +2 -0
- package/dist/api.js +1 -1
- package/dist/aurora.js +471 -320
- package/dist/badge.js +1 -1
- package/dist/{button-C0aHmBbt.js → button-Ckn3eDfB.js} +27 -22
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/carousel.js +6 -6
- package/dist/{check-dwgetki8.js → check-CdkxGxXJ.js} +1 -1
- package/dist/{chevron-down-DILQA1t6.js → chevron-down-pBY8sYfV.js} +1 -1
- package/dist/{chevron-right-fS7fal2t.js → chevron-right-BjeKC22V.js} +1 -1
- package/dist/{chevron-up-BtYjYQOS.js → chevron-up-DBeNHUm1.js} +1 -1
- package/dist/collapsible.js +1 -1
- package/dist/color-rkK4RMx2.js +33 -0
- package/dist/color.d.ts +1 -0
- package/dist/color.js +2 -0
- package/dist/command.js +1 -1
- package/dist/compile-DVgAxagk.js +106 -0
- package/dist/components/custom/animated-digit/AnimatedDigit.vue.d.ts +7 -7
- package/dist/components/custom/aurora/Aurora.vue.d.ts +3 -3
- package/dist/components/custom/aurora/composables/color.d.ts +42 -16
- package/dist/components/custom/aurora/composables/cursorModel.d.ts +45 -0
- package/dist/components/custom/aurora/composables/frameLoop.d.ts +30 -0
- package/dist/components/custom/aurora/composables/glSetup.d.ts +29 -0
- package/dist/components/custom/aurora/composables/runtime.d.ts +45 -35
- package/dist/components/custom/aurora/composables/uniformBridge.d.ts +67 -0
- package/dist/components/custom/aurora/composables/useAurora.d.ts +14 -1
- package/dist/components/custom/aurora/composables/useCursorInteraction.d.ts +1 -1
- package/dist/components/custom/aurora/constants/budget.d.ts +50 -0
- package/dist/components/custom/aurora/{presets.d.ts → constants/presets.d.ts} +3 -6
- package/dist/components/custom/aurora/constants/shaders/aurora.frag.d.ts +1 -0
- package/dist/components/custom/aurora/constants/shaders/brush.glsl.d.ts +1 -0
- package/dist/components/custom/aurora/constants/shaders/composition.glsl.d.ts +1 -0
- package/dist/components/custom/aurora/constants/shaders/flow.glsl.d.ts +1 -0
- package/dist/components/custom/aurora/constants/shaders/mediums.glsl.d.ts +2 -0
- package/dist/components/custom/aurora/constants/shaders/tonemap.glsl.d.ts +1 -0
- package/dist/components/custom/aurora/index.d.ts +4 -3
- package/dist/components/custom/configurator/Configurator.vue.d.ts +26 -0
- package/dist/components/custom/configurator/ConfiguratorLayer.vue.d.ts +14 -7
- package/dist/components/custom/configurator/density.d.ts +3 -8
- package/dist/components/custom/configurator/index.d.ts +1 -1
- package/dist/components/custom/dock/DockBackgroundToggle.vue.d.ts +46 -0
- package/dist/components/custom/dock/DockIconButton.vue.d.ts +15 -4
- package/dist/components/custom/dock/DockLayerGroup.vue.d.ts +2 -2
- package/dist/components/custom/dock/GlassDock.vue.d.ts +34 -13
- package/dist/components/custom/dock/composables/dockContext.d.ts +4 -4
- package/dist/components/custom/dock/composables/dockLayerContext.d.ts +13 -6
- package/dist/components/custom/dock/composables/useLayerTransition.d.ts +32 -8
- package/dist/components/custom/dock/index.d.ts +1 -0
- package/dist/components/custom/expandable-container/ExpandableContainer.vue.d.ts +10 -0
- package/dist/components/custom/glass-panel/GlassPanel.vue.d.ts +1 -1
- package/dist/components/custom/glyph-face/keys.d.ts +3 -29
- package/dist/components/custom/goo-blob/GooBlob.vue.d.ts +48 -0
- package/dist/components/custom/goo-blob/composables/easing.d.ts +6 -0
- package/dist/components/custom/goo-blob/composables/useBlobMood.d.ts +14 -0
- package/dist/components/custom/goo-blob/composables/useBlobPointer.d.ts +18 -0
- package/dist/components/custom/goo-blob/composables/useBlobSatellites.d.ts +13 -0
- package/dist/components/custom/goo-blob/composables/useMetaballRenderer.d.ts +42 -0
- package/dist/components/custom/goo-blob/index.d.ts +7 -0
- package/dist/components/custom/goo-blob/shaders/metaball.frag.d.ts +1 -0
- package/dist/components/custom/goo-blob/shaders/metaball.vert.d.ts +1 -0
- package/dist/components/custom/goo-blob/shaders/oklch-perturb.glsl.d.ts +1 -0
- package/dist/components/custom/goo-blob/shaders/sdf-body.glsl.d.ts +1 -0
- package/dist/components/custom/goo-blob/shaders/watercolor-edges.glsl.d.ts +2 -0
- package/dist/components/custom/goo-blob/types.d.ts +77 -0
- package/dist/components/custom/hover-popover/HoverPopover.vue.d.ts +48 -9
- package/dist/components/custom/labeled-field/LabeledField.vue.d.ts +2 -0
- package/dist/components/custom/labeled-field/LabeledSelect.vue.d.ts +2 -2
- package/dist/components/custom/metric-stack/MetricRow.vue.d.ts +2 -2
- package/dist/components/custom/responsive-tabs/ResponsiveTabs.vue.d.ts +13 -7
- package/dist/components/custom/search/FuzzySearch.vue.d.ts +1 -1
- package/dist/components/custom/search/SearchBar.vue.d.ts +1 -1
- package/dist/components/custom/sortable-list/SortableHandle.vue.d.ts +7 -1
- package/dist/components/custom/sortable-list/context.d.ts +2 -3
- package/dist/components/custom/tabs/BouncyTabs.vue.d.ts +6 -3
- package/dist/components/custom/tabs/BouncyToggle.vue.d.ts +7 -3
- package/dist/components/custom/tabs/UnderlineTabs.vue.d.ts +6 -3
- package/dist/components/custom/tabs/composables/useBouncySlider.d.ts +39 -0
- package/dist/components/custom/timeline/ContinuousMarkers.vue.d.ts +49 -0
- package/dist/components/custom/timeline/ContinuousRail.vue.d.ts +26 -0
- package/dist/components/custom/timeline/ContinuousTimeline.vue.d.ts +4 -4
- package/dist/components/custom/typewriter/TypewriterText.vue.d.ts +2 -2
- package/dist/components/custom/watercolor-dot/WatercolorDot.vue.d.ts +45 -0
- package/dist/components/custom/watercolor-dot/index.d.ts +3 -0
- package/dist/components/custom/watercolor-dot/prng.d.ts +5 -0
- package/dist/components/custom/watercolor-dot/useWatercolorBlob.d.ts +24 -0
- package/dist/components/ui/_shared/menuItemVariants.d.ts +1 -1
- package/dist/components/ui/avatar/Avatar.vue.d.ts +1 -1
- package/dist/components/ui/avatar/AvatarImage.vue.d.ts +5 -1
- package/dist/components/ui/avatar/index.d.ts +1 -1
- package/dist/components/ui/badge/index.d.ts +2 -2
- package/dist/components/ui/button/Button.vue.d.ts +3 -1
- package/dist/components/ui/button/index.d.ts +2 -2
- package/dist/components/ui/carousel/CarouselNext.vue.d.ts +2 -2
- package/dist/components/ui/carousel/CarouselPrevious.vue.d.ts +2 -2
- package/dist/components/ui/combobox/Combobox.vue.d.ts +2 -2
- package/dist/components/ui/combobox/ComboboxInput.vue.d.ts +2 -1
- package/dist/components/ui/command/Command.vue.d.ts +3 -3
- package/dist/components/ui/command/CommandInput.vue.d.ts +2 -1
- package/dist/components/ui/data-table/DataTable.vue.d.ts +5 -4
- package/dist/components/ui/dialog/DialogContent.vue.d.ts +8 -0
- package/dist/components/ui/drawer/Drawer.vue.d.ts +4 -4
- package/dist/components/ui/input/Input.vue.d.ts +19 -1
- package/dist/components/ui/multi-select/MultiSelect.vue.d.ts +8 -4
- package/dist/components/ui/progress/Progress.vue.d.ts +26 -88
- package/dist/components/ui/progress/ProgressDefault.vue.d.ts +14 -0
- package/dist/components/ui/progress/ProgressGradient.vue.d.ts +25 -0
- package/dist/components/ui/progress/ProgressSectioned.vue.d.ts +36 -0
- package/dist/components/ui/progress/index.d.ts +5 -2
- package/dist/components/ui/progress/useProgressGeometry.d.ts +60 -0
- package/dist/components/ui/select/Select.vue.d.ts +2 -2
- package/dist/components/ui/select/SelectContent.vue.d.ts +1 -1
- package/dist/components/ui/select/SelectTrigger.vue.d.ts +3 -0
- package/dist/components/ui/sheet/index.d.ts +1 -1
- package/dist/components/ui/slider/index.d.ts +12 -11
- package/dist/components/ui/tags-input/TagsInput.vue.d.ts +2 -2
- package/dist/components/ui/textarea/Textarea.vue.d.ts +5 -1
- package/dist/components/ui/toast/Toast.vue.d.ts +4 -4
- package/dist/components/ui/toggle/Toggle.vue.d.ts +1 -1
- package/dist/components/ui/toggle/index.d.ts +1 -1
- package/dist/components/ui/toggle-group/toggleGroupContext.d.ts +2 -3
- package/dist/composables/color/index.d.ts +49 -0
- package/dist/composables/context/createContext.d.ts +56 -0
- package/dist/composables/context/index.d.ts +1 -0
- package/dist/composables/dark/darkModeSyncScript.d.ts +23 -0
- package/dist/composables/dark/index.d.ts +3 -0
- package/dist/composables/dark/useGlobalDark.d.ts +19 -2
- package/dist/composables/dom/index.d.ts +1 -3
- package/dist/composables/dom/useClipboard.d.ts +35 -12
- package/dist/composables/dom/useDocumentVisibility.d.ts +20 -0
- package/dist/composables/dom/useTextHighlight.d.ts +40 -0
- package/dist/composables/glass/webgl/compile.d.ts +15 -0
- package/dist/composables/glass/webgl/shaders/procedural-color.glsl.d.ts +3 -0
- package/dist/composables/glass/webgl/useWebGLCanvas.d.ts +55 -0
- package/dist/composables/motion/core/index.d.ts +2 -1
- package/dist/composables/motion/index.d.ts +1 -1
- package/dist/composables/motion/useCountup.d.ts +29 -0
- package/dist/composables/motion/usePrioritizedTask.d.ts +41 -0
- package/dist/composables/motion/vReveal.d.ts +2 -0
- package/dist/composables/sidebar/useSidebarState.d.ts +2 -2
- package/dist/composables/sortable/dragController.d.ts +44 -0
- package/dist/composables/sortable/dropResolver.d.ts +34 -0
- package/dist/composables/sortable/ghostRenderer.d.ts +44 -0
- package/dist/composables/sortable/index.d.ts +1 -1
- package/dist/composables/sortable/touchGate.d.ts +26 -0
- package/dist/composables/sortable/transitionTiming.d.ts +50 -0
- package/dist/composables/sortable/types.d.ts +133 -0
- package/dist/composables/sortable/useSortable.d.ts +25 -140
- package/dist/configurator.js +1 -1
- package/dist/confirm-dialog.js +3 -3
- package/dist/context-menu.js +2 -2
- package/dist/controls.js +5 -5
- package/dist/createContext-DBMGRlx4.js +25 -0
- package/dist/dark.d.ts +2 -1
- package/dist/dark.js +9 -2
- package/dist/data-table.js +1 -1
- package/dist/dialog.js +2 -2
- package/dist/disco-glyph.js +1 -1
- package/dist/dock.js +410 -254
- package/dist/dockContext-spUj_-E5.js +9 -0
- package/dist/dom.js +6 -5
- package/dist/{dropdown-menu-BvRUamNs.js → dropdown-menu-EFjl5iKo.js} +4 -4
- package/dist/dropdown-menu.js +1 -1
- package/dist/expandable-container.js +28 -22
- package/dist/fonts/README.md +21 -0
- package/dist/fonts/fraunces/fraunces-latin.woff2 +0 -0
- package/dist/forms.js +70 -61
- package/dist/glass-carousel.js +59 -52
- package/dist/glass-panel.js +2 -2
- package/dist/glass-ui.css +1 -1
- package/dist/glass-ui.js +159 -254
- package/dist/glyph-face.js +2 -2
- package/dist/goo-blob.d.ts +1 -0
- package/dist/goo-blob.js +538 -0
- package/dist/header-ribbon.js +3 -3
- package/dist/hover-card.js +1 -1
- package/dist/hover-popover.js +1 -1
- package/dist/icon-tooltip.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/instrument-chassis.js +1 -1
- package/dist/instrument-rail.js +1 -1
- package/dist/keyboard.js +1 -1
- package/dist/keys-BFoma9vm.js +9 -0
- package/dist/label.js +1 -1
- package/dist/labeled-field.js +57 -39
- package/dist/metric-badge.js +1 -1
- package/dist/metric-stack.js +1 -1
- package/dist/{minimize-2-LsCJ_eNt.js → minimize-2-BP27-qBY.js} +1 -1
- package/dist/motion-core.js +154 -135
- package/dist/motion.js +63 -15
- package/dist/notification.js +1 -1
- package/dist/number-field.js +1 -1
- package/dist/paper-backdrop.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/{presets-a-D93K1S.js → presets-1OhFpaIC.js} +5 -5
- package/dist/prng-Bz_1Tydc.js +15 -0
- package/dist/progress.js +2 -2
- package/dist/pulse.js +1 -1
- package/dist/reactive.js +2 -2
- package/dist/responsive-tabs.js +38 -32
- package/dist/scrolling-text.js +1 -1
- package/dist/{search-DBAiUABx.js → search-DBG8qaRs.js} +1 -1
- package/dist/search.js +153 -149
- package/dist/select.js +3 -3
- package/dist/separator.js +1 -1
- package/dist/{sheet-CukNDezz.js → sheet-CQYYrkr9.js} +3 -3
- package/dist/sheet.js +1 -1
- package/dist/{slider-DJvHkTRe.js → slider-BOh8ycfZ.js} +8 -12
- package/dist/slider.js +1 -1
- package/dist/sortable-list.js +37 -39
- package/dist/stacked-icons.js +2 -2
- package/dist/styles/animations.css +1 -1
- package/dist/styles/cards.css +1 -1
- package/dist/styles/components.css +45 -0
- package/dist/styles/dock-controls.css +486 -0
- package/dist/styles/dock.css +325 -431
- package/dist/styles/fonts.css +25 -0
- package/dist/styles/glass-specular-track.css +154 -0
- package/dist/styles/glass.css +74 -2
- package/dist/styles/index.css +25 -2
- package/dist/styles/instrument-chassis.css +11 -4
- package/dist/styles/theme.css +73 -21
- package/dist/styles/tokens.css +282 -140
- package/dist/styles/typography.css +14 -8
- package/dist/styles/utilities.css +92 -8
- package/dist/styles/view-transition.css +10 -4
- package/dist/switch.js +1 -1
- package/dist/tabs.js +148 -106
- package/dist/timeline.js +220 -159
- package/dist/toast.js +1 -1
- package/dist/toggle-group.js +1 -1
- package/dist/tokens.d.ts +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/typewriter.js +1 -1
- package/dist/{useAnimatedNumber-DKQYVB7s.js → useAnimatedNumber-BF6r64lA.js} +1 -1
- package/dist/useClipboard-D8vFyRCa.js +97 -0
- package/dist/useConfiguratorState-DUtC1jxr.js +276 -0
- package/dist/useGlobalDark-CWiaCoEw.js +34 -0
- package/dist/useIntersectionPause-DAdVPVp4.js +53 -0
- package/dist/useSortable-DnyGXKKY.js +246 -0
- package/dist/useTextHighlight-Dmtofpk2.js +72 -0
- package/dist/{useTouchGate-D9Zvrzyc.js → useTouchGate-CS5Csc2h.js} +1 -1
- package/dist/{useViewTransition-DYIK6Gzb.js → useViewTransition-D4ssvnXZ.js} +5 -3
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/platformSupport.d.ts +8 -0
- package/dist/utils/prng.d.ts +4 -0
- package/dist/vReveal-u2wSG2El.js +35 -0
- package/dist/watercolor-dot.d.ts +1 -0
- package/dist/watercolor-dot.js +129 -0
- package/dist/{x-q7pJa83X.js → x-C4pz9nbD.js} +1 -1
- package/package.json +110 -16
- package/src/fonts/README.md +21 -0
- package/src/fonts/fraunces/fraunces-latin.woff2 +0 -0
- package/src/styles/animations.css +1 -1
- package/src/styles/cards.css +1 -1
- package/src/styles/dock-controls.css +486 -0
- package/src/styles/dock.css +325 -431
- package/src/styles/fonts.css +25 -0
- package/src/styles/glass-specular-track.css +154 -0
- package/src/styles/glass.css +74 -2
- package/src/styles/index.css +21 -2
- package/src/styles/instrument-chassis.css +11 -4
- package/src/styles/theme.css +73 -21
- package/src/styles/tokens.css +282 -140
- package/src/styles/typography.css +14 -8
- package/src/styles/utilities.css +92 -8
- package/src/styles/view-transition.css +10 -4
- package/dist/DataTable-R8-Zidms.js +0 -460
- package/dist/DialogContent-2fALDSvc.js +0 -93
- package/dist/HoverPopover-CWFCfLx3.js +0 -96
- package/dist/Input-DDpFn568.js +0 -30
- package/dist/Progress-FApA9fm_.js +0 -126
- package/dist/UnderlineTabs-DAWMLmJG.js +0 -37
- package/dist/components/custom/aurora/shaders/aurora.frag.d.ts +0 -1
- package/dist/composables/dom/useBreakpoint.d.ts +0 -38
- package/dist/composables/dom/useIdleReady.d.ts +0 -63
- package/dist/composables/dom/useViewportReady.d.ts +0 -87
- package/dist/composables/glass/webgl/frostShader.d.ts +0 -27
- package/dist/composables/motion/useAnimatedNumberMap.d.ts +0 -29
- package/dist/composables/motion/useStagger.d.ts +0 -50
- package/dist/dockContext-D5NZCWJs.js +0 -16
- package/dist/keys-CaTQS-vx.js +0 -11
- package/dist/useConfiguratorState-CtRBE0m_.js +0 -268
- package/dist/useGlobalDark-B0WvLJE3.js +0 -24
- package/dist/useIdleReady-Cmkhm03v.js +0 -162
- package/dist/useIntersectionPause-IY2CwPQb.js +0 -39
- package/dist/useSortable-Cq2Y1JLO.js +0 -175
- /package/dist/{ContextMenuContent-otjFIu8v.js → ContextMenuContent-De01_83g.js} +0 -0
- /package/dist/{HoverCardContent-DaGrgJBO.js → HoverCardContent-ICfIMZX1.js} +0 -0
- /package/dist/{InstrumentChassis-CnHTMxds.js → InstrumentChassis-DaHIZCqy.js} +0 -0
- /package/dist/{InstrumentRail-C6dEbi8E.js → InstrumentRail-B0qqLFN0.js} +0 -0
- /package/dist/{Label-DJty89bp.js → Label-CZk-3nTc.js} +0 -0
- /package/dist/{ModalOverlay-iWiAgbYH.js → ModalOverlay-B_CBtqcE.js} +0 -0
- /package/dist/{PaperBackdrop-CeZ-w0R0.js → PaperBackdrop-D_YZW47j.js} +0 -0
- /package/dist/{SelectGroup-DdR4tdDY.js → SelectGroup-CMdoCjRE.js} +0 -0
- /package/dist/{SelectSeparator-CXm_hlqA.js → SelectSeparator-CaJnPF3_.js} +0 -0
- /package/dist/{Separator-D8AUMhxY.js → Separator-C2XtAXRp.js} +0 -0
- /package/dist/{Switch-Cr1t_F_U.js → Switch-x8n6husW.js} +0 -0
- /package/dist/{TooltipProvider-DE78vbEP.js → TooltipProvider-D-JrSqDu.js} +0 -0
- /package/dist/{_plugin-vue_export-helper-Dq1MygBL.js → _plugin-vue_export-helper-C1je1s0u.js} +0 -0
- /package/dist/{badge-x46my_Fo.js → badge-Cl6JZ1B7.js} +0 -0
- /package/dist/components/custom/aurora/{renderMode.d.ts → constants/renderMode.d.ts} +0 -0
- /package/dist/components/custom/aurora/{shaders → constants/shaders}/aurora.vert.d.ts +0 -0
- /package/dist/{constants-DwBwnG8N.js → constants-DsCdlK9I.js} +0 -0
- /package/dist/{createLucideIcon-Bn9a1b70.js → createLucideIcon-DuDoe_ra.js} +0 -0
- /package/dist/{menuItemVariants-BsbGNq9C.js → menuItemVariants-C2QlXqT3.js} +0 -0
- /package/dist/{useGlassRenderer-Ds-nmrGz.js → useGlassRenderer-Dn3WpfG-.js} +0 -0
- /package/dist/{useInterval-DVgGUf_y.js → useInterval-CHVYFpXV.js} +0 -0
- /package/dist/{useKeyboardShortcuts-Dpw_RUcB.js → useKeyboardShortcuts-BQfnAHHW.js} +0 -0
- /package/dist/{useResizeObserver-Cg9npuM3.js → useResizeObserver-DX-STszm.js} +0 -0
- /package/dist/{useSpringMount-Cfk1XK1R.js → useSpringMount-CnizvZGm.js} +0 -0
- /package/dist/{useTimer-NAaj9zNq.js → useTimer-DGgoxTXL.js} +0 -0
- /package/dist/{useUserInvalidAria-DVu1eTXG.js → useUserInvalidAria-DmvZ_6Dx.js} +0 -0
package/dist/search.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
|
-
import { n as t, t as n } from "./minimize-2-
|
|
3
|
-
import { t as r } from "./search-
|
|
4
|
-
import { t as i } from "./x-
|
|
5
|
-
import { n as a } from "./badge-
|
|
6
|
-
import { n as o } from "./button-
|
|
7
|
-
import { n as s, t as c } from "./DialogContent-
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
2
|
+
import { n as t, t as n } from "./minimize-2-BP27-qBY.js";
|
|
3
|
+
import { t as r } from "./search-DBG8qaRs.js";
|
|
4
|
+
import { t as i } from "./x-C4pz9nbD.js";
|
|
5
|
+
import { n as a } from "./badge-Cl6JZ1B7.js";
|
|
6
|
+
import { n as o } from "./button-Ckn3eDfB.js";
|
|
7
|
+
import { n as s, t as c } from "./DialogContent-IQ8_BRrC.js";
|
|
8
|
+
import { t as l } from "./useTextHighlight-Dmtofpk2.js";
|
|
9
|
+
import { n as u, r as d, t as f } from "./PopoverContent-B8WtJECb.js";
|
|
10
|
+
import { Fragment as p, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createTextVNode as y, createVNode as b, defineComponent as x, nextTick as S, normalizeClass as C, onScopeDispose as w, openBlock as T, ref as E, renderList as D, renderSlot as O, resolveDynamicComponent as k, toDisplayString as A, unref as j, watch as M, withCtx as N } from "vue";
|
|
10
11
|
//#region src/components/custom/search/composables/fuzzySearchIndex.ts
|
|
11
|
-
function
|
|
12
|
+
function P(e, t) {
|
|
12
13
|
let n = e.length, r = t.length;
|
|
13
14
|
if (n === 0) return {
|
|
14
15
|
score: 0,
|
|
@@ -32,11 +33,11 @@ function N(e, t) {
|
|
|
32
33
|
matches: i
|
|
33
34
|
});
|
|
34
35
|
}
|
|
35
|
-
function
|
|
36
|
+
function F(e, t) {
|
|
36
37
|
if (!t) return null;
|
|
37
38
|
let n = 0, r = [];
|
|
38
39
|
for (let i of e) {
|
|
39
|
-
let e =
|
|
40
|
+
let e = P(i, t);
|
|
40
41
|
if (!e) return null;
|
|
41
42
|
n += e.score;
|
|
42
43
|
for (let t of e.matches) r.push(t);
|
|
@@ -46,7 +47,7 @@ function P(e, t) {
|
|
|
46
47
|
matches: r
|
|
47
48
|
};
|
|
48
49
|
}
|
|
49
|
-
function
|
|
50
|
+
function I(e, t) {
|
|
50
51
|
let n = 0, r = [], i = [
|
|
51
52
|
[t._lc.label, 12],
|
|
52
53
|
[t._lc.type, 10],
|
|
@@ -54,7 +55,7 @@ function F(e, t) {
|
|
|
54
55
|
];
|
|
55
56
|
for (let [a, o] of i) {
|
|
56
57
|
if (!a) continue;
|
|
57
|
-
let i =
|
|
58
|
+
let i = F(e, a);
|
|
58
59
|
i && i.score * o > n && (n = i.score * o, r = a === t._lc.label ? i.matches : []);
|
|
59
60
|
}
|
|
60
61
|
return n <= 0 ? null : {
|
|
@@ -62,7 +63,7 @@ function F(e, t) {
|
|
|
62
63
|
matches: r
|
|
63
64
|
};
|
|
64
65
|
}
|
|
65
|
-
function
|
|
66
|
+
function L(e) {
|
|
66
67
|
return e.map((e) => ({
|
|
67
68
|
item: e,
|
|
68
69
|
_lc: {
|
|
@@ -72,15 +73,15 @@ function I(e) {
|
|
|
72
73
|
}
|
|
73
74
|
}));
|
|
74
75
|
}
|
|
75
|
-
var
|
|
76
|
-
function
|
|
77
|
-
let t =
|
|
78
|
-
return t || (t = /* @__PURE__ */ new Map(),
|
|
76
|
+
var R = /* @__PURE__ */ new WeakMap();
|
|
77
|
+
function z(e) {
|
|
78
|
+
let t = R.get(e);
|
|
79
|
+
return t || (t = /* @__PURE__ */ new Map(), R.set(e, t)), t;
|
|
79
80
|
}
|
|
80
|
-
function
|
|
81
|
+
function B(e, t, n = 30) {
|
|
81
82
|
let r = t.toLowerCase().trim();
|
|
82
83
|
if (!r) return [];
|
|
83
|
-
let i =
|
|
84
|
+
let i = z(e), a = i.get(r);
|
|
84
85
|
if (a) return a.slice(0, n);
|
|
85
86
|
i.size > 200 && i.clear();
|
|
86
87
|
let o = r.split(/\s+/).filter(Boolean);
|
|
@@ -99,7 +100,7 @@ function z(e, t, n = 30) {
|
|
|
99
100
|
}
|
|
100
101
|
let c = [];
|
|
101
102
|
for (let e of s) {
|
|
102
|
-
let t =
|
|
103
|
+
let t = I(o, e);
|
|
103
104
|
t && c.push({
|
|
104
105
|
item: e.item,
|
|
105
106
|
score: t.score,
|
|
@@ -108,22 +109,19 @@ function z(e, t, n = 30) {
|
|
|
108
109
|
}
|
|
109
110
|
return c.sort((e, t) => t.score - e.score), i.set(r, c), c.slice(0, n);
|
|
110
111
|
}
|
|
111
|
-
function
|
|
112
|
+
function V(e) {
|
|
112
113
|
if (e) {
|
|
113
|
-
|
|
114
|
+
R.delete(e);
|
|
114
115
|
return;
|
|
115
116
|
}
|
|
116
|
-
|
|
117
|
+
R = /* @__PURE__ */ new WeakMap();
|
|
117
118
|
}
|
|
118
119
|
//#endregion
|
|
119
120
|
//#region src/components/custom/search/FuzzySearch.vue?vue&type=script&setup=true&lang.ts
|
|
120
|
-
var
|
|
121
|
-
key: 0,
|
|
122
|
-
class: "flex-1 min-h-0 overflow-y-auto overscroll-contain p-1.5"
|
|
123
|
-
}, J = ["onClick", "onMouseenter"], Y = { class: "fuzzy-search-label flex-1 min-w-0 truncate text-base text-foreground/85" }, X = { key: 1 }, Z = {
|
|
121
|
+
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 = {
|
|
124
122
|
key: 1,
|
|
125
123
|
class: "px-4 py-8 text-center text-muted-foreground/60"
|
|
126
|
-
},
|
|
124
|
+
}, X = /* @__PURE__ */ x({
|
|
127
125
|
__name: "FuzzySearch",
|
|
128
126
|
props: {
|
|
129
127
|
state: {},
|
|
@@ -131,195 +129,201 @@ var V = ["placeholder", "value"], H = ["onClick", "onMouseenter"], U = { class:
|
|
|
131
129
|
placeholder: { default: "Search…" },
|
|
132
130
|
typeLabel: {}
|
|
133
131
|
},
|
|
134
|
-
setup(e, { expose:
|
|
135
|
-
let
|
|
136
|
-
get: () =>
|
|
132
|
+
setup(e, { expose: x }) {
|
|
133
|
+
let w = e, O = E(null), k = E(null), F = m({
|
|
134
|
+
get: () => w.state.isOpen.value && !w.state.isExpanded.value && w.state.results.value.length > 0,
|
|
137
135
|
set: (e) => {
|
|
138
|
-
e ||
|
|
136
|
+
e || w.state.close();
|
|
139
137
|
}
|
|
140
138
|
});
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
}),
|
|
144
|
-
e &&
|
|
145
|
-
}),
|
|
146
|
-
e &&
|
|
147
|
-
})
|
|
148
|
-
|
|
149
|
-
|
|
139
|
+
M(() => w.state.selectedIndex.value, () => {
|
|
140
|
+
S(() => document.querySelector(".fuzzy-search-result.is-selected")?.scrollIntoView({ block: "nearest" }));
|
|
141
|
+
}), M(() => w.state.isOpen.value, (e) => {
|
|
142
|
+
e && S(() => O.value?.focus());
|
|
143
|
+
}), M(() => w.state.isExpanded.value, (e) => {
|
|
144
|
+
e && S(() => k.value?.focus());
|
|
145
|
+
}), M([
|
|
146
|
+
() => w.state.query.value,
|
|
147
|
+
() => w.state.results.value,
|
|
148
|
+
() => w.state.isExpanded.value,
|
|
149
|
+
F
|
|
150
|
+
], () => {
|
|
151
|
+
Z(w.state.isExpanded.value ? B.value : F.value ? z.value : null);
|
|
152
|
+
}, { flush: "post" });
|
|
153
|
+
function I() {
|
|
154
|
+
O.value?.focus();
|
|
150
155
|
}
|
|
151
|
-
|
|
152
|
-
function
|
|
156
|
+
x({ focus: I });
|
|
157
|
+
function L(e) {
|
|
153
158
|
return e.item.label || e.item.text.slice(0, 120);
|
|
154
159
|
}
|
|
155
|
-
function
|
|
156
|
-
return
|
|
160
|
+
function R(e) {
|
|
161
|
+
return w.typeLabel ? w.typeLabel(e.item) : e.item.type ?? "";
|
|
157
162
|
}
|
|
158
|
-
|
|
159
|
-
|
|
163
|
+
let z = E(null), B = E(null), V = l("glass-search-mark");
|
|
164
|
+
function X(e, t) {
|
|
160
165
|
let n = t.toLowerCase().trim().split(/\s+/).filter(Boolean);
|
|
161
|
-
if (n.length === 0) return [
|
|
162
|
-
text: e,
|
|
163
|
-
matched: !1
|
|
164
|
-
}];
|
|
166
|
+
if (n.length === 0) return [];
|
|
165
167
|
let r = e.toLowerCase(), i = /* @__PURE__ */ new Set();
|
|
166
168
|
for (let e of n) {
|
|
167
|
-
let t =
|
|
169
|
+
let t = P(e, r);
|
|
168
170
|
if (t) for (let e of t.matches) i.add(e);
|
|
169
171
|
}
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
172
|
+
let a = [];
|
|
173
|
+
for (let e of [...i].sort((e, t) => e - t)) {
|
|
174
|
+
let t = a[a.length - 1];
|
|
175
|
+
t && t.end === e ? t.end = e + 1 : a.push({
|
|
176
|
+
start: e,
|
|
177
|
+
end: e + 1
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
return a;
|
|
181
|
+
}
|
|
182
|
+
function Z(e) {
|
|
183
|
+
if (!e) {
|
|
184
|
+
V.clear();
|
|
185
|
+
return;
|
|
181
186
|
}
|
|
182
|
-
|
|
183
|
-
text: e.slice(o),
|
|
184
|
-
matched: s
|
|
185
|
-
}), a;
|
|
187
|
+
S(() => V.setFromMatches(e, w.state.query.value, X));
|
|
186
188
|
}
|
|
187
|
-
return (
|
|
188
|
-
open:
|
|
189
|
-
"onUpdate:open":
|
|
189
|
+
return (l, m) => (T(), _("div", { class: C(["fuzzy-search relative", `fuzzy-search--${e.variant}`]) }, [b(j(d), {
|
|
190
|
+
open: F.value,
|
|
191
|
+
"onUpdate:open": m[6] ||= (e) => F.value = e
|
|
190
192
|
}, {
|
|
191
|
-
default:
|
|
192
|
-
default:
|
|
193
|
-
|
|
194
|
-
|
|
193
|
+
default: N(() => [b(j(u), { "as-child": "" }, {
|
|
194
|
+
default: N(() => [v("div", { class: C(["input-bar", e.variant === "floating" && "!border-none !bg-transparent !p-0 !rounded-none"]) }, [
|
|
195
|
+
b(j(r), { class: "h-3.5 w-3.5 shrink-0 text-muted-foreground/70" }),
|
|
196
|
+
v("input", {
|
|
195
197
|
ref_key: "inputRef",
|
|
196
|
-
ref:
|
|
198
|
+
ref: O,
|
|
197
199
|
type: "text",
|
|
198
200
|
class: "input-bar-field text-sm",
|
|
199
201
|
placeholder: e.placeholder,
|
|
200
202
|
value: e.state.query.value,
|
|
201
|
-
onInput:
|
|
202
|
-
onKeydown:
|
|
203
|
-
onFocus:
|
|
204
|
-
}, null, 40,
|
|
205
|
-
e.state.query.value && e.state.results.value.length > 0 ? (
|
|
203
|
+
onInput: m[0] ||= (t) => e.state.query.value = t.target.value,
|
|
204
|
+
onKeydown: m[1] ||= (...t) => e.state.onKeydown && e.state.onKeydown(...t),
|
|
205
|
+
onFocus: m[2] ||= (t) => e.state.isOpen.value = !0
|
|
206
|
+
}, null, 40, H),
|
|
207
|
+
e.state.query.value && e.state.results.value.length > 0 ? (T(), h(j(o), {
|
|
206
208
|
key: 0,
|
|
207
209
|
type: "button",
|
|
208
210
|
variant: "ghost",
|
|
209
211
|
size: "icon",
|
|
210
212
|
class: "!h-6 !w-6",
|
|
211
213
|
title: e.state.isExpanded.value ? "Collapse" : "Expand",
|
|
212
|
-
onClick:
|
|
214
|
+
onClick: m[3] ||= (t) => e.state.toggleExpanded()
|
|
213
215
|
}, {
|
|
214
|
-
default:
|
|
216
|
+
default: N(() => [e.state.isExpanded.value ? (T(), h(j(n), {
|
|
215
217
|
key: 1,
|
|
216
218
|
class: "h-3 w-3"
|
|
217
|
-
})) : (
|
|
219
|
+
})) : (T(), h(j(t), {
|
|
218
220
|
key: 0,
|
|
219
221
|
class: "h-3 w-3"
|
|
220
222
|
}))]),
|
|
221
223
|
_: 1
|
|
222
|
-
}, 8, ["title"])) :
|
|
223
|
-
e.state.query.value ? (
|
|
224
|
+
}, 8, ["title"])) : g("", !0),
|
|
225
|
+
e.state.query.value ? (T(), h(j(o), {
|
|
224
226
|
key: 1,
|
|
225
227
|
type: "button",
|
|
226
228
|
variant: "ghost",
|
|
227
229
|
size: "icon",
|
|
228
230
|
class: "!h-6 !w-6",
|
|
229
231
|
title: "Clear search",
|
|
230
|
-
onClick:
|
|
232
|
+
onClick: m[4] ||= (t) => e.state.close()
|
|
231
233
|
}, {
|
|
232
|
-
default:
|
|
234
|
+
default: N(() => [b(j(i), { class: "h-3 w-3" })]),
|
|
233
235
|
_: 1
|
|
234
|
-
})) :
|
|
236
|
+
})) : g("", !0)
|
|
235
237
|
], 2)]),
|
|
236
238
|
_: 1
|
|
237
|
-
}),
|
|
239
|
+
}), b(j(f), {
|
|
238
240
|
align: "start",
|
|
239
241
|
"side-offset": 4,
|
|
240
242
|
portal: !1,
|
|
241
243
|
class: "w-[var(--reka-popover-trigger-width)] max-h-[50vh] overflow-y-auto overscroll-contain p-1",
|
|
242
|
-
onOpenAutoFocus:
|
|
244
|
+
onOpenAutoFocus: m[5] ||= (e) => e.preventDefault()
|
|
243
245
|
}, {
|
|
244
|
-
default:
|
|
246
|
+
default: N(() => [v("div", {
|
|
247
|
+
ref_key: "inlineListRef",
|
|
248
|
+
ref: z
|
|
249
|
+
}, [(T(!0), _(p, null, D(e.state.results.value, (t, n) => (T(), _("button", {
|
|
245
250
|
key: `${t.item.id}-${t.item.type}-${n}`,
|
|
246
251
|
type: "button",
|
|
247
|
-
class:
|
|
252
|
+
class: C(["fuzzy-search-result interactive-item flex w-full items-baseline gap-1.5 px-2 py-1.5 text-left text-sm", { "is-selected bg-muted/50": n === e.state.selectedIndex.value }]),
|
|
248
253
|
onClick: (n) => e.state.selectResult(t),
|
|
249
254
|
onMouseenter: (t) => e.state.selectedIndex.value = n
|
|
250
|
-
}, [
|
|
255
|
+
}, [R(t) ? (T(), h(j(a), {
|
|
251
256
|
key: 0,
|
|
252
257
|
variant: "secondary",
|
|
253
258
|
class: "shrink-0 text-[0.6rem] font-bold uppercase tracking-wider"
|
|
254
259
|
}, {
|
|
255
|
-
default:
|
|
260
|
+
default: N(() => [y(A(R(t)), 1)]),
|
|
256
261
|
_: 2
|
|
257
|
-
}, 1024)) :
|
|
258
|
-
key: 0,
|
|
259
|
-
class: S(Q)
|
|
260
|
-
}, k(e.text), 1)) : (w(), g("span", W, k(e.text), 1))], 64))), 128))])], 42, H))), 128))]),
|
|
262
|
+
}, 1024)) : g("", !0), v("span", W, A(L(t)), 1)], 42, U))), 128))], 512)]),
|
|
261
263
|
_: 1
|
|
262
264
|
})]),
|
|
263
265
|
_: 1
|
|
264
|
-
}, 8, ["open"]),
|
|
266
|
+
}, 8, ["open"]), b(j(s), {
|
|
265
267
|
open: e.state.isExpanded.value,
|
|
266
|
-
"onUpdate:open":
|
|
268
|
+
"onUpdate:open": m[11] ||= (t) => e.state.isExpanded.value = t
|
|
267
269
|
}, {
|
|
268
|
-
default:
|
|
270
|
+
default: N(() => [b(j(c), {
|
|
269
271
|
variant: "opaque",
|
|
270
272
|
class: "!max-w-[36rem] !top-[12vh] !translate-y-0 max-h-[70vh] !p-0 overflow-hidden flex flex-col gap-0",
|
|
271
|
-
onOpenAutoFocus:
|
|
273
|
+
onOpenAutoFocus: m[10] ||= (e) => e.preventDefault()
|
|
272
274
|
}, {
|
|
273
|
-
default:
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
275
|
+
default: N(() => [
|
|
276
|
+
v("div", G, [
|
|
277
|
+
b(j(r), { class: "h-4 w-4 shrink-0 text-muted-foreground/70" }),
|
|
278
|
+
v("input", {
|
|
277
279
|
ref_key: "modalInputRef",
|
|
278
|
-
ref:
|
|
280
|
+
ref: k,
|
|
279
281
|
type: "text",
|
|
280
282
|
class: "input-bar-field flex-1 text-base",
|
|
281
283
|
placeholder: e.placeholder,
|
|
282
284
|
value: e.state.query.value,
|
|
283
|
-
onInput:
|
|
284
|
-
onKeydown:
|
|
285
|
+
onInput: m[7] ||= (t) => e.state.query.value = t.target.value,
|
|
286
|
+
onKeydown: m[8] ||= (...t) => e.state.onKeydown && e.state.onKeydown(...t)
|
|
285
287
|
}, null, 40, K),
|
|
286
|
-
|
|
288
|
+
b(j(o), {
|
|
287
289
|
type: "button",
|
|
288
290
|
variant: "ghost",
|
|
289
291
|
size: "icon",
|
|
290
292
|
class: "!h-7 !w-7",
|
|
291
293
|
title: "Collapse",
|
|
292
|
-
onClick:
|
|
294
|
+
onClick: m[9] ||= (t) => e.state.toggleExpanded()
|
|
293
295
|
}, {
|
|
294
|
-
default:
|
|
296
|
+
default: N(() => [b(j(n), { class: "h-3.5 w-3.5" })]),
|
|
295
297
|
_: 1
|
|
296
298
|
})
|
|
297
299
|
]),
|
|
298
|
-
e.state.results.value.length > 0 ? (
|
|
300
|
+
e.state.results.value.length > 0 ? (T(), _("div", {
|
|
301
|
+
key: 0,
|
|
302
|
+
ref_key: "modalListRef",
|
|
303
|
+
ref: B,
|
|
304
|
+
class: "flex-1 min-h-0 overflow-y-auto overscroll-contain p-1.5"
|
|
305
|
+
}, [(T(!0), _(p, null, D(e.state.results.value, (t, n) => (T(), _("button", {
|
|
299
306
|
key: `modal-${t.item.id}-${t.item.type}-${n}`,
|
|
300
307
|
type: "button",
|
|
301
|
-
class:
|
|
308
|
+
class: C(["fuzzy-search-result interactive-item flex w-full items-baseline gap-1.5 px-2.5 py-2 text-left", { "is-selected bg-muted/50": n === e.state.selectedIndex.value }]),
|
|
302
309
|
onClick: (n) => e.state.selectResult(t),
|
|
303
310
|
onMouseenter: (t) => e.state.selectedIndex.value = n
|
|
304
|
-
}, [
|
|
311
|
+
}, [R(t) ? (T(), h(j(a), {
|
|
305
312
|
key: 0,
|
|
306
313
|
variant: "secondary",
|
|
307
314
|
class: "shrink-0 text-[0.65rem] font-bold uppercase tracking-wider"
|
|
308
315
|
}, {
|
|
309
|
-
default:
|
|
316
|
+
default: N(() => [y(A(R(t)), 1)]),
|
|
310
317
|
_: 2
|
|
311
|
-
}, 1024)) :
|
|
312
|
-
|
|
313
|
-
class:
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
_("kbd", { class: "kbd" }, "↑"),
|
|
318
|
-
_("kbd", { class: "kbd" }, "↓"),
|
|
319
|
-
v(" navigate")
|
|
318
|
+
}, 1024)) : g("", !0), v("span", J, A(L(t)), 1)], 42, q))), 128))], 512)) : (T(), _("div", Y, "No results")),
|
|
319
|
+
m[12] ||= v("div", { class: "flex items-center gap-4 border-t border-border/50 px-3.5 py-2 text-mono-caption text-muted-foreground/60" }, [
|
|
320
|
+
v("span", { class: "flex items-center gap-1" }, [
|
|
321
|
+
v("kbd", { class: "kbd" }, "↑"),
|
|
322
|
+
v("kbd", { class: "kbd" }, "↓"),
|
|
323
|
+
y(" navigate")
|
|
320
324
|
]),
|
|
321
|
-
|
|
322
|
-
|
|
325
|
+
v("span", { class: "flex items-center gap-1" }, [v("kbd", { class: "kbd" }, "↵"), y(" select")]),
|
|
326
|
+
v("span", { class: "flex items-center gap-1" }, [v("kbd", { class: "kbd" }, "esc"), y(" close")])
|
|
323
327
|
], -1)
|
|
324
328
|
]),
|
|
325
329
|
_: 1
|
|
@@ -327,7 +331,7 @@ var V = ["placeholder", "value"], H = ["onClick", "onMouseenter"], U = { class:
|
|
|
327
331
|
_: 1
|
|
328
332
|
}, 8, ["open"])], 2));
|
|
329
333
|
}
|
|
330
|
-
}),
|
|
334
|
+
}), Z = ["value", "placeholder"], Q = /* @__PURE__ */ x({
|
|
331
335
|
__name: "SearchBar",
|
|
332
336
|
props: {
|
|
333
337
|
modelValue: { default: "" },
|
|
@@ -337,19 +341,19 @@ var V = ["placeholder", "value"], H = ["onClick", "onMouseenter"], U = { class:
|
|
|
337
341
|
},
|
|
338
342
|
emits: ["update:modelValue"],
|
|
339
343
|
setup(t, { expose: n, emit: i }) {
|
|
340
|
-
let a = i, o =
|
|
341
|
-
return n({ inputRef: o }), (n, i) => (
|
|
342
|
-
default:
|
|
343
|
-
(
|
|
344
|
-
|
|
344
|
+
let a = i, o = E(null);
|
|
345
|
+
return n({ inputRef: o }), (n, i) => (T(), h(k(t.tag), { class: C(j(e)("input-bar", n.$attrs.class)) }, {
|
|
346
|
+
default: N(() => [
|
|
347
|
+
(T(), h(k(t.icon ?? j(r)), { class: "w-3.5 h-3.5 text-muted-foreground shrink-0" })),
|
|
348
|
+
v("input", {
|
|
345
349
|
ref_key: "inputRef",
|
|
346
350
|
ref: o,
|
|
347
351
|
value: t.modelValue,
|
|
348
352
|
placeholder: t.placeholder,
|
|
349
353
|
class: "input-bar-field",
|
|
350
354
|
onInput: i[0] ||= (e) => a("update:modelValue", e.target.value)
|
|
351
|
-
}, null, 40,
|
|
352
|
-
|
|
355
|
+
}, null, 40, Z),
|
|
356
|
+
O(n.$slots, "default")
|
|
353
357
|
]),
|
|
354
358
|
_: 3
|
|
355
359
|
}, 8, ["class"]));
|
|
@@ -357,12 +361,12 @@ var V = ["placeholder", "value"], H = ["onClick", "onMouseenter"], U = { class:
|
|
|
357
361
|
});
|
|
358
362
|
//#endregion
|
|
359
363
|
//#region src/components/custom/search/composables/useFuzzySearch.ts
|
|
360
|
-
function
|
|
361
|
-
let t = typeof e.items == "function" ? e.items : () => e.items, n = e.debounceMs ?? 120, r = e.maxResults ?? 30, i =
|
|
364
|
+
function $(e) {
|
|
365
|
+
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;
|
|
362
366
|
function f(e = d) {
|
|
363
367
|
e !== void 0 && (clearTimeout(e), d === e && (d = void 0));
|
|
364
368
|
}
|
|
365
|
-
|
|
369
|
+
M(i, (e, t, r) => {
|
|
366
370
|
if (f(), !e || n <= 0) {
|
|
367
371
|
c.value = e;
|
|
368
372
|
return;
|
|
@@ -371,18 +375,18 @@ function ne(e) {
|
|
|
371
375
|
d === i && (c.value = e, d = void 0);
|
|
372
376
|
}, n);
|
|
373
377
|
d = i, r(() => f(i));
|
|
374
|
-
}),
|
|
378
|
+
}), M(l, () => {
|
|
375
379
|
f(), c.value = i.value, s.value = 0;
|
|
376
380
|
}, { deep: !0 });
|
|
377
|
-
let
|
|
378
|
-
|
|
381
|
+
let p = m(() => B(u.value, c.value, r));
|
|
382
|
+
M(p, () => {
|
|
379
383
|
s.value = 0;
|
|
380
384
|
});
|
|
381
385
|
function h(t) {
|
|
382
386
|
e.onSelect?.(t), g();
|
|
383
387
|
}
|
|
384
388
|
function g() {
|
|
385
|
-
a.value = !1, o.value = !1, f(), i.value = "", c.value = "", s.value = 0,
|
|
389
|
+
a.value = !1, o.value = !1, f(), i.value = "", c.value = "", s.value = 0, V(u.value);
|
|
386
390
|
}
|
|
387
391
|
function _() {
|
|
388
392
|
a.value = !0;
|
|
@@ -393,24 +397,24 @@ function ne(e) {
|
|
|
393
397
|
function y(e) {
|
|
394
398
|
switch (e.key) {
|
|
395
399
|
case "ArrowDown":
|
|
396
|
-
e.preventDefault(), s.value <
|
|
400
|
+
e.preventDefault(), s.value < p.value.length - 1 && s.value++;
|
|
397
401
|
break;
|
|
398
402
|
case "ArrowUp":
|
|
399
403
|
e.preventDefault(), s.value > 0 && s.value--;
|
|
400
404
|
break;
|
|
401
405
|
case "Enter":
|
|
402
|
-
e.preventDefault(),
|
|
406
|
+
e.preventDefault(), p.value[s.value] && h(p.value[s.value]);
|
|
403
407
|
break;
|
|
404
408
|
case "Escape":
|
|
405
409
|
e.preventDefault(), o.value ? o.value = !1 : g();
|
|
406
410
|
break;
|
|
407
411
|
}
|
|
408
412
|
}
|
|
409
|
-
return
|
|
410
|
-
f(),
|
|
413
|
+
return w(() => {
|
|
414
|
+
f(), V(u.value);
|
|
411
415
|
}, !0), {
|
|
412
416
|
query: i,
|
|
413
|
-
results:
|
|
417
|
+
results: p,
|
|
414
418
|
isOpen: a,
|
|
415
419
|
isExpanded: o,
|
|
416
420
|
selectedIndex: s,
|
|
@@ -422,4 +426,4 @@ function ne(e) {
|
|
|
422
426
|
};
|
|
423
427
|
}
|
|
424
428
|
//#endregion
|
|
425
|
-
export {
|
|
429
|
+
export { X as FuzzySearch, Q as SearchBar, L as buildIndex, V as clearSearchCache, P as fuzzyMatch, B as searchIndex, $ 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-BGn3rjs9.js";
|
|
2
|
+
import { t as s } from "./SelectGroup-CMdoCjRE.js";
|
|
3
|
+
import { n as c, t as l } from "./SelectSeparator-CaJnPF3_.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 };
|
package/dist/separator.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./Separator-
|
|
1
|
+
import { t as e } from "./Separator-C2XtAXRp.js";
|
|
2
2
|
export { e as Separator };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
|
-
import { t } from "./x-
|
|
3
|
-
import { t as n } from "./useSpringMount-
|
|
4
|
-
import { t as r } from "./ModalOverlay-
|
|
2
|
+
import { t } from "./x-C4pz9nbD.js";
|
|
3
|
+
import { t as n } from "./useSpringMount-CnizvZGm.js";
|
|
4
|
+
import { t as r } from "./ModalOverlay-B_CBtqcE.js";
|
|
5
5
|
import { computed as i, createBlock as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, guardReactiveProps as u, mergeProps as d, normalizeClass as f, normalizeProps as p, openBlock as m, renderSlot as h, toHandlers as g, unref as _, withCtx as v } from "vue";
|
|
6
6
|
import { DialogClose as y, DialogContent as b, DialogDescription as x, DialogPortal as S, DialogRoot as C, DialogTitle as w, DialogTrigger as T, injectDialogRootContext as E, useForwardPropsEmits as D } from "reka-ui";
|
|
7
7
|
import { cva as O } from "class-variance-authority";
|
package/dist/sheet.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "./sheet-
|
|
1
|
+
import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "./sheet-CQYYrkr9.js";
|
|
2
2
|
export { r as Sheet, s as SheetClose, a as SheetContent, o as SheetDescription, i as SheetFooter, e as SheetHeader, n as SheetTitle, t as SheetTrigger, c as sheetVariants };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
|
-
import { t } from "./_plugin-vue_export-helper-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { t } from "./_plugin-vue_export-helper-C1je1s0u.js";
|
|
3
|
+
import { t as n } from "./useTouchGate-CS5Csc2h.js";
|
|
4
|
+
import { i as r } from "./dockContext-spUj_-E5.js";
|
|
5
5
|
import { Fragment as i, computed as a, createBlock as o, createElementBlock as s, createVNode as c, defineComponent as l, mergeProps as u, onBeforeUnmount as d, openBlock as f, renderList as p, unref as m, useTemplateRef as h, watch as g, withCtx as _ } from "vue";
|
|
6
6
|
import { SliderRange as v, SliderRoot as y, SliderThumb as b, SliderTrack as x, useForwardPropsEmits as S } from "reka-ui";
|
|
7
7
|
import { cva as C } from "class-variance-authority";
|
|
@@ -40,8 +40,8 @@ var w = /* @__PURE__ */ t(/* @__PURE__ */ l({
|
|
|
40
40
|
setup(t, { emit: l }) {
|
|
41
41
|
let C = t, w = l, E = a(() => C.variant ?? "standard"), D = a(() => C.size ?? "md"), O = a(() => C.keepDockOpen ?? !0), k = S(a(() => {
|
|
42
42
|
let { class: e, variant: t, size: n, keepDockOpen: r, ...i } = C;
|
|
43
|
-
return
|
|
44
|
-
}), w), A =
|
|
43
|
+
return E.value === "spectrum" && !i.thumbAlignment && (i.thumbAlignment = "contain"), i;
|
|
44
|
+
}), w), A = r(), j = !1;
|
|
45
45
|
function M() {
|
|
46
46
|
!O.value || j || (A?.keepOpen(), j = !0);
|
|
47
47
|
}
|
|
@@ -55,7 +55,7 @@ var w = /* @__PURE__ */ t(/* @__PURE__ */ l({
|
|
|
55
55
|
};
|
|
56
56
|
window.addEventListener("pointerup", e), window.addEventListener("pointercancel", e);
|
|
57
57
|
}
|
|
58
|
-
let F = h("sliderRootRef"), I =
|
|
58
|
+
let F = h("sliderRootRef"), I = n();
|
|
59
59
|
function L() {
|
|
60
60
|
let e = F.value;
|
|
61
61
|
return e ? e instanceof HTMLElement ? e : e.$el ?? null : null;
|
|
@@ -108,15 +108,11 @@ var w = /* @__PURE__ */ t(/* @__PURE__ */ l({
|
|
|
108
108
|
"data-touch-active"
|
|
109
109
|
]));
|
|
110
110
|
}
|
|
111
|
-
}), [["__scopeId", "data-v-
|
|
111
|
+
}), [["__scopeId", "data-v-78e48602"]]), T = C("glass-slider focus-ring relative flex w-full touch-none select-none items-center transition-colors", {
|
|
112
112
|
variants: {
|
|
113
113
|
variant: {
|
|
114
114
|
standard: "",
|
|
115
|
-
spectrum: ""
|
|
116
|
-
timeline: "",
|
|
117
|
-
"glass-pill": "",
|
|
118
|
-
"glass-cartoon": "",
|
|
119
|
-
"glass-scrubber": ""
|
|
115
|
+
spectrum: ""
|
|
120
116
|
},
|
|
121
117
|
size: {
|
|
122
118
|
sm: "[--slider-track-height:0.25rem] [--slider-thumb-size:0.75rem]",
|
package/dist/slider.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./slider-
|
|
1
|
+
import { n as e, t } from "./slider-BOh8ycfZ.js";
|
|
2
2
|
export { e as Slider, t as sliderVariants };
|