fancy-ui-react 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/PORTING.md +118 -0
- package/README.md +643 -0
- package/dist/cameleon/FancyProvider.d.ts +11 -0
- package/dist/cameleon/FancyProvider.js +42 -0
- package/dist/cameleon/context.d.ts +22 -0
- package/dist/cameleon/context.js +16 -0
- package/dist/cameleon/index.d.ts +31 -0
- package/dist/cameleon/index.js +39 -0
- package/dist/cameleon/primitives/Badge.d.ts +10 -0
- package/dist/cameleon/primitives/Badge.js +12 -0
- package/dist/cameleon/primitives/Button.d.ts +11 -0
- package/dist/cameleon/primitives/Button.js +43 -0
- package/dist/cameleon/primitives/Checkbox.d.ts +10 -0
- package/dist/cameleon/primitives/Checkbox.js +39 -0
- package/dist/cameleon/primitives/Input.d.ts +10 -0
- package/dist/cameleon/primitives/Input.js +13 -0
- package/dist/cameleon/primitives/Radio.d.ts +12 -0
- package/dist/cameleon/primitives/Radio.js +29 -0
- package/dist/cameleon/primitives/Select.d.ts +10 -0
- package/dist/cameleon/primitives/Select.js +27 -0
- package/dist/cameleon/primitives/Slider.d.ts +7 -0
- package/dist/cameleon/primitives/Slider.js +22 -0
- package/dist/cameleon/primitives/Switch.d.ts +9 -0
- package/dist/cameleon/primitives/Switch.js +33 -0
- package/dist/cameleon/primitives/Textarea.d.ts +9 -0
- package/dist/cameleon/primitives/Textarea.js +13 -0
- package/dist/cameleon/primitives/Tooltip.d.ts +14 -0
- package/dist/cameleon/primitives/Tooltip.js +15 -0
- package/dist/cameleon/primitives/index.d.ts +10 -0
- package/dist/cameleon/skins/aurora/index.d.ts +2 -0
- package/dist/cameleon/skins/aurora/index.js +16 -0
- package/dist/cameleon/skins/aurora/meta.d.ts +3 -0
- package/dist/cameleon/skins/aurora/meta.js +61 -0
- package/dist/cameleon/skins/aurora/recipes.d.ts +24 -0
- package/dist/cameleon/skins/aurora/recipes.js +124 -0
- package/dist/cameleon/skins/aurora/tokens.d.ts +6 -0
- package/dist/cameleon/skins/aurora/tokens.js +18 -0
- package/dist/cameleon/skins/brutal/index.d.ts +2 -0
- package/dist/cameleon/skins/brutal/index.js +35 -0
- package/dist/cameleon/skins/brutal/meta.d.ts +3 -0
- package/dist/cameleon/skins/brutal/meta.js +73 -0
- package/dist/cameleon/skins/brutal/ornaments.d.ts +7 -0
- package/dist/cameleon/skins/brutal/ornaments.js +18 -0
- package/dist/cameleon/skins/brutal/recipes.d.ts +23 -0
- package/dist/cameleon/skins/brutal/recipes.js +113 -0
- package/dist/cameleon/skins/brutal/tokens.d.ts +8 -0
- package/dist/cameleon/skins/brutal/tokens.js +23 -0
- package/dist/cameleon/skins/default.d.ts +2 -0
- package/dist/cameleon/skins/default.js +79 -0
- package/dist/cameleon/skins/glass/index.d.ts +2 -0
- package/dist/cameleon/skins/glass/index.js +16 -0
- package/dist/cameleon/skins/glass/meta.d.ts +3 -0
- package/dist/cameleon/skins/glass/meta.js +63 -0
- package/dist/cameleon/skins/glass/recipes.d.ts +24 -0
- package/dist/cameleon/skins/glass/recipes.js +124 -0
- package/dist/cameleon/skins/glass/tokens.d.ts +5 -0
- package/dist/cameleon/skins/glass/tokens.js +18 -0
- package/dist/cameleon/skins/retro-os/index.d.ts +2 -0
- package/dist/cameleon/skins/retro-os/index.js +24 -0
- package/dist/cameleon/skins/retro-os/meta.d.ts +3 -0
- package/dist/cameleon/skins/retro-os/meta.js +61 -0
- package/dist/cameleon/skins/retro-os/ornaments.d.ts +9 -0
- package/dist/cameleon/skins/retro-os/ornaments.js +28 -0
- package/dist/cameleon/skins/retro-os/recipes.d.ts +35 -0
- package/dist/cameleon/skins/retro-os/recipes.js +126 -0
- package/dist/cameleon/skins/retro-os/tokens.d.ts +16 -0
- package/dist/cameleon/skins/retro-os/tokens.js +23 -0
- package/dist/cameleon/skins/terminal/index.d.ts +2 -0
- package/dist/cameleon/skins/terminal/index.js +24 -0
- package/dist/cameleon/skins/terminal/meta.d.ts +3 -0
- package/dist/cameleon/skins/terminal/meta.js +70 -0
- package/dist/cameleon/skins/terminal/ornaments.d.ts +7 -0
- package/dist/cameleon/skins/terminal/ornaments.js +8 -0
- package/dist/cameleon/skins/terminal/recipes.d.ts +25 -0
- package/dist/cameleon/skins/terminal/recipes.js +125 -0
- package/dist/cameleon/skins/terminal/tokens.d.ts +5 -0
- package/dist/cameleon/skins/terminal/tokens.js +18 -0
- package/dist/cameleon/types.d.ts +133 -0
- package/dist/components/agent-plan/AgentPlan.d.ts +25 -0
- package/dist/components/agent-plan/AgentPlan.js +181 -0
- package/dist/components/agent-plan/index.d.ts +2 -0
- package/dist/components/ai-data-table/AiDataTable.d.ts +54 -0
- package/dist/components/ai-data-table/AiDataTable.js +110 -0
- package/dist/components/ai-data-table/index.d.ts +2 -0
- package/dist/components/alert-dialog/AlertDialog.d.ts +35 -0
- package/dist/components/alert-dialog/AlertDialog.js +109 -0
- package/dist/components/alert-dialog/index.d.ts +2 -0
- package/dist/components/animated-beam/AnimatedBeam.d.ts +39 -0
- package/dist/components/animated-beam/AnimatedBeam.js +192 -0
- package/dist/components/animated-beam/index.d.ts +2 -0
- package/dist/components/animated-testimonials/AnimatedTestimonials.d.ts +32 -0
- package/dist/components/animated-testimonials/AnimatedTestimonials.js +172 -0
- package/dist/components/animated-testimonials/index.d.ts +2 -0
- package/dist/components/animated-tooltip/AnimatedTooltip.d.ts +13 -0
- package/dist/components/animated-tooltip/AnimatedTooltip.js +137 -0
- package/dist/components/animated-tooltip/index.d.ts +2 -0
- package/dist/components/apple-card-carousel/AppleCard.d.ts +30 -0
- package/dist/components/apple-card-carousel/AppleCard.js +219 -0
- package/dist/components/apple-card-carousel/AppleCardCarousel.d.ts +14 -0
- package/dist/components/apple-card-carousel/AppleCardCarousel.js +30 -0
- package/dist/components/apple-card-carousel/index.d.ts +4 -0
- package/dist/components/approval-card/ApprovalCard.d.ts +57 -0
- package/dist/components/approval-card/ApprovalCard.js +153 -0
- package/dist/components/approval-card/index.d.ts +2 -0
- package/dist/components/artifact-card/ArtifactCard.d.ts +44 -0
- package/dist/components/artifact-card/ArtifactCard.js +204 -0
- package/dist/components/artifact-card/index.d.ts +2 -0
- package/dist/components/autocomplete/Autocomplete.d.ts +36 -0
- package/dist/components/autocomplete/Autocomplete.js +186 -0
- package/dist/components/autocomplete/AutocompletePanel.d.ts +12 -0
- package/dist/components/autocomplete/AutocompletePanel.js +123 -0
- package/dist/components/autocomplete/index.d.ts +4 -0
- package/dist/components/autocomplete/match.d.ts +6 -0
- package/dist/components/autocomplete/match.js +10 -0
- package/dist/components/autocomplete/types.d.ts +52 -0
- package/dist/components/autocomplete/types.js +6 -0
- package/dist/components/bento-grid/BentoGrid.d.ts +6 -0
- package/dist/components/bento-grid/BentoGrid.js +19 -0
- package/dist/components/bento-grid/BentoGridCard.d.ts +11 -0
- package/dist/components/bento-grid/BentoGridCard.js +49 -0
- package/dist/components/bento-grid/BentoGridItem.d.ts +9 -0
- package/dist/components/bento-grid/BentoGridItem.js +33 -0
- package/dist/components/bento-grid/index.d.ts +6 -0
- package/dist/components/bg-falling-stars/FallingStarsBg.d.ts +24 -0
- package/dist/components/bg-falling-stars/FallingStarsBg.js +134 -0
- package/dist/components/bg-falling-stars/index.d.ts +2 -0
- package/dist/components/bg-stars/StarsBackground.d.ts +40 -0
- package/dist/components/bg-stars/StarsBackground.js +188 -0
- package/dist/components/bg-stars/index.d.ts +2 -0
- package/dist/components/blur-reveal/BlurReveal.d.ts +19 -0
- package/dist/components/blur-reveal/BlurReveal.js +50 -0
- package/dist/components/blur-reveal/index.d.ts +2 -0
- package/dist/components/book/Book.d.ts +13 -0
- package/dist/components/book/Book.js +94 -0
- package/dist/components/book/BookDescription.d.ts +6 -0
- package/dist/components/book/BookDescription.js +9 -0
- package/dist/components/book/BookHeader.d.ts +6 -0
- package/dist/components/book/BookHeader.js +9 -0
- package/dist/components/book/BookTitle.d.ts +6 -0
- package/dist/components/book/BookTitle.js +9 -0
- package/dist/components/book/index.d.ts +132 -0
- package/dist/components/book/index.js +48 -0
- package/dist/components/border-beam/BorderBeam.d.ts +25 -0
- package/dist/components/border-beam/BorderBeam.js +45 -0
- package/dist/components/border-beam/index.d.ts +2 -0
- package/dist/components/box-reveal/BoxReveal.d.ts +20 -0
- package/dist/components/box-reveal/BoxReveal.js +58 -0
- package/dist/components/box-reveal/index.d.ts +2 -0
- package/dist/components/breadcrumb/Breadcrumb.d.ts +49 -0
- package/dist/components/breadcrumb/Breadcrumb.js +61 -0
- package/dist/components/breadcrumb/index.d.ts +2 -0
- package/dist/components/button/Button.d.ts +44 -0
- package/dist/components/button/Button.js +120 -0
- package/dist/components/button/index.d.ts +2 -0
- package/dist/components/button/types.d.ts +4 -0
- package/dist/components/button-group/ButtonGroup.d.ts +23 -0
- package/dist/components/button-group/ButtonGroup.js +30 -0
- package/dist/components/button-group/index.d.ts +4 -0
- package/dist/components/button-group/types.d.ts +34 -0
- package/dist/components/button-group/types.js +7 -0
- package/dist/components/card-3d/CardBody.d.ts +8 -0
- package/dist/components/card-3d/CardBody.js +9 -0
- package/dist/components/card-3d/CardContainer.d.ts +19 -0
- package/dist/components/card-3d/CardContainer.js +61 -0
- package/dist/components/card-3d/CardItem.d.ts +22 -0
- package/dist/components/card-3d/CardItem.js +29 -0
- package/dist/components/card-3d/index.d.ts +6 -0
- package/dist/components/card-spotlight/CardSpotlight.d.ts +16 -0
- package/dist/components/card-spotlight/CardSpotlight.js +65 -0
- package/dist/components/card-spotlight/index.d.ts +2 -0
- package/dist/components/chat-error/ChatError.d.ts +32 -0
- package/dist/components/chat-error/ChatError.js +75 -0
- package/dist/components/chat-error/index.d.ts +2 -0
- package/dist/components/chat-message/ChatMessage.d.ts +43 -0
- package/dist/components/chat-message/ChatMessage.js +127 -0
- package/dist/components/chat-message/ChatMessageAction.d.ts +20 -0
- package/dist/components/chat-message/ChatMessageAction.js +58 -0
- package/dist/components/chat-message/ChatMessageActions.d.ts +14 -0
- package/dist/components/chat-message/ChatMessageActions.js +30 -0
- package/dist/components/chat-message/ChatMessageBranches.d.ts +15 -0
- package/dist/components/chat-message/ChatMessageBranches.js +93 -0
- package/dist/components/chat-message/index.d.ts +10 -0
- package/dist/components/chat-message/types.d.ts +38 -0
- package/dist/components/chat-message/types.js +7 -0
- package/dist/components/chat-panel/ChatEmptyState.d.ts +17 -0
- package/dist/components/chat-panel/ChatEmptyState.js +42 -0
- package/dist/components/chat-panel/ChatPanel.d.ts +31 -0
- package/dist/components/chat-panel/ChatPanel.js +163 -0
- package/dist/components/chat-panel/index.d.ts +4 -0
- package/dist/components/checkbox/Checkbox.d.ts +64 -0
- package/dist/components/checkbox/Checkbox.js +123 -0
- package/dist/components/checkbox/index.d.ts +2 -0
- package/dist/components/code-diff/CodeDiff.d.ts +39 -0
- package/dist/components/code-diff/CodeDiff.js +213 -0
- package/dist/components/code-diff/index.d.ts +2 -0
- package/dist/components/colourful-text/ColourfulText.d.ts +28 -0
- package/dist/components/colourful-text/ColourfulText.js +73 -0
- package/dist/components/colourful-text/index.d.ts +2 -0
- package/dist/components/combobox/Combobox.d.ts +53 -0
- package/dist/components/combobox/Combobox.js +248 -0
- package/dist/components/combobox/ComboboxPanel.d.ts +28 -0
- package/dist/components/combobox/ComboboxPanel.js +110 -0
- package/dist/components/combobox/index.d.ts +4 -0
- package/dist/components/combobox/match.d.ts +15 -0
- package/dist/components/combobox/match.js +14 -0
- package/dist/components/combobox/types.d.ts +60 -0
- package/dist/components/combobox/types.js +6 -0
- package/dist/components/command-menu/CommandMenu.d.ts +37 -0
- package/dist/components/command-menu/CommandMenu.js +386 -0
- package/dist/components/command-menu/index.d.ts +3 -0
- package/dist/components/command-menu/match.d.ts +19 -0
- package/dist/components/command-menu/match.js +45 -0
- package/dist/components/command-menu/types.d.ts +19 -0
- package/dist/components/compare/Compare.d.ts +31 -0
- package/dist/components/compare/Compare.js +300 -0
- package/dist/components/compare/StarField.d.ts +22 -0
- package/dist/components/compare/StarField.js +66 -0
- package/dist/components/compare/index.d.ts +4 -0
- package/dist/components/composer/Composer.d.ts +56 -0
- package/dist/components/composer/Composer.js +155 -0
- package/dist/components/composer/ComposerAttachment.d.ts +14 -0
- package/dist/components/composer/ComposerAttachment.js +127 -0
- package/dist/components/composer/ComposerAttachments.d.ts +18 -0
- package/dist/components/composer/ComposerAttachments.js +85 -0
- package/dist/components/composer/ComposerCommandMenu.d.ts +37 -0
- package/dist/components/composer/ComposerCommandMenu.js +208 -0
- package/dist/components/composer/ComposerInput.d.ts +22 -0
- package/dist/components/composer/ComposerInput.js +96 -0
- package/dist/components/composer/ComposerModelPicker.d.ts +32 -0
- package/dist/components/composer/ComposerModelPicker.js +223 -0
- package/dist/components/composer/ComposerSubmit.d.ts +16 -0
- package/dist/components/composer/ComposerSubmit.js +52 -0
- package/dist/components/composer/ComposerToolbar.d.ts +38 -0
- package/dist/components/composer/ComposerToolbar.js +9 -0
- package/dist/components/composer/caret.d.ts +69 -0
- package/dist/components/composer/caret.js +112 -0
- package/dist/components/composer/index.d.ts +18 -0
- package/dist/components/composer/types.d.ts +86 -0
- package/dist/components/composer/types.js +7 -0
- package/dist/components/confetti/Confetti.d.ts +37 -0
- package/dist/components/confetti/Confetti.js +45 -0
- package/dist/components/confetti/ConfettiButton.d.ts +23 -0
- package/dist/components/confetti/ConfettiButton.js +29 -0
- package/dist/components/confetti/context.d.ts +21 -0
- package/dist/components/confetti/context.js +6 -0
- package/dist/components/confetti/index.d.ts +4 -0
- package/dist/components/container-scroll/ContainerScroll.d.ts +10 -0
- package/dist/components/container-scroll/ContainerScroll.js +74 -0
- package/dist/components/container-scroll/index.d.ts +2 -0
- package/dist/components/container-text-flip/ContainerTextFlip.d.ts +9 -0
- package/dist/components/container-text-flip/ContainerTextFlip.js +58 -0
- package/dist/components/container-text-flip/index.d.ts +2 -0
- package/dist/components/context-menu/ContextMenu.d.ts +39 -0
- package/dist/components/context-menu/ContextMenu.js +105 -0
- package/dist/components/context-menu/ContextMenuContent.d.ts +27 -0
- package/dist/components/context-menu/ContextMenuContent.js +97 -0
- package/dist/components/context-menu/ContextMenuTrigger.d.ts +26 -0
- package/dist/components/context-menu/ContextMenuTrigger.js +37 -0
- package/dist/components/context-menu/index.d.ts +20 -0
- package/dist/components/context-menu/types.d.ts +52 -0
- package/dist/components/context-menu/types.js +17 -0
- package/dist/components/context-ring/ContextRing.d.ts +33 -0
- package/dist/components/context-ring/ContextRing.js +257 -0
- package/dist/components/context-ring/index.d.ts +2 -0
- package/dist/components/copy-button/CopyButton.d.ts +39 -0
- package/dist/components/copy-button/CopyButton.js +124 -0
- package/dist/components/copy-button/index.d.ts +2 -0
- package/dist/components/date-picker/DatePicker.d.ts +58 -0
- package/dist/components/date-picker/DatePicker.js +331 -0
- package/dist/components/date-picker/date-utils.d.ts +39 -0
- package/dist/components/date-picker/date-utils.js +85 -0
- package/dist/components/date-picker/index.d.ts +2 -0
- package/dist/components/dialog/Dialog.d.ts +29 -0
- package/dist/components/dialog/Dialog.js +105 -0
- package/dist/components/dialog/DialogSurface.d.ts +2 -0
- package/dist/components/dialog/DialogSurface.js +98 -0
- package/dist/components/dialog/index.d.ts +2 -0
- package/dist/components/dialog/types.d.ts +61 -0
- package/dist/components/dim-siblings/DimSiblings.d.ts +30 -0
- package/dist/components/dim-siblings/DimSiblings.js +47 -0
- package/dist/components/dim-siblings/index.d.ts +2 -0
- package/dist/components/direction-aware-hover/DirectionAwareHover.d.ts +10 -0
- package/dist/components/direction-aware-hover/DirectionAwareHover.js +185 -0
- package/dist/components/direction-aware-hover/index.d.ts +2 -0
- package/dist/components/displacement-text/DisplacementText.d.ts +26 -0
- package/dist/components/displacement-text/DisplacementText.js +185 -0
- package/dist/components/displacement-text/index.d.ts +2 -0
- package/dist/components/dock/Dock.d.ts +28 -0
- package/dist/components/dock/Dock.js +80 -0
- package/dist/components/dock/DockIcon.d.ts +17 -0
- package/dist/components/dock/DockIcon.js +38 -0
- package/dist/components/dock/DockSeparator.d.ts +6 -0
- package/dist/components/dock/DockSeparator.js +20 -0
- package/dist/components/dock/index.d.ts +7 -0
- package/dist/components/dock/types.d.ts +47 -0
- package/dist/components/dock/types.js +15 -0
- package/dist/components/drawer/Drawer.d.ts +34 -0
- package/dist/components/drawer/Drawer.js +237 -0
- package/dist/components/drawer/index.d.ts +2 -0
- package/dist/components/dropdown-menu/DropdownMenu.d.ts +38 -0
- package/dist/components/dropdown-menu/DropdownMenu.js +99 -0
- package/dist/components/dropdown-menu/DropdownMenuContent.d.ts +15 -0
- package/dist/components/dropdown-menu/DropdownMenuContent.js +111 -0
- package/dist/components/dropdown-menu/DropdownMenuItem.d.ts +26 -0
- package/dist/components/dropdown-menu/DropdownMenuItem.js +74 -0
- package/dist/components/dropdown-menu/DropdownMenuLabel.d.ts +15 -0
- package/dist/components/dropdown-menu/DropdownMenuLabel.js +18 -0
- package/dist/components/dropdown-menu/DropdownMenuSeparator.d.ts +6 -0
- package/dist/components/dropdown-menu/DropdownMenuSeparator.js +15 -0
- package/dist/components/dropdown-menu/DropdownMenuSub.d.ts +10 -0
- package/dist/components/dropdown-menu/DropdownMenuSub.js +110 -0
- package/dist/components/dropdown-menu/DropdownMenuSubContent.d.ts +15 -0
- package/dist/components/dropdown-menu/DropdownMenuSubContent.js +139 -0
- package/dist/components/dropdown-menu/DropdownMenuSubTrigger.d.ts +17 -0
- package/dist/components/dropdown-menu/DropdownMenuSubTrigger.js +104 -0
- package/dist/components/dropdown-menu/DropdownMenuTrigger.d.ts +16 -0
- package/dist/components/dropdown-menu/DropdownMenuTrigger.js +67 -0
- package/dist/components/dropdown-menu/index.d.ts +20 -0
- package/dist/components/dropdown-menu/menu-shared.d.ts +39 -0
- package/dist/components/dropdown-menu/menu-shared.js +48 -0
- package/dist/components/dropdown-menu/types.d.ts +159 -0
- package/dist/components/dropdown-menu/types.js +32 -0
- package/dist/components/editorial-engine/EditorialEngine.d.ts +21 -0
- package/dist/components/editorial-engine/EditorialEngine.js +68 -0
- package/dist/components/editorial-engine/engine.d.ts +7 -0
- package/dist/components/editorial-engine/engine.js +558 -0
- package/dist/components/editorial-engine/index.d.ts +2 -0
- package/dist/components/file-upload/FileUpload.d.ts +63 -0
- package/dist/components/file-upload/FileUpload.js +438 -0
- package/dist/components/file-upload/index.d.ts +2 -0
- package/dist/components/fireworks-hdr/FireworksHdr.d.ts +56 -0
- package/dist/components/fireworks-hdr/FireworksHdr.js +426 -0
- package/dist/components/fireworks-hdr/dev.d.ts +1 -0
- package/dist/components/fireworks-hdr/dev.js +8 -0
- package/dist/components/fireworks-hdr/fireworks-shared.d.ts +444 -0
- package/dist/components/fireworks-hdr/fireworks-shared.js +1205 -0
- package/dist/components/fireworks-hdr/index.d.ts +4 -0
- package/dist/components/fireworks-hdr/webgl2-renderer.d.ts +20 -0
- package/dist/components/fireworks-hdr/webgl2-renderer.js +517 -0
- package/dist/components/fireworks-hdr/webgpu-renderer.d.ts +51 -0
- package/dist/components/fireworks-hdr/webgpu-renderer.js +461 -0
- package/dist/components/fireworks-hdr/webgpu-types.d.ts +159 -0
- package/dist/components/flickering-grid/FlickeringGrid.d.ts +33 -0
- package/dist/components/flickering-grid/FlickeringGrid.js +154 -0
- package/dist/components/flickering-grid/index.d.ts +2 -0
- package/dist/components/flip-card/FlipCard.d.ts +8 -0
- package/dist/components/flip-card/FlipCard.js +35 -0
- package/dist/components/flip-card/index.d.ts +2 -0
- package/dist/components/flip-words/FlipWords.d.ts +16 -0
- package/dist/components/flip-words/FlipWords.js +82 -0
- package/dist/components/flip-words/index.d.ts +2 -0
- package/dist/components/fluid-cursor/FluidCursor.d.ts +61 -0
- package/dist/components/fluid-cursor/FluidCursor.js +1479 -0
- package/dist/components/fluid-cursor/fluid-shared.d.ts +74 -0
- package/dist/components/fluid-cursor/fluid-shared.js +120 -0
- package/dist/components/fluid-cursor/index.d.ts +8 -0
- package/dist/components/fluid-cursor/webgpu-engine.d.ts +36 -0
- package/dist/components/fluid-cursor/webgpu-engine.js +922 -0
- package/dist/components/focus/Focus.d.ts +24 -0
- package/dist/components/focus/Focus.js +103 -0
- package/dist/components/focus/index.d.ts +2 -0
- package/dist/components/form-field/FormField.d.ts +46 -0
- package/dist/components/form-field/FormField.js +151 -0
- package/dist/components/form-field/index.d.ts +2 -0
- package/dist/components/frosted-glass/FrostedGlass.d.ts +48 -0
- package/dist/components/frosted-glass/FrostedGlass.js +89 -0
- package/dist/components/frosted-glass/index.d.ts +2 -0
- package/dist/components/glare-card/GlareCard.d.ts +8 -0
- package/dist/components/glare-card/GlareCard.js +103 -0
- package/dist/components/glare-card/index.d.ts +2 -0
- package/dist/components/glow-border/GlowBorder.d.ts +8 -0
- package/dist/components/glow-border/GlowBorder.js +39 -0
- package/dist/components/glow-border/index.d.ts +2 -0
- package/dist/components/glowing-effect/GlowingEffect.d.ts +23 -0
- package/dist/components/glowing-effect/GlowingEffect.js +157 -0
- package/dist/components/glowing-effect/index.d.ts +2 -0
- package/dist/components/gradient-button/GradientButton.d.ts +28 -0
- package/dist/components/gradient-button/GradientButton.js +66 -0
- package/dist/components/gradient-button/index.d.ts +2 -0
- package/dist/components/hover-card/HoverCard.d.ts +57 -0
- package/dist/components/hover-card/HoverCard.js +139 -0
- package/dist/components/hover-card/index.d.ts +2 -0
- package/dist/components/hyper-text/HyperText.d.ts +25 -0
- package/dist/components/hyper-text/HyperText.js +102 -0
- package/dist/components/hyper-text/index.d.ts +2 -0
- package/dist/components/icon-button/IconButton.d.ts +46 -0
- package/dist/components/icon-button/IconButton.js +62 -0
- package/dist/components/icon-button/index.d.ts +2 -0
- package/dist/components/image-generation/ImageGeneration.d.ts +33 -0
- package/dist/components/image-generation/ImageGeneration.js +131 -0
- package/dist/components/image-generation/index.d.ts +2 -0
- package/dist/components/image-trail-cursor/ImageTrailCursor.d.ts +15 -0
- package/dist/components/image-trail-cursor/ImageTrailCursor.js +75 -0
- package/dist/components/image-trail-cursor/index.d.ts +3 -0
- package/dist/components/image-trail-cursor/trail-variants.d.ts +112 -0
- package/dist/components/image-trail-cursor/trail-variants.js +787 -0
- package/dist/components/inline-citation/InlineCitation.d.ts +23 -0
- package/dist/components/inline-citation/InlineCitation.js +179 -0
- package/dist/components/inline-citation/index.d.ts +2 -0
- package/dist/components/input/Input.d.ts +41 -0
- package/dist/components/input/Input.js +74 -0
- package/dist/components/input/index.d.ts +2 -0
- package/dist/components/interactive-grid-pattern/InteractiveGridPattern.d.ts +17 -0
- package/dist/components/interactive-grid-pattern/InteractiveGridPattern.js +89 -0
- package/dist/components/interactive-grid-pattern/index.d.ts +2 -0
- package/dist/components/interactive-hover-button/InteractiveHoverButton.d.ts +18 -0
- package/dist/components/interactive-hover-button/InteractiveHoverButton.js +66 -0
- package/dist/components/interactive-hover-button/index.d.ts +2 -0
- package/dist/components/label/Label.d.ts +18 -0
- package/dist/components/label/Label.js +28 -0
- package/dist/components/label/index.d.ts +2 -0
- package/dist/components/letter-pullup/LetterPullup.d.ts +16 -0
- package/dist/components/letter-pullup/LetterPullup.js +27 -0
- package/dist/components/letter-pullup/index.d.ts +2 -0
- package/dist/components/line-hover-link/LineHoverLink.d.ts +33 -0
- package/dist/components/line-hover-link/LineHoverLink.js +69 -0
- package/dist/components/line-hover-link/index.d.ts +2 -0
- package/dist/components/line-reveal/LineReveal.d.ts +31 -0
- package/dist/components/line-reveal/LineReveal.js +117 -0
- package/dist/components/line-reveal/index.d.ts +2 -0
- package/dist/components/line-shadow-text/LineShadowText.d.ts +18 -0
- package/dist/components/line-shadow-text/LineShadowText.js +26 -0
- package/dist/components/line-shadow-text/index.d.ts +2 -0
- package/dist/components/link/Link.d.ts +30 -0
- package/dist/components/link/Link.js +82 -0
- package/dist/components/link/index.d.ts +2 -0
- package/dist/components/liquid-glass/LiquidGlass.d.ts +49 -0
- package/dist/components/liquid-glass/LiquidGlass.js +165 -0
- package/dist/components/liquid-glass/index.d.ts +2 -0
- package/dist/components/liquid-text/LiquidText.d.ts +35 -0
- package/dist/components/liquid-text/LiquidText.js +882 -0
- package/dist/components/liquid-text/index.d.ts +2 -0
- package/dist/components/logo-cloud/AnimatedLogoCloud.d.ts +13 -0
- package/dist/components/logo-cloud/AnimatedLogoCloud.js +38 -0
- package/dist/components/logo-cloud/IconLogoCloud.d.ts +10 -0
- package/dist/components/logo-cloud/IconLogoCloud.js +20 -0
- package/dist/components/logo-cloud/StaticLogoCloud.d.ts +28 -0
- package/dist/components/logo-cloud/StaticLogoCloud.js +45 -0
- package/dist/components/logo-cloud/index.d.ts +6 -0
- package/dist/components/magnetic/Magnetic.d.ts +35 -0
- package/dist/components/magnetic/Magnetic.js +113 -0
- package/dist/components/magnetic/index.d.ts +2 -0
- package/dist/components/marquee/Marquee.d.ts +16 -0
- package/dist/components/marquee/Marquee.js +39 -0
- package/dist/components/marquee/ReviewCard.d.ts +8 -0
- package/dist/components/marquee/ReviewCard.js +17 -0
- package/dist/components/marquee/index.d.ts +4 -0
- package/dist/components/matrix-rain/MatrixRain.d.ts +35 -0
- package/dist/components/matrix-rain/MatrixRain.js +130 -0
- package/dist/components/matrix-rain/index.d.ts +2 -0
- package/dist/components/meteors/Meteors.d.ts +21 -0
- package/dist/components/meteors/Meteors.js +45 -0
- package/dist/components/meteors/index.d.ts +2 -0
- package/dist/components/mosaic-glow/MosaicGlow.d.ts +47 -0
- package/dist/components/mosaic-glow/MosaicGlow.js +438 -0
- package/dist/components/mosaic-glow/index.d.ts +2 -0
- package/dist/components/mosaic-glow/mosaic-glow-core.d.ts +94 -0
- package/dist/components/mosaic-glow/mosaic-glow-core.js +190 -0
- package/dist/components/navbar/Navbar.d.ts +25 -0
- package/dist/components/navbar/Navbar.js +27 -0
- package/dist/components/navbar/NavbarLink.d.ts +37 -0
- package/dist/components/navbar/NavbarLink.js +48 -0
- package/dist/components/navbar/index.d.ts +4 -0
- package/dist/components/navigation-menu/NavigationMenu.d.ts +28 -0
- package/dist/components/navigation-menu/NavigationMenu.js +202 -0
- package/dist/components/navigation-menu/NavigationMenuContent.d.ts +8 -0
- package/dist/components/navigation-menu/NavigationMenuContent.js +77 -0
- package/dist/components/navigation-menu/NavigationMenuItem.d.ts +20 -0
- package/dist/components/navigation-menu/NavigationMenuItem.js +18 -0
- package/dist/components/navigation-menu/NavigationMenuLink.d.ts +31 -0
- package/dist/components/navigation-menu/NavigationMenuLink.js +41 -0
- package/dist/components/navigation-menu/NavigationMenuList.d.ts +8 -0
- package/dist/components/navigation-menu/NavigationMenuList.js +33 -0
- package/dist/components/navigation-menu/NavigationMenuTrigger.d.ts +8 -0
- package/dist/components/navigation-menu/NavigationMenuTrigger.js +90 -0
- package/dist/components/navigation-menu/index.d.ts +14 -0
- package/dist/components/navigation-menu/types.d.ts +107 -0
- package/dist/components/navigation-menu/types.js +32 -0
- package/dist/components/neon-border/NeonBorder.d.ts +22 -0
- package/dist/components/neon-border/NeonBorder.js +50 -0
- package/dist/components/neon-border/index.d.ts +2 -0
- package/dist/components/noise-reveal/NoiseReveal.d.ts +29 -0
- package/dist/components/noise-reveal/NoiseReveal.js +329 -0
- package/dist/components/noise-reveal/index.d.ts +2 -0
- package/dist/components/number-input/NumberInput.d.ts +40 -0
- package/dist/components/number-input/NumberInput.js +207 -0
- package/dist/components/number-input/index.d.ts +2 -0
- package/dist/components/number-ticker/NumberTicker.d.ts +22 -0
- package/dist/components/number-ticker/NumberTicker.js +106 -0
- package/dist/components/number-ticker/index.d.ts +2 -0
- package/dist/components/pagination/Pagination.d.ts +43 -0
- package/dist/components/pagination/Pagination.js +156 -0
- package/dist/components/pagination/index.d.ts +2 -0
- package/dist/components/pagination/pagination-range.d.ts +11 -0
- package/dist/components/pagination/pagination-range.js +35 -0
- package/dist/components/password-input/PasswordInput.d.ts +56 -0
- package/dist/components/password-input/PasswordInput.js +246 -0
- package/dist/components/password-input/index.d.ts +2 -0
- package/dist/components/pixel-loader/PixelLoader.d.ts +18 -0
- package/dist/components/pixel-loader/PixelLoader.js +56 -0
- package/dist/components/pixel-loader/index.d.ts +2 -0
- package/dist/components/popover/Popover.d.ts +49 -0
- package/dist/components/popover/Popover.js +81 -0
- package/dist/components/popover/PopoverContent.d.ts +21 -0
- package/dist/components/popover/PopoverContent.js +78 -0
- package/dist/components/popover/index.d.ts +6 -0
- package/dist/components/popover/types.d.ts +64 -0
- package/dist/components/popover/types.js +17 -0
- package/dist/components/presence/Presence.d.ts +40 -0
- package/dist/components/presence/Presence.js +49 -0
- package/dist/components/presence/index.d.ts +2 -0
- package/dist/components/pressable/Pressable.d.ts +27 -0
- package/dist/components/pressable/Pressable.js +86 -0
- package/dist/components/pressable/index.d.ts +2 -0
- package/dist/components/prompt-suggestions/PromptSuggestions.d.ts +25 -0
- package/dist/components/prompt-suggestions/PromptSuggestions.js +68 -0
- package/dist/components/prompt-suggestions/index.d.ts +2 -0
- package/dist/components/pulse-beam/PulseBeam.d.ts +44 -0
- package/dist/components/pulse-beam/PulseBeam.js +197 -0
- package/dist/components/pulse-beam/index.d.ts +2 -0
- package/dist/components/pulse-beam/pulse-beam-data.d.ts +81 -0
- package/dist/components/pulse-beam/pulse-beam-data.js +306 -0
- package/dist/components/pulse-beam/pulse-beam-loop.d.ts +26 -0
- package/dist/components/pulse-beam/pulse-beam-loop.js +58 -0
- package/dist/components/radio-group/RadioGroup.d.ts +56 -0
- package/dist/components/radio-group/RadioGroup.js +82 -0
- package/dist/components/radio-group/RadioGroupItem.d.ts +21 -0
- package/dist/components/radio-group/RadioGroupItem.js +47 -0
- package/dist/components/radio-group/index.d.ts +6 -0
- package/dist/components/radio-group/types.d.ts +50 -0
- package/dist/components/radio-group/types.js +7 -0
- package/dist/components/rainbow-button/RainbowButton.d.ts +21 -0
- package/dist/components/rainbow-button/RainbowButton.js +59 -0
- package/dist/components/rainbow-button/index.d.ts +2 -0
- package/dist/components/reasoning-panel/ReasoningPanel.d.ts +38 -0
- package/dist/components/reasoning-panel/ReasoningPanel.js +172 -0
- package/dist/components/reasoning-panel/index.d.ts +2 -0
- package/dist/components/recommendation-card/RecommendationCard.d.ts +53 -0
- package/dist/components/recommendation-card/RecommendationCard.js +234 -0
- package/dist/components/recommendation-card/index.d.ts +2 -0
- package/dist/components/reveal/Reveal.d.ts +36 -0
- package/dist/components/reveal/Reveal.js +138 -0
- package/dist/components/reveal/index.d.ts +2 -0
- package/dist/components/ripple/Ripple.d.ts +11 -0
- package/dist/components/ripple/Ripple.js +45 -0
- package/dist/components/ripple/index.d.ts +2 -0
- package/dist/components/ripple-button/RippleButton.d.ts +17 -0
- package/dist/components/ripple-button/RippleButton.js +77 -0
- package/dist/components/ripple-button/index.d.ts +2 -0
- package/dist/components/scroll-anchor/ScrollAnchor.d.ts +33 -0
- package/dist/components/scroll-anchor/ScrollAnchor.js +99 -0
- package/dist/components/scroll-anchor/index.d.ts +2 -0
- package/dist/components/scroll-progress/ScrollProgress.d.ts +39 -0
- package/dist/components/scroll-progress/ScrollProgress.js +118 -0
- package/dist/components/scroll-progress/index.d.ts +2 -0
- package/dist/components/search-input/SearchInput.d.ts +56 -0
- package/dist/components/search-input/SearchInput.js +192 -0
- package/dist/components/search-input/index.d.ts +2 -0
- package/dist/components/select/Select.d.ts +44 -0
- package/dist/components/select/Select.js +255 -0
- package/dist/components/select/SelectPanel.d.ts +33 -0
- package/dist/components/select/SelectPanel.js +108 -0
- package/dist/components/select/index.d.ts +3 -0
- package/dist/components/select/types.d.ts +83 -0
- package/dist/components/select/types.js +8 -0
- package/dist/components/sheet/Sheet.d.ts +40 -0
- package/dist/components/sheet/Sheet.js +183 -0
- package/dist/components/sheet/index.d.ts +2 -0
- package/dist/components/shimmer-button/ShimmerButton.d.ts +26 -0
- package/dist/components/shimmer-button/ShimmerButton.js +69 -0
- package/dist/components/shimmer-button/index.d.ts +2 -0
- package/dist/components/sidebar/Sidebar.d.ts +17 -0
- package/dist/components/sidebar/Sidebar.js +27 -0
- package/dist/components/sidebar/SidebarFooter.d.ts +10 -0
- package/dist/components/sidebar/SidebarFooter.js +31 -0
- package/dist/components/sidebar/SidebarGroup.d.ts +10 -0
- package/dist/components/sidebar/SidebarGroup.js +28 -0
- package/dist/components/sidebar/SidebarItem.d.ts +33 -0
- package/dist/components/sidebar/SidebarItem.js +81 -0
- package/dist/components/sidebar/SidebarSeparator.d.ts +5 -0
- package/dist/components/sidebar/SidebarSeparator.js +13 -0
- package/dist/components/sidebar/index.d.ts +12 -0
- package/dist/components/sidebar/types.d.ts +36 -0
- package/dist/components/sidebar/types.js +7 -0
- package/dist/components/skeleton/Skeleton.d.ts +35 -0
- package/dist/components/skeleton/Skeleton.js +106 -0
- package/dist/components/skeleton/index.d.ts +2 -0
- package/dist/components/slider/Slider.d.ts +32 -0
- package/dist/components/slider/Slider.js +119 -0
- package/dist/components/slider/index.d.ts +2 -0
- package/dist/components/smooth-cursor/SmoothCursor.d.ts +18 -0
- package/dist/components/smooth-cursor/SmoothCursor.js +186 -0
- package/dist/components/smooth-cursor/index.d.ts +2 -0
- package/dist/components/sources/SourceCard.d.ts +21 -0
- package/dist/components/sources/SourceCard.js +48 -0
- package/dist/components/sources/Sources.d.ts +31 -0
- package/dist/components/sources/Sources.js +39 -0
- package/dist/components/sources/SourcesList.d.ts +13 -0
- package/dist/components/sources/SourcesList.js +42 -0
- package/dist/components/sources/SourcesTrigger.d.ts +11 -0
- package/dist/components/sources/SourcesTrigger.js +50 -0
- package/dist/components/sources/index.d.ts +10 -0
- package/dist/components/sources/types.d.ts +45 -0
- package/dist/components/sources/types.js +7 -0
- package/dist/components/sparkles/Sparkles.d.ts +35 -0
- package/dist/components/sparkles/Sparkles.js +112 -0
- package/dist/components/sparkles/index.d.ts +2 -0
- package/dist/components/sparkles-text/SparklesText.d.ts +28 -0
- package/dist/components/sparkles-text/SparklesText.js +84 -0
- package/dist/components/sparkles-text/index.d.ts +2 -0
- package/dist/components/status-morph/StatusMorph.d.ts +47 -0
- package/dist/components/status-morph/StatusMorph.js +110 -0
- package/dist/components/status-morph/index.d.ts +2 -0
- package/dist/components/stepper/Step.d.ts +24 -0
- package/dist/components/stepper/Step.js +152 -0
- package/dist/components/stepper/Stepper.d.ts +38 -0
- package/dist/components/stepper/Stepper.js +79 -0
- package/dist/components/stepper/index.d.ts +6 -0
- package/dist/components/stepper/types.d.ts +66 -0
- package/dist/components/stepper/types.js +7 -0
- package/dist/components/sticky-scroll/StickyScroll.d.ts +40 -0
- package/dist/components/sticky-scroll/StickyScroll.js +163 -0
- package/dist/components/sticky-scroll/index.d.ts +2 -0
- package/dist/components/streaming-text/StreamingText.d.ts +20 -0
- package/dist/components/streaming-text/StreamingText.js +32 -0
- package/dist/components/streaming-text/index.d.ts +2 -0
- package/dist/components/subagent-list/SubagentList.d.ts +28 -0
- package/dist/components/subagent-list/SubagentList.js +167 -0
- package/dist/components/subagent-list/index.d.ts +2 -0
- package/dist/components/switch/Switch.d.ts +55 -0
- package/dist/components/switch/Switch.js +77 -0
- package/dist/components/switch/index.d.ts +2 -0
- package/dist/components/tabs/Tabs.d.ts +43 -0
- package/dist/components/tabs/Tabs.js +123 -0
- package/dist/components/tabs/TabsContent.d.ts +26 -0
- package/dist/components/tabs/TabsContent.js +64 -0
- package/dist/components/tabs/TabsList.d.ts +16 -0
- package/dist/components/tabs/TabsList.js +152 -0
- package/dist/components/tabs/TabsTrigger.d.ts +19 -0
- package/dist/components/tabs/TabsTrigger.js +138 -0
- package/dist/components/tabs/index.d.ts +10 -0
- package/dist/components/tabs/types.d.ts +94 -0
- package/dist/components/tabs/types.js +7 -0
- package/dist/components/terminal-block/TerminalBlock.d.ts +27 -0
- package/dist/components/terminal-block/TerminalBlock.js +120 -0
- package/dist/components/terminal-block/ansi.d.ts +30 -0
- package/dist/components/terminal-block/ansi.js +114 -0
- package/dist/components/terminal-block/index.d.ts +2 -0
- package/dist/components/terminal-text/TerminalText.d.ts +11 -0
- package/dist/components/terminal-text/TerminalText.js +140 -0
- package/dist/components/terminal-text/index.d.ts +2 -0
- package/dist/components/text-generate-effect/TextGenerateEffect.d.ts +9 -0
- package/dist/components/text-generate-effect/TextGenerateEffect.js +58 -0
- package/dist/components/text-generate-effect/index.d.ts +2 -0
- package/dist/components/text-reveal-card/TextRevealCard.d.ts +21 -0
- package/dist/components/text-reveal-card/TextRevealCard.js +107 -0
- package/dist/components/text-reveal-card/TextRevealStars.d.ts +25 -0
- package/dist/components/text-reveal-card/TextRevealStars.js +59 -0
- package/dist/components/text-reveal-card/index.d.ts +4 -0
- package/dist/components/text-roll/TextRoll.d.ts +43 -0
- package/dist/components/text-roll/TextRoll.js +242 -0
- package/dist/components/text-roll/index.d.ts +2 -0
- package/dist/components/text-roll/roll-transitions.d.ts +74 -0
- package/dist/components/text-roll/roll-transitions.js +31 -0
- package/dist/components/textarea/Textarea.d.ts +48 -0
- package/dist/components/textarea/Textarea.js +129 -0
- package/dist/components/textarea/index.d.ts +2 -0
- package/dist/components/thinking-indicator/ThinkingIndicator.d.ts +26 -0
- package/dist/components/thinking-indicator/ThinkingIndicator.js +60 -0
- package/dist/components/thinking-indicator/index.d.ts +2 -0
- package/dist/components/thread-list/ThreadList.d.ts +44 -0
- package/dist/components/thread-list/ThreadList.js +178 -0
- package/dist/components/thread-list/index.d.ts +2 -0
- package/dist/components/time-picker/TimePicker.d.ts +44 -0
- package/dist/components/time-picker/TimePicker.js +254 -0
- package/dist/components/time-picker/TimePickerPanel.d.ts +30 -0
- package/dist/components/time-picker/TimePickerPanel.js +94 -0
- package/dist/components/time-picker/index.d.ts +2 -0
- package/dist/components/time-picker/time-utils.d.ts +33 -0
- package/dist/components/time-picker/time-utils.js +65 -0
- package/dist/components/time-picker/types.d.ts +53 -0
- package/dist/components/time-picker/types.js +10 -0
- package/dist/components/timeline/Timeline.d.ts +18 -0
- package/dist/components/timeline/Timeline.js +96 -0
- package/dist/components/timeline/index.d.ts +2 -0
- package/dist/components/toast/Toast.d.ts +16 -0
- package/dist/components/toast/Toast.js +99 -0
- package/dist/components/toast/Toaster.d.ts +19 -0
- package/dist/components/toast/Toaster.js +147 -0
- package/dist/components/toast/index.d.ts +6 -0
- package/dist/components/toast/store.d.ts +102 -0
- package/dist/components/toast/store.js +118 -0
- package/dist/components/toggle/Toggle.d.ts +28 -0
- package/dist/components/toggle/Toggle.js +69 -0
- package/dist/components/toggle/index.d.ts +2 -0
- package/dist/components/toggle-group/ToggleGroup.d.ts +42 -0
- package/dist/components/toggle-group/ToggleGroup.js +150 -0
- package/dist/components/toggle-group/ToggleGroupItem.d.ts +21 -0
- package/dist/components/toggle-group/ToggleGroupItem.js +100 -0
- package/dist/components/toggle-group/index.d.ts +6 -0
- package/dist/components/toggle-group/types.d.ts +75 -0
- package/dist/components/toggle-group/types.js +7 -0
- package/dist/components/tool-call/ToolCall.d.ts +39 -0
- package/dist/components/tool-call/ToolCall.js +195 -0
- package/dist/components/tool-call/index.d.ts +2 -0
- package/dist/components/tool-timeline/ToolTimeline.d.ts +31 -0
- package/dist/components/tool-timeline/ToolTimeline.js +99 -0
- package/dist/components/tool-timeline/index.d.ts +2 -0
- package/dist/components/tooltip/Tooltip.d.ts +36 -0
- package/dist/components/tooltip/Tooltip.js +214 -0
- package/dist/components/tooltip/index.d.ts +2 -0
- package/dist/components/tracing-beam/TracingBeam.d.ts +11 -0
- package/dist/components/tracing-beam/TracingBeam.js +163 -0
- package/dist/components/tracing-beam/index.d.ts +2 -0
- package/dist/components/typing-indicator/TypingIndicator.d.ts +17 -0
- package/dist/components/typing-indicator/TypingIndicator.js +47 -0
- package/dist/components/typing-indicator/index.d.ts +2 -0
- package/dist/components/voice-input/VoiceInput.d.ts +60 -0
- package/dist/components/voice-input/VoiceInput.js +268 -0
- package/dist/components/voice-input/index.d.ts +2 -0
- package/dist/components/web-search/WebSearch.d.ts +37 -0
- package/dist/components/web-search/WebSearch.js +135 -0
- package/dist/components/web-search/index.d.ts +2 -0
- package/dist/index.d.ts +148 -0
- package/dist/index.js +489 -0
- package/dist/internals/Portal.d.ts +35 -0
- package/dist/internals/Portal.js +37 -0
- package/dist/internals/StreamText.d.ts +20 -0
- package/dist/internals/StreamText.js +25 -0
- package/dist/internals/ai-types.d.ts +117 -0
- package/dist/internals/anchor-position.d.ts +79 -0
- package/dist/internals/anchor-position.js +154 -0
- package/dist/internals/calendar-core.d.ts +26 -0
- package/dist/internals/calendar-core.js +57 -0
- package/dist/internals/diff.d.ts +38 -0
- package/dist/internals/diff.js +176 -0
- package/dist/internals/dismissable.d.ts +76 -0
- package/dist/internals/dismissable.js +105 -0
- package/dist/internals/dom/context.d.ts +16 -0
- package/dist/internals/dom/context.js +20 -0
- package/dist/internals/dom/ssr.d.ts +21 -0
- package/dist/internals/dom/ssr.js +21 -0
- package/dist/internals/dom/types.d.ts +9 -0
- package/dist/internals/dom/use-composed-refs.d.ts +15 -0
- package/dist/internals/dom/use-composed-refs.js +34 -0
- package/dist/internals/dom/use-element-ref.d.ts +11 -0
- package/dist/internals/dom/use-element-ref.js +12 -0
- package/dist/internals/dom/use-event-callback.d.ts +14 -0
- package/dist/internals/dom/use-event-callback.js +12 -0
- package/dist/internals/dom/use-inert-attribute.d.ts +26 -0
- package/dist/internals/dom/use-inert-attribute.js +22 -0
- package/dist/internals/dom/use-live-ref.d.ts +10 -0
- package/dist/internals/dom/use-live-ref.js +12 -0
- package/dist/internals/field.d.ts +136 -0
- package/dist/internals/field.js +33 -0
- package/dist/internals/float.d.ts +47 -0
- package/dist/internals/float.js +31 -0
- package/dist/internals/focus-trap.d.ts +82 -0
- package/dist/internals/focus-trap.js +145 -0
- package/dist/internals/host.d.ts +38 -0
- package/dist/internals/host.js +24 -0
- package/dist/internals/listbox.d.ts +101 -0
- package/dist/internals/listbox.js +171 -0
- package/dist/internals/markdown/Markdown.d.ts +22 -0
- package/dist/internals/markdown/Markdown.js +53 -0
- package/dist/internals/markdown/MarkdownInline.d.ts +5 -0
- package/dist/internals/markdown/MarkdownInline.js +40 -0
- package/dist/internals/markdown.d.ts +66 -0
- package/dist/internals/markdown.js +467 -0
- package/dist/internals/menu.d.ts +121 -0
- package/dist/internals/menu.js +217 -0
- package/dist/internals/motion/anchored.d.ts +104 -0
- package/dist/internals/motion/anchored.js +44 -0
- package/dist/internals/motion/animate.d.ts +92 -0
- package/dist/internals/motion/animate.js +84 -0
- package/dist/internals/motion/easing.d.ts +20 -0
- package/dist/internals/motion/easing.js +13 -0
- package/dist/internals/motion/haptics.d.ts +42 -0
- package/dist/internals/motion/haptics.js +29 -0
- package/dist/internals/motion/in-view.d.ts +67 -0
- package/dist/internals/motion/in-view.js +97 -0
- package/dist/internals/motion/media-query.d.ts +50 -0
- package/dist/internals/motion/media-query.js +54 -0
- package/dist/internals/motion/presence.d.ts +108 -0
- package/dist/internals/motion/presence.js +197 -0
- package/dist/internals/motion/presets.d.ts +34 -0
- package/dist/internals/motion/presets.js +19 -0
- package/dist/internals/motion/raf.d.ts +35 -0
- package/dist/internals/motion/raf.js +27 -0
- package/dist/internals/motion/stagger.d.ts +32 -0
- package/dist/internals/motion/stagger.js +15 -0
- package/dist/internals/motion/tokens.d.ts +97 -0
- package/dist/internals/motion/tokens.js +18 -0
- package/dist/internals/motion/transitions.d.ts +66 -0
- package/dist/internals/motion/transitions.js +41 -0
- package/dist/internals/motion/types.d.ts +17 -0
- package/dist/internals/relative-time.d.ts +25 -0
- package/dist/internals/relative-time.js +46 -0
- package/dist/internals/scroll-lock.d.ts +26 -0
- package/dist/internals/scroll-lock.js +65 -0
- package/dist/internals/use-anchor-position.d.ts +54 -0
- package/dist/internals/use-anchor-position.js +87 -0
- package/dist/internals/use-autoscroll.d.ts +43 -0
- package/dist/internals/use-autoscroll.js +128 -0
- package/dist/internals/use-copy.d.ts +54 -0
- package/dist/internals/use-copy.js +67 -0
- package/dist/internals/use-elapsed.d.ts +96 -0
- package/dist/internals/use-elapsed.js +195 -0
- package/dist/internals/use-float.d.ts +49 -0
- package/dist/internals/use-float.js +150 -0
- package/dist/internals/use-id.d.ts +22 -0
- package/dist/internals/use-id.js +20 -0
- package/dist/internals/use-text-stream.d.ts +94 -0
- package/dist/internals/use-text-stream.js +133 -0
- package/dist/internals/waveform-core.d.ts +33 -0
- package/dist/internals/waveform-core.js +39 -0
- package/dist/sound/SoundToggle.d.ts +23 -0
- package/dist/sound/SoundToggle.js +96 -0
- package/dist/sound/engine.d.ts +67 -0
- package/dist/sound/engine.js +370 -0
- package/dist/sound/index.d.ts +7 -0
- package/dist/sound/sound-feedback.d.ts +77 -0
- package/dist/sound/sound-feedback.js +152 -0
- package/dist/sound/sound.d.ts +98 -0
- package/dist/sound/sound.js +309 -0
- package/dist/sound/themes.d.ts +19 -0
- package/dist/sound/themes.js +355 -0
- package/dist/sound/types.d.ts +125 -0
- package/dist/sound/types.js +54 -0
- package/dist/sound/use-sound.d.ts +53 -0
- package/dist/sound/use-sound.js +82 -0
- package/dist/styles.css +7975 -0
- package/dist/utils.d.ts +3 -0
- package/dist/utils.js +8 -0
- package/package.json +96 -0
- package/tailwind.css +132 -0
|
@@ -0,0 +1,787 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { gsap } from "gsap";
|
|
3
|
+
function lerp(a, b, n) {
|
|
4
|
+
return (1 - n) * a + n * b;
|
|
5
|
+
}
|
|
6
|
+
function getLocalPointerPos(e, rect) {
|
|
7
|
+
let clientX = 0;
|
|
8
|
+
let clientY = 0;
|
|
9
|
+
if ("touches" in e && e.touches.length > 0) {
|
|
10
|
+
const touch = e.touches[0];
|
|
11
|
+
clientX = touch.clientX;
|
|
12
|
+
clientY = touch.clientY;
|
|
13
|
+
} else if ("clientX" in e) {
|
|
14
|
+
clientX = e.clientX;
|
|
15
|
+
clientY = e.clientY;
|
|
16
|
+
}
|
|
17
|
+
return {
|
|
18
|
+
x: clientX - rect.left,
|
|
19
|
+
y: clientY - rect.top
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function getMouseDistance(p1, p2) {
|
|
23
|
+
const dx = p1.x - p2.x;
|
|
24
|
+
const dy = p1.y - p2.y;
|
|
25
|
+
return Math.hypot(dx, dy);
|
|
26
|
+
}
|
|
27
|
+
function getNewPosition(position, offset, arr) {
|
|
28
|
+
const realOffset = Math.abs(offset) % arr.length;
|
|
29
|
+
if (position - realOffset >= 0) {
|
|
30
|
+
return position - realOffset;
|
|
31
|
+
} else {
|
|
32
|
+
return arr.length - (realOffset - position);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
class ImageItem {
|
|
36
|
+
DOM = {
|
|
37
|
+
el: null,
|
|
38
|
+
inner: null
|
|
39
|
+
};
|
|
40
|
+
// Port divergence: `private` where the Svelte source says `public`. gsap declares
|
|
41
|
+
// `TweenVars` inside a GLOBAL `namespace gsap` with no module-level export, so a
|
|
42
|
+
// public `gsap.TweenVars` member emits a bare `gsap.` reference into the shipped
|
|
43
|
+
// .d.ts while tsc drops the value-only `import { gsap }` — consumers then hit
|
|
44
|
+
// TS2503 "Cannot find namespace 'gsap'". A private member emits no type at all.
|
|
45
|
+
// Read only by initEvents() below, so nothing outside this class loses access.
|
|
46
|
+
defaultStyle = { scale: 1, x: 0, y: 0, opacity: 0 };
|
|
47
|
+
rect = null;
|
|
48
|
+
resizeHandler = null;
|
|
49
|
+
constructor(DOM_el) {
|
|
50
|
+
this.DOM.el = DOM_el;
|
|
51
|
+
this.DOM.inner = this.DOM.el.querySelector(".content__img-inner");
|
|
52
|
+
this.getRect();
|
|
53
|
+
this.initEvents();
|
|
54
|
+
}
|
|
55
|
+
initEvents() {
|
|
56
|
+
this.resizeHandler = () => {
|
|
57
|
+
gsap.set(this.DOM.el, this.defaultStyle);
|
|
58
|
+
this.getRect();
|
|
59
|
+
};
|
|
60
|
+
window.addEventListener("resize", this.resizeHandler);
|
|
61
|
+
}
|
|
62
|
+
getRect() {
|
|
63
|
+
this.rect = this.DOM.el.getBoundingClientRect();
|
|
64
|
+
}
|
|
65
|
+
destroy() {
|
|
66
|
+
if (this.resizeHandler) {
|
|
67
|
+
window.removeEventListener("resize", this.resizeHandler);
|
|
68
|
+
this.resizeHandler = null;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
class BaseVariant {
|
|
73
|
+
container;
|
|
74
|
+
DOM;
|
|
75
|
+
images;
|
|
76
|
+
imagesTotal;
|
|
77
|
+
imgPosition;
|
|
78
|
+
zIndexVal;
|
|
79
|
+
activeImagesCount;
|
|
80
|
+
isIdle;
|
|
81
|
+
mousePos;
|
|
82
|
+
lastMousePos;
|
|
83
|
+
cacheMousePos;
|
|
84
|
+
touchActive = false;
|
|
85
|
+
positionHistory = [];
|
|
86
|
+
static HISTORY_MAX_AGE = 100;
|
|
87
|
+
// ms
|
|
88
|
+
static HISTORY_MAX_LEN = 5;
|
|
89
|
+
rafId = null;
|
|
90
|
+
rafStarted = false;
|
|
91
|
+
destroyed = false;
|
|
92
|
+
handlePointerMove = null;
|
|
93
|
+
initRender = null;
|
|
94
|
+
handleTouchStart = null;
|
|
95
|
+
handleTouchEnd = null;
|
|
96
|
+
constructor(container) {
|
|
97
|
+
this.container = container;
|
|
98
|
+
this.DOM = { el: container };
|
|
99
|
+
this.images = [...container.querySelectorAll(".content__img")].map(
|
|
100
|
+
(img) => new ImageItem(img)
|
|
101
|
+
);
|
|
102
|
+
this.imagesTotal = this.images.length;
|
|
103
|
+
this.imgPosition = 0;
|
|
104
|
+
this.zIndexVal = 1;
|
|
105
|
+
this.activeImagesCount = 0;
|
|
106
|
+
this.isIdle = true;
|
|
107
|
+
this.mousePos = { x: 0, y: 0 };
|
|
108
|
+
this.lastMousePos = { x: 0, y: 0 };
|
|
109
|
+
this.cacheMousePos = { x: 0, y: 0 };
|
|
110
|
+
this.handlePointerMove = (ev) => {
|
|
111
|
+
if ("touches" in ev) ev.preventDefault();
|
|
112
|
+
const rect = this.container.getBoundingClientRect();
|
|
113
|
+
this.mousePos = getLocalPointerPos(ev, rect);
|
|
114
|
+
if (this.touchActive) {
|
|
115
|
+
this.pushPositionHistory(this.mousePos.x, this.mousePos.y);
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
container.addEventListener("mousemove", this.handlePointerMove);
|
|
119
|
+
container.addEventListener("touchmove", this.handlePointerMove, { passive: false });
|
|
120
|
+
this.initRender = (ev) => {
|
|
121
|
+
if ("touches" in ev) ev.preventDefault();
|
|
122
|
+
const rect = this.container.getBoundingClientRect();
|
|
123
|
+
this.mousePos = getLocalPointerPos(ev, rect);
|
|
124
|
+
this.cacheMousePos = { ...this.mousePos };
|
|
125
|
+
this.startRafLoop();
|
|
126
|
+
container.removeEventListener("mousemove", this.initRender);
|
|
127
|
+
container.removeEventListener("touchmove", this.initRender);
|
|
128
|
+
};
|
|
129
|
+
container.addEventListener("mousemove", this.initRender);
|
|
130
|
+
container.addEventListener("touchmove", this.initRender, { passive: false });
|
|
131
|
+
this.handleTouchStart = (ev) => {
|
|
132
|
+
ev.preventDefault();
|
|
133
|
+
this.touchActive = true;
|
|
134
|
+
const rect = this.container.getBoundingClientRect();
|
|
135
|
+
const pos = getLocalPointerPos(ev, rect);
|
|
136
|
+
this.mousePos = pos;
|
|
137
|
+
this.cacheMousePos = { ...pos };
|
|
138
|
+
this.lastMousePos = { ...pos };
|
|
139
|
+
this.positionHistory = [];
|
|
140
|
+
this.pushPositionHistory(pos.x, pos.y);
|
|
141
|
+
this.startRafLoop();
|
|
142
|
+
};
|
|
143
|
+
container.addEventListener("touchstart", this.handleTouchStart, { passive: false });
|
|
144
|
+
this.handleTouchEnd = () => {
|
|
145
|
+
this.touchActive = false;
|
|
146
|
+
this.lastMousePos = { ...this.mousePos };
|
|
147
|
+
this.cacheMousePos = { ...this.mousePos };
|
|
148
|
+
this.positionHistory = [];
|
|
149
|
+
};
|
|
150
|
+
container.addEventListener("touchend", this.handleTouchEnd);
|
|
151
|
+
container.addEventListener("touchcancel", this.handleTouchEnd);
|
|
152
|
+
}
|
|
153
|
+
startRafLoop() {
|
|
154
|
+
if (this.rafStarted) return;
|
|
155
|
+
if (this.imagesTotal === 0) return;
|
|
156
|
+
this.rafStarted = true;
|
|
157
|
+
if (this.initRender) {
|
|
158
|
+
this.container.removeEventListener("mousemove", this.initRender);
|
|
159
|
+
this.container.removeEventListener("touchmove", this.initRender);
|
|
160
|
+
}
|
|
161
|
+
this.rafId = requestAnimationFrame(() => this.render());
|
|
162
|
+
}
|
|
163
|
+
pushPositionHistory(x, y) {
|
|
164
|
+
const now = performance.now();
|
|
165
|
+
this.positionHistory.push({ x, y, t: now });
|
|
166
|
+
const cutoff = now - BaseVariant.HISTORY_MAX_AGE;
|
|
167
|
+
while (this.positionHistory.length > BaseVariant.HISTORY_MAX_LEN || this.positionHistory.length > 1 && this.positionHistory[0].t < cutoff) {
|
|
168
|
+
this.positionHistory.shift();
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
getTouchVelocity() {
|
|
172
|
+
if (!this.touchActive || this.positionHistory.length < 2) {
|
|
173
|
+
return {
|
|
174
|
+
dx: this.mousePos.x - this.cacheMousePos.x,
|
|
175
|
+
dy: this.mousePos.y - this.cacheMousePos.y
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
let dx = 0;
|
|
179
|
+
let dy = 0;
|
|
180
|
+
for (let i = 1; i < this.positionHistory.length; i++) {
|
|
181
|
+
dx += this.positionHistory[i].x - this.positionHistory[i - 1].x;
|
|
182
|
+
dy += this.positionHistory[i].y - this.positionHistory[i - 1].y;
|
|
183
|
+
}
|
|
184
|
+
return { dx, dy };
|
|
185
|
+
}
|
|
186
|
+
get threshold() {
|
|
187
|
+
return this.touchActive ? 40 : 80;
|
|
188
|
+
}
|
|
189
|
+
render() {
|
|
190
|
+
if (this.destroyed) return;
|
|
191
|
+
const distance = getMouseDistance(this.mousePos, this.lastMousePos);
|
|
192
|
+
this.updateCache();
|
|
193
|
+
if (distance > this.threshold) {
|
|
194
|
+
this.showNextImage();
|
|
195
|
+
this.lastMousePos = { ...this.mousePos };
|
|
196
|
+
}
|
|
197
|
+
if (this.isIdle && this.zIndexVal !== 1) {
|
|
198
|
+
this.zIndexVal = 1;
|
|
199
|
+
}
|
|
200
|
+
this.rafId = requestAnimationFrame(() => this.render());
|
|
201
|
+
}
|
|
202
|
+
updateCache() {
|
|
203
|
+
this.cacheMousePos.x = lerp(this.cacheMousePos.x, this.mousePos.x, 0.1);
|
|
204
|
+
this.cacheMousePos.y = lerp(this.cacheMousePos.y, this.mousePos.y, 0.1);
|
|
205
|
+
}
|
|
206
|
+
onImageActivated() {
|
|
207
|
+
this.activeImagesCount++;
|
|
208
|
+
this.isIdle = false;
|
|
209
|
+
}
|
|
210
|
+
onImageDeactivated() {
|
|
211
|
+
this.activeImagesCount--;
|
|
212
|
+
if (this.activeImagesCount === 0) {
|
|
213
|
+
this.isIdle = true;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
destroy() {
|
|
217
|
+
this.destroyed = true;
|
|
218
|
+
if (this.rafId !== null) {
|
|
219
|
+
cancelAnimationFrame(this.rafId);
|
|
220
|
+
this.rafId = null;
|
|
221
|
+
}
|
|
222
|
+
if (this.handlePointerMove) {
|
|
223
|
+
this.container.removeEventListener("mousemove", this.handlePointerMove);
|
|
224
|
+
this.container.removeEventListener("touchmove", this.handlePointerMove);
|
|
225
|
+
}
|
|
226
|
+
if (this.initRender) {
|
|
227
|
+
this.container.removeEventListener("mousemove", this.initRender);
|
|
228
|
+
this.container.removeEventListener("touchmove", this.initRender);
|
|
229
|
+
}
|
|
230
|
+
if (this.handleTouchStart) {
|
|
231
|
+
this.container.removeEventListener("touchstart", this.handleTouchStart);
|
|
232
|
+
}
|
|
233
|
+
if (this.handleTouchEnd) {
|
|
234
|
+
this.container.removeEventListener("touchend", this.handleTouchEnd);
|
|
235
|
+
this.container.removeEventListener("touchcancel", this.handleTouchEnd);
|
|
236
|
+
}
|
|
237
|
+
this.positionHistory = [];
|
|
238
|
+
for (const img of this.images) {
|
|
239
|
+
gsap.killTweensOf(img.DOM.el);
|
|
240
|
+
if (img.DOM.inner) gsap.killTweensOf(img.DOM.inner);
|
|
241
|
+
img.destroy();
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
class ImageTrailVariant1 extends BaseVariant {
|
|
246
|
+
showNextImage() {
|
|
247
|
+
++this.zIndexVal;
|
|
248
|
+
this.imgPosition = this.imgPosition < this.imagesTotal - 1 ? this.imgPosition + 1 : 0;
|
|
249
|
+
const img = this.images[this.imgPosition];
|
|
250
|
+
if (!img) return;
|
|
251
|
+
gsap.killTweensOf(img.DOM.el);
|
|
252
|
+
gsap.timeline({
|
|
253
|
+
onStart: () => this.onImageActivated(),
|
|
254
|
+
onComplete: () => this.onImageDeactivated()
|
|
255
|
+
}).fromTo(
|
|
256
|
+
img.DOM.el,
|
|
257
|
+
{
|
|
258
|
+
opacity: 1,
|
|
259
|
+
scale: 1,
|
|
260
|
+
zIndex: this.zIndexVal,
|
|
261
|
+
x: this.cacheMousePos.x - (img.rect?.width ?? 0) / 2,
|
|
262
|
+
y: this.cacheMousePos.y - (img.rect?.height ?? 0) / 2
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
duration: 0.4,
|
|
266
|
+
ease: "power1",
|
|
267
|
+
x: this.mousePos.x - (img.rect?.width ?? 0) / 2,
|
|
268
|
+
y: this.mousePos.y - (img.rect?.height ?? 0) / 2
|
|
269
|
+
},
|
|
270
|
+
0
|
|
271
|
+
).to(
|
|
272
|
+
img.DOM.el,
|
|
273
|
+
{
|
|
274
|
+
duration: 0.4,
|
|
275
|
+
ease: "power3",
|
|
276
|
+
opacity: 0,
|
|
277
|
+
scale: 0.2
|
|
278
|
+
},
|
|
279
|
+
0.4
|
|
280
|
+
);
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
class ImageTrailVariant2 extends BaseVariant {
|
|
284
|
+
showNextImage() {
|
|
285
|
+
++this.zIndexVal;
|
|
286
|
+
this.imgPosition = this.imgPosition < this.imagesTotal - 1 ? this.imgPosition + 1 : 0;
|
|
287
|
+
const img = this.images[this.imgPosition];
|
|
288
|
+
if (!img) return;
|
|
289
|
+
gsap.killTweensOf(img.DOM.el);
|
|
290
|
+
gsap.timeline({
|
|
291
|
+
onStart: () => this.onImageActivated(),
|
|
292
|
+
onComplete: () => this.onImageDeactivated()
|
|
293
|
+
}).fromTo(
|
|
294
|
+
img.DOM.el,
|
|
295
|
+
{
|
|
296
|
+
opacity: 1,
|
|
297
|
+
scale: 0,
|
|
298
|
+
zIndex: this.zIndexVal,
|
|
299
|
+
x: this.cacheMousePos.x - (img.rect?.width ?? 0) / 2,
|
|
300
|
+
y: this.cacheMousePos.y - (img.rect?.height ?? 0) / 2
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
duration: 0.4,
|
|
304
|
+
ease: "power1",
|
|
305
|
+
scale: 1,
|
|
306
|
+
x: this.mousePos.x - (img.rect?.width ?? 0) / 2,
|
|
307
|
+
y: this.mousePos.y - (img.rect?.height ?? 0) / 2
|
|
308
|
+
},
|
|
309
|
+
0
|
|
310
|
+
).fromTo(
|
|
311
|
+
img.DOM.inner,
|
|
312
|
+
{ scale: 2.8, filter: "brightness(250%)" },
|
|
313
|
+
{
|
|
314
|
+
duration: 0.4,
|
|
315
|
+
ease: "power1",
|
|
316
|
+
scale: 1,
|
|
317
|
+
filter: "brightness(100%)"
|
|
318
|
+
},
|
|
319
|
+
0
|
|
320
|
+
).to(
|
|
321
|
+
img.DOM.el,
|
|
322
|
+
{
|
|
323
|
+
duration: 0.4,
|
|
324
|
+
ease: "power2",
|
|
325
|
+
opacity: 0,
|
|
326
|
+
scale: 0.2
|
|
327
|
+
},
|
|
328
|
+
0.45
|
|
329
|
+
);
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
class ImageTrailVariant3 extends BaseVariant {
|
|
333
|
+
showNextImage() {
|
|
334
|
+
++this.zIndexVal;
|
|
335
|
+
this.imgPosition = this.imgPosition < this.imagesTotal - 1 ? this.imgPosition + 1 : 0;
|
|
336
|
+
const img = this.images[this.imgPosition];
|
|
337
|
+
if (!img) return;
|
|
338
|
+
gsap.killTweensOf(img.DOM.el);
|
|
339
|
+
gsap.timeline({
|
|
340
|
+
onStart: () => this.onImageActivated(),
|
|
341
|
+
onComplete: () => this.onImageDeactivated()
|
|
342
|
+
}).fromTo(
|
|
343
|
+
img.DOM.el,
|
|
344
|
+
{
|
|
345
|
+
opacity: 1,
|
|
346
|
+
scale: 0,
|
|
347
|
+
zIndex: this.zIndexVal,
|
|
348
|
+
xPercent: 0,
|
|
349
|
+
yPercent: 0,
|
|
350
|
+
x: this.cacheMousePos.x - (img.rect?.width ?? 0) / 2,
|
|
351
|
+
y: this.cacheMousePos.y - (img.rect?.height ?? 0) / 2
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
duration: 0.4,
|
|
355
|
+
ease: "power1",
|
|
356
|
+
scale: 1,
|
|
357
|
+
x: this.mousePos.x - (img.rect?.width ?? 0) / 2,
|
|
358
|
+
y: this.mousePos.y - (img.rect?.height ?? 0) / 2
|
|
359
|
+
},
|
|
360
|
+
0
|
|
361
|
+
).fromTo(
|
|
362
|
+
img.DOM.inner,
|
|
363
|
+
{ scale: 1.2 },
|
|
364
|
+
{
|
|
365
|
+
duration: 0.4,
|
|
366
|
+
ease: "power1",
|
|
367
|
+
scale: 1
|
|
368
|
+
},
|
|
369
|
+
0
|
|
370
|
+
).to(
|
|
371
|
+
img.DOM.el,
|
|
372
|
+
{
|
|
373
|
+
duration: 0.6,
|
|
374
|
+
ease: "power2",
|
|
375
|
+
opacity: 0,
|
|
376
|
+
scale: 0.2,
|
|
377
|
+
xPercent: () => gsap.utils.random(-30, 30),
|
|
378
|
+
yPercent: -200
|
|
379
|
+
},
|
|
380
|
+
0.6
|
|
381
|
+
);
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
class ImageTrailVariant4 extends BaseVariant {
|
|
385
|
+
showNextImage() {
|
|
386
|
+
++this.zIndexVal;
|
|
387
|
+
this.imgPosition = this.imgPosition < this.imagesTotal - 1 ? this.imgPosition + 1 : 0;
|
|
388
|
+
const img = this.images[this.imgPosition];
|
|
389
|
+
if (!img) return;
|
|
390
|
+
gsap.killTweensOf(img.DOM.el);
|
|
391
|
+
const vel = this.getTouchVelocity();
|
|
392
|
+
let dx = vel.dx;
|
|
393
|
+
let dy = vel.dy;
|
|
394
|
+
const distance = Math.sqrt(dx * dx + dy * dy);
|
|
395
|
+
if (distance !== 0) {
|
|
396
|
+
dx /= distance;
|
|
397
|
+
dy /= distance;
|
|
398
|
+
}
|
|
399
|
+
dx *= distance / 100;
|
|
400
|
+
dy *= distance / 100;
|
|
401
|
+
gsap.timeline({
|
|
402
|
+
onStart: () => this.onImageActivated(),
|
|
403
|
+
onComplete: () => this.onImageDeactivated()
|
|
404
|
+
}).fromTo(
|
|
405
|
+
img.DOM.el,
|
|
406
|
+
{
|
|
407
|
+
opacity: 1,
|
|
408
|
+
scale: 0,
|
|
409
|
+
zIndex: this.zIndexVal,
|
|
410
|
+
x: this.cacheMousePos.x - (img.rect?.width ?? 0) / 2,
|
|
411
|
+
y: this.cacheMousePos.y - (img.rect?.height ?? 0) / 2
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
duration: 0.4,
|
|
415
|
+
ease: "power1",
|
|
416
|
+
scale: 1,
|
|
417
|
+
x: this.mousePos.x - (img.rect?.width ?? 0) / 2,
|
|
418
|
+
y: this.mousePos.y - (img.rect?.height ?? 0) / 2
|
|
419
|
+
},
|
|
420
|
+
0
|
|
421
|
+
).fromTo(
|
|
422
|
+
img.DOM.inner,
|
|
423
|
+
{
|
|
424
|
+
scale: 2,
|
|
425
|
+
filter: `brightness(${Math.max(400 * distance / 100, 100)}%) contrast(${Math.max(
|
|
426
|
+
400 * distance / 100,
|
|
427
|
+
100
|
|
428
|
+
)}%)`
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
duration: 0.4,
|
|
432
|
+
ease: "power1",
|
|
433
|
+
scale: 1,
|
|
434
|
+
filter: "brightness(100%) contrast(100%)"
|
|
435
|
+
},
|
|
436
|
+
0
|
|
437
|
+
).to(
|
|
438
|
+
img.DOM.el,
|
|
439
|
+
{
|
|
440
|
+
duration: 0.4,
|
|
441
|
+
ease: "power3",
|
|
442
|
+
opacity: 0
|
|
443
|
+
},
|
|
444
|
+
0.4
|
|
445
|
+
).to(
|
|
446
|
+
img.DOM.el,
|
|
447
|
+
{
|
|
448
|
+
duration: 1.5,
|
|
449
|
+
ease: "power4",
|
|
450
|
+
x: `+=${dx * 110}`,
|
|
451
|
+
y: `+=${dy * 110}`
|
|
452
|
+
},
|
|
453
|
+
0.05
|
|
454
|
+
);
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
class ImageTrailVariant5 extends BaseVariant {
|
|
458
|
+
lastAngle = 0;
|
|
459
|
+
showNextImage() {
|
|
460
|
+
const vel = this.getTouchVelocity();
|
|
461
|
+
let dx = vel.dx;
|
|
462
|
+
let dy = vel.dy;
|
|
463
|
+
let angle = Math.atan2(dy, dx) * (180 / Math.PI);
|
|
464
|
+
if (angle < 0) angle += 360;
|
|
465
|
+
if (angle > 90 && angle <= 270) angle += 180;
|
|
466
|
+
const isMovingClockwise = angle >= this.lastAngle;
|
|
467
|
+
this.lastAngle = angle;
|
|
468
|
+
const startAngle = isMovingClockwise ? angle - 10 : angle + 10;
|
|
469
|
+
const distance = Math.sqrt(dx * dx + dy * dy);
|
|
470
|
+
if (distance !== 0) {
|
|
471
|
+
dx /= distance;
|
|
472
|
+
dy /= distance;
|
|
473
|
+
}
|
|
474
|
+
dx *= distance / 150;
|
|
475
|
+
dy *= distance / 150;
|
|
476
|
+
++this.zIndexVal;
|
|
477
|
+
this.imgPosition = this.imgPosition < this.imagesTotal - 1 ? this.imgPosition + 1 : 0;
|
|
478
|
+
const img = this.images[this.imgPosition];
|
|
479
|
+
if (!img) return;
|
|
480
|
+
gsap.killTweensOf(img.DOM.el);
|
|
481
|
+
gsap.timeline({
|
|
482
|
+
onStart: () => this.onImageActivated(),
|
|
483
|
+
onComplete: () => this.onImageDeactivated()
|
|
484
|
+
}).fromTo(
|
|
485
|
+
img.DOM.el,
|
|
486
|
+
{
|
|
487
|
+
opacity: 1,
|
|
488
|
+
filter: "brightness(80%)",
|
|
489
|
+
scale: 0.1,
|
|
490
|
+
zIndex: this.zIndexVal,
|
|
491
|
+
x: this.cacheMousePos.x - (img.rect?.width ?? 0) / 2,
|
|
492
|
+
y: this.cacheMousePos.y - (img.rect?.height ?? 0) / 2,
|
|
493
|
+
rotation: startAngle
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
duration: 1,
|
|
497
|
+
ease: "power2",
|
|
498
|
+
scale: 1,
|
|
499
|
+
filter: "brightness(100%)",
|
|
500
|
+
x: this.mousePos.x - (img.rect?.width ?? 0) / 2 + dx * 70,
|
|
501
|
+
y: this.mousePos.y - (img.rect?.height ?? 0) / 2 + dy * 70,
|
|
502
|
+
rotation: this.lastAngle
|
|
503
|
+
},
|
|
504
|
+
0
|
|
505
|
+
).to(
|
|
506
|
+
img.DOM.el,
|
|
507
|
+
{
|
|
508
|
+
duration: 0.4,
|
|
509
|
+
ease: "expo",
|
|
510
|
+
opacity: 0
|
|
511
|
+
},
|
|
512
|
+
0.5
|
|
513
|
+
).to(
|
|
514
|
+
img.DOM.el,
|
|
515
|
+
{
|
|
516
|
+
duration: 1.5,
|
|
517
|
+
ease: "power4",
|
|
518
|
+
x: `+=${dx * 120}`,
|
|
519
|
+
y: `+=${dy * 120}`
|
|
520
|
+
},
|
|
521
|
+
0.05
|
|
522
|
+
);
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
class ImageTrailVariant6 extends BaseVariant {
|
|
526
|
+
updateCache() {
|
|
527
|
+
this.cacheMousePos.x = lerp(this.cacheMousePos.x, this.mousePos.x, 0.3);
|
|
528
|
+
this.cacheMousePos.y = lerp(this.cacheMousePos.y, this.mousePos.y, 0.3);
|
|
529
|
+
}
|
|
530
|
+
mapSpeedToSize(speed, minSize, maxSize) {
|
|
531
|
+
const maxSpeed = 200;
|
|
532
|
+
return minSize + (maxSize - minSize) * Math.min(speed / maxSpeed, 1);
|
|
533
|
+
}
|
|
534
|
+
mapSpeedToBrightness(speed, minB, maxB) {
|
|
535
|
+
const maxSpeed = 70;
|
|
536
|
+
return minB + (maxB - minB) * Math.min(speed / maxSpeed, 1);
|
|
537
|
+
}
|
|
538
|
+
mapSpeedToBlur(speed, minBlur, maxBlur) {
|
|
539
|
+
const maxSpeed = 90;
|
|
540
|
+
return minBlur + (maxBlur - minBlur) * Math.min(speed / maxSpeed, 1);
|
|
541
|
+
}
|
|
542
|
+
mapSpeedToGrayscale(speed, minG, maxG) {
|
|
543
|
+
const maxSpeed = 90;
|
|
544
|
+
return minG + (maxG - minG) * Math.min(speed / maxSpeed, 1);
|
|
545
|
+
}
|
|
546
|
+
showNextImage() {
|
|
547
|
+
const vel = this.getTouchVelocity();
|
|
548
|
+
const speed = Math.sqrt(vel.dx * vel.dx + vel.dy * vel.dy);
|
|
549
|
+
++this.zIndexVal;
|
|
550
|
+
this.imgPosition = this.imgPosition < this.imagesTotal - 1 ? this.imgPosition + 1 : 0;
|
|
551
|
+
const img = this.images[this.imgPosition];
|
|
552
|
+
if (!img) return;
|
|
553
|
+
const scaleFactor = this.mapSpeedToSize(speed, 0.3, 2);
|
|
554
|
+
const brightnessValue = this.mapSpeedToBrightness(speed, 0, 1.3);
|
|
555
|
+
const blurValue = this.mapSpeedToBlur(speed, 20, 0);
|
|
556
|
+
const grayscaleValue = this.mapSpeedToGrayscale(speed, 600, 0);
|
|
557
|
+
gsap.killTweensOf(img.DOM.el);
|
|
558
|
+
gsap.timeline({
|
|
559
|
+
onStart: () => this.onImageActivated(),
|
|
560
|
+
onComplete: () => this.onImageDeactivated()
|
|
561
|
+
}).fromTo(
|
|
562
|
+
img.DOM.el,
|
|
563
|
+
{
|
|
564
|
+
opacity: 1,
|
|
565
|
+
scale: 0,
|
|
566
|
+
zIndex: this.zIndexVal,
|
|
567
|
+
x: this.cacheMousePos.x - (img.rect?.width ?? 0) / 2,
|
|
568
|
+
y: this.cacheMousePos.y - (img.rect?.height ?? 0) / 2
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
duration: 0.8,
|
|
572
|
+
ease: "power3",
|
|
573
|
+
scale: scaleFactor,
|
|
574
|
+
filter: `grayscale(${grayscaleValue * 100}%) brightness(${brightnessValue * 100}%) blur(${blurValue}px)`,
|
|
575
|
+
x: this.mousePos.x - (img.rect?.width ?? 0) / 2,
|
|
576
|
+
y: this.mousePos.y - (img.rect?.height ?? 0) / 2
|
|
577
|
+
},
|
|
578
|
+
0
|
|
579
|
+
).fromTo(
|
|
580
|
+
img.DOM.inner,
|
|
581
|
+
{ scale: 2 },
|
|
582
|
+
{
|
|
583
|
+
duration: 0.8,
|
|
584
|
+
ease: "power3",
|
|
585
|
+
scale: 1
|
|
586
|
+
},
|
|
587
|
+
0
|
|
588
|
+
).to(
|
|
589
|
+
img.DOM.el,
|
|
590
|
+
{
|
|
591
|
+
duration: 0.4,
|
|
592
|
+
ease: "power3.in",
|
|
593
|
+
opacity: 0,
|
|
594
|
+
scale: 0.2
|
|
595
|
+
},
|
|
596
|
+
0.45
|
|
597
|
+
);
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
class ImageTrailVariant7 extends BaseVariant {
|
|
601
|
+
visibleImagesCount;
|
|
602
|
+
visibleImagesTotal;
|
|
603
|
+
constructor(container) {
|
|
604
|
+
super(container);
|
|
605
|
+
this.visibleImagesCount = 0;
|
|
606
|
+
this.visibleImagesTotal = 9;
|
|
607
|
+
this.visibleImagesTotal = Math.min(this.visibleImagesTotal, this.imagesTotal - 1);
|
|
608
|
+
}
|
|
609
|
+
updateCache() {
|
|
610
|
+
this.cacheMousePos.x = lerp(this.cacheMousePos.x, this.mousePos.x, 0.3);
|
|
611
|
+
this.cacheMousePos.y = lerp(this.cacheMousePos.y, this.mousePos.y, 0.3);
|
|
612
|
+
}
|
|
613
|
+
showNextImage() {
|
|
614
|
+
++this.zIndexVal;
|
|
615
|
+
this.imgPosition = this.imgPosition < this.imagesTotal - 1 ? this.imgPosition + 1 : 0;
|
|
616
|
+
const img = this.images[this.imgPosition];
|
|
617
|
+
if (!img) return;
|
|
618
|
+
++this.visibleImagesCount;
|
|
619
|
+
gsap.killTweensOf(img.DOM.el);
|
|
620
|
+
const scaleValue = gsap.utils.random(0.5, 1.6);
|
|
621
|
+
gsap.timeline({
|
|
622
|
+
onStart: () => this.onImageActivated(),
|
|
623
|
+
onComplete: () => this.onImageDeactivated()
|
|
624
|
+
}).fromTo(
|
|
625
|
+
img.DOM.el,
|
|
626
|
+
{
|
|
627
|
+
scale: scaleValue - Math.max(gsap.utils.random(0.2, 0.6), 0),
|
|
628
|
+
rotationZ: 0,
|
|
629
|
+
opacity: 1,
|
|
630
|
+
zIndex: this.zIndexVal,
|
|
631
|
+
x: this.cacheMousePos.x - (img.rect?.width ?? 0) / 2,
|
|
632
|
+
y: this.cacheMousePos.y - (img.rect?.height ?? 0) / 2
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
duration: 0.4,
|
|
636
|
+
ease: "power3",
|
|
637
|
+
scale: scaleValue,
|
|
638
|
+
rotationZ: gsap.utils.random(-3, 3),
|
|
639
|
+
x: this.mousePos.x - (img.rect?.width ?? 0) / 2,
|
|
640
|
+
y: this.mousePos.y - (img.rect?.height ?? 0) / 2
|
|
641
|
+
},
|
|
642
|
+
0
|
|
643
|
+
);
|
|
644
|
+
if (this.visibleImagesCount >= this.visibleImagesTotal) {
|
|
645
|
+
const lastInQueue = getNewPosition(this.imgPosition, this.visibleImagesTotal, this.images);
|
|
646
|
+
const oldImg = this.images[lastInQueue];
|
|
647
|
+
gsap.to(oldImg.DOM.el, {
|
|
648
|
+
duration: 0.4,
|
|
649
|
+
ease: "power4",
|
|
650
|
+
opacity: 0,
|
|
651
|
+
scale: 1.3,
|
|
652
|
+
onComplete: () => {
|
|
653
|
+
if (this.activeImagesCount === 0) {
|
|
654
|
+
this.isIdle = true;
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
});
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
class ImageTrailVariant8 extends BaseVariant {
|
|
662
|
+
rotation;
|
|
663
|
+
cachedRotation;
|
|
664
|
+
zValue;
|
|
665
|
+
cachedZValue;
|
|
666
|
+
constructor(container) {
|
|
667
|
+
super(container);
|
|
668
|
+
this.rotation = { x: 0, y: 0 };
|
|
669
|
+
this.cachedRotation = { x: 0, y: 0 };
|
|
670
|
+
this.zValue = 0;
|
|
671
|
+
this.cachedZValue = 0;
|
|
672
|
+
}
|
|
673
|
+
showNextImage() {
|
|
674
|
+
const rect = this.container.getBoundingClientRect();
|
|
675
|
+
const centerX = rect.width / 2;
|
|
676
|
+
const centerY = rect.height / 2;
|
|
677
|
+
const relX = this.mousePos.x - centerX;
|
|
678
|
+
const relY = this.mousePos.y - centerY;
|
|
679
|
+
this.rotation.x = -(relY / centerY) * 30;
|
|
680
|
+
this.rotation.y = relX / centerX * 30;
|
|
681
|
+
this.cachedRotation = { ...this.rotation };
|
|
682
|
+
const distanceFromCenter = Math.sqrt(relX * relX + relY * relY);
|
|
683
|
+
const maxDistance = Math.sqrt(centerX * centerX + centerY * centerY);
|
|
684
|
+
const proportion = distanceFromCenter / maxDistance;
|
|
685
|
+
this.zValue = proportion * 1200 - 600;
|
|
686
|
+
this.cachedZValue = this.zValue;
|
|
687
|
+
const normalizedZ = (this.zValue + 600) / 1200;
|
|
688
|
+
const brightness = 0.2 + normalizedZ * 2.3;
|
|
689
|
+
++this.zIndexVal;
|
|
690
|
+
this.imgPosition = this.imgPosition < this.imagesTotal - 1 ? this.imgPosition + 1 : 0;
|
|
691
|
+
const img = this.images[this.imgPosition];
|
|
692
|
+
if (!img) return;
|
|
693
|
+
gsap.killTweensOf(img.DOM.el);
|
|
694
|
+
gsap.timeline({
|
|
695
|
+
onStart: () => this.onImageActivated(),
|
|
696
|
+
onComplete: () => this.onImageDeactivated()
|
|
697
|
+
}).set(this.DOM.el, { perspective: 1e3 }, 0).fromTo(
|
|
698
|
+
img.DOM.el,
|
|
699
|
+
{
|
|
700
|
+
opacity: 1,
|
|
701
|
+
z: 0,
|
|
702
|
+
scale: 1 + this.cachedZValue / 1e3,
|
|
703
|
+
zIndex: this.zIndexVal,
|
|
704
|
+
x: this.cacheMousePos.x - (img.rect?.width ?? 0) / 2,
|
|
705
|
+
y: this.cacheMousePos.y - (img.rect?.height ?? 0) / 2,
|
|
706
|
+
rotationX: this.cachedRotation.x,
|
|
707
|
+
rotationY: this.cachedRotation.y,
|
|
708
|
+
filter: `brightness(${brightness})`
|
|
709
|
+
},
|
|
710
|
+
{
|
|
711
|
+
duration: 1,
|
|
712
|
+
ease: "expo",
|
|
713
|
+
scale: 1 + this.zValue / 1e3,
|
|
714
|
+
x: this.mousePos.x - (img.rect?.width ?? 0) / 2,
|
|
715
|
+
y: this.mousePos.y - (img.rect?.height ?? 0) / 2,
|
|
716
|
+
rotationX: this.rotation.x,
|
|
717
|
+
rotationY: this.rotation.y
|
|
718
|
+
},
|
|
719
|
+
0
|
|
720
|
+
).to(
|
|
721
|
+
img.DOM.el,
|
|
722
|
+
{
|
|
723
|
+
duration: 0.4,
|
|
724
|
+
ease: "power2",
|
|
725
|
+
opacity: 0,
|
|
726
|
+
z: -800
|
|
727
|
+
},
|
|
728
|
+
0.3
|
|
729
|
+
);
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
class ImageTrailVariantPixelated extends BaseVariant {
|
|
733
|
+
static HOLD = 0.15;
|
|
734
|
+
// seconds the image stays visible before snapping out
|
|
735
|
+
constructor(container) {
|
|
736
|
+
super(container);
|
|
737
|
+
for (const img of this.images) {
|
|
738
|
+
img.DOM.el.style.imageRendering = "pixelated";
|
|
739
|
+
img.DOM.el.style.border = "2px solid #191308";
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
showNextImage() {
|
|
743
|
+
++this.zIndexVal;
|
|
744
|
+
this.imgPosition = this.imgPosition < this.imagesTotal - 1 ? this.imgPosition + 1 : 0;
|
|
745
|
+
const img = this.images[this.imgPosition];
|
|
746
|
+
if (!img) return;
|
|
747
|
+
gsap.killTweensOf(img.DOM.el);
|
|
748
|
+
gsap.timeline({
|
|
749
|
+
onStart: () => this.onImageActivated(),
|
|
750
|
+
onComplete: () => this.onImageDeactivated()
|
|
751
|
+
}).set(
|
|
752
|
+
img.DOM.el,
|
|
753
|
+
{
|
|
754
|
+
opacity: 1,
|
|
755
|
+
scale: 1,
|
|
756
|
+
zIndex: this.zIndexVal,
|
|
757
|
+
x: this.mousePos.x - (img.rect?.width ?? 0) / 2,
|
|
758
|
+
y: this.mousePos.y - (img.rect?.height ?? 0) / 2
|
|
759
|
+
},
|
|
760
|
+
0
|
|
761
|
+
).set(img.DOM.el, { opacity: 0, scale: 0.2 }, ImageTrailVariantPixelated.HOLD);
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
const variantMap = {
|
|
765
|
+
type1: ImageTrailVariant1,
|
|
766
|
+
type2: ImageTrailVariant2,
|
|
767
|
+
type3: ImageTrailVariant3,
|
|
768
|
+
type4: ImageTrailVariant4,
|
|
769
|
+
type5: ImageTrailVariant5,
|
|
770
|
+
type6: ImageTrailVariant6,
|
|
771
|
+
type7: ImageTrailVariant7,
|
|
772
|
+
type8: ImageTrailVariant8,
|
|
773
|
+
pixelated: ImageTrailVariantPixelated
|
|
774
|
+
};
|
|
775
|
+
export {
|
|
776
|
+
ImageItem,
|
|
777
|
+
ImageTrailVariant1,
|
|
778
|
+
ImageTrailVariant2,
|
|
779
|
+
ImageTrailVariant3,
|
|
780
|
+
ImageTrailVariant4,
|
|
781
|
+
ImageTrailVariant5,
|
|
782
|
+
ImageTrailVariant6,
|
|
783
|
+
ImageTrailVariant7,
|
|
784
|
+
ImageTrailVariant8,
|
|
785
|
+
ImageTrailVariantPixelated,
|
|
786
|
+
variantMap
|
|
787
|
+
};
|