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,287 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
ArrowDownRightIcon
|
|
4
|
+
} from "./chunk-25254AZA.js";
|
|
5
|
+
import {
|
|
6
|
+
ArrowUpRightIcon
|
|
7
|
+
} from "./chunk-I7KTTOOJ.js";
|
|
8
|
+
import {
|
|
9
|
+
cn
|
|
10
|
+
} from "./chunk-2TQSHVXA.js";
|
|
11
|
+
|
|
12
|
+
// src/components/score-card/score-card.tsx
|
|
13
|
+
import * as React from "react";
|
|
14
|
+
import {
|
|
15
|
+
AnimatePresence,
|
|
16
|
+
animate,
|
|
17
|
+
motion,
|
|
18
|
+
useInView,
|
|
19
|
+
useMotionValue,
|
|
20
|
+
useReducedMotion,
|
|
21
|
+
useTransform,
|
|
22
|
+
useVelocity
|
|
23
|
+
} from "motion/react";
|
|
24
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
25
|
+
var PALETTE = ["#8b7cf6", "#3b9eea", "#269a5a", "#e2a33b", "#e0607e"];
|
|
26
|
+
var DEFAULT_BARS = [
|
|
27
|
+
{ label: "Sleep", value: 16, max: 20 },
|
|
28
|
+
{ label: "Activity", value: 18, max: 20 },
|
|
29
|
+
{ label: "Nutrition", value: 19, max: 20 }
|
|
30
|
+
];
|
|
31
|
+
var GLIDE = [0.22, 1, 0.36, 1];
|
|
32
|
+
var COUNT = [0.5, 1, 0.89, 1];
|
|
33
|
+
var SLIDE = { type: "spring", stiffness: 140, damping: 17, mass: 0.9 };
|
|
34
|
+
var share = (bars) => {
|
|
35
|
+
const v = bars.reduce((s, b) => s + b.value, 0);
|
|
36
|
+
const m = bars.reduce((s, b) => s + b.max, 0);
|
|
37
|
+
return m ? v / m * 100 : 0;
|
|
38
|
+
};
|
|
39
|
+
function Count({
|
|
40
|
+
value,
|
|
41
|
+
decimals,
|
|
42
|
+
className
|
|
43
|
+
}) {
|
|
44
|
+
const text = useTransform(value, (v) => v.toFixed(decimals));
|
|
45
|
+
const rate = useVelocity(value);
|
|
46
|
+
const filter = useTransform(rate, (r) => {
|
|
47
|
+
const px = Math.min(1.2, Math.abs(r) * 0.012);
|
|
48
|
+
return px < 0.15 ? "none" : `blur(${px.toFixed(2)}px)`;
|
|
49
|
+
});
|
|
50
|
+
return /* @__PURE__ */ jsx(motion.span, { className: cn("tabular-nums", className), style: { filter }, children: text });
|
|
51
|
+
}
|
|
52
|
+
function Bar({
|
|
53
|
+
bar,
|
|
54
|
+
index,
|
|
55
|
+
shown,
|
|
56
|
+
active,
|
|
57
|
+
dim,
|
|
58
|
+
still,
|
|
59
|
+
onEnter,
|
|
60
|
+
onLeave
|
|
61
|
+
}) {
|
|
62
|
+
const color = bar.color ?? PALETTE[index % PALETTE.length];
|
|
63
|
+
const ratio = bar.max ? Math.min(1, Math.max(0, bar.value / bar.max)) : 0;
|
|
64
|
+
const target = shown ? Math.max(0.42, ratio) : 0;
|
|
65
|
+
return /* @__PURE__ */ jsx(
|
|
66
|
+
motion.button,
|
|
67
|
+
{
|
|
68
|
+
type: "button",
|
|
69
|
+
onPointerEnter: onEnter,
|
|
70
|
+
onPointerLeave: onLeave,
|
|
71
|
+
onFocus: onEnter,
|
|
72
|
+
onBlur: onLeave,
|
|
73
|
+
whileTap: still ? void 0 : { scale: 0.98 },
|
|
74
|
+
animate: { opacity: dim ? 0.45 : 1 },
|
|
75
|
+
transition: { duration: 0.25, ease: GLIDE },
|
|
76
|
+
"aria-label": `${bar.label}, ${bar.value} of ${bar.max}`,
|
|
77
|
+
className: "group/bar relative block h-11 w-full cursor-pointer overflow-hidden rounded-full bg-[#242423]/[0.06] text-left outline-none focus-visible:ring-2 focus-visible:ring-zinc-400 focus-visible:ring-offset-2 dark:bg-white/[0.06]",
|
|
78
|
+
children: /* @__PURE__ */ jsxs(
|
|
79
|
+
motion.span,
|
|
80
|
+
{
|
|
81
|
+
className: "absolute inset-y-0 left-0 overflow-hidden rounded-full",
|
|
82
|
+
initial: false,
|
|
83
|
+
animate: {
|
|
84
|
+
width: `${target * 100}%`
|
|
85
|
+
},
|
|
86
|
+
transition: still ? { duration: 0 } : {
|
|
87
|
+
width: { ...SLIDE, delay: shown ? index * 0.09 : 0 }
|
|
88
|
+
},
|
|
89
|
+
children: [
|
|
90
|
+
/* @__PURE__ */ jsx(
|
|
91
|
+
"span",
|
|
92
|
+
{
|
|
93
|
+
"aria-hidden": true,
|
|
94
|
+
className: "absolute inset-0 opacity-25",
|
|
95
|
+
style: { backgroundColor: color }
|
|
96
|
+
}
|
|
97
|
+
),
|
|
98
|
+
/* @__PURE__ */ jsx(
|
|
99
|
+
motion.span,
|
|
100
|
+
{
|
|
101
|
+
"aria-hidden": true,
|
|
102
|
+
className: "absolute inset-0",
|
|
103
|
+
style: { backgroundColor: color },
|
|
104
|
+
initial: false,
|
|
105
|
+
animate: { opacity: active ? 1 : 0 },
|
|
106
|
+
transition: { duration: still ? 0 : 0.3, ease: GLIDE }
|
|
107
|
+
}
|
|
108
|
+
),
|
|
109
|
+
/* @__PURE__ */ jsx(AnimatePresence, { children: active && !still && /* @__PURE__ */ jsx(
|
|
110
|
+
motion.span,
|
|
111
|
+
{
|
|
112
|
+
"aria-hidden": true,
|
|
113
|
+
className: "absolute inset-y-0 w-1/3 bg-gradient-to-r from-transparent via-white/20 to-transparent",
|
|
114
|
+
initial: { left: "-40%" },
|
|
115
|
+
animate: { left: "110%" },
|
|
116
|
+
exit: { opacity: 0 },
|
|
117
|
+
transition: { duration: 0.8, ease: GLIDE }
|
|
118
|
+
},
|
|
119
|
+
"sheen"
|
|
120
|
+
) }),
|
|
121
|
+
/* @__PURE__ */ jsxs(
|
|
122
|
+
motion.span,
|
|
123
|
+
{
|
|
124
|
+
className: "relative flex h-full items-center justify-between gap-3 whitespace-nowrap px-4 text-sm",
|
|
125
|
+
animate: { color: active ? "#ffffff" : "#242423" },
|
|
126
|
+
transition: { duration: 0.3, ease: GLIDE },
|
|
127
|
+
children: [
|
|
128
|
+
/* @__PURE__ */ jsx("span", { className: "font-medium", children: bar.label }),
|
|
129
|
+
/* @__PURE__ */ jsxs("span", { className: "tabular-nums opacity-60", children: [
|
|
130
|
+
/* @__PURE__ */ jsx(
|
|
131
|
+
motion.span,
|
|
132
|
+
{
|
|
133
|
+
className: "inline-block",
|
|
134
|
+
initial: still ? false : { y: 8, opacity: 0, filter: "blur(2px)" },
|
|
135
|
+
animate: { y: 0, opacity: 1, filter: "blur(0px)" },
|
|
136
|
+
transition: { duration: 0.35, ease: GLIDE },
|
|
137
|
+
children: bar.value
|
|
138
|
+
},
|
|
139
|
+
bar.value
|
|
140
|
+
),
|
|
141
|
+
"/",
|
|
142
|
+
bar.max
|
|
143
|
+
] })
|
|
144
|
+
]
|
|
145
|
+
}
|
|
146
|
+
)
|
|
147
|
+
]
|
|
148
|
+
}
|
|
149
|
+
)
|
|
150
|
+
}
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
var ScoreCard = React.forwardRef(
|
|
154
|
+
function ScoreCard2({
|
|
155
|
+
title = "Health score",
|
|
156
|
+
avatar = "https://images.unsplash.com/photo-1438761681033-6461ffad8d80?w=120&h=120&fit=crop&crop=faces",
|
|
157
|
+
bars = DEFAULT_BARS,
|
|
158
|
+
change = 4.1,
|
|
159
|
+
period = "month",
|
|
160
|
+
decimals = 1,
|
|
161
|
+
className
|
|
162
|
+
}, ref) {
|
|
163
|
+
const root = React.useRef(null);
|
|
164
|
+
React.useImperativeHandle(ref, () => root.current);
|
|
165
|
+
const still = !!useReducedMotion();
|
|
166
|
+
const inView = useInView(root, { once: true, amount: 0.4 });
|
|
167
|
+
const shown = inView || still;
|
|
168
|
+
const [hover, setHover] = React.useState(null);
|
|
169
|
+
const lit = hover ?? bars.length - 1;
|
|
170
|
+
const focusBar = hover === null ? null : bars[hover];
|
|
171
|
+
const target = focusBar ? focusBar.value / Math.max(1, focusBar.max) * 100 : share(bars);
|
|
172
|
+
const score = useMotionValue(0);
|
|
173
|
+
const first = React.useRef(true);
|
|
174
|
+
React.useEffect(() => {
|
|
175
|
+
if (!shown) return;
|
|
176
|
+
if (still) return void score.set(target);
|
|
177
|
+
const intro = first.current;
|
|
178
|
+
first.current = false;
|
|
179
|
+
const c = animate(score, target, {
|
|
180
|
+
duration: intro ? 1.2 : 0.6,
|
|
181
|
+
delay: intro ? 0.1 : 0,
|
|
182
|
+
ease: COUNT
|
|
183
|
+
});
|
|
184
|
+
return () => c.stop();
|
|
185
|
+
}, [shown, still, target, score]);
|
|
186
|
+
const up = (change ?? 0) >= 0;
|
|
187
|
+
return /* @__PURE__ */ jsxs(
|
|
188
|
+
"div",
|
|
189
|
+
{
|
|
190
|
+
ref: root,
|
|
191
|
+
className: cn(
|
|
192
|
+
"relative w-[360px] max-w-full rounded-3xl bg-white p-6 text-[#242423] shadow-[0_1px_2px_rgba(0,0,0,0.04),0_12px_32px_-16px_rgba(0,0,0,0.18)] dark:bg-zinc-900 dark:text-zinc-100",
|
|
193
|
+
className
|
|
194
|
+
),
|
|
195
|
+
children: [
|
|
196
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-4", children: [
|
|
197
|
+
/* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
|
|
198
|
+
/* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold tracking-tight", children: title }),
|
|
199
|
+
/* @__PURE__ */ jsx("div", { className: "relative mt-1 h-5 overflow-hidden text-sm text-zinc-500 dark:text-zinc-400", children: /* @__PURE__ */ jsx(AnimatePresence, { mode: "popLayout", initial: false, children: /* @__PURE__ */ jsx(
|
|
200
|
+
motion.p,
|
|
201
|
+
{
|
|
202
|
+
initial: still ? false : { y: 12, opacity: 0, filter: "blur(2px)" },
|
|
203
|
+
animate: { y: 0, opacity: 1, filter: "blur(0px)" },
|
|
204
|
+
exit: still ? void 0 : { y: -12, opacity: 0, filter: "blur(2px)" },
|
|
205
|
+
transition: { duration: 0.3, ease: GLIDE },
|
|
206
|
+
children: focusBar ? `${focusBar.label} this ${period}` : `Overall this ${period}`
|
|
207
|
+
},
|
|
208
|
+
focusBar ? focusBar.label : "overall"
|
|
209
|
+
) }) })
|
|
210
|
+
] }),
|
|
211
|
+
avatar && /* @__PURE__ */ jsx(
|
|
212
|
+
motion.img,
|
|
213
|
+
{
|
|
214
|
+
src: avatar,
|
|
215
|
+
alt: "",
|
|
216
|
+
draggable: false,
|
|
217
|
+
initial: still ? false : { scale: 0.6, opacity: 0 },
|
|
218
|
+
animate: shown ? { scale: 1, opacity: 1 } : void 0,
|
|
219
|
+
whileHover: still ? void 0 : { scale: 1.06, rotate: -4 },
|
|
220
|
+
transition: { type: "spring", stiffness: 380, damping: 22 },
|
|
221
|
+
className: "size-10 shrink-0 select-none rounded-full object-cover ring-2 ring-white shadow-[0_1px_2px_rgba(0,0,0,0.08),0_0_0_3px_rgba(36,36,35,0.06)] dark:ring-zinc-900"
|
|
222
|
+
}
|
|
223
|
+
)
|
|
224
|
+
] }),
|
|
225
|
+
/* @__PURE__ */ jsxs("div", { className: "mt-5 flex items-end justify-between gap-3", children: [
|
|
226
|
+
/* @__PURE__ */ jsxs(
|
|
227
|
+
"p",
|
|
228
|
+
{
|
|
229
|
+
className: "flex items-baseline text-[32px] font-medium leading-none tracking-tight",
|
|
230
|
+
"aria-label": `${target.toFixed(decimals)} percent`,
|
|
231
|
+
children: [
|
|
232
|
+
/* @__PURE__ */ jsx(Count, { value: score, decimals }),
|
|
233
|
+
/* @__PURE__ */ jsx("span", { className: "ml-0.5 text-xl text-zinc-400 dark:text-zinc-500", children: "%" })
|
|
234
|
+
]
|
|
235
|
+
}
|
|
236
|
+
),
|
|
237
|
+
/* @__PURE__ */ jsx(AnimatePresence, { mode: "popLayout", initial: false, children: change != null && hover === null && /* @__PURE__ */ jsxs(
|
|
238
|
+
motion.span,
|
|
239
|
+
{
|
|
240
|
+
initial: still ? false : { opacity: 0, y: 6, scale: 0.9 },
|
|
241
|
+
animate: { opacity: 1, y: 0, scale: 1 },
|
|
242
|
+
exit: still ? void 0 : { opacity: 0, y: -6, scale: 0.9 },
|
|
243
|
+
transition: { type: "spring", stiffness: 420, damping: 26 },
|
|
244
|
+
className: cn(
|
|
245
|
+
"mb-0.5 inline-flex h-7 items-center gap-1 rounded-full px-2.5 text-sm font-medium tabular-nums",
|
|
246
|
+
up ? "bg-[#269a5a]/10 text-[#269a5a]" : "bg-[#242423]/[0.06] text-zinc-500 dark:bg-white/[0.06] dark:text-zinc-400"
|
|
247
|
+
),
|
|
248
|
+
children: [
|
|
249
|
+
up ? /* @__PURE__ */ jsx(ArrowUpRightIcon, { className: "size-4", "aria-hidden": true }) : /* @__PURE__ */ jsx(ArrowDownRightIcon, { className: "size-4", "aria-hidden": true }),
|
|
250
|
+
up ? "+" : "",
|
|
251
|
+
change.toFixed(1)
|
|
252
|
+
]
|
|
253
|
+
},
|
|
254
|
+
"change"
|
|
255
|
+
) })
|
|
256
|
+
] }),
|
|
257
|
+
/* @__PURE__ */ jsx(
|
|
258
|
+
"div",
|
|
259
|
+
{
|
|
260
|
+
className: "mt-12 flex flex-col gap-2",
|
|
261
|
+
onPointerLeave: () => setHover(null),
|
|
262
|
+
children: bars.map((b, i) => /* @__PURE__ */ jsx(
|
|
263
|
+
Bar,
|
|
264
|
+
{
|
|
265
|
+
bar: b,
|
|
266
|
+
index: i,
|
|
267
|
+
shown,
|
|
268
|
+
active: i === lit,
|
|
269
|
+
dim: hover !== null && i !== hover,
|
|
270
|
+
still,
|
|
271
|
+
onEnter: () => setHover(i),
|
|
272
|
+
onLeave: () => setHover((h) => h === i ? null : h)
|
|
273
|
+
},
|
|
274
|
+
b.label
|
|
275
|
+
))
|
|
276
|
+
}
|
|
277
|
+
),
|
|
278
|
+
/* @__PURE__ */ jsx("span", { role: "status", "aria-live": "polite", className: "sr-only", children: focusBar ? `${focusBar.label}, ${focusBar.value} of ${focusBar.max}` : `${title} ${share(bars).toFixed(decimals)} percent this ${period}` })
|
|
279
|
+
]
|
|
280
|
+
}
|
|
281
|
+
);
|
|
282
|
+
}
|
|
283
|
+
);
|
|
284
|
+
|
|
285
|
+
export {
|
|
286
|
+
ScoreCard
|
|
287
|
+
};
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
FlameIcon
|
|
4
|
+
} from "./chunk-YVYYDPE2.js";
|
|
5
|
+
import {
|
|
6
|
+
cn
|
|
7
|
+
} from "./chunk-2TQSHVXA.js";
|
|
8
|
+
|
|
9
|
+
// src/components/deploy-streak/deploy-streak.tsx
|
|
10
|
+
import * as React from "react";
|
|
11
|
+
import {
|
|
12
|
+
animate,
|
|
13
|
+
AnimatePresence,
|
|
14
|
+
motion,
|
|
15
|
+
useInView,
|
|
16
|
+
useMotionValue,
|
|
17
|
+
useMotionValueEvent,
|
|
18
|
+
useReducedMotion,
|
|
19
|
+
useTransform,
|
|
20
|
+
useVelocity
|
|
21
|
+
} from "motion/react";
|
|
22
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
23
|
+
var DEFAULT_DAYS = Array.from(
|
|
24
|
+
{ length: 70 },
|
|
25
|
+
(_, i) => i < 11 ? ![2, 5, 9].includes(i) : true
|
|
26
|
+
);
|
|
27
|
+
var GLIDE = [0.22, 1, 0.36, 1];
|
|
28
|
+
var DIGITS = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
|
|
29
|
+
var MAX_BLUR = 0.5;
|
|
30
|
+
function Wheel({
|
|
31
|
+
value,
|
|
32
|
+
rate,
|
|
33
|
+
place
|
|
34
|
+
}) {
|
|
35
|
+
const position = useTransform(value, (a) => {
|
|
36
|
+
const ticks = Math.max(0, a) + 1e-6;
|
|
37
|
+
const whole = Math.floor(ticks);
|
|
38
|
+
const turning = ticks - whole;
|
|
39
|
+
const digit = Math.floor(whole / place) % 10;
|
|
40
|
+
const turn = place === 1 ? turning : whole % place === place - 1 ? turning : 0;
|
|
41
|
+
return digit + turn;
|
|
42
|
+
});
|
|
43
|
+
const y = useTransform(position, (p) => `${-p * 100 / 11}%`);
|
|
44
|
+
const filter = useTransform(rate, (v) => {
|
|
45
|
+
const px = Math.min(MAX_BLUR, Math.abs(v) / place * 0.015);
|
|
46
|
+
return px < 0.1 ? "none" : `blur(${px.toFixed(2)}px)`;
|
|
47
|
+
});
|
|
48
|
+
return /* @__PURE__ */ jsx("span", { className: "relative inline-block h-[1em] w-[0.62em] overflow-hidden", children: /* @__PURE__ */ jsx(
|
|
49
|
+
motion.span,
|
|
50
|
+
{
|
|
51
|
+
className: "absolute inset-x-0 top-0 flex flex-col",
|
|
52
|
+
style: { y, filter },
|
|
53
|
+
children: [...DIGITS, 0].map((d, i) => /* @__PURE__ */ jsx("span", { className: "flex h-[1em] items-center justify-center", children: d }, i))
|
|
54
|
+
}
|
|
55
|
+
) });
|
|
56
|
+
}
|
|
57
|
+
function Odometer({
|
|
58
|
+
value,
|
|
59
|
+
label,
|
|
60
|
+
group = ","
|
|
61
|
+
}) {
|
|
62
|
+
const rate = useVelocity(value);
|
|
63
|
+
const places = (a) => Math.max(1, String(Math.floor(Math.max(0, a) + 1e-6)).length);
|
|
64
|
+
const [count, setCount] = React.useState(() => places(value.get()));
|
|
65
|
+
useMotionValueEvent(value, "change", (a) => {
|
|
66
|
+
const n = places(a);
|
|
67
|
+
if (n !== count) setCount(n);
|
|
68
|
+
});
|
|
69
|
+
const cells = [];
|
|
70
|
+
for (let k = count - 1; k >= 0; k--) {
|
|
71
|
+
cells.push(
|
|
72
|
+
/* @__PURE__ */ jsx(
|
|
73
|
+
motion.span,
|
|
74
|
+
{
|
|
75
|
+
className: "inline-flex",
|
|
76
|
+
initial: { opacity: 0 },
|
|
77
|
+
animate: { opacity: 1 },
|
|
78
|
+
transition: { duration: 0.2 },
|
|
79
|
+
children: /* @__PURE__ */ jsx(Wheel, { value, rate, place: 10 ** k })
|
|
80
|
+
},
|
|
81
|
+
`w${k}`
|
|
82
|
+
)
|
|
83
|
+
);
|
|
84
|
+
if (k > 0 && k % 3 === 0 && group)
|
|
85
|
+
cells.push(/* @__PURE__ */ jsx("span", { children: group }, `g${k}`));
|
|
86
|
+
}
|
|
87
|
+
return /* @__PURE__ */ jsxs("span", { "aria-label": label, className: "inline-flex leading-none tabular-nums", children: [
|
|
88
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "invisible w-0", children: "0" }),
|
|
89
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "inline-flex", children: cells })
|
|
90
|
+
] });
|
|
91
|
+
}
|
|
92
|
+
var COUNT = [0.5, 1, 0.89, 1];
|
|
93
|
+
var streakOf = (days) => {
|
|
94
|
+
let n = 0;
|
|
95
|
+
for (let i = days.length - 1; i >= 0 && days[i]; i--) n++;
|
|
96
|
+
return n;
|
|
97
|
+
};
|
|
98
|
+
var DeployStreak = React.forwardRef(
|
|
99
|
+
function DeployStreak2({
|
|
100
|
+
title = "Deploys",
|
|
101
|
+
days = DEFAULT_DAYS,
|
|
102
|
+
columns = 14,
|
|
103
|
+
color = "#269a5a",
|
|
104
|
+
today,
|
|
105
|
+
className
|
|
106
|
+
}, ref) {
|
|
107
|
+
const root = React.useRef(null);
|
|
108
|
+
React.useImperativeHandle(ref, () => root.current);
|
|
109
|
+
const still = !!useReducedMotion();
|
|
110
|
+
const inView = useInView(root, { once: true, amount: 0.4 });
|
|
111
|
+
const shown = inView || still;
|
|
112
|
+
const [hover, setHover] = React.useState(null);
|
|
113
|
+
const [cardHover, setCardHover] = React.useState(false);
|
|
114
|
+
const streak = streakOf(days);
|
|
115
|
+
const count = useMotionValue(still ? streak : 0);
|
|
116
|
+
React.useEffect(() => {
|
|
117
|
+
if (!shown || still) return;
|
|
118
|
+
const c = animate(count, streak, {
|
|
119
|
+
duration: 1.3,
|
|
120
|
+
delay: 0.2,
|
|
121
|
+
ease: COUNT
|
|
122
|
+
});
|
|
123
|
+
return () => c.stop();
|
|
124
|
+
}, [shown, still, streak, count]);
|
|
125
|
+
const end = today ?? /* @__PURE__ */ new Date();
|
|
126
|
+
const fmt = React.useMemo(
|
|
127
|
+
() => new Intl.DateTimeFormat("en", {
|
|
128
|
+
weekday: "short",
|
|
129
|
+
month: "short",
|
|
130
|
+
day: "numeric"
|
|
131
|
+
}),
|
|
132
|
+
[]
|
|
133
|
+
);
|
|
134
|
+
const dateOf = (i) => {
|
|
135
|
+
const d = new Date(end);
|
|
136
|
+
d.setDate(d.getDate() - (days.length - 1 - i));
|
|
137
|
+
return fmt.format(d);
|
|
138
|
+
};
|
|
139
|
+
return /* @__PURE__ */ jsxs(
|
|
140
|
+
motion.div,
|
|
141
|
+
{
|
|
142
|
+
ref: root,
|
|
143
|
+
onPointerEnter: () => setCardHover(true),
|
|
144
|
+
onPointerLeave: () => {
|
|
145
|
+
setCardHover(false);
|
|
146
|
+
setHover(null);
|
|
147
|
+
},
|
|
148
|
+
initial: still ? false : { opacity: 0, y: 16 },
|
|
149
|
+
animate: shown ? { opacity: 1, y: 0 } : void 0,
|
|
150
|
+
transition: { duration: 0.6, ease: GLIDE },
|
|
151
|
+
className: cn(
|
|
152
|
+
"w-[340px] max-w-full rounded-3xl bg-white p-6 text-[#242423] shadow-[0_1px_2px_rgba(0,0,0,0.04),0_12px_32px_-16px_rgba(0,0,0,0.18)] dark:bg-zinc-900 dark:text-zinc-100",
|
|
153
|
+
className
|
|
154
|
+
),
|
|
155
|
+
children: [
|
|
156
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
157
|
+
/* @__PURE__ */ jsx("span", { className: "grid size-8 place-items-center rounded-full bg-[#242423]/[0.06] dark:bg-white/[0.08]", children: /* @__PURE__ */ jsx(FlameIcon, { className: "size-4", active: cardHover }) }),
|
|
158
|
+
/* @__PURE__ */ jsx("p", { className: "text-base font-semibold tracking-tight", children: title })
|
|
159
|
+
] }),
|
|
160
|
+
/* @__PURE__ */ jsxs("div", { className: "mt-6 flex items-end gap-2", children: [
|
|
161
|
+
/* @__PURE__ */ jsx("span", { className: "text-[48px] font-semibold leading-[0.85] tracking-tight tabular-nums", children: /* @__PURE__ */ jsx(Odometer, { value: count, label: `${streak}` }) }),
|
|
162
|
+
/* @__PURE__ */ jsxs("span", { className: "pb-0.5 text-sm leading-tight text-zinc-500 dark:text-zinc-400", children: [
|
|
163
|
+
"days",
|
|
164
|
+
/* @__PURE__ */ jsx("br", {}),
|
|
165
|
+
"in a row"
|
|
166
|
+
] })
|
|
167
|
+
] }),
|
|
168
|
+
/* @__PURE__ */ jsx(
|
|
169
|
+
"div",
|
|
170
|
+
{
|
|
171
|
+
role: "img",
|
|
172
|
+
"aria-label": `Shipped ${streak} days in a row. ${days.filter(Boolean).length} of the last ${days.length} days had a deploy.`,
|
|
173
|
+
className: "relative mt-5 grid gap-1.5",
|
|
174
|
+
style: { gridTemplateColumns: `repeat(${columns}, minmax(0, 1fr))` },
|
|
175
|
+
children: days.map((done, i) => {
|
|
176
|
+
const r = Math.floor(i / columns);
|
|
177
|
+
const c = i % columns;
|
|
178
|
+
const isToday = i === days.length - 1;
|
|
179
|
+
const on = hover === i;
|
|
180
|
+
return /* @__PURE__ */ jsxs(
|
|
181
|
+
"span",
|
|
182
|
+
{
|
|
183
|
+
className: "relative grid aspect-square place-items-center",
|
|
184
|
+
onPointerEnter: () => setHover(i),
|
|
185
|
+
children: [
|
|
186
|
+
isToday && !still && shown && /* @__PURE__ */ jsx(
|
|
187
|
+
motion.span,
|
|
188
|
+
{
|
|
189
|
+
"aria-hidden": true,
|
|
190
|
+
className: "absolute inset-0 rounded-full",
|
|
191
|
+
style: { boxShadow: `0 0 0 2px ${color}` },
|
|
192
|
+
animate: { scale: [1, 1.5], opacity: [0.6, 0] },
|
|
193
|
+
transition: {
|
|
194
|
+
duration: 1.6,
|
|
195
|
+
repeat: Infinity,
|
|
196
|
+
ease: "easeOut",
|
|
197
|
+
delay: 1.4
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
),
|
|
201
|
+
/* @__PURE__ */ jsx(
|
|
202
|
+
motion.span,
|
|
203
|
+
{
|
|
204
|
+
className: "absolute inset-0 rounded-full",
|
|
205
|
+
style: {
|
|
206
|
+
backgroundColor: done ? color : "rgba(36,36,35,0.08)"
|
|
207
|
+
},
|
|
208
|
+
initial: still ? false : { scale: 0, opacity: 0 },
|
|
209
|
+
animate: shown ? {
|
|
210
|
+
scale: on ? 1.35 : 1,
|
|
211
|
+
opacity: done ? 1 : 1,
|
|
212
|
+
y: on ? -2 : 0
|
|
213
|
+
} : void 0,
|
|
214
|
+
transition: {
|
|
215
|
+
type: "spring",
|
|
216
|
+
stiffness: 420,
|
|
217
|
+
damping: 20,
|
|
218
|
+
delay: on || hover !== null ? 0 : still ? 0 : 0.15 + (r + c) * 0.025
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
),
|
|
222
|
+
/* @__PURE__ */ jsx(AnimatePresence, { children: on && /* @__PURE__ */ jsxs(
|
|
223
|
+
motion.span,
|
|
224
|
+
{
|
|
225
|
+
initial: { opacity: 0, y: 4, scale: 0.9 },
|
|
226
|
+
animate: { opacity: 1, y: 0, scale: 1 },
|
|
227
|
+
exit: { opacity: 0, y: 2, scale: 0.95 },
|
|
228
|
+
transition: {
|
|
229
|
+
type: "spring",
|
|
230
|
+
stiffness: 500,
|
|
231
|
+
damping: 30
|
|
232
|
+
},
|
|
233
|
+
className: cn(
|
|
234
|
+
"pointer-events-none absolute bottom-full z-10 mb-2 inline-flex h-7 items-center gap-1.5 whitespace-nowrap rounded-full bg-[#242423] px-2.5 text-xs font-medium text-white dark:bg-zinc-100 dark:text-[#242423]",
|
|
235
|
+
c < 3 ? "left-0" : c > columns - 4 ? "right-0" : "left-1/2 -translate-x-1/2"
|
|
236
|
+
),
|
|
237
|
+
children: [
|
|
238
|
+
/* @__PURE__ */ jsx(
|
|
239
|
+
"span",
|
|
240
|
+
{
|
|
241
|
+
className: "size-1.5 rounded-full",
|
|
242
|
+
style: {
|
|
243
|
+
backgroundColor: done ? color : "rgba(255,255,255,0.4)"
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
),
|
|
247
|
+
isToday ? "Today" : dateOf(i),
|
|
248
|
+
/* @__PURE__ */ jsx("span", { className: "text-white/60 dark:text-[#242423]/60", children: done ? "Shipped" : "No deploy" })
|
|
249
|
+
]
|
|
250
|
+
}
|
|
251
|
+
) })
|
|
252
|
+
]
|
|
253
|
+
},
|
|
254
|
+
i
|
|
255
|
+
);
|
|
256
|
+
})
|
|
257
|
+
}
|
|
258
|
+
)
|
|
259
|
+
]
|
|
260
|
+
}
|
|
261
|
+
);
|
|
262
|
+
}
|
|
263
|
+
);
|
|
264
|
+
|
|
265
|
+
export {
|
|
266
|
+
DeployStreak
|
|
267
|
+
};
|