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,596 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
ReceiptIcon
|
|
4
|
+
} from "./chunk-IYZOANPX.js";
|
|
5
|
+
import {
|
|
6
|
+
MessageCircleIcon
|
|
7
|
+
} from "./chunk-WFWO2EIW.js";
|
|
8
|
+
import {
|
|
9
|
+
BellIcon
|
|
10
|
+
} from "./chunk-7PS2W7PU.js";
|
|
11
|
+
import {
|
|
12
|
+
CalendarDaysIcon
|
|
13
|
+
} from "./chunk-JJEWOQYQ.js";
|
|
14
|
+
import {
|
|
15
|
+
MailCheckIcon
|
|
16
|
+
} from "./chunk-CEQ56RF6.js";
|
|
17
|
+
import {
|
|
18
|
+
cn
|
|
19
|
+
} from "./chunk-2TQSHVXA.js";
|
|
20
|
+
|
|
21
|
+
// src/components/flux-card/flux-card.tsx
|
|
22
|
+
import * as React from "react";
|
|
23
|
+
import {
|
|
24
|
+
AnimatePresence,
|
|
25
|
+
motion,
|
|
26
|
+
useAnimationControls,
|
|
27
|
+
useInView,
|
|
28
|
+
useReducedMotion
|
|
29
|
+
} from "motion/react";
|
|
30
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
31
|
+
var DEFAULT_PINGS = [
|
|
32
|
+
{ label: "Maya: quick question?", icon: "message" },
|
|
33
|
+
{ label: "Standup in 5 min", icon: "calendar" },
|
|
34
|
+
{ label: "3 new emails", icon: "mail" },
|
|
35
|
+
{ label: "Invoice #2041 paid", icon: "receipt" },
|
|
36
|
+
{ label: "Build finished", icon: "bell" }
|
|
37
|
+
];
|
|
38
|
+
var ICONS = {
|
|
39
|
+
message: MessageCircleIcon,
|
|
40
|
+
calendar: CalendarDaysIcon,
|
|
41
|
+
mail: MailCheckIcon,
|
|
42
|
+
bell: BellIcon,
|
|
43
|
+
receipt: ReceiptIcon
|
|
44
|
+
};
|
|
45
|
+
var DEFAULT_COLORS = [
|
|
46
|
+
"#ff4a12",
|
|
47
|
+
"#ff8a3d",
|
|
48
|
+
"#ffc48c",
|
|
49
|
+
"#ffeedd"
|
|
50
|
+
];
|
|
51
|
+
var GLIDE = [0.22, 1, 0.36, 1];
|
|
52
|
+
var VERTEX = `attribute vec2 p;void main(){gl_Position=vec4(p,0.,1.);}`;
|
|
53
|
+
var FRAGMENT = `precision highp float;
|
|
54
|
+
uniform vec2 r;uniform float t;uniform float now;uniform float cell;uniform float dith;
|
|
55
|
+
uniform vec3 mf;uniform float rad;uniform vec3 rp;uniform float dpr;
|
|
56
|
+
uniform vec3 c0;uniform vec3 c1;uniform vec3 c2;uniform vec3 c3;uniform vec3 ca;
|
|
57
|
+
float hash(vec2 p){p=fract(p*vec2(123.34,456.21));p+=dot(p,p+45.32);return fract(p.x*p.y);}
|
|
58
|
+
float vnoise(vec2 p){vec2 i=floor(p),f=fract(p);vec2 u=f*f*(3.-2.*f);
|
|
59
|
+
return mix(mix(hash(i),hash(i+vec2(1.,0.)),u.x),mix(hash(i+vec2(0.,1.)),hash(i+1.),u.x),u.y);}
|
|
60
|
+
float fbm(vec2 p){float v=0.,a=.5;for(int i=0;i<4;i++){v+=a*vnoise(p);p*=2.03;a*=.5;}return v;}
|
|
61
|
+
float b2(vec2 a){a=floor(a);return fract(a.x/2.+a.y*a.y*.75);}
|
|
62
|
+
float b4(vec2 a){return b2(.5*a)*.25+b2(a);}
|
|
63
|
+
float b8(vec2 a){return b4(.5*a)*.25+b2(a);}
|
|
64
|
+
void main(){
|
|
65
|
+
float cs=cell*dpr;
|
|
66
|
+
vec2 id=floor(gl_FragCoord.xy/cs);
|
|
67
|
+
vec2 c=(id+.5)*cs;
|
|
68
|
+
vec2 lp=gl_FragCoord.xy-c;
|
|
69
|
+
// The negative field: strongest at the pointer, gone by its reach.
|
|
70
|
+
vec2 dm=c-mf.xy;float dist=length(dm);float reach=rad*dpr;
|
|
71
|
+
float field=mf.z*exp(-pow(dist/reach,2.)*1.8);
|
|
72
|
+
float rim=mf.z*exp(-pow((dist-reach*.62)/(reach*.22),2.));
|
|
73
|
+
vec2 src=c-normalize(dm+1e-4)*field*reach*.55;
|
|
74
|
+
// A press: a ring that travels out and fades.
|
|
75
|
+
float age=now-rp.z;float dr=length(c-rp.xy);
|
|
76
|
+
float wave=rp.z<0.?0.:exp(-pow((dr-age*520.*dpr)/(46.*dpr),2.))*exp(-age*1.6);
|
|
77
|
+
vec2 uv=src/r;float asp=r.x/r.y;vec2 p=vec2(uv.x*asp,uv.y);
|
|
78
|
+
vec2 q=vec2(fbm(p*1.6+vec2(0.,t*.12)),fbm(p*1.6+vec2(5.2,1.3)-vec2(t*.1,0.)));
|
|
79
|
+
vec2 w=p+(q-.5)*.55;
|
|
80
|
+
vec2 home=vec2(.18*asp,-.1)+vec2(sin(t*.27),cos(t*.21))*.05;
|
|
81
|
+
float f=1.-smoothstep(.0,.95,length(w-home)+(fbm(w*2.2+t*.05)-.5)*.25);
|
|
82
|
+
vec2 a2=vec2(.95*asp,.02)+vec2(sin(t*.31),cos(t*.23))*.07;
|
|
83
|
+
float f2=1.-smoothstep(.0,.62,length(w-a2)+(fbm(w*2.6-t*.06)-.5)*.3);
|
|
84
|
+
float bay=(b8(id)-.5)*dith;
|
|
85
|
+
float lv=floor(clamp(f*4.+bay+wave*.8+rim*.6,0.,4.));
|
|
86
|
+
vec3 col=lv<.5?vec3(1.):lv<1.5?c3:lv<2.5?c2:lv<3.5?c1:c0;
|
|
87
|
+
float al=floor(clamp(f2*3.+bay,0.,3.))/3.;
|
|
88
|
+
// Two inks, never blended: a square is either the ramp or the accent.
|
|
89
|
+
if(al>0.&&al*4.>=lv)col=mix(vec3(1.),ca,.3+al*.7);
|
|
90
|
+
// Square size: a small gap, shrinking to nothing in the field, swelling on the rim and the wave.
|
|
91
|
+
float s=.84*(1.-smoothstep(.1,.85,field))+rim*.12+wave*.2;
|
|
92
|
+
s=clamp(s,0.,.98);
|
|
93
|
+
vec2 bx=abs(lp)-vec2(s*cs*.5-cs*.12);
|
|
94
|
+
float sd=length(max(bx,0.))+min(max(bx.x,bx.y),0.)-cs*.12;
|
|
95
|
+
float inside=1.-smoothstep(-.6,.6,sd);
|
|
96
|
+
if(lv<.5&&al<.01)inside=0.;
|
|
97
|
+
gl_FragColor=vec4(mix(vec3(1.),col,inside),1.);}`;
|
|
98
|
+
var rgb = (hex) => {
|
|
99
|
+
const h = hex.replace("#", "");
|
|
100
|
+
const full = h.length === 3 ? h.split("").map((c) => c + c).join("") : h;
|
|
101
|
+
const n = parseInt(full, 16);
|
|
102
|
+
return [(n >> 16 & 255) / 255, (n >> 8 & 255) / 255, (n & 255) / 255];
|
|
103
|
+
};
|
|
104
|
+
var fmt = (s) => `${Math.floor(s / 60)}:${String(Math.floor(s % 60)).padStart(2, "0")}`;
|
|
105
|
+
var SHIELD = 92;
|
|
106
|
+
var FluxCard = React.forwardRef(
|
|
107
|
+
function FluxCard2({
|
|
108
|
+
title = "Keep the noise out",
|
|
109
|
+
description = "Focus mode holds pings, calls and mail at the edge until your block ends. Nothing gets lost, it just waits.",
|
|
110
|
+
label = "Deep work",
|
|
111
|
+
minutes = 25,
|
|
112
|
+
pings = DEFAULT_PINGS,
|
|
113
|
+
colors = DEFAULT_COLORS,
|
|
114
|
+
accent = "#5b5bff",
|
|
115
|
+
pixel = 10,
|
|
116
|
+
dither = 0.6,
|
|
117
|
+
field = 0.8,
|
|
118
|
+
radius = 110,
|
|
119
|
+
speed = 0.6,
|
|
120
|
+
className
|
|
121
|
+
}, ref) {
|
|
122
|
+
const still = !!useReducedMotion();
|
|
123
|
+
const root = React.useRef(null);
|
|
124
|
+
React.useImperativeHandle(ref, () => root.current);
|
|
125
|
+
const canvas = React.useRef(null);
|
|
126
|
+
const stage = React.useRef(null);
|
|
127
|
+
const pills = React.useRef([]);
|
|
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 list = pings.slice(0, 6);
|
|
132
|
+
const params = React.useRef({
|
|
133
|
+
pixel,
|
|
134
|
+
dither,
|
|
135
|
+
field,
|
|
136
|
+
radius,
|
|
137
|
+
speed,
|
|
138
|
+
colors,
|
|
139
|
+
accent
|
|
140
|
+
});
|
|
141
|
+
params.current = { pixel, dither, field, radius, speed, colors, accent };
|
|
142
|
+
const pointer = React.useRef({ x: -999, y: -999, on: 0, target: 0 });
|
|
143
|
+
const wave = React.useRef({ x: 0, y: 0, at: -1 });
|
|
144
|
+
const clock = React.useRef({ t: 0, now: 0, last: 0 });
|
|
145
|
+
const bodies = React.useRef([]);
|
|
146
|
+
const [held, setHeld] = React.useState(still ? 12 : 9);
|
|
147
|
+
const [pulse, setPulse] = React.useState(0);
|
|
148
|
+
const [struck, setStruck] = React.useState(null);
|
|
149
|
+
const [left, setLeft] = React.useState(minutes * 60);
|
|
150
|
+
React.useEffect(() => setLeft(minutes * 60), [minutes]);
|
|
151
|
+
React.useEffect(() => {
|
|
152
|
+
if (still || !seen || !visible) return;
|
|
153
|
+
const t = window.setInterval(
|
|
154
|
+
() => setLeft((s) => s <= 1 ? minutes * 60 : s - 1),
|
|
155
|
+
1e3
|
|
156
|
+
);
|
|
157
|
+
return () => window.clearInterval(t);
|
|
158
|
+
}, [still, seen, visible, minutes]);
|
|
159
|
+
const ripple = React.useCallback((x, y) => {
|
|
160
|
+
wave.current = { x, y, at: clock.current.now };
|
|
161
|
+
}, []);
|
|
162
|
+
const spawn = React.useCallback((b, w, h) => {
|
|
163
|
+
const a = (-0.15 + Math.random() * 1.3) * Math.PI;
|
|
164
|
+
b.x = Math.cos(a) * (w * 0.62);
|
|
165
|
+
b.y = Math.sin(a) * (h * 0.62);
|
|
166
|
+
const sp = 70 + Math.random() * 45;
|
|
167
|
+
const n = Math.hypot(b.x, b.y) || 1;
|
|
168
|
+
const side = (Math.random() - 0.5) * 0.7;
|
|
169
|
+
b.vx = -b.x / n * sp + -b.y / n * sp * side;
|
|
170
|
+
b.vy = -b.y / n * sp + b.x / n * sp * side;
|
|
171
|
+
b.age = 0;
|
|
172
|
+
b.hit = false;
|
|
173
|
+
}, []);
|
|
174
|
+
const resting = React.useCallback((i, n) => {
|
|
175
|
+
const a = -Math.PI / 2 + i / n * Math.PI * 2 + 0.4;
|
|
176
|
+
return { x: Math.cos(a) * (SHIELD + 58), y: Math.sin(a) * (SHIELD + 22) };
|
|
177
|
+
}, []);
|
|
178
|
+
React.useEffect(() => {
|
|
179
|
+
bodies.current = list.map((_, i) => {
|
|
180
|
+
const r = resting(i, list.length);
|
|
181
|
+
return {
|
|
182
|
+
x: r.x,
|
|
183
|
+
y: r.y,
|
|
184
|
+
vx: 0,
|
|
185
|
+
vy: 0,
|
|
186
|
+
age: 0,
|
|
187
|
+
wait: still ? 0 : 0.4 + i * 1.3,
|
|
188
|
+
hit: false
|
|
189
|
+
};
|
|
190
|
+
});
|
|
191
|
+
}, [list.length, still]);
|
|
192
|
+
React.useEffect(() => {
|
|
193
|
+
const el = canvas.current;
|
|
194
|
+
if (!el) return;
|
|
195
|
+
const gl = el.getContext("webgl", {
|
|
196
|
+
antialias: false,
|
|
197
|
+
premultipliedAlpha: false
|
|
198
|
+
});
|
|
199
|
+
let draw = () => {
|
|
200
|
+
};
|
|
201
|
+
if (!gl) {
|
|
202
|
+
const c = params.current.colors;
|
|
203
|
+
el.style.background = `radial-gradient(60% 50% at 95% 100%, ${params.current.accent}, transparent 70%), radial-gradient(120% 80% at 15% 105%, ${c[0]}, ${c[1]} 30%, ${c[2]} 50%, #fff 75%)`;
|
|
204
|
+
} else {
|
|
205
|
+
const compile = (type, src) => {
|
|
206
|
+
const s = gl.createShader(type);
|
|
207
|
+
gl.shaderSource(s, src);
|
|
208
|
+
gl.compileShader(s);
|
|
209
|
+
return s;
|
|
210
|
+
};
|
|
211
|
+
const prog = gl.createProgram();
|
|
212
|
+
gl.attachShader(prog, compile(gl.VERTEX_SHADER, VERTEX));
|
|
213
|
+
gl.attachShader(prog, compile(gl.FRAGMENT_SHADER, FRAGMENT));
|
|
214
|
+
gl.linkProgram(prog);
|
|
215
|
+
gl.useProgram(prog);
|
|
216
|
+
gl.bindBuffer(gl.ARRAY_BUFFER, gl.createBuffer());
|
|
217
|
+
gl.bufferData(
|
|
218
|
+
gl.ARRAY_BUFFER,
|
|
219
|
+
new Float32Array([-1, -1, 1, -1, -1, 1, 1, 1]),
|
|
220
|
+
gl.STATIC_DRAW
|
|
221
|
+
);
|
|
222
|
+
const loc = gl.getAttribLocation(prog, "p");
|
|
223
|
+
gl.enableVertexAttribArray(loc);
|
|
224
|
+
gl.vertexAttribPointer(loc, 2, gl.FLOAT, false, 0, 0);
|
|
225
|
+
const u = (n) => gl.getUniformLocation(prog, n);
|
|
226
|
+
const U = {
|
|
227
|
+
r: u("r"),
|
|
228
|
+
t: u("t"),
|
|
229
|
+
now: u("now"),
|
|
230
|
+
cell: u("cell"),
|
|
231
|
+
dith: u("dith"),
|
|
232
|
+
mf: u("mf"),
|
|
233
|
+
rad: u("rad"),
|
|
234
|
+
rp: u("rp"),
|
|
235
|
+
dpr: u("dpr"),
|
|
236
|
+
c0: u("c0"),
|
|
237
|
+
c1: u("c1"),
|
|
238
|
+
c2: u("c2"),
|
|
239
|
+
c3: u("c3"),
|
|
240
|
+
ca: u("ca")
|
|
241
|
+
};
|
|
242
|
+
draw = () => {
|
|
243
|
+
const dpr = Math.min(2, window.devicePixelRatio || 1);
|
|
244
|
+
const w = Math.max(1, Math.round(el.clientWidth * dpr));
|
|
245
|
+
const h = Math.max(1, Math.round(el.clientHeight * dpr));
|
|
246
|
+
if (el.width !== w || el.height !== h) {
|
|
247
|
+
el.width = w;
|
|
248
|
+
el.height = h;
|
|
249
|
+
}
|
|
250
|
+
const p = params.current;
|
|
251
|
+
const ptr = pointer.current;
|
|
252
|
+
const wv = wave.current;
|
|
253
|
+
const sx = w / Math.max(1, el.clientWidth);
|
|
254
|
+
gl.viewport(0, 0, w, h);
|
|
255
|
+
gl.uniform2f(U.r, w, h);
|
|
256
|
+
gl.uniform1f(U.t, clock.current.t);
|
|
257
|
+
gl.uniform1f(U.now, clock.current.now);
|
|
258
|
+
gl.uniform1f(U.cell, Math.max(6, Math.min(24, p.pixel)));
|
|
259
|
+
gl.uniform1f(U.dith, p.dither);
|
|
260
|
+
gl.uniform1f(U.dpr, sx);
|
|
261
|
+
gl.uniform3f(U.mf, ptr.x * sx, h - ptr.y * sx, ptr.on * p.field);
|
|
262
|
+
gl.uniform1f(U.rad, p.radius);
|
|
263
|
+
gl.uniform3f(U.rp, wv.x * sx, h - wv.y * sx, wv.at);
|
|
264
|
+
gl.uniform3fv(U.c0, rgb(p.colors[0]));
|
|
265
|
+
gl.uniform3fv(U.c1, rgb(p.colors[1]));
|
|
266
|
+
gl.uniform3fv(U.c2, rgb(p.colors[2]));
|
|
267
|
+
gl.uniform3fv(U.c3, rgb(p.colors[3]));
|
|
268
|
+
gl.uniform3fv(U.ca, rgb(p.accent));
|
|
269
|
+
gl.drawArrays(gl.TRIANGLE_STRIP, 0, 4);
|
|
270
|
+
};
|
|
271
|
+
}
|
|
272
|
+
const place = () => {
|
|
273
|
+
bodies.current.forEach((b, i) => {
|
|
274
|
+
const node = pills.current[i];
|
|
275
|
+
if (!node) return;
|
|
276
|
+
const st = stage.current;
|
|
277
|
+
const w = st?.clientWidth ?? 400;
|
|
278
|
+
const h = st?.clientHeight ?? 300;
|
|
279
|
+
const fadeIn = still ? 1 : Math.min(1, b.age * 2.5);
|
|
280
|
+
const edge = Math.max(
|
|
281
|
+
Math.abs(b.x) / (w * 0.6),
|
|
282
|
+
Math.abs(b.y) / (h * 0.6)
|
|
283
|
+
);
|
|
284
|
+
const top = Math.max(0, Math.min(1, (b.y + h / 2) / 36));
|
|
285
|
+
const fadeOut = still ? 1 : Math.max(0, Math.min(1, (1.08 - edge) * 4));
|
|
286
|
+
const tilt = Math.max(-8, Math.min(8, b.vx * 0.04));
|
|
287
|
+
node.style.opacity = String(
|
|
288
|
+
b.wait > 0 ? 0 : fadeIn * fadeOut * (still ? 1 : top)
|
|
289
|
+
);
|
|
290
|
+
node.style.transform = `translate(-50%, -50%) translate(${b.x}px, ${b.y}px) rotate(${tilt}deg)`;
|
|
291
|
+
});
|
|
292
|
+
};
|
|
293
|
+
if (still || !visible) {
|
|
294
|
+
clock.current.t = 3;
|
|
295
|
+
draw();
|
|
296
|
+
place();
|
|
297
|
+
return;
|
|
298
|
+
}
|
|
299
|
+
let raf = 0;
|
|
300
|
+
clock.current.last = performance.now();
|
|
301
|
+
const frame = (ms) => {
|
|
302
|
+
raf = requestAnimationFrame(frame);
|
|
303
|
+
if (document.hidden) return;
|
|
304
|
+
const dt = Math.min(0.05, (ms - clock.current.last) / 1e3);
|
|
305
|
+
clock.current.last = ms;
|
|
306
|
+
clock.current.now += dt;
|
|
307
|
+
clock.current.t += dt * params.current.speed;
|
|
308
|
+
const ptr = pointer.current;
|
|
309
|
+
ptr.on += (ptr.target - ptr.on) * (1 - Math.exp(-dt * 6));
|
|
310
|
+
const st = stage.current;
|
|
311
|
+
const card = root.current;
|
|
312
|
+
if (st && card && seen) {
|
|
313
|
+
const w = st.clientWidth;
|
|
314
|
+
const h = st.clientHeight;
|
|
315
|
+
const px = ptr.x - st.offsetLeft - w / 2;
|
|
316
|
+
const py = ptr.y - st.offsetTop - h / 2;
|
|
317
|
+
bodies.current.forEach((b, i) => {
|
|
318
|
+
if (b.wait > 0) {
|
|
319
|
+
b.wait -= dt;
|
|
320
|
+
if (b.wait <= 0) spawn(b, w, h);
|
|
321
|
+
return;
|
|
322
|
+
}
|
|
323
|
+
b.age += dt;
|
|
324
|
+
let fx = 0;
|
|
325
|
+
let fy = 0;
|
|
326
|
+
const d = Math.hypot(b.x, b.y) || 1;
|
|
327
|
+
const nx = b.x / d;
|
|
328
|
+
const ny = b.y / d;
|
|
329
|
+
const reach = SHIELD + 18 + 40 * Math.abs(nx);
|
|
330
|
+
if (d < reach) {
|
|
331
|
+
const k = (reach - d) * 60;
|
|
332
|
+
fx += nx * k;
|
|
333
|
+
fy += ny * k;
|
|
334
|
+
if (!b.hit) {
|
|
335
|
+
b.hit = true;
|
|
336
|
+
setHeld((n) => n + 1);
|
|
337
|
+
setPulse((n) => n + 1);
|
|
338
|
+
setStruck(i);
|
|
339
|
+
ripple(
|
|
340
|
+
st.offsetLeft + w / 2 + nx * SHIELD,
|
|
341
|
+
st.offsetTop + h / 2 + ny * SHIELD
|
|
342
|
+
);
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
bodies.current.forEach((o, j) => {
|
|
346
|
+
if (j === i || o.wait > 0) return;
|
|
347
|
+
const ox = b.x - o.x;
|
|
348
|
+
const oy = b.y - o.y;
|
|
349
|
+
if (Math.abs(ox) < 150 && Math.abs(oy) < 38) {
|
|
350
|
+
fy += Math.sign(oy || i - j) * (38 - Math.abs(oy)) * 40;
|
|
351
|
+
fx += Math.sign(ox || i - j) * (150 - Math.abs(ox)) * 2;
|
|
352
|
+
}
|
|
353
|
+
});
|
|
354
|
+
const dx = b.x - px;
|
|
355
|
+
const dy = b.y - py;
|
|
356
|
+
const dp = Math.hypot(dx, dy);
|
|
357
|
+
const pr = params.current.radius;
|
|
358
|
+
if (ptr.on > 0.05 && dp < pr && dp > 0.1) {
|
|
359
|
+
const k = Math.pow(1 - dp / pr, 2) * 2400 * ptr.on * params.current.field;
|
|
360
|
+
fx += dx / dp * k;
|
|
361
|
+
fy += dy / dp * k;
|
|
362
|
+
}
|
|
363
|
+
b.vx = (b.vx + fx * dt) * Math.exp(-dt * 0.5);
|
|
364
|
+
b.vy = (b.vy + fy * dt) * Math.exp(-dt * 0.5);
|
|
365
|
+
b.x += b.vx * dt;
|
|
366
|
+
b.y += b.vy * dt;
|
|
367
|
+
const gone = Math.abs(b.x) > w * 0.68 || Math.abs(b.y) > h * 0.68;
|
|
368
|
+
if (gone && b.age > 1 || b.age > 12) {
|
|
369
|
+
b.wait = 0.6 + Math.random() * 1.6;
|
|
370
|
+
}
|
|
371
|
+
});
|
|
372
|
+
}
|
|
373
|
+
place();
|
|
374
|
+
draw();
|
|
375
|
+
};
|
|
376
|
+
raf = requestAnimationFrame(frame);
|
|
377
|
+
return () => cancelAnimationFrame(raf);
|
|
378
|
+
}, [still, visible, seen, spawn, ripple]);
|
|
379
|
+
const bump = useAnimationControls();
|
|
380
|
+
React.useEffect(() => {
|
|
381
|
+
if (!pulse || still) return;
|
|
382
|
+
void bump.start({
|
|
383
|
+
scale: [0.95, 1],
|
|
384
|
+
transition: { type: "spring", stiffness: 500, damping: 14 }
|
|
385
|
+
});
|
|
386
|
+
}, [pulse, still, bump]);
|
|
387
|
+
React.useEffect(() => {
|
|
388
|
+
if (struck === null) return;
|
|
389
|
+
const t = window.setTimeout(() => setStruck(null), 700);
|
|
390
|
+
return () => window.clearTimeout(t);
|
|
391
|
+
}, [struck, pulse]);
|
|
392
|
+
const total = minutes * 60;
|
|
393
|
+
const progress = left / total;
|
|
394
|
+
const R = 66;
|
|
395
|
+
const enter = (delay) => ({
|
|
396
|
+
initial: still ? false : { opacity: 0, y: 10, filter: "blur(6px)" },
|
|
397
|
+
animate: shown ? { opacity: 1, y: 0, filter: "blur(0px)" } : void 0,
|
|
398
|
+
transition: { duration: 0.6, ease: GLIDE, delay: still ? 0 : delay }
|
|
399
|
+
});
|
|
400
|
+
return /* @__PURE__ */ jsxs(
|
|
401
|
+
motion.div,
|
|
402
|
+
{
|
|
403
|
+
ref: root,
|
|
404
|
+
initial: still ? false : { opacity: 0, y: 18 },
|
|
405
|
+
animate: shown ? { opacity: 1, y: 0 } : void 0,
|
|
406
|
+
transition: { duration: 0.6, ease: GLIDE },
|
|
407
|
+
onPointerMove: (e) => {
|
|
408
|
+
const el = e.currentTarget;
|
|
409
|
+
const r = el.getBoundingClientRect();
|
|
410
|
+
const scale = r.width / el.offsetWidth || 1;
|
|
411
|
+
pointer.current.x = (e.clientX - r.left) / scale;
|
|
412
|
+
pointer.current.y = (e.clientY - r.top) / scale;
|
|
413
|
+
pointer.current.target = 1;
|
|
414
|
+
},
|
|
415
|
+
onPointerLeave: () => {
|
|
416
|
+
pointer.current.target = 0;
|
|
417
|
+
},
|
|
418
|
+
onPointerDown: (e) => {
|
|
419
|
+
const el = e.currentTarget;
|
|
420
|
+
const r = el.getBoundingClientRect();
|
|
421
|
+
const scale = r.width / el.offsetWidth || 1;
|
|
422
|
+
const x = (e.clientX - r.left) / scale;
|
|
423
|
+
const y = (e.clientY - r.top) / scale;
|
|
424
|
+
ripple(x, y);
|
|
425
|
+
const st = stage.current;
|
|
426
|
+
if (!st) return;
|
|
427
|
+
const sx = x - st.offsetLeft - st.clientWidth / 2;
|
|
428
|
+
const sy = y - st.offsetTop - st.clientHeight / 2;
|
|
429
|
+
bodies.current.forEach((b) => {
|
|
430
|
+
const dx = b.x - sx;
|
|
431
|
+
const dy = b.y - sy;
|
|
432
|
+
const d = Math.hypot(dx, dy) || 1;
|
|
433
|
+
const k = 260 * Math.max(0.2, 1 - d / 320);
|
|
434
|
+
b.vx += dx / d * k;
|
|
435
|
+
b.vy += dy / d * k;
|
|
436
|
+
});
|
|
437
|
+
},
|
|
438
|
+
className: cn(
|
|
439
|
+
"relative isolate h-[480px] w-[400px] max-w-full select-none overflow-hidden rounded-[32px] bg-white text-[#242423] shadow-[0_1px_2px_rgba(0,0,0,0.04),0_12px_32px_-16px_rgba(0,0,0,0.18)]",
|
|
440
|
+
className
|
|
441
|
+
),
|
|
442
|
+
children: [
|
|
443
|
+
/* @__PURE__ */ jsx(
|
|
444
|
+
"canvas",
|
|
445
|
+
{
|
|
446
|
+
ref: canvas,
|
|
447
|
+
"aria-hidden": true,
|
|
448
|
+
className: "absolute inset-0 -z-10 size-full"
|
|
449
|
+
}
|
|
450
|
+
),
|
|
451
|
+
/* @__PURE__ */ jsxs("div", { className: "px-7 pt-7", children: [
|
|
452
|
+
/* @__PURE__ */ jsx(
|
|
453
|
+
motion.h3,
|
|
454
|
+
{
|
|
455
|
+
...enter(0.05),
|
|
456
|
+
className: "text-[20px] font-semibold tracking-tight",
|
|
457
|
+
children: title
|
|
458
|
+
}
|
|
459
|
+
),
|
|
460
|
+
/* @__PURE__ */ jsx(
|
|
461
|
+
motion.p,
|
|
462
|
+
{
|
|
463
|
+
...enter(0.12),
|
|
464
|
+
className: "mt-2 max-w-[300px] text-pretty text-[14px] leading-relaxed text-zinc-600",
|
|
465
|
+
children: description
|
|
466
|
+
}
|
|
467
|
+
)
|
|
468
|
+
] }),
|
|
469
|
+
/* @__PURE__ */ jsxs("div", { ref: stage, className: "absolute inset-x-0 bottom-0 top-[150px]", children: [
|
|
470
|
+
/* @__PURE__ */ jsx("div", { "aria-hidden": true, className: "absolute left-1/2 top-1/2", children: list.map((ping, i) => {
|
|
471
|
+
const Icon = ICONS[ping.icon];
|
|
472
|
+
const r = resting(i, list.length);
|
|
473
|
+
return /* @__PURE__ */ jsx(
|
|
474
|
+
"div",
|
|
475
|
+
{
|
|
476
|
+
ref: (el) => {
|
|
477
|
+
pills.current[i] = el;
|
|
478
|
+
},
|
|
479
|
+
style: {
|
|
480
|
+
transform: `translate(-50%, -50%) translate(${r.x}px, ${r.y}px)`,
|
|
481
|
+
opacity: still ? 1 : 0
|
|
482
|
+
},
|
|
483
|
+
className: "absolute left-0 top-0 will-change-transform",
|
|
484
|
+
children: /* @__PURE__ */ jsxs("div", { className: "flex h-8 items-center gap-2 whitespace-nowrap rounded-full bg-white/75 pl-1 pr-3 text-[12px] font-medium shadow-[0_6px_20px_-8px_rgba(36,36,35,0.35)] ring-1 ring-white/80 backdrop-blur-md", children: [
|
|
485
|
+
/* @__PURE__ */ jsx("span", { className: "grid size-6 place-items-center rounded-full bg-[#242423]/[0.06]", children: /* @__PURE__ */ jsx(Icon, { className: "size-3.5", active: struck === i }) }),
|
|
486
|
+
ping.label
|
|
487
|
+
] })
|
|
488
|
+
},
|
|
489
|
+
`${ping.label}-${i}`
|
|
490
|
+
);
|
|
491
|
+
}) }),
|
|
492
|
+
/* @__PURE__ */ jsxs("div", { className: "absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2", children: [
|
|
493
|
+
/* @__PURE__ */ jsx(AnimatePresence, { children: !still && pulse > 0 && /* @__PURE__ */ jsx(
|
|
494
|
+
motion.span,
|
|
495
|
+
{
|
|
496
|
+
"aria-hidden": true,
|
|
497
|
+
initial: { scale: 1, opacity: 0.55 },
|
|
498
|
+
animate: { scale: 1.45, opacity: 0 },
|
|
499
|
+
exit: { opacity: 0 },
|
|
500
|
+
transition: { duration: 0.9, ease: GLIDE },
|
|
501
|
+
className: "pointer-events-none absolute inset-0 rounded-full ring-2 ring-white"
|
|
502
|
+
},
|
|
503
|
+
pulse
|
|
504
|
+
) }),
|
|
505
|
+
/* @__PURE__ */ jsxs(
|
|
506
|
+
motion.div,
|
|
507
|
+
{
|
|
508
|
+
initial: still ? false : { opacity: 0, scale: 0.8, filter: "blur(8px)" },
|
|
509
|
+
animate: shown ? { opacity: 1, scale: 1, filter: "blur(0px)" } : void 0,
|
|
510
|
+
transition: {
|
|
511
|
+
type: "spring",
|
|
512
|
+
stiffness: 260,
|
|
513
|
+
damping: 22,
|
|
514
|
+
delay: still ? 0 : 0.25
|
|
515
|
+
},
|
|
516
|
+
className: "relative grid size-[164px] place-items-center rounded-full bg-white/55 shadow-[0_16px_48px_-18px_rgba(36,36,35,0.45)] ring-1 ring-white/80 backdrop-blur-xl",
|
|
517
|
+
children: [
|
|
518
|
+
/* @__PURE__ */ jsx(motion.div, { animate: bump, className: "absolute inset-0", children: /* @__PURE__ */ jsxs(
|
|
519
|
+
"svg",
|
|
520
|
+
{
|
|
521
|
+
viewBox: "0 0 164 164",
|
|
522
|
+
className: "size-full -rotate-90",
|
|
523
|
+
"aria-hidden": true,
|
|
524
|
+
children: [
|
|
525
|
+
/* @__PURE__ */ jsx(
|
|
526
|
+
"circle",
|
|
527
|
+
{
|
|
528
|
+
cx: "82",
|
|
529
|
+
cy: "82",
|
|
530
|
+
r: R,
|
|
531
|
+
fill: "none",
|
|
532
|
+
stroke: "rgba(36,36,35,0.08)",
|
|
533
|
+
strokeWidth: "6"
|
|
534
|
+
}
|
|
535
|
+
),
|
|
536
|
+
/* @__PURE__ */ jsx(
|
|
537
|
+
motion.circle,
|
|
538
|
+
{
|
|
539
|
+
cx: "82",
|
|
540
|
+
cy: "82",
|
|
541
|
+
r: R,
|
|
542
|
+
fill: "none",
|
|
543
|
+
stroke: "#242423",
|
|
544
|
+
strokeWidth: "6",
|
|
545
|
+
strokeLinecap: "round",
|
|
546
|
+
initial: still ? false : { pathLength: 0 },
|
|
547
|
+
animate: shown ? { pathLength: progress } : void 0,
|
|
548
|
+
transition: {
|
|
549
|
+
duration: seen && left < total ? 0.8 : 1.4,
|
|
550
|
+
ease: GLIDE
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
)
|
|
554
|
+
]
|
|
555
|
+
}
|
|
556
|
+
) }),
|
|
557
|
+
/* @__PURE__ */ jsxs("div", { className: "relative flex flex-col items-center", children: [
|
|
558
|
+
/* @__PURE__ */ jsx("span", { className: "text-[12px] font-medium text-[#242423]/55", children: label }),
|
|
559
|
+
/* @__PURE__ */ jsx(
|
|
560
|
+
"span",
|
|
561
|
+
{
|
|
562
|
+
className: "text-[32px] font-semibold leading-10 tracking-tight tabular-nums",
|
|
563
|
+
role: "timer",
|
|
564
|
+
"aria-label": `${fmt(left)} left in ${label}`,
|
|
565
|
+
children: fmt(left)
|
|
566
|
+
}
|
|
567
|
+
),
|
|
568
|
+
/* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1 text-[12px] text-[#242423]/55", children: [
|
|
569
|
+
/* @__PURE__ */ jsx("span", { className: "relative inline-grid overflow-hidden font-semibold text-[#242423] tabular-nums", children: /* @__PURE__ */ jsx(AnimatePresence, { mode: "popLayout", initial: false, children: /* @__PURE__ */ jsx(
|
|
570
|
+
motion.span,
|
|
571
|
+
{
|
|
572
|
+
initial: still ? { opacity: 0 } : { y: "90%", opacity: 0, filter: "blur(2px)" },
|
|
573
|
+
animate: { y: 0, opacity: 1, filter: "blur(0px)" },
|
|
574
|
+
exit: still ? { opacity: 0 } : { y: "-90%", opacity: 0, filter: "blur(2px)" },
|
|
575
|
+
transition: { duration: 0.3, ease: GLIDE },
|
|
576
|
+
children: held
|
|
577
|
+
},
|
|
578
|
+
held
|
|
579
|
+
) }) }),
|
|
580
|
+
"held back"
|
|
581
|
+
] })
|
|
582
|
+
] })
|
|
583
|
+
]
|
|
584
|
+
}
|
|
585
|
+
)
|
|
586
|
+
] })
|
|
587
|
+
] })
|
|
588
|
+
]
|
|
589
|
+
}
|
|
590
|
+
);
|
|
591
|
+
}
|
|
592
|
+
);
|
|
593
|
+
|
|
594
|
+
export {
|
|
595
|
+
FluxCard
|
|
596
|
+
};
|