fancy-ui-vue 0.2.0 → 0.4.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/PORTING.md +123 -2
- package/README.md +20 -15
- package/dist/components/accordion/Accordion.vue.d.ts +44 -0
- package/dist/components/accordion/Accordion.vue.js +88 -0
- package/dist/components/accordion/Accordion.vue2.js +4 -0
- package/dist/components/accordion/AccordionContent.vue.d.ts +25 -0
- package/dist/components/accordion/AccordionContent.vue.js +42 -0
- package/dist/components/accordion/AccordionContent.vue2.js +4 -0
- package/dist/components/accordion/AccordionItem.vue.d.ts +21 -0
- package/dist/components/accordion/AccordionItem.vue.js +66 -0
- package/dist/components/accordion/AccordionItem.vue2.js +4 -0
- package/dist/components/accordion/AccordionTrigger.vue.d.ts +24 -0
- package/dist/components/accordion/AccordionTrigger.vue.js +83 -0
- package/dist/components/accordion/AccordionTrigger.vue2.js +4 -0
- package/dist/components/accordion/accordion-core.d.ts +35 -0
- package/dist/components/accordion/accordion-core.js +44 -0
- package/dist/components/accordion/index.d.ts +11 -0
- package/dist/components/accordion/types.d.ts +45 -0
- package/dist/components/accordion/types.js +7 -0
- package/dist/components/alert-dialog/AlertDialog.vue.js +22 -3
- package/dist/components/animated-testimonials/AnimatedTestimonials.vue.js +3 -3
- package/dist/components/apple-card-carousel/AppleCard.vue.js +1 -1
- package/dist/components/autocomplete/Autocomplete.vue.js +1 -1
- package/dist/components/autocomplete/Autocomplete.vue2.js +22 -15
- package/dist/components/avatar/Avatar.vue.d.ts +27 -0
- package/dist/components/avatar/Avatar.vue.js +119 -0
- package/dist/components/avatar/Avatar.vue2.js +4 -0
- package/dist/components/avatar/avatar-core.d.ts +40 -0
- package/dist/components/avatar/avatar-core.js +57 -0
- package/dist/components/avatar/index.d.ts +2 -0
- package/dist/components/badge/Badge.vue.d.ts +21 -0
- package/dist/components/badge/Badge.vue.js +46 -0
- package/dist/components/badge/Badge.vue2.js +4 -0
- package/dist/components/badge/index.d.ts +2 -0
- package/dist/components/bento-grid/BentoFrame.vue.js +1 -1
- package/dist/components/bento-grid/BentoFrame.vue2.js +6 -5
- package/dist/components/bento-grid/BentoGrid.vue.js +1 -1
- package/dist/components/bento-grid/BentoGrid.vue2.js +12 -12
- package/dist/components/bento-grid/BentoGridCard.vue.js +6 -5
- package/dist/components/bento-grid/BentoGridItem.vue.js +6 -5
- package/dist/components/bg-falling-stars/FallingStarsBg.vue.d.ts +1 -1
- package/dist/components/bg-falling-stars/FallingStarsBg.vue.js +1 -1
- package/dist/components/bg-falling-stars/bg-falling-stars-core.d.ts +1 -1
- package/dist/components/bg-falling-stars/bg-falling-stars-core.js +47 -12
- package/dist/components/book/Book.vue.js +8 -9
- package/dist/components/book/BookDescription.vue.js +6 -5
- package/dist/components/book/BookHeader.vue.js +6 -5
- package/dist/components/book/BookTitle.vue.js +6 -5
- package/dist/components/box-reveal/BoxReveal.vue.js +6 -5
- package/dist/components/button/Button.vue.d.ts +6 -4
- package/dist/components/button/Button.vue.js +1 -1
- package/dist/components/button/Button.vue2.js +50 -22
- package/dist/components/card-3d/CardContainer.vue.js +1 -1
- package/dist/components/card-3d/CardItem.vue.js +1 -1
- package/dist/components/card-spotlight/CardSpotlight.vue.js +1 -1
- package/dist/components/chat-message/ChatMessageAction.vue.d.ts +4 -2
- package/dist/components/chat-message/ChatMessageAction.vue.js +4 -2
- package/dist/components/checkbox/Checkbox.vue.d.ts +2 -0
- package/dist/components/checkbox/Checkbox.vue.js +1 -1
- package/dist/components/checkbox/Checkbox.vue2.js +17 -7
- package/dist/components/collapsible/Collapsible.vue.d.ts +31 -0
- package/dist/components/collapsible/Collapsible.vue.js +60 -0
- package/dist/components/collapsible/Collapsible.vue2.js +4 -0
- package/dist/components/collapsible/CollapsibleContent.vue.d.ts +26 -0
- package/dist/components/collapsible/CollapsibleContent.vue.js +81 -0
- package/dist/components/collapsible/CollapsibleContent.vue2.js +4 -0
- package/dist/components/collapsible/CollapsibleTrigger.vue.d.ts +21 -0
- package/dist/components/collapsible/CollapsibleTrigger.vue.js +57 -0
- package/dist/components/collapsible/CollapsibleTrigger.vue2.js +4 -0
- package/dist/components/collapsible/collapsible-core.d.ts +47 -0
- package/dist/components/collapsible/collapsible-core.js +40 -0
- package/dist/components/collapsible/index.d.ts +8 -0
- package/dist/components/collapsible/types.d.ts +24 -0
- package/dist/components/collapsible/types.js +5 -0
- package/dist/components/combobox/Combobox.vue.js +1 -1
- package/dist/components/combobox/Combobox.vue2.js +24 -16
- package/dist/components/command-menu/CommandMenu.vue.d.ts +5 -0
- package/dist/components/command-menu/CommandMenu.vue.js +1 -1
- package/dist/components/command-menu/CommandMenu.vue2.js +5 -2
- package/dist/components/compare/Compare.vue.d.ts +15 -5
- package/dist/components/compare/Compare.vue.js +1 -1
- package/dist/components/compare/Compare.vue2.js +28 -13
- package/dist/components/composer/ComposerInput.vue.js +1 -1
- package/dist/components/composer/ComposerInput.vue2.js +11 -11
- package/dist/components/composer/ComposerModelPicker.vue.d.ts +4 -0
- package/dist/components/composer/ComposerModelPicker.vue.js +1 -1
- package/dist/components/composer/ComposerModelPicker.vue2.js +29 -15
- package/dist/components/composer/ComposerSubmit.vue.d.ts +2 -0
- package/dist/components/composer/ComposerSubmit.vue.js +16 -15
- package/dist/components/confetti/ConfettiButton.vue.d.ts +9 -2
- package/dist/components/confetti/ConfettiButton.vue.js +24 -6
- package/dist/components/container-text-flip/ContainerTextFlip.vue.js +1 -1
- package/dist/components/container-text-flip/ContainerTextFlip.vue2.js +12 -13
- package/dist/components/copy-button/CopyButton.vue.d.ts +5 -0
- package/dist/components/copy-button/CopyButton.vue.js +1 -1
- package/dist/components/copy-button/CopyButton.vue2.js +72 -11
- package/dist/components/datamosh-transition/DatamoshTransition.vue.d.ts +6 -2
- package/dist/components/datamosh-transition/DatamoshTransition.vue.js +7 -4
- package/dist/components/date-picker/DatePicker.vue.js +1 -1
- package/dist/components/date-picker/DatePicker.vue2.js +27 -21
- package/dist/components/dialog/Dialog.vue.js +20 -1
- package/dist/components/dialog/DialogSurface.vue.js +1 -1
- package/dist/components/dialog/DialogSurface.vue2.js +5 -2
- package/dist/components/dialog/types.d.ts +2 -0
- package/dist/components/direction-aware-hover/DirectionAwareHover.vue.js +1 -1
- package/dist/components/direction-aware-hover/DirectionAwareHover.vue2.js +9 -7
- package/dist/components/displacement-text/DisplacementText.vue.d.ts +4 -1
- package/dist/components/displacement-text/DisplacementText.vue.js +38 -11
- package/dist/components/displacement-text/displacement-text-core.d.ts +94 -4
- package/dist/components/displacement-text/displacement-text-core.js +287 -97
- package/dist/components/drawer/Drawer.vue.d.ts +5 -0
- package/dist/components/drawer/Drawer.vue.js +1 -1
- package/dist/components/drawer/Drawer.vue2.js +5 -2
- package/dist/components/dropdown-menu/DropdownMenuContent.vue.js +2 -1
- package/dist/components/dropdown-menu/DropdownMenuItem.vue.d.ts +4 -0
- package/dist/components/dropdown-menu/DropdownMenuItem.vue.js +17 -10
- package/dist/components/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +8 -0
- package/dist/components/dropdown-menu/DropdownMenuSubTrigger.vue.js +28 -13
- package/dist/components/dropdown-menu/DropdownMenuTrigger.vue.d.ts +4 -0
- package/dist/components/dropdown-menu/DropdownMenuTrigger.vue.js +1 -1
- package/dist/components/dropdown-menu/DropdownMenuTrigger.vue2.js +20 -10
- package/dist/components/editorial-engine/EditorialEngine.vue.js +1 -1
- package/dist/components/editorial-engine/engine.js +13 -0
- package/dist/components/file-upload/FileUpload.vue.d.ts +2 -0
- package/dist/components/file-upload/FileUpload.vue.js +1 -1
- package/dist/components/file-upload/FileUpload.vue2.js +20 -10
- package/dist/components/fireworks-hdr/FireworksHdr.vue.js +2 -2
- package/dist/components/flickering-grid/FlickeringGrid.vue.d.ts +1 -1
- package/dist/components/flickering-grid/FlickeringGrid.vue.js +1 -1
- package/dist/components/flickering-grid/flickering-grid-core.d.ts +1 -1
- package/dist/components/flickering-grid/flickering-grid-core.js +51 -9
- package/dist/components/flip-card/FlipCard.vue.d.ts +3 -1
- package/dist/components/flip-card/FlipCard.vue.js +1 -1
- package/dist/components/flip-card/FlipCard.vue2.js +5 -3
- package/dist/components/fluid-cursor/FluidCursor.vue.js +37 -9
- package/dist/components/fluid-cursor/fluid-cursor-core.js +3 -3
- package/dist/components/fluid-cursor/webgpu-engine.js +3 -3
- package/dist/components/focus/Focus.vue.js +1 -1
- package/dist/components/focus/Focus.vue2.js +2 -2
- package/dist/components/follow-button/FollowButton.vue.d.ts +69 -0
- package/dist/components/follow-button/FollowButton.vue.js +7 -0
- package/dist/components/follow-button/FollowButton.vue2.js +239 -0
- package/dist/components/follow-button/follow-core.d.ts +83 -0
- package/dist/components/follow-button/follow-core.js +92 -0
- package/dist/components/follow-button/index.d.ts +2 -0
- package/dist/components/frosted-glass/FrostedGlass.vue.js +1 -1
- package/dist/components/glare-card/GlareCard.vue.js +1 -1
- package/dist/components/glare-card/GlareCard.vue2.js +4 -4
- package/dist/components/glowing-effect/GlowingEffect.vue.js +3 -3
- package/dist/components/glowing-effect/glowing-effect-core.js +4 -1
- package/dist/components/gradient-button/GradientButton.vue.d.ts +6 -4
- package/dist/components/gradient-button/GradientButton.vue.js +1 -1
- package/dist/components/gradient-button/GradientButton.vue2.js +13 -3
- package/dist/components/icon-button/IconButton.vue.d.ts +6 -4
- package/dist/components/icon-button/IconButton.vue.js +11 -8
- package/dist/components/image-trail-cursor/ImageTrailCursor.vue.js +17 -7
- package/dist/components/image-trail-cursor/trail-variants.js +3 -6
- package/dist/components/inline-citation/InlineCitation.vue.js +1 -1
- package/dist/components/inline-citation/InlineCitation.vue2.js +20 -14
- package/dist/components/input/Input.vue.js +1 -1
- package/dist/components/input/Input.vue2.js +18 -8
- package/dist/components/interactive-grid-pattern/InteractiveGridPattern.vue.js +1 -1
- package/dist/components/interactive-grid-pattern/InteractiveGridPattern.vue2.js +1 -1
- package/dist/components/interactive-hover-button/InteractiveHoverButton.vue.d.ts +6 -3
- package/dist/components/interactive-hover-button/InteractiveHoverButton.vue.js +1 -1
- package/dist/components/interactive-hover-button/InteractiveHoverButton.vue2.js +12 -2
- package/dist/components/letter-pullup/LetterPullup.vue.js +4 -4
- package/dist/components/line-hover-link/LineHoverLink.vue.js +1 -1
- package/dist/components/line-hover-link/LineHoverLink.vue2.js +5 -6
- package/dist/components/link/Link.vue.d.ts +4 -2
- package/dist/components/link/Link.vue.js +1 -1
- package/dist/components/link/Link.vue2.js +11 -8
- package/dist/components/magnetic-field/MagnetPuck.vue.d.ts +51 -0
- package/dist/components/magnetic-field/MagnetPuck.vue.js +7 -0
- package/dist/components/magnetic-field/MagnetPuck.vue2.js +191 -0
- package/dist/components/magnetic-field/MagneticField.vue.d.ts +39 -0
- package/dist/components/magnetic-field/MagneticField.vue.js +7 -0
- package/dist/components/magnetic-field/MagneticField.vue2.js +157 -0
- package/dist/components/magnetic-field/MagneticItem.vue.d.ts +28 -0
- package/dist/components/magnetic-field/MagneticItem.vue.js +7 -0
- package/dist/components/magnetic-field/MagneticItem.vue2.js +72 -0
- package/dist/components/magnetic-field/index.d.ts +10 -0
- package/dist/components/magnetic-field/magnetic-field-core.d.ts +163 -0
- package/dist/components/magnetic-field/magnetic-field-core.js +534 -0
- package/dist/components/magnetic-field/magnetic-field-source.d.ts +58 -0
- package/dist/components/magnetic-field/magnetic-field-source.js +58 -0
- package/dist/components/magnetic-field/types.d.ts +14 -0
- package/dist/components/magnetic-field/types.js +5 -0
- package/dist/components/mosaic-glow/MosaicGlow.vue.d.ts +6 -0
- package/dist/components/mosaic-glow/MosaicGlow.vue.js +53 -9
- package/dist/components/mosaic-glow/mosaic-glow-core.d.ts +30 -0
- package/dist/components/mosaic-glow/mosaic-glow-core.js +27 -0
- package/dist/components/mosaic-glow/mosaic-glow-hdr.d.ts +24 -0
- package/dist/components/mosaic-glow/mosaic-glow-hdr.js +200 -0
- package/dist/components/navbar/NavbarLink.vue.d.ts +4 -2
- package/dist/components/navbar/NavbarLink.vue.js +1 -1
- package/dist/components/navbar/NavbarLink.vue2.js +16 -13
- package/dist/components/navigation-menu/NavigationMenu.vue.js +6 -3
- package/dist/components/navigation-menu/NavigationMenuLink.vue.js +1 -1
- package/dist/components/navigation-menu/NavigationMenuLink.vue2.js +8 -8
- package/dist/components/navigation-menu/NavigationMenuTrigger.vue.d.ts +15 -0
- package/dist/components/navigation-menu/NavigationMenuTrigger.vue.js +1 -1
- package/dist/components/navigation-menu/NavigationMenuTrigger.vue2.js +36 -15
- package/dist/components/neon-border/NeonBorder.vue.js +1 -1
- package/dist/components/neon-border/NeonBorder.vue2.js +10 -11
- package/dist/components/number-input/NumberInput.vue.js +1 -1
- package/dist/components/number-input/NumberInput.vue2.js +22 -12
- package/dist/components/password-input/PasswordInput.vue.js +1 -1
- package/dist/components/password-input/PasswordInput.vue2.js +18 -11
- package/dist/components/pixel-loader/PixelLoader.vue.js +1 -1
- package/dist/components/pixel-loader/PixelLoader.vue2.js +6 -6
- package/dist/components/pixel-scene/PixelScene.vue.d.ts +60 -0
- package/dist/components/pixel-scene/PixelScene.vue.js +184 -0
- package/dist/components/pixel-scene/PixelScene.vue2.js +4 -0
- package/dist/components/pixel-scene/index.d.ts +4 -0
- package/dist/components/pixel-scene/pixel-scene-core.d.ts +256 -0
- package/dist/components/pixel-scene/pixel-scene-core.js +878 -0
- package/dist/components/pixel-scene/pixel-scene-hdr.d.ts +68 -0
- package/dist/components/pixel-scene/pixel-scene-hdr.js +312 -0
- package/dist/components/pixel-scene/pixel-scene-scenes.d.ts +31 -0
- package/dist/components/pixel-scene/pixel-scene-scenes.js +1074 -0
- package/dist/components/popover/Popover.vue.d.ts +4 -0
- package/dist/components/popover/Popover.vue.js +1 -1
- package/dist/components/popover/Popover.vue2.js +8 -6
- package/dist/components/popover/PopoverContent.vue.js +6 -2
- package/dist/components/pulse-beam/PulseBeam.vue.d.ts +6 -2
- package/dist/components/pulse-beam/PulseBeam.vue.js +1 -1
- package/dist/components/pulse-beam/PulseBeam.vue2.js +7 -4
- package/dist/components/radio-group/RadioGroup.vue.js +12 -11
- package/dist/components/radio-group/RadioGroupItem.vue.d.ts +2 -0
- package/dist/components/radio-group/RadioGroupItem.vue.js +1 -1
- package/dist/components/radio-group/RadioGroupItem.vue2.js +20 -7
- package/dist/components/rainbow-button/RainbowButton.vue.d.ts +11 -2
- package/dist/components/rainbow-button/RainbowButton.vue.js +1 -1
- package/dist/components/rainbow-button/RainbowButton.vue2.js +35 -18
- package/dist/components/ripple-button/RippleButton.vue.d.ts +6 -4
- package/dist/components/ripple-button/RippleButton.vue.js +1 -1
- package/dist/components/ripple-button/RippleButton.vue2.js +10 -5
- package/dist/components/search-input/SearchInput.vue.js +1 -1
- package/dist/components/search-input/SearchInput.vue2.js +19 -9
- package/dist/components/select/Select.vue.d.ts +1 -1
- package/dist/components/select/Select.vue.js +1 -1
- package/dist/components/select/Select.vue2.js +25 -17
- package/dist/components/sheet/Sheet.vue.d.ts +5 -0
- package/dist/components/sheet/Sheet.vue.js +5 -2
- package/dist/components/shimmer-button/ShimmerButton.vue.d.ts +2 -2
- package/dist/components/shimmer-button/ShimmerButton.vue.js +1 -1
- package/dist/components/shimmer-button/ShimmerButton.vue2.js +14 -6
- package/dist/components/sidebar/SidebarItem.vue.d.ts +4 -2
- package/dist/components/sidebar/SidebarItem.vue.js +1 -1
- package/dist/components/sidebar/SidebarItem.vue2.js +4 -2
- package/dist/components/slider/Slider.vue.d.ts +4 -0
- package/dist/components/slider/Slider.vue.js +1 -1
- package/dist/components/slider/Slider.vue2.js +20 -8
- package/dist/components/sources/SourcesTrigger.vue.js +1 -1
- package/dist/components/sources/SourcesTrigger.vue2.js +11 -11
- package/dist/components/sparkles/sparkles-core.d.ts +1 -1
- package/dist/components/sparkles/sparkles-core.js +36 -2
- package/dist/components/story-thread/StoryNode.vue.d.ts +11 -0
- package/dist/components/story-thread/StoryNode.vue.js +7 -0
- package/dist/components/story-thread/StoryNode.vue2.js +23 -0
- package/dist/components/story-thread/StoryThread.vue.d.ts +56 -0
- package/dist/components/story-thread/StoryThread.vue.js +7 -0
- package/dist/components/story-thread/StoryThread.vue2.js +103 -0
- package/dist/components/story-thread/index.d.ts +5 -0
- package/dist/components/story-thread/story-thread-core.d.ts +119 -0
- package/dist/components/story-thread/story-thread-core.js +491 -0
- package/dist/components/story-thread/types.d.ts +1 -0
- package/dist/components/sun-switch/SunSwitch.vue.d.ts +61 -0
- package/dist/components/sun-switch/SunSwitch.vue.js +7 -0
- package/dist/components/sun-switch/SunSwitch.vue2.js +559 -0
- package/dist/components/sun-switch/index.d.ts +4 -0
- package/dist/components/sun-switch/pixel-wave-core.d.ts +82 -0
- package/dist/components/sun-switch/pixel-wave-core.js +508 -0
- package/dist/components/sun-switch/sun-switch-core.d.ts +251 -0
- package/dist/components/sun-switch/sun-switch-core.js +546 -0
- package/dist/components/sun-switch/sun-switch-hdr.d.ts +70 -0
- package/dist/components/sun-switch/sun-switch-hdr.js +311 -0
- package/dist/components/switch/Switch.vue.d.ts +2 -0
- package/dist/components/switch/Switch.vue.js +1 -1
- package/dist/components/switch/Switch.vue2.js +16 -6
- package/dist/components/tabs/TabsTrigger.vue.d.ts +6 -0
- package/dist/components/tabs/TabsTrigger.vue.js +1 -1
- package/dist/components/tabs/TabsTrigger.vue2.js +28 -15
- package/dist/components/terminal-block/TerminalBlock.vue.js +1 -1
- package/dist/components/terminal-block/TerminalBlock.vue2.js +10 -9
- package/dist/components/text-reveal-card/TextRevealCard.vue.js +1 -2
- package/dist/components/textarea/Textarea.vue.js +1 -1
- package/dist/components/textarea/Textarea.vue2.js +19 -12
- package/dist/components/tick-nav/TickNav.vue.d.ts +71 -0
- package/dist/components/tick-nav/TickNav.vue.js +7 -0
- package/dist/components/tick-nav/TickNav.vue2.js +285 -0
- package/dist/components/tick-nav/index.d.ts +3 -0
- package/dist/components/tick-nav/tick-nav-core.d.ts +102 -0
- package/dist/components/tick-nav/tick-nav-core.js +398 -0
- package/dist/components/tick-nav/tick-nav-hdr.d.ts +60 -0
- package/dist/components/tick-nav/tick-nav-hdr.js +284 -0
- package/dist/components/tick-nav/types.d.ts +13 -0
- package/dist/components/time-picker/TimePicker.vue.js +1 -1
- package/dist/components/time-picker/TimePicker.vue2.js +25 -17
- package/dist/components/toast/Toast.vue.js +1 -1
- package/dist/components/toast/Toast.vue2.js +16 -4
- package/dist/components/toast/index.d.ts +1 -1
- package/dist/components/toast/store.d.ts +23 -0
- package/dist/components/toast/store.js +35 -7
- package/dist/components/toggle/Toggle.vue.d.ts +12 -0
- package/dist/components/toggle/Toggle.vue.js +1 -1
- package/dist/components/toggle/Toggle.vue2.js +27 -11
- package/dist/components/toggle-group/ToggleGroup.vue.d.ts +11 -0
- package/dist/components/toggle-group/ToggleGroup.vue.js +1 -1
- package/dist/components/toggle-group/ToggleGroup.vue2.js +16 -3
- package/dist/components/toggle-group/ToggleGroupItem.vue.d.ts +6 -0
- package/dist/components/toggle-group/ToggleGroupItem.vue.js +1 -1
- package/dist/components/toggle-group/ToggleGroupItem.vue2.js +27 -14
- package/dist/components/tooltip/Tooltip.vue.js +13 -0
- package/dist/components/tracing-beam/TracingBeam.vue.d.ts +20 -1
- package/dist/components/tracing-beam/TracingBeam.vue.js +5 -164
- package/dist/components/tracing-beam/TracingBeam.vue2.js +168 -1
- package/dist/components/typing-indicator/TypingIndicator.vue.js +1 -1
- package/dist/components/typing-indicator/TypingIndicator.vue2.js +7 -6
- package/dist/index.d.ts +10 -0
- package/dist/index.js +466 -413
- package/dist/internals/anchor-position.js +3 -0
- package/dist/internals/call-listener.d.ts +11 -0
- package/dist/internals/call-listener.js +31 -0
- package/dist/internals/dismissable.d.ts +17 -0
- package/dist/internals/dismissable.js +44 -1
- package/dist/internals/env.d.ts +1 -0
- package/dist/internals/env.js +11 -0
- package/dist/internals/focus-trap.js +29 -4
- package/dist/internals/merge-ids.d.ts +6 -0
- package/dist/internals/merge-ids.js +11 -0
- package/dist/internals/motion/presence-core.d.ts +1 -1
- package/dist/sound/engine.js +23 -9
- package/dist/sound/themes.d.ts +4 -3
- package/dist/sound/themes.js +49 -211
- package/dist/sound/types.d.ts +9 -1
- package/dist/sound/types.js +2 -2
- package/dist/styles.css +1473 -571
- package/package.json +2 -2
- package/tailwind.css +9 -9
|
@@ -55,6 +55,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
55
55
|
if (!listEl.value) return [];
|
|
56
56
|
return Array.from(listEl.value.querySelectorAll("[data-ft-nav-trigger]"));
|
|
57
57
|
}
|
|
58
|
+
function navigableTriggers() {
|
|
59
|
+
return triggerButtons().filter((el2) => !el2.disabled);
|
|
60
|
+
}
|
|
58
61
|
function getTriggerElement(itemValue) {
|
|
59
62
|
return triggerButtons().find((el2) => el2.dataset.value === itemValue) ?? null;
|
|
60
63
|
}
|
|
@@ -125,7 +128,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
125
128
|
}
|
|
126
129
|
}
|
|
127
130
|
function move(from, delta) {
|
|
128
|
-
const buttons =
|
|
131
|
+
const buttons = navigableTriggers();
|
|
129
132
|
if (buttons.length === 0) return;
|
|
130
133
|
const fromIndex = buttons.findIndex((el2) => el2.dataset.value === from);
|
|
131
134
|
const base = fromIndex === -1 ? 0 : fromIndex;
|
|
@@ -133,7 +136,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
133
136
|
goTo(buttons[nextIndex]);
|
|
134
137
|
}
|
|
135
138
|
function moveToEdge(edge) {
|
|
136
|
-
const buttons =
|
|
139
|
+
const buttons = navigableTriggers();
|
|
137
140
|
if (buttons.length === 0) return;
|
|
138
141
|
goTo(edge === "first" ? buttons[0] : buttons[buttons.length - 1]);
|
|
139
142
|
}
|
|
@@ -157,7 +160,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
157
160
|
}
|
|
158
161
|
if (order.length === 0) return null;
|
|
159
162
|
if (value.value !== "" && order.includes(value.value)) return value.value;
|
|
160
|
-
return
|
|
163
|
+
return navigableTriggers()[0]?.dataset.value ?? order[0];
|
|
161
164
|
},
|
|
162
165
|
get pendingFocusValue() {
|
|
163
166
|
return pendingFocusValue.value;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./NavigationMenuLink.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const NavigationMenuLink = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const NavigationMenuLink = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f7e5b566"]]);
|
|
5
5
|
export {
|
|
6
6
|
NavigationMenuLink as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed, createElementBlock, openBlock,
|
|
1
|
+
import { defineComponent, computed, createElementBlock, openBlock, mergeProps, renderSlot, createCommentVNode, Fragment, toDisplayString } from "vue";
|
|
2
2
|
import { cn } from "../../utils.js";
|
|
3
3
|
const _hoisted_1 = ["href", "aria-current", "target", "rel"];
|
|
4
4
|
const _hoisted_2 = {
|
|
@@ -34,19 +34,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
34
34
|
)
|
|
35
35
|
);
|
|
36
36
|
return (_ctx, _cache) => {
|
|
37
|
-
return openBlock(), createElementBlock("a", {
|
|
37
|
+
return openBlock(), createElementBlock("a", mergeProps(_ctx.$attrs, {
|
|
38
38
|
href: __props.href,
|
|
39
|
-
class:
|
|
40
|
-
"aria-current": __props.current ? "page" :
|
|
41
|
-
target: __props.external ? "_blank" :
|
|
42
|
-
rel: __props.external ? "noopener noreferrer" :
|
|
43
|
-
}, [
|
|
39
|
+
class: classes.value,
|
|
40
|
+
"aria-current": __props.current ? "page" : _ctx.$attrs["aria-current"],
|
|
41
|
+
target: __props.external ? "_blank" : _ctx.$attrs.target,
|
|
42
|
+
rel: __props.external ? "noopener noreferrer" : _ctx.$attrs.rel
|
|
43
|
+
}), [
|
|
44
44
|
_ctx.$slots.default ? renderSlot(_ctx.$slots, "default", {}, void 0, true, 0) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
45
45
|
__props.title ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
|
|
46
46
|
__props.description ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(__props.description), 1)) : createCommentVNode("", true)
|
|
47
47
|
], 64)),
|
|
48
48
|
__props.external ? (openBlock(), createElementBlock("span", _hoisted_4, " (opens in a new tab)")) : createCommentVNode("", true)
|
|
49
|
-
],
|
|
49
|
+
], 16, _hoisted_1);
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
52
|
});
|
|
@@ -1,7 +1,22 @@
|
|
|
1
1
|
import type { HTMLAttributes } from "vue";
|
|
2
|
+
/**
|
|
3
|
+
* Native `<button>` attributes and listeners are forwarded to the trigger; the managed
|
|
4
|
+
* ARIA, state and structural attributes stay the component's. A forwarded `disabled`
|
|
5
|
+
* leaves the roving order and makes the trigger inert.
|
|
6
|
+
*/
|
|
2
7
|
export interface NavigationMenuTriggerProps {
|
|
3
8
|
/** Additional CSS classes. */
|
|
4
9
|
class?: HTMLAttributes["class"];
|
|
10
|
+
/** Native `disabled`: leaves the roving order, never opens, calls no listener below. */
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
/** Called after the component's own handling, never while disabled. */
|
|
13
|
+
onClick?: ((event: MouseEvent) => void) | ((event: MouseEvent) => void)[];
|
|
14
|
+
/** Called after the component's own handling, never while disabled. */
|
|
15
|
+
onPointerenter?: ((event: PointerEvent) => void) | ((event: PointerEvent) => void)[];
|
|
16
|
+
/** Called after the component's own handling, never while disabled. */
|
|
17
|
+
onPointerleave?: ((event: PointerEvent) => void) | ((event: PointerEvent) => void)[];
|
|
18
|
+
/** Called after the component's own handling, never while disabled. */
|
|
19
|
+
onKeydown?: ((event: KeyboardEvent) => void) | ((event: KeyboardEvent) => void)[];
|
|
5
20
|
}
|
|
6
21
|
declare const _default: typeof __VLS_export;
|
|
7
22
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./NavigationMenuTrigger.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const NavigationMenuTrigger = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const NavigationMenuTrigger = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f415f4f0"]]);
|
|
5
5
|
export {
|
|
6
6
|
NavigationMenuTrigger as default
|
|
7
7
|
};
|
|
@@ -1,14 +1,21 @@
|
|
|
1
|
-
import { defineComponent, useTemplateRef, computed, onMounted, onBeforeUnmount, watch, createElementBlock, openBlock,
|
|
1
|
+
import { defineComponent, useAttrs, useTemplateRef, computed, onMounted, onBeforeUnmount, watch, createElementBlock, openBlock, mergeProps, unref, renderSlot, createElementVNode } from "vue";
|
|
2
|
+
import { callListener } from "../../internals/call-listener.js";
|
|
2
3
|
import { cn } from "../../utils.js";
|
|
3
4
|
import { NAVIGATION_MENU_ITEM_KEY, NAVIGATION_MENU_KEY } from "./types.js";
|
|
4
|
-
const _hoisted_1 = ["id", "data-value", "aria-expanded", "aria-controls", "tabindex"];
|
|
5
|
+
const _hoisted_1 = ["id", "data-value", "aria-expanded", "aria-controls", "tabindex", "disabled"];
|
|
5
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
7
|
...{ name: "NavigationMenuTrigger", inheritAttrs: false },
|
|
7
8
|
__name: "NavigationMenuTrigger",
|
|
8
9
|
props: {
|
|
9
|
-
class: { type: [Boolean, null, String, Object, Array] }
|
|
10
|
+
class: { type: [Boolean, null, String, Object, Array] },
|
|
11
|
+
disabled: { type: Boolean, default: false },
|
|
12
|
+
onClick: { type: [Function, Array] },
|
|
13
|
+
onPointerenter: { type: [Function, Array] },
|
|
14
|
+
onPointerleave: { type: [Function, Array] },
|
|
15
|
+
onKeydown: { type: [Function, Array] }
|
|
10
16
|
},
|
|
11
17
|
setup(__props, { expose: __expose }) {
|
|
18
|
+
const attrs = useAttrs();
|
|
12
19
|
const el = useTemplateRef("el");
|
|
13
20
|
__expose({ ref: el });
|
|
14
21
|
const item = NAVIGATION_MENU_ITEM_KEY.useRequired();
|
|
@@ -17,6 +24,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
17
24
|
const tabIndexAttr = computed(() => root.focusedValue === item.value ? 0 : -1);
|
|
18
25
|
let releaseRegistration = null;
|
|
19
26
|
function joinTriggerOrder() {
|
|
27
|
+
if (__props.disabled) return;
|
|
20
28
|
releaseRegistration = root.registerTrigger(item.value);
|
|
21
29
|
}
|
|
22
30
|
function leaveTriggerOrder() {
|
|
@@ -26,25 +34,36 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
26
34
|
onMounted(joinTriggerOrder);
|
|
27
35
|
onBeforeUnmount(leaveTriggerOrder);
|
|
28
36
|
watch(
|
|
29
|
-
() => item.value,
|
|
37
|
+
() => [item.value, __props.disabled],
|
|
30
38
|
() => {
|
|
31
39
|
leaveTriggerOrder();
|
|
32
40
|
joinTriggerOrder();
|
|
33
41
|
},
|
|
34
42
|
{ flush: "post" }
|
|
35
43
|
);
|
|
36
|
-
function handleClick() {
|
|
44
|
+
function handleClick(event) {
|
|
45
|
+
if (__props.disabled) return;
|
|
37
46
|
root.toggle(item.value);
|
|
38
47
|
root.focus(item.value);
|
|
39
48
|
el.value?.focus();
|
|
49
|
+
callListener(__props.onClick, event);
|
|
40
50
|
}
|
|
41
|
-
function handlePointerEnter() {
|
|
51
|
+
function handlePointerEnter(event) {
|
|
52
|
+
if (__props.disabled) return;
|
|
42
53
|
root.scheduleOpen(item.value);
|
|
54
|
+
callListener(__props.onPointerenter, event);
|
|
43
55
|
}
|
|
44
|
-
function handlePointerLeave() {
|
|
56
|
+
function handlePointerLeave(event) {
|
|
45
57
|
root.scheduleClose();
|
|
58
|
+
if (__props.disabled) return;
|
|
59
|
+
callListener(__props.onPointerleave, event);
|
|
46
60
|
}
|
|
47
61
|
function handleKeydown(event) {
|
|
62
|
+
if (__props.disabled) return;
|
|
63
|
+
handleKeydownCore(event);
|
|
64
|
+
callListener(__props.onKeydown, event);
|
|
65
|
+
}
|
|
66
|
+
function handleKeydownCore(event) {
|
|
48
67
|
switch (event.key) {
|
|
49
68
|
case "Enter":
|
|
50
69
|
case " ":
|
|
@@ -81,28 +100,30 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
81
100
|
)
|
|
82
101
|
);
|
|
83
102
|
return (_ctx, _cache) => {
|
|
84
|
-
return openBlock(), createElementBlock("button", {
|
|
103
|
+
return openBlock(), createElementBlock("button", mergeProps({
|
|
85
104
|
ref_key: "el",
|
|
86
105
|
ref: el,
|
|
106
|
+
onClick: handleClick,
|
|
107
|
+
onPointerenter: handlePointerEnter,
|
|
108
|
+
onPointerleave: handlePointerLeave,
|
|
109
|
+
onKeydown: handleKeydown
|
|
110
|
+
}, unref(attrs), {
|
|
87
111
|
type: "button",
|
|
88
112
|
id: unref(item).triggerId,
|
|
89
113
|
"data-ft-nav-trigger": "",
|
|
90
114
|
"data-value": unref(item).value,
|
|
91
|
-
class:
|
|
115
|
+
class: classes.value,
|
|
92
116
|
"aria-expanded": isOpen.value,
|
|
93
117
|
"aria-controls": isOpen.value ? unref(item).contentId : void 0,
|
|
94
118
|
tabindex: tabIndexAttr.value,
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
onPointerleave: handlePointerLeave,
|
|
98
|
-
onKeydown: handleKeydown
|
|
99
|
-
}, [
|
|
119
|
+
disabled: __props.disabled
|
|
120
|
+
}), [
|
|
100
121
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
101
122
|
_cache[0] || (_cache[0] = createElementVNode("span", {
|
|
102
123
|
class: "ft-navigation-menu-caret",
|
|
103
124
|
"aria-hidden": "true"
|
|
104
125
|
}, "▾", -1))
|
|
105
|
-
],
|
|
126
|
+
], 16, _hoisted_1);
|
|
106
127
|
};
|
|
107
128
|
}
|
|
108
129
|
});
|
|
@@ -2,7 +2,7 @@ import _sfc_main from "./NeonBorder.vue2.js";
|
|
|
2
2
|
import { beamArc, neonBeams, neonCorners } from "./NeonBorder.vue2.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const NeonBorder = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
5
|
+
const NeonBorder = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3f8b8a34"]]);
|
|
6
6
|
export {
|
|
7
7
|
beamArc,
|
|
8
8
|
NeonBorder as default,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed, createElementBlock, openBlock,
|
|
1
|
+
import { defineComponent, useAttrs, computed, createElementBlock, openBlock, mergeProps, unref, renderSlot, createElementVNode } from "vue";
|
|
2
2
|
import { cn } from "../../utils.js";
|
|
3
3
|
function beamArc(type) {
|
|
4
4
|
return type === "full" ? 46 : 22;
|
|
@@ -31,6 +31,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
31
31
|
class: { type: [Boolean, null, String, Object, Array] }
|
|
32
32
|
},
|
|
33
33
|
setup(__props) {
|
|
34
|
+
const attrs = useAttrs();
|
|
34
35
|
function getWidth(type) {
|
|
35
36
|
switch (type) {
|
|
36
37
|
case "none":
|
|
@@ -52,16 +53,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
52
53
|
"--neon-core": animated.value ? neonBeams(__props.color1, __props.color2, arc.value, true) : neonCorners(__props.color1, __props.color2, true)
|
|
53
54
|
}));
|
|
54
55
|
return (_ctx, _cache) => {
|
|
55
|
-
return openBlock(), createElementBlock("div", {
|
|
56
|
-
class:
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
__props.class
|
|
61
|
-
)
|
|
56
|
+
return openBlock(), createElementBlock("div", mergeProps(unref(attrs), {
|
|
57
|
+
class: unref(cn)(
|
|
58
|
+
"neon-border-container relative z-10 inline-block h-10 w-full max-w-sm rounded-lg p-px",
|
|
59
|
+
animated.value && "neon-animated",
|
|
60
|
+
__props.class
|
|
62
61
|
),
|
|
63
|
-
style:
|
|
64
|
-
}, [
|
|
62
|
+
style: styleVars.value
|
|
63
|
+
}), [
|
|
65
64
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
66
65
|
_cache[0] || (_cache[0] = createElementVNode("span", {
|
|
67
66
|
class: "neon-tube",
|
|
@@ -76,7 +75,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
76
75
|
]),
|
|
77
76
|
createElementVNode("span", { class: "neon-core" })
|
|
78
77
|
], -1))
|
|
79
|
-
],
|
|
78
|
+
], 16);
|
|
80
79
|
};
|
|
81
80
|
}
|
|
82
81
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./NumberInput.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const NumberInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const NumberInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-fd3c567f"]]);
|
|
5
5
|
export {
|
|
6
6
|
NumberInput as default
|
|
7
7
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { defineComponent, mergeModels, useModel, useTemplateRef, computed, ref, watch, onBeforeUnmount, createElementBlock, openBlock, normalizeClass, createElementVNode, unref } from "vue";
|
|
1
|
+
import { defineComponent, mergeModels, useModel, useTemplateRef, computed, useAttrs, ref, watch, onBeforeUnmount, createElementBlock, openBlock, normalizeClass, createElementVNode, mergeProps, unref } from "vue";
|
|
2
2
|
import { cn } from "../../utils.js";
|
|
3
3
|
import { useField } from "../../internals/field.js";
|
|
4
|
+
import { mergeIds } from "../../internals/merge-ids.js";
|
|
4
5
|
import { DURATIONS } from "../../internals/motion/tokens.js";
|
|
5
6
|
import { useSoundCue } from "../../sound/use-sound.js";
|
|
6
7
|
const _hoisted_1 = ["disabled", "data-stepping"];
|
|
7
|
-
const _hoisted_2 = ["id", "name", "value", "disabled", "readonly", "required", "aria-invalid", "aria-describedby", "aria-label"];
|
|
8
|
+
const _hoisted_2 = ["inputmode", "id", "name", "value", "disabled", "readonly", "required", "aria-invalid", "aria-describedby", "aria-label"];
|
|
8
9
|
const _hoisted_3 = ["disabled", "data-stepping"];
|
|
9
10
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
11
|
...{ name: "NumberInput", inheritAttrs: false },
|
|
@@ -38,6 +39,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
38
39
|
const effectiveDisabled = computed(() => field?.disabled ?? __props.disabled);
|
|
39
40
|
const effectiveRequired = computed(() => field?.required ?? __props.required);
|
|
40
41
|
const effectiveInvalid = computed(() => field?.invalid ?? __props.invalid);
|
|
42
|
+
const attrs = useAttrs();
|
|
43
|
+
const ariaLabelResolved = () => {
|
|
44
|
+
const own = __props.label;
|
|
45
|
+
return own ?? attrs["aria-label"];
|
|
46
|
+
};
|
|
47
|
+
const ariaInvalidResolved = () => effectiveInvalid.value ? "true" : attrs["aria-invalid"];
|
|
48
|
+
const consumerDescribedBy = () => attrs["aria-describedby"];
|
|
49
|
+
const describedBy = () => mergeIds(field?.describedBy, consumerDescribedBy());
|
|
41
50
|
const rawText = ref(value.value === null ? "" : String(value.value));
|
|
42
51
|
let isFocused = false;
|
|
43
52
|
watch(
|
|
@@ -171,11 +180,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
171
180
|
"data-stepping": steppingDirection.value === -1 ? "true" : void 0,
|
|
172
181
|
onClick: handleDecrement
|
|
173
182
|
}, " − ", 8, _hoisted_1),
|
|
174
|
-
createElementVNode("input", {
|
|
183
|
+
createElementVNode("input", mergeProps({
|
|
175
184
|
ref_key: "inputEl",
|
|
176
185
|
ref: inputEl,
|
|
186
|
+
onInput: handleInput,
|
|
187
|
+
onKeydown: handleKeydown,
|
|
188
|
+
onFocus: handleFocus,
|
|
189
|
+
onBlur: handleBlur
|
|
190
|
+
}, unref(attrs), {
|
|
177
191
|
type: "text",
|
|
178
|
-
inputmode: "decimal",
|
|
192
|
+
inputmode: unref(attrs).inputmode ?? "decimal",
|
|
179
193
|
class: "ft-number-input-field text-foreground w-full min-w-[3ch] border-0 bg-transparent px-[18px] py-[9px] text-center font-mono text-[13px] focus-visible:outline-none disabled:cursor-not-allowed",
|
|
180
194
|
id: effectiveId.value,
|
|
181
195
|
name: __props.name,
|
|
@@ -183,14 +197,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
183
197
|
disabled: effectiveDisabled.value,
|
|
184
198
|
readonly: __props.readonly,
|
|
185
199
|
required: effectiveRequired.value,
|
|
186
|
-
"aria-invalid":
|
|
187
|
-
"aria-describedby":
|
|
188
|
-
"aria-label":
|
|
189
|
-
|
|
190
|
-
onKeydown: handleKeydown,
|
|
191
|
-
onFocus: handleFocus,
|
|
192
|
-
onBlur: handleBlur
|
|
193
|
-
}, null, 40, _hoisted_2),
|
|
200
|
+
"aria-invalid": ariaInvalidResolved(),
|
|
201
|
+
"aria-describedby": describedBy(),
|
|
202
|
+
"aria-label": ariaLabelResolved()
|
|
203
|
+
}), null, 16, _hoisted_2),
|
|
194
204
|
createElementVNode("button", {
|
|
195
205
|
type: "button",
|
|
196
206
|
class: "ft-number-input-step text-muted-foreground border-input hover:bg-accent hover:text-accent-foreground flex w-[34px] shrink-0 cursor-pointer items-center justify-center border-l focus-visible:outline-none disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./PasswordInput.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const PasswordInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const PasswordInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-39984ebc"]]);
|
|
5
5
|
export {
|
|
6
6
|
PasswordInput as default
|
|
7
7
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { defineComponent, mergeModels, useModel, useTemplateRef, computed, ref, createElementBlock, openBlock, createElementVNode, createCommentVNode, normalizeClass, unref, toDisplayString, nextTick } from "vue";
|
|
1
|
+
import { defineComponent, mergeModels, useModel, useTemplateRef, computed, useAttrs, ref, createElementBlock, openBlock, createElementVNode, createCommentVNode, normalizeClass, mergeProps, unref, toDisplayString, nextTick } from "vue";
|
|
2
2
|
import { cn } from "../../utils.js";
|
|
3
3
|
import { useField } from "../../internals/field.js";
|
|
4
|
+
import { mergeIds } from "../../internals/merge-ids.js";
|
|
4
5
|
import { useFancyId } from "../../internals/use-id.js";
|
|
5
6
|
import { usePresence } from "../../internals/motion/presence.js";
|
|
6
7
|
import { preset } from "../../internals/motion/transitions.js";
|
|
@@ -59,6 +60,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
59
60
|
const effectiveDisabled = computed(() => field?.disabled ?? __props.disabled);
|
|
60
61
|
const effectiveRequired = computed(() => field?.required ?? __props.required);
|
|
61
62
|
const effectiveInvalid = computed(() => field?.invalid ?? __props.invalid);
|
|
63
|
+
const attrs = useAttrs();
|
|
64
|
+
const ariaLabelResolved = () => {
|
|
65
|
+
const own = __props.label;
|
|
66
|
+
return own ?? attrs["aria-label"];
|
|
67
|
+
};
|
|
68
|
+
const ariaInvalidResolved = () => effectiveInvalid.value ? "true" : attrs["aria-invalid"];
|
|
69
|
+
const consumerDescribedBy = () => attrs["aria-describedby"];
|
|
62
70
|
const revealed = ref(false);
|
|
63
71
|
const type = computed(() => revealed.value ? "text" : "password");
|
|
64
72
|
const revealedIcon = usePresence(() => revealed.value);
|
|
@@ -83,9 +91,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
83
91
|
const result = computed(
|
|
84
92
|
() => __props.showStrength && value.value ? scoreFn.value(value.value) : void 0
|
|
85
93
|
);
|
|
86
|
-
const describedBy =
|
|
87
|
-
() => [field?.describedBy, result.value ? strengthId : void 0].filter(Boolean).join(" ") || void 0
|
|
88
|
-
);
|
|
94
|
+
const describedBy = () => mergeIds(field?.describedBy, consumerDescribedBy(), result.value ? strengthId : void 0);
|
|
89
95
|
const tierClass = computed(() => {
|
|
90
96
|
if (!result.value) return "";
|
|
91
97
|
if (result.value.score <= 1) return "bg-destructive";
|
|
@@ -127,9 +133,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
127
133
|
createElementVNode("div", {
|
|
128
134
|
class: normalizeClass(wrapperClasses.value)
|
|
129
135
|
}, [
|
|
130
|
-
createElementVNode("input", {
|
|
136
|
+
createElementVNode("input", mergeProps({
|
|
131
137
|
ref_key: "inputRef",
|
|
132
138
|
ref: inputRef,
|
|
139
|
+
onInput: handleInput
|
|
140
|
+
}, unref(attrs), {
|
|
133
141
|
type: type.value,
|
|
134
142
|
placeholder: __props.placeholder,
|
|
135
143
|
name: __props.name,
|
|
@@ -139,12 +147,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
139
147
|
disabled: effectiveDisabled.value,
|
|
140
148
|
readonly: __props.readonly,
|
|
141
149
|
required: effectiveRequired.value,
|
|
142
|
-
"aria-invalid":
|
|
143
|
-
"aria-describedby": describedBy
|
|
144
|
-
"aria-label":
|
|
145
|
-
class: "ft-password-input-field text-foreground placeholder:text-muted-foreground min-w-0 flex-1 border-0 bg-transparent p-0 outline-none disabled:cursor-not-allowed"
|
|
146
|
-
|
|
147
|
-
}, null, 40, _hoisted_2),
|
|
150
|
+
"aria-invalid": ariaInvalidResolved(),
|
|
151
|
+
"aria-describedby": describedBy(),
|
|
152
|
+
"aria-label": ariaLabelResolved(),
|
|
153
|
+
class: "ft-password-input-field text-foreground placeholder:text-muted-foreground min-w-0 flex-1 border-0 bg-transparent p-0 outline-none disabled:cursor-not-allowed"
|
|
154
|
+
}), null, 16, _hoisted_2),
|
|
148
155
|
__props.showToggle ? (openBlock(), createElementBlock("button", {
|
|
149
156
|
key: 0,
|
|
150
157
|
type: "button",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./PixelLoader.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const PixelLoader = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const PixelLoader = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-76201e18"]]);
|
|
5
5
|
export {
|
|
6
6
|
PixelLoader as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, useTemplateRef, computed, createElementBlock, openBlock,
|
|
1
|
+
import { defineComponent, useAttrs, useTemplateRef, computed, createElementBlock, openBlock, mergeProps, unref, createElementVNode, toDisplayString, Fragment, renderList, normalizeStyle } from "vue";
|
|
2
2
|
import { cn } from "../../utils.js";
|
|
3
3
|
const _hoisted_1 = { class: "sr-only" };
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -15,6 +15,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
15
15
|
class: { type: [Boolean, null, String, Object, Array] }
|
|
16
16
|
},
|
|
17
17
|
setup(__props, { expose: __expose }) {
|
|
18
|
+
const attrs = useAttrs();
|
|
18
19
|
const ref = useTemplateRef("ref");
|
|
19
20
|
__expose({ ref });
|
|
20
21
|
const cycle = computed(() => Math.max(0.01, __props.speed));
|
|
@@ -39,14 +40,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
39
40
|
].join("; ")
|
|
40
41
|
);
|
|
41
42
|
return (_ctx, _cache) => {
|
|
42
|
-
return openBlock(), createElementBlock("div", {
|
|
43
|
+
return openBlock(), createElementBlock("div", mergeProps({ style: rootStyle.value }, unref(attrs), {
|
|
43
44
|
ref_key: "ref",
|
|
44
45
|
ref,
|
|
45
46
|
role: "status",
|
|
46
47
|
"aria-live": "polite",
|
|
47
|
-
class:
|
|
48
|
-
|
|
49
|
-
}, [
|
|
48
|
+
class: unref(cn)("inline-grid", __props.class)
|
|
49
|
+
}), [
|
|
50
50
|
createElementVNode("span", _hoisted_1, toDisplayString(__props.label), 1),
|
|
51
51
|
(openBlock(true), createElementBlock(Fragment, null, renderList(delays.value, (delay, i) => {
|
|
52
52
|
return openBlock(), createElementBlock("span", {
|
|
@@ -55,7 +55,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
55
55
|
style: normalizeStyle(`animation-delay: ${delay}s`)
|
|
56
56
|
}, null, 4);
|
|
57
57
|
}), 128))
|
|
58
|
-
],
|
|
58
|
+
], 16);
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
61
|
});
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { HTMLAttributes } from "vue";
|
|
2
|
+
import type { PixelSceneName } from "./pixel-scene-scenes.js";
|
|
3
|
+
import type { PixelSceneHdrLook } from "./pixel-scene-hdr.js";
|
|
4
|
+
export type { PixelSceneName };
|
|
5
|
+
/**
|
|
6
|
+
* PixelScene — an animated pixel-art landscape on a dot grid.
|
|
7
|
+
*
|
|
8
|
+
* At rest only sparse ink dots and the lit cells show; a round lens that
|
|
9
|
+
* follows the pointer reveals the picture in full colour, with a dithered
|
|
10
|
+
* rim. Day and night are two complete palettes. On HDR displays the lit
|
|
11
|
+
* cells (sun, moon, windows, stars, fireflies, the lens field) are redrawn
|
|
12
|
+
* as hard squares brighter than SDR white in a WebGPU layer.
|
|
13
|
+
*
|
|
14
|
+
* The engine, the scenes and the HDR layer live in three framework-free
|
|
15
|
+
* cores; this file owns the markup and pushes props into the engine. The
|
|
16
|
+
* engine owns its observers, the reduced-motion query and the pointer
|
|
17
|
+
* listeners.
|
|
18
|
+
*/
|
|
19
|
+
export interface PixelSceneProps {
|
|
20
|
+
/** Which landscape to paint */
|
|
21
|
+
scene?: PixelSceneName;
|
|
22
|
+
/** Night palette (stars, moon, lit windows) instead of day. Never changed by the component. */
|
|
23
|
+
night?: boolean;
|
|
24
|
+
/** Grid pitch in CSS px (clamped 4–32; grows on very large boxes) */
|
|
25
|
+
cell?: number;
|
|
26
|
+
/** Square dot edge in CSS px, at most `cell` */
|
|
27
|
+
dot?: number;
|
|
28
|
+
/** Show full colour under a round lens that follows the pointer */
|
|
29
|
+
lens?: boolean;
|
|
30
|
+
/** Lens radius in cells */
|
|
31
|
+
lensRadius?: number;
|
|
32
|
+
/** On HDR displays, draw lit cells brighter than SDR white in a WebGPU layer */
|
|
33
|
+
hdr?: boolean;
|
|
34
|
+
/** HDR rendering: `calibrated` (glow 1 = the SDR dot, sRGB) or `vivid` (the prototype's hotter, display-p3 look) */
|
|
35
|
+
hdrLook?: PixelSceneHdrLook;
|
|
36
|
+
/** Colour of the resting dots; any CSS colour, `currentColor` resolved on the host */
|
|
37
|
+
ink?: string;
|
|
38
|
+
/** Freeze the scene's animations (the lens still follows the pointer) */
|
|
39
|
+
paused?: boolean;
|
|
40
|
+
/** Animate a change of `night` as a dithered wave from the sun (never under reduced motion) */
|
|
41
|
+
wave?: boolean;
|
|
42
|
+
/** `[day, night]` background painted by the scene itself; the wave carries it. Default: transparent */
|
|
43
|
+
surfaces?: readonly [day: string, night: string];
|
|
44
|
+
/** `[day, night]` dot colours, swapped by the wave; overrides `ink` */
|
|
45
|
+
inks?: readonly [day: string, night: string];
|
|
46
|
+
/** Additional classes on the host — give it a height */
|
|
47
|
+
class?: HTMLAttributes["class"];
|
|
48
|
+
}
|
|
49
|
+
declare const _default: typeof __VLS_export;
|
|
50
|
+
export default _default;
|
|
51
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<PixelSceneProps, {
|
|
52
|
+
ref: Readonly<import("vue").ShallowRef<HTMLDivElement | null>>;
|
|
53
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PixelSceneProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
54
|
+
default?(): unknown;
|
|
55
|
+
}>;
|
|
56
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
57
|
+
new (): {
|
|
58
|
+
$slots: S;
|
|
59
|
+
};
|
|
60
|
+
};
|