motion-brew 0.0.0-stage → 0.1.1
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-5MP5QNFG.js +560 -0
- package/dist/chunk-62RBYLIN.js +128 -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-COKBF5PG.js +3291 -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-GYDTIVOY.js +934 -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-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-KE563QS4.js +425 -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-PFEHD3A2.js +409 -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-RWUARRFZ.js +267 -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-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-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-YLSWBUDC.js +373 -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 +13 -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,625 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
ArrowUpRightIcon
|
|
4
|
+
} from "./chunk-I7KTTOOJ.js";
|
|
5
|
+
import {
|
|
6
|
+
cn
|
|
7
|
+
} from "./chunk-2TQSHVXA.js";
|
|
8
|
+
|
|
9
|
+
// src/components/project-index/project-index.tsx
|
|
10
|
+
import * as React from "react";
|
|
11
|
+
import {
|
|
12
|
+
AnimatePresence,
|
|
13
|
+
motion,
|
|
14
|
+
useInView,
|
|
15
|
+
useReducedMotion
|
|
16
|
+
} from "motion/react";
|
|
17
|
+
import gsap from "gsap";
|
|
18
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
19
|
+
var img = (id) => `https://images.unsplash.com/${id}?w=1400&q=75&auto=format&fit=crop`;
|
|
20
|
+
var DEFAULT_PROJECTS = [
|
|
21
|
+
{
|
|
22
|
+
title: "Linden House",
|
|
23
|
+
meta: "Residential, 2026",
|
|
24
|
+
image: img("photo-1600585154340-be6161a56a0c"),
|
|
25
|
+
alt: "A modern house with a pool at dusk"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
title: "Quiet Rooms",
|
|
29
|
+
meta: "Interiors, 2025",
|
|
30
|
+
image: img("photo-1618221195710-dd6b41faaea6"),
|
|
31
|
+
alt: "A calm living room in soft daylight"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
title: "Harbour Studio",
|
|
35
|
+
meta: "Workplace, 2025",
|
|
36
|
+
image: img("photo-1497366216548-37526070297c"),
|
|
37
|
+
alt: "A bright open plan studio"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
title: "North Tower",
|
|
41
|
+
meta: "Architecture, 2024",
|
|
42
|
+
image: img("photo-1511818966892-d7d671e672a2"),
|
|
43
|
+
alt: "Glass towers rising into a grey sky"
|
|
44
|
+
}
|
|
45
|
+
];
|
|
46
|
+
var GLIDE = [0.22, 1, 0.36, 1];
|
|
47
|
+
var POP = { type: "spring", stiffness: 520, damping: 32 };
|
|
48
|
+
var MODES = {
|
|
49
|
+
pixel: 0,
|
|
50
|
+
grain: 1,
|
|
51
|
+
gradient: 2,
|
|
52
|
+
mirror: 3
|
|
53
|
+
};
|
|
54
|
+
var VERTEX = `attribute vec2 p;varying vec2 vUv;void main(){vUv=p*.5+.5;gl_Position=vec4(p,0.,1.);}`;
|
|
55
|
+
var FRAGMENT = `precision highp float;
|
|
56
|
+
varying vec2 vUv;
|
|
57
|
+
uniform sampler2D uA;uniform sampler2D uB;uniform vec2 uRes;uniform float uAspA;uniform float uAspB;
|
|
58
|
+
uniform float uP;uniform float uMode;uniform float uInt;uniform vec2 uOff;uniform float uTime;
|
|
59
|
+
float hash(vec2 p){p=fract(p*vec2(123.34,456.21));p+=dot(p,p+45.32);return fract(p.x*p.y);}
|
|
60
|
+
vec2 cover(vec2 uv,float ta,float zoom){float pa=uRes.x/uRes.y;vec2 s=ta>pa?vec2(pa/ta,1.):vec2(1.,ta/pa);return(uv-.5)*s/zoom+.5+uOff*s;}
|
|
61
|
+
vec3 A(vec2 uv,float z){return texture2D(uA,cover(uv,uAspA,z)).rgb;}
|
|
62
|
+
vec3 B(vec2 uv,float z){return texture2D(uB,cover(uv,uAspB,z)).rgb;}
|
|
63
|
+
void main(){
|
|
64
|
+
vec2 uv=vUv;float p=uP;float k=sin(3.14159*p);vec3 c;
|
|
65
|
+
float zA=1.04+.04*p;float zB=1.08-.04*p;
|
|
66
|
+
if(uMode<.5){
|
|
67
|
+
// Pixel: blocks grow, the image swaps at the coarsest point, then they shrink away.
|
|
68
|
+
float cells=mix(uRes.y,mix(14.,4.,uInt),pow(k,.6));
|
|
69
|
+
vec2 cell=vec2(cells*uRes.x/uRes.y,cells);
|
|
70
|
+
vec2 q=(floor(uv*cell)+.5)/cell;
|
|
71
|
+
c=mix(A(q,zA),B(q,zB),smoothstep(.4,.6,p));
|
|
72
|
+
}else if(uMode<1.5){
|
|
73
|
+
// Grain: a speckled dissolve, with a little film grain over the whole frame.
|
|
74
|
+
float n=hash(floor(uv*uRes/mix(1.,3.,uInt)));
|
|
75
|
+
float t=p*1.3-.15;
|
|
76
|
+
float m=smoothstep(t-.12,t+.12,n);
|
|
77
|
+
c=mix(B(uv,zB),A(uv,zA),m);
|
|
78
|
+
c+=(hash(uv*uRes+fract(uTime)*91.)-.5)*.22*uInt*k;
|
|
79
|
+
}else if(uMode<2.5){
|
|
80
|
+
// Gradient: a soft diagonal wipe that carries a band of light.
|
|
81
|
+
float d=uv.x*.75+(1.-uv.y)*.25;
|
|
82
|
+
float e=p*1.5-.25;
|
|
83
|
+
float m=smoothstep(e-.18,e+.18,d);
|
|
84
|
+
vec2 shift=vec2((1.-p)*.04,0.);
|
|
85
|
+
c=mix(B(uv+shift,zB),A(uv-shift*.5,zA),m);
|
|
86
|
+
float band=1.-abs(m-.5)*2.;
|
|
87
|
+
c+=band*band*(.25+.35*uInt);
|
|
88
|
+
}else{
|
|
89
|
+
// Mirror: the next image opens from the centre, the last folds outward over a bright seam.
|
|
90
|
+
float d=abs(uv.x-.5)*2.;
|
|
91
|
+
float r=p*1.02;
|
|
92
|
+
if(d<r){
|
|
93
|
+
c=B(vec2(.5+(uv.x-.5)*(1.-.12*(1.-p)),uv.y),zB);
|
|
94
|
+
}else{
|
|
95
|
+
float s=sign(uv.x-.5);
|
|
96
|
+
float f=(d-r)/max(1.-r,1e-3);
|
|
97
|
+
vec2 ua=vec2(.5+s*(.5-(1.-f)*.5*(1.-.5*p)),uv.y);
|
|
98
|
+
c=A(ua,zA)*(1.-.25*k);
|
|
99
|
+
}
|
|
100
|
+
float seam=exp(-abs(d-r)*mix(60.,22.,uInt))*k;
|
|
101
|
+
c+=seam*.6;
|
|
102
|
+
}
|
|
103
|
+
gl_FragColor=vec4(c,1.);}`;
|
|
104
|
+
var ProjectIndex = React.forwardRef(
|
|
105
|
+
function ProjectIndex2({
|
|
106
|
+
projects = DEFAULT_PROJECTS,
|
|
107
|
+
eyebrow = "Selected projects",
|
|
108
|
+
effect = "pixel",
|
|
109
|
+
duration = 0.9,
|
|
110
|
+
intensity = 0.6,
|
|
111
|
+
select = "hover",
|
|
112
|
+
imageSide = "right",
|
|
113
|
+
numbers = true,
|
|
114
|
+
meta = true,
|
|
115
|
+
autoplay = false,
|
|
116
|
+
interval = 4,
|
|
117
|
+
parallax = 0.5,
|
|
118
|
+
defaultIndex = 0,
|
|
119
|
+
onOpen,
|
|
120
|
+
className
|
|
121
|
+
}, ref) {
|
|
122
|
+
const still = !!useReducedMotion();
|
|
123
|
+
const id = React.useId();
|
|
124
|
+
const root = React.useRef(null);
|
|
125
|
+
React.useImperativeHandle(ref, () => root.current);
|
|
126
|
+
const canvas = React.useRef(null);
|
|
127
|
+
const panel = React.useRef(null);
|
|
128
|
+
const seen = useInView(root, { once: true, amount: 0.3 });
|
|
129
|
+
const visible = useInView(root, { amount: 0.05 });
|
|
130
|
+
const shown = seen || still;
|
|
131
|
+
const count = projects.length;
|
|
132
|
+
const [active, setActive] = React.useState(
|
|
133
|
+
() => Math.min(Math.max(0, defaultIndex), Math.max(0, count - 1))
|
|
134
|
+
);
|
|
135
|
+
const [hoverRow, setHoverRow] = React.useState(null);
|
|
136
|
+
const [inside, setInside] = React.useState(false);
|
|
137
|
+
const [webgl, setWebgl] = React.useState(true);
|
|
138
|
+
const params = React.useRef({
|
|
139
|
+
effect,
|
|
140
|
+
duration,
|
|
141
|
+
intensity,
|
|
142
|
+
parallax,
|
|
143
|
+
still
|
|
144
|
+
});
|
|
145
|
+
params.current = { effect, duration, intensity, parallax, still };
|
|
146
|
+
const lean = React.useRef({ x: 0, y: 0, tx: 0, ty: 0 });
|
|
147
|
+
const goTo = React.useRef(() => {
|
|
148
|
+
});
|
|
149
|
+
const pad = (n) => String(n).padStart(2, "0");
|
|
150
|
+
const current = projects[active];
|
|
151
|
+
React.useEffect(() => {
|
|
152
|
+
const el = canvas.current;
|
|
153
|
+
if (!el) return;
|
|
154
|
+
const gl = el.getContext("webgl", {
|
|
155
|
+
antialias: false,
|
|
156
|
+
premultipliedAlpha: false
|
|
157
|
+
});
|
|
158
|
+
if (!gl) {
|
|
159
|
+
setWebgl(false);
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
const compile = (type, src) => {
|
|
163
|
+
const s = gl.createShader(type);
|
|
164
|
+
gl.shaderSource(s, src);
|
|
165
|
+
gl.compileShader(s);
|
|
166
|
+
return s;
|
|
167
|
+
};
|
|
168
|
+
const prog = gl.createProgram();
|
|
169
|
+
gl.attachShader(prog, compile(gl.VERTEX_SHADER, VERTEX));
|
|
170
|
+
gl.attachShader(prog, compile(gl.FRAGMENT_SHADER, FRAGMENT));
|
|
171
|
+
gl.linkProgram(prog);
|
|
172
|
+
gl.useProgram(prog);
|
|
173
|
+
gl.bindBuffer(gl.ARRAY_BUFFER, gl.createBuffer());
|
|
174
|
+
gl.bufferData(
|
|
175
|
+
gl.ARRAY_BUFFER,
|
|
176
|
+
new Float32Array([-1, -1, 1, -1, -1, 1, 1, 1]),
|
|
177
|
+
gl.STATIC_DRAW
|
|
178
|
+
);
|
|
179
|
+
const loc = gl.getAttribLocation(prog, "p");
|
|
180
|
+
gl.enableVertexAttribArray(loc);
|
|
181
|
+
gl.vertexAttribPointer(loc, 2, gl.FLOAT, false, 0, 0);
|
|
182
|
+
const U = Object.fromEntries(
|
|
183
|
+
[
|
|
184
|
+
"uA",
|
|
185
|
+
"uB",
|
|
186
|
+
"uRes",
|
|
187
|
+
"uAspA",
|
|
188
|
+
"uAspB",
|
|
189
|
+
"uP",
|
|
190
|
+
"uMode",
|
|
191
|
+
"uInt",
|
|
192
|
+
"uOff",
|
|
193
|
+
"uTime"
|
|
194
|
+
].map((n) => [n, gl.getUniformLocation(prog, n)])
|
|
195
|
+
);
|
|
196
|
+
gl.uniform1i(U.uA, 0);
|
|
197
|
+
gl.uniform1i(U.uB, 1);
|
|
198
|
+
gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, true);
|
|
199
|
+
let dead = false;
|
|
200
|
+
const images = [];
|
|
201
|
+
const blank = new Uint8Array([236, 236, 234, 255]);
|
|
202
|
+
const texes = projects.map((pr) => {
|
|
203
|
+
const t = { tex: gl.createTexture(), aspect: 1.5 };
|
|
204
|
+
gl.bindTexture(gl.TEXTURE_2D, t.tex);
|
|
205
|
+
gl.texImage2D(
|
|
206
|
+
gl.TEXTURE_2D,
|
|
207
|
+
0,
|
|
208
|
+
gl.RGBA,
|
|
209
|
+
1,
|
|
210
|
+
1,
|
|
211
|
+
0,
|
|
212
|
+
gl.RGBA,
|
|
213
|
+
gl.UNSIGNED_BYTE,
|
|
214
|
+
blank
|
|
215
|
+
);
|
|
216
|
+
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR);
|
|
217
|
+
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR);
|
|
218
|
+
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE);
|
|
219
|
+
gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE);
|
|
220
|
+
const im = new Image();
|
|
221
|
+
im.crossOrigin = "anonymous";
|
|
222
|
+
im.decoding = "async";
|
|
223
|
+
images.push(im);
|
|
224
|
+
im.onload = () => {
|
|
225
|
+
if (dead) return;
|
|
226
|
+
gl.activeTexture(gl.TEXTURE2);
|
|
227
|
+
gl.bindTexture(gl.TEXTURE_2D, t.tex);
|
|
228
|
+
gl.texImage2D(
|
|
229
|
+
gl.TEXTURE_2D,
|
|
230
|
+
0,
|
|
231
|
+
gl.RGBA,
|
|
232
|
+
gl.RGBA,
|
|
233
|
+
gl.UNSIGNED_BYTE,
|
|
234
|
+
im
|
|
235
|
+
);
|
|
236
|
+
t.aspect = im.naturalWidth / im.naturalHeight;
|
|
237
|
+
draw();
|
|
238
|
+
};
|
|
239
|
+
im.src = pr.image;
|
|
240
|
+
return t;
|
|
241
|
+
});
|
|
242
|
+
const state = { from: active, to: active, p: 1, time: 0 };
|
|
243
|
+
let tween = null;
|
|
244
|
+
const draw = () => {
|
|
245
|
+
const dpr = Math.min(2, window.devicePixelRatio || 1);
|
|
246
|
+
const w = Math.max(1, Math.round(el.clientWidth * dpr));
|
|
247
|
+
const h = Math.max(1, Math.round(el.clientHeight * dpr));
|
|
248
|
+
if (el.width !== w || el.height !== h) {
|
|
249
|
+
el.width = w;
|
|
250
|
+
el.height = h;
|
|
251
|
+
}
|
|
252
|
+
const a = texes[state.from];
|
|
253
|
+
const b = texes[state.to];
|
|
254
|
+
if (!a || !b) return;
|
|
255
|
+
const pp = params.current;
|
|
256
|
+
gl.viewport(0, 0, w, h);
|
|
257
|
+
gl.activeTexture(gl.TEXTURE0);
|
|
258
|
+
gl.bindTexture(gl.TEXTURE_2D, a.tex);
|
|
259
|
+
gl.activeTexture(gl.TEXTURE1);
|
|
260
|
+
gl.bindTexture(gl.TEXTURE_2D, b.tex);
|
|
261
|
+
gl.uniform2f(U.uRes, w, h);
|
|
262
|
+
gl.uniform1f(U.uAspA, a.aspect);
|
|
263
|
+
gl.uniform1f(U.uAspB, b.aspect);
|
|
264
|
+
gl.uniform1f(U.uP, state.p);
|
|
265
|
+
gl.uniform1f(U.uMode, MODES[pp.effect]);
|
|
266
|
+
gl.uniform1f(U.uInt, pp.intensity);
|
|
267
|
+
gl.uniform2f(U.uOff, lean.current.x * 0.025, lean.current.y * 0.025);
|
|
268
|
+
gl.uniform1f(U.uTime, state.time);
|
|
269
|
+
gl.drawArrays(gl.TRIANGLE_STRIP, 0, 4);
|
|
270
|
+
};
|
|
271
|
+
goTo.current = (i) => {
|
|
272
|
+
if (i === state.to) return;
|
|
273
|
+
state.from = state.p > 0.5 ? state.to : state.from;
|
|
274
|
+
state.to = i;
|
|
275
|
+
state.p = 0;
|
|
276
|
+
tween?.kill();
|
|
277
|
+
const pp = params.current;
|
|
278
|
+
tween = gsap.to(state, {
|
|
279
|
+
p: 1,
|
|
280
|
+
duration: pp.still ? 0.15 : pp.duration,
|
|
281
|
+
ease: "power2.inOut",
|
|
282
|
+
onUpdate: draw,
|
|
283
|
+
onComplete: () => {
|
|
284
|
+
state.from = state.to;
|
|
285
|
+
draw();
|
|
286
|
+
}
|
|
287
|
+
});
|
|
288
|
+
};
|
|
289
|
+
const tick = (_t, dms) => {
|
|
290
|
+
if (document.hidden || !el.isConnected) return;
|
|
291
|
+
const l = lean.current;
|
|
292
|
+
const k = 1 - Math.exp(-(dms / 1e3) * 5);
|
|
293
|
+
const before = l.x + l.y;
|
|
294
|
+
l.x += (l.tx - l.x) * k;
|
|
295
|
+
l.y += (l.ty - l.y) * k;
|
|
296
|
+
state.time += dms / 1e3;
|
|
297
|
+
if (Math.abs(l.x + l.y - before) > 1e-4 || state.p < 1 && params.current.effect === "grain")
|
|
298
|
+
draw();
|
|
299
|
+
};
|
|
300
|
+
gsap.ticker.add(tick);
|
|
301
|
+
const ro = new ResizeObserver(draw);
|
|
302
|
+
ro.observe(el);
|
|
303
|
+
draw();
|
|
304
|
+
return () => {
|
|
305
|
+
dead = true;
|
|
306
|
+
images.forEach((im) => im.onload = null);
|
|
307
|
+
gsap.ticker.remove(tick);
|
|
308
|
+
ro.disconnect();
|
|
309
|
+
tween?.kill();
|
|
310
|
+
texes.forEach((t) => gl.deleteTexture(t.tex));
|
|
311
|
+
gl.deleteProgram(prog);
|
|
312
|
+
goTo.current = () => {
|
|
313
|
+
};
|
|
314
|
+
};
|
|
315
|
+
}, [projects.map((p) => p.image).join("|")]);
|
|
316
|
+
React.useEffect(() => {
|
|
317
|
+
goTo.current(active);
|
|
318
|
+
}, [active]);
|
|
319
|
+
React.useEffect(() => {
|
|
320
|
+
if (!autoplay || still || !visible || inside || count < 2) return;
|
|
321
|
+
const t = window.setTimeout(
|
|
322
|
+
() => setActive((a) => (a + 1) % count),
|
|
323
|
+
interval * 1e3
|
|
324
|
+
);
|
|
325
|
+
return () => window.clearTimeout(t);
|
|
326
|
+
}, [autoplay, still, visible, inside, count, interval, active]);
|
|
327
|
+
const open = (i) => {
|
|
328
|
+
const pr = projects[i];
|
|
329
|
+
if (!pr) return;
|
|
330
|
+
onOpen?.(pr, i);
|
|
331
|
+
};
|
|
332
|
+
const onKeyDown = (e) => {
|
|
333
|
+
if (e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
|
|
334
|
+
e.preventDefault();
|
|
335
|
+
const next = (active + (e.key === "ArrowDown" ? 1 : count - 1)) % count;
|
|
336
|
+
setActive(next);
|
|
337
|
+
root.current?.querySelector(`[data-row="${next}"]`)?.focus();
|
|
338
|
+
};
|
|
339
|
+
const enter = (delay) => ({
|
|
340
|
+
initial: still ? false : { opacity: 0, y: 10, filter: "blur(4px)" },
|
|
341
|
+
animate: shown ? { opacity: 1, y: 0, filter: "blur(0px)" } : void 0,
|
|
342
|
+
transition: { duration: 0.5, ease: GLIDE, delay: still ? 0 : delay }
|
|
343
|
+
});
|
|
344
|
+
const RowTag = (pr) => pr.href ? motion.a : motion.button;
|
|
345
|
+
return /* @__PURE__ */ jsx(
|
|
346
|
+
motion.div,
|
|
347
|
+
{
|
|
348
|
+
ref: root,
|
|
349
|
+
initial: still ? false : { opacity: 0, y: 18 },
|
|
350
|
+
animate: shown ? { opacity: 1, y: 0 } : void 0,
|
|
351
|
+
transition: { duration: 0.6, ease: GLIDE },
|
|
352
|
+
onPointerEnter: () => setInside(true),
|
|
353
|
+
onPointerLeave: () => {
|
|
354
|
+
setInside(false);
|
|
355
|
+
setHoverRow(null);
|
|
356
|
+
},
|
|
357
|
+
className: cn(
|
|
358
|
+
"@container relative mx-auto w-[760px] max-w-full rounded-[28px] bg-white p-2 text-[#242423] shadow-[0_1px_2px_rgba(0,0,0,0.04),0_12px_32px_-16px_rgba(0,0,0,0.18)]",
|
|
359
|
+
className
|
|
360
|
+
),
|
|
361
|
+
children: /* @__PURE__ */ jsxs(
|
|
362
|
+
"div",
|
|
363
|
+
{
|
|
364
|
+
className: cn(
|
|
365
|
+
"grid grid-cols-1 gap-2 @min-[640px]:grid-cols-[minmax(0,1fr)_minmax(0,1.25fr)]",
|
|
366
|
+
imageSide === "left" && "@min-[640px]:grid-cols-[minmax(0,1.25fr)_minmax(0,1fr)]"
|
|
367
|
+
),
|
|
368
|
+
children: [
|
|
369
|
+
/* @__PURE__ */ jsxs(
|
|
370
|
+
"div",
|
|
371
|
+
{
|
|
372
|
+
className: cn(
|
|
373
|
+
"order-2 flex flex-col px-2 pb-2 pt-4 @min-[640px]:pb-2",
|
|
374
|
+
imageSide === "left" ? "@min-[640px]:order-2" : "@min-[640px]:order-1"
|
|
375
|
+
),
|
|
376
|
+
children: [
|
|
377
|
+
/* @__PURE__ */ jsxs(
|
|
378
|
+
motion.div,
|
|
379
|
+
{
|
|
380
|
+
...enter(0.05),
|
|
381
|
+
className: "flex items-center justify-between px-3 pb-2 text-[12px] font-medium text-[#242423]/45",
|
|
382
|
+
children: [
|
|
383
|
+
/* @__PURE__ */ jsx("span", { children: eyebrow }),
|
|
384
|
+
/* @__PURE__ */ jsxs("span", { className: "tabular-nums", children: [
|
|
385
|
+
count,
|
|
386
|
+
" projects"
|
|
387
|
+
] })
|
|
388
|
+
]
|
|
389
|
+
}
|
|
390
|
+
),
|
|
391
|
+
/* @__PURE__ */ jsx(
|
|
392
|
+
"ul",
|
|
393
|
+
{
|
|
394
|
+
role: "list",
|
|
395
|
+
onKeyDown,
|
|
396
|
+
onPointerLeave: () => setHoverRow(null),
|
|
397
|
+
className: "flex flex-1 flex-col",
|
|
398
|
+
children: projects.map((pr, i) => {
|
|
399
|
+
const on = i === active;
|
|
400
|
+
const Tag = RowTag(pr);
|
|
401
|
+
return /* @__PURE__ */ jsx(
|
|
402
|
+
motion.li,
|
|
403
|
+
{
|
|
404
|
+
...enter(0.1 + i * 0.05),
|
|
405
|
+
className: "",
|
|
406
|
+
children: /* @__PURE__ */ jsxs(
|
|
407
|
+
Tag,
|
|
408
|
+
{
|
|
409
|
+
...pr.href ? { href: pr.href } : { type: "button" },
|
|
410
|
+
"data-row": i,
|
|
411
|
+
"aria-current": on ? "true" : void 0,
|
|
412
|
+
onPointerEnter: () => {
|
|
413
|
+
setHoverRow(i);
|
|
414
|
+
if (select === "hover") setActive(i);
|
|
415
|
+
},
|
|
416
|
+
onFocus: () => setActive(i),
|
|
417
|
+
onClick: (e) => {
|
|
418
|
+
if (select === "click" && !on) {
|
|
419
|
+
e.preventDefault();
|
|
420
|
+
setActive(i);
|
|
421
|
+
return;
|
|
422
|
+
}
|
|
423
|
+
open(i);
|
|
424
|
+
},
|
|
425
|
+
whileTap: still ? void 0 : { scale: 0.985 },
|
|
426
|
+
className: "group relative flex w-full cursor-pointer items-center gap-3 rounded-2xl px-3 py-2.5 text-left outline-none focus-visible:ring-2 focus-visible:ring-[#242423]/30",
|
|
427
|
+
children: [
|
|
428
|
+
(hoverRow ?? active) === i && /* @__PURE__ */ jsx(
|
|
429
|
+
motion.span,
|
|
430
|
+
{
|
|
431
|
+
layoutId: `${id}-row`,
|
|
432
|
+
transition: still ? { duration: 0 } : POP,
|
|
433
|
+
className: "absolute inset-0 rounded-2xl bg-[#242423]/[0.04]"
|
|
434
|
+
}
|
|
435
|
+
),
|
|
436
|
+
numbers && /* @__PURE__ */ jsx(
|
|
437
|
+
"span",
|
|
438
|
+
{
|
|
439
|
+
className: cn(
|
|
440
|
+
"relative w-5 shrink-0 self-start pt-0.5 text-[12px] font-medium tabular-nums transition-colors duration-300",
|
|
441
|
+
on ? "text-[#242423]" : "text-[#242423]/35"
|
|
442
|
+
),
|
|
443
|
+
children: pad(i + 1)
|
|
444
|
+
}
|
|
445
|
+
),
|
|
446
|
+
/* @__PURE__ */ jsxs(
|
|
447
|
+
motion.span,
|
|
448
|
+
{
|
|
449
|
+
className: "relative min-w-0 flex-1",
|
|
450
|
+
animate: { x: on && !still ? 2 : 0 },
|
|
451
|
+
transition: POP,
|
|
452
|
+
children: [
|
|
453
|
+
/* @__PURE__ */ jsx(
|
|
454
|
+
"span",
|
|
455
|
+
{
|
|
456
|
+
className: cn(
|
|
457
|
+
"block truncate text-[16px] font-medium leading-6 transition-colors duration-300",
|
|
458
|
+
on ? "text-[#242423]" : "text-[#242423]/45 group-hover:text-[#242423]/70"
|
|
459
|
+
),
|
|
460
|
+
children: pr.title
|
|
461
|
+
}
|
|
462
|
+
),
|
|
463
|
+
meta && pr.meta && /* @__PURE__ */ jsx(
|
|
464
|
+
"span",
|
|
465
|
+
{
|
|
466
|
+
className: cn(
|
|
467
|
+
"block truncate text-[12px] leading-4 transition-colors duration-300",
|
|
468
|
+
on ? "text-[#242423]/55" : "text-[#242423]/35"
|
|
469
|
+
),
|
|
470
|
+
children: pr.meta
|
|
471
|
+
}
|
|
472
|
+
),
|
|
473
|
+
autoplay && on && !still && !inside && /* @__PURE__ */ jsx(
|
|
474
|
+
motion.span,
|
|
475
|
+
{
|
|
476
|
+
"aria-hidden": true,
|
|
477
|
+
className: "absolute -bottom-1.5 left-0 h-px origin-left bg-[#242423]/30",
|
|
478
|
+
initial: { scaleX: 0 },
|
|
479
|
+
animate: { scaleX: 1 },
|
|
480
|
+
transition: { duration: interval, ease: "linear" },
|
|
481
|
+
style: { width: "100%" }
|
|
482
|
+
},
|
|
483
|
+
`bar-${active}`
|
|
484
|
+
)
|
|
485
|
+
]
|
|
486
|
+
}
|
|
487
|
+
),
|
|
488
|
+
/* @__PURE__ */ jsx(AnimatePresence, { initial: false, children: on && /* @__PURE__ */ jsx(
|
|
489
|
+
motion.span,
|
|
490
|
+
{
|
|
491
|
+
"aria-hidden": true,
|
|
492
|
+
initial: still ? { opacity: 0 } : { opacity: 0, scale: 0.4, rotate: -45 },
|
|
493
|
+
animate: { opacity: 1, scale: 1, rotate: 0 },
|
|
494
|
+
exit: still ? { opacity: 0 } : { opacity: 0, scale: 0.4, rotate: 45 },
|
|
495
|
+
transition: POP,
|
|
496
|
+
className: "relative grid size-6 shrink-0 place-items-center text-[#242423]",
|
|
497
|
+
children: /* @__PURE__ */ jsx(ArrowUpRightIcon, { className: "size-4" })
|
|
498
|
+
},
|
|
499
|
+
"arrow"
|
|
500
|
+
) })
|
|
501
|
+
]
|
|
502
|
+
}
|
|
503
|
+
)
|
|
504
|
+
},
|
|
505
|
+
`${pr.title}-${i}`
|
|
506
|
+
);
|
|
507
|
+
})
|
|
508
|
+
}
|
|
509
|
+
)
|
|
510
|
+
]
|
|
511
|
+
}
|
|
512
|
+
),
|
|
513
|
+
/* @__PURE__ */ jsxs(
|
|
514
|
+
motion.div,
|
|
515
|
+
{
|
|
516
|
+
...enter(0.15),
|
|
517
|
+
ref: panel,
|
|
518
|
+
onPointerMove: (e) => {
|
|
519
|
+
const r = e.currentTarget.getBoundingClientRect();
|
|
520
|
+
const k = still ? 0 : parallax;
|
|
521
|
+
lean.current.tx = ((e.clientX - r.left) / r.width * 2 - 1) * k;
|
|
522
|
+
lean.current.ty = -((e.clientY - r.top) / r.height * 2 - 1) * k;
|
|
523
|
+
},
|
|
524
|
+
onPointerLeave: () => {
|
|
525
|
+
lean.current.tx = 0;
|
|
526
|
+
lean.current.ty = 0;
|
|
527
|
+
},
|
|
528
|
+
className: cn(
|
|
529
|
+
"relative isolate order-1 aspect-[4/3] overflow-hidden rounded-[22px] bg-[#ececea] @min-[640px]:aspect-auto @min-[640px]:min-h-[340px]",
|
|
530
|
+
imageSide === "left" ? "@min-[640px]:order-1" : "@min-[640px]:order-2"
|
|
531
|
+
),
|
|
532
|
+
children: [
|
|
533
|
+
/* @__PURE__ */ jsx(
|
|
534
|
+
"canvas",
|
|
535
|
+
{
|
|
536
|
+
ref: canvas,
|
|
537
|
+
role: "img",
|
|
538
|
+
"aria-label": current ? current.alt ?? current.title : void 0,
|
|
539
|
+
className: "absolute inset-0 -z-10 size-full"
|
|
540
|
+
}
|
|
541
|
+
),
|
|
542
|
+
!webgl && current && /* @__PURE__ */ jsx(AnimatePresence, { initial: false, children: /* @__PURE__ */ jsx(
|
|
543
|
+
motion.img,
|
|
544
|
+
{
|
|
545
|
+
src: current.image,
|
|
546
|
+
alt: "",
|
|
547
|
+
initial: { opacity: 0 },
|
|
548
|
+
animate: { opacity: 1 },
|
|
549
|
+
exit: { opacity: 0 },
|
|
550
|
+
transition: { duration: 0.4 },
|
|
551
|
+
className: "absolute inset-0 -z-10 size-full object-cover"
|
|
552
|
+
},
|
|
553
|
+
current.image
|
|
554
|
+
) }),
|
|
555
|
+
/* @__PURE__ */ jsx(
|
|
556
|
+
"div",
|
|
557
|
+
{
|
|
558
|
+
"aria-hidden": true,
|
|
559
|
+
className: "pointer-events-none absolute inset-x-0 bottom-0 h-1/3 bg-gradient-to-t from-black/35 to-transparent"
|
|
560
|
+
}
|
|
561
|
+
),
|
|
562
|
+
current && /* @__PURE__ */ jsxs("div", { className: "absolute inset-x-0 bottom-0 flex items-end justify-between gap-3 p-4", children: [
|
|
563
|
+
/* @__PURE__ */ jsxs("div", { className: "min-w-0 text-white", children: [
|
|
564
|
+
/* @__PURE__ */ jsxs("p", { className: "text-[12px] font-medium text-white/70", children: [
|
|
565
|
+
"Project",
|
|
566
|
+
" ",
|
|
567
|
+
/* @__PURE__ */ jsx("span", { className: "relative inline-grid overflow-hidden align-bottom tabular-nums", children: /* @__PURE__ */ jsx(AnimatePresence, { mode: "popLayout", initial: false, children: /* @__PURE__ */ jsx(
|
|
568
|
+
motion.span,
|
|
569
|
+
{
|
|
570
|
+
initial: still ? { opacity: 0 } : { y: "100%", opacity: 0 },
|
|
571
|
+
animate: { y: 0, opacity: 1 },
|
|
572
|
+
exit: still ? { opacity: 0 } : { y: "-100%", opacity: 0 },
|
|
573
|
+
transition: { duration: 0.35, ease: GLIDE },
|
|
574
|
+
children: pad(active + 1)
|
|
575
|
+
},
|
|
576
|
+
active
|
|
577
|
+
) }) }),
|
|
578
|
+
" ",
|
|
579
|
+
"/ ",
|
|
580
|
+
pad(count)
|
|
581
|
+
] }),
|
|
582
|
+
/* @__PURE__ */ jsx("div", { className: "relative mt-1 overflow-hidden", children: /* @__PURE__ */ jsx(AnimatePresence, { mode: "popLayout", initial: false, children: /* @__PURE__ */ jsx(
|
|
583
|
+
motion.p,
|
|
584
|
+
{
|
|
585
|
+
initial: still ? { opacity: 0 } : { y: "60%", opacity: 0, filter: "blur(6px)" },
|
|
586
|
+
animate: { y: 0, opacity: 1, filter: "blur(0px)" },
|
|
587
|
+
exit: still ? { opacity: 0 } : { y: "-60%", opacity: 0, filter: "blur(6px)" },
|
|
588
|
+
transition: { duration: 0.5, ease: GLIDE },
|
|
589
|
+
className: "truncate text-[20px] font-medium leading-7 tracking-tight",
|
|
590
|
+
children: current.title
|
|
591
|
+
},
|
|
592
|
+
current.title
|
|
593
|
+
) }) })
|
|
594
|
+
] }),
|
|
595
|
+
/* @__PURE__ */ jsx(
|
|
596
|
+
motion.button,
|
|
597
|
+
{
|
|
598
|
+
type: "button",
|
|
599
|
+
"aria-label": `Open ${current.title}`,
|
|
600
|
+
onClick: () => {
|
|
601
|
+
open(active);
|
|
602
|
+
if (current.href) window.location.assign(current.href);
|
|
603
|
+
},
|
|
604
|
+
whileHover: still ? void 0 : { scale: 1.08 },
|
|
605
|
+
whileTap: still ? void 0 : { scale: 0.92 },
|
|
606
|
+
transition: POP,
|
|
607
|
+
className: "group grid size-9 shrink-0 cursor-pointer place-items-center rounded-full bg-white text-[#242423] shadow-[0_6px_16px_-8px_rgba(0,0,0,0.45)] outline-none focus-visible:ring-2 focus-visible:ring-white/70",
|
|
608
|
+
children: /* @__PURE__ */ jsx(ArrowUpRightIcon, { className: "size-4" })
|
|
609
|
+
}
|
|
610
|
+
)
|
|
611
|
+
] })
|
|
612
|
+
]
|
|
613
|
+
}
|
|
614
|
+
)
|
|
615
|
+
]
|
|
616
|
+
}
|
|
617
|
+
)
|
|
618
|
+
}
|
|
619
|
+
);
|
|
620
|
+
}
|
|
621
|
+
);
|
|
622
|
+
|
|
623
|
+
export {
|
|
624
|
+
ProjectIndex
|
|
625
|
+
};
|