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,590 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
MonitorCheckIcon
|
|
4
|
+
} from "./chunk-NNKC6NEH.js";
|
|
5
|
+
import {
|
|
6
|
+
ArrowDownRightIcon
|
|
7
|
+
} from "./chunk-25254AZA.js";
|
|
8
|
+
import {
|
|
9
|
+
SmartphoneNfcIcon
|
|
10
|
+
} from "./chunk-OS6REIBR.js";
|
|
11
|
+
import {
|
|
12
|
+
ArrowUpRightIcon
|
|
13
|
+
} from "./chunk-I7KTTOOJ.js";
|
|
14
|
+
import {
|
|
15
|
+
cn
|
|
16
|
+
} from "./chunk-2TQSHVXA.js";
|
|
17
|
+
|
|
18
|
+
// src/components/device-traffic/device-traffic.tsx
|
|
19
|
+
import * as React from "react";
|
|
20
|
+
import {
|
|
21
|
+
AnimatePresence,
|
|
22
|
+
motion as motion2,
|
|
23
|
+
useInView,
|
|
24
|
+
useReducedMotion as useReducedMotion2
|
|
25
|
+
} from "motion/react";
|
|
26
|
+
import { Tablet } from "lucide-react";
|
|
27
|
+
|
|
28
|
+
// src/icons/radio.tsx
|
|
29
|
+
import { motion, useAnimation, useReducedMotion } from "motion/react";
|
|
30
|
+
import { forwardRef, useCallback, useEffect, useImperativeHandle, useRef, useState } from "react";
|
|
31
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
32
|
+
var VARIANTS = {
|
|
33
|
+
normal: {
|
|
34
|
+
opacity: 1,
|
|
35
|
+
transition: {
|
|
36
|
+
duration: 0.4
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
fadeOut: {
|
|
40
|
+
opacity: 0,
|
|
41
|
+
transition: { duration: 0.3 }
|
|
42
|
+
},
|
|
43
|
+
fadeIn: (i) => ({
|
|
44
|
+
opacity: 1,
|
|
45
|
+
transition: {
|
|
46
|
+
type: "spring",
|
|
47
|
+
stiffness: 300,
|
|
48
|
+
damping: 20,
|
|
49
|
+
delay: i * 0.1
|
|
50
|
+
}
|
|
51
|
+
})
|
|
52
|
+
};
|
|
53
|
+
var RadioIcon = forwardRef(
|
|
54
|
+
({ onMouseEnter, onMouseLeave, className, size, active, style, strokeWidth, ...props }, ref) => {
|
|
55
|
+
const controls = useAnimation();
|
|
56
|
+
const isControlledRef = useRef(false);
|
|
57
|
+
useImperativeHandle(ref, () => {
|
|
58
|
+
isControlledRef.current = true;
|
|
59
|
+
return {
|
|
60
|
+
startAnimation: async () => {
|
|
61
|
+
await controls.start("fadeOut");
|
|
62
|
+
controls.start("fadeIn");
|
|
63
|
+
},
|
|
64
|
+
stopAnimation: () => controls.start("normal")
|
|
65
|
+
};
|
|
66
|
+
});
|
|
67
|
+
const handleMouseEnter = useCallback(
|
|
68
|
+
async (e) => {
|
|
69
|
+
if (isControlledRef.current) {
|
|
70
|
+
onMouseEnter?.(e);
|
|
71
|
+
} else {
|
|
72
|
+
await controls.start("fadeOut");
|
|
73
|
+
controls.start("fadeIn");
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
[controls, onMouseEnter]
|
|
77
|
+
);
|
|
78
|
+
const handleMouseLeave = useCallback(
|
|
79
|
+
(e) => {
|
|
80
|
+
if (isControlledRef.current) {
|
|
81
|
+
onMouseLeave?.(e);
|
|
82
|
+
} else {
|
|
83
|
+
controls.start("normal");
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
[controls, onMouseLeave]
|
|
87
|
+
);
|
|
88
|
+
const wrap = useRef(null);
|
|
89
|
+
const reduced = useReducedMotion();
|
|
90
|
+
const [hosted, setHosted] = useState(false);
|
|
91
|
+
useEffect(() => {
|
|
92
|
+
const fake = {};
|
|
93
|
+
if (reduced) {
|
|
94
|
+
setHosted(true);
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
if (active !== void 0) {
|
|
98
|
+
setHosted(true);
|
|
99
|
+
(active ? handleMouseEnter : handleMouseLeave)(fake);
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
const host = wrap.current?.parentElement?.closest("button, a, [role=button], [role=menuitem], [role=tab], [role=switch], [role=radio], label");
|
|
103
|
+
setHosted(!!host);
|
|
104
|
+
if (!host) return;
|
|
105
|
+
const on = () => handleMouseEnter(fake);
|
|
106
|
+
const off = () => handleMouseLeave(fake);
|
|
107
|
+
host.addEventListener("pointerenter", on);
|
|
108
|
+
host.addEventListener("pointerleave", off);
|
|
109
|
+
return () => {
|
|
110
|
+
host.removeEventListener("pointerenter", on);
|
|
111
|
+
host.removeEventListener("pointerleave", off);
|
|
112
|
+
};
|
|
113
|
+
}, [active, reduced, handleMouseEnter, handleMouseLeave]);
|
|
114
|
+
return /* @__PURE__ */ jsx(
|
|
115
|
+
"span",
|
|
116
|
+
{
|
|
117
|
+
ref: wrap,
|
|
118
|
+
className: cn("inline-grid size-6 shrink-0 place-items-center align-middle [&>svg]:size-full", className),
|
|
119
|
+
style: size ? { width: size, height: size, ...style } : style,
|
|
120
|
+
onMouseEnter: hosted ? void 0 : handleMouseEnter,
|
|
121
|
+
onMouseLeave: hosted ? void 0 : handleMouseLeave,
|
|
122
|
+
...props,
|
|
123
|
+
children: /* @__PURE__ */ jsxs(
|
|
124
|
+
"svg",
|
|
125
|
+
{
|
|
126
|
+
fill: "none",
|
|
127
|
+
height: size,
|
|
128
|
+
stroke: "currentColor",
|
|
129
|
+
strokeLinecap: "round",
|
|
130
|
+
strokeLinejoin: "round",
|
|
131
|
+
strokeWidth: strokeWidth ?? 2,
|
|
132
|
+
viewBox: "0 0 24 24",
|
|
133
|
+
width: size,
|
|
134
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
135
|
+
children: [
|
|
136
|
+
/* @__PURE__ */ jsx(
|
|
137
|
+
motion.path,
|
|
138
|
+
{
|
|
139
|
+
animate: controls,
|
|
140
|
+
custom: 1,
|
|
141
|
+
d: "M4.9 19.1C1 15.2 1 8.8 4.9 4.9",
|
|
142
|
+
initial: { opacity: 1 },
|
|
143
|
+
variants: VARIANTS
|
|
144
|
+
}
|
|
145
|
+
),
|
|
146
|
+
/* @__PURE__ */ jsx(
|
|
147
|
+
motion.path,
|
|
148
|
+
{
|
|
149
|
+
animate: controls,
|
|
150
|
+
custom: 0,
|
|
151
|
+
d: "M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",
|
|
152
|
+
initial: { opacity: 1 },
|
|
153
|
+
variants: VARIANTS
|
|
154
|
+
}
|
|
155
|
+
),
|
|
156
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "2" }),
|
|
157
|
+
/* @__PURE__ */ jsx(
|
|
158
|
+
motion.path,
|
|
159
|
+
{
|
|
160
|
+
animate: controls,
|
|
161
|
+
custom: 0,
|
|
162
|
+
d: "M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",
|
|
163
|
+
initial: { opacity: 1 },
|
|
164
|
+
variants: VARIANTS
|
|
165
|
+
}
|
|
166
|
+
),
|
|
167
|
+
/* @__PURE__ */ jsx(
|
|
168
|
+
motion.path,
|
|
169
|
+
{
|
|
170
|
+
animate: controls,
|
|
171
|
+
custom: 1,
|
|
172
|
+
d: "M19.1 4.9C23 8.8 23 15.1 19.1 19",
|
|
173
|
+
initial: { opacity: 1 },
|
|
174
|
+
variants: VARIANTS
|
|
175
|
+
}
|
|
176
|
+
)
|
|
177
|
+
]
|
|
178
|
+
}
|
|
179
|
+
)
|
|
180
|
+
}
|
|
181
|
+
);
|
|
182
|
+
}
|
|
183
|
+
);
|
|
184
|
+
RadioIcon.displayName = "RadioIcon";
|
|
185
|
+
|
|
186
|
+
// src/components/device-traffic/device-traffic.tsx
|
|
187
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
188
|
+
var PALETTE = ["#4f46e5", "#38bdf8", "#34d399"];
|
|
189
|
+
var GOOD = "#269a5a";
|
|
190
|
+
var BAD = "#d64545";
|
|
191
|
+
var GLIDE = [0.22, 1, 0.36, 1];
|
|
192
|
+
var ROLL = { type: "spring", stiffness: 200, damping: 26 };
|
|
193
|
+
var LEVEL = { type: "spring", stiffness: 120, damping: 18 };
|
|
194
|
+
var DIGITS = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
|
|
195
|
+
var DEFAULT_DEVICES = [
|
|
196
|
+
{ name: "Desktop", kind: "desktop", share: 27, change: -3.2 },
|
|
197
|
+
{ name: "Tablet", kind: "tablet", share: 12, change: -6.4 },
|
|
198
|
+
{ name: "Mobile", kind: "mobile", share: 61, change: 0.8 }
|
|
199
|
+
];
|
|
200
|
+
function Digit({ digit, still }) {
|
|
201
|
+
return /* @__PURE__ */ jsx2("span", { className: "relative inline-block h-[1em] w-[0.62em] overflow-hidden", children: /* @__PURE__ */ jsx2(
|
|
202
|
+
motion2.span,
|
|
203
|
+
{
|
|
204
|
+
className: "absolute inset-x-0 top-0 flex flex-col",
|
|
205
|
+
initial: false,
|
|
206
|
+
animate: { y: `${-digit * 10}%` },
|
|
207
|
+
transition: still ? { duration: 0 } : ROLL,
|
|
208
|
+
children: DIGITS.map((d) => /* @__PURE__ */ jsx2("span", { className: "flex h-[1em] items-center justify-center", children: d }, d))
|
|
209
|
+
}
|
|
210
|
+
) });
|
|
211
|
+
}
|
|
212
|
+
function RollText({ text, still }) {
|
|
213
|
+
const chars = Array.from(text);
|
|
214
|
+
return /* @__PURE__ */ jsx2("span", { "aria-hidden": true, className: "inline-flex leading-none tabular-nums", children: chars.map((ch, i) => {
|
|
215
|
+
const key = chars.length - i;
|
|
216
|
+
return /\d/.test(ch) ? /* @__PURE__ */ jsx2(Digit, { digit: Number(ch), still }, key) : /* @__PURE__ */ jsx2("span", { className: "whitespace-pre", children: ch }, `${key}${ch}`);
|
|
217
|
+
}) });
|
|
218
|
+
}
|
|
219
|
+
var zeroed = (text) => text.replace(/\d/g, "0");
|
|
220
|
+
function TabletIcon({
|
|
221
|
+
active,
|
|
222
|
+
className
|
|
223
|
+
}) {
|
|
224
|
+
const still = !!useReducedMotion2();
|
|
225
|
+
return /* @__PURE__ */ jsx2(
|
|
226
|
+
motion2.span,
|
|
227
|
+
{
|
|
228
|
+
className: cn("inline-grid place-items-center", className),
|
|
229
|
+
animate: active && !still ? { rotate: [0, -90, -90, 0] } : { rotate: 0 },
|
|
230
|
+
transition: { duration: 1.1, times: [0, 0.35, 0.7, 1], ease: GLIDE },
|
|
231
|
+
children: /* @__PURE__ */ jsx2(Tablet, { className: "size-full" })
|
|
232
|
+
}
|
|
233
|
+
);
|
|
234
|
+
}
|
|
235
|
+
var ICONS = {
|
|
236
|
+
desktop: MonitorCheckIcon,
|
|
237
|
+
tablet: TabletIcon,
|
|
238
|
+
mobile: SmartphoneNfcIcon
|
|
239
|
+
};
|
|
240
|
+
function Change({
|
|
241
|
+
change,
|
|
242
|
+
nudge,
|
|
243
|
+
chip
|
|
244
|
+
}) {
|
|
245
|
+
const up = change >= 0;
|
|
246
|
+
const color = up ? GOOD : BAD;
|
|
247
|
+
const Arrow = up ? ArrowUpRightIcon : ArrowDownRightIcon;
|
|
248
|
+
return /* @__PURE__ */ jsxs2(
|
|
249
|
+
"span",
|
|
250
|
+
{
|
|
251
|
+
className: cn(
|
|
252
|
+
"inline-flex items-center gap-1 text-sm font-medium tabular-nums",
|
|
253
|
+
chip && "h-7 rounded-full px-2.5"
|
|
254
|
+
),
|
|
255
|
+
style: { color, background: chip ? `${color}14` : void 0 },
|
|
256
|
+
children: [
|
|
257
|
+
up ? "+" : "\u2212",
|
|
258
|
+
Math.abs(change).toFixed(1),
|
|
259
|
+
"%",
|
|
260
|
+
/* @__PURE__ */ jsx2(
|
|
261
|
+
motion2.span,
|
|
262
|
+
{
|
|
263
|
+
className: "grid",
|
|
264
|
+
animate: nudge ? { x: 2, y: up ? -2 : 2 } : { x: 0, y: 0 },
|
|
265
|
+
transition: { duration: 0.25, ease: GLIDE },
|
|
266
|
+
children: /* @__PURE__ */ jsx2(Arrow, { className: "size-3.5", strokeWidth: 2.5 })
|
|
267
|
+
}
|
|
268
|
+
)
|
|
269
|
+
]
|
|
270
|
+
}
|
|
271
|
+
);
|
|
272
|
+
}
|
|
273
|
+
function normalize(shares) {
|
|
274
|
+
const sum = shares.reduce((a, b) => a + b, 0) || 1;
|
|
275
|
+
return shares.map((s) => s / sum * 100);
|
|
276
|
+
}
|
|
277
|
+
function wholePercents(shares) {
|
|
278
|
+
const floors = shares.map(Math.floor);
|
|
279
|
+
let spare = 100 - floors.reduce((a, b) => a + b, 0);
|
|
280
|
+
const order = shares.map((s, i) => ({ i, r: s - Math.floor(s) })).sort((a, b) => b.r - a.r);
|
|
281
|
+
for (const { i } of order) {
|
|
282
|
+
if (spare <= 0) break;
|
|
283
|
+
floors[i]++;
|
|
284
|
+
spare--;
|
|
285
|
+
}
|
|
286
|
+
return floors;
|
|
287
|
+
}
|
|
288
|
+
var DeviceTraffic = React.forwardRef(function DeviceTraffic2({
|
|
289
|
+
title = "Traffic by device",
|
|
290
|
+
description = "Watch where visitors arrive from, and spot shifts between screens as they happen.",
|
|
291
|
+
label = "Total visitors",
|
|
292
|
+
total: startTotal = 237456,
|
|
293
|
+
change = -1.4,
|
|
294
|
+
devices = DEFAULT_DEVICES,
|
|
295
|
+
live = true,
|
|
296
|
+
interval = 2.6,
|
|
297
|
+
colors = PALETTE,
|
|
298
|
+
onReport,
|
|
299
|
+
locale = "en-US",
|
|
300
|
+
header = true,
|
|
301
|
+
className
|
|
302
|
+
}, ref) {
|
|
303
|
+
const still = !!useReducedMotion2();
|
|
304
|
+
const root = React.useRef(null);
|
|
305
|
+
React.useImperativeHandle(ref, () => root.current);
|
|
306
|
+
const seen = useInView(root, { once: true, amount: 0.35 });
|
|
307
|
+
const visible = useInView(root, { amount: 0.1 });
|
|
308
|
+
const shown = seen || still;
|
|
309
|
+
const format = React.useMemo(() => new Intl.NumberFormat(locale), [locale]);
|
|
310
|
+
const [total, setTotal] = React.useState(startTotal);
|
|
311
|
+
const [shares, setShares] = React.useState(
|
|
312
|
+
() => normalize(devices.map((d) => d.share))
|
|
313
|
+
);
|
|
314
|
+
const [bump, setBump] = React.useState(
|
|
315
|
+
null
|
|
316
|
+
);
|
|
317
|
+
const [hover, setHover] = React.useState(null);
|
|
318
|
+
const [headHover, setHeadHover] = React.useState(false);
|
|
319
|
+
const shareKey = devices.map((d) => d.share).join(",");
|
|
320
|
+
React.useEffect(() => {
|
|
321
|
+
setTotal(startTotal);
|
|
322
|
+
setShares(normalize(shareKey.split(",").map(Number)));
|
|
323
|
+
}, [startTotal, shareKey]);
|
|
324
|
+
React.useEffect(() => {
|
|
325
|
+
if (!live || !seen || !visible) return;
|
|
326
|
+
const t = window.setInterval(() => {
|
|
327
|
+
if (document.hidden) return;
|
|
328
|
+
const n = 4 + Math.floor(Math.random() * 32);
|
|
329
|
+
setTotal((v) => v + n);
|
|
330
|
+
setBump((b) => ({ n, key: (b?.key ?? 0) + 1 }));
|
|
331
|
+
setShares(
|
|
332
|
+
(s) => normalize(s.map((x) => Math.max(1, x + (Math.random() - 0.5) * 1.2)))
|
|
333
|
+
);
|
|
334
|
+
}, interval * 1e3);
|
|
335
|
+
return () => window.clearInterval(t);
|
|
336
|
+
}, [live, seen, visible, interval]);
|
|
337
|
+
React.useEffect(() => {
|
|
338
|
+
if (!bump) return;
|
|
339
|
+
const t = window.setTimeout(() => setBump(null), 1400);
|
|
340
|
+
return () => window.clearTimeout(t);
|
|
341
|
+
}, [bump]);
|
|
342
|
+
const percents = wholePercents(shares);
|
|
343
|
+
const totalText = format.format(total);
|
|
344
|
+
return /* @__PURE__ */ jsxs2(
|
|
345
|
+
motion2.div,
|
|
346
|
+
{
|
|
347
|
+
ref: root,
|
|
348
|
+
initial: still ? false : { opacity: 0, y: 16, filter: "blur(8px)" },
|
|
349
|
+
animate: shown ? { opacity: 1, y: 0, filter: "blur(0px)" } : void 0,
|
|
350
|
+
transition: { duration: 0.6, ease: GLIDE },
|
|
351
|
+
className: cn(
|
|
352
|
+
"w-[400px] max-w-full overflow-hidden rounded-[32px] bg-white text-[#242423] shadow-[0_1px_2px_rgba(0,0,0,0.04),0_12px_32px_-16px_rgba(0,0,0,0.18)]",
|
|
353
|
+
className
|
|
354
|
+
),
|
|
355
|
+
children: [
|
|
356
|
+
header && /* @__PURE__ */ jsxs2(
|
|
357
|
+
"div",
|
|
358
|
+
{
|
|
359
|
+
className: "bg-[#f1f1ef] px-6 pb-14 pt-6",
|
|
360
|
+
onPointerEnter: () => setHeadHover(true),
|
|
361
|
+
onPointerLeave: () => setHeadHover(false),
|
|
362
|
+
children: [
|
|
363
|
+
/* @__PURE__ */ jsx2(
|
|
364
|
+
"span",
|
|
365
|
+
{
|
|
366
|
+
className: "grid size-11 place-items-center rounded-2xl bg-white shadow-[0_1px_2px_rgba(0,0,0,0.06)]",
|
|
367
|
+
style: { color: colors[0] ?? PALETTE[0] },
|
|
368
|
+
children: /* @__PURE__ */ jsx2(
|
|
369
|
+
RadioIcon,
|
|
370
|
+
{
|
|
371
|
+
className: "size-5",
|
|
372
|
+
active: headHover || live && bump !== null
|
|
373
|
+
}
|
|
374
|
+
)
|
|
375
|
+
}
|
|
376
|
+
),
|
|
377
|
+
/* @__PURE__ */ jsx2("h3", { className: "mt-6 text-xl font-semibold tracking-tight", children: title }),
|
|
378
|
+
/* @__PURE__ */ jsx2("p", { className: "mt-1.5 text-pretty text-sm leading-relaxed text-zinc-500", children: description })
|
|
379
|
+
]
|
|
380
|
+
}
|
|
381
|
+
),
|
|
382
|
+
/* @__PURE__ */ jsxs2(
|
|
383
|
+
motion2.div,
|
|
384
|
+
{
|
|
385
|
+
initial: still ? false : { opacity: 0, y: 12 },
|
|
386
|
+
animate: shown ? { opacity: 1, y: 0 } : void 0,
|
|
387
|
+
transition: { duration: 0.55, ease: GLIDE, delay: still ? 0 : 0.12 },
|
|
388
|
+
className: cn(
|
|
389
|
+
"relative bg-white px-6 pb-6 pt-6",
|
|
390
|
+
header && "-mt-8 rounded-t-[28px]"
|
|
391
|
+
),
|
|
392
|
+
children: [
|
|
393
|
+
/* @__PURE__ */ jsxs2("div", { className: "flex items-start justify-between gap-3", children: [
|
|
394
|
+
/* @__PURE__ */ jsxs2("div", { className: "min-w-0", children: [
|
|
395
|
+
/* @__PURE__ */ jsxs2("div", { className: "flex items-center gap-2 text-sm text-zinc-500", children: [
|
|
396
|
+
label,
|
|
397
|
+
live && /* @__PURE__ */ jsxs2("span", { className: "inline-flex items-center gap-1.5 rounded-full bg-[#269a5a]/10 px-2 py-0.5 text-xs font-medium text-[#269a5a]", children: [
|
|
398
|
+
/* @__PURE__ */ jsxs2("span", { className: "relative grid size-1.5 place-items-center", children: [
|
|
399
|
+
!still && /* @__PURE__ */ jsx2(
|
|
400
|
+
motion2.span,
|
|
401
|
+
{
|
|
402
|
+
className: "absolute inset-0 rounded-full bg-[#269a5a]",
|
|
403
|
+
animate: { scale: [1, 2.6], opacity: [0.6, 0] },
|
|
404
|
+
transition: {
|
|
405
|
+
duration: 1.6,
|
|
406
|
+
repeat: Infinity,
|
|
407
|
+
ease: "easeOut"
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
),
|
|
411
|
+
/* @__PURE__ */ jsx2("span", { className: "relative size-1.5 rounded-full bg-[#269a5a]" })
|
|
412
|
+
] }),
|
|
413
|
+
"Live"
|
|
414
|
+
] }),
|
|
415
|
+
/* @__PURE__ */ jsx2("span", { className: "relative h-5 w-10", children: /* @__PURE__ */ jsx2(AnimatePresence, { children: bump && !still && /* @__PURE__ */ jsxs2(
|
|
416
|
+
motion2.span,
|
|
417
|
+
{
|
|
418
|
+
"aria-hidden": true,
|
|
419
|
+
initial: { opacity: 0, y: 6 },
|
|
420
|
+
animate: { opacity: 1, y: 0 },
|
|
421
|
+
exit: { opacity: 0, y: -8 },
|
|
422
|
+
transition: { duration: 0.5, ease: GLIDE },
|
|
423
|
+
className: "pointer-events-none absolute left-0 top-0 text-xs font-semibold leading-5 tabular-nums text-[#269a5a]",
|
|
424
|
+
children: [
|
|
425
|
+
"+",
|
|
426
|
+
bump.n
|
|
427
|
+
]
|
|
428
|
+
},
|
|
429
|
+
bump.key
|
|
430
|
+
) }) })
|
|
431
|
+
] }),
|
|
432
|
+
/* @__PURE__ */ jsxs2("div", { className: "mt-2 flex flex-wrap items-center gap-x-3 gap-y-1", children: [
|
|
433
|
+
/* @__PURE__ */ jsxs2("span", { className: "text-[32px] font-semibold leading-none tracking-tight", children: [
|
|
434
|
+
/* @__PURE__ */ jsx2("span", { className: "sr-only", children: totalText }),
|
|
435
|
+
/* @__PURE__ */ jsx2(
|
|
436
|
+
RollText,
|
|
437
|
+
{
|
|
438
|
+
text: shown ? totalText : zeroed(totalText),
|
|
439
|
+
still
|
|
440
|
+
}
|
|
441
|
+
)
|
|
442
|
+
] }),
|
|
443
|
+
/* @__PURE__ */ jsx2(Change, { change, nudge: false, chip: true })
|
|
444
|
+
] })
|
|
445
|
+
] }),
|
|
446
|
+
onReport && /* @__PURE__ */ jsxs2(
|
|
447
|
+
motion2.button,
|
|
448
|
+
{
|
|
449
|
+
type: "button",
|
|
450
|
+
onClick: onReport,
|
|
451
|
+
whileTap: still ? void 0 : { scale: 0.95 },
|
|
452
|
+
className: "group/btn flex h-9 shrink-0 cursor-pointer items-center gap-1 overflow-hidden rounded-full bg-[#242423]/[0.05] pl-3.5 pr-2.5 text-sm font-medium outline-none transition-colors hover:bg-[#242423]/[0.09] focus-visible:ring-2 focus-visible:ring-zinc-400",
|
|
453
|
+
children: [
|
|
454
|
+
"Report",
|
|
455
|
+
/* @__PURE__ */ jsxs2("span", { className: "relative grid size-4 place-items-center overflow-hidden", children: [
|
|
456
|
+
/* @__PURE__ */ jsx2(
|
|
457
|
+
ArrowUpRightIcon,
|
|
458
|
+
{
|
|
459
|
+
className: "size-3.5 transition-transform duration-300 ease-out group-hover/btn:-translate-y-4 group-hover/btn:translate-x-4",
|
|
460
|
+
strokeWidth: 2.5
|
|
461
|
+
}
|
|
462
|
+
),
|
|
463
|
+
/* @__PURE__ */ jsx2(
|
|
464
|
+
ArrowUpRightIcon,
|
|
465
|
+
{
|
|
466
|
+
className: "absolute size-3.5 -translate-x-4 translate-y-4 transition-transform duration-300 ease-out group-hover/btn:translate-x-0 group-hover/btn:translate-y-0",
|
|
467
|
+
strokeWidth: 2.5
|
|
468
|
+
}
|
|
469
|
+
)
|
|
470
|
+
] })
|
|
471
|
+
]
|
|
472
|
+
}
|
|
473
|
+
)
|
|
474
|
+
] }),
|
|
475
|
+
/* @__PURE__ */ jsx2("div", { "aria-hidden": true, className: "-mx-6 my-5 h-px bg-[#242423]/[0.07]" }),
|
|
476
|
+
/* @__PURE__ */ jsx2("div", { className: "grid grid-cols-3", onPointerLeave: () => setHover(null), children: devices.map((d, i) => {
|
|
477
|
+
const Icon = ICONS[d.kind];
|
|
478
|
+
const color = d.color ?? colors[i % colors.length] ?? PALETTE[i % PALETTE.length];
|
|
479
|
+
const on = hover === i;
|
|
480
|
+
const dim = hover !== null && !on;
|
|
481
|
+
const visitors = format.format(
|
|
482
|
+
Math.round(total * (shares[i] ?? 0) / 100)
|
|
483
|
+
);
|
|
484
|
+
const pct = `${percents[i] ?? 0}%`;
|
|
485
|
+
return /* @__PURE__ */ jsxs2(
|
|
486
|
+
motion2.div,
|
|
487
|
+
{
|
|
488
|
+
tabIndex: 0,
|
|
489
|
+
"aria-label": `${d.name}: ${pct} of visitors, ${visitors} visitors, ${d.change >= 0 ? "up" : "down"} ${Math.abs(d.change)}%`,
|
|
490
|
+
onPointerEnter: () => setHover(i),
|
|
491
|
+
onFocus: () => setHover(i),
|
|
492
|
+
onBlur: () => setHover(null),
|
|
493
|
+
animate: { opacity: dim ? 0.45 : 1 },
|
|
494
|
+
transition: { duration: 0.25, ease: GLIDE },
|
|
495
|
+
className: "relative flex min-w-0 flex-col px-3 outline-none focus-visible:bg-[#242423]/[0.02]",
|
|
496
|
+
children: [
|
|
497
|
+
i > 0 && /* @__PURE__ */ jsx2(
|
|
498
|
+
"span",
|
|
499
|
+
{
|
|
500
|
+
"aria-hidden": true,
|
|
501
|
+
className: "absolute -bottom-6 -top-5 left-0 w-px bg-[#242423]/[0.07]"
|
|
502
|
+
}
|
|
503
|
+
),
|
|
504
|
+
/* @__PURE__ */ jsxs2(
|
|
505
|
+
"span",
|
|
506
|
+
{
|
|
507
|
+
className: cn(
|
|
508
|
+
"flex items-center gap-2 text-sm transition-colors",
|
|
509
|
+
on ? "text-[#242423]" : "text-zinc-500"
|
|
510
|
+
),
|
|
511
|
+
children: [
|
|
512
|
+
/* @__PURE__ */ jsx2(
|
|
513
|
+
"span",
|
|
514
|
+
{
|
|
515
|
+
className: "grid transition-colors",
|
|
516
|
+
style: on ? { color } : void 0,
|
|
517
|
+
children: /* @__PURE__ */ jsx2(Icon, { className: "size-4", active: on })
|
|
518
|
+
}
|
|
519
|
+
),
|
|
520
|
+
/* @__PURE__ */ jsx2("span", { className: "truncate", children: d.name })
|
|
521
|
+
]
|
|
522
|
+
}
|
|
523
|
+
),
|
|
524
|
+
/* @__PURE__ */ jsx2("span", { className: "mt-2 text-2xl font-semibold leading-none tracking-tight", children: /* @__PURE__ */ jsx2(RollText, { text: shown ? pct : zeroed(pct), still }) }),
|
|
525
|
+
/* @__PURE__ */ jsxs2(
|
|
526
|
+
"span",
|
|
527
|
+
{
|
|
528
|
+
"aria-hidden": true,
|
|
529
|
+
className: "relative mt-4 block h-28 overflow-hidden rounded-xl bg-[#242423]/[0.04]",
|
|
530
|
+
children: [
|
|
531
|
+
[25, 50, 75].map((g) => /* @__PURE__ */ jsx2(
|
|
532
|
+
"span",
|
|
533
|
+
{
|
|
534
|
+
className: "absolute inset-x-2 h-px bg-[#242423]/[0.05]",
|
|
535
|
+
style: { bottom: `${g}%` }
|
|
536
|
+
},
|
|
537
|
+
g
|
|
538
|
+
)),
|
|
539
|
+
/* @__PURE__ */ jsx2(
|
|
540
|
+
motion2.span,
|
|
541
|
+
{
|
|
542
|
+
className: "absolute inset-0 origin-bottom rounded-xl",
|
|
543
|
+
style: {
|
|
544
|
+
background: `linear-gradient(to top, ${color}, ${color}b3)`
|
|
545
|
+
},
|
|
546
|
+
initial: still ? false : { scaleY: 0 },
|
|
547
|
+
animate: {
|
|
548
|
+
scaleY: shown ? (shares[i] ?? 0) / 100 : 0,
|
|
549
|
+
opacity: on || hover === null ? 1 : 0.55
|
|
550
|
+
},
|
|
551
|
+
transition: still ? { duration: 0 } : {
|
|
552
|
+
scaleY: {
|
|
553
|
+
...LEVEL,
|
|
554
|
+
delay: seen && total === startTotal ? 0.35 + i * 0.12 : 0
|
|
555
|
+
},
|
|
556
|
+
opacity: { duration: 0.25 }
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
)
|
|
560
|
+
]
|
|
561
|
+
}
|
|
562
|
+
),
|
|
563
|
+
/* @__PURE__ */ jsx2("span", { className: "relative mt-3 flex h-5 items-center", children: /* @__PURE__ */ jsx2(AnimatePresence, { mode: "popLayout", initial: false, children: /* @__PURE__ */ jsx2(
|
|
564
|
+
motion2.span,
|
|
565
|
+
{
|
|
566
|
+
initial: { opacity: 0, y: 6, filter: "blur(3px)" },
|
|
567
|
+
animate: { opacity: 1, y: 0, filter: "blur(0px)" },
|
|
568
|
+
exit: { opacity: 0, y: -6, filter: "blur(3px)" },
|
|
569
|
+
transition: { duration: still ? 0 : 0.2, ease: GLIDE },
|
|
570
|
+
className: "flex items-center whitespace-nowrap",
|
|
571
|
+
children: on ? /* @__PURE__ */ jsx2("span", { className: "text-sm font-medium tabular-nums text-zinc-600", children: visitors }) : /* @__PURE__ */ jsx2(Change, { change: d.change, nudge: false })
|
|
572
|
+
},
|
|
573
|
+
on ? "count" : "change"
|
|
574
|
+
) }) })
|
|
575
|
+
]
|
|
576
|
+
},
|
|
577
|
+
d.name
|
|
578
|
+
);
|
|
579
|
+
}) })
|
|
580
|
+
]
|
|
581
|
+
}
|
|
582
|
+
)
|
|
583
|
+
]
|
|
584
|
+
}
|
|
585
|
+
);
|
|
586
|
+
});
|
|
587
|
+
|
|
588
|
+
export {
|
|
589
|
+
DeviceTraffic
|
|
590
|
+
};
|