@hanzo/ui 5.3.8 → 5.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/3d/button.js +1 -1
- package/dist/3d/button.mjs +1 -1
- package/dist/3d/card.js +1 -1
- package/dist/3d/card.mjs +1 -1
- package/dist/3d/carousel.js +1 -1
- package/dist/3d/carousel.mjs +1 -1
- package/dist/3d/grid.js +1 -1
- package/dist/3d/grid.mjs +1 -1
- package/dist/3d/index.js +1 -1
- package/dist/3d/index.mjs +1 -1
- package/dist/3d/marquee.js +1 -1
- package/dist/3d/marquee.mjs +1 -1
- package/dist/3d/pin.js +1 -1
- package/dist/3d/pin.mjs +1 -1
- package/dist/accordion.js +1 -1
- package/dist/accordion.mjs +1 -1
- package/dist/alert-dialog.js +1 -1
- package/dist/alert-dialog.mjs +1 -1
- package/dist/alert.js +1 -1
- package/dist/alert.mjs +1 -1
- package/dist/animation/animated-background.js +1 -1
- package/dist/animation/animated-background.mjs +1 -1
- package/dist/animation/animated-beam.js +1 -1
- package/dist/animation/animated-beam.mjs +1 -1
- package/dist/animation/animated-cursor.js +1 -1
- package/dist/animation/animated-cursor.mjs +1 -1
- package/dist/animation/animated-icon.js +2 -1
- package/dist/animation/animated-icon.mjs +2 -1
- package/dist/animation/animated-list.js +1 -1
- package/dist/animation/animated-list.mjs +1 -1
- package/dist/animation/animated-number.js +1 -1
- package/dist/animation/animated-number.mjs +1 -1
- package/dist/animation/animated-testimonials.js +1 -1
- package/dist/animation/animated-testimonials.mjs +1 -1
- package/dist/animation/animated-tooltip.js +1 -1
- package/dist/animation/animated-tooltip.mjs +1 -1
- package/dist/animation/apple-cards-carousel.js +1 -1
- package/dist/animation/apple-cards-carousel.mjs +1 -1
- package/dist/animation/apple-hello-effect.js +1 -1
- package/dist/animation/apple-hello-effect.mjs +1 -1
- package/dist/animation/index.js +2 -1
- package/dist/animation/index.mjs +2 -1
- package/dist/avatar.js +1 -1
- package/dist/avatar.mjs +1 -1
- package/dist/badge.js +1 -1
- package/dist/badge.mjs +1 -1
- package/dist/blocks/index.js +2 -2
- package/dist/blocks/index.mjs +2 -2
- package/dist/breadcrumb.js +1 -1
- package/dist/breadcrumb.mjs +1 -1
- package/dist/calendar.js +1 -1
- package/dist/calendar.mjs +1 -1
- package/dist/carousel.js +1 -1
- package/dist/carousel.mjs +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/checkbox.mjs +1 -1
- package/dist/code/block.js +2 -1
- package/dist/code/block.mjs +2 -1
- package/dist/code/compare.js +6 -1
- package/dist/code/compare.mjs +6 -1
- package/dist/code/diff.js +12 -1
- package/dist/code/diff.mjs +12 -1
- package/dist/code/editor.js +1 -1
- package/dist/code/editor.mjs +1 -1
- package/dist/code/explorer.js +1 -1
- package/dist/code/explorer.mjs +1 -1
- package/dist/code/index.js +62 -1
- package/dist/code/index.mjs +62 -1
- package/dist/code/preview.js +42 -1
- package/dist/code/preview.mjs +42 -1
- package/dist/code/snippet.js +2 -1
- package/dist/code/snippet.mjs +2 -1
- package/dist/code/tabs.js +1 -1
- package/dist/code/tabs.mjs +1 -1
- package/dist/code/terminal.js +3 -1
- package/dist/code/terminal.mjs +3 -1
- package/dist/collapsible.js +1 -1
- package/dist/collapsible.mjs +1 -1
- package/dist/command.js +1 -1
- package/dist/command.mjs +1 -1
- package/dist/context-menu.js +1 -1
- package/dist/context-menu.mjs +1 -1
- package/dist/dialog.js +1 -1
- package/dist/dialog.mjs +1 -1
- package/dist/dock/basic.js +1 -1
- package/dist/dock/basic.mjs +1 -1
- package/dist/dock/index.js +1 -1
- package/dist/dock/index.mjs +1 -1
- package/dist/dock/limelight-nav.js +1 -1
- package/dist/dock/limelight-nav.mjs +1 -1
- package/dist/dock/macos.js +1 -1
- package/dist/dock/macos.mjs +1 -1
- package/dist/dock/menu.js +1 -1
- package/dist/dock/menu.mjs +1 -1
- package/dist/dock/message.js +1 -1
- package/dist/dock/message.mjs +1 -1
- package/dist/drawer.js +1 -1
- package/dist/drawer.mjs +1 -1
- package/dist/dropdown-menu.js +1 -1
- package/dist/dropdown-menu.mjs +1 -1
- package/dist/finance/AdvancedChart.js +2 -1
- package/dist/finance/AdvancedChart.mjs +2 -1
- package/dist/finance/CompanyProfile.js +2 -1
- package/dist/finance/CompanyProfile.mjs +2 -1
- package/dist/finance/CryptoScreener.js +2 -1
- package/dist/finance/CryptoScreener.mjs +2 -1
- package/dist/finance/Financials.js +2 -1
- package/dist/finance/Financials.mjs +2 -1
- package/dist/finance/ForexScreener.js +2 -1
- package/dist/finance/ForexScreener.mjs +2 -1
- package/dist/finance/MarketOverview.js +2 -1
- package/dist/finance/MarketOverview.mjs +2 -1
- package/dist/finance/NewsTimeline.js +2 -1
- package/dist/finance/NewsTimeline.mjs +2 -1
- package/dist/finance/OrderEntry.js +1 -1
- package/dist/finance/OrderEntry.mjs +1 -1
- package/dist/finance/OrdersHistory.js +1 -1
- package/dist/finance/OrdersHistory.mjs +1 -1
- package/dist/finance/PositionsList.js +1 -1
- package/dist/finance/PositionsList.mjs +1 -1
- package/dist/finance/StockScreener.js +2 -1
- package/dist/finance/StockScreener.mjs +2 -1
- package/dist/finance/SymbolInfo.js +2 -1
- package/dist/finance/SymbolInfo.mjs +2 -1
- package/dist/finance/TechnicalAnalysis.js +2 -1
- package/dist/finance/TechnicalAnalysis.mjs +2 -1
- package/dist/finance/TickerTape.js +2 -1
- package/dist/finance/TickerTape.mjs +2 -1
- package/dist/finance/TradingPanel.js +1 -1
- package/dist/finance/TradingPanel.mjs +1 -1
- package/dist/finance/index.js +2 -1
- package/dist/finance/index.mjs +2 -1
- package/dist/form/index.js +1 -1
- package/dist/form/index.mjs +1 -1
- package/dist/form.js +1 -1
- package/dist/form.mjs +1 -1
- package/dist/hover-card.js +1 -1
- package/dist/hover-card.mjs +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/input-otp.js +1 -1
- package/dist/input-otp.mjs +1 -1
- package/dist/lib/utils.js +1 -1
- package/dist/lib/utils.mjs +1 -1
- package/dist/navigation/index.js +1 -1
- package/dist/navigation/index.mjs +1 -1
- package/dist/navigation-menu.js +1 -1
- package/dist/navigation-menu.mjs +1 -1
- package/dist/pattern/grid-pattern.js +10 -1
- package/dist/pattern/grid-pattern.mjs +10 -1
- package/dist/pattern/index.js +10 -1
- package/dist/pattern/index.mjs +10 -1
- package/dist/popover.js +1 -1
- package/dist/popover.mjs +1 -1
- package/dist/primitives/index.js +1 -1
- package/dist/primitives/index.mjs +1 -1
- package/dist/primitives-export.js +1 -1
- package/dist/primitives-export.mjs +1 -1
- package/dist/progress.js +1 -1
- package/dist/progress.mjs +1 -1
- package/dist/project/gantt.js +1 -1
- package/dist/project/gantt.mjs +1 -1
- package/dist/project/index.js +1 -1
- package/dist/project/index.mjs +1 -1
- package/dist/project/kanban.js +1 -1
- package/dist/project/kanban.mjs +1 -1
- package/dist/project/list.js +1 -1
- package/dist/project/list.mjs +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/radio-group.mjs +1 -1
- package/dist/resizable.js +1 -1
- package/dist/resizable.mjs +1 -1
- package/dist/scroll-area.js +1 -1
- package/dist/scroll-area.mjs +1 -1
- package/dist/select.js +1 -1
- package/dist/select.mjs +1 -1
- package/dist/separator.js +1 -1
- package/dist/separator.mjs +1 -1
- package/dist/sheet.js +1 -1
- package/dist/sheet.mjs +1 -1
- package/dist/skeleton.js +1 -1
- package/dist/skeleton.mjs +1 -1
- package/dist/slider.js +1 -1
- package/dist/slider.mjs +1 -1
- package/dist/sonner.js +1 -1
- package/dist/sonner.mjs +1 -1
- package/dist/switch.js +1 -1
- package/dist/switch.mjs +1 -1
- package/dist/table.js +1 -1
- package/dist/table.mjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tabs.mjs +1 -1
- package/dist/tailwind/index.js +1 -1
- package/dist/tailwind/index.mjs +1 -1
- package/dist/textarea.js +1 -1
- package/dist/textarea.mjs +1 -1
- package/dist/toggle-group.js +1 -1
- package/dist/toggle-group.mjs +1 -1
- package/dist/toggle.js +1 -1
- package/dist/toggle.mjs +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/tooltip.mjs +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/index.mjs +1 -1
- package/dist/ui/announcement.js +1 -1
- package/dist/ui/announcement.mjs +1 -1
- package/dist/ui/avatar-group.js +1 -1
- package/dist/ui/avatar-group.mjs +1 -1
- package/dist/ui/banner.js +1 -1
- package/dist/ui/banner.mjs +1 -1
- package/dist/ui/cursor.js +1 -1
- package/dist/ui/cursor.mjs +1 -1
- package/dist/ui/index.js +1 -1
- package/dist/ui/index.mjs +1 -1
- package/dist/ui/marquee.js +1 -1
- package/dist/ui/marquee.mjs +1 -1
- package/dist/ui/pill.js +1 -1
- package/dist/ui/pill.mjs +1 -1
- package/dist/ui/spinner.js +1 -1
- package/dist/ui/spinner.mjs +1 -1
- package/dist/ui/tags.js +1 -1
- package/dist/ui/tags.mjs +1 -1
- package/dist/ui/ticker.js +1 -1
- package/dist/ui/ticker.mjs +1 -1
- package/dist/util/index.js +1 -1
- package/dist/util/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-2B7NONPA.mjs +0 -1
- package/dist/chunk-2G2TUOYL.mjs +0 -1
- package/dist/chunk-2NRIIJQX.mjs +0 -1
- package/dist/chunk-2QQUT6FO.js +0 -1
- package/dist/chunk-2WJA3HSQ.mjs +0 -1
- package/dist/chunk-37TVHMP2.mjs +0 -1
- package/dist/chunk-3COMMLYS.js +0 -1
- package/dist/chunk-3JXTWYX4.mjs +0 -1
- package/dist/chunk-3LHI3PX3.js +0 -1
- package/dist/chunk-3MGIZWAB.mjs +0 -1
- package/dist/chunk-3RI2CAUD.mjs +0 -1
- package/dist/chunk-3SCWILJG.mjs +0 -1
- package/dist/chunk-3YL43AE4.js +0 -1
- package/dist/chunk-4CJ44NSE.js +0 -1
- package/dist/chunk-4Q7ZSPY5.mjs +0 -1
- package/dist/chunk-4TW4U2UN.js +0 -1
- package/dist/chunk-4V3ZHFMN.js +0 -1
- package/dist/chunk-4YMLAU5Z.js +0 -1
- package/dist/chunk-543CBJCW.mjs +0 -1
- package/dist/chunk-5OFYCUOP.mjs +0 -1
- package/dist/chunk-5WJCKQNU.mjs +0 -2
- package/dist/chunk-5XGQGWZM.js +0 -1
- package/dist/chunk-63HNMH7C.js +0 -1
- package/dist/chunk-675QWDLU.mjs +0 -1
- package/dist/chunk-6JORQMRC.mjs +0 -1
- package/dist/chunk-6T7CYRG7.js +0 -1
- package/dist/chunk-6ZY3MBIT.js +0 -3
- package/dist/chunk-72TOQ4DM.mjs +0 -1
- package/dist/chunk-74JIFEFB.mjs +0 -1
- package/dist/chunk-7B5FD4EX.mjs +0 -1
- package/dist/chunk-7QB7ZQ7S.js +0 -1
- package/dist/chunk-7SGMZA6O.mjs +0 -1
- package/dist/chunk-7SP7DCJD.js +0 -2
- package/dist/chunk-7SZPHHBV.mjs +0 -1
- package/dist/chunk-A47N7TW2.mjs +0 -2
- package/dist/chunk-AABD5QO3.js +0 -1
- package/dist/chunk-AAEV2ONV.mjs +0 -1
- package/dist/chunk-AB5DY56M.mjs +0 -1
- package/dist/chunk-AKQGA7BP.mjs +0 -1
- package/dist/chunk-AKV7ZDJN.mjs +0 -1
- package/dist/chunk-AQFMZ53B.js +0 -1
- package/dist/chunk-AQYYHBXT.js +0 -1
- package/dist/chunk-ATNZNQV7.mjs +0 -2
- package/dist/chunk-AVI3IRMQ.mjs +0 -1
- package/dist/chunk-B36534P3.js +0 -1
- package/dist/chunk-B5SWQNYJ.mjs +0 -1
- package/dist/chunk-B5YYUUXW.mjs +0 -1
- package/dist/chunk-BALF4M3M.mjs +0 -1
- package/dist/chunk-BBTCLHXF.js +0 -2
- package/dist/chunk-BKKW66AM.mjs +0 -1
- package/dist/chunk-BKOJG4VJ.mjs +0 -2
- package/dist/chunk-BSO3JZ7S.js +0 -1
- package/dist/chunk-BTHDX6LM.js +0 -1
- package/dist/chunk-BX5NPSJL.js +0 -1
- package/dist/chunk-C64EW4QE.mjs +0 -1
- package/dist/chunk-C6DDKSBN.js +0 -2
- package/dist/chunk-CH2T5MI4.js +0 -1
- package/dist/chunk-CHQFVVZG.mjs +0 -2
- package/dist/chunk-CVLDBF72.js +0 -1
- package/dist/chunk-CWFGLK4T.mjs +0 -1
- package/dist/chunk-CY75DPD4.mjs +0 -1
- package/dist/chunk-D62ZOURF.js +0 -1
- package/dist/chunk-D6W5YYHP.js +0 -1
- package/dist/chunk-DAYNCC5Z.mjs +0 -3
- package/dist/chunk-DEQAYMUY.mjs +0 -1
- package/dist/chunk-DHN3REDJ.js +0 -1
- package/dist/chunk-DKL2FM7J.mjs +0 -1
- package/dist/chunk-DNHCQ446.js +0 -1
- package/dist/chunk-DRLJ6Z7Q.js +0 -1
- package/dist/chunk-DVA7HROB.js +0 -1
- package/dist/chunk-DX7WWVJP.mjs +0 -12
- package/dist/chunk-DYF5HRXR.mjs +0 -1
- package/dist/chunk-E45AM32Q.js +0 -1
- package/dist/chunk-EJA2AU5X.js +0 -1
- package/dist/chunk-ELR6GOUX.mjs +0 -1
- package/dist/chunk-ENDXD5HO.js +0 -1
- package/dist/chunk-ER3ALPBZ.js +0 -1
- package/dist/chunk-F3D72E4E.js +0 -1
- package/dist/chunk-F6AIQXTW.mjs +0 -1
- package/dist/chunk-FCHJPQ73.mjs +0 -1
- package/dist/chunk-FE2O6776.js +0 -1
- package/dist/chunk-FFCMERSP.js +0 -1
- package/dist/chunk-FLC52TR6.js +0 -1
- package/dist/chunk-FLZRGQ3O.mjs +0 -1
- package/dist/chunk-FOTLPQNB.js +0 -1
- package/dist/chunk-FZWBG7UV.mjs +0 -1
- package/dist/chunk-G2LRED4X.js +0 -1
- package/dist/chunk-G2O6JIRY.mjs +0 -1
- package/dist/chunk-G62CSYX2.js +0 -1
- package/dist/chunk-G7QRK2WL.mjs +0 -1
- package/dist/chunk-GCZQ2LS2.js +0 -10
- package/dist/chunk-GFWDGZO7.mjs +0 -1
- package/dist/chunk-GH56HZXN.mjs +0 -42
- package/dist/chunk-GIKQMGEY.mjs +0 -1
- package/dist/chunk-GJEV6LDG.mjs +0 -2
- package/dist/chunk-GK7TQN2Y.mjs +0 -2
- package/dist/chunk-GRGR3K4M.mjs +0 -1
- package/dist/chunk-GZCOKOS6.js +0 -2
- package/dist/chunk-H5T5EPQU.mjs +0 -1
- package/dist/chunk-H7ZFQ43F.mjs +0 -2
- package/dist/chunk-HAMILVTN.mjs +0 -1
- package/dist/chunk-HAYVC5RR.js +0 -1
- package/dist/chunk-HL4KRRJB.mjs +0 -1
- package/dist/chunk-HLJAWNJK.js +0 -1
- package/dist/chunk-ILMRC36I.js +0 -1
- package/dist/chunk-IQEZ2NU7.js +0 -2
- package/dist/chunk-ISSZRFPX.js +0 -2
- package/dist/chunk-JAVQTNQQ.js +0 -1
- package/dist/chunk-JB2D6UKV.js +0 -1
- package/dist/chunk-JFPLY6KM.js +0 -1
- package/dist/chunk-JOKSCCHB.js +0 -1
- package/dist/chunk-JOQWSZRJ.mjs +0 -1
- package/dist/chunk-JPGIJFW5.js +0 -1
- package/dist/chunk-JSGFZR4R.js +0 -2
- package/dist/chunk-JWBQUHSX.mjs +0 -1
- package/dist/chunk-JYLGS2OX.mjs +0 -1
- package/dist/chunk-K7YTUP2D.js +0 -1
- package/dist/chunk-KA5C2ZIG.js +0 -1
- package/dist/chunk-KDE3N3L6.mjs +0 -1
- package/dist/chunk-KOAG4CSB.js +0 -1
- package/dist/chunk-KX4C4YC2.js +0 -1
- package/dist/chunk-L3LBHAK5.js +0 -2
- package/dist/chunk-L4IEIO4B.js +0 -1
- package/dist/chunk-LADFCKQD.mjs +0 -1
- package/dist/chunk-LDQCX2XP.mjs +0 -1
- package/dist/chunk-LFWWUVJX.js +0 -1
- package/dist/chunk-LHKPSY4L.js +0 -1
- package/dist/chunk-LO46SH6E.mjs +0 -1
- package/dist/chunk-LPZWN5DR.js +0 -1
- package/dist/chunk-LSWZ5XAN.mjs +0 -1
- package/dist/chunk-LWQTRAJQ.js +0 -1
- package/dist/chunk-M3BGNQQL.js +0 -1
- package/dist/chunk-M6TWUBHE.mjs +0 -1
- package/dist/chunk-NCEQVAW6.js +0 -1
- package/dist/chunk-NCPDG735.js +0 -1
- package/dist/chunk-NGPIX3K3.mjs +0 -1
- package/dist/chunk-NH6GXQGY.js +0 -1
- package/dist/chunk-NIJRO4XT.mjs +0 -1
- package/dist/chunk-NJF3RXSG.js +0 -1
- package/dist/chunk-NO5HGITF.js +0 -42
- package/dist/chunk-NZNYBJNF.mjs +0 -2
- package/dist/chunk-O5PW6EK3.js +0 -2
- package/dist/chunk-O6FV6MCF.js +0 -1
- package/dist/chunk-OC34KEWQ.mjs +0 -1
- package/dist/chunk-OCDDRG5O.mjs +0 -6
- package/dist/chunk-OCV63ER7.mjs +0 -2
- package/dist/chunk-ODLBKJ43.mjs +0 -1
- package/dist/chunk-OFSGDRF7.js +0 -1
- package/dist/chunk-OTEETXQN.mjs +0 -1
- package/dist/chunk-OUIQYPE7.js +0 -2
- package/dist/chunk-OVM7NM4B.mjs +0 -1
- package/dist/chunk-PCWXM2CW.js +0 -1
- package/dist/chunk-PDWGHI5P.mjs +0 -1
- package/dist/chunk-PKKSIZZP.js +0 -12
- package/dist/chunk-PO4JYM6P.js +0 -1
- package/dist/chunk-PP6VTZRY.mjs +0 -1
- package/dist/chunk-PWKHIIIX.mjs +0 -2
- package/dist/chunk-PYX2CWVB.mjs +0 -1
- package/dist/chunk-Q2ITEICA.js +0 -1
- package/dist/chunk-Q3VHBQ3B.mjs +0 -1
- package/dist/chunk-QCWXF6PM.mjs +0 -2
- package/dist/chunk-QIS2X5VM.js +0 -2
- package/dist/chunk-QKJMVZ7Q.mjs +0 -1
- package/dist/chunk-QUZIAJAR.js +0 -1
- package/dist/chunk-QVDGUDZV.js +0 -2
- package/dist/chunk-RG6TMPXT.mjs +0 -0
- package/dist/chunk-RIQZF4MD.js +0 -1
- package/dist/chunk-RNN6AHKF.js +0 -1
- package/dist/chunk-ROROVLVL.mjs +0 -2
- package/dist/chunk-RPOB4E3W.js +0 -1
- package/dist/chunk-SSCZEDKZ.mjs +0 -1
- package/dist/chunk-SVCCHDR3.js +0 -1
- package/dist/chunk-SXMUVC4D.mjs +0 -1
- package/dist/chunk-TGAUPMBC.js +0 -1
- package/dist/chunk-TGL6VBFN.js +0 -1
- package/dist/chunk-TNP7EGQ2.js +0 -1
- package/dist/chunk-TNRO5CZD.mjs +0 -1
- package/dist/chunk-TVPXSBXH.js +0 -1
- package/dist/chunk-U7CUKU4W.mjs +0 -1
- package/dist/chunk-UHDVCJC6.js +0 -1
- package/dist/chunk-UMYLUB72.js +0 -1
- package/dist/chunk-UTENKTJZ.mjs +0 -2
- package/dist/chunk-V2ROY52O.mjs +0 -1
- package/dist/chunk-V6JJ3J5H.js +0 -6
- package/dist/chunk-VEZEUPWM.js +0 -2
- package/dist/chunk-VLNUXNN6.mjs +0 -1
- package/dist/chunk-W4VZMLH5.mjs +0 -1
- package/dist/chunk-WHGMPLBG.mjs +0 -1
- package/dist/chunk-WK5DTWFH.mjs +0 -1
- package/dist/chunk-WNHSNXIT.mjs +0 -1
- package/dist/chunk-X3Y7POKQ.js +0 -1
- package/dist/chunk-X7RQ2Z7V.mjs +0 -1
- package/dist/chunk-XEL222AH.js +0 -2
- package/dist/chunk-XFK7RTKE.js +0 -1
- package/dist/chunk-XQ5PD6OG.mjs +0 -1
- package/dist/chunk-XSJZFX23.mjs +0 -1
- package/dist/chunk-XUSV3KOD.js +0 -1
- package/dist/chunk-XXFPKDCE.js +0 -1
- package/dist/chunk-XYYYZCEM.js +0 -1
- package/dist/chunk-Y5IP4FKL.js +0 -1
- package/dist/chunk-Y6ZF7DGV.mjs +0 -1
- package/dist/chunk-YBL5BPLL.js +0 -1
- package/dist/chunk-YGT4URRE.mjs +0 -1
- package/dist/chunk-YZFRWYNS.js +0 -1
- package/dist/chunk-ZB7NJBX4.mjs +0 -1
- package/dist/chunk-ZBFT2QPL.mjs +0 -1
- package/dist/chunk-ZDOIGP2L.js +0 -1
- package/dist/chunk-ZHYR5K4F.mjs +0 -1
- package/dist/chunk-ZSLVLXBF.mjs +0 -10
- package/dist/chunk-ZZTEYKC5.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import {useState,useEffect,useCallback,useRef}from'react';import {cn}from'@hanzo/ui/lib/utils';import {jsxs,jsx}from'react/jsx-runtime';var j=Object.defineProperty;var r=(s,e)=>j(s,"name",{value:e,configurable:true});var $=["a","button","input","textarea","select",'[role="button"]','[role="link"]','[tabindex]:not([tabindex="-1"])',".cursor-pointer",'[data-cursor="pointer"]'].join(", "),O=['input[type="text"]','input[type="email"]','input[type="password"]','input[type="search"]',"textarea",'[contenteditable="true"]','[data-cursor="text"]'].join(", "),V=['[data-cursor="grab"]',".cursor-grab"].join(", "),X=['[data-cursor="grabbing"]',".cursor-grabbing"].join(", ");function q(){return typeof window>"u"?false:"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}r(q,"isTouchDevice");function F(){let[s,e]=useState({position:{x:0,y:0},isHovering:false,isClicking:false,cursorType:"default"}),m=useCallback((c,l)=>{e(d=>({...d,position:{x:c,y:l}}));},[]),p=useCallback((c,l="default")=>{e(d=>({...d,isHovering:c,cursorType:l}));},[]),a=useCallback(c=>{e(l=>({...l,isClicking:c}));},[]);return {cursorState:s,updatePosition:m,updateHoverState:p,updateClickState:a}}r(F,"useCursorState");function U(s,e){let[m,p]=useState([]),a=useRef([]);return useEffect(()=>{a.current.push(e),a.current.length>s&&a.current.shift(),p([...a.current]);},[e,s]),m}r(U,"useCursorTrail");function Y({isVisible:s=true,size:e=20,color:m="#000000",trailColor:p="#00000050",animationDuration:a=200,showTrail:c=true,trailLength:l=8,blendMode:d="normal",hoverScale:f=1.5,hideOnTouch:b=true,className:R,clickAnimationDuration:K=100,zIndex:S=9999}){let{cursorState:t,updatePosition:A,updateHoverState:u,updateClickState:T}=F(),w=U(l,t.position),[g,H]=useState(false),[v,N]=useState(false);if(useEffect(()=>{H(q()),N(true);},[]),useEffect(()=>{if(!v||b&&g)return;let o=r(h=>{try{requestAnimationFrame(()=>{A(h.clientX,h.clientY);});}catch(i){console.warn("AnimatedCursor: Error updating position",i);}},"handleMouseMove"),n=r(h=>{try{let i=h.target;i?.closest?.($)?u(!0,"pointer"):i?.closest?.(O)?u(!0,"text"):i?.closest?.(V)?u(!0,"grab"):i?.closest?.(X)?u(!0,"grabbing"):u(!1,"default");}catch(i){console.warn("AnimatedCursor: Error handling mouse over",i),u(false,"default");}},"handleMouseOver"),y=r(()=>{T(true);},"handleMouseDown"),C=r(()=>{T(false);},"handleMouseUp"),M=r(()=>{u(false,"default");},"handleMouseLeave");return document.addEventListener("mousemove",o),document.addEventListener("mouseover",n),document.addEventListener("mousedown",y),document.addEventListener("mouseup",C),document.addEventListener("mouseleave",M),()=>{document.removeEventListener("mousemove",o),document.removeEventListener("mouseover",n),document.removeEventListener("mousedown",y),document.removeEventListener("mouseup",C),document.removeEventListener("mouseleave",M);}},[v,b,g,A,u,T]),useEffect(()=>{if(!(!v||b&&g))try{let o=document.body.style.cursor;return document.body.style.cursor="none",()=>{try{document.body.style.cursor=o;}catch(n){console.warn("AnimatedCursor: Error restoring cursor style",n);}}}catch(o){console.warn("AnimatedCursor: Error hiding cursor",o);}},[v,b,g]),!v||!s||b&&g)return null;let B=t.isHovering?f:1,D=t.isClicking?.8:1,I=B*D,_=r(()=>{switch(t.cursorType){case "text":return "h-6 w-0.5";case "grab":case "grabbing":return "rounded-md";default:return "rounded-full"}},"getCursorShape");return jsxs("div",{className:cn("pointer-events-none fixed inset-0",R),children:[c&&w.map((o,n)=>{let y=(n+1)/w.length*.5,C=(n+1)/w.length*.8;return jsx("div",{className:"absolute",style:{left:o.x-e/2,top:o.y-e/2,width:e,height:e,backgroundColor:p,borderRadius:"50%",opacity:y,transform:`scale(${C})`,zIndex:S-n-1,mixBlendMode:d}},n)}),jsx("div",{className:cn("absolute transition-transform duration-100 ease-out",_()),style:{left:t.position.x-e/2,top:t.position.y-e/2,width:t.cursorType==="text"?2:e,height:t.cursorType==="text"?24:e,backgroundColor:m,transform:`scale(${I})`,transitionDuration:`${a}ms`,zIndex:S,mixBlendMode:d}}),t.isHovering&&t.cursorType!=="text"&&jsx("div",{className:"absolute rounded-full border-2 transition-all duration-200 ease-out",style:{left:t.position.x-e*f/2,top:t.position.y-e*f/2,width:e*f,height:e*f,borderColor:m,opacity:.3,zIndex:S-1,mixBlendMode:d}})]})}r(Y,"AnimatedCursor");var ee=Y;export{Y as AnimatedCursor,ee as default};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var
|
|
1
|
+
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var react=require('react'),react$1=require('motion/react'),utils=require('@/lib/utils'),jsxRuntime=require('react/jsx-runtime');var z=Object.defineProperty;var t=(e,r)=>z(e,"name",{value:r,configurable:true});function Z(){let[e,r]=react.useState(false);return react.useEffect(()=>{if(typeof window>"u")return;let a=window.matchMedia("(prefers-reduced-motion: reduce)");r(a.matches);let o=t(c=>{r(c.matches);},"handleChange");return a.addEventListener("change",o),()=>a.removeEventListener("change",o)},[]),e}t(Z,"usePrefersReducedMotion");var q={loading:"M12 2v4m0 12v4M4.93 4.93l2.83 2.83m8.48 8.48l2.83 2.83M2 12h4m12 0h4M4.93 19.07l2.83-2.83m8.48-8.48l2.83-2.83",heart:["M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z","M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"],star:"m12 2 3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2Z",hamburger:["M3 12h18M3 6h18M3 18h18","m6 6 12 12M6 18 18 6"],arrow:"M5 12l14 0m-7 -7l7 7l-7 7",check:"m9 12 2 2 4-4",x:"m18 6-12 12M6 6l12 12"},F={spin:{animate:{rotate:360,transition:{duration:1,repeat:1/0,ease:"linear"}}},pulse:{animate:{scale:[1,1.2,1],transition:{duration:1,repeat:1/0,ease:"easeInOut"}}},bounce:{animate:{y:[0,-10,0],transition:{duration:.6,repeat:1/0,ease:"easeInOut"}}},draw:{initial:{pathLength:0,opacity:0},animate:{pathLength:1,opacity:1,transition:{duration:2,ease:"easeInOut"}}},hover:{whileHover:{scale:1.1,transition:{duration:.2}}}},J={scale:{scale:1.2},rotate:{rotate:15},glow:{filter:"drop-shadow(0 0 8px currentColor)"},shake:{x:[-2,2,-2,2,0]}},K={scale:{scale:.9},rotate:{rotate:180},ripple:{scale:[1,1.3,1]}};function U({paths:e,duration:r,strokeWidth:a=2,autoAnimate:o,repeat:c,onComplete:s}){let[i,m]=react.useState(0);return react.useEffect(()=>{if(!o||e.length<2)return;let l=setInterval(()=>{m(h=>{let d=(h+1)%e.length;return d===0&&!c&&(clearInterval(l),s?.()),d});},r);return ()=>clearInterval(l)},[o,e.length,r,c,s]),jsxRuntime.jsx(react$1.motion.path,{d:e[i],fill:"none",stroke:"currentColor",strokeWidth:a,strokeLinecap:"round",strokeLinejoin:"round",animate:{d:e[i]},transition:{duration:r/1e3,ease:"easeInOut"}})}t(U,"MorphingPath");function X({path:e,duration:r,strokeWidth:a=2,progress:o,autoAnimate:c}){let s=react.useRef(null),[i,m]=react.useState(0);react.useEffect(()=>{if(s.current){let h=s.current.getTotalLength();m(h);}},[e]);let l=o!==void 0?i*o:i;return jsxRuntime.jsx(react$1.motion.path,{ref:s,d:e,fill:"none",stroke:"currentColor",strokeWidth:a,strokeLinecap:"round",strokeLinejoin:"round",initial:{pathLength:0},animate:c?{pathLength:1}:{pathLength:l/i},transition:{duration:r/1e3,ease:"easeInOut"},style:{strokeDasharray:i,strokeDashoffset:i-l}})}t(X,"DrawingPath");function Y({size:e,strokeWidth:r=2}){return jsxRuntime.jsx(react$1.motion.div,{animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"},style:{width:e,height:e},children:jsxRuntime.jsx("svg",{width:"100%",height:"100%",viewBox:"0 0 24 24",fill:"none",children:jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:r,strokeLinecap:"round",strokeDasharray:"60 40",opacity:"0.3"})})})}t(Y,"LoadingSpinner");function u({icon:e="loading",paths:r,animation:a="spin",size:o=24,color:c="currentColor",duration:s=1e3,autoAnimate:i=true,repeat:m=true,className:l,style:h,onAnimationComplete:d,onClick:P,interactive:k=true,hoverAnimation:M="scale",clickAnimation:C="scale",customVariants:x,viewBox:O="0 0 24 24",strokeWidth:v=2,loading:V=false,progress:R}){let[W,y]=react.useState(false),[H,A]=react.useState(false),I=Z(),S=x||F[a]||{},b=i&&!I,w=t(()=>{if(r)return Array.isArray(r)?r:[r];let p=q[e];return Array.isArray(p)?p:[p]},"getIconPaths")(),E=t(()=>{k&&(A(true),setTimeout(()=>A(false),200),P?.());},"handleClick"),B=t(()=>!k||!W?{}:J[M]||{},"getHoverVariant"),D=t(()=>!k||!H?{}:K[C]||{},"getClickVariant");if(V)return jsxRuntime.jsx(Y,{size:o,strokeWidth:v});let T=t(()=>a==="morph"&&w.length>1?jsxRuntime.jsx(U,{paths:w,duration:s,strokeWidth:v,autoAnimate:b,repeat:m,onComplete:d}):a==="draw"?jsxRuntime.jsx(X,{path:w[0],duration:s,strokeWidth:v,progress:R,autoAnimate:b}):w.map((p,j)=>jsxRuntime.jsx(react$1.motion.path,{d:p,fill:e==="heart"?"currentColor":"none",stroke:e==="heart"?"none":"currentColor",strokeWidth:v,strokeLinecap:"round",strokeLinejoin:"round"},j)),"renderIcon");return jsxRuntime.jsx(react$1.motion.div,{className:utils.cn("inline-flex items-center justify-center",k&&"cursor-pointer",l),style:{width:o,height:o,color:c,...h},onClick:E,onMouseEnter:()=>y(true),onMouseLeave:()=>y(false),variants:S,animate:b?"animate":"initial",whileHover:I?{}:B(),whileTap:I?{}:D(),onAnimationComplete:d,children:jsxRuntime.jsx("svg",{width:"100%",height:"100%",viewBox:O,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntime.jsx(react$1.AnimatePresence,{mode:"wait",children:T()})})})}t(u,"AnimatedIcon");var ae={Spinner:t(e=>jsxRuntime.jsx(u,{icon:"loading",animation:"spin",...e}),"Spinner"),HeartBeat:t(e=>jsxRuntime.jsx(u,{icon:"heart",animation:"pulse",color:"#ef4444",...e}),"HeartBeat"),MenuToggle:t(e=>jsxRuntime.jsx(u,{icon:"hamburger",animation:"morph",...e}),"MenuToggle"),CheckDraw:t(e=>jsxRuntime.jsx(u,{icon:"check",animation:"draw",color:"#10b981",...e}),"CheckDraw"),BounceStar:t(e=>jsxRuntime.jsx(u,{icon:"star",animation:"bounce",color:"#fbbf24",...e}),"BounceStar"),HoverArrow:t(e=>jsxRuntime.jsx(u,{icon:"arrow",hoverAnimation:"scale",interactive:true,...e}),"HoverArrow")},ie=u;
|
|
2
|
+
exports.AnimatedIcon=u;exports.AnimatedIconPresets=ae;exports.default=ie;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import {useState,useEffect,useRef}from'react';import {motion,AnimatePresence}from'motion/react';import {cn}from'@/lib/utils';import {jsx}from'react/jsx-runtime';var z=Object.defineProperty;var t=(e,r)=>z(e,"name",{value:r,configurable:true});function Z(){let[e,r]=useState(false);return useEffect(()=>{if(typeof window>"u")return;let a=window.matchMedia("(prefers-reduced-motion: reduce)");r(a.matches);let o=t(c=>{r(c.matches);},"handleChange");return a.addEventListener("change",o),()=>a.removeEventListener("change",o)},[]),e}t(Z,"usePrefersReducedMotion");var q={loading:"M12 2v4m0 12v4M4.93 4.93l2.83 2.83m8.48 8.48l2.83 2.83M2 12h4m12 0h4M4.93 19.07l2.83-2.83m8.48-8.48l2.83-2.83",heart:["M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z","M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"],star:"m12 2 3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2Z",hamburger:["M3 12h18M3 6h18M3 18h18","m6 6 12 12M6 18 18 6"],arrow:"M5 12l14 0m-7 -7l7 7l-7 7",check:"m9 12 2 2 4-4",x:"m18 6-12 12M6 6l12 12"},F={spin:{animate:{rotate:360,transition:{duration:1,repeat:1/0,ease:"linear"}}},pulse:{animate:{scale:[1,1.2,1],transition:{duration:1,repeat:1/0,ease:"easeInOut"}}},bounce:{animate:{y:[0,-10,0],transition:{duration:.6,repeat:1/0,ease:"easeInOut"}}},draw:{initial:{pathLength:0,opacity:0},animate:{pathLength:1,opacity:1,transition:{duration:2,ease:"easeInOut"}}},hover:{whileHover:{scale:1.1,transition:{duration:.2}}}},J={scale:{scale:1.2},rotate:{rotate:15},glow:{filter:"drop-shadow(0 0 8px currentColor)"},shake:{x:[-2,2,-2,2,0]}},K={scale:{scale:.9},rotate:{rotate:180},ripple:{scale:[1,1.3,1]}};function U({paths:e,duration:r,strokeWidth:a=2,autoAnimate:o,repeat:c,onComplete:s}){let[i,m]=useState(0);return useEffect(()=>{if(!o||e.length<2)return;let l=setInterval(()=>{m(h=>{let d=(h+1)%e.length;return d===0&&!c&&(clearInterval(l),s?.()),d});},r);return ()=>clearInterval(l)},[o,e.length,r,c,s]),jsx(motion.path,{d:e[i],fill:"none",stroke:"currentColor",strokeWidth:a,strokeLinecap:"round",strokeLinejoin:"round",animate:{d:e[i]},transition:{duration:r/1e3,ease:"easeInOut"}})}t(U,"MorphingPath");function X({path:e,duration:r,strokeWidth:a=2,progress:o,autoAnimate:c}){let s=useRef(null),[i,m]=useState(0);useEffect(()=>{if(s.current){let h=s.current.getTotalLength();m(h);}},[e]);let l=o!==void 0?i*o:i;return jsx(motion.path,{ref:s,d:e,fill:"none",stroke:"currentColor",strokeWidth:a,strokeLinecap:"round",strokeLinejoin:"round",initial:{pathLength:0},animate:c?{pathLength:1}:{pathLength:l/i},transition:{duration:r/1e3,ease:"easeInOut"},style:{strokeDasharray:i,strokeDashoffset:i-l}})}t(X,"DrawingPath");function Y({size:e,strokeWidth:r=2}){return jsx(motion.div,{animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"},style:{width:e,height:e},children:jsx("svg",{width:"100%",height:"100%",viewBox:"0 0 24 24",fill:"none",children:jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:r,strokeLinecap:"round",strokeDasharray:"60 40",opacity:"0.3"})})})}t(Y,"LoadingSpinner");function u({icon:e="loading",paths:r,animation:a="spin",size:o=24,color:c="currentColor",duration:s=1e3,autoAnimate:i=true,repeat:m=true,className:l,style:h,onAnimationComplete:d,onClick:P,interactive:k=true,hoverAnimation:M="scale",clickAnimation:C="scale",customVariants:x,viewBox:O="0 0 24 24",strokeWidth:v=2,loading:V=false,progress:R}){let[W,y]=useState(false),[H,A]=useState(false),I=Z(),S=x||F[a]||{},b=i&&!I,w=t(()=>{if(r)return Array.isArray(r)?r:[r];let p=q[e];return Array.isArray(p)?p:[p]},"getIconPaths")(),E=t(()=>{k&&(A(true),setTimeout(()=>A(false),200),P?.());},"handleClick"),B=t(()=>!k||!W?{}:J[M]||{},"getHoverVariant"),D=t(()=>!k||!H?{}:K[C]||{},"getClickVariant");if(V)return jsx(Y,{size:o,strokeWidth:v});let T=t(()=>a==="morph"&&w.length>1?jsx(U,{paths:w,duration:s,strokeWidth:v,autoAnimate:b,repeat:m,onComplete:d}):a==="draw"?jsx(X,{path:w[0],duration:s,strokeWidth:v,progress:R,autoAnimate:b}):w.map((p,j)=>jsx(motion.path,{d:p,fill:e==="heart"?"currentColor":"none",stroke:e==="heart"?"none":"currentColor",strokeWidth:v,strokeLinecap:"round",strokeLinejoin:"round"},j)),"renderIcon");return jsx(motion.div,{className:cn("inline-flex items-center justify-center",k&&"cursor-pointer",l),style:{width:o,height:o,color:c,...h},onClick:E,onMouseEnter:()=>y(true),onMouseLeave:()=>y(false),variants:S,animate:b?"animate":"initial",whileHover:I?{}:B(),whileTap:I?{}:D(),onAnimationComplete:d,children:jsx("svg",{width:"100%",height:"100%",viewBox:O,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx(AnimatePresence,{mode:"wait",children:T()})})})}t(u,"AnimatedIcon");var ae={Spinner:t(e=>jsx(u,{icon:"loading",animation:"spin",...e}),"Spinner"),HeartBeat:t(e=>jsx(u,{icon:"heart",animation:"pulse",color:"#ef4444",...e}),"HeartBeat"),MenuToggle:t(e=>jsx(u,{icon:"hamburger",animation:"morph",...e}),"MenuToggle"),CheckDraw:t(e=>jsx(u,{icon:"check",animation:"draw",color:"#10b981",...e}),"CheckDraw"),BounceStar:t(e=>jsx(u,{icon:"star",animation:"bounce",color:"#fbbf24",...e}),"BounceStar"),HoverArrow:t(e=>jsx(u,{icon:"arrow",hoverAnimation:"scale",interactive:true,...e}),"HoverArrow")},ie=u;
|
|
2
|
+
export{u as AnimatedIcon,ae as AnimatedIconPresets,ie as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var
|
|
1
|
+
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var react=require('react'),react$1=require('motion/react'),utils=require('@/lib/utils'),jsxRuntime=require('react/jsx-runtime');var B=Object.defineProperty;var t=(e,s)=>B(e,"name",{value:s,configurable:true});function W(){let[e,s]=react.useState(false);return react.useEffect(()=>{if(typeof window>"u")return;let a=window.matchMedia("(prefers-reduced-motion: reduce)");s(a.matches);let d=t(c=>{s(c.matches);},"handleChange");return a.addEventListener("change",d),()=>a.removeEventListener("change",d)},[]),e}t(W,"usePrefersReducedMotion");var X={hidden:{opacity:0,x:-50},visible:t(e=>({opacity:1,x:0,transition:{delay:e*.1,duration:.5,ease:"easeOut"}}),"visible"),exit:{opacity:0,x:50,transition:{duration:.3}}},Y={hidden:{opacity:0},visible:t(e=>({opacity:1,transition:{delay:e*.1,duration:.5,ease:"easeOut"}}),"visible"),exit:{opacity:0,transition:{duration:.3}}},Z={hidden:{opacity:0,scale:.8},visible:t(e=>({opacity:1,scale:1,transition:{delay:e*.1,duration:.5,ease:"easeOut",type:"spring",stiffness:100}}),"visible"),exit:{opacity:0,scale:.8,transition:{duration:.3}}},_={hidden:{opacity:0,y:50},visible:t(e=>({opacity:1,y:0,transition:{delay:e*.1,duration:.5,ease:"easeOut"}}),"visible"),exit:{opacity:0,y:-50,transition:{duration:.3}}},j={hidden:{opacity:0,y:-50},visible:t(e=>({opacity:1,y:0,transition:{delay:e*.1,duration:.5,ease:"easeOut"}}),"visible"),exit:{opacity:0,y:50,transition:{duration:.3}}},H={hidden:{opacity:0,x:50},visible:t(e=>({opacity:1,x:0,transition:{delay:e*.1,duration:.5,ease:"easeOut"}}),"visible"),exit:{opacity:0,x:-50,transition:{duration:.3}}},ee={hidden:{opacity:0,x:-50},visible:t(e=>({opacity:1,x:0,transition:{delay:e*.1,duration:.5,ease:"easeOut"}}),"visible"),exit:{opacity:0,x:50,transition:{duration:.3}}},te={slide:X,fade:Y,scale:Z,slideUp:_,slideDown:j,slideLeft:H,slideRight:ee};function ie(e,s,a,d){let[c,x]=react.useState(0),b=react.useMemo(()=>{if(!d)return e;let r=Math.floor(c/a),p=Math.min(r+Math.ceil(s/a)+1,e.length);return e.slice(r,p).map((A,f)=>({...A,virtualIndex:r+f,style:{position:"absolute",top:(r+f)*a,height:a,width:"100%"}}))},[e,c,a,s,d]),g=e.length*a,m=react.useCallback(r=>{x(r.currentTarget.scrollTop);},[]);return {visibleItems:b,totalHeight:g,handleScroll:m}}t(ie,"useVirtualizedList");function l({items:e,animation:s="slideUp",staggerDelay:a=100,duration:d=500,reorderable:c=false,enableAddRemove:x=true,layout:b="vertical",gridColumns:g=3,className:m,itemClassName:r,style:p,onReorder:A,onItemClick:f,showHoverEffects:R=true,customVariants:T,virtualized:I=false,itemHeight:E=60,containerHeight:P=400,autoStart:N=true,onAnimationComplete:z}){let[v,w]=react.useState(e),[D,ne]=react.useState(0),G=W(),u=T||te[s],K=!G&&N,{visibleItems:Q,totalHeight:F,handleScroll:$}=ie(e,P,E,I);react.useEffect(()=>{w(e);},[e]);let q=react.useMemo(()=>!u.visible||typeof u.visible!="function"?u:{...u,visible:t(i=>{let o=u.visible,h=o(i);return {...h,transition:{...h.transition,delay:i*(a/1e3),duration:d/1e3}}},"visible")},[u,a,d]),C=t(()=>{switch(b){case "horizontal":return "flex flex-row gap-4 overflow-x-auto";case "grid":return `grid gap-4 grid-cols-${g}`;default:return "flex flex-col gap-4"}},"getLayoutClassName"),S=t((i,o,h)=>jsxRuntime.jsx(react$1.motion.div,{custom:o,variants:q,initial:K?"hidden":"visible",animate:"visible",exit:"exit",layout:x,className:utils.cn("cursor-pointer select-none",R&&"hover:scale-105 transition-transform",r),style:h,onClick:()=>f?.(i,o),whileHover:R?{scale:1.02}:void 0,whileTap:R?{scale:.98}:void 0,onAnimationComplete:()=>{o===v.length-1&&z?.();},children:i.content},i.id),"renderListItem");return c&&!I?jsxRuntime.jsx(react$1.Reorder.Group,{axis:b==="horizontal"?"x":"y",values:v,onReorder:i=>{w(i),A?.(i);},className:utils.cn(C(),m),style:p,children:jsxRuntime.jsx(react$1.AnimatePresence,{mode:"popLayout",children:v.map((i,o)=>jsxRuntime.jsx(react$1.Reorder.Item,{value:i,className:utils.cn("cursor-grab active:cursor-grabbing",r),whileDrag:{scale:1.05,zIndex:10},children:i.content},i.id))})}):I?jsxRuntime.jsx("div",{className:utils.cn("overflow-auto",m),style:{height:P,...p},onScroll:$,children:jsxRuntime.jsx("div",{style:{height:F,position:"relative"},children:jsxRuntime.jsx(react$1.AnimatePresence,{mode:"popLayout",children:Q.map((i,o)=>S(i,i.virtualIndex||o,i.style))})})}):jsxRuntime.jsx(react$1.motion.div,{className:utils.cn(C(),m),style:p,initial:"hidden",animate:"visible",children:jsxRuntime.jsx(react$1.AnimatePresence,{mode:"popLayout",children:v.map((i,o)=>S(i,o))})},D)}t(l,"AnimatedList");var ue={FadeList:t(e=>jsxRuntime.jsx(l,{animation:"fade",...e}),"FadeList"),ScaleList:t(e=>jsxRuntime.jsx(l,{animation:"scale",...e}),"ScaleList"),SlideUpList:t(e=>jsxRuntime.jsx(l,{animation:"slideUp",...e}),"SlideUpList"),CarouselList:t(e=>jsxRuntime.jsx(l,{layout:"horizontal",animation:"slideLeft",...e}),"CarouselList"),GridList:t(e=>jsxRuntime.jsx(l,{layout:"grid",animation:"scale",...e}),"GridList"),TaskList:t(e=>jsxRuntime.jsx(l,{reorderable:true,animation:"slideUp",showHoverEffects:true,...e}),"TaskList")},me=l;exports.AnimatedList=l;exports.AnimatedListPresets=ue;exports.default=me;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import {useState,useEffect,useMemo,useCallback}from'react';import {motion,Reorder,AnimatePresence}from'motion/react';import {cn}from'@/lib/utils';import {jsx}from'react/jsx-runtime';var B=Object.defineProperty;var t=(e,s)=>B(e,"name",{value:s,configurable:true});function W(){let[e,s]=useState(false);return useEffect(()=>{if(typeof window>"u")return;let a=window.matchMedia("(prefers-reduced-motion: reduce)");s(a.matches);let d=t(c=>{s(c.matches);},"handleChange");return a.addEventListener("change",d),()=>a.removeEventListener("change",d)},[]),e}t(W,"usePrefersReducedMotion");var X={hidden:{opacity:0,x:-50},visible:t(e=>({opacity:1,x:0,transition:{delay:e*.1,duration:.5,ease:"easeOut"}}),"visible"),exit:{opacity:0,x:50,transition:{duration:.3}}},Y={hidden:{opacity:0},visible:t(e=>({opacity:1,transition:{delay:e*.1,duration:.5,ease:"easeOut"}}),"visible"),exit:{opacity:0,transition:{duration:.3}}},Z={hidden:{opacity:0,scale:.8},visible:t(e=>({opacity:1,scale:1,transition:{delay:e*.1,duration:.5,ease:"easeOut",type:"spring",stiffness:100}}),"visible"),exit:{opacity:0,scale:.8,transition:{duration:.3}}},_={hidden:{opacity:0,y:50},visible:t(e=>({opacity:1,y:0,transition:{delay:e*.1,duration:.5,ease:"easeOut"}}),"visible"),exit:{opacity:0,y:-50,transition:{duration:.3}}},j={hidden:{opacity:0,y:-50},visible:t(e=>({opacity:1,y:0,transition:{delay:e*.1,duration:.5,ease:"easeOut"}}),"visible"),exit:{opacity:0,y:50,transition:{duration:.3}}},H={hidden:{opacity:0,x:50},visible:t(e=>({opacity:1,x:0,transition:{delay:e*.1,duration:.5,ease:"easeOut"}}),"visible"),exit:{opacity:0,x:-50,transition:{duration:.3}}},ee={hidden:{opacity:0,x:-50},visible:t(e=>({opacity:1,x:0,transition:{delay:e*.1,duration:.5,ease:"easeOut"}}),"visible"),exit:{opacity:0,x:50,transition:{duration:.3}}},te={slide:X,fade:Y,scale:Z,slideUp:_,slideDown:j,slideLeft:H,slideRight:ee};function ie(e,s,a,d){let[c,x]=useState(0),b=useMemo(()=>{if(!d)return e;let r=Math.floor(c/a),p=Math.min(r+Math.ceil(s/a)+1,e.length);return e.slice(r,p).map((A,f)=>({...A,virtualIndex:r+f,style:{position:"absolute",top:(r+f)*a,height:a,width:"100%"}}))},[e,c,a,s,d]),g=e.length*a,m=useCallback(r=>{x(r.currentTarget.scrollTop);},[]);return {visibleItems:b,totalHeight:g,handleScroll:m}}t(ie,"useVirtualizedList");function l({items:e,animation:s="slideUp",staggerDelay:a=100,duration:d=500,reorderable:c=false,enableAddRemove:x=true,layout:b="vertical",gridColumns:g=3,className:m,itemClassName:r,style:p,onReorder:A,onItemClick:f,showHoverEffects:R=true,customVariants:T,virtualized:I=false,itemHeight:E=60,containerHeight:P=400,autoStart:N=true,onAnimationComplete:z}){let[v,w]=useState(e),[D,ne]=useState(0),G=W(),u=T||te[s],K=!G&&N,{visibleItems:Q,totalHeight:F,handleScroll:$}=ie(e,P,E,I);useEffect(()=>{w(e);},[e]);let q=useMemo(()=>!u.visible||typeof u.visible!="function"?u:{...u,visible:t(i=>{let o=u.visible,h=o(i);return {...h,transition:{...h.transition,delay:i*(a/1e3),duration:d/1e3}}},"visible")},[u,a,d]),C=t(()=>{switch(b){case "horizontal":return "flex flex-row gap-4 overflow-x-auto";case "grid":return `grid gap-4 grid-cols-${g}`;default:return "flex flex-col gap-4"}},"getLayoutClassName"),S=t((i,o,h)=>jsx(motion.div,{custom:o,variants:q,initial:K?"hidden":"visible",animate:"visible",exit:"exit",layout:x,className:cn("cursor-pointer select-none",R&&"hover:scale-105 transition-transform",r),style:h,onClick:()=>f?.(i,o),whileHover:R?{scale:1.02}:void 0,whileTap:R?{scale:.98}:void 0,onAnimationComplete:()=>{o===v.length-1&&z?.();},children:i.content},i.id),"renderListItem");return c&&!I?jsx(Reorder.Group,{axis:b==="horizontal"?"x":"y",values:v,onReorder:i=>{w(i),A?.(i);},className:cn(C(),m),style:p,children:jsx(AnimatePresence,{mode:"popLayout",children:v.map((i,o)=>jsx(Reorder.Item,{value:i,className:cn("cursor-grab active:cursor-grabbing",r),whileDrag:{scale:1.05,zIndex:10},children:i.content},i.id))})}):I?jsx("div",{className:cn("overflow-auto",m),style:{height:P,...p},onScroll:$,children:jsx("div",{style:{height:F,position:"relative"},children:jsx(AnimatePresence,{mode:"popLayout",children:Q.map((i,o)=>S(i,i.virtualIndex||o,i.style))})})}):jsx(motion.div,{className:cn(C(),m),style:p,initial:"hidden",animate:"visible",children:jsx(AnimatePresence,{mode:"popLayout",children:v.map((i,o)=>S(i,o))})},D)}t(l,"AnimatedList");var ue={FadeList:t(e=>jsx(l,{animation:"fade",...e}),"FadeList"),ScaleList:t(e=>jsx(l,{animation:"scale",...e}),"ScaleList"),SlideUpList:t(e=>jsx(l,{animation:"slideUp",...e}),"SlideUpList"),CarouselList:t(e=>jsx(l,{layout:"horizontal",animation:"slideLeft",...e}),"CarouselList"),GridList:t(e=>jsx(l,{layout:"grid",animation:"scale",...e}),"GridList"),TaskList:t(e=>jsx(l,{reorderable:true,animation:"slideUp",showHoverEffects:true,...e}),"TaskList")},me=l;export{l as AnimatedList,ue as AnimatedListPresets,me as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var
|
|
1
|
+
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var react=require('react'),react$1=require('motion/react'),utils=require('@/lib/utils'),jsxRuntime=require('react/jsx-runtime');var K=Object.defineProperty;var u=(n,t)=>K(n,"name",{value:t,configurable:true});function O(){let[n,t]=react.useState(false);return react.useEffect(()=>{if(typeof window>"u")return;let o=window.matchMedia("(prefers-reduced-motion: reduce)");t(o.matches);let e=u(f=>{t(f.matches);},"handleChange");return o.addEventListener("change",e),()=>o.removeEventListener("change",e)},[]),n}u(O,"usePrefersReducedMotion");function z(n,t,o,e,f,w,b,F,g,a,r,c){let[m,y]=react.useState(t),[l,N]=react.useState(false),h=react.useRef(null),p=O(),d=react$1.useSpring(t,{stiffness:r.tension||100,damping:r.friction||10,mass:r.mass||1}),[E,I]=react.useState(t),A=react.useCallback(()=>{if(p){y(n);return}if(N(true),a)d.set(n);else {let s=Date.now(),i=m,R=n-i,v=u(()=>{let D=Date.now()-s,P=Math.min(D/o,1),C=i+R*P;y(C),I(C),P<1?h.current=requestAnimationFrame(v):(N(false),h.current=null);},"animate");h.current=requestAnimationFrame(v);}},[n,m,o,a,d,p]);return react.useEffect(()=>()=>{h.current&&cancelAnimationFrame(h.current);},[]),react.useEffect(()=>{if(a){let s=d.onChange(i=>{y(i),Math.abs(i-n)<.01&&N(false);});return ()=>{s();}}},[d,a,n]),react.useEffect(()=>{g&&A();},[g,A]),{formattedValue:react.useMemo(()=>{let s=Math.round(m*Math.pow(10,e))/Math.pow(10,e);try{switch(f){case "currency":return new Intl.NumberFormat(b,{style:"currency",currency:w,minimumFractionDigits:e,maximumFractionDigits:e}).format(s);case "percent":return new Intl.NumberFormat(b,{style:"percent",minimumFractionDigits:e,maximumFractionDigits:e}).format(s/100);default:let i=new Intl.NumberFormat(b,{minimumFractionDigits:e,maximumFractionDigits:e}).format(s);return c&&c!==","&&(i=i.replace(/,/g,c)),i}}catch{return s.toFixed(e)}},[m,e,f,w,b,c]),displayValue:m,isAnimating:l,startAnimation:A}}u(z,"useAnimatedNumber");function L({value:n,from:t=0,duration:o=2e3,decimals:e=0,format:f="number",currency:w="USD",locale:b="en-US",easing:F="easeOut",autoStart:g=true,onComplete:a,className:r,style:c,prefix:m="",suffix:y="",useSpring:l=false,springConfig:N={},separator:h,animateOnHover:p=false,hoverValue:d}){let[E,I]=react.useState(false),[A,B]=react.useState(0),s=p&&E&&d!==void 0?d:n,{formattedValue:i,displayValue:R,isAnimating:v,startAnimation:D}=z(s,t,o,e,f,w,b,F,g,l,N,h);react.useEffect(()=>{!v&&a&&Math.abs(R-s)<.001&&a(R);},[v,R,s,a]),react.useEffect(()=>{p&&d!==void 0&&D();},[E,p,d,D]);let P=u(()=>{p&&I(true);},"handleMouseEnter"),S=u(()=>{p&&I(false);},"handleMouseLeave"),C=O();return jsxRuntime.jsxs(react$1.motion.span,{className:utils.cn("inline-block tabular-nums",r),style:c,onMouseEnter:P,onMouseLeave:S,initial:{scale:1},animate:!C&&v?{scale:[1,1.05,1]}:{scale:1},transition:{duration:.3},children:[m,jsxRuntime.jsx(react$1.motion.span,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},children:i},A),y]})}u(L,"AnimatedNumber");function $({initialValue:n=0,min:t=-1/0,max:o=1/0,step:e=1,showControls:f=true,incrementButton:w,decrementButton:b,onChange:F,className:g,...a}){let[r,c]=react.useState(n),m=u(()=>{let l=Math.min(r+e,o);c(l),F?.(l);},"increment"),y=u(()=>{let l=Math.max(r-e,t);c(l),F?.(l);},"decrement");return f?jsxRuntime.jsxs("div",{className:utils.cn("flex items-center gap-2",g),children:[jsxRuntime.jsx(react$1.motion.button,{onClick:y,disabled:r<=t,className:"flex h-8 w-8 items-center justify-center rounded border bg-background hover:bg-accent disabled:opacity-50",whileTap:{scale:.95},whileHover:{scale:1.05},children:b||"\u2212"}),jsxRuntime.jsx(L,{value:r,...a}),jsxRuntime.jsx(react$1.motion.button,{onClick:m,disabled:r>=o,className:"flex h-8 w-8 items-center justify-center rounded border bg-background hover:bg-accent disabled:opacity-50",whileTap:{scale:.95},whileHover:{scale:1.05},children:w||"+"})]}):jsxRuntime.jsx(L,{value:r,className:g,...a})}u($,"AnimatedCounter");var ee=L;exports.AnimatedCounter=$;exports.AnimatedNumber=L;exports.default=ee;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import {useState,useEffect,useRef,useCallback,useMemo}from'react';import {motion,useSpring}from'motion/react';import {cn}from'@/lib/utils';import {jsxs,jsx}from'react/jsx-runtime';var K=Object.defineProperty;var u=(n,t)=>K(n,"name",{value:t,configurable:true});function O(){let[n,t]=useState(false);return useEffect(()=>{if(typeof window>"u")return;let o=window.matchMedia("(prefers-reduced-motion: reduce)");t(o.matches);let e=u(f=>{t(f.matches);},"handleChange");return o.addEventListener("change",e),()=>o.removeEventListener("change",e)},[]),n}u(O,"usePrefersReducedMotion");function z(n,t,o,e,f,w,b,F,g,a,r,c){let[m,y]=useState(t),[l,N]=useState(false),h=useRef(null),p=O(),d=useSpring(t,{stiffness:r.tension||100,damping:r.friction||10,mass:r.mass||1}),[E,I]=useState(t),A=useCallback(()=>{if(p){y(n);return}if(N(true),a)d.set(n);else {let s=Date.now(),i=m,R=n-i,v=u(()=>{let D=Date.now()-s,P=Math.min(D/o,1),C=i+R*P;y(C),I(C),P<1?h.current=requestAnimationFrame(v):(N(false),h.current=null);},"animate");h.current=requestAnimationFrame(v);}},[n,m,o,a,d,p]);return useEffect(()=>()=>{h.current&&cancelAnimationFrame(h.current);},[]),useEffect(()=>{if(a){let s=d.onChange(i=>{y(i),Math.abs(i-n)<.01&&N(false);});return ()=>{s();}}},[d,a,n]),useEffect(()=>{g&&A();},[g,A]),{formattedValue:useMemo(()=>{let s=Math.round(m*Math.pow(10,e))/Math.pow(10,e);try{switch(f){case "currency":return new Intl.NumberFormat(b,{style:"currency",currency:w,minimumFractionDigits:e,maximumFractionDigits:e}).format(s);case "percent":return new Intl.NumberFormat(b,{style:"percent",minimumFractionDigits:e,maximumFractionDigits:e}).format(s/100);default:let i=new Intl.NumberFormat(b,{minimumFractionDigits:e,maximumFractionDigits:e}).format(s);return c&&c!==","&&(i=i.replace(/,/g,c)),i}}catch{return s.toFixed(e)}},[m,e,f,w,b,c]),displayValue:m,isAnimating:l,startAnimation:A}}u(z,"useAnimatedNumber");function L({value:n,from:t=0,duration:o=2e3,decimals:e=0,format:f="number",currency:w="USD",locale:b="en-US",easing:F="easeOut",autoStart:g=true,onComplete:a,className:r,style:c,prefix:m="",suffix:y="",useSpring:l=false,springConfig:N={},separator:h,animateOnHover:p=false,hoverValue:d}){let[E,I]=useState(false),[A,B]=useState(0),s=p&&E&&d!==void 0?d:n,{formattedValue:i,displayValue:R,isAnimating:v,startAnimation:D}=z(s,t,o,e,f,w,b,F,g,l,N,h);useEffect(()=>{!v&&a&&Math.abs(R-s)<.001&&a(R);},[v,R,s,a]),useEffect(()=>{p&&d!==void 0&&D();},[E,p,d,D]);let P=u(()=>{p&&I(true);},"handleMouseEnter"),S=u(()=>{p&&I(false);},"handleMouseLeave"),C=O();return jsxs(motion.span,{className:cn("inline-block tabular-nums",r),style:c,onMouseEnter:P,onMouseLeave:S,initial:{scale:1},animate:!C&&v?{scale:[1,1.05,1]}:{scale:1},transition:{duration:.3},children:[m,jsx(motion.span,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},children:i},A),y]})}u(L,"AnimatedNumber");function $({initialValue:n=0,min:t=-1/0,max:o=1/0,step:e=1,showControls:f=true,incrementButton:w,decrementButton:b,onChange:F,className:g,...a}){let[r,c]=useState(n),m=u(()=>{let l=Math.min(r+e,o);c(l),F?.(l);},"increment"),y=u(()=>{let l=Math.max(r-e,t);c(l),F?.(l);},"decrement");return f?jsxs("div",{className:cn("flex items-center gap-2",g),children:[jsx(motion.button,{onClick:y,disabled:r<=t,className:"flex h-8 w-8 items-center justify-center rounded border bg-background hover:bg-accent disabled:opacity-50",whileTap:{scale:.95},whileHover:{scale:1.05},children:b||"\u2212"}),jsx(L,{value:r,...a}),jsx(motion.button,{onClick:m,disabled:r>=o,className:"flex h-8 w-8 items-center justify-center rounded border bg-background hover:bg-accent disabled:opacity-50",whileTap:{scale:.95},whileHover:{scale:1.05},children:w||"+"})]}):jsx(L,{value:r,className:g,...a})}u($,"AnimatedCounter");var ee=L;export{$ as AnimatedCounter,L as AnimatedNumber,ee as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var i=require('react'),react=require('motion/react'),utils=require('@hanzo/ui/lib/utils'),avatar=require('@hanzo/ui/primitives/avatar'),ui=require('@hanzo/ui'),jsxRuntime=require('react/jsx-runtime');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var i__namespace=/*#__PURE__*/_interopNamespace(i);var T=i__namespace.forwardRef(({className:d,testimonials:e,autoPlay:n=true,duration:c=5e3,...p},u)=>{let[t,m]=i__namespace.useState(0);return i__namespace.useEffect(()=>{if(!n)return;let l=setInterval(()=>{m(o=>(o+1)%e.length);},c);return ()=>clearInterval(l)},[n,c,e.length]),jsxRuntime.jsxs("div",{ref:u,className:utils.cn("relative min-h-[200px]",d),...p,children:[jsxRuntime.jsx(react.AnimatePresence,{mode:"wait",children:jsxRuntime.jsx(react.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.5},children:jsxRuntime.jsx(ui.Card,{children:jsxRuntime.jsx(ui.CardContent,{className:"pt-6",children:jsxRuntime.jsxs("blockquote",{className:"space-y-4",children:[jsxRuntime.jsxs("p",{className:"text-lg italic",children:['"',e[t].content,'"']}),jsxRuntime.jsxs("footer",{className:"flex items-center gap-4",children:[jsxRuntime.jsxs(avatar.Avatar,{children:[jsxRuntime.jsx(avatar.AvatarImage,{src:e[t].avatar}),jsxRuntime.jsx(avatar.AvatarFallback,{children:e[t].author.slice(0,2).toUpperCase()})]}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("cite",{className:"not-italic font-medium",children:e[t].author}),e[t].role&&jsxRuntime.jsxs("p",{className:"text-sm text-muted-foreground",children:[e[t].role,e[t].company&&`, ${e[t].company}`]})]})]})]})})})},t)}),jsxRuntime.jsx("div",{className:"mt-4 flex justify-center gap-2",children:e.map((l,o)=>jsxRuntime.jsx("button",{onClick:()=>m(o),className:utils.cn("h-2 w-2 rounded-full transition-all",o===t?"w-8 bg-primary":"bg-muted hover:bg-muted-foreground"),"aria-label":`Go to testimonial ${o+1}`},o))})]})});T.displayName="AnimatedTestimonials";exports.AnimatedTestimonials=T;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import*as i from'react';import {AnimatePresence,motion}from'motion/react';import {cn}from'@hanzo/ui/lib/utils';import {Avatar,AvatarImage,AvatarFallback}from'@hanzo/ui/primitives/avatar';import {Card,CardContent}from'@hanzo/ui';import {jsxs,jsx}from'react/jsx-runtime';var T=i.forwardRef(({className:d,testimonials:e,autoPlay:n=true,duration:c=5e3,...p},u)=>{let[t,m]=i.useState(0);return i.useEffect(()=>{if(!n)return;let l=setInterval(()=>{m(o=>(o+1)%e.length);},c);return ()=>clearInterval(l)},[n,c,e.length]),jsxs("div",{ref:u,className:cn("relative min-h-[200px]",d),...p,children:[jsx(AnimatePresence,{mode:"wait",children:jsx(motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.5},children:jsx(Card,{children:jsx(CardContent,{className:"pt-6",children:jsxs("blockquote",{className:"space-y-4",children:[jsxs("p",{className:"text-lg italic",children:['"',e[t].content,'"']}),jsxs("footer",{className:"flex items-center gap-4",children:[jsxs(Avatar,{children:[jsx(AvatarImage,{src:e[t].avatar}),jsx(AvatarFallback,{children:e[t].author.slice(0,2).toUpperCase()})]}),jsxs("div",{children:[jsx("cite",{className:"not-italic font-medium",children:e[t].author}),e[t].role&&jsxs("p",{className:"text-sm text-muted-foreground",children:[e[t].role,e[t].company&&`, ${e[t].company}`]})]})]})]})})})},t)}),jsx("div",{className:"mt-4 flex justify-center gap-2",children:e.map((l,o)=>jsx("button",{onClick:()=>m(o),className:cn("h-2 w-2 rounded-full transition-all",o===t?"w-8 bg-primary":"bg-muted hover:bg-muted-foreground"),"aria-label":`Go to testimonial ${o+1}`},o))})]})});T.displayName="AnimatedTestimonials";export{T as AnimatedTestimonials};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var e=require('react'),framerMotion=require('framer-motion'),utils=require('@hanzo/ui/lib/utils'),jsxRuntime=require('react/jsx-runtime');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var e__namespace=/*#__PURE__*/_interopNamespace(e);var u=e__namespace.forwardRef(({className:r,content:i,children:n,delay:s=0,...l},d)=>{let[c,t]=e__namespace.useState(false);return jsxRuntime.jsxs("div",{ref:d,className:utils.cn("relative inline-block",r),onMouseEnter:()=>t(true),onMouseLeave:()=>t(false),...l,children:[n,jsxRuntime.jsx(framerMotion.AnimatePresence,{children:c&&jsxRuntime.jsxs(framerMotion.motion.div,{initial:{opacity:0,y:10,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:10,scale:.95},transition:{duration:.2,delay:s/1e3,ease:"easeOut"},className:"absolute left-1/2 -translate-x-1/2 bottom-full mb-2 px-3 py-1.5 bg-popover text-popover-foreground text-sm rounded-md shadow-md whitespace-nowrap z-50",children:[i,jsxRuntime.jsx("div",{className:"absolute left-1/2 -translate-x-1/2 top-full w-0 h-0 border-l-4 border-r-4 border-t-4 border-l-transparent border-r-transparent border-t-popover"})]})})]})});u.displayName="AnimatedTooltip";exports.AnimatedTooltip=u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import*as e from'react';import {AnimatePresence,motion}from'framer-motion';import {cn}from'@hanzo/ui/lib/utils';import {jsxs,jsx}from'react/jsx-runtime';var u=e.forwardRef(({className:r,content:i,children:n,delay:s=0,...l},d)=>{let[c,t]=e.useState(false);return jsxs("div",{ref:d,className:cn("relative inline-block",r),onMouseEnter:()=>t(true),onMouseLeave:()=>t(false),...l,children:[n,jsx(AnimatePresence,{children:c&&jsxs(motion.div,{initial:{opacity:0,y:10,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:10,scale:.95},transition:{duration:.2,delay:s/1e3,ease:"easeOut"},className:"absolute left-1/2 -translate-x-1/2 bottom-full mb-2 px-3 py-1.5 bg-popover text-popover-foreground text-sm rounded-md shadow-md whitespace-nowrap z-50",children:[i,jsx("div",{className:"absolute left-1/2 -translate-x-1/2 top-full w-0 h-0 border-l-4 border-r-4 border-t-4 border-l-transparent border-r-transparent border-t-popover"})]})})]})});u.displayName="AnimatedTooltip";export{u as AnimatedTooltip};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var n=require('react'),framerMotion=require('framer-motion'),lucideReact=require('lucide-react'),utils=require('@hanzo/ui/lib/utils'),ui=require('@hanzo/ui'),jsxRuntime=require('react/jsx-runtime');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var n__namespace=/*#__PURE__*/_interopNamespace(n);var X=Object.defineProperty;var g=(o,l)=>X(o,"name",{value:l,configurable:true});function ee({cards:o,autoPlay:l=false,autoPlayInterval:p=5e3,className:N,cardClassName:R,showArrows:E=true,showDots:M=true,parallaxOffset:h=50,stackOffset:A=10,stackScale:I=.95,swipeThreshold:x=50}){let[m,b]=n__namespace.useState(0),[y,v]=n__namespace.useState(l),z=n__namespace.useRef(null),w=framerMotion.useMotionValue(0),P=g(e=>{let t=e-m,s=Math.abs(t);if(s>2)return {display:"none",x:0,scale:1,opacity:0,zIndex:0};let B=t*A,O=Math.pow(I,s),j=Math.max(0,1-s*.3),K=o.length-s;return {display:"block",x:B,scale:O,opacity:j,zIndex:K}},"getCardStyle"),c=n__namespace.useCallback(()=>{b(e=>(e+1)%o.length);},[o.length]),f=n__namespace.useCallback(()=>{b(e=>(e-1+o.length)%o.length);},[o.length]),L=n__namespace.useCallback(e=>{b(e);},[]),T=n__namespace.useCallback((e,t)=>{let{offset:s,velocity:i}=t;(Math.abs(s.x)>x||Math.abs(i.x)>500)&&(s.x>0?f():c());},[c,f,x]);n__namespace.useEffect(()=>{if(!y)return;let e=setInterval(c,p);return ()=>clearInterval(e)},[y,c,p]);let D=n__namespace.useCallback(()=>{l&&v(false);},[l]),S=n__namespace.useCallback(()=>{l&&v(true);},[l]);return n__namespace.useEffect(()=>{let e=g(t=>{t.key==="ArrowLeft"?f():t.key==="ArrowRight"&&c();},"handleKeyDown");return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[c,f]),jsxRuntime.jsxs("div",{ref:z,className:utils.cn("relative w-full max-w-6xl mx-auto px-4 py-8",N),onMouseEnter:D,onMouseLeave:S,children:[jsxRuntime.jsx("div",{className:"relative h-[400px] md:h-[500px] lg:h-[600px] flex items-center justify-center",children:jsxRuntime.jsx(framerMotion.AnimatePresence,{mode:"popLayout",children:o.map((e,t)=>{let s=P(t),i=t===m;return jsxRuntime.jsx(framerMotion.motion.div,{className:utils.cn("absolute inset-0 w-full h-full",!i&&"pointer-events-none"),initial:false,animate:{x:s.x,scale:s.scale,opacity:s.opacity,zIndex:s.zIndex},transition:{type:"spring",stiffness:300,damping:30},drag:i?"x":false,dragSnapToOrigin:true,dragElastic:.2,onDragEnd:T,whileDrag:{cursor:"grabbing"},style:{x:w,display:s.display},children:jsxRuntime.jsxs(ui.Card,{className:utils.cn("relative w-full h-full overflow-hidden cursor-grab","bg-gradient-to-br from-white to-gray-50 dark:from-gray-900 dark:to-gray-950","shadow-2xl hover:shadow-3xl transition-shadow duration-300",R),style:{background:e.gradient},children:[e.image&&jsxRuntime.jsxs(framerMotion.motion.div,{className:"absolute inset-0 w-full h-full",style:{x:framerMotion.useTransform(w,[-200,0,200],[h,0,-h])},children:[jsxRuntime.jsx("img",{src:e.image,alt:e.title,className:"w-full h-full object-cover"}),jsxRuntime.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 via-black/20 to-transparent"})]}),jsxRuntime.jsx("div",{className:"relative z-10 flex flex-col justify-end h-full p-8 md:p-12",children:e.content?e.content:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(framerMotion.motion.h3,{className:"text-3xl md:text-4xl lg:text-5xl font-bold text-white mb-2",initial:{opacity:0,y:20},animate:{opacity:i?1:.7,y:0},transition:{delay:.1},children:e.title}),e.subtitle&&jsxRuntime.jsx(framerMotion.motion.p,{className:"text-xl md:text-2xl text-white/80 mb-4",initial:{opacity:0,y:20},animate:{opacity:i?1:.7,y:0},transition:{delay:.2},children:e.subtitle}),e.description&&jsxRuntime.jsx(framerMotion.motion.p,{className:"text-base md:text-lg text-white/70 max-w-2xl",initial:{opacity:0,y:20},animate:{opacity:i?1:.7,y:0},transition:{delay:.3},children:e.description})]})})]})},e.id)})})}),E&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs(ui.Button,{variant:"ghost",size:"icon",className:utils.cn("absolute left-4 top-1/2 -translate-y-1/2 z-20","bg-white/10 backdrop-blur-md hover:bg-white/20","text-white border border-white/20","hidden md:flex"),onClick:f,children:[jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-6 w-6"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Previous card"})]}),jsxRuntime.jsxs(ui.Button,{variant:"ghost",size:"icon",className:utils.cn("absolute right-4 top-1/2 -translate-y-1/2 z-20","bg-white/10 backdrop-blur-md hover:bg-white/20","text-white border border-white/20","hidden md:flex"),onClick:c,children:[jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-6 w-6"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Next card"})]})]}),M&&jsxRuntime.jsx("div",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 z-20 flex gap-2",children:o.map((e,t)=>jsxRuntime.jsx("button",{className:utils.cn("w-2 h-2 rounded-full transition-all duration-300","bg-white/40 hover:bg-white/60",t===m&&"w-8 bg-white"),onClick:()=>L(t),children:jsxRuntime.jsxs("span",{className:"sr-only",children:["Go to card ",t+1]})},t))})]})}g(ee,"AppleCardsCarousel");var te={sunset:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",ocean:"linear-gradient(135deg, #667eea 0%, #4ca1af 100%)",fire:"linear-gradient(135deg, #f093fb 0%, #f5576c 100%)",forest:"linear-gradient(135deg, #4facfe 0%, #00f2fe 100%)",galaxy:"linear-gradient(135deg, #7303c0 0%, #ec38bc 50%, #fdeff9 100%)",aurora:"linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%)",peach:"linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%)",lavender:"linear-gradient(135deg, #a8edea 0%, #fed6e3 100%)"};exports.AppleCardsCarousel=ee;exports.gradientPresets=te;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import*as n from'react';import {useMotionValue,AnimatePresence,motion,useTransform}from'framer-motion';import {ChevronLeft,ChevronRight}from'lucide-react';import {cn}from'@hanzo/ui/lib/utils';import {Card,Button}from'@hanzo/ui';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var X=Object.defineProperty;var g=(o,l)=>X(o,"name",{value:l,configurable:true});function ee({cards:o,autoPlay:l=false,autoPlayInterval:p=5e3,className:N,cardClassName:R,showArrows:E=true,showDots:M=true,parallaxOffset:h=50,stackOffset:A=10,stackScale:I=.95,swipeThreshold:x=50}){let[m,b]=n.useState(0),[y,v]=n.useState(l),z=n.useRef(null),w=useMotionValue(0),P=g(e=>{let t=e-m,s=Math.abs(t);if(s>2)return {display:"none",x:0,scale:1,opacity:0,zIndex:0};let B=t*A,O=Math.pow(I,s),j=Math.max(0,1-s*.3),K=o.length-s;return {display:"block",x:B,scale:O,opacity:j,zIndex:K}},"getCardStyle"),c=n.useCallback(()=>{b(e=>(e+1)%o.length);},[o.length]),f=n.useCallback(()=>{b(e=>(e-1+o.length)%o.length);},[o.length]),L=n.useCallback(e=>{b(e);},[]),T=n.useCallback((e,t)=>{let{offset:s,velocity:i}=t;(Math.abs(s.x)>x||Math.abs(i.x)>500)&&(s.x>0?f():c());},[c,f,x]);n.useEffect(()=>{if(!y)return;let e=setInterval(c,p);return ()=>clearInterval(e)},[y,c,p]);let D=n.useCallback(()=>{l&&v(false);},[l]),S=n.useCallback(()=>{l&&v(true);},[l]);return n.useEffect(()=>{let e=g(t=>{t.key==="ArrowLeft"?f():t.key==="ArrowRight"&&c();},"handleKeyDown");return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[c,f]),jsxs("div",{ref:z,className:cn("relative w-full max-w-6xl mx-auto px-4 py-8",N),onMouseEnter:D,onMouseLeave:S,children:[jsx("div",{className:"relative h-[400px] md:h-[500px] lg:h-[600px] flex items-center justify-center",children:jsx(AnimatePresence,{mode:"popLayout",children:o.map((e,t)=>{let s=P(t),i=t===m;return jsx(motion.div,{className:cn("absolute inset-0 w-full h-full",!i&&"pointer-events-none"),initial:false,animate:{x:s.x,scale:s.scale,opacity:s.opacity,zIndex:s.zIndex},transition:{type:"spring",stiffness:300,damping:30},drag:i?"x":false,dragSnapToOrigin:true,dragElastic:.2,onDragEnd:T,whileDrag:{cursor:"grabbing"},style:{x:w,display:s.display},children:jsxs(Card,{className:cn("relative w-full h-full overflow-hidden cursor-grab","bg-gradient-to-br from-white to-gray-50 dark:from-gray-900 dark:to-gray-950","shadow-2xl hover:shadow-3xl transition-shadow duration-300",R),style:{background:e.gradient},children:[e.image&&jsxs(motion.div,{className:"absolute inset-0 w-full h-full",style:{x:useTransform(w,[-200,0,200],[h,0,-h])},children:[jsx("img",{src:e.image,alt:e.title,className:"w-full h-full object-cover"}),jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 via-black/20 to-transparent"})]}),jsx("div",{className:"relative z-10 flex flex-col justify-end h-full p-8 md:p-12",children:e.content?e.content:jsxs(Fragment,{children:[jsx(motion.h3,{className:"text-3xl md:text-4xl lg:text-5xl font-bold text-white mb-2",initial:{opacity:0,y:20},animate:{opacity:i?1:.7,y:0},transition:{delay:.1},children:e.title}),e.subtitle&&jsx(motion.p,{className:"text-xl md:text-2xl text-white/80 mb-4",initial:{opacity:0,y:20},animate:{opacity:i?1:.7,y:0},transition:{delay:.2},children:e.subtitle}),e.description&&jsx(motion.p,{className:"text-base md:text-lg text-white/70 max-w-2xl",initial:{opacity:0,y:20},animate:{opacity:i?1:.7,y:0},transition:{delay:.3},children:e.description})]})})]})},e.id)})})}),E&&jsxs(Fragment,{children:[jsxs(Button,{variant:"ghost",size:"icon",className:cn("absolute left-4 top-1/2 -translate-y-1/2 z-20","bg-white/10 backdrop-blur-md hover:bg-white/20","text-white border border-white/20","hidden md:flex"),onClick:f,children:[jsx(ChevronLeft,{className:"h-6 w-6"}),jsx("span",{className:"sr-only",children:"Previous card"})]}),jsxs(Button,{variant:"ghost",size:"icon",className:cn("absolute right-4 top-1/2 -translate-y-1/2 z-20","bg-white/10 backdrop-blur-md hover:bg-white/20","text-white border border-white/20","hidden md:flex"),onClick:c,children:[jsx(ChevronRight,{className:"h-6 w-6"}),jsx("span",{className:"sr-only",children:"Next card"})]})]}),M&&jsx("div",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 z-20 flex gap-2",children:o.map((e,t)=>jsx("button",{className:cn("w-2 h-2 rounded-full transition-all duration-300","bg-white/40 hover:bg-white/60",t===m&&"w-8 bg-white"),onClick:()=>L(t),children:jsxs("span",{className:"sr-only",children:["Go to card ",t+1]})},t))})]})}g(ee,"AppleCardsCarousel");var te={sunset:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",ocean:"linear-gradient(135deg, #667eea 0%, #4ca1af 100%)",fire:"linear-gradient(135deg, #f093fb 0%, #f5576c 100%)",forest:"linear-gradient(135deg, #4facfe 0%, #00f2fe 100%)",galaxy:"linear-gradient(135deg, #7303c0 0%, #ec38bc 50%, #fdeff9 100%)",aurora:"linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%)",peach:"linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%)",lavender:"linear-gradient(135deg, #a8edea 0%, #fed6e3 100%)"};export{ee as AppleCardsCarousel,te as gradientPresets};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var l=require('react'),framerMotion=require('framer-motion'),utils=require('@hanzo/ui/lib/utils'),jsxRuntime=require('react/jsx-runtime');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var l__namespace=/*#__PURE__*/_interopNamespace(l);var m=l__namespace.forwardRef(({className:o,text:i="Hello",duration:a=2,...n},r)=>{let p=i.split("");return jsxRuntime.jsx("div",{ref:r,className:utils.cn("relative flex items-center justify-center text-6xl font-bold",o),...n,children:p.map((s,e)=>jsxRuntime.jsx(framerMotion.motion.span,{initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{duration:a,delay:e*.1,ease:[.215,.61,.355,1]},className:"inline-block",children:s},e))})});m.displayName="AppleHelloEffect";exports.AppleHelloEffect=m;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import*as l from'react';import {motion}from'framer-motion';import {cn}from'@hanzo/ui/lib/utils';import {jsx}from'react/jsx-runtime';var m=l.forwardRef(({className:o,text:i="Hello",duration:a=2,...n},r)=>{let p=i.split("");return jsx("div",{ref:r,className:cn("relative flex items-center justify-center text-6xl font-bold",o),...n,children:p.map((s,e)=>jsx(motion.span,{initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{duration:a,delay:e*.1,ease:[.215,.61,.355,1]},className:"inline-block",children:s},e))})});m.displayName="AppleHelloEffect";export{m as AppleHelloEffect};
|
package/dist/animation/index.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
'use strict';var chunkILMRC36I_js=require('../chunk-ILMRC36I.js'),chunkD6W5YYHP_js=require('../chunk-D6W5YYHP.js'),chunkISSZRFPX_js=require('../chunk-ISSZRFPX.js'),chunkTGAUPMBC_js=require('../chunk-TGAUPMBC.js'),chunkB36534P3_js=require('../chunk-B36534P3.js'),chunk4CJ44NSE_js=require('../chunk-4CJ44NSE.js'),chunk4YMLAU5Z_js=require('../chunk-4YMLAU5Z.js'),chunkF3D72E4E_js=require('../chunk-F3D72E4E.js'),chunkZDOIGP2L_js=require('../chunk-ZDOIGP2L.js'),chunkRNN6AHKF_js=require('../chunk-RNN6AHKF.js');require('../chunk-XUSV3KOD.js');Object.defineProperty(exports,"AnimatedBeam",{enumerable:true,get:function(){return chunkILMRC36I_js.a}});Object.defineProperty(exports,"AnimatedCursor",{enumerable:true,get:function(){return chunkD6W5YYHP_js.a}});Object.defineProperty(exports,"AnimatedIcon",{enumerable:true,get:function(){return chunkISSZRFPX_js.a}});Object.defineProperty(exports,"AnimatedList",{enumerable:true,get:function(){return chunkTGAUPMBC_js.a}});Object.defineProperty(exports,"AnimatedNumber",{enumerable:true,get:function(){return chunkB36534P3_js.a}});Object.defineProperty(exports,"AnimatedTestimonials",{enumerable:true,get:function(){return chunk4CJ44NSE_js.a}});Object.defineProperty(exports,"AnimatedTooltip",{enumerable:true,get:function(){return chunk4YMLAU5Z_js.a}});Object.defineProperty(exports,"AppleCardsCarousel",{enumerable:true,get:function(){return chunkF3D72E4E_js.a}});Object.defineProperty(exports,"gradientPresets",{enumerable:true,get:function(){return chunkF3D72E4E_js.b}});Object.defineProperty(exports,"AppleHelloEffect",{enumerable:true,get:function(){return chunkZDOIGP2L_js.a}});Object.defineProperty(exports,"AnimatedBackground",{enumerable:true,get:function(){return chunkRNN6AHKF_js.a}});
|
|
1
|
+
'use strict';var T=require('react'),react=require('motion/react'),utils$1=require('@/lib/utils'),jsxRuntime=require('react/jsx-runtime'),utils=require('@hanzo/ui/lib/utils'),avatar=require('@hanzo/ui/primitives/avatar'),ui=require('@hanzo/ui'),framerMotion=require('framer-motion'),lucideReact=require('lucide-react');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var T__namespace=/*#__PURE__*/_interopNamespace(T);var Se=Object.defineProperty;var i=(e,n)=>Se(e,"name",{value:n,configurable:true});function $e(){let[e,n]=T.useState(false);return T.useEffect(()=>{if(typeof window>"u")return;let a=window.matchMedia("(prefers-reduced-motion: reduce)");n(a.matches);let o=i(s=>{n(s.matches);},"handleChange");return a.addEventListener("change",o),()=>a.removeEventListener("change",o)},[]),e}i($e,"usePrefersReducedMotion");function Be({colors:e,speed:n,intensity:a,paused:o}){let s=e.length>=2?e:["#ff6b6b","#4ecdc4","#45b7d1","#96ceb4"];return jsxRuntime.jsx(react.motion.div,{className:"absolute inset-0",style:{background:`linear-gradient(-45deg, ${s.join(", ")})`,backgroundSize:"400% 400%"},animate:o?{}:{x:["0%","100%","0%"]},transition:{duration:10/n,repeat:1/0,ease:"linear"}})}i(Be,"GradientBackground");function De({colors:e,speed:n,elementCount:a,intensity:o,paused:s}){let r=T.useMemo(()=>Array.from({length:a},(t,l)=>({id:l,color:e[l%e.length],size:Math.random()*200+100,x:Math.random()*100,y:Math.random()*100,duration:(Math.random()*10+10)/n})),[a,e,n]);return jsxRuntime.jsx("div",{className:"absolute inset-0 overflow-hidden",children:r.map(t=>jsxRuntime.jsx(react.motion.div,{className:"absolute rounded-full",style:{background:`radial-gradient(circle, ${t.color}40, transparent)`,width:t.size*o,height:t.size*o,filter:"blur(40px)"},initial:{x:`${t.x}%`,y:`${t.y}%`},animate:s?{}:{x:[`${t.x}%`,`${(t.x+50)%100}%`,`${t.x}%`],y:[`${t.y}%`,`${(t.y+30)%100}%`,`${t.y}%`],scale:[1,1.2,1]},transition:{duration:t.duration,repeat:1/0,ease:"easeInOut"}},t.id))})}i(De,"BlobBackground");function He({colors:e,speed:n,intensity:a,paused:o}){let s=e[0]||"#4ecdc4";return jsxRuntime.jsx("div",{className:"absolute inset-0 overflow-hidden",children:[0,1,2].map(r=>jsxRuntime.jsx(react.motion.div,{className:"absolute inset-0",style:{background:`radial-gradient(ellipse 100% 50% at center ${50+r*20}%, ${s}${Math.round(30*a).toString(16).padStart(2,"0")}, transparent)`},animate:o?{}:{y:[r*10,r*10+20*a,r*10]},transition:{duration:(3+r)/n,repeat:1/0,ease:"easeInOut"}},r))})}i(He,"WaveBackground");function Fe({colors:e,speed:n,intensity:a,paused:o}){let s=e.length>=4?e.slice(0,4):["#ff6b6b","#4ecdc4","#45b7d1","#96ceb4"];return jsxRuntime.jsx("div",{className:"absolute inset-0 overflow-hidden",children:s.map((r,t)=>jsxRuntime.jsx(react.motion.div,{className:"absolute rounded-full",style:{background:`radial-gradient(circle, ${r}60, transparent)`,width:`${60+t*20}%`,height:`${60+t*20}%`,filter:"blur(60px)",mixBlendMode:"multiply"},initial:{x:`${25+t*15}%`,y:`${25+t*15}%`},animate:o?{}:{x:[`${25+t*15}%`,`${35+t*15}%`,`${25+t*15}%`],y:[`${25+t*15}%`,`${15+t*15}%`,`${25+t*15}%`],rotate:[0,180,360]},transition:{duration:(8+t*2)/n,repeat:1/0,ease:"easeInOut"}},t))})}i(Fe,"MeshBackground");function ze({layers:e,speed:n,paused:a}){let o=react.useMotionValue(0),s=react.useMotionValue(0);return T.useEffect(()=>{let r=i(t=>{let{clientX:l,clientY:d}=t,{innerWidth:c,innerHeight:y}=window;o.set((l/c-.5)*100),s.set((d/y-.5)*100);},"handleMouseMove");return window.addEventListener("mousemove",r),()=>window.removeEventListener("mousemove",r)},[o,s]),jsxRuntime.jsx("div",{className:"absolute inset-0 overflow-hidden",children:e.map((r,t)=>{let l=react.useTransform(o,[-50,50],[-r.speed*10,r.speed*10]),d=react.useTransform(s,[-50,50],[-r.speed*10,r.speed*10]);return jsxRuntime.jsx(react.motion.div,{className:"absolute inset-0",style:{background:`radial-gradient(circle, ${r.color}, transparent)`,opacity:r.opacity,x:a?0:l,y:a?0:d}},t)})})}i(ze,"ParallaxBackground");function Ge({colors:e,speed:n,elementCount:a,intensity:o,paused:s}){let r=T.useMemo(()=>Array.from({length:a},(t,l)=>({id:l,color:e[l%e.length],size:Math.random()*4+2,x:Math.random()*100,y:Math.random()*100,duration:(Math.random()*20+20)/n,delay:Math.random()*5})),[a,e,n]);return jsxRuntime.jsx("div",{className:"absolute inset-0 overflow-hidden",children:r.map(t=>jsxRuntime.jsx(react.motion.div,{className:"absolute rounded-full",style:{backgroundColor:t.color,width:t.size*o,height:t.size*o,opacity:.6},initial:{x:`${t.x}%`,y:`${t.y}%`},animate:s?{}:{y:[`${t.y}%`,`${t.y-100}%`],opacity:[0,.6,0]},transition:{duration:t.duration,repeat:1/0,delay:t.delay,ease:"linear"}},t.id))})}i(Ge,"ParticlesBackground");function We({animation:e="gradient",speed:n=1,colors:a=["#ff6b6b","#4ecdc4","#45b7d1","#96ceb4","#ffeaa7"],paused:o=false,className:s,style:r,children:t,intensity:l=1,blur:d=false,blurAmount:c=20,opacity:y=1,elementCount:k=5,width:g="100%",height:f="100%",fullscreen:M=false,parallaxLayers:v=[{speed:.5,color:"#ff6b6b50",opacity:.3},{speed:1,color:"#4ecdc450",opacity:.4},{speed:1.5,color:"#45b7d150",opacity:.3}]}){let A=$e(),h=o||A,b=T.useMemo(()=>({width:M?"100vw":g,height:M?"100vh":f,opacity:y,filter:d?`blur(${c}px)`:void 0,...r}),[M,g,f,y,d,c,r]),R=i(()=>{let x={colors:a,speed:n,intensity:l,paused:h};switch(e){case "blob":return jsxRuntime.jsx(De,{...x,elementCount:k});case "wave":return jsxRuntime.jsx(He,{...x});case "mesh":return jsxRuntime.jsx(Fe,{...x});case "parallax":return jsxRuntime.jsx(ze,{layers:v,speed:n,paused:h});case "particles":return jsxRuntime.jsx(Ge,{...x,elementCount:k});default:return jsxRuntime.jsx(Be,{...x})}},"renderAnimation");return jsxRuntime.jsxs("div",{className:utils$1.cn("relative overflow-hidden",M&&"fixed inset-0 z-0",s),style:b,children:[R(),t&&jsxRuntime.jsx("div",{className:"relative z-10 h-full w-full",children:t})]})}i(We,"AnimatedBackground");var be=T__namespace.forwardRef(({className:e,duration:n=3,delay:a=0,pathColor:o="gray",pathWidth:s=2,gradientStartColor:r="#18CCFC",gradientStopColor:t="#6344F5",containerRef:l,fromRef:d,toRef:c,...y},k)=>{let[g,f]=T__namespace.useState("");return T__namespace.useEffect(()=>{if(!l?.current||!d?.current||!c?.current)return;let M=i(()=>{let v=l.current.getBoundingClientRect(),A=d.current.getBoundingClientRect(),h=c.current.getBoundingClientRect(),b=A.left-v.left+A.width/2,R=A.top-v.top+A.height/2,x=h.left-v.left+h.width/2,P=h.top-v.top+h.height/2,D=(b+x)/2,L=Math.min(R,P)-50;f(`M ${b} ${R} Q ${D} ${L} ${x} ${P}`);},"updatePath");return M(),window.addEventListener("resize",M),()=>window.removeEventListener("resize",M)},[l,d,c]),jsxRuntime.jsxs("svg",{ref:k,className:utils.cn("pointer-events-none absolute inset-0",e),...y,children:[jsxRuntime.jsx("path",{d:g,stroke:o,strokeWidth:s,fill:"none",strokeOpacity:.2}),jsxRuntime.jsx(react.motion.path,{d:g,stroke:`url(#gradient-${r}-${t})`,strokeWidth:s,fill:"none",initial:{pathLength:0},animate:{pathLength:1},transition:{duration:n,delay:a,ease:"easeInOut",repeat:1/0}}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsxs("linearGradient",{id:`gradient-${r}-${t}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[jsxRuntime.jsx("stop",{offset:"0%",stopColor:r}),jsxRuntime.jsx("stop",{offset:"100%",stopColor:t})]})})]})});be.displayName="AnimatedBeam";var _e=["a","button","input","textarea","select",'[role="button"]','[role="link"]','[tabindex]:not([tabindex="-1"])',".cursor-pointer",'[data-cursor="pointer"]'].join(", "),Ke=['input[type="text"]','input[type="email"]','input[type="password"]','input[type="search"]',"textarea",'[contenteditable="true"]','[data-cursor="text"]'].join(", "),Ye=['[data-cursor="grab"]',".cursor-grab"].join(", "),qe=['[data-cursor="grabbing"]',".cursor-grabbing"].join(", ");function Ze(){return typeof window>"u"?false:"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}i(Ze,"isTouchDevice");function Je(){let[e,n]=T.useState({position:{x:0,y:0},isHovering:false,isClicking:false,cursorType:"default"}),a=T.useCallback((r,t)=>{n(l=>({...l,position:{x:r,y:t}}));},[]),o=T.useCallback((r,t="default")=>{n(l=>({...l,isHovering:r,cursorType:t}));},[]),s=T.useCallback(r=>{n(t=>({...t,isClicking:r}));},[]);return {cursorState:e,updatePosition:a,updateHoverState:o,updateClickState:s}}i(Je,"useCursorState");function et(e,n){let[a,o]=T.useState([]),s=T.useRef([]);return T.useEffect(()=>{s.current.push(n),s.current.length>e&&s.current.shift(),o([...s.current]);},[n,e]),a}i(et,"useCursorTrail");function tt({isVisible:e=true,size:n=20,color:a="#000000",trailColor:o="#00000050",animationDuration:s=200,showTrail:r=true,trailLength:t=8,blendMode:l="normal",hoverScale:d=1.5,hideOnTouch:c=true,className:y,clickAnimationDuration:k=100,zIndex:g=9999}){let{cursorState:f,updatePosition:M,updateHoverState:v,updateClickState:A}=Je(),h=et(t,f.position),[b,R]=T.useState(false),[x,P]=T.useState(false);if(T.useEffect(()=>{R(Ze()),P(true);},[]),T.useEffect(()=>{if(!x||c&&b)return;let m=i(H=>{try{requestAnimationFrame(()=>{M(H.clientX,H.clientY);});}catch(O){console.warn("AnimatedCursor: Error updating position",O);}},"handleMouseMove"),w=i(H=>{try{let O=H.target;O?.closest?.(_e)?v(!0,"pointer"):O?.closest?.(Ke)?v(!0,"text"):O?.closest?.(Ye)?v(!0,"grab"):O?.closest?.(qe)?v(!0,"grabbing"):v(!1,"default");}catch(O){console.warn("AnimatedCursor: Error handling mouse over",O),v(false,"default");}},"handleMouseOver"),I=i(()=>{A(true);},"handleMouseDown"),S=i(()=>{A(false);},"handleMouseUp"),V=i(()=>{v(false,"default");},"handleMouseLeave");return document.addEventListener("mousemove",m),document.addEventListener("mouseover",w),document.addEventListener("mousedown",I),document.addEventListener("mouseup",S),document.addEventListener("mouseleave",V),()=>{document.removeEventListener("mousemove",m),document.removeEventListener("mouseover",w),document.removeEventListener("mousedown",I),document.removeEventListener("mouseup",S),document.removeEventListener("mouseleave",V);}},[x,c,b,M,v,A]),T.useEffect(()=>{if(!(!x||c&&b))try{let m=document.body.style.cursor;return document.body.style.cursor="none",()=>{try{document.body.style.cursor=m;}catch(w){console.warn("AnimatedCursor: Error restoring cursor style",w);}}}catch(m){console.warn("AnimatedCursor: Error hiding cursor",m);}},[x,c,b]),!x||!e||c&&b)return null;let D=f.isHovering?d:1,L=f.isClicking?.8:1,u=D*L,p=i(()=>{switch(f.cursorType){case "text":return "h-6 w-0.5";case "grab":case "grabbing":return "rounded-md";default:return "rounded-full"}},"getCursorShape");return jsxRuntime.jsxs("div",{className:utils.cn("pointer-events-none fixed inset-0",y),children:[r&&h.map((m,w)=>{let I=(w+1)/h.length*.5,S=(w+1)/h.length*.8;return jsxRuntime.jsx("div",{className:"absolute",style:{left:m.x-n/2,top:m.y-n/2,width:n,height:n,backgroundColor:o,borderRadius:"50%",opacity:I,transform:`scale(${S})`,zIndex:g-w-1,mixBlendMode:l}},w)}),jsxRuntime.jsx("div",{className:utils.cn("absolute transition-transform duration-100 ease-out",p()),style:{left:f.position.x-n/2,top:f.position.y-n/2,width:f.cursorType==="text"?2:n,height:f.cursorType==="text"?24:n,backgroundColor:a,transform:`scale(${u})`,transitionDuration:`${s}ms`,zIndex:g,mixBlendMode:l}}),f.isHovering&&f.cursorType!=="text"&&jsxRuntime.jsx("div",{className:"absolute rounded-full border-2 transition-all duration-200 ease-out",style:{left:f.position.x-n*d/2,top:f.position.y-n*d/2,width:n*d,height:n*d,borderColor:a,opacity:.3,zIndex:g-1,mixBlendMode:l}})]})}i(tt,"AnimatedCursor");function it(){let[e,n]=T.useState(false);return T.useEffect(()=>{if(typeof window>"u")return;let a=window.matchMedia("(prefers-reduced-motion: reduce)");n(a.matches);let o=i(s=>{n(s.matches);},"handleChange");return a.addEventListener("change",o),()=>a.removeEventListener("change",o)},[]),e}i(it,"usePrefersReducedMotion");var st={loading:"M12 2v4m0 12v4M4.93 4.93l2.83 2.83m8.48 8.48l2.83 2.83M2 12h4m12 0h4M4.93 19.07l2.83-2.83m8.48-8.48l2.83-2.83",heart:["M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z","M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"],star:"m12 2 3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2Z",hamburger:["M3 12h18M3 6h18M3 18h18","m6 6 12 12M6 18 18 6"],arrow:"M5 12l14 0m-7 -7l7 7l-7 7",check:"m9 12 2 2 4-4",x:"m18 6-12 12M6 6l12 12"},lt={spin:{animate:{rotate:360,transition:{duration:1,repeat:1/0,ease:"linear"}}},pulse:{animate:{scale:[1,1.2,1],transition:{duration:1,repeat:1/0,ease:"easeInOut"}}},bounce:{animate:{y:[0,-10,0],transition:{duration:.6,repeat:1/0,ease:"easeInOut"}}},draw:{initial:{pathLength:0,opacity:0},animate:{pathLength:1,opacity:1,transition:{duration:2,ease:"easeInOut"}}},hover:{whileHover:{scale:1.1,transition:{duration:.2}}}},ct={scale:{scale:1.2},rotate:{rotate:15},glow:{filter:"drop-shadow(0 0 8px currentColor)"},shake:{x:[-2,2,-2,2,0]}},ut={scale:{scale:.9},rotate:{rotate:180},ripple:{scale:[1,1.3,1]}};function dt({paths:e,duration:n,strokeWidth:a=2,autoAnimate:o,repeat:s,onComplete:r}){let[t,l]=T.useState(0);return T.useEffect(()=>{if(!o||e.length<2)return;let d=setInterval(()=>{l(c=>{let y=(c+1)%e.length;return y===0&&!s&&(clearInterval(d),r?.()),y});},n);return ()=>clearInterval(d)},[o,e.length,n,s,r]),jsxRuntime.jsx(react.motion.path,{d:e[t],fill:"none",stroke:"currentColor",strokeWidth:a,strokeLinecap:"round",strokeLinejoin:"round",animate:{d:e[t]},transition:{duration:n/1e3,ease:"easeInOut"}})}i(dt,"MorphingPath");function mt({path:e,duration:n,strokeWidth:a=2,progress:o,autoAnimate:s}){let r=T.useRef(null),[t,l]=T.useState(0);T.useEffect(()=>{if(r.current){let c=r.current.getTotalLength();l(c);}},[e]);let d=o!==void 0?t*o:t;return jsxRuntime.jsx(react.motion.path,{ref:r,d:e,fill:"none",stroke:"currentColor",strokeWidth:a,strokeLinecap:"round",strokeLinejoin:"round",initial:{pathLength:0},animate:s?{pathLength:1}:{pathLength:d/t},transition:{duration:n/1e3,ease:"easeInOut"},style:{strokeDasharray:t,strokeDashoffset:t-d}})}i(mt,"DrawingPath");function pt({size:e,strokeWidth:n=2}){return jsxRuntime.jsx(react.motion.div,{animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"},style:{width:e,height:e},children:jsxRuntime.jsx("svg",{width:"100%",height:"100%",viewBox:"0 0 24 24",fill:"none",children:jsxRuntime.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeDasharray:"60 40",opacity:"0.3"})})})}i(pt,"LoadingSpinner");function ft({icon:e="loading",paths:n,animation:a="spin",size:o=24,color:s="currentColor",duration:r=1e3,autoAnimate:t=true,repeat:l=true,className:d,style:c,onAnimationComplete:y,onClick:k,interactive:g=true,hoverAnimation:f="scale",clickAnimation:M="scale",customVariants:v,viewBox:A="0 0 24 24",strokeWidth:h=2,loading:b=false,progress:R}){let[x,P]=T.useState(false),[D,L]=T.useState(false),u=it(),p=v||lt[a]||{},m=t&&!u,I=i(()=>{if(n)return Array.isArray(n)?n:[n];let C=st[e];return Array.isArray(C)?C:[C]},"getIconPaths")(),S=i(()=>{g&&(L(true),setTimeout(()=>L(false),200),k?.());},"handleClick"),V=i(()=>!g||!x?{}:ct[f]||{},"getHoverVariant"),H=i(()=>!g||!D?{}:ut[M]||{},"getClickVariant");if(b)return jsxRuntime.jsx(pt,{size:o,strokeWidth:h});let O=i(()=>a==="morph"&&I.length>1?jsxRuntime.jsx(dt,{paths:I,duration:r,strokeWidth:h,autoAnimate:m,repeat:l,onComplete:y}):a==="draw"?jsxRuntime.jsx(mt,{path:I[0],duration:r,strokeWidth:h,progress:R,autoAnimate:m}):I.map((C,$)=>jsxRuntime.jsx(react.motion.path,{d:C,fill:e==="heart"?"currentColor":"none",stroke:e==="heart"?"none":"currentColor",strokeWidth:h,strokeLinecap:"round",strokeLinejoin:"round"},$)),"renderIcon");return jsxRuntime.jsx(react.motion.div,{className:utils$1.cn("inline-flex items-center justify-center",g&&"cursor-pointer",d),style:{width:o,height:o,color:s,...c},onClick:S,onMouseEnter:()=>P(true),onMouseLeave:()=>P(false),variants:p,animate:m?"animate":"initial",whileHover:u?{}:V(),whileTap:u?{}:H(),onAnimationComplete:y,children:jsxRuntime.jsx("svg",{width:"100%",height:"100%",viewBox:A,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntime.jsx(react.AnimatePresence,{mode:"wait",children:O()})})})}i(ft,"AnimatedIcon");function gt(){let[e,n]=T.useState(false);return T.useEffect(()=>{if(typeof window>"u")return;let a=window.matchMedia("(prefers-reduced-motion: reduce)");n(a.matches);let o=i(s=>{n(s.matches);},"handleChange");return a.addEventListener("change",o),()=>a.removeEventListener("change",o)},[]),e}i(gt,"usePrefersReducedMotion");var ht={hidden:{opacity:0,x:-50},visible:i(e=>({opacity:1,x:0,transition:{delay:e*.1,duration:.5,ease:"easeOut"}}),"visible"),exit:{opacity:0,x:50,transition:{duration:.3}}},yt={hidden:{opacity:0},visible:i(e=>({opacity:1,transition:{delay:e*.1,duration:.5,ease:"easeOut"}}),"visible"),exit:{opacity:0,transition:{duration:.3}}},vt={hidden:{opacity:0,scale:.8},visible:i(e=>({opacity:1,scale:1,transition:{delay:e*.1,duration:.5,ease:"easeOut",type:"spring",stiffness:100}}),"visible"),exit:{opacity:0,scale:.8,transition:{duration:.3}}},xt={hidden:{opacity:0,y:50},visible:i(e=>({opacity:1,y:0,transition:{delay:e*.1,duration:.5,ease:"easeOut"}}),"visible"),exit:{opacity:0,y:-50,transition:{duration:.3}}},wt={hidden:{opacity:0,y:-50},visible:i(e=>({opacity:1,y:0,transition:{delay:e*.1,duration:.5,ease:"easeOut"}}),"visible"),exit:{opacity:0,y:50,transition:{duration:.3}}},At={hidden:{opacity:0,x:50},visible:i(e=>({opacity:1,x:0,transition:{delay:e*.1,duration:.5,ease:"easeOut"}}),"visible"),exit:{opacity:0,x:-50,transition:{duration:.3}}},Ct={hidden:{opacity:0,x:-50},visible:i(e=>({opacity:1,x:0,transition:{delay:e*.1,duration:.5,ease:"easeOut"}}),"visible"),exit:{opacity:0,x:50,transition:{duration:.3}}},kt={slide:ht,fade:yt,scale:vt,slideUp:xt,slideDown:wt,slideLeft:At,slideRight:Ct};function Mt(e,n,a,o){let[s,r]=T.useState(0),t=T.useMemo(()=>{if(!o)return e;let c=Math.floor(s/a),y=Math.min(c+Math.ceil(n/a)+1,e.length);return e.slice(c,y).map((k,g)=>({...k,virtualIndex:c+g,style:{position:"absolute",top:(c+g)*a,height:a,width:"100%"}}))},[e,s,a,n,o]),l=e.length*a,d=T.useCallback(c=>{r(c.currentTarget.scrollTop);},[]);return {visibleItems:t,totalHeight:l,handleScroll:d}}i(Mt,"useVirtualizedList");function Lt({items:e,animation:n="slideUp",staggerDelay:a=100,duration:o=500,reorderable:s=false,enableAddRemove:r=true,layout:t="vertical",gridColumns:l=3,className:d,itemClassName:c,style:y,onReorder:k,onItemClick:g,showHoverEffects:f=true,customVariants:M,virtualized:v=false,itemHeight:A=60,containerHeight:h=400,autoStart:b=true,onAnimationComplete:R}){let[x,P]=T.useState(e),[D,L]=T.useState(0),u=gt(),p=M||kt[n],m=!u&&b,{visibleItems:w,totalHeight:I,handleScroll:S}=Mt(e,h,A,v);T.useEffect(()=>{P(e);},[e]);let V=T.useMemo(()=>!p.visible||typeof p.visible!="function"?p:{...p,visible:i(C=>{let $=p.visible,te=$(C);return {...te,transition:{...te.transition,delay:C*(a/1e3),duration:o/1e3}}},"visible")},[p,a,o]),H=i(()=>{switch(t){case "horizontal":return "flex flex-row gap-4 overflow-x-auto";case "grid":return `grid gap-4 grid-cols-${l}`;default:return "flex flex-col gap-4"}},"getLayoutClassName"),O=i((C,$,te)=>jsxRuntime.jsx(react.motion.div,{custom:$,variants:V,initial:m?"hidden":"visible",animate:"visible",exit:"exit",layout:r,className:utils$1.cn("cursor-pointer select-none",f&&"hover:scale-105 transition-transform",c),style:te,onClick:()=>g?.(C,$),whileHover:f?{scale:1.02}:void 0,whileTap:f?{scale:.98}:void 0,onAnimationComplete:()=>{$===x.length-1&&R?.();},children:C.content},C.id),"renderListItem");return s&&!v?jsxRuntime.jsx(react.Reorder.Group,{axis:t==="horizontal"?"x":"y",values:x,onReorder:C=>{P(C),k?.(C);},className:utils$1.cn(H(),d),style:y,children:jsxRuntime.jsx(react.AnimatePresence,{mode:"popLayout",children:x.map((C,$)=>jsxRuntime.jsx(react.Reorder.Item,{value:C,className:utils$1.cn("cursor-grab active:cursor-grabbing",c),whileDrag:{scale:1.05,zIndex:10},children:C.content},C.id))})}):v?jsxRuntime.jsx("div",{className:utils$1.cn("overflow-auto",d),style:{height:h,...y},onScroll:S,children:jsxRuntime.jsx("div",{style:{height:I,position:"relative"},children:jsxRuntime.jsx(react.AnimatePresence,{mode:"popLayout",children:w.map((C,$)=>O(C,C.virtualIndex||$,C.style))})})}):jsxRuntime.jsx(react.motion.div,{className:utils$1.cn(H(),d),style:y,initial:"hidden",animate:"visible",children:jsxRuntime.jsx(react.AnimatePresence,{mode:"popLayout",children:x.map((C,$)=>O(C,$))})},D)}i(Lt,"AnimatedList");function Ae(){let[e,n]=T.useState(false);return T.useEffect(()=>{if(typeof window>"u")return;let a=window.matchMedia("(prefers-reduced-motion: reduce)");n(a.matches);let o=i(s=>{n(s.matches);},"handleChange");return a.addEventListener("change",o),()=>a.removeEventListener("change",o)},[]),e}i(Ae,"usePrefersReducedMotion");function Tt(e,n,a,o,s,r,t,l,d,c,y,k){let[g,f]=T.useState(n),[M,v]=T.useState(false),A=T.useRef(null),h=Ae(),b=react.useSpring(n,{stiffness:y.tension||100,damping:y.friction||10,mass:y.mass||1}),[R,x]=T.useState(n),P=T.useCallback(()=>{if(h){f(e);return}if(v(true),c)b.set(e);else {let L=Date.now(),u=g,p=e-u,m=i(()=>{let w=Date.now()-L,I=Math.min(w/a,1),V=u+p*I;f(V),x(V),I<1?A.current=requestAnimationFrame(m):(v(false),A.current=null);},"animate");A.current=requestAnimationFrame(m);}},[e,g,a,c,b,h]);return T.useEffect(()=>()=>{A.current&&cancelAnimationFrame(A.current);},[]),T.useEffect(()=>{if(c){let L=b.onChange(u=>{f(u),Math.abs(u-e)<.01&&v(false);});return ()=>{L();}}},[b,c,e]),T.useEffect(()=>{d&&P();},[d,P]),{formattedValue:T.useMemo(()=>{let L=Math.round(g*Math.pow(10,o))/Math.pow(10,o);try{switch(s){case "currency":return new Intl.NumberFormat(t,{style:"currency",currency:r,minimumFractionDigits:o,maximumFractionDigits:o}).format(L);case "percent":return new Intl.NumberFormat(t,{style:"percent",minimumFractionDigits:o,maximumFractionDigits:o}).format(L/100);default:let u=new Intl.NumberFormat(t,{minimumFractionDigits:o,maximumFractionDigits:o}).format(L);return k&&k!==","&&(u=u.replace(/,/g,k)),u}}catch{return L.toFixed(o)}},[g,o,s,r,t,k]),displayValue:g,isAnimating:M,startAnimation:P}}i(Tt,"useAnimatedNumber");function St({value:e,from:n=0,duration:a=2e3,decimals:o=0,format:s="number",currency:r="USD",locale:t="en-US",easing:l="easeOut",autoStart:d=true,onComplete:c,className:y,style:k,prefix:g="",suffix:f="",useSpring:M=false,springConfig:v={},separator:A,animateOnHover:h=false,hoverValue:b}){let[R,x]=T.useState(false),[P,D]=T.useState(0),L=h&&R&&b!==void 0?b:e,{formattedValue:u,displayValue:p,isAnimating:m,startAnimation:w}=Tt(L,n,a,o,s,r,t,l,d,M,v,A);T.useEffect(()=>{!m&&c&&Math.abs(p-L)<.001&&c(p);},[m,p,L,c]),T.useEffect(()=>{h&&b!==void 0&&w();},[R,h,b,w]);let I=i(()=>{h&&x(true);},"handleMouseEnter"),S=i(()=>{h&&x(false);},"handleMouseLeave"),V=Ae();return jsxRuntime.jsxs(react.motion.span,{className:utils$1.cn("inline-block tabular-nums",y),style:k,onMouseEnter:I,onMouseLeave:S,initial:{scale:1},animate:!V&&m?{scale:[1,1.05,1]}:{scale:1},transition:{duration:.3},children:[g,jsxRuntime.jsx(react.motion.span,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},children:u},P),f]})}i(St,"AnimatedNumber");var ke=T__namespace.forwardRef(({className:e,testimonials:n,autoPlay:a=true,duration:o=5e3,...s},r)=>{let[t,l]=T__namespace.useState(0);return T__namespace.useEffect(()=>{if(!a)return;let d=setInterval(()=>{l(c=>(c+1)%n.length);},o);return ()=>clearInterval(d)},[a,o,n.length]),jsxRuntime.jsxs("div",{ref:r,className:utils.cn("relative min-h-[200px]",e),...s,children:[jsxRuntime.jsx(react.AnimatePresence,{mode:"wait",children:jsxRuntime.jsx(react.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.5},children:jsxRuntime.jsx(ui.Card,{children:jsxRuntime.jsx(ui.CardContent,{className:"pt-6",children:jsxRuntime.jsxs("blockquote",{className:"space-y-4",children:[jsxRuntime.jsxs("p",{className:"text-lg italic",children:['"',n[t].content,'"']}),jsxRuntime.jsxs("footer",{className:"flex items-center gap-4",children:[jsxRuntime.jsxs(avatar.Avatar,{children:[jsxRuntime.jsx(avatar.AvatarImage,{src:n[t].avatar}),jsxRuntime.jsx(avatar.AvatarFallback,{children:n[t].author.slice(0,2).toUpperCase()})]}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("cite",{className:"not-italic font-medium",children:n[t].author}),n[t].role&&jsxRuntime.jsxs("p",{className:"text-sm text-muted-foreground",children:[n[t].role,n[t].company&&`, ${n[t].company}`]})]})]})]})})})},t)}),jsxRuntime.jsx("div",{className:"mt-4 flex justify-center gap-2",children:n.map((d,c)=>jsxRuntime.jsx("button",{onClick:()=>l(c),className:utils.cn("h-2 w-2 rounded-full transition-all",c===t?"w-8 bg-primary":"bg-muted hover:bg-muted-foreground"),"aria-label":`Go to testimonial ${c+1}`},c))})]})});ke.displayName="AnimatedTestimonials";var Re=T__namespace.forwardRef(({className:e,content:n,children:a,delay:o=0,...s},r)=>{let[t,l]=T__namespace.useState(false);return jsxRuntime.jsxs("div",{ref:r,className:utils.cn("relative inline-block",e),onMouseEnter:()=>l(true),onMouseLeave:()=>l(false),...s,children:[a,jsxRuntime.jsx(framerMotion.AnimatePresence,{children:t&&jsxRuntime.jsxs(framerMotion.motion.div,{initial:{opacity:0,y:10,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:10,scale:.95},transition:{duration:.2,delay:o/1e3,ease:"easeOut"},className:"absolute left-1/2 -translate-x-1/2 bottom-full mb-2 px-3 py-1.5 bg-popover text-popover-foreground text-sm rounded-md shadow-md whitespace-nowrap z-50",children:[n,jsxRuntime.jsx("div",{className:"absolute left-1/2 -translate-x-1/2 top-full w-0 h-0 border-l-4 border-r-4 border-t-4 border-l-transparent border-r-transparent border-t-popover"})]})})]})});Re.displayName="AnimatedTooltip";function Zt({cards:e,autoPlay:n=false,autoPlayInterval:a=5e3,className:o,cardClassName:s,showArrows:r=true,showDots:t=true,parallaxOffset:l=50,stackOffset:d=10,stackScale:c=.95,swipeThreshold:y=50}){let[k,g]=T__namespace.useState(0),[f,M]=T__namespace.useState(n),v=T__namespace.useRef(null),A=framerMotion.useMotionValue(0),h=i(u=>{let p=u-k,m=Math.abs(p);if(m>2)return {display:"none",x:0,scale:1,opacity:0,zIndex:0};let I=p*d,S=Math.pow(c,m),V=Math.max(0,1-m*.3),H=e.length-m;return {display:"block",x:I,scale:S,opacity:V,zIndex:H}},"getCardStyle"),b=T__namespace.useCallback(()=>{g(u=>(u+1)%e.length);},[e.length]),R=T__namespace.useCallback(()=>{g(u=>(u-1+e.length)%e.length);},[e.length]),x=T__namespace.useCallback(u=>{g(u);},[]),P=T__namespace.useCallback((u,p)=>{let{offset:m,velocity:w}=p;(Math.abs(m.x)>y||Math.abs(w.x)>500)&&(m.x>0?R():b());},[b,R,y]);T__namespace.useEffect(()=>{if(!f)return;let u=setInterval(b,a);return ()=>clearInterval(u)},[f,b,a]);let D=T__namespace.useCallback(()=>{n&&M(false);},[n]),L=T__namespace.useCallback(()=>{n&&M(true);},[n]);return T__namespace.useEffect(()=>{let u=i(p=>{p.key==="ArrowLeft"?R():p.key==="ArrowRight"&&b();},"handleKeyDown");return window.addEventListener("keydown",u),()=>window.removeEventListener("keydown",u)},[b,R]),jsxRuntime.jsxs("div",{ref:v,className:utils.cn("relative w-full max-w-6xl mx-auto px-4 py-8",o),onMouseEnter:D,onMouseLeave:L,children:[jsxRuntime.jsx("div",{className:"relative h-[400px] md:h-[500px] lg:h-[600px] flex items-center justify-center",children:jsxRuntime.jsx(framerMotion.AnimatePresence,{mode:"popLayout",children:e.map((u,p)=>{let m=h(p),w=p===k;return jsxRuntime.jsx(framerMotion.motion.div,{className:utils.cn("absolute inset-0 w-full h-full",!w&&"pointer-events-none"),initial:false,animate:{x:m.x,scale:m.scale,opacity:m.opacity,zIndex:m.zIndex},transition:{type:"spring",stiffness:300,damping:30},drag:w?"x":false,dragSnapToOrigin:true,dragElastic:.2,onDragEnd:P,whileDrag:{cursor:"grabbing"},style:{x:A,display:m.display},children:jsxRuntime.jsxs(ui.Card,{className:utils.cn("relative w-full h-full overflow-hidden cursor-grab","bg-gradient-to-br from-white to-gray-50 dark:from-gray-900 dark:to-gray-950","shadow-2xl hover:shadow-3xl transition-shadow duration-300",s),style:{background:u.gradient},children:[u.image&&jsxRuntime.jsxs(framerMotion.motion.div,{className:"absolute inset-0 w-full h-full",style:{x:framerMotion.useTransform(A,[-200,0,200],[l,0,-l])},children:[jsxRuntime.jsx("img",{src:u.image,alt:u.title,className:"w-full h-full object-cover"}),jsxRuntime.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 via-black/20 to-transparent"})]}),jsxRuntime.jsx("div",{className:"relative z-10 flex flex-col justify-end h-full p-8 md:p-12",children:u.content?u.content:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(framerMotion.motion.h3,{className:"text-3xl md:text-4xl lg:text-5xl font-bold text-white mb-2",initial:{opacity:0,y:20},animate:{opacity:w?1:.7,y:0},transition:{delay:.1},children:u.title}),u.subtitle&&jsxRuntime.jsx(framerMotion.motion.p,{className:"text-xl md:text-2xl text-white/80 mb-4",initial:{opacity:0,y:20},animate:{opacity:w?1:.7,y:0},transition:{delay:.2},children:u.subtitle}),u.description&&jsxRuntime.jsx(framerMotion.motion.p,{className:"text-base md:text-lg text-white/70 max-w-2xl",initial:{opacity:0,y:20},animate:{opacity:w?1:.7,y:0},transition:{delay:.3},children:u.description})]})})]})},u.id)})})}),r&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs(ui.Button,{variant:"ghost",size:"icon",className:utils.cn("absolute left-4 top-1/2 -translate-y-1/2 z-20","bg-white/10 backdrop-blur-md hover:bg-white/20","text-white border border-white/20","hidden md:flex"),onClick:R,children:[jsxRuntime.jsx(lucideReact.ChevronLeft,{className:"h-6 w-6"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Previous card"})]}),jsxRuntime.jsxs(ui.Button,{variant:"ghost",size:"icon",className:utils.cn("absolute right-4 top-1/2 -translate-y-1/2 z-20","bg-white/10 backdrop-blur-md hover:bg-white/20","text-white border border-white/20","hidden md:flex"),onClick:b,children:[jsxRuntime.jsx(lucideReact.ChevronRight,{className:"h-6 w-6"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Next card"})]})]}),t&&jsxRuntime.jsx("div",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 z-20 flex gap-2",children:e.map((u,p)=>jsxRuntime.jsx("button",{className:utils.cn("w-2 h-2 rounded-full transition-all duration-300","bg-white/40 hover:bg-white/60",p===k&&"w-8 bg-white"),onClick:()=>x(p),children:jsxRuntime.jsxs("span",{className:"sr-only",children:["Go to card ",p+1]})},p))})]})}i(Zt,"AppleCardsCarousel");var Jt={sunset:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",ocean:"linear-gradient(135deg, #667eea 0%, #4ca1af 100%)",fire:"linear-gradient(135deg, #f093fb 0%, #f5576c 100%)",forest:"linear-gradient(135deg, #4facfe 0%, #00f2fe 100%)",galaxy:"linear-gradient(135deg, #7303c0 0%, #ec38bc 50%, #fdeff9 100%)",aurora:"linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%)",peach:"linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%)",lavender:"linear-gradient(135deg, #a8edea 0%, #fed6e3 100%)"};var Te=T__namespace.forwardRef(({className:e,text:n="Hello",duration:a=2,...o},s)=>{let r=n.split("");return jsxRuntime.jsx("div",{ref:s,className:utils.cn("relative flex items-center justify-center text-6xl font-bold",e),...o,children:r.map((t,l)=>jsxRuntime.jsx(framerMotion.motion.span,{initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{duration:a,delay:l*.1,ease:[.215,.61,.355,1]},className:"inline-block",children:t},l))})});Te.displayName="AppleHelloEffect";
|
|
2
|
+
exports.AnimatedBackground=We;exports.AnimatedBeam=be;exports.AnimatedCursor=tt;exports.AnimatedIcon=ft;exports.AnimatedList=Lt;exports.AnimatedNumber=St;exports.AnimatedTestimonials=ke;exports.AnimatedTooltip=Re;exports.AppleCardsCarousel=Zt;exports.AppleHelloEffect=Te;exports.gradientPresets=Jt;
|
package/dist/animation/index.mjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export{a as AnimatedBeam}from'../chunk-WNHSNXIT.mjs';export{a as AnimatedCursor}from'../chunk-G2O6JIRY.mjs';export{a as AnimatedIcon}from'../chunk-GK7TQN2Y.mjs';export{a as AnimatedList}from'../chunk-QKJMVZ7Q.mjs';export{a as AnimatedNumber}from'../chunk-FZWBG7UV.mjs';export{a as AnimatedTestimonials}from'../chunk-2B7NONPA.mjs';export{a as AnimatedTooltip}from'../chunk-DYF5HRXR.mjs';export{a as AppleCardsCarousel,b as gradientPresets}from'../chunk-C64EW4QE.mjs';export{a as AppleHelloEffect}from'../chunk-37TVHMP2.mjs';export{a as AnimatedBackground}from'../chunk-ZB7NJBX4.mjs';import'../chunk-CWFGLK4T.mjs';
|
|
1
|
+
import*as T from'react';import {useMemo,useState,useEffect,useCallback,useRef}from'react';import {motion,AnimatePresence,Reorder,useMotionValue as useMotionValue$1,useTransform as useTransform$1,useSpring}from'motion/react';import {cn as cn$1}from'@/lib/utils';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {cn}from'@hanzo/ui/lib/utils';import {Avatar,AvatarImage,AvatarFallback}from'@hanzo/ui/primitives/avatar';import {Card,CardContent,Button}from'@hanzo/ui';import {AnimatePresence as AnimatePresence$1,motion as motion$1,useMotionValue,useTransform}from'framer-motion';import {ChevronLeft,ChevronRight}from'lucide-react';var Se=Object.defineProperty;var i=(e,n)=>Se(e,"name",{value:n,configurable:true});function $e(){let[e,n]=useState(false);return useEffect(()=>{if(typeof window>"u")return;let a=window.matchMedia("(prefers-reduced-motion: reduce)");n(a.matches);let o=i(s=>{n(s.matches);},"handleChange");return a.addEventListener("change",o),()=>a.removeEventListener("change",o)},[]),e}i($e,"usePrefersReducedMotion");function Be({colors:e,speed:n,intensity:a,paused:o}){let s=e.length>=2?e:["#ff6b6b","#4ecdc4","#45b7d1","#96ceb4"];return jsx(motion.div,{className:"absolute inset-0",style:{background:`linear-gradient(-45deg, ${s.join(", ")})`,backgroundSize:"400% 400%"},animate:o?{}:{x:["0%","100%","0%"]},transition:{duration:10/n,repeat:1/0,ease:"linear"}})}i(Be,"GradientBackground");function De({colors:e,speed:n,elementCount:a,intensity:o,paused:s}){let r=useMemo(()=>Array.from({length:a},(t,l)=>({id:l,color:e[l%e.length],size:Math.random()*200+100,x:Math.random()*100,y:Math.random()*100,duration:(Math.random()*10+10)/n})),[a,e,n]);return jsx("div",{className:"absolute inset-0 overflow-hidden",children:r.map(t=>jsx(motion.div,{className:"absolute rounded-full",style:{background:`radial-gradient(circle, ${t.color}40, transparent)`,width:t.size*o,height:t.size*o,filter:"blur(40px)"},initial:{x:`${t.x}%`,y:`${t.y}%`},animate:s?{}:{x:[`${t.x}%`,`${(t.x+50)%100}%`,`${t.x}%`],y:[`${t.y}%`,`${(t.y+30)%100}%`,`${t.y}%`],scale:[1,1.2,1]},transition:{duration:t.duration,repeat:1/0,ease:"easeInOut"}},t.id))})}i(De,"BlobBackground");function He({colors:e,speed:n,intensity:a,paused:o}){let s=e[0]||"#4ecdc4";return jsx("div",{className:"absolute inset-0 overflow-hidden",children:[0,1,2].map(r=>jsx(motion.div,{className:"absolute inset-0",style:{background:`radial-gradient(ellipse 100% 50% at center ${50+r*20}%, ${s}${Math.round(30*a).toString(16).padStart(2,"0")}, transparent)`},animate:o?{}:{y:[r*10,r*10+20*a,r*10]},transition:{duration:(3+r)/n,repeat:1/0,ease:"easeInOut"}},r))})}i(He,"WaveBackground");function Fe({colors:e,speed:n,intensity:a,paused:o}){let s=e.length>=4?e.slice(0,4):["#ff6b6b","#4ecdc4","#45b7d1","#96ceb4"];return jsx("div",{className:"absolute inset-0 overflow-hidden",children:s.map((r,t)=>jsx(motion.div,{className:"absolute rounded-full",style:{background:`radial-gradient(circle, ${r}60, transparent)`,width:`${60+t*20}%`,height:`${60+t*20}%`,filter:"blur(60px)",mixBlendMode:"multiply"},initial:{x:`${25+t*15}%`,y:`${25+t*15}%`},animate:o?{}:{x:[`${25+t*15}%`,`${35+t*15}%`,`${25+t*15}%`],y:[`${25+t*15}%`,`${15+t*15}%`,`${25+t*15}%`],rotate:[0,180,360]},transition:{duration:(8+t*2)/n,repeat:1/0,ease:"easeInOut"}},t))})}i(Fe,"MeshBackground");function ze({layers:e,speed:n,paused:a}){let o=useMotionValue$1(0),s=useMotionValue$1(0);return useEffect(()=>{let r=i(t=>{let{clientX:l,clientY:d}=t,{innerWidth:c,innerHeight:y}=window;o.set((l/c-.5)*100),s.set((d/y-.5)*100);},"handleMouseMove");return window.addEventListener("mousemove",r),()=>window.removeEventListener("mousemove",r)},[o,s]),jsx("div",{className:"absolute inset-0 overflow-hidden",children:e.map((r,t)=>{let l=useTransform$1(o,[-50,50],[-r.speed*10,r.speed*10]),d=useTransform$1(s,[-50,50],[-r.speed*10,r.speed*10]);return jsx(motion.div,{className:"absolute inset-0",style:{background:`radial-gradient(circle, ${r.color}, transparent)`,opacity:r.opacity,x:a?0:l,y:a?0:d}},t)})})}i(ze,"ParallaxBackground");function Ge({colors:e,speed:n,elementCount:a,intensity:o,paused:s}){let r=useMemo(()=>Array.from({length:a},(t,l)=>({id:l,color:e[l%e.length],size:Math.random()*4+2,x:Math.random()*100,y:Math.random()*100,duration:(Math.random()*20+20)/n,delay:Math.random()*5})),[a,e,n]);return jsx("div",{className:"absolute inset-0 overflow-hidden",children:r.map(t=>jsx(motion.div,{className:"absolute rounded-full",style:{backgroundColor:t.color,width:t.size*o,height:t.size*o,opacity:.6},initial:{x:`${t.x}%`,y:`${t.y}%`},animate:s?{}:{y:[`${t.y}%`,`${t.y-100}%`],opacity:[0,.6,0]},transition:{duration:t.duration,repeat:1/0,delay:t.delay,ease:"linear"}},t.id))})}i(Ge,"ParticlesBackground");function We({animation:e="gradient",speed:n=1,colors:a=["#ff6b6b","#4ecdc4","#45b7d1","#96ceb4","#ffeaa7"],paused:o=false,className:s,style:r,children:t,intensity:l=1,blur:d=false,blurAmount:c=20,opacity:y=1,elementCount:k=5,width:g="100%",height:f="100%",fullscreen:M=false,parallaxLayers:v=[{speed:.5,color:"#ff6b6b50",opacity:.3},{speed:1,color:"#4ecdc450",opacity:.4},{speed:1.5,color:"#45b7d150",opacity:.3}]}){let A=$e(),h=o||A,b=useMemo(()=>({width:M?"100vw":g,height:M?"100vh":f,opacity:y,filter:d?`blur(${c}px)`:void 0,...r}),[M,g,f,y,d,c,r]),R=i(()=>{let x={colors:a,speed:n,intensity:l,paused:h};switch(e){case "blob":return jsx(De,{...x,elementCount:k});case "wave":return jsx(He,{...x});case "mesh":return jsx(Fe,{...x});case "parallax":return jsx(ze,{layers:v,speed:n,paused:h});case "particles":return jsx(Ge,{...x,elementCount:k});default:return jsx(Be,{...x})}},"renderAnimation");return jsxs("div",{className:cn$1("relative overflow-hidden",M&&"fixed inset-0 z-0",s),style:b,children:[R(),t&&jsx("div",{className:"relative z-10 h-full w-full",children:t})]})}i(We,"AnimatedBackground");var be=T.forwardRef(({className:e,duration:n=3,delay:a=0,pathColor:o="gray",pathWidth:s=2,gradientStartColor:r="#18CCFC",gradientStopColor:t="#6344F5",containerRef:l,fromRef:d,toRef:c,...y},k)=>{let[g,f]=T.useState("");return T.useEffect(()=>{if(!l?.current||!d?.current||!c?.current)return;let M=i(()=>{let v=l.current.getBoundingClientRect(),A=d.current.getBoundingClientRect(),h=c.current.getBoundingClientRect(),b=A.left-v.left+A.width/2,R=A.top-v.top+A.height/2,x=h.left-v.left+h.width/2,P=h.top-v.top+h.height/2,D=(b+x)/2,L=Math.min(R,P)-50;f(`M ${b} ${R} Q ${D} ${L} ${x} ${P}`);},"updatePath");return M(),window.addEventListener("resize",M),()=>window.removeEventListener("resize",M)},[l,d,c]),jsxs("svg",{ref:k,className:cn("pointer-events-none absolute inset-0",e),...y,children:[jsx("path",{d:g,stroke:o,strokeWidth:s,fill:"none",strokeOpacity:.2}),jsx(motion.path,{d:g,stroke:`url(#gradient-${r}-${t})`,strokeWidth:s,fill:"none",initial:{pathLength:0},animate:{pathLength:1},transition:{duration:n,delay:a,ease:"easeInOut",repeat:1/0}}),jsx("defs",{children:jsxs("linearGradient",{id:`gradient-${r}-${t}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[jsx("stop",{offset:"0%",stopColor:r}),jsx("stop",{offset:"100%",stopColor:t})]})})]})});be.displayName="AnimatedBeam";var _e=["a","button","input","textarea","select",'[role="button"]','[role="link"]','[tabindex]:not([tabindex="-1"])',".cursor-pointer",'[data-cursor="pointer"]'].join(", "),Ke=['input[type="text"]','input[type="email"]','input[type="password"]','input[type="search"]',"textarea",'[contenteditable="true"]','[data-cursor="text"]'].join(", "),Ye=['[data-cursor="grab"]',".cursor-grab"].join(", "),qe=['[data-cursor="grabbing"]',".cursor-grabbing"].join(", ");function Ze(){return typeof window>"u"?false:"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}i(Ze,"isTouchDevice");function Je(){let[e,n]=useState({position:{x:0,y:0},isHovering:false,isClicking:false,cursorType:"default"}),a=useCallback((r,t)=>{n(l=>({...l,position:{x:r,y:t}}));},[]),o=useCallback((r,t="default")=>{n(l=>({...l,isHovering:r,cursorType:t}));},[]),s=useCallback(r=>{n(t=>({...t,isClicking:r}));},[]);return {cursorState:e,updatePosition:a,updateHoverState:o,updateClickState:s}}i(Je,"useCursorState");function et(e,n){let[a,o]=useState([]),s=useRef([]);return useEffect(()=>{s.current.push(n),s.current.length>e&&s.current.shift(),o([...s.current]);},[n,e]),a}i(et,"useCursorTrail");function tt({isVisible:e=true,size:n=20,color:a="#000000",trailColor:o="#00000050",animationDuration:s=200,showTrail:r=true,trailLength:t=8,blendMode:l="normal",hoverScale:d=1.5,hideOnTouch:c=true,className:y,clickAnimationDuration:k=100,zIndex:g=9999}){let{cursorState:f,updatePosition:M,updateHoverState:v,updateClickState:A}=Je(),h=et(t,f.position),[b,R]=useState(false),[x,P]=useState(false);if(useEffect(()=>{R(Ze()),P(true);},[]),useEffect(()=>{if(!x||c&&b)return;let m=i(H=>{try{requestAnimationFrame(()=>{M(H.clientX,H.clientY);});}catch(O){console.warn("AnimatedCursor: Error updating position",O);}},"handleMouseMove"),w=i(H=>{try{let O=H.target;O?.closest?.(_e)?v(!0,"pointer"):O?.closest?.(Ke)?v(!0,"text"):O?.closest?.(Ye)?v(!0,"grab"):O?.closest?.(qe)?v(!0,"grabbing"):v(!1,"default");}catch(O){console.warn("AnimatedCursor: Error handling mouse over",O),v(false,"default");}},"handleMouseOver"),I=i(()=>{A(true);},"handleMouseDown"),S=i(()=>{A(false);},"handleMouseUp"),V=i(()=>{v(false,"default");},"handleMouseLeave");return document.addEventListener("mousemove",m),document.addEventListener("mouseover",w),document.addEventListener("mousedown",I),document.addEventListener("mouseup",S),document.addEventListener("mouseleave",V),()=>{document.removeEventListener("mousemove",m),document.removeEventListener("mouseover",w),document.removeEventListener("mousedown",I),document.removeEventListener("mouseup",S),document.removeEventListener("mouseleave",V);}},[x,c,b,M,v,A]),useEffect(()=>{if(!(!x||c&&b))try{let m=document.body.style.cursor;return document.body.style.cursor="none",()=>{try{document.body.style.cursor=m;}catch(w){console.warn("AnimatedCursor: Error restoring cursor style",w);}}}catch(m){console.warn("AnimatedCursor: Error hiding cursor",m);}},[x,c,b]),!x||!e||c&&b)return null;let D=f.isHovering?d:1,L=f.isClicking?.8:1,u=D*L,p=i(()=>{switch(f.cursorType){case "text":return "h-6 w-0.5";case "grab":case "grabbing":return "rounded-md";default:return "rounded-full"}},"getCursorShape");return jsxs("div",{className:cn("pointer-events-none fixed inset-0",y),children:[r&&h.map((m,w)=>{let I=(w+1)/h.length*.5,S=(w+1)/h.length*.8;return jsx("div",{className:"absolute",style:{left:m.x-n/2,top:m.y-n/2,width:n,height:n,backgroundColor:o,borderRadius:"50%",opacity:I,transform:`scale(${S})`,zIndex:g-w-1,mixBlendMode:l}},w)}),jsx("div",{className:cn("absolute transition-transform duration-100 ease-out",p()),style:{left:f.position.x-n/2,top:f.position.y-n/2,width:f.cursorType==="text"?2:n,height:f.cursorType==="text"?24:n,backgroundColor:a,transform:`scale(${u})`,transitionDuration:`${s}ms`,zIndex:g,mixBlendMode:l}}),f.isHovering&&f.cursorType!=="text"&&jsx("div",{className:"absolute rounded-full border-2 transition-all duration-200 ease-out",style:{left:f.position.x-n*d/2,top:f.position.y-n*d/2,width:n*d,height:n*d,borderColor:a,opacity:.3,zIndex:g-1,mixBlendMode:l}})]})}i(tt,"AnimatedCursor");function it(){let[e,n]=useState(false);return useEffect(()=>{if(typeof window>"u")return;let a=window.matchMedia("(prefers-reduced-motion: reduce)");n(a.matches);let o=i(s=>{n(s.matches);},"handleChange");return a.addEventListener("change",o),()=>a.removeEventListener("change",o)},[]),e}i(it,"usePrefersReducedMotion");var st={loading:"M12 2v4m0 12v4M4.93 4.93l2.83 2.83m8.48 8.48l2.83 2.83M2 12h4m12 0h4M4.93 19.07l2.83-2.83m8.48-8.48l2.83-2.83",heart:["M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z","M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"],star:"m12 2 3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2Z",hamburger:["M3 12h18M3 6h18M3 18h18","m6 6 12 12M6 18 18 6"],arrow:"M5 12l14 0m-7 -7l7 7l-7 7",check:"m9 12 2 2 4-4",x:"m18 6-12 12M6 6l12 12"},lt={spin:{animate:{rotate:360,transition:{duration:1,repeat:1/0,ease:"linear"}}},pulse:{animate:{scale:[1,1.2,1],transition:{duration:1,repeat:1/0,ease:"easeInOut"}}},bounce:{animate:{y:[0,-10,0],transition:{duration:.6,repeat:1/0,ease:"easeInOut"}}},draw:{initial:{pathLength:0,opacity:0},animate:{pathLength:1,opacity:1,transition:{duration:2,ease:"easeInOut"}}},hover:{whileHover:{scale:1.1,transition:{duration:.2}}}},ct={scale:{scale:1.2},rotate:{rotate:15},glow:{filter:"drop-shadow(0 0 8px currentColor)"},shake:{x:[-2,2,-2,2,0]}},ut={scale:{scale:.9},rotate:{rotate:180},ripple:{scale:[1,1.3,1]}};function dt({paths:e,duration:n,strokeWidth:a=2,autoAnimate:o,repeat:s,onComplete:r}){let[t,l]=useState(0);return useEffect(()=>{if(!o||e.length<2)return;let d=setInterval(()=>{l(c=>{let y=(c+1)%e.length;return y===0&&!s&&(clearInterval(d),r?.()),y});},n);return ()=>clearInterval(d)},[o,e.length,n,s,r]),jsx(motion.path,{d:e[t],fill:"none",stroke:"currentColor",strokeWidth:a,strokeLinecap:"round",strokeLinejoin:"round",animate:{d:e[t]},transition:{duration:n/1e3,ease:"easeInOut"}})}i(dt,"MorphingPath");function mt({path:e,duration:n,strokeWidth:a=2,progress:o,autoAnimate:s}){let r=useRef(null),[t,l]=useState(0);useEffect(()=>{if(r.current){let c=r.current.getTotalLength();l(c);}},[e]);let d=o!==void 0?t*o:t;return jsx(motion.path,{ref:r,d:e,fill:"none",stroke:"currentColor",strokeWidth:a,strokeLinecap:"round",strokeLinejoin:"round",initial:{pathLength:0},animate:s?{pathLength:1}:{pathLength:d/t},transition:{duration:n/1e3,ease:"easeInOut"},style:{strokeDasharray:t,strokeDashoffset:t-d}})}i(mt,"DrawingPath");function pt({size:e,strokeWidth:n=2}){return jsx(motion.div,{animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"},style:{width:e,height:e},children:jsx("svg",{width:"100%",height:"100%",viewBox:"0 0 24 24",fill:"none",children:jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeDasharray:"60 40",opacity:"0.3"})})})}i(pt,"LoadingSpinner");function ft({icon:e="loading",paths:n,animation:a="spin",size:o=24,color:s="currentColor",duration:r=1e3,autoAnimate:t=true,repeat:l=true,className:d,style:c,onAnimationComplete:y,onClick:k,interactive:g=true,hoverAnimation:f="scale",clickAnimation:M="scale",customVariants:v,viewBox:A="0 0 24 24",strokeWidth:h=2,loading:b=false,progress:R}){let[x,P]=useState(false),[D,L]=useState(false),u=it(),p=v||lt[a]||{},m=t&&!u,I=i(()=>{if(n)return Array.isArray(n)?n:[n];let C=st[e];return Array.isArray(C)?C:[C]},"getIconPaths")(),S=i(()=>{g&&(L(true),setTimeout(()=>L(false),200),k?.());},"handleClick"),V=i(()=>!g||!x?{}:ct[f]||{},"getHoverVariant"),H=i(()=>!g||!D?{}:ut[M]||{},"getClickVariant");if(b)return jsx(pt,{size:o,strokeWidth:h});let O=i(()=>a==="morph"&&I.length>1?jsx(dt,{paths:I,duration:r,strokeWidth:h,autoAnimate:m,repeat:l,onComplete:y}):a==="draw"?jsx(mt,{path:I[0],duration:r,strokeWidth:h,progress:R,autoAnimate:m}):I.map((C,$)=>jsx(motion.path,{d:C,fill:e==="heart"?"currentColor":"none",stroke:e==="heart"?"none":"currentColor",strokeWidth:h,strokeLinecap:"round",strokeLinejoin:"round"},$)),"renderIcon");return jsx(motion.div,{className:cn$1("inline-flex items-center justify-center",g&&"cursor-pointer",d),style:{width:o,height:o,color:s,...c},onClick:S,onMouseEnter:()=>P(true),onMouseLeave:()=>P(false),variants:p,animate:m?"animate":"initial",whileHover:u?{}:V(),whileTap:u?{}:H(),onAnimationComplete:y,children:jsx("svg",{width:"100%",height:"100%",viewBox:A,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx(AnimatePresence,{mode:"wait",children:O()})})})}i(ft,"AnimatedIcon");function gt(){let[e,n]=useState(false);return useEffect(()=>{if(typeof window>"u")return;let a=window.matchMedia("(prefers-reduced-motion: reduce)");n(a.matches);let o=i(s=>{n(s.matches);},"handleChange");return a.addEventListener("change",o),()=>a.removeEventListener("change",o)},[]),e}i(gt,"usePrefersReducedMotion");var ht={hidden:{opacity:0,x:-50},visible:i(e=>({opacity:1,x:0,transition:{delay:e*.1,duration:.5,ease:"easeOut"}}),"visible"),exit:{opacity:0,x:50,transition:{duration:.3}}},yt={hidden:{opacity:0},visible:i(e=>({opacity:1,transition:{delay:e*.1,duration:.5,ease:"easeOut"}}),"visible"),exit:{opacity:0,transition:{duration:.3}}},vt={hidden:{opacity:0,scale:.8},visible:i(e=>({opacity:1,scale:1,transition:{delay:e*.1,duration:.5,ease:"easeOut",type:"spring",stiffness:100}}),"visible"),exit:{opacity:0,scale:.8,transition:{duration:.3}}},xt={hidden:{opacity:0,y:50},visible:i(e=>({opacity:1,y:0,transition:{delay:e*.1,duration:.5,ease:"easeOut"}}),"visible"),exit:{opacity:0,y:-50,transition:{duration:.3}}},wt={hidden:{opacity:0,y:-50},visible:i(e=>({opacity:1,y:0,transition:{delay:e*.1,duration:.5,ease:"easeOut"}}),"visible"),exit:{opacity:0,y:50,transition:{duration:.3}}},At={hidden:{opacity:0,x:50},visible:i(e=>({opacity:1,x:0,transition:{delay:e*.1,duration:.5,ease:"easeOut"}}),"visible"),exit:{opacity:0,x:-50,transition:{duration:.3}}},Ct={hidden:{opacity:0,x:-50},visible:i(e=>({opacity:1,x:0,transition:{delay:e*.1,duration:.5,ease:"easeOut"}}),"visible"),exit:{opacity:0,x:50,transition:{duration:.3}}},kt={slide:ht,fade:yt,scale:vt,slideUp:xt,slideDown:wt,slideLeft:At,slideRight:Ct};function Mt(e,n,a,o){let[s,r]=useState(0),t=useMemo(()=>{if(!o)return e;let c=Math.floor(s/a),y=Math.min(c+Math.ceil(n/a)+1,e.length);return e.slice(c,y).map((k,g)=>({...k,virtualIndex:c+g,style:{position:"absolute",top:(c+g)*a,height:a,width:"100%"}}))},[e,s,a,n,o]),l=e.length*a,d=useCallback(c=>{r(c.currentTarget.scrollTop);},[]);return {visibleItems:t,totalHeight:l,handleScroll:d}}i(Mt,"useVirtualizedList");function Lt({items:e,animation:n="slideUp",staggerDelay:a=100,duration:o=500,reorderable:s=false,enableAddRemove:r=true,layout:t="vertical",gridColumns:l=3,className:d,itemClassName:c,style:y,onReorder:k,onItemClick:g,showHoverEffects:f=true,customVariants:M,virtualized:v=false,itemHeight:A=60,containerHeight:h=400,autoStart:b=true,onAnimationComplete:R}){let[x,P]=useState(e),[D,L]=useState(0),u=gt(),p=M||kt[n],m=!u&&b,{visibleItems:w,totalHeight:I,handleScroll:S}=Mt(e,h,A,v);useEffect(()=>{P(e);},[e]);let V=useMemo(()=>!p.visible||typeof p.visible!="function"?p:{...p,visible:i(C=>{let $=p.visible,te=$(C);return {...te,transition:{...te.transition,delay:C*(a/1e3),duration:o/1e3}}},"visible")},[p,a,o]),H=i(()=>{switch(t){case "horizontal":return "flex flex-row gap-4 overflow-x-auto";case "grid":return `grid gap-4 grid-cols-${l}`;default:return "flex flex-col gap-4"}},"getLayoutClassName"),O=i((C,$,te)=>jsx(motion.div,{custom:$,variants:V,initial:m?"hidden":"visible",animate:"visible",exit:"exit",layout:r,className:cn$1("cursor-pointer select-none",f&&"hover:scale-105 transition-transform",c),style:te,onClick:()=>g?.(C,$),whileHover:f?{scale:1.02}:void 0,whileTap:f?{scale:.98}:void 0,onAnimationComplete:()=>{$===x.length-1&&R?.();},children:C.content},C.id),"renderListItem");return s&&!v?jsx(Reorder.Group,{axis:t==="horizontal"?"x":"y",values:x,onReorder:C=>{P(C),k?.(C);},className:cn$1(H(),d),style:y,children:jsx(AnimatePresence,{mode:"popLayout",children:x.map((C,$)=>jsx(Reorder.Item,{value:C,className:cn$1("cursor-grab active:cursor-grabbing",c),whileDrag:{scale:1.05,zIndex:10},children:C.content},C.id))})}):v?jsx("div",{className:cn$1("overflow-auto",d),style:{height:h,...y},onScroll:S,children:jsx("div",{style:{height:I,position:"relative"},children:jsx(AnimatePresence,{mode:"popLayout",children:w.map((C,$)=>O(C,C.virtualIndex||$,C.style))})})}):jsx(motion.div,{className:cn$1(H(),d),style:y,initial:"hidden",animate:"visible",children:jsx(AnimatePresence,{mode:"popLayout",children:x.map((C,$)=>O(C,$))})},D)}i(Lt,"AnimatedList");function Ae(){let[e,n]=useState(false);return useEffect(()=>{if(typeof window>"u")return;let a=window.matchMedia("(prefers-reduced-motion: reduce)");n(a.matches);let o=i(s=>{n(s.matches);},"handleChange");return a.addEventListener("change",o),()=>a.removeEventListener("change",o)},[]),e}i(Ae,"usePrefersReducedMotion");function Tt(e,n,a,o,s,r,t,l,d,c,y,k){let[g,f]=useState(n),[M,v]=useState(false),A=useRef(null),h=Ae(),b=useSpring(n,{stiffness:y.tension||100,damping:y.friction||10,mass:y.mass||1}),[R,x]=useState(n),P=useCallback(()=>{if(h){f(e);return}if(v(true),c)b.set(e);else {let L=Date.now(),u=g,p=e-u,m=i(()=>{let w=Date.now()-L,I=Math.min(w/a,1),V=u+p*I;f(V),x(V),I<1?A.current=requestAnimationFrame(m):(v(false),A.current=null);},"animate");A.current=requestAnimationFrame(m);}},[e,g,a,c,b,h]);return useEffect(()=>()=>{A.current&&cancelAnimationFrame(A.current);},[]),useEffect(()=>{if(c){let L=b.onChange(u=>{f(u),Math.abs(u-e)<.01&&v(false);});return ()=>{L();}}},[b,c,e]),useEffect(()=>{d&&P();},[d,P]),{formattedValue:useMemo(()=>{let L=Math.round(g*Math.pow(10,o))/Math.pow(10,o);try{switch(s){case "currency":return new Intl.NumberFormat(t,{style:"currency",currency:r,minimumFractionDigits:o,maximumFractionDigits:o}).format(L);case "percent":return new Intl.NumberFormat(t,{style:"percent",minimumFractionDigits:o,maximumFractionDigits:o}).format(L/100);default:let u=new Intl.NumberFormat(t,{minimumFractionDigits:o,maximumFractionDigits:o}).format(L);return k&&k!==","&&(u=u.replace(/,/g,k)),u}}catch{return L.toFixed(o)}},[g,o,s,r,t,k]),displayValue:g,isAnimating:M,startAnimation:P}}i(Tt,"useAnimatedNumber");function St({value:e,from:n=0,duration:a=2e3,decimals:o=0,format:s="number",currency:r="USD",locale:t="en-US",easing:l="easeOut",autoStart:d=true,onComplete:c,className:y,style:k,prefix:g="",suffix:f="",useSpring:M=false,springConfig:v={},separator:A,animateOnHover:h=false,hoverValue:b}){let[R,x]=useState(false),[P,D]=useState(0),L=h&&R&&b!==void 0?b:e,{formattedValue:u,displayValue:p,isAnimating:m,startAnimation:w}=Tt(L,n,a,o,s,r,t,l,d,M,v,A);useEffect(()=>{!m&&c&&Math.abs(p-L)<.001&&c(p);},[m,p,L,c]),useEffect(()=>{h&&b!==void 0&&w();},[R,h,b,w]);let I=i(()=>{h&&x(true);},"handleMouseEnter"),S=i(()=>{h&&x(false);},"handleMouseLeave"),V=Ae();return jsxs(motion.span,{className:cn$1("inline-block tabular-nums",y),style:k,onMouseEnter:I,onMouseLeave:S,initial:{scale:1},animate:!V&&m?{scale:[1,1.05,1]}:{scale:1},transition:{duration:.3},children:[g,jsx(motion.span,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},children:u},P),f]})}i(St,"AnimatedNumber");var ke=T.forwardRef(({className:e,testimonials:n,autoPlay:a=true,duration:o=5e3,...s},r)=>{let[t,l]=T.useState(0);return T.useEffect(()=>{if(!a)return;let d=setInterval(()=>{l(c=>(c+1)%n.length);},o);return ()=>clearInterval(d)},[a,o,n.length]),jsxs("div",{ref:r,className:cn("relative min-h-[200px]",e),...s,children:[jsx(AnimatePresence,{mode:"wait",children:jsx(motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.5},children:jsx(Card,{children:jsx(CardContent,{className:"pt-6",children:jsxs("blockquote",{className:"space-y-4",children:[jsxs("p",{className:"text-lg italic",children:['"',n[t].content,'"']}),jsxs("footer",{className:"flex items-center gap-4",children:[jsxs(Avatar,{children:[jsx(AvatarImage,{src:n[t].avatar}),jsx(AvatarFallback,{children:n[t].author.slice(0,2).toUpperCase()})]}),jsxs("div",{children:[jsx("cite",{className:"not-italic font-medium",children:n[t].author}),n[t].role&&jsxs("p",{className:"text-sm text-muted-foreground",children:[n[t].role,n[t].company&&`, ${n[t].company}`]})]})]})]})})})},t)}),jsx("div",{className:"mt-4 flex justify-center gap-2",children:n.map((d,c)=>jsx("button",{onClick:()=>l(c),className:cn("h-2 w-2 rounded-full transition-all",c===t?"w-8 bg-primary":"bg-muted hover:bg-muted-foreground"),"aria-label":`Go to testimonial ${c+1}`},c))})]})});ke.displayName="AnimatedTestimonials";var Re=T.forwardRef(({className:e,content:n,children:a,delay:o=0,...s},r)=>{let[t,l]=T.useState(false);return jsxs("div",{ref:r,className:cn("relative inline-block",e),onMouseEnter:()=>l(true),onMouseLeave:()=>l(false),...s,children:[a,jsx(AnimatePresence$1,{children:t&&jsxs(motion$1.div,{initial:{opacity:0,y:10,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:10,scale:.95},transition:{duration:.2,delay:o/1e3,ease:"easeOut"},className:"absolute left-1/2 -translate-x-1/2 bottom-full mb-2 px-3 py-1.5 bg-popover text-popover-foreground text-sm rounded-md shadow-md whitespace-nowrap z-50",children:[n,jsx("div",{className:"absolute left-1/2 -translate-x-1/2 top-full w-0 h-0 border-l-4 border-r-4 border-t-4 border-l-transparent border-r-transparent border-t-popover"})]})})]})});Re.displayName="AnimatedTooltip";function Zt({cards:e,autoPlay:n=false,autoPlayInterval:a=5e3,className:o,cardClassName:s,showArrows:r=true,showDots:t=true,parallaxOffset:l=50,stackOffset:d=10,stackScale:c=.95,swipeThreshold:y=50}){let[k,g]=T.useState(0),[f,M]=T.useState(n),v=T.useRef(null),A=useMotionValue(0),h=i(u=>{let p=u-k,m=Math.abs(p);if(m>2)return {display:"none",x:0,scale:1,opacity:0,zIndex:0};let I=p*d,S=Math.pow(c,m),V=Math.max(0,1-m*.3),H=e.length-m;return {display:"block",x:I,scale:S,opacity:V,zIndex:H}},"getCardStyle"),b=T.useCallback(()=>{g(u=>(u+1)%e.length);},[e.length]),R=T.useCallback(()=>{g(u=>(u-1+e.length)%e.length);},[e.length]),x=T.useCallback(u=>{g(u);},[]),P=T.useCallback((u,p)=>{let{offset:m,velocity:w}=p;(Math.abs(m.x)>y||Math.abs(w.x)>500)&&(m.x>0?R():b());},[b,R,y]);T.useEffect(()=>{if(!f)return;let u=setInterval(b,a);return ()=>clearInterval(u)},[f,b,a]);let D=T.useCallback(()=>{n&&M(false);},[n]),L=T.useCallback(()=>{n&&M(true);},[n]);return T.useEffect(()=>{let u=i(p=>{p.key==="ArrowLeft"?R():p.key==="ArrowRight"&&b();},"handleKeyDown");return window.addEventListener("keydown",u),()=>window.removeEventListener("keydown",u)},[b,R]),jsxs("div",{ref:v,className:cn("relative w-full max-w-6xl mx-auto px-4 py-8",o),onMouseEnter:D,onMouseLeave:L,children:[jsx("div",{className:"relative h-[400px] md:h-[500px] lg:h-[600px] flex items-center justify-center",children:jsx(AnimatePresence$1,{mode:"popLayout",children:e.map((u,p)=>{let m=h(p),w=p===k;return jsx(motion$1.div,{className:cn("absolute inset-0 w-full h-full",!w&&"pointer-events-none"),initial:false,animate:{x:m.x,scale:m.scale,opacity:m.opacity,zIndex:m.zIndex},transition:{type:"spring",stiffness:300,damping:30},drag:w?"x":false,dragSnapToOrigin:true,dragElastic:.2,onDragEnd:P,whileDrag:{cursor:"grabbing"},style:{x:A,display:m.display},children:jsxs(Card,{className:cn("relative w-full h-full overflow-hidden cursor-grab","bg-gradient-to-br from-white to-gray-50 dark:from-gray-900 dark:to-gray-950","shadow-2xl hover:shadow-3xl transition-shadow duration-300",s),style:{background:u.gradient},children:[u.image&&jsxs(motion$1.div,{className:"absolute inset-0 w-full h-full",style:{x:useTransform(A,[-200,0,200],[l,0,-l])},children:[jsx("img",{src:u.image,alt:u.title,className:"w-full h-full object-cover"}),jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 via-black/20 to-transparent"})]}),jsx("div",{className:"relative z-10 flex flex-col justify-end h-full p-8 md:p-12",children:u.content?u.content:jsxs(Fragment,{children:[jsx(motion$1.h3,{className:"text-3xl md:text-4xl lg:text-5xl font-bold text-white mb-2",initial:{opacity:0,y:20},animate:{opacity:w?1:.7,y:0},transition:{delay:.1},children:u.title}),u.subtitle&&jsx(motion$1.p,{className:"text-xl md:text-2xl text-white/80 mb-4",initial:{opacity:0,y:20},animate:{opacity:w?1:.7,y:0},transition:{delay:.2},children:u.subtitle}),u.description&&jsx(motion$1.p,{className:"text-base md:text-lg text-white/70 max-w-2xl",initial:{opacity:0,y:20},animate:{opacity:w?1:.7,y:0},transition:{delay:.3},children:u.description})]})})]})},u.id)})})}),r&&jsxs(Fragment,{children:[jsxs(Button,{variant:"ghost",size:"icon",className:cn("absolute left-4 top-1/2 -translate-y-1/2 z-20","bg-white/10 backdrop-blur-md hover:bg-white/20","text-white border border-white/20","hidden md:flex"),onClick:R,children:[jsx(ChevronLeft,{className:"h-6 w-6"}),jsx("span",{className:"sr-only",children:"Previous card"})]}),jsxs(Button,{variant:"ghost",size:"icon",className:cn("absolute right-4 top-1/2 -translate-y-1/2 z-20","bg-white/10 backdrop-blur-md hover:bg-white/20","text-white border border-white/20","hidden md:flex"),onClick:b,children:[jsx(ChevronRight,{className:"h-6 w-6"}),jsx("span",{className:"sr-only",children:"Next card"})]})]}),t&&jsx("div",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 z-20 flex gap-2",children:e.map((u,p)=>jsx("button",{className:cn("w-2 h-2 rounded-full transition-all duration-300","bg-white/40 hover:bg-white/60",p===k&&"w-8 bg-white"),onClick:()=>x(p),children:jsxs("span",{className:"sr-only",children:["Go to card ",p+1]})},p))})]})}i(Zt,"AppleCardsCarousel");var Jt={sunset:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",ocean:"linear-gradient(135deg, #667eea 0%, #4ca1af 100%)",fire:"linear-gradient(135deg, #f093fb 0%, #f5576c 100%)",forest:"linear-gradient(135deg, #4facfe 0%, #00f2fe 100%)",galaxy:"linear-gradient(135deg, #7303c0 0%, #ec38bc 50%, #fdeff9 100%)",aurora:"linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%)",peach:"linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%)",lavender:"linear-gradient(135deg, #a8edea 0%, #fed6e3 100%)"};var Te=T.forwardRef(({className:e,text:n="Hello",duration:a=2,...o},s)=>{let r=n.split("");return jsx("div",{ref:s,className:cn("relative flex items-center justify-center text-6xl font-bold",e),...o,children:r.map((t,l)=>jsx(motion$1.span,{initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{duration:a,delay:l*.1,ease:[.215,.61,.355,1]},className:"inline-block",children:t},l))})});Te.displayName="AppleHelloEffect";
|
|
2
|
+
export{We as AnimatedBackground,be as AnimatedBeam,tt as AnimatedCursor,ft as AnimatedIcon,Lt as AnimatedList,St as AnimatedNumber,ke as AnimatedTestimonials,Re as AnimatedTooltip,Zt as AppleCardsCarousel,Te as AppleHelloEffect,Jt as gradientPresets};
|
package/dist/avatar.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var t=require('@radix-ui/react-avatar'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var t__namespace=/*#__PURE__*/_interopNamespace(t);var l=Object.defineProperty;var r=(e,a)=>l(e,"name",{value:a,configurable:true});function i(...e){return tailwindMerge.twMerge(clsx.clsx(e))}r(i,"cn");var s=r(({className:e,ref:a,...o})=>jsxRuntime.jsx(t__namespace.Root,{className:i("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),ref:a,...o}),"Avatar");s.displayName=t__namespace.Root.displayName;var f=r(({className:e,ref:a,...o})=>jsxRuntime.jsx(t__namespace.Image,{className:i("aspect-square h-full w-full",e),ref:a,...o}),"AvatarImage");f.displayName=t__namespace.Image.displayName;var c=r(({className:e,ref:a,...o})=>jsxRuntime.jsx(t__namespace.Fallback,{className:i("bg-muted flex h-full w-full items-center justify-center rounded-full",e),ref:a,...o}),"AvatarFallback");c.displayName=t__namespace.Fallback.displayName;exports.Avatar=s;exports.AvatarFallback=c;exports.AvatarImage=f;
|
package/dist/avatar.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import*as t from'@radix-ui/react-avatar';import {clsx}from'clsx';import {twMerge}from'tailwind-merge';import {jsx}from'react/jsx-runtime';var l=Object.defineProperty;var r=(e,a)=>l(e,"name",{value:a,configurable:true});function i(...e){return twMerge(clsx(e))}r(i,"cn");var s=r(({className:e,ref:a,...o})=>jsx(t.Root,{className:i("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),ref:a,...o}),"Avatar");s.displayName=t.Root.displayName;var f=r(({className:e,ref:a,...o})=>jsx(t.Image,{className:i("aspect-square h-full w-full",e),ref:a,...o}),"AvatarImage");f.displayName=t.Image.displayName;var c=r(({className:e,ref:a,...o})=>jsx(t.Fallback,{className:i("bg-muted flex h-full w-full items-center justify-center rounded-full",e),ref:a,...o}),"AvatarFallback");c.displayName=t.Fallback.displayName;export{s as Avatar,c as AvatarFallback,f as AvatarImage};
|
package/dist/badge.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var
|
|
1
|
+
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var classVarianceAuthority=require('class-variance-authority'),a=require('react'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var a__namespace=/*#__PURE__*/_interopNamespace(a);var i=Object.defineProperty;var t=(e,r)=>i(e,"name",{value:r,configurable:true});function o(...e){return tailwindMerge.twMerge(clsx.clsx(e))}t(o,"cn");var p=classVarianceAuthority.cva("focus:ring-ring border-divider inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:ring-2 focus:ring-offset-2 focus:outline-hidden",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80 border-transparent shadow",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 border-transparent",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/80 border-transparent shadow",outline:"hover:bg-bg-secondary text-text-secondary hover:text-text-default border border-gray-500 bg-transparent shadow-xs",inputAdornment:"bg-gray-600 px-2 font-medium text-white",tags:"text-text-secondary border-divider bg-bg-quaternary rounded-lg px-2 py-1 font-normal capitalize"}},defaultVariants:{variant:"default"}}),n=a__namespace.forwardRef(({className:e,variant:r,...d},s)=>jsxRuntime.jsx("div",{ref:s,className:o(p({variant:r}),e),...d}));n.displayName="Badge";var w=n;exports.Badge=n;exports.badgeVariants=p;exports.default=w;
|
package/dist/badge.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import {cva}from'class-variance-authority';import*as a from'react';import {clsx}from'clsx';import {twMerge}from'tailwind-merge';import {jsx}from'react/jsx-runtime';var i=Object.defineProperty;var t=(e,r)=>i(e,"name",{value:r,configurable:true});function o(...e){return twMerge(clsx(e))}t(o,"cn");var p=cva("focus:ring-ring border-divider inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:ring-2 focus:ring-offset-2 focus:outline-hidden",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80 border-transparent shadow",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 border-transparent",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/80 border-transparent shadow",outline:"hover:bg-bg-secondary text-text-secondary hover:text-text-default border border-gray-500 bg-transparent shadow-xs",inputAdornment:"bg-gray-600 px-2 font-medium text-white",tags:"text-text-secondary border-divider bg-bg-quaternary rounded-lg px-2 py-1 font-normal capitalize"}},defaultVariants:{variant:"default"}}),n=a.forwardRef(({className:e,variant:r,...d},s)=>jsx("div",{ref:s,className:o(p({variant:r}),e),...d}));n.displayName="Badge";var w=n;export{n as Badge,p as badgeVariants,w as default};
|