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,419 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
cn
|
|
4
|
+
} from "./chunk-2TQSHVXA.js";
|
|
5
|
+
|
|
6
|
+
// src/components/range-chart/range-chart.tsx
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
import {
|
|
9
|
+
AnimatePresence,
|
|
10
|
+
motion,
|
|
11
|
+
useInView,
|
|
12
|
+
useReducedMotion
|
|
13
|
+
} from "motion/react";
|
|
14
|
+
import { ArrowRight } from "lucide-react";
|
|
15
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
+
var DEFAULT_DATA = (() => {
|
|
17
|
+
let seed = 7;
|
|
18
|
+
const rand = () => ((seed = seed * 16807 % 2147483647) - 1) / 2147483646;
|
|
19
|
+
const end = new Date(2026, 8, 17);
|
|
20
|
+
return Array.from({ length: 30 }, (_, i) => {
|
|
21
|
+
const date = new Date(end);
|
|
22
|
+
date.setDate(end.getDate() - (29 - i));
|
|
23
|
+
const low = Math.round(46 + rand() * 22);
|
|
24
|
+
const high = Math.round(108 + rand() * 80);
|
|
25
|
+
const ranges = [[low, high]];
|
|
26
|
+
if (rand() > 0.72) {
|
|
27
|
+
const above = rand() > 0.5;
|
|
28
|
+
const v = above ? Math.min(196, high + 14 + Math.round(rand() * 14)) : Math.max(38, low - 16 - Math.round(rand() * 6));
|
|
29
|
+
ranges.push([v, v + 8]);
|
|
30
|
+
}
|
|
31
|
+
return { date, ranges };
|
|
32
|
+
});
|
|
33
|
+
})();
|
|
34
|
+
var GLIDE = [0.22, 1, 0.36, 1];
|
|
35
|
+
var GROW = { type: "spring", stiffness: 190, damping: 21 };
|
|
36
|
+
var PILL = { type: "spring", stiffness: 480, damping: 38 };
|
|
37
|
+
var ROLL = {
|
|
38
|
+
type: "spring",
|
|
39
|
+
stiffness: 280,
|
|
40
|
+
damping: 26,
|
|
41
|
+
mass: 0.8
|
|
42
|
+
};
|
|
43
|
+
var DIGITS = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
|
|
44
|
+
var CHART_H = 200;
|
|
45
|
+
var LABEL_H = 24;
|
|
46
|
+
function Digit({ digit, still }) {
|
|
47
|
+
return /* @__PURE__ */ jsx("span", { className: "relative inline-block h-[1em] w-[0.6em] overflow-hidden", children: /* @__PURE__ */ jsx(
|
|
48
|
+
motion.span,
|
|
49
|
+
{
|
|
50
|
+
className: "absolute inset-x-0 top-0 flex flex-col",
|
|
51
|
+
initial: false,
|
|
52
|
+
animate: { y: `${-digit * 10}%` },
|
|
53
|
+
transition: still ? { duration: 0 } : ROLL,
|
|
54
|
+
children: DIGITS.map((d) => /* @__PURE__ */ jsx("span", { className: "flex h-[1em] items-center justify-center", children: d }, d))
|
|
55
|
+
}
|
|
56
|
+
) });
|
|
57
|
+
}
|
|
58
|
+
function Rolling({ value, still }) {
|
|
59
|
+
const chars = Array.from(String(Math.round(value)));
|
|
60
|
+
return /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "inline-flex leading-none tabular-nums", children: chars.map((ch, i) => /* @__PURE__ */ jsx(Digit, { digit: Number(ch), still }, chars.length - i)) });
|
|
61
|
+
}
|
|
62
|
+
var weekday = new Intl.DateTimeFormat("en", { weekday: "short" });
|
|
63
|
+
var longDay = new Intl.DateTimeFormat("en", {
|
|
64
|
+
weekday: "short",
|
|
65
|
+
day: "numeric",
|
|
66
|
+
month: "short"
|
|
67
|
+
});
|
|
68
|
+
var shortDate = new Intl.DateTimeFormat("en", {
|
|
69
|
+
day: "numeric",
|
|
70
|
+
month: "short"
|
|
71
|
+
});
|
|
72
|
+
var RangeChart = React.forwardRef(
|
|
73
|
+
function RangeChart2({
|
|
74
|
+
title = "Heart rate",
|
|
75
|
+
unit = "bpm",
|
|
76
|
+
data = DEFAULT_DATA,
|
|
77
|
+
spans = [7, 15, 30],
|
|
78
|
+
defaultSpan = 7,
|
|
79
|
+
average,
|
|
80
|
+
color = "#e5484d",
|
|
81
|
+
onFullStats,
|
|
82
|
+
className
|
|
83
|
+
}, ref) {
|
|
84
|
+
const root = React.useRef(null);
|
|
85
|
+
React.useImperativeHandle(ref, () => root.current);
|
|
86
|
+
const still = !!useReducedMotion();
|
|
87
|
+
const inView = useInView(root, { once: true, amount: 0.3 });
|
|
88
|
+
const shown = inView || still;
|
|
89
|
+
const id = React.useId();
|
|
90
|
+
const [span, setSpan] = React.useState(
|
|
91
|
+
spans.includes(defaultSpan) ? defaultSpan : spans[0]
|
|
92
|
+
);
|
|
93
|
+
const [hover, setHover] = React.useState(null);
|
|
94
|
+
const days = data.slice(-span);
|
|
95
|
+
const n = days.length;
|
|
96
|
+
const all = days.flatMap((d) => d.ranges.flat());
|
|
97
|
+
const lo = Math.min(...all);
|
|
98
|
+
const hi = Math.max(...all);
|
|
99
|
+
const avg = Math.round(
|
|
100
|
+
average ?? all.reduce((s, v) => s + v, 0) / Math.max(1, all.length)
|
|
101
|
+
);
|
|
102
|
+
const floor = Math.max(0, lo - 12);
|
|
103
|
+
const ceil = hi + 12;
|
|
104
|
+
const y = (v) => (v - floor) / (ceil - floor) * CHART_H;
|
|
105
|
+
const avgY = y(avg);
|
|
106
|
+
const day = hover === null ? null : days[hover];
|
|
107
|
+
const vals = day ? day.ranges.flat() : all;
|
|
108
|
+
const showLo = Math.min(...vals);
|
|
109
|
+
const showHi = Math.max(...vals);
|
|
110
|
+
const showAvg = day ? Math.round(vals.reduce((s, v) => s + v, 0) / vals.length) : avg;
|
|
111
|
+
const period = `${shortDate.format(days[0].date)} to ${shortDate.format(days[n - 1].date)}`;
|
|
112
|
+
const barW = n <= 7 ? 22 : n <= 15 ? 12 : 6;
|
|
113
|
+
const label = (d, i) => n <= 7 ? weekday.format(d).slice(0, 2) : n <= 15 ? String(d.getDate()) : (n - 1 - i) % 5 === 0 ? String(d.getDate()) : "";
|
|
114
|
+
const move = (to) => {
|
|
115
|
+
const next = (to + n) % n;
|
|
116
|
+
setHover(next);
|
|
117
|
+
root.current?.querySelectorAll("[data-day]")[next]?.focus();
|
|
118
|
+
};
|
|
119
|
+
return /* @__PURE__ */ jsxs(
|
|
120
|
+
motion.div,
|
|
121
|
+
{
|
|
122
|
+
ref: root,
|
|
123
|
+
initial: still ? false : { opacity: 0, y: 20 },
|
|
124
|
+
animate: shown ? { opacity: 1, y: 0 } : void 0,
|
|
125
|
+
transition: { duration: 0.6, ease: GLIDE },
|
|
126
|
+
className: cn(
|
|
127
|
+
"w-[380px] 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",
|
|
128
|
+
className
|
|
129
|
+
),
|
|
130
|
+
children: [
|
|
131
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-3", children: [
|
|
132
|
+
/* @__PURE__ */ jsx("p", { className: "text-lg font-semibold tracking-tight", children: title }),
|
|
133
|
+
/* @__PURE__ */ jsx(
|
|
134
|
+
"div",
|
|
135
|
+
{
|
|
136
|
+
role: "tablist",
|
|
137
|
+
"aria-label": "Days shown",
|
|
138
|
+
className: "flex rounded-full bg-[#242423]/[0.06] p-0.5 dark:bg-white/[0.08]",
|
|
139
|
+
children: spans.map((s) => {
|
|
140
|
+
const on = s === span;
|
|
141
|
+
return /* @__PURE__ */ jsxs(
|
|
142
|
+
"button",
|
|
143
|
+
{
|
|
144
|
+
type: "button",
|
|
145
|
+
role: "tab",
|
|
146
|
+
"aria-selected": on,
|
|
147
|
+
onClick: () => {
|
|
148
|
+
setHover(null);
|
|
149
|
+
setSpan(s);
|
|
150
|
+
},
|
|
151
|
+
className: cn(
|
|
152
|
+
"relative h-7 cursor-pointer rounded-full px-2.5 text-xs font-medium tabular-nums outline-none transition-colors focus-visible:ring-2 focus-visible:ring-zinc-400",
|
|
153
|
+
on ? "text-white dark:text-[#242423]" : "text-zinc-500 hover:text-[#242423] dark:text-zinc-400 dark:hover:text-zinc-100"
|
|
154
|
+
),
|
|
155
|
+
children: [
|
|
156
|
+
on && /* @__PURE__ */ jsx(
|
|
157
|
+
motion.span,
|
|
158
|
+
{
|
|
159
|
+
layoutId: `${id}-span`,
|
|
160
|
+
className: "absolute inset-0 rounded-full bg-[#242423] dark:bg-zinc-100",
|
|
161
|
+
transition: still ? { duration: 0 } : PILL
|
|
162
|
+
}
|
|
163
|
+
),
|
|
164
|
+
/* @__PURE__ */ jsxs("span", { className: "relative", children: [
|
|
165
|
+
s,
|
|
166
|
+
"D"
|
|
167
|
+
] })
|
|
168
|
+
]
|
|
169
|
+
},
|
|
170
|
+
s
|
|
171
|
+
);
|
|
172
|
+
})
|
|
173
|
+
}
|
|
174
|
+
)
|
|
175
|
+
] }),
|
|
176
|
+
/* @__PURE__ */ jsxs(
|
|
177
|
+
"p",
|
|
178
|
+
{
|
|
179
|
+
className: "mt-5 flex items-end gap-2 font-semibold tracking-tight",
|
|
180
|
+
"aria-live": "polite",
|
|
181
|
+
"aria-label": `${showLo} to ${showHi} ${unit}, ${day ? longDay.format(day.date) : period}`,
|
|
182
|
+
children: [
|
|
183
|
+
/* @__PURE__ */ jsx("span", { className: "text-[48px] leading-none", children: /* @__PURE__ */ jsx(Rolling, { value: showLo, still }) }),
|
|
184
|
+
/* @__PURE__ */ jsx("span", { className: "pb-1 text-xl font-medium text-zinc-400", children: "to" }),
|
|
185
|
+
/* @__PURE__ */ jsx("span", { className: "text-[48px] leading-none", children: /* @__PURE__ */ jsx(Rolling, { value: showHi, still }) }),
|
|
186
|
+
/* @__PURE__ */ jsx("span", { className: "pb-1 text-xl font-medium text-zinc-400", children: unit })
|
|
187
|
+
]
|
|
188
|
+
}
|
|
189
|
+
),
|
|
190
|
+
/* @__PURE__ */ jsx("div", { className: "relative mt-2 h-5 overflow-hidden text-sm text-zinc-500 dark:text-zinc-400", children: /* @__PURE__ */ jsx(AnimatePresence, { mode: "popLayout", initial: false, children: /* @__PURE__ */ jsx(
|
|
191
|
+
motion.p,
|
|
192
|
+
{
|
|
193
|
+
initial: still ? false : { y: 12, opacity: 0, filter: "blur(2px)" },
|
|
194
|
+
animate: { y: 0, opacity: 1, filter: "blur(0px)" },
|
|
195
|
+
exit: still ? void 0 : { y: -12, opacity: 0, filter: "blur(2px)" },
|
|
196
|
+
transition: { duration: 0.25, ease: GLIDE },
|
|
197
|
+
children: day ? longDay.format(day.date) : `${period}, last ${span} days`
|
|
198
|
+
},
|
|
199
|
+
day ? day.date.toISOString() : `span-${span}`
|
|
200
|
+
) }) }),
|
|
201
|
+
/* @__PURE__ */ jsxs(
|
|
202
|
+
"div",
|
|
203
|
+
{
|
|
204
|
+
className: "relative mt-5",
|
|
205
|
+
onPointerLeave: () => setHover(null),
|
|
206
|
+
onKeyDown: (e) => {
|
|
207
|
+
if (e.key === "ArrowRight")
|
|
208
|
+
e.preventDefault(), move((hover ?? -1) + 1);
|
|
209
|
+
else if (e.key === "ArrowLeft")
|
|
210
|
+
e.preventDefault(), move((hover ?? n) - 1);
|
|
211
|
+
},
|
|
212
|
+
children: [
|
|
213
|
+
/* @__PURE__ */ jsx(
|
|
214
|
+
"div",
|
|
215
|
+
{
|
|
216
|
+
className: "relative grid gap-x-0.5",
|
|
217
|
+
style: { gridTemplateColumns: `repeat(${n}, minmax(0, 1fr))` },
|
|
218
|
+
children: days.map((d, i) => {
|
|
219
|
+
const on = hover === i;
|
|
220
|
+
const dim = hover !== null && !on;
|
|
221
|
+
const flat = d.ranges.flat();
|
|
222
|
+
return /* @__PURE__ */ jsxs(
|
|
223
|
+
"button",
|
|
224
|
+
{
|
|
225
|
+
type: "button",
|
|
226
|
+
"data-day": true,
|
|
227
|
+
"aria-label": `${longDay.format(d.date)}: ${Math.min(...flat)} to ${Math.max(...flat)} ${unit}`,
|
|
228
|
+
onPointerEnter: () => setHover(i),
|
|
229
|
+
onFocus: () => setHover(i),
|
|
230
|
+
className: "relative flex cursor-pointer flex-col items-center outline-none",
|
|
231
|
+
children: [
|
|
232
|
+
/* @__PURE__ */ jsxs("div", { className: "relative w-full", style: { height: CHART_H }, children: [
|
|
233
|
+
/* @__PURE__ */ jsx(
|
|
234
|
+
"span",
|
|
235
|
+
{
|
|
236
|
+
className: cn(
|
|
237
|
+
"absolute inset-y-0 left-1/2 -translate-x-1/2 rounded-full transition-colors duration-300",
|
|
238
|
+
on ? "bg-[#242423]/[0.07] dark:bg-white/[0.1]" : "bg-[#242423]/[0.03] dark:bg-white/[0.04]"
|
|
239
|
+
),
|
|
240
|
+
style: { width: barW + 8 }
|
|
241
|
+
}
|
|
242
|
+
),
|
|
243
|
+
d.ranges.map(([a, b], k) => {
|
|
244
|
+
const bottom = y(a);
|
|
245
|
+
const top = y(b);
|
|
246
|
+
const tall = Math.max(barW, top - bottom);
|
|
247
|
+
const bubble = tall === barW;
|
|
248
|
+
return /* @__PURE__ */ jsx(
|
|
249
|
+
motion.span,
|
|
250
|
+
{
|
|
251
|
+
className: "absolute left-1/2 rounded-full",
|
|
252
|
+
style: {
|
|
253
|
+
width: barW,
|
|
254
|
+
marginLeft: -barW / 2,
|
|
255
|
+
bottom: bubble ? (bottom + top) / 2 - barW / 2 : bottom,
|
|
256
|
+
height: tall,
|
|
257
|
+
background: `linear-gradient(to bottom, ${color}, ${color}b3)`,
|
|
258
|
+
// Grow out from the average line.
|
|
259
|
+
originY: Math.min(
|
|
260
|
+
1,
|
|
261
|
+
Math.max(0, (top - avgY) / tall)
|
|
262
|
+
)
|
|
263
|
+
},
|
|
264
|
+
initial: still ? false : { scaleY: 0, opacity: 0 },
|
|
265
|
+
animate: shown ? {
|
|
266
|
+
scaleY: 1,
|
|
267
|
+
opacity: dim ? 0.28 : 1,
|
|
268
|
+
scaleX: on && !still ? 1.18 : 1
|
|
269
|
+
} : void 0,
|
|
270
|
+
transition: {
|
|
271
|
+
scaleY: {
|
|
272
|
+
...GROW,
|
|
273
|
+
delay: still ? 0 : 0.2 + i * (0.42 / n) + k * 0.04
|
|
274
|
+
},
|
|
275
|
+
opacity: { duration: 0.25 },
|
|
276
|
+
scaleX: {
|
|
277
|
+
type: "spring",
|
|
278
|
+
stiffness: 500,
|
|
279
|
+
damping: 26
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
children: /* @__PURE__ */ jsx(AnimatePresence, { children: on && tall > barW + 12 && barW >= 10 && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
283
|
+
/* @__PURE__ */ jsx(
|
|
284
|
+
motion.span,
|
|
285
|
+
{
|
|
286
|
+
className: "absolute left-1/2 top-1 size-1.5 -translate-x-1/2 rounded-full bg-white",
|
|
287
|
+
initial: { scale: 0 },
|
|
288
|
+
animate: { scale: 1 },
|
|
289
|
+
exit: { scale: 0 },
|
|
290
|
+
transition: {
|
|
291
|
+
type: "spring",
|
|
292
|
+
stiffness: 500,
|
|
293
|
+
damping: 22
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
"top"
|
|
297
|
+
),
|
|
298
|
+
/* @__PURE__ */ jsx(
|
|
299
|
+
motion.span,
|
|
300
|
+
{
|
|
301
|
+
className: "absolute bottom-1 left-1/2 size-1.5 -translate-x-1/2 rounded-full bg-white",
|
|
302
|
+
initial: { scale: 0 },
|
|
303
|
+
animate: { scale: 1 },
|
|
304
|
+
exit: { scale: 0 },
|
|
305
|
+
transition: {
|
|
306
|
+
type: "spring",
|
|
307
|
+
stiffness: 500,
|
|
308
|
+
damping: 22,
|
|
309
|
+
delay: 0.04
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
"bottom"
|
|
313
|
+
)
|
|
314
|
+
] }) })
|
|
315
|
+
},
|
|
316
|
+
k
|
|
317
|
+
);
|
|
318
|
+
})
|
|
319
|
+
] }),
|
|
320
|
+
/* @__PURE__ */ jsx(
|
|
321
|
+
"span",
|
|
322
|
+
{
|
|
323
|
+
className: cn(
|
|
324
|
+
"mt-2 h-4 text-xs leading-4 tabular-nums transition-colors",
|
|
325
|
+
on ? "font-medium text-[#242423] dark:text-zinc-100" : "text-zinc-400"
|
|
326
|
+
),
|
|
327
|
+
children: on && n > 7 ? d.date.getDate() : label(d.date, i)
|
|
328
|
+
}
|
|
329
|
+
)
|
|
330
|
+
]
|
|
331
|
+
},
|
|
332
|
+
`${span}-${i}`
|
|
333
|
+
);
|
|
334
|
+
})
|
|
335
|
+
}
|
|
336
|
+
),
|
|
337
|
+
/* @__PURE__ */ jsx(
|
|
338
|
+
motion.div,
|
|
339
|
+
{
|
|
340
|
+
"aria-hidden": true,
|
|
341
|
+
className: "pointer-events-none absolute inset-x-0 h-px border-t border-dashed border-[#242423]/25 dark:border-white/25",
|
|
342
|
+
style: { bottom: avgY + LABEL_H, originX: 0 },
|
|
343
|
+
initial: still ? false : { scaleX: 0 },
|
|
344
|
+
animate: shown ? { scaleX: 1 } : void 0,
|
|
345
|
+
transition: { duration: 0.8, delay: 0.15, ease: GLIDE }
|
|
346
|
+
}
|
|
347
|
+
),
|
|
348
|
+
/* @__PURE__ */ jsxs(
|
|
349
|
+
motion.span,
|
|
350
|
+
{
|
|
351
|
+
className: "pointer-events-none absolute -right-2 inline-flex h-6 items-center rounded-full bg-white px-2 text-xs font-medium tabular-nums text-[#242423] ring-1 ring-[#242423]/15 dark:bg-zinc-900 dark:text-zinc-100 dark:ring-white/20",
|
|
352
|
+
style: { bottom: avgY + LABEL_H - 12 },
|
|
353
|
+
initial: still ? false : { opacity: 0, x: 10 },
|
|
354
|
+
animate: shown ? { opacity: 1, x: 0 } : void 0,
|
|
355
|
+
transition: { duration: 0.5, delay: 0.5, ease: GLIDE },
|
|
356
|
+
children: [
|
|
357
|
+
"Avg ",
|
|
358
|
+
avg
|
|
359
|
+
]
|
|
360
|
+
}
|
|
361
|
+
)
|
|
362
|
+
]
|
|
363
|
+
}
|
|
364
|
+
),
|
|
365
|
+
/* @__PURE__ */ jsx("div", { className: "mt-5 grid grid-cols-3 gap-2", children: [
|
|
366
|
+
{ label: "Lowest", value: showLo },
|
|
367
|
+
{ label: "Average", value: showAvg },
|
|
368
|
+
{ label: "Peak", value: showHi }
|
|
369
|
+
].map((t) => /* @__PURE__ */ jsxs(
|
|
370
|
+
"div",
|
|
371
|
+
{
|
|
372
|
+
className: "rounded-2xl bg-[#242423]/[0.04] px-3 py-2.5 dark:bg-white/[0.05]",
|
|
373
|
+
children: [
|
|
374
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-zinc-500 dark:text-zinc-400", children: t.label }),
|
|
375
|
+
/* @__PURE__ */ jsxs("p", { className: "mt-1 flex items-center text-base font-semibold", children: [
|
|
376
|
+
/* @__PURE__ */ jsx(Rolling, { value: t.value, still }),
|
|
377
|
+
/* @__PURE__ */ jsx("span", { className: "ml-1 text-xs font-normal text-zinc-400", children: unit })
|
|
378
|
+
] })
|
|
379
|
+
]
|
|
380
|
+
},
|
|
381
|
+
t.label
|
|
382
|
+
)) }),
|
|
383
|
+
/* @__PURE__ */ jsxs(
|
|
384
|
+
motion.button,
|
|
385
|
+
{
|
|
386
|
+
type: "button",
|
|
387
|
+
onClick: onFullStats,
|
|
388
|
+
whileTap: still ? void 0 : { scale: 0.98 },
|
|
389
|
+
className: "group/stats mt-3 flex h-10 w-full cursor-pointer items-center justify-center gap-1.5 rounded-full bg-[#242423]/[0.06] text-sm font-medium outline-none transition-colors hover:bg-[#242423]/[0.1] focus-visible:ring-2 focus-visible:ring-zinc-400 dark:bg-white/[0.08] dark:hover:bg-white/[0.12]",
|
|
390
|
+
children: [
|
|
391
|
+
"Full stats",
|
|
392
|
+
/* @__PURE__ */ jsxs("span", { className: "relative size-4 overflow-hidden", children: [
|
|
393
|
+
/* @__PURE__ */ jsx(
|
|
394
|
+
ArrowRight,
|
|
395
|
+
{
|
|
396
|
+
"aria-hidden": true,
|
|
397
|
+
className: "absolute inset-0 size-4 transition-transform duration-300 ease-out group-hover/stats:translate-x-5"
|
|
398
|
+
}
|
|
399
|
+
),
|
|
400
|
+
/* @__PURE__ */ jsx(
|
|
401
|
+
ArrowRight,
|
|
402
|
+
{
|
|
403
|
+
"aria-hidden": true,
|
|
404
|
+
className: "absolute inset-0 size-4 -translate-x-5 transition-transform duration-300 ease-out group-hover/stats:translate-x-0"
|
|
405
|
+
}
|
|
406
|
+
)
|
|
407
|
+
] })
|
|
408
|
+
]
|
|
409
|
+
}
|
|
410
|
+
)
|
|
411
|
+
]
|
|
412
|
+
}
|
|
413
|
+
);
|
|
414
|
+
}
|
|
415
|
+
);
|
|
416
|
+
|
|
417
|
+
export {
|
|
418
|
+
RangeChart
|
|
419
|
+
};
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
cn
|
|
4
|
+
} from "./chunk-2TQSHVXA.js";
|
|
5
|
+
|
|
6
|
+
// src/icons/map-pin.tsx
|
|
7
|
+
import { motion, useAnimation, useReducedMotion } from "motion/react";
|
|
8
|
+
import { forwardRef, useCallback, useEffect, useImperativeHandle, useRef, useState } from "react";
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
var SVG_VARIANTS = {
|
|
11
|
+
normal: {
|
|
12
|
+
y: 0
|
|
13
|
+
},
|
|
14
|
+
animate: {
|
|
15
|
+
y: [0, -5, -3],
|
|
16
|
+
transition: {
|
|
17
|
+
duration: 0.5,
|
|
18
|
+
times: [0, 0.6, 1]
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
var CIRCLE_VARIANTS = {
|
|
23
|
+
normal: {
|
|
24
|
+
opacity: 1
|
|
25
|
+
},
|
|
26
|
+
animate: {
|
|
27
|
+
opacity: [0, 1],
|
|
28
|
+
pathLength: [0, 1],
|
|
29
|
+
pathOffset: [0.5, 0],
|
|
30
|
+
transition: {
|
|
31
|
+
delay: 0.3,
|
|
32
|
+
duration: 0.5,
|
|
33
|
+
opacity: { duration: 0.1, delay: 0.3 }
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
var MapPinIcon = forwardRef(
|
|
38
|
+
({ onMouseEnter, onMouseLeave, className, size, active, style, strokeWidth, ...props }, ref) => {
|
|
39
|
+
const controls = useAnimation();
|
|
40
|
+
const isControlledRef = useRef(false);
|
|
41
|
+
useImperativeHandle(ref, () => {
|
|
42
|
+
isControlledRef.current = true;
|
|
43
|
+
return {
|
|
44
|
+
startAnimation: () => controls.start("animate"),
|
|
45
|
+
stopAnimation: () => controls.start("normal")
|
|
46
|
+
};
|
|
47
|
+
});
|
|
48
|
+
const handleMouseEnter = useCallback(
|
|
49
|
+
(e) => {
|
|
50
|
+
if (isControlledRef.current) {
|
|
51
|
+
onMouseEnter?.(e);
|
|
52
|
+
} else {
|
|
53
|
+
controls.start("animate");
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
[controls, onMouseEnter]
|
|
57
|
+
);
|
|
58
|
+
const handleMouseLeave = useCallback(
|
|
59
|
+
(e) => {
|
|
60
|
+
if (isControlledRef.current) {
|
|
61
|
+
onMouseLeave?.(e);
|
|
62
|
+
} else {
|
|
63
|
+
controls.start("normal");
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
[controls, onMouseLeave]
|
|
67
|
+
);
|
|
68
|
+
const wrap = useRef(null);
|
|
69
|
+
const reduced = useReducedMotion();
|
|
70
|
+
const [hosted, setHosted] = useState(false);
|
|
71
|
+
useEffect(() => {
|
|
72
|
+
const fake = {};
|
|
73
|
+
if (reduced) {
|
|
74
|
+
setHosted(true);
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
if (active !== void 0) {
|
|
78
|
+
setHosted(true);
|
|
79
|
+
(active ? handleMouseEnter : handleMouseLeave)(fake);
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
const host = wrap.current?.parentElement?.closest("button, a, [role=button], [role=menuitem], [role=tab], [role=switch], [role=radio], label");
|
|
83
|
+
setHosted(!!host);
|
|
84
|
+
if (!host) return;
|
|
85
|
+
const on = () => handleMouseEnter(fake);
|
|
86
|
+
const off = () => handleMouseLeave(fake);
|
|
87
|
+
host.addEventListener("pointerenter", on);
|
|
88
|
+
host.addEventListener("pointerleave", off);
|
|
89
|
+
return () => {
|
|
90
|
+
host.removeEventListener("pointerenter", on);
|
|
91
|
+
host.removeEventListener("pointerleave", off);
|
|
92
|
+
};
|
|
93
|
+
}, [active, reduced, handleMouseEnter, handleMouseLeave]);
|
|
94
|
+
return /* @__PURE__ */ jsx(
|
|
95
|
+
"span",
|
|
96
|
+
{
|
|
97
|
+
ref: wrap,
|
|
98
|
+
className: cn("inline-grid size-6 shrink-0 place-items-center align-middle [&>svg]:size-full", className),
|
|
99
|
+
style: size ? { width: size, height: size, ...style } : style,
|
|
100
|
+
onMouseEnter: hosted ? void 0 : handleMouseEnter,
|
|
101
|
+
onMouseLeave: hosted ? void 0 : handleMouseLeave,
|
|
102
|
+
...props,
|
|
103
|
+
children: /* @__PURE__ */ jsxs(
|
|
104
|
+
motion.svg,
|
|
105
|
+
{
|
|
106
|
+
animate: controls,
|
|
107
|
+
fill: "none",
|
|
108
|
+
height: size,
|
|
109
|
+
initial: "normal",
|
|
110
|
+
stroke: "currentColor",
|
|
111
|
+
strokeLinecap: "round",
|
|
112
|
+
strokeLinejoin: "round",
|
|
113
|
+
strokeWidth: strokeWidth ?? 2,
|
|
114
|
+
variants: SVG_VARIANTS,
|
|
115
|
+
viewBox: "0 0 24 24",
|
|
116
|
+
width: size,
|
|
117
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
118
|
+
children: [
|
|
119
|
+
/* @__PURE__ */ jsx("path", { d: "M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0" }),
|
|
120
|
+
/* @__PURE__ */ jsx(
|
|
121
|
+
motion.circle,
|
|
122
|
+
{
|
|
123
|
+
animate: controls,
|
|
124
|
+
cx: "12",
|
|
125
|
+
cy: "10",
|
|
126
|
+
initial: "normal",
|
|
127
|
+
r: "3",
|
|
128
|
+
variants: CIRCLE_VARIANTS
|
|
129
|
+
}
|
|
130
|
+
)
|
|
131
|
+
]
|
|
132
|
+
}
|
|
133
|
+
)
|
|
134
|
+
}
|
|
135
|
+
);
|
|
136
|
+
}
|
|
137
|
+
);
|
|
138
|
+
MapPinIcon.displayName = "MapPinIcon";
|
|
139
|
+
|
|
140
|
+
export {
|
|
141
|
+
MapPinIcon
|
|
142
|
+
};
|