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,464 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
cn
|
|
4
|
+
} from "./chunk-2TQSHVXA.js";
|
|
5
|
+
|
|
6
|
+
// src/components/particle-card/particle-card.tsx
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
import { useAnimate, useAnimationFrame, useReducedMotion } from "motion/react";
|
|
9
|
+
import { ArrowRight } from "lucide-react";
|
|
10
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
var DEFAULT_SVG = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="#242423"><path d="m19.6 66.5 19.7-11 .3-1-.3-.5h-1l-3.3-.2-11.2-.3L14 53l-9.5-.5-2.4-.5L0 49l.2-1.5 2-1.3 2.9.2 6.3.5 9.5.6 6.9.4L38 49.1h1.6l.2-.7-.5-.4-.4-.4L29 41l-10.6-7-5.6-4.1-3-2-1.5-2-.6-4.2 2.7-3 3.7.3.9.2 3.7 2.9 8 6.1L37 36l1.5 1.2.6-.4.1-.3-.7-1.1L33 25l-6-10.4-2.7-4.3-.7-2.6c-.3-1-.4-2-.4-3l3-4.2L28 0l4.2.6L33.8 2l2.6 6 4.1 9.3L47 29.9l2 3.8 1 3.4.3 1h.7v-.5l.5-7.2 1-8.7 1-11.2.3-3.2 1.6-3.8 3-2L61 2.6l2 2.9-.3 1.8-1.1 7.7L59 27.1l-1.5 8.2h.9l1-1.1 4.1-5.4 6.9-8.6 3-3.5L77 13l2.3-1.8h4.3l3.1 4.7-1.4 4.9-4.4 5.6-3.7 4.7-5.3 7.1-3.2 5.7.3.4h.7l12-2.6 6.4-1.1 7.6-1.3 3.5 1.6.4 1.6-1.4 3.4-8.2 2-9.6 2-14.3 3.3-.2.1.2.3 6.4.6 2.8.2h6.8l12.6 1 3.3 2 1.9 2.7-.3 2-5.1 2.6-6.8-1.6-16-3.8-5.4-1.3h-.8v.4l4.6 4.5 8.3 7.5L89 80.1l.5 2.4-1.3 2-1.4-.2-9.2-7-3.6-3-8-6.8h-.5v.7l1.8 2.7 9.8 14.7.5 4.5-.7 1.4-2.6 1-2.7-.6-5.8-8-6-9-4.7-8.2-.5.4-2.9 30.2-1.3 1.5-3 1.2-2.5-2-1.4-3 1.4-6.2 1.6-8 1.3-6.4 1.2-7.9.7-2.6v-.2H49L43 72l-9 12.3-7.2 7.6-1.7.7-3-1.5.3-2.8L24 86l10-12.8 6-7.9 4-4.6-.1-.5h-.3L17.2 77.4l-4.7.6-2-2 .2-3 1-1 8-5.5Z"/></svg>`;
|
|
12
|
+
var MASK = 200;
|
|
13
|
+
var GRAIN = `url("data:image/svg+xml,${encodeURIComponent(
|
|
14
|
+
'<svg xmlns="http://www.w3.org/2000/svg" width="180" height="180"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="2" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/><feComponentTransfer><feFuncA type="table" tableValues="0 0 0.9 0"/></feComponentTransfer></filter><rect width="100%" height="100%" filter="url(#n)"/></svg>'
|
|
15
|
+
)}")`;
|
|
16
|
+
function sized(svg) {
|
|
17
|
+
if (/<svg[^>]*\swidth=/i.test(svg)) return svg;
|
|
18
|
+
const vb = svg.match(
|
|
19
|
+
/viewBox=["']\s*[-\d.]+[\s,]+[-\d.]+[\s,]+([\d.]+)[\s,]+([\d.]+)/i
|
|
20
|
+
);
|
|
21
|
+
const w = vb ? parseFloat(vb[1]) : 100;
|
|
22
|
+
const h = vb ? parseFloat(vb[2]) : 100;
|
|
23
|
+
const k = 512 / Math.max(w, h);
|
|
24
|
+
return svg.replace(
|
|
25
|
+
/<svg/i,
|
|
26
|
+
`<svg width="${Math.round(w * k)}" height="${Math.round(h * k)}"`
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
function loadMask(svg) {
|
|
30
|
+
return new Promise((resolve, reject) => {
|
|
31
|
+
const url = URL.createObjectURL(
|
|
32
|
+
new Blob([sized(svg)], { type: "image/svg+xml" })
|
|
33
|
+
);
|
|
34
|
+
const img = new Image();
|
|
35
|
+
img.onload = () => {
|
|
36
|
+
const c = document.createElement("canvas");
|
|
37
|
+
c.width = c.height = MASK;
|
|
38
|
+
const ctx = c.getContext("2d", { willReadFrequently: true });
|
|
39
|
+
const w = img.naturalWidth || 512;
|
|
40
|
+
const h = img.naturalHeight || 512;
|
|
41
|
+
const k = MASK * 0.92 / Math.max(w, h);
|
|
42
|
+
ctx.drawImage(img, (MASK - w * k) / 2, (MASK - h * k) / 2, w * k, h * k);
|
|
43
|
+
URL.revokeObjectURL(url);
|
|
44
|
+
const data = ctx.getImageData(0, 0, MASK, MASK).data;
|
|
45
|
+
const cover = new Float32Array(MASK * MASK);
|
|
46
|
+
for (let i = 0; i < cover.length; i++) cover[i] = data[i * 4 + 3] / 255;
|
|
47
|
+
let halo = cover.slice();
|
|
48
|
+
const tmp = new Float32Array(cover.length);
|
|
49
|
+
const R = 7;
|
|
50
|
+
for (let pass = 0; pass < 2; pass++) {
|
|
51
|
+
for (let y = 0; y < MASK; y++)
|
|
52
|
+
for (let x = 0; x < MASK; x++) {
|
|
53
|
+
let sum = 0;
|
|
54
|
+
for (let d = -R; d <= R; d++)
|
|
55
|
+
sum += halo[y * MASK + Math.min(MASK - 1, Math.max(0, x + d))];
|
|
56
|
+
tmp[y * MASK + x] = sum / (2 * R + 1);
|
|
57
|
+
}
|
|
58
|
+
for (let y = 0; y < MASK; y++)
|
|
59
|
+
for (let x = 0; x < MASK; x++) {
|
|
60
|
+
let sum = 0;
|
|
61
|
+
for (let d = -R; d <= R; d++)
|
|
62
|
+
sum += tmp[Math.min(MASK - 1, Math.max(0, y + d)) * MASK + x];
|
|
63
|
+
halo[y * MASK + x] = sum / (2 * R + 1);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
resolve({ cover, halo });
|
|
67
|
+
};
|
|
68
|
+
img.onerror = () => {
|
|
69
|
+
URL.revokeObjectURL(url);
|
|
70
|
+
reject(new Error("Could not read that SVG"));
|
|
71
|
+
};
|
|
72
|
+
img.src = url;
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
var ParticleCard = React.forwardRef(
|
|
76
|
+
function ParticleCard2({
|
|
77
|
+
svg,
|
|
78
|
+
look = "mixed",
|
|
79
|
+
background = "#ffffff",
|
|
80
|
+
color = "#242423",
|
|
81
|
+
textColor = "#242423",
|
|
82
|
+
cell = 6,
|
|
83
|
+
spin = 1,
|
|
84
|
+
force = 0.75,
|
|
85
|
+
reach = 130,
|
|
86
|
+
grain = 0,
|
|
87
|
+
chars = "01/>.",
|
|
88
|
+
title = "Shapes that move like water",
|
|
89
|
+
description = "Drop in any SVG and watch it flow.",
|
|
90
|
+
cta = "Learn more",
|
|
91
|
+
href,
|
|
92
|
+
onOpen,
|
|
93
|
+
className
|
|
94
|
+
}, ref) {
|
|
95
|
+
const still = !!useReducedMotion();
|
|
96
|
+
const field = React.useRef(null);
|
|
97
|
+
const canvas = React.useRef(null);
|
|
98
|
+
const mask = React.useRef(null);
|
|
99
|
+
const [size, setSize] = React.useState({ w: 0, h: 0 });
|
|
100
|
+
const sim = React.useRef({
|
|
101
|
+
cols: 0,
|
|
102
|
+
rows: 0,
|
|
103
|
+
dx: new Float32Array(0),
|
|
104
|
+
dy: new Float32Array(0),
|
|
105
|
+
vx: new Float32Array(0),
|
|
106
|
+
vy: new Float32Array(0),
|
|
107
|
+
seed: new Float32Array(0),
|
|
108
|
+
cov: new Float32Array(0),
|
|
109
|
+
halo: new Float32Array(0),
|
|
110
|
+
time: 0,
|
|
111
|
+
introAt: -1,
|
|
112
|
+
visible: true,
|
|
113
|
+
pointer: { x: 0, y: 0, sx: 0, sy: 0, amount: 0, active: false },
|
|
114
|
+
ripples: [],
|
|
115
|
+
drawn: false
|
|
116
|
+
});
|
|
117
|
+
const [arrow, animateArrow] = useAnimate();
|
|
118
|
+
const settings = React.useRef({
|
|
119
|
+
look,
|
|
120
|
+
color,
|
|
121
|
+
cell,
|
|
122
|
+
spin,
|
|
123
|
+
force,
|
|
124
|
+
reach,
|
|
125
|
+
chars,
|
|
126
|
+
still
|
|
127
|
+
});
|
|
128
|
+
settings.current = { look, color, cell, spin, force, reach, chars, still };
|
|
129
|
+
React.useEffect(() => {
|
|
130
|
+
let alive = true;
|
|
131
|
+
loadMask(svg || DEFAULT_SVG).catch(() => loadMask(DEFAULT_SVG)).then((m) => {
|
|
132
|
+
if (!alive) return;
|
|
133
|
+
mask.current = m;
|
|
134
|
+
sim.current.drawn = false;
|
|
135
|
+
});
|
|
136
|
+
return () => {
|
|
137
|
+
alive = false;
|
|
138
|
+
};
|
|
139
|
+
}, [svg]);
|
|
140
|
+
React.useLayoutEffect(() => {
|
|
141
|
+
const el = field.current;
|
|
142
|
+
if (!el) return;
|
|
143
|
+
const measure = () => setSize({ w: el.clientWidth, h: el.clientHeight });
|
|
144
|
+
measure();
|
|
145
|
+
const ro = new ResizeObserver(measure);
|
|
146
|
+
ro.observe(el);
|
|
147
|
+
const io = new IntersectionObserver(([e]) => {
|
|
148
|
+
sim.current.visible = !!e?.isIntersecting;
|
|
149
|
+
if (e?.isIntersecting && sim.current.introAt < 0)
|
|
150
|
+
sim.current.introAt = sim.current.time;
|
|
151
|
+
});
|
|
152
|
+
io.observe(el);
|
|
153
|
+
return () => {
|
|
154
|
+
ro.disconnect();
|
|
155
|
+
io.disconnect();
|
|
156
|
+
};
|
|
157
|
+
}, []);
|
|
158
|
+
React.useEffect(() => {
|
|
159
|
+
const c = canvas.current;
|
|
160
|
+
if (!c || !size.w) return;
|
|
161
|
+
const dpr = Math.min(2, window.devicePixelRatio || 1);
|
|
162
|
+
c.width = Math.round(size.w * dpr);
|
|
163
|
+
c.height = Math.round(size.h * dpr);
|
|
164
|
+
const s = sim.current;
|
|
165
|
+
s.cols = Math.floor(size.w / cell);
|
|
166
|
+
s.rows = Math.floor(size.h / cell);
|
|
167
|
+
const n = s.cols * s.rows;
|
|
168
|
+
s.dx = new Float32Array(n);
|
|
169
|
+
s.dy = new Float32Array(n);
|
|
170
|
+
s.vx = new Float32Array(n);
|
|
171
|
+
s.vy = new Float32Array(n);
|
|
172
|
+
s.cov = new Float32Array(n);
|
|
173
|
+
s.halo = new Float32Array(n);
|
|
174
|
+
s.seed = new Float32Array(n).map(() => Math.random());
|
|
175
|
+
if (!still) {
|
|
176
|
+
for (let i = 0; i < n; i++) {
|
|
177
|
+
const a = Math.random() * Math.PI * 2;
|
|
178
|
+
const r = (0.4 + Math.random() * 0.8) * Math.max(size.w, size.h);
|
|
179
|
+
s.dx[i] = Math.cos(a) * r;
|
|
180
|
+
s.dy[i] = Math.sin(a) * r;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
s.drawn = false;
|
|
184
|
+
}, [size, cell, still]);
|
|
185
|
+
useAnimationFrame((_, delta) => {
|
|
186
|
+
const s = sim.current;
|
|
187
|
+
const m = mask.current;
|
|
188
|
+
const c = canvas.current;
|
|
189
|
+
const set = settings.current;
|
|
190
|
+
if (!c || !m || !s.cols || !s.visible) return;
|
|
191
|
+
if (set.still && s.drawn) return;
|
|
192
|
+
const dt = Math.min(delta, 50) / 1e3;
|
|
193
|
+
s.time += dt;
|
|
194
|
+
if (s.introAt < 0) return;
|
|
195
|
+
const { cols, rows, cov } = s;
|
|
196
|
+
const W = size.w;
|
|
197
|
+
const H = size.h;
|
|
198
|
+
const cs = W / cols;
|
|
199
|
+
const rs = H / rows;
|
|
200
|
+
const cx = W / 2;
|
|
201
|
+
const cy = H / 2;
|
|
202
|
+
const S = Math.min(W, H) * 0.92;
|
|
203
|
+
const theta = set.still ? 0 : s.time * set.spin * Math.PI * 2 / 60;
|
|
204
|
+
const cos = Math.cos(-theta);
|
|
205
|
+
const sin = Math.sin(-theta);
|
|
206
|
+
const halo = s.halo;
|
|
207
|
+
for (let r = 0; r < rows; r++)
|
|
208
|
+
for (let q = 0; q < cols; q++) {
|
|
209
|
+
const x = (q + 0.5) * cs - cx;
|
|
210
|
+
const y = (r + 0.5) * rs - cy;
|
|
211
|
+
const u = ((x * cos - y * sin) / S + 0.5) * MASK;
|
|
212
|
+
const v = ((x * sin + y * cos) / S + 0.5) * MASK;
|
|
213
|
+
const i = r * cols + q;
|
|
214
|
+
if (u < 0 || v < 0 || u >= MASK || v >= MASK) {
|
|
215
|
+
cov[i] = 0;
|
|
216
|
+
halo[i] = 0;
|
|
217
|
+
continue;
|
|
218
|
+
}
|
|
219
|
+
const k = (v | 0) * MASK + (u | 0);
|
|
220
|
+
cov[i] = m.cover[k];
|
|
221
|
+
halo[i] = m.halo[k];
|
|
222
|
+
}
|
|
223
|
+
const p = s.pointer;
|
|
224
|
+
s.ripples ?? (s.ripples = []);
|
|
225
|
+
if (p.amount === void 0)
|
|
226
|
+
Object.assign(p, { sx: p.x, sy: p.y, amount: 0 });
|
|
227
|
+
const reach2 = Math.max(10, set.reach);
|
|
228
|
+
const intro = s.time - s.introAt;
|
|
229
|
+
const follow = 1 - Math.exp(-dt * 14);
|
|
230
|
+
p.sx += (p.x - p.sx) * follow;
|
|
231
|
+
p.sy += (p.y - p.sy) * follow;
|
|
232
|
+
p.amount += ((p.active && !set.still ? 1 : 0) - p.amount) * (1 - Math.exp(-dt * 6));
|
|
233
|
+
s.ripples = s.ripples.filter((w) => s.time - w.t < 2.6);
|
|
234
|
+
for (let r = 0; r < rows; r++)
|
|
235
|
+
for (let q = 0; q < cols; q++) {
|
|
236
|
+
const i = r * cols + q;
|
|
237
|
+
if (halo[i] < 0.02 && Math.abs(s.dx[i]) < 0.5 && Math.abs(s.dy[i]) < 0.5)
|
|
238
|
+
continue;
|
|
239
|
+
const hx = (q + 0.5) * cs;
|
|
240
|
+
const hy = (r + 0.5) * rs;
|
|
241
|
+
const wait = Math.hypot(hx - cx, hy - cy) / Math.hypot(cx, cy) * 0.7;
|
|
242
|
+
if (intro < wait) continue;
|
|
243
|
+
let tx = 0;
|
|
244
|
+
let ty = 0;
|
|
245
|
+
if (p.amount > 1e-3) {
|
|
246
|
+
const ex = hx - p.sx;
|
|
247
|
+
const ey = hy - p.sy;
|
|
248
|
+
const d = Math.hypot(ex, ey);
|
|
249
|
+
if (d < reach2 && d > 0.01) {
|
|
250
|
+
const a = Math.atan2(ey, ex);
|
|
251
|
+
const lobe = 1 + 0.16 * Math.sin(a * 6 + s.time * 1.8) + 0.08 * Math.sin(a * 11 - s.time * 2.6);
|
|
252
|
+
const push = (1 - d / reach2) ** 1.5 * reach2 * 0.9 * set.force * lobe * p.amount;
|
|
253
|
+
tx += ex / d * push;
|
|
254
|
+
ty += ey / d * push;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
for (const w of s.ripples) {
|
|
258
|
+
const ex = hx - w.x;
|
|
259
|
+
const ey = hy - w.y;
|
|
260
|
+
const d = Math.hypot(ex, ey) || 1;
|
|
261
|
+
const age = s.time - w.t;
|
|
262
|
+
const front = age * reach2 * 3.2;
|
|
263
|
+
const band = (d - front) / (reach2 * 0.28);
|
|
264
|
+
const lift = Math.exp(-band * band) * reach2 * 0.32 * set.force * Math.exp(-age * 1.6);
|
|
265
|
+
tx += ex / d * lift;
|
|
266
|
+
ty += ey / d * lift;
|
|
267
|
+
}
|
|
268
|
+
const ax = 130 * (tx - s.dx[i]) - 15 * s.vx[i];
|
|
269
|
+
const ay = 130 * (ty - s.dy[i]) - 15 * s.vy[i];
|
|
270
|
+
s.vx[i] = s.vx[i] + ax * dt;
|
|
271
|
+
s.vy[i] = s.vy[i] + ay * dt;
|
|
272
|
+
s.dx[i] = s.dx[i] + s.vx[i] * dt;
|
|
273
|
+
s.dy[i] = s.dy[i] + s.vy[i] * dt;
|
|
274
|
+
}
|
|
275
|
+
const ctx = c.getContext("2d");
|
|
276
|
+
const dpr = c.width / W;
|
|
277
|
+
ctx.setTransform(dpr, 0, 0, dpr, 0, 0);
|
|
278
|
+
ctx.clearRect(0, 0, W, H);
|
|
279
|
+
ctx.fillStyle = set.color;
|
|
280
|
+
ctx.font = `500 ${Math.round(cs * 1.15 / 2) * 2}px "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace`;
|
|
281
|
+
ctx.textAlign = "center";
|
|
282
|
+
ctx.textBaseline = "middle";
|
|
283
|
+
const glyphs = set.chars || "01/>.";
|
|
284
|
+
const dense = glyphs.slice(0, Math.max(1, glyphs.length - 3));
|
|
285
|
+
const edge = glyphs.slice(-3, -1) || glyphs;
|
|
286
|
+
const faint = glyphs.slice(-1);
|
|
287
|
+
const lambda = Math.min(W, H) * 0.075;
|
|
288
|
+
const flick = Math.floor(s.time * 7);
|
|
289
|
+
for (let r = 0; r < rows; r++)
|
|
290
|
+
for (let q = 0; q < cols; q++) {
|
|
291
|
+
const i = r * cols + q;
|
|
292
|
+
const cv = cov[i];
|
|
293
|
+
const hl = halo[i];
|
|
294
|
+
if (cv < 0.12 && hl < 0.12) continue;
|
|
295
|
+
const x = (q + 0.5) * cs + s.dx[i];
|
|
296
|
+
const y = (r + 0.5) * rs + s.dy[i];
|
|
297
|
+
let mode;
|
|
298
|
+
if (set.look !== "mixed") mode = set.look;
|
|
299
|
+
else {
|
|
300
|
+
const w = Math.sin(
|
|
301
|
+
Math.hypot((q + 0.5) * cs - cx, (r + 0.5) * rs - cy) / lambda - s.time * 1.6
|
|
302
|
+
);
|
|
303
|
+
mode = w > 0.3 ? "block" : w < -0.3 ? "glyph" : "scan";
|
|
304
|
+
}
|
|
305
|
+
const sp = Math.hypot(s.vx[i], s.vy[i]);
|
|
306
|
+
ctx.globalAlpha = Math.max(0.35, 1 - sp / 2400);
|
|
307
|
+
if (mode === "block") {
|
|
308
|
+
if (cv >= 0.5)
|
|
309
|
+
ctx.fillRect(
|
|
310
|
+
x - cs / 2 + 0.75,
|
|
311
|
+
y - rs / 2 + 0.75,
|
|
312
|
+
cs - 1.5,
|
|
313
|
+
rs - 1.5
|
|
314
|
+
);
|
|
315
|
+
else if (cv >= 0.25)
|
|
316
|
+
ctx.fillRect(
|
|
317
|
+
x - cs / 2 + 0.75,
|
|
318
|
+
y + rs * 0.1,
|
|
319
|
+
cs - 1.5,
|
|
320
|
+
rs * 0.28
|
|
321
|
+
);
|
|
322
|
+
} else if (mode === "scan") {
|
|
323
|
+
if (cv >= 0.25) {
|
|
324
|
+
const len = cs * (0.55 + 0.45 * cv);
|
|
325
|
+
ctx.fillRect(
|
|
326
|
+
x - len / 2,
|
|
327
|
+
y + rs * 0.22,
|
|
328
|
+
len,
|
|
329
|
+
Math.max(1.2, rs * 0.16)
|
|
330
|
+
);
|
|
331
|
+
} else if (hl >= 0.2 && s.seed[i] > 0.45) {
|
|
332
|
+
ctx.globalAlpha *= 0.65;
|
|
333
|
+
ctx.fillRect(
|
|
334
|
+
x - cs * 0.45,
|
|
335
|
+
y + rs * 0.22,
|
|
336
|
+
cs * 0.9,
|
|
337
|
+
Math.max(1, rs * 0.12)
|
|
338
|
+
);
|
|
339
|
+
}
|
|
340
|
+
} else {
|
|
341
|
+
let ch = "";
|
|
342
|
+
const pick = (pool) => pool[Math.floor(
|
|
343
|
+
(s.seed[i] * 97 + (s.seed[i] > 0.93 ? flick : 0)) % pool.length
|
|
344
|
+
)];
|
|
345
|
+
if (cv >= 0.85) ch = pick(dense);
|
|
346
|
+
else if (cv >= 0.4) {
|
|
347
|
+
const gx = (cov[i + 1] ?? 0) - (cov[i - 1] ?? 0);
|
|
348
|
+
const gy = (cov[i + cols] ?? 0) - (cov[i - cols] ?? 0);
|
|
349
|
+
ch = Math.abs(gx) > Math.abs(gy) ? edge[edge.length - 1] : edge[0];
|
|
350
|
+
} else if (cv >= 0.12) ch = faint;
|
|
351
|
+
if (ch) ctx.fillText(ch, x, y);
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
ctx.globalAlpha = 1;
|
|
355
|
+
s.drawn = true;
|
|
356
|
+
});
|
|
357
|
+
const local = (e) => {
|
|
358
|
+
const r = field.current.getBoundingClientRect();
|
|
359
|
+
return { x: e.clientX - r.left, y: e.clientY - r.top };
|
|
360
|
+
};
|
|
361
|
+
const Cta = href ? "a" : "button";
|
|
362
|
+
const launch = () => {
|
|
363
|
+
if (still || !arrow.current) return;
|
|
364
|
+
animateArrow(
|
|
365
|
+
arrow.current,
|
|
366
|
+
{
|
|
367
|
+
x: ["0%", "160%", "-160%", "0%"],
|
|
368
|
+
filter: ["blur(0px)", "blur(2px)", "blur(2px)", "blur(0px)"]
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
duration: 0.55,
|
|
372
|
+
times: [0, 0.38, 0.39, 1],
|
|
373
|
+
ease: ["easeIn", "linear", [0.22, 1, 0.36, 1]]
|
|
374
|
+
}
|
|
375
|
+
);
|
|
376
|
+
};
|
|
377
|
+
return /* @__PURE__ */ jsxs(
|
|
378
|
+
"div",
|
|
379
|
+
{
|
|
380
|
+
ref,
|
|
381
|
+
className: cn(
|
|
382
|
+
"relative w-[380px] max-w-full overflow-hidden rounded-3xl p-5 shadow-[0_1px_2px_rgba(0,0,0,0.04),0_12px_32px_-16px_rgba(0,0,0,0.18)]",
|
|
383
|
+
className
|
|
384
|
+
),
|
|
385
|
+
style: { background, color: textColor },
|
|
386
|
+
children: [
|
|
387
|
+
/* @__PURE__ */ jsx(
|
|
388
|
+
"div",
|
|
389
|
+
{
|
|
390
|
+
ref: field,
|
|
391
|
+
"aria-hidden": true,
|
|
392
|
+
className: "relative -mx-2 -mt-1 h-[324px] cursor-crosshair touch-none",
|
|
393
|
+
onPointerEnter: (e) => {
|
|
394
|
+
const { x, y } = local(e);
|
|
395
|
+
Object.assign(sim.current.pointer, { x, y, sx: x, sy: y });
|
|
396
|
+
},
|
|
397
|
+
onPointerMove: (e) => Object.assign(sim.current.pointer, local(e), { active: true }),
|
|
398
|
+
onPointerLeave: () => sim.current.pointer.active = false,
|
|
399
|
+
onPointerDown: (e) => {
|
|
400
|
+
if (still) return;
|
|
401
|
+
const s = sim.current;
|
|
402
|
+
s.ripples.push({ ...local(e), t: s.time });
|
|
403
|
+
},
|
|
404
|
+
children: /* @__PURE__ */ jsx("canvas", { ref: canvas, className: "absolute inset-0 size-full" })
|
|
405
|
+
}
|
|
406
|
+
),
|
|
407
|
+
/* @__PURE__ */ jsx("h3", { className: "mt-3 px-1 text-center text-lg font-semibold leading-snug tracking-tight", children: title }),
|
|
408
|
+
description && /* @__PURE__ */ jsx("p", { className: "mt-1 px-1 text-center text-sm opacity-60", children: description }),
|
|
409
|
+
/* @__PURE__ */ jsxs(
|
|
410
|
+
Cta,
|
|
411
|
+
{
|
|
412
|
+
...href ? { href, onClick: launch } : {
|
|
413
|
+
type: "button",
|
|
414
|
+
onClick: () => (launch(), onOpen?.())
|
|
415
|
+
},
|
|
416
|
+
className: "group mt-5 flex h-11 w-full cursor-pointer items-center justify-center gap-1.5 rounded-full text-sm font-medium outline-none transition-[background-color,transform] duration-200 bg-[var(--ghost)] hover:bg-[var(--ghost-hover)] focus-visible:ring-2 focus-visible:ring-zinc-400 active:scale-[0.98] active:bg-[var(--ghost-press)]",
|
|
417
|
+
style: {
|
|
418
|
+
color: textColor,
|
|
419
|
+
"--ghost": `color-mix(in srgb, ${textColor} 6%, transparent)`,
|
|
420
|
+
"--ghost-hover": `color-mix(in srgb, ${textColor} 9%, transparent)`,
|
|
421
|
+
"--ghost-press": `color-mix(in srgb, ${textColor} 13%, transparent)`
|
|
422
|
+
},
|
|
423
|
+
children: [
|
|
424
|
+
/* @__PURE__ */ jsx("span", { className: "transition-transform duration-[420ms] ease-[cubic-bezier(0.22,1,0.36,1)] group-hover:-translate-x-0.5", children: cta }),
|
|
425
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "relative size-4 overflow-hidden", children: /* @__PURE__ */ jsxs("span", { ref: arrow, className: "absolute inset-0", children: [
|
|
426
|
+
/* @__PURE__ */ jsx(
|
|
427
|
+
ArrowRight,
|
|
428
|
+
{
|
|
429
|
+
className: "absolute inset-0 size-4 transition-transform duration-[420ms] ease-[cubic-bezier(0.22,1,0.36,1)] group-hover:translate-x-[140%]",
|
|
430
|
+
strokeWidth: 2.25
|
|
431
|
+
}
|
|
432
|
+
),
|
|
433
|
+
/* @__PURE__ */ jsx(
|
|
434
|
+
ArrowRight,
|
|
435
|
+
{
|
|
436
|
+
className: "absolute inset-0 size-4 -translate-x-[140%] transition-transform duration-[420ms] ease-[cubic-bezier(0.22,1,0.36,1)] group-hover:translate-x-0 group-hover:delay-75",
|
|
437
|
+
strokeWidth: 2.25
|
|
438
|
+
}
|
|
439
|
+
)
|
|
440
|
+
] }) })
|
|
441
|
+
]
|
|
442
|
+
}
|
|
443
|
+
),
|
|
444
|
+
grain > 0 && /* @__PURE__ */ jsx(
|
|
445
|
+
"div",
|
|
446
|
+
{
|
|
447
|
+
"aria-hidden": true,
|
|
448
|
+
className: "pointer-events-none absolute inset-0",
|
|
449
|
+
style: {
|
|
450
|
+
backgroundImage: GRAIN,
|
|
451
|
+
backgroundSize: "180px 180px",
|
|
452
|
+
opacity: Math.min(1, grain) * 0.55
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
)
|
|
456
|
+
]
|
|
457
|
+
}
|
|
458
|
+
);
|
|
459
|
+
}
|
|
460
|
+
);
|
|
461
|
+
|
|
462
|
+
export {
|
|
463
|
+
ParticleCard
|
|
464
|
+
};
|