motion-brew 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +106 -2
- package/dist/account-menu.d.ts +1 -0
- package/dist/account-menu.js +16 -0
- package/dist/action-menu.d.ts +1 -0
- package/dist/action-menu.js +10 -0
- package/dist/activity-grid.d.ts +1 -0
- package/dist/activity-grid.js +14 -0
- package/dist/add-card.d.ts +1 -0
- package/dist/add-card.js +11 -0
- package/dist/amount-slider.d.ts +1 -0
- package/dist/amount-slider.js +10 -0
- package/dist/annotation-text.d.ts +1 -0
- package/dist/annotation-text.js +8 -0
- package/dist/aura-card.d.ts +1 -0
- package/dist/aura-card.js +19 -0
- package/dist/auth-card.d.ts +1 -0
- package/dist/auth-card.js +15 -0
- package/dist/avatar-testimonial.d.ts +1 -0
- package/dist/avatar-testimonial.js +8 -0
- package/dist/backspace-text.d.ts +1 -0
- package/dist/backspace-text.js +8 -0
- package/dist/bell-toggle.d.ts +1 -0
- package/dist/bell-toggle.js +8 -0
- package/dist/bill-list.d.ts +1 -0
- package/dist/bill-list.js +15 -0
- package/dist/binary-text.d.ts +1 -0
- package/dist/binary-text.js +8 -0
- package/dist/blur-accordion.d.ts +1 -0
- package/dist/blur-accordion.js +8 -0
- package/dist/blur-text.d.ts +1 -0
- package/dist/blur-text.js +8 -0
- package/dist/booking-card.d.ts +1 -0
- package/dist/booking-card.js +11 -0
- package/dist/brand-bridge.d.ts +1 -0
- package/dist/brand-bridge.js +12 -0
- package/dist/calendar-agenda.d.ts +1 -0
- package/dist/calendar-agenda.js +12 -0
- package/dist/channel-mix.d.ts +1 -0
- package/dist/channel-mix.js +11 -0
- package/dist/chunk-25254AZA.js +141 -0
- package/dist/chunk-2CIJ5TVW.js +59 -0
- package/dist/chunk-2GXY54MP.js +247 -0
- package/dist/chunk-2IMPUH4H.js +135 -0
- package/dist/chunk-2NRXP4HM.js +371 -0
- package/dist/chunk-2QCWELWT.js +120 -0
- package/dist/chunk-2TQSHVXA.js +12 -0
- package/dist/chunk-327TGRS5.js +75 -0
- package/dist/chunk-3B2RYSTL.js +867 -0
- package/dist/chunk-3RKCLFY5.js +634 -0
- package/dist/chunk-4BVCRIR4.js +51 -0
- package/dist/chunk-4CKKTOJK.js +366 -0
- package/dist/chunk-4IGMH34C.js +319 -0
- package/dist/chunk-4PI6UNIZ.js +464 -0
- package/dist/chunk-4RHQKP2P.js +664 -0
- package/dist/chunk-5IAO5YQA.js +373 -0
- package/dist/chunk-5MP5QNFG.js +560 -0
- package/dist/chunk-62RBYLIN.js +128 -0
- package/dist/chunk-6FTC5OQF.js +384 -0
- package/dist/chunk-6GAKTS3D.js +329 -0
- package/dist/chunk-6GRDT3OE.js +124 -0
- package/dist/chunk-6JQY7AX5.js +307 -0
- package/dist/chunk-6LOUA6XB.js +237 -0
- package/dist/chunk-6V6OTHNE.js +299 -0
- package/dist/chunk-6VZIT62Q.js +142 -0
- package/dist/chunk-6WSY725U.js +387 -0
- package/dist/chunk-6XSJC7M7.js +764 -0
- package/dist/chunk-75DEIDBX.js +129 -0
- package/dist/chunk-7FQ4XU7E.js +127 -0
- package/dist/chunk-7IL5WRJR.js +615 -0
- package/dist/chunk-7MPC3RUE.js +1462 -0
- package/dist/chunk-7PS2W7PU.js +112 -0
- package/dist/chunk-AATJOPNH.js +86 -0
- package/dist/chunk-ADXWPWJR.js +209 -0
- package/dist/chunk-ANNDITUM.js +47 -0
- package/dist/chunk-AQN6BHWC.js +325 -0
- package/dist/chunk-AVOS73MR.js +537 -0
- package/dist/chunk-B4LNE6YK.js +473 -0
- package/dist/chunk-BHUNLG6S.js +142 -0
- package/dist/chunk-BN4MA5UY.js +127 -0
- package/dist/chunk-BPE43MTT.js +183 -0
- package/dist/chunk-BPF3FQRS.js +590 -0
- package/dist/chunk-BRTZFUFR.js +503 -0
- package/dist/chunk-BS4ZFJKW.js +121 -0
- package/dist/chunk-BXAKCY6X.js +86 -0
- package/dist/chunk-CEQ56RF6.js +129 -0
- package/dist/chunk-CGDKH6BB.js +902 -0
- package/dist/chunk-CMTGYFT7.js +395 -0
- package/dist/chunk-DD55JZOI.js +257 -0
- package/dist/chunk-DQUXBNSH.js +412 -0
- package/dist/chunk-DR4DUSNF.js +265 -0
- package/dist/chunk-EDPCK6VU.js +419 -0
- package/dist/chunk-EEQ2WHTN.js +142 -0
- package/dist/chunk-ERVE5RSN.js +793 -0
- package/dist/chunk-FFUBTMDC.js +303 -0
- package/dist/chunk-FK4TZ5OW.js +29 -0
- package/dist/chunk-FXI6NHNR.js +1033 -0
- package/dist/chunk-G3XH7YT2.js +122 -0
- package/dist/chunk-G7KDH7ME.js +559 -0
- package/dist/chunk-GRUDTDLX.js +534 -0
- package/dist/chunk-GUQINNWS.js +770 -0
- package/dist/chunk-GV3Q4D2N.js +320 -0
- package/dist/chunk-GVWOJJ3T.js +129 -0
- package/dist/chunk-H2JOCJWM.js +125 -0
- package/dist/chunk-H7XKIWHA.js +135 -0
- package/dist/chunk-HHXK3NAH.js +1382 -0
- package/dist/chunk-HJINEW5T.js +3289 -0
- package/dist/chunk-HK34LPY6.js +112 -0
- package/dist/chunk-HLJXNSMM.js +320 -0
- package/dist/chunk-HPJJAQ5L.js +406 -0
- package/dist/chunk-HYSXVKZB.js +213 -0
- package/dist/chunk-I45D4XV4.js +124 -0
- package/dist/chunk-I7KTTOOJ.js +113 -0
- package/dist/chunk-IDJOKV6S.js +67 -0
- package/dist/chunk-IGI6OLRX.js +138 -0
- package/dist/chunk-IKM7EEYN.js +117 -0
- package/dist/chunk-INV5FI6O.js +394 -0
- package/dist/chunk-IUBUAIQZ.js +321 -0
- package/dist/chunk-IYZOANPX.js +159 -0
- package/dist/chunk-JFTD3YAL.js +163 -0
- package/dist/chunk-JGEV462J.js +235 -0
- package/dist/chunk-JHT6RCGY.js +127 -0
- package/dist/chunk-JJEWOQYQ.js +141 -0
- package/dist/chunk-JT2EIO5M.js +129 -0
- package/dist/chunk-K3HQEHJ6.js +663 -0
- package/dist/chunk-K6ET254T.js +398 -0
- package/dist/chunk-LBRMNY72.js +159 -0
- package/dist/chunk-LNBTWX4J.js +114 -0
- package/dist/chunk-LS4FP6SI.js +37 -0
- package/dist/chunk-M22UY764.js +135 -0
- package/dist/chunk-M4YMNHPI.js +204 -0
- package/dist/chunk-MGBS5LRY.js +412 -0
- package/dist/chunk-MKJOBHPQ.js +215 -0
- package/dist/chunk-MQDOFNKI.js +818 -0
- package/dist/chunk-MUDKP3LK.js +120 -0
- package/dist/chunk-N4ZNBWKO.js +118 -0
- package/dist/chunk-NB5CB65C.js +137 -0
- package/dist/chunk-NCEAUODT.js +172 -0
- package/dist/chunk-NGX34WJO.js +335 -0
- package/dist/chunk-NIQFSLPC.js +114 -0
- package/dist/chunk-NJWTPRGJ.js +806 -0
- package/dist/chunk-NNKC6NEH.js +128 -0
- package/dist/chunk-NY7M42KC.js +112 -0
- package/dist/chunk-O7G4ISAC.js +277 -0
- package/dist/chunk-O7QYPA6X.js +700 -0
- package/dist/chunk-OEDHLZ4T.js +651 -0
- package/dist/chunk-OGQQ2FZZ.js +114 -0
- package/dist/chunk-OINRQUYT.js +186 -0
- package/dist/chunk-OMJBDFEW.js +506 -0
- package/dist/chunk-ONUWTWKP.js +345 -0
- package/dist/chunk-OS6REIBR.js +154 -0
- package/dist/chunk-OUVP5VKH.js +702 -0
- package/dist/chunk-OVEBMZHA.js +573 -0
- package/dist/chunk-PJ5EVDNN.js +157 -0
- package/dist/chunk-PKM6B4JJ.js +108 -0
- package/dist/chunk-PV3OYTMT.js +596 -0
- package/dist/chunk-RBSLSNMW.js +444 -0
- package/dist/chunk-RE74K7KI.js +370 -0
- package/dist/chunk-RP22J4NX.js +247 -0
- package/dist/chunk-RU2Q2XVP.js +287 -0
- package/dist/chunk-RZ2UCZ3C.js +212 -0
- package/dist/chunk-SBDTC4UY.js +367 -0
- package/dist/chunk-SKEE23KW.js +137 -0
- package/dist/chunk-SOW7S7ET.js +1103 -0
- package/dist/chunk-SQ7F3VBU.js +1069 -0
- package/dist/chunk-SSWKGVRI.js +172 -0
- package/dist/chunk-SVK4MQMV.js +267 -0
- package/dist/chunk-SZAHSOSQ.js +932 -0
- package/dist/chunk-T2TSMDP3.js +1022 -0
- package/dist/chunk-TAFVHTWV.js +607 -0
- package/dist/chunk-TNLY4CSA.js +523 -0
- package/dist/chunk-TP3XIHL5.js +787 -0
- package/dist/chunk-TQ6KSDDE.js +682 -0
- package/dist/chunk-TRWXLGL7.js +885 -0
- package/dist/chunk-TTNORJF5.js +908 -0
- package/dist/chunk-UD5OQ2T3.js +117 -0
- package/dist/chunk-UDFBQWUH.js +333 -0
- package/dist/chunk-USRMXCZD.js +625 -0
- package/dist/chunk-VAPHE4G4.js +442 -0
- package/dist/chunk-VEC5QAOY.js +104 -0
- package/dist/chunk-VIR5NV5W.js +118 -0
- package/dist/chunk-VT2FNWQF.js +240 -0
- package/dist/chunk-VX4XEYQN.js +837 -0
- package/dist/chunk-W46CBUFX.js +425 -0
- package/dist/chunk-WE7VCUOA.js +130 -0
- package/dist/chunk-WFWO2EIW.js +120 -0
- package/dist/chunk-WGIT4MMH.js +350 -0
- package/dist/chunk-WOR2GMMN.js +114 -0
- package/dist/chunk-WTTDB475.js +54 -0
- package/dist/chunk-WWWKMU4Y.js +184 -0
- package/dist/chunk-XDR4FO6Q.js +124 -0
- package/dist/chunk-XH6YNONO.js +112 -0
- package/dist/chunk-XL4L2J6N.js +129 -0
- package/dist/chunk-Y6MTC46Q.js +684 -0
- package/dist/chunk-YFLQ4HPJ.js +119 -0
- package/dist/chunk-YGONLKWH.js +180 -0
- package/dist/chunk-YU6B7YRO.js +128 -0
- package/dist/chunk-YURGXJSP.js +102 -0
- package/dist/chunk-YVYYDPE2.js +124 -0
- package/dist/chunk-ZPGAMYOQ.js +1 -0
- package/dist/chunk-ZWGOAY27.js +234 -0
- package/dist/column-card.d.ts +1 -0
- package/dist/column-card.js +8 -0
- package/dist/components/account-menu/account-menu.d.ts +56 -0
- package/dist/components/account-menu/index.d.ts +1 -0
- package/dist/components/action-menu/action-menu.d.ts +45 -0
- package/dist/components/action-menu/index.d.ts +1 -0
- package/dist/components/activity-grid/activity-grid.d.ts +54 -0
- package/dist/components/activity-grid/index.d.ts +1 -0
- package/dist/components/add-card/add-card.d.ts +41 -0
- package/dist/components/add-card/index.d.ts +1 -0
- package/dist/components/amount-slider/amount-slider.d.ts +43 -0
- package/dist/components/amount-slider/index.d.ts +1 -0
- package/dist/components/annotation-text/annotation-text.d.ts +27 -0
- package/dist/components/annotation-text/index.d.ts +1 -0
- package/dist/components/aura-card/aura-card.d.ts +63 -0
- package/dist/components/aura-card/index.d.ts +1 -0
- package/dist/components/auth-card/auth-card.d.ts +51 -0
- package/dist/components/auth-card/index.d.ts +1 -0
- package/dist/components/avatar-testimonial/avatar-testimonial.d.ts +39 -0
- package/dist/components/avatar-testimonial/index.d.ts +1 -0
- package/dist/components/backspace-text/backspace-text.d.ts +27 -0
- package/dist/components/backspace-text/index.d.ts +1 -0
- package/dist/components/bell-toggle/bell-toggle.d.ts +33 -0
- package/dist/components/bell-toggle/index.d.ts +1 -0
- package/dist/components/bill-list/bill-list.d.ts +49 -0
- package/dist/components/bill-list/index.d.ts +1 -0
- package/dist/components/binary-text/binary-text.d.ts +24 -0
- package/dist/components/binary-text/index.d.ts +1 -0
- package/dist/components/blur-accordion/blur-accordion.d.ts +35 -0
- package/dist/components/blur-accordion/index.d.ts +1 -0
- package/dist/components/blur-text/blur-text.d.ts +33 -0
- package/dist/components/blur-text/index.d.ts +1 -0
- package/dist/components/booking-card/booking-card.d.ts +56 -0
- package/dist/components/booking-card/index.d.ts +1 -0
- package/dist/components/brand-bridge/brand-bridge.d.ts +63 -0
- package/dist/components/brand-bridge/index.d.ts +1 -0
- package/dist/components/calendar-agenda/calendar-agenda.d.ts +64 -0
- package/dist/components/calendar-agenda/index.d.ts +1 -0
- package/dist/components/channel-mix/channel-mix.d.ts +63 -0
- package/dist/components/channel-mix/index.d.ts +1 -0
- package/dist/components/column-card/column-card.d.ts +39 -0
- package/dist/components/column-card/index.d.ts +1 -0
- package/dist/components/contact-card/contact-card.d.ts +44 -0
- package/dist/components/contact-card/index.d.ts +1 -0
- package/dist/components/context-menu/context-menu.d.ts +59 -0
- package/dist/components/context-menu/index.d.ts +1 -0
- package/dist/components/contour-feature-card/contour-feature-card.d.ts +36 -0
- package/dist/components/contour-feature-card/index.d.ts +1 -0
- package/dist/components/contour-lines/contour-lines.d.ts +34 -0
- package/dist/components/contour-lines/index.d.ts +1 -0
- package/dist/components/decay-card/decay-card.d.ts +44 -0
- package/dist/components/decay-card/index.d.ts +1 -0
- package/dist/components/deploy-streak/deploy-streak.d.ts +30 -0
- package/dist/components/deploy-streak/index.d.ts +1 -0
- package/dist/components/depth-carousel/depth-carousel.d.ts +42 -0
- package/dist/components/depth-carousel/index.d.ts +1 -0
- package/dist/components/device-traffic/device-traffic.d.ts +59 -0
- package/dist/components/device-traffic/index.d.ts +1 -0
- package/dist/components/download-button/download-button.d.ts +36 -0
- package/dist/components/download-button/index.d.ts +1 -0
- package/dist/components/event-card/event-card.d.ts +55 -0
- package/dist/components/event-card/index.d.ts +1 -0
- package/dist/components/file-drop/file-drop.d.ts +46 -0
- package/dist/components/file-drop/index.d.ts +1 -0
- package/dist/components/flip-words/flip-words.d.ts +26 -0
- package/dist/components/flip-words/index.d.ts +1 -0
- package/dist/components/flux-card/flux-card.d.ts +56 -0
- package/dist/components/flux-card/index.d.ts +1 -0
- package/dist/components/fuse-button/fuse-button.d.ts +75 -0
- package/dist/components/fuse-button/index.d.ts +1 -0
- package/dist/components/globe-card/globe-card.d.ts +46 -0
- package/dist/components/globe-card/index.d.ts +1 -0
- package/dist/components/goal-gauge/goal-gauge.d.ts +47 -0
- package/dist/components/goal-gauge/index.d.ts +1 -0
- package/dist/components/gradient-card/gradient-card.d.ts +56 -0
- package/dist/components/gradient-card/index.d.ts +1 -0
- package/dist/components/gradient-text/gradient-text.d.ts +22 -0
- package/dist/components/gradient-text/index.d.ts +1 -0
- package/dist/components/gravity-tag-pile/gravity-tag-pile.d.ts +69 -0
- package/dist/components/gravity-tag-pile/index.d.ts +1 -0
- package/dist/components/growth-stream/growth-stream.d.ts +47 -0
- package/dist/components/growth-stream/index.d.ts +1 -0
- package/dist/components/highlight-text/highlight-text.d.ts +22 -0
- package/dist/components/highlight-text/index.d.ts +1 -0
- package/dist/components/hold-to-confirm/hold-to-confirm.d.ts +32 -0
- package/dist/components/hold-to-confirm/index.d.ts +1 -0
- package/dist/components/infinite-gallery/index.d.ts +1 -0
- package/dist/components/infinite-gallery/infinite-gallery.d.ts +73 -0
- package/dist/components/integration-hub/index.d.ts +1 -0
- package/dist/components/integration-hub/integration-hub.d.ts +40 -0
- package/dist/components/liquid-card/index.d.ts +1 -0
- package/dist/components/liquid-card/liquid-card.d.ts +66 -0
- package/dist/components/liquid-metal-card/index.d.ts +1 -0
- package/dist/components/liquid-metal-card/liquid-metal-card.d.ts +45 -0
- package/dist/components/liquid-tabs/index.d.ts +1 -0
- package/dist/components/liquid-tabs/liquid-tabs.d.ts +47 -0
- package/dist/components/magnetic-button/index.d.ts +1 -0
- package/dist/components/magnetic-button/magnetic-button.d.ts +46 -0
- package/dist/components/magnetic-flow/index.d.ts +1 -0
- package/dist/components/magnetic-flow/magnetic-flow.d.ts +35 -0
- package/dist/components/message-composer/index.d.ts +1 -0
- package/dist/components/message-composer/message-composer.d.ts +79 -0
- package/dist/components/metal-card-stack/index.d.ts +1 -0
- package/dist/components/metal-card-stack/metal-card-stack.d.ts +49 -0
- package/dist/components/metric-split/index.d.ts +1 -0
- package/dist/components/metric-split/metric-split.d.ts +45 -0
- package/dist/components/mix-chart/index.d.ts +1 -0
- package/dist/components/mix-chart/mix-chart.d.ts +59 -0
- package/dist/components/month-calendar/index.d.ts +1 -0
- package/dist/components/month-calendar/month-calendar.d.ts +34 -0
- package/dist/components/morph-search/index.d.ts +1 -0
- package/dist/components/morph-search/morph-search.d.ts +33 -0
- package/dist/components/orbit-card/index.d.ts +1 -0
- package/dist/components/orbit-card/orbit-card.d.ts +50 -0
- package/dist/components/otp-code/index.d.ts +1 -0
- package/dist/components/otp-code/otp-code.d.ts +61 -0
- package/dist/components/particle-card/index.d.ts +1 -0
- package/dist/components/particle-card/particle-card.d.ts +57 -0
- package/dist/components/payment-form/index.d.ts +1 -0
- package/dist/components/payment-form/payment-form.d.ts +54 -0
- package/dist/components/pill-tabs/index.d.ts +1 -0
- package/dist/components/pill-tabs/pill-tabs.d.ts +39 -0
- package/dist/components/pixel-blast/index.d.ts +1 -0
- package/dist/components/pixel-blast/pixel-blast.d.ts +41 -0
- package/dist/components/pixel-feature-card/index.d.ts +1 -0
- package/dist/components/pixel-feature-card/pixel-feature-card.d.ts +43 -0
- package/dist/components/pixel-scroll/index.d.ts +1 -0
- package/dist/components/pixel-scroll/pixel-scroll.d.ts +64 -0
- package/dist/components/pricing-card/index.d.ts +1 -0
- package/dist/components/pricing-card/pricing-card.d.ts +60 -0
- package/dist/components/prism-carousel/index.d.ts +1 -0
- package/dist/components/prism-carousel/prism-carousel.d.ts +54 -0
- package/dist/components/prism-flow/index.d.ts +1 -0
- package/dist/components/prism-flow/prism-flow.d.ts +41 -0
- package/dist/components/privacy-banner/index.d.ts +1 -0
- package/dist/components/privacy-banner/privacy-banner.d.ts +41 -0
- package/dist/components/profile-card/index.d.ts +1 -0
- package/dist/components/profile-card/profile-card.d.ts +52 -0
- package/dist/components/profile-menu/index.d.ts +1 -0
- package/dist/components/profile-menu/profile-menu.d.ts +43 -0
- package/dist/components/project-index/index.d.ts +1 -0
- package/dist/components/project-index/project-index.d.ts +65 -0
- package/dist/components/prompt-input/index.d.ts +1 -0
- package/dist/components/prompt-input/prompt-input.d.ts +49 -0
- package/dist/components/quota-gauge/index.d.ts +1 -0
- package/dist/components/quota-gauge/quota-gauge.d.ts +30 -0
- package/dist/components/range-chart/index.d.ts +1 -0
- package/dist/components/range-chart/range-chart.d.ts +47 -0
- package/dist/components/reaction-card/index.d.ts +1 -0
- package/dist/components/reaction-card/reaction-card.d.ts +60 -0
- package/dist/components/recap-card/index.d.ts +1 -0
- package/dist/components/recap-card/recap-card.d.ts +61 -0
- package/dist/components/receipt-button/index.d.ts +1 -0
- package/dist/components/receipt-button/receipt-button.d.ts +53 -0
- package/dist/components/ribbon-gallery/index.d.ts +1 -0
- package/dist/components/ribbon-gallery/ribbon-gallery.d.ts +61 -0
- package/dist/components/roadmap-card/index.d.ts +1 -0
- package/dist/components/roadmap-card/roadmap-card.d.ts +38 -0
- package/dist/components/rolling-card-stack/index.d.ts +1 -0
- package/dist/components/rolling-card-stack/rolling-card-stack.d.ts +53 -0
- package/dist/components/rolling-stepper/index.d.ts +1 -0
- package/dist/components/rolling-stepper/rolling-stepper.d.ts +33 -0
- package/dist/components/rotating-text/index.d.ts +1 -0
- package/dist/components/rotating-text/rotating-text.d.ts +25 -0
- package/dist/components/score-card/index.d.ts +1 -0
- package/dist/components/score-card/score-card.d.ts +40 -0
- package/dist/components/search-modal/index.d.ts +1 -0
- package/dist/components/search-modal/search-modal.d.ts +62 -0
- package/dist/components/shimmer-text/index.d.ts +1 -0
- package/dist/components/shimmer-text/shimmer-text.d.ts +22 -0
- package/dist/components/sidebar-nav/index.d.ts +1 -0
- package/dist/components/sidebar-nav/sidebar-nav.d.ts +71 -0
- package/dist/components/slide-commit/index.d.ts +1 -0
- package/dist/components/slide-commit/slide-commit.d.ts +39 -0
- package/dist/components/spatial-gallery/index.d.ts +1 -0
- package/dist/components/spatial-gallery/spatial-gallery.d.ts +88 -0
- package/dist/components/spending-meter/index.d.ts +1 -0
- package/dist/components/spending-meter/spending-meter.d.ts +41 -0
- package/dist/components/tab-bar/index.d.ts +1 -0
- package/dist/components/tab-bar/tab-bar.d.ts +44 -0
- package/dist/components/team-member-card/index.d.ts +1 -0
- package/dist/components/team-member-card/team-member-card.d.ts +66 -0
- package/dist/components/team-morph/index.d.ts +1 -0
- package/dist/components/team-morph/team-morph.d.ts +38 -0
- package/dist/components/tilt-card/index.d.ts +1 -0
- package/dist/components/tilt-card/tilt-card.d.ts +27 -0
- package/dist/components/tilt-carousel/index.d.ts +1 -0
- package/dist/components/tilt-carousel/tilt-carousel.d.ts +43 -0
- package/dist/components/toast-stack/index.d.ts +1 -0
- package/dist/components/toast-stack/toast-stack.d.ts +57 -0
- package/dist/components/usage-ring/index.d.ts +1 -0
- package/dist/components/usage-ring/usage-ring.d.ts +40 -0
- package/dist/components/verify-flow/index.d.ts +1 -0
- package/dist/components/verify-flow/verify-flow.d.ts +49 -0
- package/dist/components/voice-prompt/index.d.ts +1 -0
- package/dist/components/voice-prompt/voice-prompt.d.ts +55 -0
- package/dist/components/wallet-card/index.d.ts +1 -0
- package/dist/components/wallet-card/wallet-card.d.ts +54 -0
- package/dist/components/wave-text/index.d.ts +1 -0
- package/dist/components/wave-text/wave-text.d.ts +27 -0
- package/dist/contact-card.d.ts +1 -0
- package/dist/contact-card.js +12 -0
- package/dist/context-menu.d.ts +1 -0
- package/dist/context-menu.js +17 -0
- package/dist/contour-feature-card.d.ts +1 -0
- package/dist/contour-feature-card.js +9 -0
- package/dist/contour-lines.d.ts +1 -0
- package/dist/contour-lines.js +8 -0
- package/dist/decay-card.d.ts +1 -0
- package/dist/decay-card.js +8 -0
- package/dist/deploy-streak.d.ts +1 -0
- package/dist/deploy-streak.js +9 -0
- package/dist/depth-carousel.d.ts +1 -0
- package/dist/depth-carousel.js +8 -0
- package/dist/device-traffic.d.ts +1 -0
- package/dist/device-traffic.js +12 -0
- package/dist/download-button.d.ts +1 -0
- package/dist/download-button.js +8 -0
- package/dist/event-card.d.ts +1 -0
- package/dist/event-card.js +12 -0
- package/dist/file-drop.d.ts +1 -0
- package/dist/file-drop.js +12 -0
- package/dist/flip-words.d.ts +1 -0
- package/dist/flip-words.js +8 -0
- package/dist/flux-card.d.ts +1 -0
- package/dist/flux-card.js +13 -0
- package/dist/fuse-button.d.ts +1 -0
- package/dist/fuse-button.js +9 -0
- package/dist/globe-card.d.ts +1 -0
- package/dist/globe-card.js +8 -0
- package/dist/goal-gauge.d.ts +1 -0
- package/dist/goal-gauge.js +9 -0
- package/dist/gradient-card.d.ts +1 -0
- package/dist/gradient-card.js +8 -0
- package/dist/gradient-text.d.ts +1 -0
- package/dist/gradient-text.js +8 -0
- package/dist/gravity-tag-pile.d.ts +1 -0
- package/dist/gravity-tag-pile.js +9 -0
- package/dist/growth-stream.d.ts +1 -0
- package/dist/growth-stream.js +10 -0
- package/dist/highlight-text.d.ts +1 -0
- package/dist/highlight-text.js +8 -0
- package/dist/hold-to-confirm.d.ts +1 -0
- package/dist/hold-to-confirm.js +8 -0
- package/dist/icons/activity.d.ts +15 -0
- package/dist/icons/archive.d.ts +15 -0
- package/dist/icons/arrow-down-right.d.ts +15 -0
- package/dist/icons/arrow-down.d.ts +15 -0
- package/dist/icons/arrow-right.d.ts +15 -0
- package/dist/icons/arrow-up-right.d.ts +15 -0
- package/dist/icons/arrow-up.d.ts +15 -0
- package/dist/icons/at-sign.d.ts +15 -0
- package/dist/icons/attach-file.d.ts +15 -0
- package/dist/icons/badge-alert.d.ts +15 -0
- package/dist/icons/bell.d.ts +15 -0
- package/dist/icons/bold.d.ts +15 -0
- package/dist/icons/bookmark.d.ts +15 -0
- package/dist/icons/bot.d.ts +15 -0
- package/dist/icons/calendar-check-2.d.ts +15 -0
- package/dist/icons/calendar-check.d.ts +15 -0
- package/dist/icons/calendar-days.d.ts +15 -0
- package/dist/icons/chart-line.d.ts +15 -0
- package/dist/icons/chart-pie.d.ts +15 -0
- package/dist/icons/check.d.ts +15 -0
- package/dist/icons/chevron-down.d.ts +15 -0
- package/dist/icons/chevron-left.d.ts +15 -0
- package/dist/icons/chevron-right.d.ts +15 -0
- package/dist/icons/circle-check.d.ts +15 -0
- package/dist/icons/circle-dollar-sign.d.ts +15 -0
- package/dist/icons/clipboard-check.d.ts +15 -0
- package/dist/icons/clock.d.ts +15 -0
- package/dist/icons/cloud-upload.d.ts +15 -0
- package/dist/icons/compass.d.ts +15 -0
- package/dist/icons/contrast.d.ts +15 -0
- package/dist/icons/copy.d.ts +15 -0
- package/dist/icons/credit-card.d.ts +15 -0
- package/dist/icons/delete.d.ts +15 -0
- package/dist/icons/download.d.ts +15 -0
- package/dist/icons/dribbble.d.ts +15 -0
- package/dist/icons/earth.d.ts +15 -0
- package/dist/icons/eye-off.d.ts +15 -0
- package/dist/icons/eye.d.ts +15 -0
- package/dist/icons/feather.d.ts +15 -0
- package/dist/icons/figma.d.ts +15 -0
- package/dist/icons/file-text.d.ts +16 -0
- package/dist/icons/flame.d.ts +15 -0
- package/dist/icons/folder-input.d.ts +15 -0
- package/dist/icons/folder-open.d.ts +15 -0
- package/dist/icons/folders.d.ts +15 -0
- package/dist/icons/github.d.ts +15 -0
- package/dist/icons/hand-coins.d.ts +15 -0
- package/dist/icons/heart.d.ts +15 -0
- package/dist/icons/history.d.ts +15 -0
- package/dist/icons/home.d.ts +15 -0
- package/dist/icons/hourglass.d.ts +15 -0
- package/dist/icons/instagram.d.ts +15 -0
- package/dist/icons/italic.d.ts +15 -0
- package/dist/icons/layout-grid.d.ts +15 -0
- package/dist/icons/link.d.ts +15 -0
- package/dist/icons/linkedin.d.ts +15 -0
- package/dist/icons/loader-circle.d.ts +15 -0
- package/dist/icons/lock-keyhole-open.d.ts +15 -0
- package/dist/icons/lock-keyhole.d.ts +15 -0
- package/dist/icons/lock.d.ts +15 -0
- package/dist/icons/logout.d.ts +15 -0
- package/dist/icons/mail-check.d.ts +15 -0
- package/dist/icons/map-pin.d.ts +15 -0
- package/dist/icons/message-circle.d.ts +15 -0
- package/dist/icons/mic.d.ts +15 -0
- package/dist/icons/monitor-check.d.ts +15 -0
- package/dist/icons/moon.d.ts +15 -0
- package/dist/icons/palette.d.ts +15 -0
- package/dist/icons/panel-left-close.d.ts +15 -0
- package/dist/icons/panel-left-open.d.ts +15 -0
- package/dist/icons/plug-zap.d.ts +15 -0
- package/dist/icons/plus.d.ts +15 -0
- package/dist/icons/radio.d.ts +15 -0
- package/dist/icons/receipt.d.ts +15 -0
- package/dist/icons/refresh-cw.d.ts +15 -0
- package/dist/icons/rotate-ccw.d.ts +15 -0
- package/dist/icons/search.d.ts +15 -0
- package/dist/icons/send.d.ts +15 -0
- package/dist/icons/settings.d.ts +15 -0
- package/dist/icons/shield-check.d.ts +15 -0
- package/dist/icons/smartphone-nfc.d.ts +15 -0
- package/dist/icons/smile.d.ts +15 -0
- package/dist/icons/sparkles.d.ts +15 -0
- package/dist/icons/square-pen.d.ts +15 -0
- package/dist/icons/sun.d.ts +15 -0
- package/dist/icons/terminal.d.ts +15 -0
- package/dist/icons/timer.d.ts +15 -0
- package/dist/icons/trending-up.d.ts +15 -0
- package/dist/icons/twitter.d.ts +15 -0
- package/dist/icons/underline.d.ts +15 -0
- package/dist/icons/undo.d.ts +15 -0
- package/dist/icons/user-check.d.ts +15 -0
- package/dist/icons/user-plus.d.ts +15 -0
- package/dist/icons/user-round-plus.d.ts +15 -0
- package/dist/icons/user.d.ts +15 -0
- package/dist/icons/users.d.ts +15 -0
- package/dist/icons/wifi.d.ts +15 -0
- package/dist/icons/workflow.d.ts +15 -0
- package/dist/icons/x.d.ts +15 -0
- package/dist/icons/zap.d.ts +15 -0
- package/dist/index.d.ts +100 -0
- package/dist/index.js +472 -0
- package/dist/infinite-gallery.d.ts +1 -0
- package/dist/infinite-gallery.js +9 -0
- package/dist/integration-hub.d.ts +1 -0
- package/dist/integration-hub.js +8 -0
- package/dist/lib/cn.d.ts +3 -0
- package/dist/liquid-card.d.ts +1 -0
- package/dist/liquid-card.js +10 -0
- package/dist/liquid-metal-card.d.ts +1 -0
- package/dist/liquid-metal-card.js +8 -0
- package/dist/liquid-tabs.d.ts +1 -0
- package/dist/liquid-tabs.js +14 -0
- package/dist/magnetic-button.d.ts +1 -0
- package/dist/magnetic-button.js +8 -0
- package/dist/magnetic-flow.d.ts +1 -0
- package/dist/magnetic-flow.js +8 -0
- package/dist/message-composer.d.ts +1 -0
- package/dist/message-composer.js +20 -0
- package/dist/metal-card-stack.d.ts +1 -0
- package/dist/metal-card-stack.js +8 -0
- package/dist/metric-split.d.ts +1 -0
- package/dist/metric-split.js +9 -0
- package/dist/mix-chart.d.ts +1 -0
- package/dist/mix-chart.js +9 -0
- package/dist/month-calendar.d.ts +1 -0
- package/dist/month-calendar.js +10 -0
- package/dist/morph-search.d.ts +1 -0
- package/dist/morph-search.js +10 -0
- package/dist/orbit-card.d.ts +1 -0
- package/dist/orbit-card.js +8 -0
- package/dist/otp-code.d.ts +1 -0
- package/dist/otp-code.js +17 -0
- package/dist/particle-card.d.ts +1 -0
- package/dist/particle-card.js +8 -0
- package/dist/payment-form.d.ts +1 -0
- package/dist/payment-form.js +8 -0
- package/dist/pill-tabs.d.ts +1 -0
- package/dist/pill-tabs.js +9 -0
- package/dist/pixel-blast.d.ts +1 -0
- package/dist/pixel-blast.js +8 -0
- package/dist/pixel-feature-card.d.ts +1 -0
- package/dist/pixel-feature-card.js +9 -0
- package/dist/pixel-scroll.d.ts +1 -0
- package/dist/pixel-scroll.js +8 -0
- package/dist/pricing-card.d.ts +1 -0
- package/dist/pricing-card.js +14 -0
- package/dist/prism-carousel.d.ts +1 -0
- package/dist/prism-carousel.js +8 -0
- package/dist/prism-flow.d.ts +1 -0
- package/dist/prism-flow.js +8 -0
- package/dist/privacy-banner.d.ts +1 -0
- package/dist/privacy-banner.js +8 -0
- package/dist/profile-card.d.ts +1 -0
- package/dist/profile-card.js +14 -0
- package/dist/profile-menu.d.ts +1 -0
- package/dist/profile-menu.js +21 -0
- package/dist/project-index.d.ts +1 -0
- package/dist/project-index.js +9 -0
- package/dist/prompt-input.d.ts +1 -0
- package/dist/prompt-input.js +14 -0
- package/dist/quota-gauge.d.ts +1 -0
- package/dist/quota-gauge.js +9 -0
- package/dist/range-chart.d.ts +1 -0
- package/dist/range-chart.js +8 -0
- package/dist/reaction-card.d.ts +1 -0
- package/dist/reaction-card.js +8 -0
- package/dist/recap-card.d.ts +1 -0
- package/dist/recap-card.js +15 -0
- package/dist/receipt-button.d.ts +1 -0
- package/dist/receipt-button.js +8 -0
- package/dist/ribbon-gallery.d.ts +1 -0
- package/dist/ribbon-gallery.js +8 -0
- package/dist/roadmap-card.d.ts +1 -0
- package/dist/roadmap-card.js +11 -0
- package/dist/rolling-card-stack.d.ts +1 -0
- package/dist/rolling-card-stack.js +8 -0
- package/dist/rolling-stepper.d.ts +1 -0
- package/dist/rolling-stepper.js +8 -0
- package/dist/rotating-text.d.ts +1 -0
- package/dist/rotating-text.js +9 -0
- package/dist/score-card.d.ts +1 -0
- package/dist/score-card.js +10 -0
- package/dist/search-modal.d.ts +1 -0
- package/dist/search-modal.js +16 -0
- package/dist/shimmer-text.d.ts +1 -0
- package/dist/shimmer-text.js +8 -0
- package/dist/sidebar-nav.d.ts +1 -0
- package/dist/sidebar-nav.js +19 -0
- package/dist/slide-commit.d.ts +1 -0
- package/dist/slide-commit.js +9 -0
- package/dist/spatial-gallery.d.ts +1 -0
- package/dist/spatial-gallery.js +8 -0
- package/dist/spending-meter.d.ts +1 -0
- package/dist/spending-meter.js +9 -0
- package/dist/tab-bar.d.ts +1 -0
- package/dist/tab-bar.js +18 -0
- package/dist/team-member-card.d.ts +1 -0
- package/dist/team-member-card.js +14 -0
- package/dist/team-morph.d.ts +1 -0
- package/dist/team-morph.js +11 -0
- package/dist/tilt-card.d.ts +1 -0
- package/dist/tilt-card.js +8 -0
- package/dist/tilt-carousel.d.ts +1 -0
- package/dist/tilt-carousel.js +8 -0
- package/dist/toast-stack.d.ts +1 -0
- package/dist/toast-stack.js +13 -0
- package/dist/usage-ring.d.ts +1 -0
- package/dist/usage-ring.js +9 -0
- package/dist/verify-flow.d.ts +1 -0
- package/dist/verify-flow.js +10 -0
- package/dist/voice-prompt.d.ts +1 -0
- package/dist/voice-prompt.js +14 -0
- package/dist/wallet-card.d.ts +1 -0
- package/dist/wallet-card.js +15 -0
- package/dist/wave-text.d.ts +1 -0
- package/dist/wave-text.js +8 -0
- package/package.json +111 -4
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
cn
|
|
4
|
+
} from "./chunk-2TQSHVXA.js";
|
|
5
|
+
|
|
6
|
+
// src/components/contour-lines/contour-lines.tsx
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
import { useInView, useReducedMotion } from "motion/react";
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
var REVEAL = 1.5;
|
|
11
|
+
var CELL = 10;
|
|
12
|
+
var hash = (x, y) => {
|
|
13
|
+
let h = Math.imul(x, 374761393) + Math.imul(y, 668265263);
|
|
14
|
+
h = Math.imul(h ^ h >>> 13, 1274126177);
|
|
15
|
+
return ((h ^ h >>> 16) >>> 0) / 4294967295;
|
|
16
|
+
};
|
|
17
|
+
var smooth = (t) => t * t * (3 - 2 * t);
|
|
18
|
+
var noise = (x, y) => {
|
|
19
|
+
const ix = Math.floor(x);
|
|
20
|
+
const iy = Math.floor(y);
|
|
21
|
+
const fx = smooth(x - ix);
|
|
22
|
+
const fy = smooth(y - iy);
|
|
23
|
+
const a = hash(ix, iy);
|
|
24
|
+
const b = hash(ix + 1, iy);
|
|
25
|
+
const c = hash(ix, iy + 1);
|
|
26
|
+
const d = hash(ix + 1, iy + 1);
|
|
27
|
+
return a + (b - a) * fx + (c - a) * fy + (a - b - c + d) * fx * fy;
|
|
28
|
+
};
|
|
29
|
+
function ContourField({
|
|
30
|
+
color,
|
|
31
|
+
lines,
|
|
32
|
+
scale,
|
|
33
|
+
speed,
|
|
34
|
+
lift,
|
|
35
|
+
still,
|
|
36
|
+
pointer,
|
|
37
|
+
waves,
|
|
38
|
+
reveal
|
|
39
|
+
}) {
|
|
40
|
+
const canvas = React.useRef(null);
|
|
41
|
+
React.useEffect(() => {
|
|
42
|
+
const el = canvas.current;
|
|
43
|
+
const ctx = el.getContext("2d");
|
|
44
|
+
let w = 0;
|
|
45
|
+
let h = 0;
|
|
46
|
+
let cols = 0;
|
|
47
|
+
let rows = 0;
|
|
48
|
+
let field = new Float32Array(0);
|
|
49
|
+
let raf = 0;
|
|
50
|
+
let visible = true;
|
|
51
|
+
let last = performance.now();
|
|
52
|
+
let time = 0;
|
|
53
|
+
let idle = 0;
|
|
54
|
+
const glow = { x: 0, y: 0, a: 0 };
|
|
55
|
+
const size = () => {
|
|
56
|
+
const dpr = Math.min(2, window.devicePixelRatio || 1);
|
|
57
|
+
w = el.clientWidth;
|
|
58
|
+
h = el.clientHeight;
|
|
59
|
+
el.width = Math.round(w * dpr);
|
|
60
|
+
el.height = Math.round(h * dpr);
|
|
61
|
+
ctx.setTransform(dpr, 0, 0, dpr, 0, 0);
|
|
62
|
+
cols = Math.ceil(w / CELL) + 1;
|
|
63
|
+
rows = Math.ceil(h / CELL) + 1;
|
|
64
|
+
field = new Float32Array(cols * rows);
|
|
65
|
+
};
|
|
66
|
+
const sample = () => {
|
|
67
|
+
const t = time * speed;
|
|
68
|
+
const z = 45e-4 / scale;
|
|
69
|
+
for (let j = 0; j < rows; j++) {
|
|
70
|
+
for (let i = 0; i < cols; i++) {
|
|
71
|
+
const x = i * CELL;
|
|
72
|
+
const y = j * CELL;
|
|
73
|
+
let v = noise(x * z + t * 0.04, y * z - t * 0.025) * 0.65 + noise(x * z * 2.2 - t * 0.03, y * z * 2.2 + 3.1) * 0.35;
|
|
74
|
+
if (glow.a > 0.01) {
|
|
75
|
+
const dx = x - glow.x;
|
|
76
|
+
const dy = y - glow.y;
|
|
77
|
+
v += glow.a * 0.28 * lift * Math.exp(-(dx * dx + dy * dy) / (2 * 70 * 70));
|
|
78
|
+
}
|
|
79
|
+
for (const wv of waves.current) {
|
|
80
|
+
const age = time - wv.t;
|
|
81
|
+
const d = Math.hypot(x - wv.x, y - wv.y) - age * 220;
|
|
82
|
+
v += 0.12 * Math.max(0, 1 - age / 1.8) * Math.exp(-(d * d) / (2 * 22 * 22));
|
|
83
|
+
}
|
|
84
|
+
field[j * cols + i] = v;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
const draw = () => {
|
|
89
|
+
ctx.clearRect(0, 0, w, h);
|
|
90
|
+
const start = reveal.current;
|
|
91
|
+
const pr = still ? 1 : start === -1 || start === -2 ? 0 : Math.min(1, (time - start) / REVEAL);
|
|
92
|
+
if (pr === 0) return;
|
|
93
|
+
sample();
|
|
94
|
+
const step = 1 / (lines + 1);
|
|
95
|
+
const path = new Path2D();
|
|
96
|
+
const major = new Path2D();
|
|
97
|
+
const at = (i, j) => field[j * cols + i];
|
|
98
|
+
for (let l = 1; l <= lines; l++) {
|
|
99
|
+
const lv = 0.14 + l * step * 0.78;
|
|
100
|
+
const p = l % 4 === 0 ? major : path;
|
|
101
|
+
for (let j = 0; j < rows - 1; j++) {
|
|
102
|
+
for (let i = 0; i < cols - 1; i++) {
|
|
103
|
+
const a = at(i, j);
|
|
104
|
+
const b = at(i + 1, j);
|
|
105
|
+
const c = at(i + 1, j + 1);
|
|
106
|
+
const d = at(i, j + 1);
|
|
107
|
+
const k = (a > lv ? 8 : 0) | (b > lv ? 4 : 0) | (c > lv ? 2 : 0) | (d > lv ? 1 : 0);
|
|
108
|
+
if (k === 0 || k === 15) continue;
|
|
109
|
+
const x = i * CELL;
|
|
110
|
+
const y = j * CELL;
|
|
111
|
+
const top = () => [x + (lv - a) / (b - a) * CELL, y];
|
|
112
|
+
const right = () => [x + CELL, y + (lv - b) / (c - b) * CELL];
|
|
113
|
+
const bottom = () => [x + (lv - d) / (c - d) * CELL, y + CELL];
|
|
114
|
+
const left = () => [x, y + (lv - a) / (d - a) * CELL];
|
|
115
|
+
const seg = (p1, p2) => {
|
|
116
|
+
p.moveTo(p1[0], p1[1]);
|
|
117
|
+
p.lineTo(p2[0], p2[1]);
|
|
118
|
+
};
|
|
119
|
+
switch (k) {
|
|
120
|
+
case 1:
|
|
121
|
+
case 14:
|
|
122
|
+
seg(left(), bottom());
|
|
123
|
+
break;
|
|
124
|
+
case 2:
|
|
125
|
+
case 13:
|
|
126
|
+
seg(bottom(), right());
|
|
127
|
+
break;
|
|
128
|
+
case 3:
|
|
129
|
+
case 12:
|
|
130
|
+
seg(left(), right());
|
|
131
|
+
break;
|
|
132
|
+
case 4:
|
|
133
|
+
case 11:
|
|
134
|
+
seg(top(), right());
|
|
135
|
+
break;
|
|
136
|
+
case 5:
|
|
137
|
+
seg(left(), top());
|
|
138
|
+
seg(bottom(), right());
|
|
139
|
+
break;
|
|
140
|
+
case 6:
|
|
141
|
+
case 9:
|
|
142
|
+
seg(top(), bottom());
|
|
143
|
+
break;
|
|
144
|
+
case 7:
|
|
145
|
+
case 8:
|
|
146
|
+
seg(left(), top());
|
|
147
|
+
break;
|
|
148
|
+
case 10:
|
|
149
|
+
seg(left(), bottom());
|
|
150
|
+
seg(top(), right());
|
|
151
|
+
break;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
ctx.save();
|
|
157
|
+
if (pr < 1) {
|
|
158
|
+
const e = 1 - Math.pow(1 - pr, 3);
|
|
159
|
+
const reach = (Math.hypot(w, h) / 2 + 40) * e;
|
|
160
|
+
ctx.beginPath();
|
|
161
|
+
ctx.arc(w / 2, h / 2, Math.max(0.1, reach), 0, Math.PI * 2);
|
|
162
|
+
ctx.clip();
|
|
163
|
+
}
|
|
164
|
+
ctx.lineCap = "round";
|
|
165
|
+
ctx.strokeStyle = color;
|
|
166
|
+
ctx.globalAlpha = 0.16;
|
|
167
|
+
ctx.lineWidth = 1;
|
|
168
|
+
ctx.stroke(path);
|
|
169
|
+
ctx.globalAlpha = 0.28;
|
|
170
|
+
ctx.lineWidth = 1.4;
|
|
171
|
+
ctx.stroke(major);
|
|
172
|
+
if (glow.a > 0.01) {
|
|
173
|
+
const g = ctx.createRadialGradient(
|
|
174
|
+
glow.x,
|
|
175
|
+
glow.y,
|
|
176
|
+
0,
|
|
177
|
+
glow.x,
|
|
178
|
+
glow.y,
|
|
179
|
+
150
|
|
180
|
+
);
|
|
181
|
+
g.addColorStop(0, color);
|
|
182
|
+
g.addColorStop(1, "transparent");
|
|
183
|
+
ctx.strokeStyle = g;
|
|
184
|
+
ctx.globalAlpha = 0.6 * glow.a;
|
|
185
|
+
ctx.lineWidth = 1.2;
|
|
186
|
+
ctx.stroke(path);
|
|
187
|
+
ctx.stroke(major);
|
|
188
|
+
}
|
|
189
|
+
ctx.restore();
|
|
190
|
+
};
|
|
191
|
+
const frame = (now) => {
|
|
192
|
+
raf = requestAnimationFrame(frame);
|
|
193
|
+
const dt = Math.min(0.05, Math.max(0, (now - last) / 1e3));
|
|
194
|
+
last = now;
|
|
195
|
+
if (!visible) return;
|
|
196
|
+
time += dt;
|
|
197
|
+
if (reveal.current === -2) reveal.current = time;
|
|
198
|
+
const p = pointer.current;
|
|
199
|
+
const k = 1 - Math.pow(2e-3, dt);
|
|
200
|
+
glow.x += (p.x - glow.x) * k;
|
|
201
|
+
glow.y += (p.y - glow.y) * k;
|
|
202
|
+
glow.a += ((p.on ? 1 : 0) - glow.a) * (1 - Math.pow(0.03, dt));
|
|
203
|
+
idle = p.on ? 0 : idle + dt;
|
|
204
|
+
if (idle > 3.6) {
|
|
205
|
+
idle = 0;
|
|
206
|
+
waves.current.push({
|
|
207
|
+
x: w * (0.15 + Math.random() * 0.7),
|
|
208
|
+
y: h * (0.15 + Math.random() * 0.5),
|
|
209
|
+
t: time
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
waves.current = waves.current.map((wv) => wv.t < 0 ? { ...wv, t: time } : wv).filter((wv) => time - wv.t < 1.8);
|
|
213
|
+
draw();
|
|
214
|
+
};
|
|
215
|
+
size();
|
|
216
|
+
const ro = new ResizeObserver(() => {
|
|
217
|
+
size();
|
|
218
|
+
if (still) draw();
|
|
219
|
+
});
|
|
220
|
+
ro.observe(el);
|
|
221
|
+
const io = new IntersectionObserver(
|
|
222
|
+
([e]) => void (visible = !!e?.isIntersecting)
|
|
223
|
+
);
|
|
224
|
+
io.observe(el);
|
|
225
|
+
if (still) {
|
|
226
|
+
time = 4;
|
|
227
|
+
draw();
|
|
228
|
+
} else raf = requestAnimationFrame(frame);
|
|
229
|
+
return () => {
|
|
230
|
+
cancelAnimationFrame(raf);
|
|
231
|
+
ro.disconnect();
|
|
232
|
+
io.disconnect();
|
|
233
|
+
};
|
|
234
|
+
}, [color, lines, scale, speed, lift, still, pointer, waves, reveal]);
|
|
235
|
+
return /* @__PURE__ */ jsx(
|
|
236
|
+
"canvas",
|
|
237
|
+
{
|
|
238
|
+
ref: canvas,
|
|
239
|
+
"aria-hidden": true,
|
|
240
|
+
className: "pointer-events-none absolute inset-0 size-full"
|
|
241
|
+
}
|
|
242
|
+
);
|
|
243
|
+
}
|
|
244
|
+
var ContourLines = React.forwardRef(
|
|
245
|
+
function ContourLines2({
|
|
246
|
+
color = "#242423",
|
|
247
|
+
lines = 14,
|
|
248
|
+
scale = 1,
|
|
249
|
+
speed = 1,
|
|
250
|
+
lift = 1,
|
|
251
|
+
interactive = true,
|
|
252
|
+
children,
|
|
253
|
+
className
|
|
254
|
+
}, ref) {
|
|
255
|
+
const root = React.useRef(null);
|
|
256
|
+
React.useImperativeHandle(ref, () => root.current);
|
|
257
|
+
const still = !!useReducedMotion();
|
|
258
|
+
const inView = useInView(root, { once: true, amount: 0.2 });
|
|
259
|
+
const pointer = React.useRef({ x: -999, y: -999, on: false });
|
|
260
|
+
const waves = React.useRef([]);
|
|
261
|
+
const reveal = React.useRef(-1);
|
|
262
|
+
React.useEffect(() => {
|
|
263
|
+
if (inView || still) reveal.current = -2;
|
|
264
|
+
}, [inView, still]);
|
|
265
|
+
const local = (e) => {
|
|
266
|
+
const r = root.current.getBoundingClientRect();
|
|
267
|
+
return { x: e.clientX - r.left, y: e.clientY - r.top };
|
|
268
|
+
};
|
|
269
|
+
return /* @__PURE__ */ jsxs(
|
|
270
|
+
"div",
|
|
271
|
+
{
|
|
272
|
+
ref: root,
|
|
273
|
+
onPointerMove: interactive ? (e) => void (pointer.current = { ...local(e), on: true }) : void 0,
|
|
274
|
+
onPointerLeave: interactive ? () => void (pointer.current = { ...pointer.current, on: false }) : void 0,
|
|
275
|
+
onPointerDown: (
|
|
276
|
+
// t < 0 marks it new; the field stamps it with its own clock.
|
|
277
|
+
interactive ? (e) => void waves.current.push({ ...local(e), t: -1 }) : void 0
|
|
278
|
+
),
|
|
279
|
+
className: cn(
|
|
280
|
+
"relative isolate min-h-[320px] w-full overflow-hidden",
|
|
281
|
+
className
|
|
282
|
+
),
|
|
283
|
+
children: [
|
|
284
|
+
/* @__PURE__ */ jsx(
|
|
285
|
+
ContourField,
|
|
286
|
+
{
|
|
287
|
+
color,
|
|
288
|
+
lines: Math.max(4, Math.round(lines)),
|
|
289
|
+
scale: Math.max(0.3, scale),
|
|
290
|
+
speed,
|
|
291
|
+
lift,
|
|
292
|
+
still,
|
|
293
|
+
pointer,
|
|
294
|
+
waves,
|
|
295
|
+
reveal
|
|
296
|
+
}
|
|
297
|
+
),
|
|
298
|
+
children
|
|
299
|
+
]
|
|
300
|
+
}
|
|
301
|
+
);
|
|
302
|
+
}
|
|
303
|
+
);
|
|
304
|
+
|
|
305
|
+
export {
|
|
306
|
+
ContourLines
|
|
307
|
+
};
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
cn
|
|
4
|
+
} from "./chunk-2TQSHVXA.js";
|
|
5
|
+
|
|
6
|
+
// src/components/pixel-scroll/pixel-scroll.tsx
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
import { useMotionValueEvent, useScroll } from "motion/react";
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
var EASE = {
|
|
11
|
+
linear: (t) => t,
|
|
12
|
+
"ease-in": (t) => t * t * t,
|
|
13
|
+
"ease-out": (t) => 1 - (1 - t) ** 3,
|
|
14
|
+
"ease-in-out": (t) => t < 0.5 ? 4 * t * t * t : 1 - (-2 * t + 2) ** 3 / 2,
|
|
15
|
+
"expo-out": (t) => t >= 1 ? 1 : 1 - 2 ** (-10 * t)
|
|
16
|
+
};
|
|
17
|
+
var hash = (c, r) => {
|
|
18
|
+
const x = Math.sin(c * 127.1 + r * 311.7) * 43758.5453;
|
|
19
|
+
return x - Math.floor(x);
|
|
20
|
+
};
|
|
21
|
+
var frac = (v) => v - Math.floor(v);
|
|
22
|
+
function cover(img, W, H) {
|
|
23
|
+
const k = Math.max(W / img.naturalWidth, H / img.naturalHeight);
|
|
24
|
+
const w = img.naturalWidth * k;
|
|
25
|
+
const h = img.naturalHeight * k;
|
|
26
|
+
return [(W - w) / 2, (H - h) / 2, w, h];
|
|
27
|
+
}
|
|
28
|
+
function useImage(src) {
|
|
29
|
+
const [img, setImg] = React.useState(null);
|
|
30
|
+
React.useEffect(() => {
|
|
31
|
+
if (!src) return setImg(null);
|
|
32
|
+
const i = new Image();
|
|
33
|
+
i.onload = () => setImg(i);
|
|
34
|
+
i.src = src;
|
|
35
|
+
}, [src]);
|
|
36
|
+
return img;
|
|
37
|
+
}
|
|
38
|
+
var PixelScroll = React.forwardRef(
|
|
39
|
+
function PixelScroll2({
|
|
40
|
+
mode = "colors",
|
|
41
|
+
from = "#f5f5f5",
|
|
42
|
+
to = "#242423",
|
|
43
|
+
layerA,
|
|
44
|
+
layerB,
|
|
45
|
+
pixelSize = 16,
|
|
46
|
+
gap = 0,
|
|
47
|
+
endAt = 0.8,
|
|
48
|
+
startAt = 0.08,
|
|
49
|
+
direction = "bottom-top",
|
|
50
|
+
pattern = "random",
|
|
51
|
+
intensity = 0.45,
|
|
52
|
+
easing = "ease-in-out",
|
|
53
|
+
accentShare = 0.25,
|
|
54
|
+
accents = ["#3d66d6", "#d6498f", "#9150e0", "#269a5a"],
|
|
55
|
+
length = 3,
|
|
56
|
+
container,
|
|
57
|
+
children,
|
|
58
|
+
label,
|
|
59
|
+
className
|
|
60
|
+
}, ref) {
|
|
61
|
+
const track = React.useRef(null);
|
|
62
|
+
const stage = React.useRef(null);
|
|
63
|
+
const canvas = React.useRef(null);
|
|
64
|
+
const [size, setSize] = React.useState({ w: 0, h: 0 });
|
|
65
|
+
const imgA = useImage(mode === "layers" ? layerA : void 0);
|
|
66
|
+
const imgB = useImage(mode === "layers" ? layerB : void 0);
|
|
67
|
+
const { scrollYProgress } = useScroll({
|
|
68
|
+
target: track,
|
|
69
|
+
container,
|
|
70
|
+
offset: ["start start", "end end"]
|
|
71
|
+
});
|
|
72
|
+
React.useLayoutEffect(() => {
|
|
73
|
+
const el = stage.current;
|
|
74
|
+
if (!el) return;
|
|
75
|
+
const measure = () => setSize({ w: el.clientWidth, h: el.clientHeight });
|
|
76
|
+
measure();
|
|
77
|
+
const ro = new ResizeObserver(measure);
|
|
78
|
+
ro.observe(el);
|
|
79
|
+
return () => ro.disconnect();
|
|
80
|
+
}, []);
|
|
81
|
+
const grid = React.useMemo(() => {
|
|
82
|
+
const step = Math.max(2, pixelSize + gap);
|
|
83
|
+
const cols = Math.ceil(size.w / step) || 0;
|
|
84
|
+
const rows = Math.ceil(size.h / step) || 0;
|
|
85
|
+
const th = new Float32Array(cols * rows);
|
|
86
|
+
const pick = new Float32Array(cols * rows);
|
|
87
|
+
const cx = (cols - 1) / 2;
|
|
88
|
+
const cy = (rows - 1) / 2;
|
|
89
|
+
const maxD = Math.hypot(cx, cy) || 1;
|
|
90
|
+
const k = Math.max(0, Math.min(1, intensity));
|
|
91
|
+
for (let r = 0; r < rows; r++)
|
|
92
|
+
for (let c = 0; c < cols; c++) {
|
|
93
|
+
const d = Math.hypot(c - cx, r - cy) / maxD;
|
|
94
|
+
const base = direction === "top-bottom" ? r / Math.max(1, rows - 1) : direction === "bottom-top" ? 1 - r / Math.max(1, rows - 1) : direction === "left-right" ? c / Math.max(1, cols - 1) : direction === "right-left" ? 1 - c / Math.max(1, cols - 1) : direction === "center-out" ? d : 1 - d;
|
|
95
|
+
const h = hash(c, r);
|
|
96
|
+
const pv = pattern === "random" ? h : pattern === "checker" ? (c + r) % 2 * 0.7 + h * 0.3 : pattern === "diagonal" ? frac((c + r) / 9) * 0.85 + h * 0.15 : pattern === "wave" ? 0.5 + 0.42 * Math.sin(c * 0.45 + r * 0.18) + (h - 0.5) * 0.16 : pattern === "spiral" ? frac(
|
|
97
|
+
Math.atan2(r - cy, c - cx) / (Math.PI * 2) + 0.5 + d * 2.2
|
|
98
|
+
) * 0.9 + h * 0.1 : frac(d * 4) * 0.85 + h * 0.15;
|
|
99
|
+
th[r * cols + c] = (1 - k) * base + k * pv;
|
|
100
|
+
pick[r * cols + c] = hash(c + 91, r + 17);
|
|
101
|
+
}
|
|
102
|
+
return { step, cols, rows, th, pick };
|
|
103
|
+
}, [size, pixelSize, gap, direction, pattern, intensity]);
|
|
104
|
+
const draw = React.useCallback(
|
|
105
|
+
(raw) => {
|
|
106
|
+
const c = canvas.current;
|
|
107
|
+
if (!c || !size.w || !grid.cols) return;
|
|
108
|
+
const dpr = Math.min(2, window.devicePixelRatio || 1);
|
|
109
|
+
if (c.width !== Math.round(size.w * dpr)) {
|
|
110
|
+
c.width = Math.round(size.w * dpr);
|
|
111
|
+
c.height = Math.round(size.h * dpr);
|
|
112
|
+
}
|
|
113
|
+
const ctx = c.getContext("2d");
|
|
114
|
+
ctx.setTransform(dpr, 0, 0, dpr, 0, 0);
|
|
115
|
+
const W = size.w;
|
|
116
|
+
const H = size.h;
|
|
117
|
+
const head = Math.max(0, Math.min(0.5, startAt));
|
|
118
|
+
const t = head + (1 - head) * EASE[easing](Math.max(0, Math.min(1, raw / Math.max(0.05, endAt))));
|
|
119
|
+
const band = 0.07;
|
|
120
|
+
const p = t * (1 + band * 2) - band;
|
|
121
|
+
const { step, cols, rows, th, pick } = grid;
|
|
122
|
+
const fillA = () => {
|
|
123
|
+
if (mode === "layers" && imgA)
|
|
124
|
+
ctx.drawImage(imgA, ...cover(imgA, W, H));
|
|
125
|
+
else {
|
|
126
|
+
ctx.fillStyle = from;
|
|
127
|
+
ctx.fillRect(0, 0, W, H);
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
const drawB = () => {
|
|
131
|
+
if (mode === "layers" && imgB)
|
|
132
|
+
ctx.drawImage(imgB, ...cover(imgB, W, H));
|
|
133
|
+
else {
|
|
134
|
+
ctx.fillStyle = to;
|
|
135
|
+
ctx.fillRect(0, 0, W, H);
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
ctx.clearRect(0, 0, W, H);
|
|
139
|
+
fillA();
|
|
140
|
+
if (t <= 0) return;
|
|
141
|
+
const settled = new Path2D();
|
|
142
|
+
const moving = new Path2D();
|
|
143
|
+
const accentCells = [];
|
|
144
|
+
const inset = gap / 2;
|
|
145
|
+
for (let r = 0; r < rows; r++)
|
|
146
|
+
for (let q = 0; q < cols; q++) {
|
|
147
|
+
const i = r * cols + q;
|
|
148
|
+
const lead = p - th[i];
|
|
149
|
+
if (lead < -band) continue;
|
|
150
|
+
const x = q * step;
|
|
151
|
+
const y = r * step;
|
|
152
|
+
if (lead >= band) settled.rect(x, y, step, step);
|
|
153
|
+
else {
|
|
154
|
+
const s = pick[i];
|
|
155
|
+
if (s < accentShare && accents.length)
|
|
156
|
+
accentCells.push([
|
|
157
|
+
x + inset,
|
|
158
|
+
y + inset,
|
|
159
|
+
accents[Math.floor(
|
|
160
|
+
s / Math.max(1e-4, accentShare) * accents.length
|
|
161
|
+
) % accents.length]
|
|
162
|
+
]);
|
|
163
|
+
else moving.rect(x + inset, y + inset, step - gap, step - gap);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
ctx.save();
|
|
167
|
+
ctx.clip(settled);
|
|
168
|
+
drawB();
|
|
169
|
+
ctx.restore();
|
|
170
|
+
ctx.save();
|
|
171
|
+
ctx.clip(moving);
|
|
172
|
+
drawB();
|
|
173
|
+
ctx.restore();
|
|
174
|
+
for (const [x, y, col] of accentCells) {
|
|
175
|
+
ctx.fillStyle = col;
|
|
176
|
+
ctx.fillRect(x, y, step - gap, step - gap);
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
[
|
|
180
|
+
size,
|
|
181
|
+
grid,
|
|
182
|
+
easing,
|
|
183
|
+
endAt,
|
|
184
|
+
startAt,
|
|
185
|
+
mode,
|
|
186
|
+
imgA,
|
|
187
|
+
imgB,
|
|
188
|
+
from,
|
|
189
|
+
to,
|
|
190
|
+
gap,
|
|
191
|
+
accentShare,
|
|
192
|
+
accents
|
|
193
|
+
]
|
|
194
|
+
);
|
|
195
|
+
useMotionValueEvent(scrollYProgress, "change", draw);
|
|
196
|
+
React.useEffect(() => draw(scrollYProgress.get()), [draw, scrollYProgress]);
|
|
197
|
+
const inContainer = !!container;
|
|
198
|
+
return /* @__PURE__ */ jsx(
|
|
199
|
+
"div",
|
|
200
|
+
{
|
|
201
|
+
ref: (el) => {
|
|
202
|
+
track.current = el;
|
|
203
|
+
if (typeof ref === "function") ref(el);
|
|
204
|
+
else if (ref) ref.current = el;
|
|
205
|
+
},
|
|
206
|
+
className: cn("relative w-full", className),
|
|
207
|
+
style: {
|
|
208
|
+
height: inContainer ? `${length * 100}%` : `${length * 100}vh`
|
|
209
|
+
},
|
|
210
|
+
children: /* @__PURE__ */ jsxs(
|
|
211
|
+
"div",
|
|
212
|
+
{
|
|
213
|
+
ref: stage,
|
|
214
|
+
className: "sticky top-0 w-full overflow-hidden",
|
|
215
|
+
style: { height: inContainer ? `${100 / length}%` : "100vh" },
|
|
216
|
+
...label ? { role: "img", "aria-label": label } : {},
|
|
217
|
+
children: [
|
|
218
|
+
/* @__PURE__ */ jsx(
|
|
219
|
+
"canvas",
|
|
220
|
+
{
|
|
221
|
+
ref: canvas,
|
|
222
|
+
"aria-hidden": true,
|
|
223
|
+
className: "absolute inset-0 size-full"
|
|
224
|
+
}
|
|
225
|
+
),
|
|
226
|
+
children && /* @__PURE__ */ jsx("div", { className: "relative h-full", children })
|
|
227
|
+
]
|
|
228
|
+
}
|
|
229
|
+
)
|
|
230
|
+
}
|
|
231
|
+
);
|
|
232
|
+
}
|
|
233
|
+
);
|
|
234
|
+
|
|
235
|
+
export {
|
|
236
|
+
PixelScroll
|
|
237
|
+
};
|