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,902 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
GithubIcon
|
|
4
|
+
} from "./chunk-NCEAUODT.js";
|
|
5
|
+
import {
|
|
6
|
+
MapPinIcon
|
|
7
|
+
} from "./chunk-EEQ2WHTN.js";
|
|
8
|
+
import {
|
|
9
|
+
UserCheckIcon
|
|
10
|
+
} from "./chunk-JT2EIO5M.js";
|
|
11
|
+
import {
|
|
12
|
+
LinkedinIcon
|
|
13
|
+
} from "./chunk-ADXWPWJR.js";
|
|
14
|
+
import {
|
|
15
|
+
UserPlusIcon
|
|
16
|
+
} from "./chunk-SKEE23KW.js";
|
|
17
|
+
import {
|
|
18
|
+
MailCheckIcon
|
|
19
|
+
} from "./chunk-CEQ56RF6.js";
|
|
20
|
+
import {
|
|
21
|
+
cn
|
|
22
|
+
} from "./chunk-2TQSHVXA.js";
|
|
23
|
+
|
|
24
|
+
// src/components/team-member-card/team-member-card.tsx
|
|
25
|
+
import * as React from "react";
|
|
26
|
+
import {
|
|
27
|
+
AnimatePresence,
|
|
28
|
+
motion as motion3,
|
|
29
|
+
useInView,
|
|
30
|
+
useMotionTemplate,
|
|
31
|
+
useReducedMotion as useReducedMotion3,
|
|
32
|
+
useSpring
|
|
33
|
+
} from "motion/react";
|
|
34
|
+
|
|
35
|
+
// src/icons/dribbble.tsx
|
|
36
|
+
import { motion, useAnimation, useReducedMotion } from "motion/react";
|
|
37
|
+
import { forwardRef, useCallback, useEffect, useImperativeHandle, useRef, useState } from "react";
|
|
38
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
39
|
+
var CIRCLE_VARIANTS = {
|
|
40
|
+
normal: {
|
|
41
|
+
opacity: 1,
|
|
42
|
+
pathLength: 1,
|
|
43
|
+
pathOffset: 0,
|
|
44
|
+
transition: {
|
|
45
|
+
duration: 0.4,
|
|
46
|
+
opacity: { duration: 0.1 }
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
animate: {
|
|
50
|
+
opacity: [0, 1],
|
|
51
|
+
pathLength: [0, 1],
|
|
52
|
+
pathOffset: [1, 0],
|
|
53
|
+
transition: {
|
|
54
|
+
duration: 0.6,
|
|
55
|
+
ease: "linear",
|
|
56
|
+
opacity: { duration: 0.1 }
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
var PATH_VARIANTS = {
|
|
61
|
+
normal: {
|
|
62
|
+
opacity: 1,
|
|
63
|
+
pathLength: 1,
|
|
64
|
+
pathOffset: 0,
|
|
65
|
+
transition: {
|
|
66
|
+
duration: 0.4,
|
|
67
|
+
opacity: { duration: 0.1 }
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
animate: {
|
|
71
|
+
opacity: [0, 1],
|
|
72
|
+
pathLength: [0, 1],
|
|
73
|
+
pathOffset: [1, 0],
|
|
74
|
+
transition: {
|
|
75
|
+
duration: 0.6,
|
|
76
|
+
ease: "linear",
|
|
77
|
+
opacity: { duration: 0.1 }
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
var DribbbleIcon = forwardRef(
|
|
82
|
+
({ onMouseEnter, onMouseLeave, className, size, active, style, strokeWidth, ...props }, ref) => {
|
|
83
|
+
const circleControls = useAnimation();
|
|
84
|
+
const path1Controls = useAnimation();
|
|
85
|
+
const path2Controls = useAnimation();
|
|
86
|
+
const path3Controls = useAnimation();
|
|
87
|
+
const isControlledRef = useRef(false);
|
|
88
|
+
useImperativeHandle(ref, () => {
|
|
89
|
+
isControlledRef.current = true;
|
|
90
|
+
return {
|
|
91
|
+
startAnimation: () => {
|
|
92
|
+
circleControls.start("animate");
|
|
93
|
+
path1Controls.start("animate");
|
|
94
|
+
path2Controls.start("animate");
|
|
95
|
+
path3Controls.start("animate");
|
|
96
|
+
},
|
|
97
|
+
stopAnimation: () => {
|
|
98
|
+
circleControls.start("normal");
|
|
99
|
+
path1Controls.start("normal");
|
|
100
|
+
path2Controls.start("normal");
|
|
101
|
+
path3Controls.start("normal");
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
});
|
|
105
|
+
const handleMouseEnter = useCallback(
|
|
106
|
+
(e) => {
|
|
107
|
+
if (isControlledRef.current) {
|
|
108
|
+
onMouseEnter?.(e);
|
|
109
|
+
} else {
|
|
110
|
+
circleControls.start("animate");
|
|
111
|
+
path1Controls.start("animate");
|
|
112
|
+
path2Controls.start("animate");
|
|
113
|
+
path3Controls.start("animate");
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
[
|
|
117
|
+
circleControls,
|
|
118
|
+
onMouseEnter,
|
|
119
|
+
path1Controls,
|
|
120
|
+
path2Controls,
|
|
121
|
+
path3Controls
|
|
122
|
+
]
|
|
123
|
+
);
|
|
124
|
+
const handleMouseLeave = useCallback(
|
|
125
|
+
(e) => {
|
|
126
|
+
if (isControlledRef.current) {
|
|
127
|
+
onMouseLeave?.(e);
|
|
128
|
+
} else {
|
|
129
|
+
circleControls.start("normal");
|
|
130
|
+
path1Controls.start("normal");
|
|
131
|
+
path2Controls.start("normal");
|
|
132
|
+
path3Controls.start("normal");
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
[
|
|
136
|
+
circleControls,
|
|
137
|
+
path1Controls,
|
|
138
|
+
path2Controls,
|
|
139
|
+
path3Controls,
|
|
140
|
+
onMouseLeave
|
|
141
|
+
]
|
|
142
|
+
);
|
|
143
|
+
const wrap = useRef(null);
|
|
144
|
+
const reduced = useReducedMotion();
|
|
145
|
+
const [hosted, setHosted] = useState(false);
|
|
146
|
+
useEffect(() => {
|
|
147
|
+
const fake = {};
|
|
148
|
+
if (reduced) {
|
|
149
|
+
setHosted(true);
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
if (active !== void 0) {
|
|
153
|
+
setHosted(true);
|
|
154
|
+
(active ? handleMouseEnter : handleMouseLeave)(fake);
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
157
|
+
const host = wrap.current?.parentElement?.closest("button, a, [role=button], [role=menuitem], [role=tab], [role=switch], [role=radio], label");
|
|
158
|
+
setHosted(!!host);
|
|
159
|
+
if (!host) return;
|
|
160
|
+
const on = () => handleMouseEnter(fake);
|
|
161
|
+
const off = () => handleMouseLeave(fake);
|
|
162
|
+
host.addEventListener("pointerenter", on);
|
|
163
|
+
host.addEventListener("pointerleave", off);
|
|
164
|
+
return () => {
|
|
165
|
+
host.removeEventListener("pointerenter", on);
|
|
166
|
+
host.removeEventListener("pointerleave", off);
|
|
167
|
+
};
|
|
168
|
+
}, [active, reduced, handleMouseEnter, handleMouseLeave]);
|
|
169
|
+
return /* @__PURE__ */ jsx(
|
|
170
|
+
"span",
|
|
171
|
+
{
|
|
172
|
+
ref: wrap,
|
|
173
|
+
className: cn("inline-grid size-6 shrink-0 place-items-center align-middle [&>svg]:size-full", className),
|
|
174
|
+
style: size ? { width: size, height: size, ...style } : style,
|
|
175
|
+
onMouseEnter: hosted ? void 0 : handleMouseEnter,
|
|
176
|
+
onMouseLeave: hosted ? void 0 : handleMouseLeave,
|
|
177
|
+
...props,
|
|
178
|
+
children: /* @__PURE__ */ jsxs(
|
|
179
|
+
"svg",
|
|
180
|
+
{
|
|
181
|
+
fill: "none",
|
|
182
|
+
height: size,
|
|
183
|
+
stroke: "currentColor",
|
|
184
|
+
strokeLinecap: "round",
|
|
185
|
+
strokeLinejoin: "round",
|
|
186
|
+
strokeWidth: strokeWidth ?? 2,
|
|
187
|
+
viewBox: "0 0 24 24",
|
|
188
|
+
width: size,
|
|
189
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
190
|
+
children: [
|
|
191
|
+
/* @__PURE__ */ jsx(
|
|
192
|
+
motion.circle,
|
|
193
|
+
{
|
|
194
|
+
animate: circleControls,
|
|
195
|
+
cx: "12",
|
|
196
|
+
cy: "12",
|
|
197
|
+
initial: "normal",
|
|
198
|
+
r: "10",
|
|
199
|
+
variants: CIRCLE_VARIANTS
|
|
200
|
+
}
|
|
201
|
+
),
|
|
202
|
+
/* @__PURE__ */ jsx(
|
|
203
|
+
motion.path,
|
|
204
|
+
{
|
|
205
|
+
animate: path1Controls,
|
|
206
|
+
d: "M19.13 5.09C15.22 9.14 10 10.44 2.25 10.94",
|
|
207
|
+
initial: "normal",
|
|
208
|
+
variants: PATH_VARIANTS
|
|
209
|
+
}
|
|
210
|
+
),
|
|
211
|
+
/* @__PURE__ */ jsx(
|
|
212
|
+
motion.path,
|
|
213
|
+
{
|
|
214
|
+
animate: path2Controls,
|
|
215
|
+
d: "M21.75 12.84c-6.62-1.41-12.14 1-16.38 6.32",
|
|
216
|
+
initial: "normal",
|
|
217
|
+
variants: PATH_VARIANTS
|
|
218
|
+
}
|
|
219
|
+
),
|
|
220
|
+
/* @__PURE__ */ jsx(
|
|
221
|
+
motion.path,
|
|
222
|
+
{
|
|
223
|
+
animate: path3Controls,
|
|
224
|
+
d: "M8.56 2.75c4.37 6 6 9.42 8 17.72",
|
|
225
|
+
initial: "normal",
|
|
226
|
+
variants: PATH_VARIANTS
|
|
227
|
+
}
|
|
228
|
+
)
|
|
229
|
+
]
|
|
230
|
+
}
|
|
231
|
+
)
|
|
232
|
+
}
|
|
233
|
+
);
|
|
234
|
+
}
|
|
235
|
+
);
|
|
236
|
+
DribbbleIcon.displayName = "DribbbleIcon";
|
|
237
|
+
|
|
238
|
+
// src/icons/twitter.tsx
|
|
239
|
+
import { motion as motion2, useAnimation as useAnimation2, useReducedMotion as useReducedMotion2 } from "motion/react";
|
|
240
|
+
import { forwardRef as forwardRef2, useCallback as useCallback2, useEffect as useEffect2, useImperativeHandle as useImperativeHandle2, useRef as useRef2, useState as useState2 } from "react";
|
|
241
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
242
|
+
var PATH_VARIANTS2 = {
|
|
243
|
+
normal: {
|
|
244
|
+
opacity: 1,
|
|
245
|
+
pathLength: 1,
|
|
246
|
+
pathOffset: 0,
|
|
247
|
+
transition: {
|
|
248
|
+
duration: 0.4,
|
|
249
|
+
opacity: { duration: 0.1 }
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
animate: {
|
|
253
|
+
opacity: [0, 1],
|
|
254
|
+
pathLength: [0, 1],
|
|
255
|
+
pathOffset: [1, 0],
|
|
256
|
+
transition: {
|
|
257
|
+
duration: 0.6,
|
|
258
|
+
ease: "linear",
|
|
259
|
+
opacity: { duration: 0.1 }
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
};
|
|
263
|
+
var TwitterIcon = forwardRef2(
|
|
264
|
+
({ onMouseEnter, onMouseLeave, className, size, active, style, strokeWidth, ...props }, ref) => {
|
|
265
|
+
const controls = useAnimation2();
|
|
266
|
+
const isControlledRef = useRef2(false);
|
|
267
|
+
useImperativeHandle2(ref, () => {
|
|
268
|
+
isControlledRef.current = true;
|
|
269
|
+
return {
|
|
270
|
+
startAnimation: () => controls.start("animate"),
|
|
271
|
+
stopAnimation: () => controls.start("normal")
|
|
272
|
+
};
|
|
273
|
+
});
|
|
274
|
+
const handleMouseEnter = useCallback2(
|
|
275
|
+
(e) => {
|
|
276
|
+
if (isControlledRef.current) {
|
|
277
|
+
onMouseEnter?.(e);
|
|
278
|
+
} else {
|
|
279
|
+
controls.start("animate");
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
[controls, onMouseEnter]
|
|
283
|
+
);
|
|
284
|
+
const handleMouseLeave = useCallback2(
|
|
285
|
+
(e) => {
|
|
286
|
+
if (isControlledRef.current) {
|
|
287
|
+
onMouseLeave?.(e);
|
|
288
|
+
} else {
|
|
289
|
+
controls.start("normal");
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
[controls, onMouseLeave]
|
|
293
|
+
);
|
|
294
|
+
const wrap = useRef2(null);
|
|
295
|
+
const reduced = useReducedMotion2();
|
|
296
|
+
const [hosted, setHosted] = useState2(false);
|
|
297
|
+
useEffect2(() => {
|
|
298
|
+
const fake = {};
|
|
299
|
+
if (reduced) {
|
|
300
|
+
setHosted(true);
|
|
301
|
+
return;
|
|
302
|
+
}
|
|
303
|
+
if (active !== void 0) {
|
|
304
|
+
setHosted(true);
|
|
305
|
+
(active ? handleMouseEnter : handleMouseLeave)(fake);
|
|
306
|
+
return;
|
|
307
|
+
}
|
|
308
|
+
const host = wrap.current?.parentElement?.closest("button, a, [role=button], [role=menuitem], [role=tab], [role=switch], [role=radio], label");
|
|
309
|
+
setHosted(!!host);
|
|
310
|
+
if (!host) return;
|
|
311
|
+
const on = () => handleMouseEnter(fake);
|
|
312
|
+
const off = () => handleMouseLeave(fake);
|
|
313
|
+
host.addEventListener("pointerenter", on);
|
|
314
|
+
host.addEventListener("pointerleave", off);
|
|
315
|
+
return () => {
|
|
316
|
+
host.removeEventListener("pointerenter", on);
|
|
317
|
+
host.removeEventListener("pointerleave", off);
|
|
318
|
+
};
|
|
319
|
+
}, [active, reduced, handleMouseEnter, handleMouseLeave]);
|
|
320
|
+
return /* @__PURE__ */ jsx2(
|
|
321
|
+
"span",
|
|
322
|
+
{
|
|
323
|
+
ref: wrap,
|
|
324
|
+
className: cn("inline-grid size-6 shrink-0 place-items-center align-middle [&>svg]:size-full", className),
|
|
325
|
+
style: size ? { width: size, height: size, ...style } : style,
|
|
326
|
+
onMouseEnter: hosted ? void 0 : handleMouseEnter,
|
|
327
|
+
onMouseLeave: hosted ? void 0 : handleMouseLeave,
|
|
328
|
+
...props,
|
|
329
|
+
children: /* @__PURE__ */ jsx2(
|
|
330
|
+
"svg",
|
|
331
|
+
{
|
|
332
|
+
fill: "none",
|
|
333
|
+
height: size,
|
|
334
|
+
stroke: "currentColor",
|
|
335
|
+
strokeLinecap: "round",
|
|
336
|
+
strokeLinejoin: "round",
|
|
337
|
+
strokeWidth: strokeWidth ?? 2,
|
|
338
|
+
viewBox: "0 0 24 24",
|
|
339
|
+
width: size,
|
|
340
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
341
|
+
children: /* @__PURE__ */ jsx2(
|
|
342
|
+
motion2.path,
|
|
343
|
+
{
|
|
344
|
+
animate: controls,
|
|
345
|
+
d: "M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",
|
|
346
|
+
initial: "normal",
|
|
347
|
+
variants: PATH_VARIANTS2
|
|
348
|
+
}
|
|
349
|
+
)
|
|
350
|
+
}
|
|
351
|
+
)
|
|
352
|
+
}
|
|
353
|
+
);
|
|
354
|
+
}
|
|
355
|
+
);
|
|
356
|
+
TwitterIcon.displayName = "TwitterIcon";
|
|
357
|
+
|
|
358
|
+
// src/components/team-member-card/team-member-card.tsx
|
|
359
|
+
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
360
|
+
var ICONS = {
|
|
361
|
+
x: TwitterIcon,
|
|
362
|
+
linkedin: LinkedinIcon,
|
|
363
|
+
github: GithubIcon,
|
|
364
|
+
dribbble: DribbbleIcon,
|
|
365
|
+
email: MailCheckIcon
|
|
366
|
+
};
|
|
367
|
+
var NAMES = {
|
|
368
|
+
x: "X",
|
|
369
|
+
linkedin: "LinkedIn",
|
|
370
|
+
github: "GitHub",
|
|
371
|
+
dribbble: "Dribbble",
|
|
372
|
+
email: "Email"
|
|
373
|
+
};
|
|
374
|
+
var DEFAULT_SOCIALS = [
|
|
375
|
+
{ kind: "x", href: "https://x.com" },
|
|
376
|
+
{ kind: "linkedin", href: "https://linkedin.com" },
|
|
377
|
+
{ kind: "github", href: "https://github.com" },
|
|
378
|
+
{ kind: "dribbble", href: "https://dribbble.com" },
|
|
379
|
+
{ kind: "email", href: "mailto:hello@example.com" }
|
|
380
|
+
];
|
|
381
|
+
var GLIDE = [0.22, 1, 0.36, 1];
|
|
382
|
+
var TILT = { stiffness: 220, damping: 20, mass: 0.6 };
|
|
383
|
+
var CARD = {
|
|
384
|
+
hidden: { opacity: 0, y: 20 },
|
|
385
|
+
shown: {
|
|
386
|
+
opacity: 1,
|
|
387
|
+
y: 0,
|
|
388
|
+
transition: {
|
|
389
|
+
duration: 0.6,
|
|
390
|
+
ease: GLIDE,
|
|
391
|
+
staggerChildren: 0.07,
|
|
392
|
+
delayChildren: 0.15
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
};
|
|
396
|
+
var PANEL = {
|
|
397
|
+
closed: {
|
|
398
|
+
height: 0,
|
|
399
|
+
opacity: 0,
|
|
400
|
+
transition: {
|
|
401
|
+
height: { type: "spring", stiffness: 320, damping: 34 },
|
|
402
|
+
opacity: { duration: 0.15 },
|
|
403
|
+
staggerChildren: 0.03,
|
|
404
|
+
staggerDirection: -1
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
open: {
|
|
408
|
+
height: "auto",
|
|
409
|
+
opacity: 1,
|
|
410
|
+
transition: {
|
|
411
|
+
height: { type: "spring", stiffness: 240, damping: 28 },
|
|
412
|
+
opacity: { duration: 0.2 },
|
|
413
|
+
staggerChildren: 0.06,
|
|
414
|
+
delayChildren: 0.05
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
};
|
|
418
|
+
var REVEAL = {
|
|
419
|
+
closed: {
|
|
420
|
+
opacity: 0,
|
|
421
|
+
y: 12,
|
|
422
|
+
filter: "blur(4px)",
|
|
423
|
+
transition: { duration: 0.15 }
|
|
424
|
+
},
|
|
425
|
+
open: {
|
|
426
|
+
opacity: 1,
|
|
427
|
+
y: 0,
|
|
428
|
+
filter: "blur(0px)",
|
|
429
|
+
transition: { duration: 0.45, ease: GLIDE }
|
|
430
|
+
}
|
|
431
|
+
};
|
|
432
|
+
var ITEM = {
|
|
433
|
+
hidden: { opacity: 0, y: 10, filter: "blur(4px)" },
|
|
434
|
+
shown: {
|
|
435
|
+
opacity: 1,
|
|
436
|
+
y: 0,
|
|
437
|
+
filter: "blur(0px)",
|
|
438
|
+
transition: { duration: 0.5, ease: GLIDE }
|
|
439
|
+
}
|
|
440
|
+
};
|
|
441
|
+
function useLocalTime(timeZone) {
|
|
442
|
+
const fmt = React.useMemo(
|
|
443
|
+
() => new Intl.DateTimeFormat("en", {
|
|
444
|
+
hour: "numeric",
|
|
445
|
+
minute: "2-digit",
|
|
446
|
+
timeZone
|
|
447
|
+
}),
|
|
448
|
+
[timeZone]
|
|
449
|
+
);
|
|
450
|
+
const [now, setNow] = React.useState(() => /* @__PURE__ */ new Date());
|
|
451
|
+
React.useEffect(() => {
|
|
452
|
+
const t = window.setInterval(() => setNow(/* @__PURE__ */ new Date()), 15e3);
|
|
453
|
+
return () => window.clearInterval(t);
|
|
454
|
+
}, []);
|
|
455
|
+
return fmt.format(now);
|
|
456
|
+
}
|
|
457
|
+
var BAYER = [0, 8, 2, 10, 12, 4, 14, 6, 3, 11, 1, 9, 15, 7, 13, 5].map(
|
|
458
|
+
(v) => (v + 0.5) / 16
|
|
459
|
+
);
|
|
460
|
+
var STEPS = [0, 0, 0.16, 0.26, 0.38, 0.5, 0.62, 0.74, 0.86];
|
|
461
|
+
var hash = (x, y) => {
|
|
462
|
+
let h = Math.imul(x, 374761393) + Math.imul(y, 668265263);
|
|
463
|
+
h = Math.imul(h ^ h >>> 13, 1274126177);
|
|
464
|
+
return ((h ^ h >>> 16) >>> 0) / 4294967295;
|
|
465
|
+
};
|
|
466
|
+
var smooth = (t) => t * t * (3 - 2 * t);
|
|
467
|
+
var noise = (x, y) => {
|
|
468
|
+
const ix = Math.floor(x);
|
|
469
|
+
const iy = Math.floor(y);
|
|
470
|
+
const fx = smooth(x - ix);
|
|
471
|
+
const fy = smooth(y - iy);
|
|
472
|
+
const a = hash(ix, iy);
|
|
473
|
+
const b = hash(ix + 1, iy);
|
|
474
|
+
const c = hash(ix, iy + 1);
|
|
475
|
+
const d = hash(ix + 1, iy + 1);
|
|
476
|
+
return a + (b - a) * fx + (c - a) * fy + (a - b - c + d) * fx * fy;
|
|
477
|
+
};
|
|
478
|
+
var band = (lo, hi, v) => smooth(Math.min(1, Math.max(0, (v - lo) / (hi - lo))));
|
|
479
|
+
function PhotoPixels({
|
|
480
|
+
color,
|
|
481
|
+
quiet,
|
|
482
|
+
still,
|
|
483
|
+
cell,
|
|
484
|
+
shape,
|
|
485
|
+
speed,
|
|
486
|
+
area,
|
|
487
|
+
density,
|
|
488
|
+
opacity,
|
|
489
|
+
rest
|
|
490
|
+
}) {
|
|
491
|
+
const canvas = React.useRef(null);
|
|
492
|
+
const quietRef = React.useRef(quiet);
|
|
493
|
+
quietRef.current = quiet;
|
|
494
|
+
React.useEffect(() => {
|
|
495
|
+
const el = canvas.current;
|
|
496
|
+
const ctx = el.getContext("2d");
|
|
497
|
+
let w = 0;
|
|
498
|
+
let h = 0;
|
|
499
|
+
let raf = 0;
|
|
500
|
+
let visible = true;
|
|
501
|
+
let last = performance.now();
|
|
502
|
+
let time = 3;
|
|
503
|
+
let amount = quietRef.current ? rest : 1;
|
|
504
|
+
const phases = new Float32Array(4096).map(
|
|
505
|
+
(_, k) => hash(k, 17) * Math.PI * 2
|
|
506
|
+
);
|
|
507
|
+
const size = () => {
|
|
508
|
+
const dpr = Math.min(2, window.devicePixelRatio || 1);
|
|
509
|
+
w = el.clientWidth;
|
|
510
|
+
h = el.clientHeight;
|
|
511
|
+
el.width = Math.round(w * dpr);
|
|
512
|
+
el.height = Math.round(h * dpr);
|
|
513
|
+
ctx.setTransform(dpr, 0, 0, dpr, 0, 0);
|
|
514
|
+
};
|
|
515
|
+
const draw = () => {
|
|
516
|
+
ctx.clearRect(0, 0, w, h);
|
|
517
|
+
if (amount < 0.01) return;
|
|
518
|
+
ctx.fillStyle = color;
|
|
519
|
+
const cols = Math.ceil(w / cell);
|
|
520
|
+
const rows = Math.ceil(h / cell);
|
|
521
|
+
const t = time * speed;
|
|
522
|
+
const reach = new Float32Array(cols);
|
|
523
|
+
for (let i = 0; i < cols; i++) {
|
|
524
|
+
const x = i * cell;
|
|
525
|
+
const tongue = noise(x * 0.018 + 11, t * 0.45) * 0.7 + noise(x * 0.05, t * 0.9 + 4) * 0.3;
|
|
526
|
+
reach[i] = Math.min(1.2, (0.32 + 0.68 * tongue) * area);
|
|
527
|
+
}
|
|
528
|
+
for (let j = 0; j < rows; j++) {
|
|
529
|
+
for (let i = 0; i < cols; i++) {
|
|
530
|
+
const x = i * cell + cell / 2;
|
|
531
|
+
const y = j * cell + cell / 2;
|
|
532
|
+
const up = 1 - y / h;
|
|
533
|
+
const n = noise(x * 0.03, y * 0.03 + t * 1.4) * 0.6 + noise(x * 0.07 + 3, y * 0.07 + t * 2.6) * 0.4;
|
|
534
|
+
const heat = Math.max(0, 1 - up / Math.max(0.05, reach[i]));
|
|
535
|
+
let v = band(0.08, 0.9, Math.pow(heat, 1.3) * (0.4 + 1.1 * n) * density) * amount;
|
|
536
|
+
v *= 0.8 + 0.2 * Math.sin(t * 2.4 + phases[(j * cols + i) % phases.length]);
|
|
537
|
+
if (v < 0.04) continue;
|
|
538
|
+
const q = Math.min(
|
|
539
|
+
1,
|
|
540
|
+
v + (BAYER[(j & 3) * 4 + (i & 3)] - 0.5) * 0.32
|
|
541
|
+
);
|
|
542
|
+
const step = STEPS[Math.min(STEPS.length - 1, Math.floor(q * STEPS.length))];
|
|
543
|
+
if (!step) continue;
|
|
544
|
+
ctx.globalAlpha = (0.35 + Math.min(1, v) * 0.55) * Math.min(1, amount * 1.4) * opacity;
|
|
545
|
+
const s = cell * step;
|
|
546
|
+
if (shape === "circle") {
|
|
547
|
+
ctx.beginPath();
|
|
548
|
+
ctx.arc(x, y, s / 2, 0, Math.PI * 2);
|
|
549
|
+
ctx.fill();
|
|
550
|
+
} else if (shape === "diamond") {
|
|
551
|
+
const r = s * 0.62;
|
|
552
|
+
ctx.beginPath();
|
|
553
|
+
ctx.moveTo(x, y - r);
|
|
554
|
+
ctx.lineTo(x + r, y);
|
|
555
|
+
ctx.lineTo(x, y + r);
|
|
556
|
+
ctx.lineTo(x - r, y);
|
|
557
|
+
ctx.fill();
|
|
558
|
+
} else ctx.fillRect(x - s / 2, y - s / 2, s, s);
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
ctx.globalAlpha = 1;
|
|
562
|
+
};
|
|
563
|
+
const frame = (now) => {
|
|
564
|
+
raf = requestAnimationFrame(frame);
|
|
565
|
+
const dt = Math.min(0.05, Math.max(0, (now - last) / 1e3));
|
|
566
|
+
last = now;
|
|
567
|
+
if (!visible) return;
|
|
568
|
+
time += dt;
|
|
569
|
+
const target = quietRef.current ? rest : 1;
|
|
570
|
+
amount += (target - amount) * (1 - Math.pow(4e-3, dt));
|
|
571
|
+
draw();
|
|
572
|
+
};
|
|
573
|
+
size();
|
|
574
|
+
const ro = new ResizeObserver(() => {
|
|
575
|
+
size();
|
|
576
|
+
if (still) draw();
|
|
577
|
+
});
|
|
578
|
+
ro.observe(el);
|
|
579
|
+
const io = new IntersectionObserver(
|
|
580
|
+
([e]) => void (visible = !!e?.isIntersecting)
|
|
581
|
+
);
|
|
582
|
+
io.observe(el);
|
|
583
|
+
if (still) draw();
|
|
584
|
+
else raf = requestAnimationFrame(frame);
|
|
585
|
+
return () => {
|
|
586
|
+
cancelAnimationFrame(raf);
|
|
587
|
+
ro.disconnect();
|
|
588
|
+
io.disconnect();
|
|
589
|
+
};
|
|
590
|
+
}, [color, still, cell, shape, speed, area, density, opacity, rest]);
|
|
591
|
+
React.useEffect(() => {
|
|
592
|
+
if (!still) return;
|
|
593
|
+
const el = canvas.current;
|
|
594
|
+
if (!el) return;
|
|
595
|
+
el.style.opacity = quiet ? "0.15" : "1";
|
|
596
|
+
}, [quiet, still]);
|
|
597
|
+
return /* @__PURE__ */ jsx3(
|
|
598
|
+
"canvas",
|
|
599
|
+
{
|
|
600
|
+
ref: canvas,
|
|
601
|
+
"aria-hidden": true,
|
|
602
|
+
className: "pointer-events-none absolute inset-0 size-full transition-opacity duration-500"
|
|
603
|
+
}
|
|
604
|
+
);
|
|
605
|
+
}
|
|
606
|
+
var TeamMemberCard = React.forwardRef(function TeamMemberCard2({
|
|
607
|
+
name = "Maya Lindqvist",
|
|
608
|
+
role = "Head of Design",
|
|
609
|
+
photo = "https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=640&h=640&fit=crop&crop=faces",
|
|
610
|
+
location = "Stockholm",
|
|
611
|
+
timeZone = "Europe/Stockholm",
|
|
612
|
+
bio = "Leads product design and the design system. Happiest when a prototype finally feels right.",
|
|
613
|
+
socials = DEFAULT_SOCIALS,
|
|
614
|
+
pixels = true,
|
|
615
|
+
pixelColor = "#ffffff",
|
|
616
|
+
pixelSize = 6,
|
|
617
|
+
pixelShape = "square",
|
|
618
|
+
pixelSpeed = 1,
|
|
619
|
+
pixelArea = 1,
|
|
620
|
+
pixelDensity = 0.85,
|
|
621
|
+
pixelOpacity = 1,
|
|
622
|
+
pixelHover = 0.6,
|
|
623
|
+
defaultConnected = false,
|
|
624
|
+
onConnect,
|
|
625
|
+
className
|
|
626
|
+
}, ref) {
|
|
627
|
+
const root = React.useRef(null);
|
|
628
|
+
React.useImperativeHandle(ref, () => root.current);
|
|
629
|
+
const still = !!useReducedMotion3();
|
|
630
|
+
const inView = useInView(root, { once: true, amount: 0.3 });
|
|
631
|
+
const shown = inView || still;
|
|
632
|
+
const time = useLocalTime(timeZone);
|
|
633
|
+
const [connected, setConnected] = React.useState(defaultConnected);
|
|
634
|
+
const [hoverLink, setHoverLink] = React.useState(null);
|
|
635
|
+
const [pinHover, setPinHover] = React.useState(false);
|
|
636
|
+
const rx = useSpring(0, TILT);
|
|
637
|
+
const ry = useSpring(0, TILT);
|
|
638
|
+
const zoom = useSpring(1, TILT);
|
|
639
|
+
const gx = useSpring(50, TILT);
|
|
640
|
+
const gy = useSpring(50, TILT);
|
|
641
|
+
const shine = useMotionTemplate`radial-gradient(circle at ${gx}% ${gy}%, rgba(255,255,255,0.35), transparent 55%)`;
|
|
642
|
+
const onPhotoMove = (e) => {
|
|
643
|
+
if (still) return;
|
|
644
|
+
const r = e.currentTarget.getBoundingClientRect();
|
|
645
|
+
const px = (e.clientX - r.left) / r.width;
|
|
646
|
+
const py = (e.clientY - r.top) / r.height;
|
|
647
|
+
ry.set((px - 0.5) * 12);
|
|
648
|
+
rx.set(-(py - 0.5) * 10);
|
|
649
|
+
gx.set(px * 100);
|
|
650
|
+
gy.set(py * 100);
|
|
651
|
+
zoom.set(1.04);
|
|
652
|
+
};
|
|
653
|
+
const onPhotoLeave = () => {
|
|
654
|
+
rx.set(0);
|
|
655
|
+
ry.set(0);
|
|
656
|
+
zoom.set(1);
|
|
657
|
+
gx.set(50);
|
|
658
|
+
gy.set(50);
|
|
659
|
+
};
|
|
660
|
+
const [hovered, setHovered] = React.useState(false);
|
|
661
|
+
const [focused, setFocused] = React.useState(false);
|
|
662
|
+
const [tapped, setTapped] = React.useState(false);
|
|
663
|
+
const open = hovered || focused || tapped;
|
|
664
|
+
const lastPointer = React.useRef("mouse");
|
|
665
|
+
const toggle = () => {
|
|
666
|
+
setConnected((c) => {
|
|
667
|
+
onConnect?.(!c);
|
|
668
|
+
return !c;
|
|
669
|
+
});
|
|
670
|
+
};
|
|
671
|
+
return /* @__PURE__ */ jsxs2(
|
|
672
|
+
motion3.div,
|
|
673
|
+
{
|
|
674
|
+
ref: root,
|
|
675
|
+
variants: still ? void 0 : CARD,
|
|
676
|
+
initial: still ? false : "hidden",
|
|
677
|
+
animate: shown ? "shown" : "hidden",
|
|
678
|
+
onPointerEnter: (e) => {
|
|
679
|
+
lastPointer.current = e.pointerType;
|
|
680
|
+
if (e.pointerType !== "touch") setHovered(true);
|
|
681
|
+
},
|
|
682
|
+
onPointerLeave: (e) => {
|
|
683
|
+
if (e.pointerType !== "touch") setHovered(false);
|
|
684
|
+
},
|
|
685
|
+
onPointerDown: (e) => void (lastPointer.current = e.pointerType),
|
|
686
|
+
onClick: (e) => {
|
|
687
|
+
if (lastPointer.current !== "touch") return;
|
|
688
|
+
if (e.target.closest("a, button")) return;
|
|
689
|
+
setTapped((t) => !t);
|
|
690
|
+
},
|
|
691
|
+
onFocus: () => setFocused(true),
|
|
692
|
+
onBlur: (e) => {
|
|
693
|
+
if (!root.current?.contains(e.relatedTarget)) setFocused(false);
|
|
694
|
+
},
|
|
695
|
+
className: cn(
|
|
696
|
+
"w-[320px] max-w-full rounded-3xl bg-white p-3 text-[#242423] shadow-[0_1px_2px_rgba(0,0,0,0.04),0_12px_32px_-16px_rgba(0,0,0,0.18)] dark:bg-zinc-900 dark:text-zinc-100",
|
|
697
|
+
className
|
|
698
|
+
),
|
|
699
|
+
children: [
|
|
700
|
+
/* @__PURE__ */ jsx3(
|
|
701
|
+
"div",
|
|
702
|
+
{
|
|
703
|
+
style: { perspective: 800 },
|
|
704
|
+
onPointerMove: onPhotoMove,
|
|
705
|
+
onPointerLeave: onPhotoLeave,
|
|
706
|
+
children: /* @__PURE__ */ jsxs2(
|
|
707
|
+
motion3.div,
|
|
708
|
+
{
|
|
709
|
+
className: "relative aspect-square overflow-hidden rounded-[20px] bg-zinc-100 dark:bg-zinc-800",
|
|
710
|
+
style: { rotateX: rx, rotateY: ry },
|
|
711
|
+
initial: still ? false : { opacity: 0, scale: 1.08, filter: "blur(10px)" },
|
|
712
|
+
animate: shown ? { opacity: 1, scale: 1, filter: "blur(0px)" } : void 0,
|
|
713
|
+
transition: { duration: 0.9, ease: GLIDE },
|
|
714
|
+
children: [
|
|
715
|
+
/* @__PURE__ */ jsx3(
|
|
716
|
+
motion3.img,
|
|
717
|
+
{
|
|
718
|
+
src: photo,
|
|
719
|
+
alt: name,
|
|
720
|
+
draggable: false,
|
|
721
|
+
className: "size-full select-none object-cover",
|
|
722
|
+
style: { scale: zoom }
|
|
723
|
+
}
|
|
724
|
+
),
|
|
725
|
+
pixels && /* @__PURE__ */ jsx3(
|
|
726
|
+
PhotoPixels,
|
|
727
|
+
{
|
|
728
|
+
color: pixelColor,
|
|
729
|
+
quiet: open,
|
|
730
|
+
still,
|
|
731
|
+
cell: Math.max(3, pixelSize),
|
|
732
|
+
shape: pixelShape,
|
|
733
|
+
speed: pixelSpeed,
|
|
734
|
+
area: Math.max(0.3, pixelArea),
|
|
735
|
+
density: Math.max(0.2, pixelDensity),
|
|
736
|
+
opacity: Math.min(1, Math.max(0, pixelOpacity)),
|
|
737
|
+
rest: Math.min(1, Math.max(0, pixelHover))
|
|
738
|
+
}
|
|
739
|
+
),
|
|
740
|
+
!still && /* @__PURE__ */ jsx3(
|
|
741
|
+
motion3.span,
|
|
742
|
+
{
|
|
743
|
+
"aria-hidden": true,
|
|
744
|
+
className: "pointer-events-none absolute inset-0",
|
|
745
|
+
style: { backgroundImage: shine }
|
|
746
|
+
}
|
|
747
|
+
)
|
|
748
|
+
]
|
|
749
|
+
}
|
|
750
|
+
)
|
|
751
|
+
}
|
|
752
|
+
),
|
|
753
|
+
/* @__PURE__ */ jsxs2("div", { className: "px-2 pb-1 pt-4", children: [
|
|
754
|
+
/* @__PURE__ */ jsxs2(
|
|
755
|
+
motion3.div,
|
|
756
|
+
{
|
|
757
|
+
variants: ITEM,
|
|
758
|
+
className: "flex items-start justify-between gap-3",
|
|
759
|
+
children: [
|
|
760
|
+
/* @__PURE__ */ jsxs2("div", { className: "min-w-0", children: [
|
|
761
|
+
/* @__PURE__ */ jsx3("p", { className: "truncate text-lg font-semibold tracking-tight", children: name }),
|
|
762
|
+
/* @__PURE__ */ jsx3("p", { className: "truncate text-sm text-zinc-500 dark:text-zinc-400", children: role })
|
|
763
|
+
] }),
|
|
764
|
+
/* @__PURE__ */ jsx3(
|
|
765
|
+
motion3.button,
|
|
766
|
+
{
|
|
767
|
+
type: "button",
|
|
768
|
+
"aria-pressed": connected,
|
|
769
|
+
onClick: toggle,
|
|
770
|
+
whileTap: still ? void 0 : { scale: 0.95 },
|
|
771
|
+
className: cn(
|
|
772
|
+
"relative flex h-9 shrink-0 cursor-pointer items-center gap-1.5 overflow-hidden rounded-full pl-3 pr-3.5 text-sm font-medium outline-none transition-colors duration-300 focus-visible:ring-2 focus-visible:ring-zinc-400 focus-visible:ring-offset-2",
|
|
773
|
+
connected ? "bg-[#242423]/[0.06] text-[#242423] dark:bg-white/[0.08] dark:text-zinc-100" : "bg-[#242423] text-white dark:bg-zinc-100 dark:text-[#242423]"
|
|
774
|
+
),
|
|
775
|
+
children: /* @__PURE__ */ jsx3(AnimatePresence, { mode: "popLayout", initial: false, children: /* @__PURE__ */ jsxs2(
|
|
776
|
+
motion3.span,
|
|
777
|
+
{
|
|
778
|
+
className: "flex items-center gap-1.5",
|
|
779
|
+
initial: still ? false : { y: 16, opacity: 0 },
|
|
780
|
+
animate: { y: 0, opacity: 1 },
|
|
781
|
+
exit: still ? void 0 : { y: -16, opacity: 0 },
|
|
782
|
+
transition: { type: "spring", stiffness: 420, damping: 30 },
|
|
783
|
+
children: [
|
|
784
|
+
connected ? /* @__PURE__ */ jsx3(UserCheckIcon, { className: "size-4", active: !still }) : /* @__PURE__ */ jsx3(UserPlusIcon, { className: "size-4" }),
|
|
785
|
+
connected ? "Connected" : "Connect"
|
|
786
|
+
]
|
|
787
|
+
},
|
|
788
|
+
connected ? "on" : "off"
|
|
789
|
+
) })
|
|
790
|
+
}
|
|
791
|
+
)
|
|
792
|
+
]
|
|
793
|
+
}
|
|
794
|
+
),
|
|
795
|
+
/* @__PURE__ */ jsx3(AnimatePresence, { initial: false, children: open && /* @__PURE__ */ jsxs2(
|
|
796
|
+
motion3.div,
|
|
797
|
+
{
|
|
798
|
+
variants: still ? void 0 : PANEL,
|
|
799
|
+
initial: still ? false : "closed",
|
|
800
|
+
animate: "open",
|
|
801
|
+
exit: still ? void 0 : "closed",
|
|
802
|
+
className: "-mx-5 overflow-hidden px-5",
|
|
803
|
+
children: [
|
|
804
|
+
/* @__PURE__ */ jsxs2(
|
|
805
|
+
motion3.p,
|
|
806
|
+
{
|
|
807
|
+
variants: REVEAL,
|
|
808
|
+
onPointerEnter: () => setPinHover(true),
|
|
809
|
+
onPointerLeave: () => setPinHover(false),
|
|
810
|
+
className: "mt-3 flex items-center gap-1.5 text-sm text-zinc-500 dark:text-zinc-400",
|
|
811
|
+
children: [
|
|
812
|
+
/* @__PURE__ */ jsx3(MapPinIcon, { className: "size-4", active: pinHover }),
|
|
813
|
+
location,
|
|
814
|
+
/* @__PURE__ */ jsx3("span", { className: "text-zinc-300 dark:text-zinc-600", children: "\xB7" }),
|
|
815
|
+
/* @__PURE__ */ jsx3(AnimatePresence, { mode: "popLayout", initial: false, children: /* @__PURE__ */ jsx3(
|
|
816
|
+
motion3.span,
|
|
817
|
+
{
|
|
818
|
+
className: "tabular-nums",
|
|
819
|
+
initial: still ? false : { y: 8, opacity: 0 },
|
|
820
|
+
animate: { y: 0, opacity: 1 },
|
|
821
|
+
exit: still ? void 0 : { y: -8, opacity: 0 },
|
|
822
|
+
transition: { duration: 0.3, ease: GLIDE },
|
|
823
|
+
children: time
|
|
824
|
+
},
|
|
825
|
+
time
|
|
826
|
+
) }),
|
|
827
|
+
/* @__PURE__ */ jsx3("span", { children: "local time" })
|
|
828
|
+
]
|
|
829
|
+
}
|
|
830
|
+
),
|
|
831
|
+
bio && /* @__PURE__ */ jsx3(
|
|
832
|
+
motion3.p,
|
|
833
|
+
{
|
|
834
|
+
variants: REVEAL,
|
|
835
|
+
className: "mt-3 text-base leading-relaxed text-zinc-500 dark:text-zinc-400",
|
|
836
|
+
children: bio
|
|
837
|
+
}
|
|
838
|
+
),
|
|
839
|
+
/* @__PURE__ */ jsx3(
|
|
840
|
+
motion3.div,
|
|
841
|
+
{
|
|
842
|
+
variants: REVEAL,
|
|
843
|
+
className: "-mx-5 mt-4 flex items-center justify-center gap-2 border-t border-[#242423]/[0.07] px-5 pb-1 pt-4 dark:border-white/10",
|
|
844
|
+
children: socials.map((s, i) => {
|
|
845
|
+
const Icon = ICONS[s.kind];
|
|
846
|
+
const label = s.label ?? NAMES[s.kind];
|
|
847
|
+
return /* @__PURE__ */ jsxs2(
|
|
848
|
+
motion3.a,
|
|
849
|
+
{
|
|
850
|
+
href: s.href,
|
|
851
|
+
target: s.kind === "email" ? void 0 : "_blank",
|
|
852
|
+
rel: "noreferrer",
|
|
853
|
+
"aria-label": label,
|
|
854
|
+
onPointerEnter: () => setHoverLink(i),
|
|
855
|
+
onPointerLeave: () => setHoverLink((h) => h === i ? null : h),
|
|
856
|
+
onFocus: () => setHoverLink(i),
|
|
857
|
+
onBlur: () => setHoverLink((h) => h === i ? null : h),
|
|
858
|
+
whileHover: still ? void 0 : { y: -2 },
|
|
859
|
+
whileTap: still ? void 0 : { scale: 0.9 },
|
|
860
|
+
transition: {
|
|
861
|
+
type: "spring",
|
|
862
|
+
stiffness: 420,
|
|
863
|
+
damping: 22
|
|
864
|
+
},
|
|
865
|
+
className: "relative grid size-10 place-items-center rounded-full bg-[#242423]/[0.06] text-[#242423] outline-none transition-colors hover:bg-[#242423] hover:text-white focus-visible:ring-2 focus-visible:ring-zinc-400 dark:bg-white/[0.08] dark:text-zinc-100 dark:hover:bg-zinc-100 dark:hover:text-[#242423]",
|
|
866
|
+
children: [
|
|
867
|
+
/* @__PURE__ */ jsx3(Icon, { className: "size-[18px]" }),
|
|
868
|
+
/* @__PURE__ */ jsx3(AnimatePresence, { children: hoverLink === i && /* @__PURE__ */ jsx3(
|
|
869
|
+
motion3.span,
|
|
870
|
+
{
|
|
871
|
+
initial: { opacity: 0, y: 4, scale: 0.9 },
|
|
872
|
+
animate: { opacity: 1, y: 0, scale: 1 },
|
|
873
|
+
exit: { opacity: 0, y: 2, scale: 0.95 },
|
|
874
|
+
transition: {
|
|
875
|
+
type: "spring",
|
|
876
|
+
stiffness: 500,
|
|
877
|
+
damping: 30
|
|
878
|
+
},
|
|
879
|
+
className: "pointer-events-none absolute bottom-full left-1/2 mb-2 -translate-x-1/2 whitespace-nowrap rounded-full bg-[#242423] px-2.5 py-1 text-xs font-medium text-white dark:bg-zinc-100 dark:text-[#242423]",
|
|
880
|
+
children: label
|
|
881
|
+
}
|
|
882
|
+
) })
|
|
883
|
+
]
|
|
884
|
+
},
|
|
885
|
+
s.kind + i
|
|
886
|
+
);
|
|
887
|
+
})
|
|
888
|
+
}
|
|
889
|
+
)
|
|
890
|
+
]
|
|
891
|
+
},
|
|
892
|
+
"details"
|
|
893
|
+
) })
|
|
894
|
+
] })
|
|
895
|
+
]
|
|
896
|
+
}
|
|
897
|
+
);
|
|
898
|
+
});
|
|
899
|
+
|
|
900
|
+
export {
|
|
901
|
+
TeamMemberCard
|
|
902
|
+
};
|