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,370 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
ArrowUpIcon
|
|
4
|
+
} from "./chunk-2IMPUH4H.js";
|
|
5
|
+
import {
|
|
6
|
+
ArrowUpRightIcon
|
|
7
|
+
} from "./chunk-I7KTTOOJ.js";
|
|
8
|
+
import {
|
|
9
|
+
cn
|
|
10
|
+
} from "./chunk-2TQSHVXA.js";
|
|
11
|
+
|
|
12
|
+
// src/components/growth-stream/growth-stream.tsx
|
|
13
|
+
import * as React from "react";
|
|
14
|
+
import {
|
|
15
|
+
AnimatePresence,
|
|
16
|
+
animate,
|
|
17
|
+
motion,
|
|
18
|
+
useInView,
|
|
19
|
+
useMotionValue,
|
|
20
|
+
useMotionValueEvent,
|
|
21
|
+
useReducedMotion,
|
|
22
|
+
useTransform,
|
|
23
|
+
useVelocity
|
|
24
|
+
} from "motion/react";
|
|
25
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
26
|
+
var GLIDE = [0.22, 1, 0.36, 1];
|
|
27
|
+
var FILL = [0.5, 1, 0.89, 1];
|
|
28
|
+
var DIGITS = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
|
|
29
|
+
var MAX_BLUR = 0.5;
|
|
30
|
+
function Wheel({
|
|
31
|
+
amount,
|
|
32
|
+
rate,
|
|
33
|
+
place,
|
|
34
|
+
unit
|
|
35
|
+
}) {
|
|
36
|
+
const position = useTransform(amount, (a) => {
|
|
37
|
+
const ticks = Math.max(0, a) / unit + 1e-6;
|
|
38
|
+
const whole = Math.floor(ticks);
|
|
39
|
+
const turning = ticks - whole;
|
|
40
|
+
const span = Math.round(place / unit);
|
|
41
|
+
const digit = Math.floor(whole / span) % 10;
|
|
42
|
+
const turn = span === 1 ? turning : whole % span === span - 1 ? turning : 0;
|
|
43
|
+
return digit + turn;
|
|
44
|
+
});
|
|
45
|
+
const y = useTransform(position, (p) => `${-p * 100 / 11}%`);
|
|
46
|
+
const filter = useTransform(rate, (v) => {
|
|
47
|
+
const px = Math.min(MAX_BLUR, Math.abs(v) / place * 0.015);
|
|
48
|
+
return px < 0.1 ? "none" : `blur(${px.toFixed(2)}px)`;
|
|
49
|
+
});
|
|
50
|
+
return /* @__PURE__ */ jsx("span", { className: "relative inline-block h-[1em] w-[0.62em] overflow-hidden", children: /* @__PURE__ */ jsx(motion.span, { className: "absolute inset-x-0 top-0 flex flex-col", style: { y, filter }, children: [...DIGITS, 0].map((d, i) => /* @__PURE__ */ jsx("span", { className: "flex h-[1em] items-center justify-center", children: d }, i)) }) });
|
|
51
|
+
}
|
|
52
|
+
function Odometer({
|
|
53
|
+
amount,
|
|
54
|
+
format,
|
|
55
|
+
label
|
|
56
|
+
}) {
|
|
57
|
+
const parts = React.useMemo(() => format.formatToParts(1234.5), [format]);
|
|
58
|
+
const before = parts.slice(
|
|
59
|
+
0,
|
|
60
|
+
parts.findIndex((p) => p.type === "integer")
|
|
61
|
+
).map((p) => p.value).join("");
|
|
62
|
+
const numeric = ["integer", "group", "decimal", "fraction"];
|
|
63
|
+
const lastNum = parts.reduce((last, p, i) => numeric.includes(p.type) ? i : last, -1);
|
|
64
|
+
const after = parts.slice(lastNum + 1).map((p) => p.value).join("");
|
|
65
|
+
const group = parts.find((p) => p.type === "group")?.value ?? ",";
|
|
66
|
+
const decimal = parts.find((p) => p.type === "decimal")?.value ?? ".";
|
|
67
|
+
const fractionDigits = parts.find((p) => p.type === "fraction")?.value.length ?? 0;
|
|
68
|
+
const rate = useVelocity(amount);
|
|
69
|
+
const wholeDigits = (a) => Math.max(1, String(Math.floor(Math.max(0, a) + 1e-6)).length);
|
|
70
|
+
const [count, setCount] = React.useState(() => wholeDigits(amount.get()));
|
|
71
|
+
useMotionValueEvent(amount, "change", (a) => {
|
|
72
|
+
const next = wholeDigits(a);
|
|
73
|
+
if (next !== count) setCount(next);
|
|
74
|
+
});
|
|
75
|
+
const cells = [];
|
|
76
|
+
for (let k = count - 1; k >= 0; k--) {
|
|
77
|
+
cells.push(
|
|
78
|
+
/* @__PURE__ */ jsx(
|
|
79
|
+
motion.span,
|
|
80
|
+
{
|
|
81
|
+
className: "inline-flex",
|
|
82
|
+
initial: { opacity: 0 },
|
|
83
|
+
animate: { opacity: 1 },
|
|
84
|
+
transition: { duration: 0.2 },
|
|
85
|
+
children: /* @__PURE__ */ jsx(Wheel, { amount, rate, place: 10 ** k, unit: 10 ** -fractionDigits })
|
|
86
|
+
},
|
|
87
|
+
`w${k}`
|
|
88
|
+
)
|
|
89
|
+
);
|
|
90
|
+
if (k > 0 && k % 3 === 0) cells.push(/* @__PURE__ */ jsx("span", { children: group }, `g${k}`));
|
|
91
|
+
}
|
|
92
|
+
if (fractionDigits > 0) cells.push(/* @__PURE__ */ jsx("span", { children: decimal }, "dec"));
|
|
93
|
+
for (let f = 1; f <= fractionDigits; f++) {
|
|
94
|
+
cells.push(/* @__PURE__ */ jsx(Wheel, { amount, rate, place: 10 ** -f, unit: 10 ** -fractionDigits }, `f${f}`));
|
|
95
|
+
}
|
|
96
|
+
return /* @__PURE__ */ jsx("span", { "aria-label": label, className: "inline-flex leading-none tabular-nums", children: /* @__PURE__ */ jsxs("span", { "aria-hidden": true, className: "inline-flex", children: [
|
|
97
|
+
before,
|
|
98
|
+
cells,
|
|
99
|
+
after
|
|
100
|
+
] }) });
|
|
101
|
+
}
|
|
102
|
+
var POP = {
|
|
103
|
+
initial: { opacity: 0, y: 6 },
|
|
104
|
+
animate: { opacity: 1, y: 0 },
|
|
105
|
+
exit: { opacity: 0, y: -4 },
|
|
106
|
+
transition: { duration: 0.25, ease: GLIDE }
|
|
107
|
+
};
|
|
108
|
+
var W = 340;
|
|
109
|
+
var H = 188;
|
|
110
|
+
var MID = H / 2;
|
|
111
|
+
var MIN_HALF = 4;
|
|
112
|
+
var MAX_HALF = 76;
|
|
113
|
+
var RAMP = 44;
|
|
114
|
+
var BANDS = [
|
|
115
|
+
{ scale: 1, alpha: 0.22 },
|
|
116
|
+
{ scale: 0.68, alpha: 0.45 },
|
|
117
|
+
{ scale: 0.36, alpha: 1 }
|
|
118
|
+
];
|
|
119
|
+
var smooth = (t) => {
|
|
120
|
+
const x = Math.min(1, Math.max(0, t));
|
|
121
|
+
return x * x * (3 - 2 * x);
|
|
122
|
+
};
|
|
123
|
+
var DEFAULT_CHECKPOINTS = [
|
|
124
|
+
{ label: "Week 1", value: 8120 },
|
|
125
|
+
{ label: "Week 2", value: 19480 },
|
|
126
|
+
{ label: "Week 3", value: 32134 }
|
|
127
|
+
];
|
|
128
|
+
var GrowthStream = React.forwardRef(function GrowthStream2({
|
|
129
|
+
checkpoints = DEFAULT_CHECKPOINTS,
|
|
130
|
+
previous = 31350,
|
|
131
|
+
title = "Income",
|
|
132
|
+
previousLabel = "last month",
|
|
133
|
+
periodLabel = "the month",
|
|
134
|
+
color = "#8b5cf6",
|
|
135
|
+
currency = "USD",
|
|
136
|
+
locale = "en-US",
|
|
137
|
+
duration = 1.6,
|
|
138
|
+
onAction,
|
|
139
|
+
actionLabel = "View report",
|
|
140
|
+
className
|
|
141
|
+
}, forwardedRef) {
|
|
142
|
+
const root = React.useRef(null);
|
|
143
|
+
React.useImperativeHandle(forwardedRef, () => root.current);
|
|
144
|
+
const inView = useInView(root, { once: true, amount: 0.4 });
|
|
145
|
+
const reduceMotion = !!useReducedMotion();
|
|
146
|
+
const [active, setActive] = React.useState(null);
|
|
147
|
+
const [reached, setReached] = React.useState(0);
|
|
148
|
+
const money = React.useMemo(
|
|
149
|
+
() => new Intl.NumberFormat(locale, { style: "currency", currency, maximumFractionDigits: 0 }),
|
|
150
|
+
[locale, currency]
|
|
151
|
+
);
|
|
152
|
+
const plain = React.useMemo(() => new Intl.NumberFormat(locale, { maximumFractionDigits: 0 }), [locale]);
|
|
153
|
+
const total = checkpoints[checkpoints.length - 1]?.value ?? 0;
|
|
154
|
+
const change = previous > 0 ? (total - previous) / previous * 100 : 0;
|
|
155
|
+
const xs = checkpoints.map((_, i) => W * ((i + 0.6) / (checkpoints.length + 0.2)));
|
|
156
|
+
const segments = xs.map((x, i) => ({ from: i === 0 ? 0 : xs[i - 1], to: i === xs.length - 1 ? W : x }));
|
|
157
|
+
const half = React.useCallback(
|
|
158
|
+
(x, scale) => {
|
|
159
|
+
let h = MIN_HALF;
|
|
160
|
+
checkpoints.forEach((cp, i) => {
|
|
161
|
+
const before = i === 0 ? 0 : checkpoints[i - 1].value;
|
|
162
|
+
const grow = (cp.value - before) / Math.max(1, total) * (MAX_HALF - MIN_HALF);
|
|
163
|
+
h += grow * smooth((x - (xs[i] - RAMP - 8)) / RAMP);
|
|
164
|
+
});
|
|
165
|
+
return h * scale;
|
|
166
|
+
},
|
|
167
|
+
[checkpoints, total, xs]
|
|
168
|
+
);
|
|
169
|
+
const bandPath = React.useCallback(
|
|
170
|
+
(scale) => {
|
|
171
|
+
const top = [];
|
|
172
|
+
const bottom = [];
|
|
173
|
+
for (let x = 0; x <= W; x += 4) {
|
|
174
|
+
const h = Math.max(1.5, half(x, scale));
|
|
175
|
+
top.push(`${x} ${(MID - h).toFixed(2)}`);
|
|
176
|
+
bottom.unshift(`${x} ${(MID + h).toFixed(2)}`);
|
|
177
|
+
}
|
|
178
|
+
return `M ${top.join(" L ")} L ${bottom.join(" L ")} Z`;
|
|
179
|
+
},
|
|
180
|
+
[half]
|
|
181
|
+
);
|
|
182
|
+
const amount = useMotionValue(0);
|
|
183
|
+
const shown = useMotionValue(0);
|
|
184
|
+
const reveal = useTransform(amount, (a) => total > 0 ? Math.min(1, a / total) : 1);
|
|
185
|
+
const clipPath = useTransform(reveal, (r) => `inset(-60% ${((1 - r) * 100).toFixed(2)}% -60% 0) view-box`);
|
|
186
|
+
const lagged = (r, lag) => {
|
|
187
|
+
const t = Math.min(1, Math.max(0, (r - lag) / (1 - lag)));
|
|
188
|
+
return `inset(-60% ${((1 - t) * 100).toFixed(2)}% -60% 0) view-box`;
|
|
189
|
+
};
|
|
190
|
+
const outerClip = useTransform(reveal, (r) => lagged(r, 0));
|
|
191
|
+
const middleClip = useTransform(reveal, (r) => lagged(r, 0.08));
|
|
192
|
+
const coreClip = useTransform(reveal, (r) => lagged(r, 0.16));
|
|
193
|
+
const bandClips = [outerClip, middleClip, coreClip];
|
|
194
|
+
const glowId = `glow${React.useId().replace(/[^a-zA-Z0-9]/g, "")}`;
|
|
195
|
+
useMotionValueEvent(amount, "change", (a) => {
|
|
196
|
+
if (active === null) shown.set(a);
|
|
197
|
+
const r = total > 0 ? a / total : 1;
|
|
198
|
+
const count = xs.filter((x) => x / W <= r + 1e-6).length;
|
|
199
|
+
if (count !== reached) setReached(count);
|
|
200
|
+
});
|
|
201
|
+
React.useEffect(() => {
|
|
202
|
+
if (!inView) return;
|
|
203
|
+
if (reduceMotion) {
|
|
204
|
+
amount.set(total);
|
|
205
|
+
shown.set(total);
|
|
206
|
+
setReached(checkpoints.length);
|
|
207
|
+
return;
|
|
208
|
+
}
|
|
209
|
+
const controls = animate(amount, total, { duration, ease: FILL });
|
|
210
|
+
return () => controls.stop();
|
|
211
|
+
}, [inView, total, duration, reduceMotion]);
|
|
212
|
+
React.useEffect(() => {
|
|
213
|
+
const target = active === null ? amount.get() : checkpoints[active].value;
|
|
214
|
+
if (reduceMotion) {
|
|
215
|
+
shown.set(target);
|
|
216
|
+
return;
|
|
217
|
+
}
|
|
218
|
+
const controls = animate(shown, target, { duration: 0.6, ease: GLIDE });
|
|
219
|
+
return () => controls.stop();
|
|
220
|
+
}, [active, checkpoints, amount, shown, reduceMotion]);
|
|
221
|
+
const caption = active !== null ? `By ${checkpoints[active].label} \xB7 ${Math.round(checkpoints[active].value / Math.max(1, total) * 100)}% of ${periodLabel}` : `Compared to ${money.format(previous)} ${previousLabel}`;
|
|
222
|
+
return /* @__PURE__ */ jsxs(
|
|
223
|
+
"div",
|
|
224
|
+
{
|
|
225
|
+
ref: root,
|
|
226
|
+
className: cn(
|
|
227
|
+
"w-[340px] max-w-full overflow-hidden rounded-3xl bg-white pb-6 pt-6 text-zinc-900 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",
|
|
228
|
+
className
|
|
229
|
+
),
|
|
230
|
+
children: [
|
|
231
|
+
/* @__PURE__ */ jsxs("header", { className: "flex items-start justify-between gap-4 px-6", children: [
|
|
232
|
+
/* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
|
|
233
|
+
/* @__PURE__ */ jsx("h3", { className: "text-sm font-medium text-zinc-500 dark:text-zinc-400", children: title }),
|
|
234
|
+
/* @__PURE__ */ jsxs("div", { className: "mt-1 flex items-baseline gap-2", children: [
|
|
235
|
+
/* @__PURE__ */ jsx("p", { className: "text-[32px] font-medium tracking-tight", children: /* @__PURE__ */ jsx(Odometer, { amount: shown, format: money, label: money.format(total) }) }),
|
|
236
|
+
active === null && /* @__PURE__ */ jsxs(
|
|
237
|
+
motion.span,
|
|
238
|
+
{
|
|
239
|
+
...POP,
|
|
240
|
+
className: cn(
|
|
241
|
+
"inline-flex items-center gap-0.5 text-sm font-medium",
|
|
242
|
+
change >= 0 ? "text-emerald-600 dark:text-emerald-400" : "text-red-600 dark:text-red-400"
|
|
243
|
+
),
|
|
244
|
+
children: [
|
|
245
|
+
/* @__PURE__ */ jsx(ArrowUpIcon, { className: cn("size-3.5", change < 0 && "rotate-180"), strokeWidth: 2.5 }),
|
|
246
|
+
Math.abs(change).toFixed(1),
|
|
247
|
+
"%"
|
|
248
|
+
]
|
|
249
|
+
}
|
|
250
|
+
)
|
|
251
|
+
] }),
|
|
252
|
+
/* @__PURE__ */ jsx("div", { className: "mt-1 grid text-sm text-zinc-500 dark:text-zinc-400", children: /* @__PURE__ */ jsx(AnimatePresence, { initial: false, mode: "popLayout", children: /* @__PURE__ */ jsx(motion.span, { ...POP, className: "col-start-1 row-start-1 truncate", children: caption }, caption) }) })
|
|
253
|
+
] }),
|
|
254
|
+
onAction && /* @__PURE__ */ jsx(
|
|
255
|
+
motion.button,
|
|
256
|
+
{
|
|
257
|
+
type: "button",
|
|
258
|
+
onClick: onAction,
|
|
259
|
+
"aria-label": actionLabel,
|
|
260
|
+
initial: "rest",
|
|
261
|
+
whileHover: "hover",
|
|
262
|
+
whileTap: "press",
|
|
263
|
+
variants: { rest: { scale: 1 }, hover: { scale: 1 }, press: { scale: 0.94 } },
|
|
264
|
+
transition: { duration: 0.15, ease: GLIDE },
|
|
265
|
+
className: "grid size-9 shrink-0 cursor-pointer place-items-center rounded-full bg-[#242423]/6 text-[#242423] transition-colors hover:bg-[#242423]/10 outline-none focus-visible:ring-2 focus-visible:ring-zinc-400 dark:bg-white/8 dark:text-zinc-100 dark:hover:bg-white/12",
|
|
266
|
+
children: /* @__PURE__ */ jsx(
|
|
267
|
+
motion.span,
|
|
268
|
+
{
|
|
269
|
+
variants: { rest: { x: 0, y: 0, opacity: 1 }, hover: { x: 2, y: -2, opacity: 1 } },
|
|
270
|
+
transition: { duration: 0.25, ease: GLIDE },
|
|
271
|
+
className: "flex",
|
|
272
|
+
children: /* @__PURE__ */ jsx(ArrowUpRightIcon, { className: "size-4", strokeWidth: 2.5 })
|
|
273
|
+
}
|
|
274
|
+
)
|
|
275
|
+
}
|
|
276
|
+
)
|
|
277
|
+
] }),
|
|
278
|
+
/* @__PURE__ */ jsxs(
|
|
279
|
+
"div",
|
|
280
|
+
{
|
|
281
|
+
role: "img",
|
|
282
|
+
"aria-label": `${typeof title === "string" ? title : "Total"} over time: ${checkpoints.map((cp) => `${cp.label} ${money.format(cp.value)}`).join(", ")}`,
|
|
283
|
+
className: "relative mt-6",
|
|
284
|
+
onPointerLeave: () => setActive(null),
|
|
285
|
+
children: [
|
|
286
|
+
/* @__PURE__ */ jsxs("svg", { viewBox: `0 0 ${W} ${H}`, className: "block w-full overflow-visible", "aria-hidden": true, children: [
|
|
287
|
+
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("filter", { id: glowId, x: "-10%", y: "-100%", width: "120%", height: "300%", children: /* @__PURE__ */ jsx("feGaussianBlur", { stdDeviation: "14" }) }) }),
|
|
288
|
+
/* @__PURE__ */ jsx(motion.g, { style: { clipPath }, children: /* @__PURE__ */ jsx("path", { d: bandPath(1.25), fill: color, fillOpacity: 0.15, filter: `url(#${glowId})` }) }),
|
|
289
|
+
segments.map((seg, i) => /* @__PURE__ */ jsx("clipPath", { id: `${glowId}-seg${i}`, children: /* @__PURE__ */ jsx("rect", { x: seg.from, y: -H, width: seg.to - seg.from, height: H * 3 }) }, `clip-${i}`)),
|
|
290
|
+
/* @__PURE__ */ jsx("g", { children: segments.map((_, i) => /* @__PURE__ */ jsx(
|
|
291
|
+
motion.g,
|
|
292
|
+
{
|
|
293
|
+
clipPath: `url(#${glowId}-seg${i})`,
|
|
294
|
+
animate: { opacity: active === null || active === i ? 1 : 0.28 },
|
|
295
|
+
transition: { duration: 0.25, ease: GLIDE },
|
|
296
|
+
children: BANDS.map((band, k) => /* @__PURE__ */ jsx(
|
|
297
|
+
motion.path,
|
|
298
|
+
{
|
|
299
|
+
d: bandPath(band.scale),
|
|
300
|
+
fill: color,
|
|
301
|
+
fillOpacity: band.alpha,
|
|
302
|
+
style: { clipPath: bandClips[k] }
|
|
303
|
+
},
|
|
304
|
+
band.scale
|
|
305
|
+
))
|
|
306
|
+
},
|
|
307
|
+
i
|
|
308
|
+
)) }),
|
|
309
|
+
xs.map((x, i) => /* @__PURE__ */ jsx(
|
|
310
|
+
motion.line,
|
|
311
|
+
{
|
|
312
|
+
x1: x,
|
|
313
|
+
x2: x,
|
|
314
|
+
y1: 0,
|
|
315
|
+
y2: H,
|
|
316
|
+
strokeWidth: 1.5,
|
|
317
|
+
className: "stroke-white dark:stroke-zinc-900",
|
|
318
|
+
initial: false,
|
|
319
|
+
animate: { opacity: i < reached ? active === null || active === i ? 0.9 : 0.4 : 0 },
|
|
320
|
+
transition: { duration: 0.3, ease: GLIDE }
|
|
321
|
+
},
|
|
322
|
+
i
|
|
323
|
+
))
|
|
324
|
+
] }),
|
|
325
|
+
segments.map((seg, i) => /* @__PURE__ */ jsx(
|
|
326
|
+
"span",
|
|
327
|
+
{
|
|
328
|
+
"aria-hidden": true,
|
|
329
|
+
className: "absolute inset-y-0",
|
|
330
|
+
style: { left: `${seg.from / W * 100}%`, width: `${(seg.to - seg.from) / W * 100}%` },
|
|
331
|
+
onPointerEnter: () => setActive(i)
|
|
332
|
+
},
|
|
333
|
+
`hit-${i}`
|
|
334
|
+
)),
|
|
335
|
+
checkpoints.map((cp, i) => /* @__PURE__ */ jsx(
|
|
336
|
+
"button",
|
|
337
|
+
{
|
|
338
|
+
type: "button",
|
|
339
|
+
"aria-label": `${cp.label}: ${money.format(cp.value)}`,
|
|
340
|
+
onPointerEnter: () => setActive(i),
|
|
341
|
+
onFocus: () => setActive(i),
|
|
342
|
+
onBlur: () => setActive(null),
|
|
343
|
+
className: "absolute inset-y-0 w-14 -translate-x-1/2 cursor-default rounded-lg outline-none focus-visible:ring-2 focus-visible:ring-zinc-400",
|
|
344
|
+
style: { left: `${xs[i] / W * 100}%` },
|
|
345
|
+
children: /* @__PURE__ */ jsx(AnimatePresence, { children: i < reached && /* @__PURE__ */ jsx(
|
|
346
|
+
motion.span,
|
|
347
|
+
{
|
|
348
|
+
initial: { opacity: 0, scale: 0.6, y: 4 },
|
|
349
|
+
animate: active === null || active === i ? { opacity: 1, scale: 1, y: 0 } : { opacity: 0, scale: 0.85, y: 0 },
|
|
350
|
+
exit: { opacity: 0, scale: 0.8 },
|
|
351
|
+
transition: { duration: 0.35, ease: GLIDE },
|
|
352
|
+
className: "absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 whitespace-nowrap rounded-full bg-white px-2.5 py-1 text-xs font-medium tabular-nums text-zinc-900 shadow-[0_1px_2px_rgba(0,0,0,0.06),0_4px_12px_-4px_rgba(0,0,0,0.18)] dark:bg-zinc-900 dark:text-zinc-100",
|
|
353
|
+
children: plain.format(cp.value)
|
|
354
|
+
},
|
|
355
|
+
"pill"
|
|
356
|
+
) })
|
|
357
|
+
},
|
|
358
|
+
cp.label
|
|
359
|
+
))
|
|
360
|
+
]
|
|
361
|
+
}
|
|
362
|
+
)
|
|
363
|
+
]
|
|
364
|
+
}
|
|
365
|
+
);
|
|
366
|
+
});
|
|
367
|
+
|
|
368
|
+
export {
|
|
369
|
+
GrowthStream
|
|
370
|
+
};
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
cn
|
|
4
|
+
} from "./chunk-2TQSHVXA.js";
|
|
5
|
+
|
|
6
|
+
// src/components/bell-toggle/bell-toggle.tsx
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
import { AnimatePresence, motion, useReducedMotion } from "motion/react";
|
|
9
|
+
import gsap from "gsap";
|
|
10
|
+
import { useGSAP } from "@gsap/react";
|
|
11
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
+
gsap.registerPlugin(useGSAP);
|
|
13
|
+
var GLIDE = [0.22, 1, 0.36, 1];
|
|
14
|
+
var UNFURL = { type: "spring", stiffness: 420, damping: 32 };
|
|
15
|
+
var BellToggle = React.forwardRef(
|
|
16
|
+
function BellToggle2({
|
|
17
|
+
on: controlled,
|
|
18
|
+
defaultOn = false,
|
|
19
|
+
onChange,
|
|
20
|
+
label = "Notify me",
|
|
21
|
+
onLabel = "Notifications on",
|
|
22
|
+
className
|
|
23
|
+
}, ref) {
|
|
24
|
+
const still = !!useReducedMotion();
|
|
25
|
+
const [inner, setInner] = React.useState(defaultOn);
|
|
26
|
+
const on = controlled ?? inner;
|
|
27
|
+
const bell = React.useRef(null);
|
|
28
|
+
const first = React.useRef(true);
|
|
29
|
+
const { contextSafe } = useGSAP(
|
|
30
|
+
() => {
|
|
31
|
+
gsap.set("[data-slash]", { strokeDashoffset: on ? 1 : 0 });
|
|
32
|
+
gsap.set("[data-wave]", { strokeDashoffset: 1, opacity: 0 });
|
|
33
|
+
gsap.set("[data-body], [data-clapper]", {
|
|
34
|
+
rotation: 0,
|
|
35
|
+
svgOrigin: "12 4"
|
|
36
|
+
});
|
|
37
|
+
},
|
|
38
|
+
{ scope: bell }
|
|
39
|
+
);
|
|
40
|
+
const ring = contextSafe(() => {
|
|
41
|
+
if (still) {
|
|
42
|
+
gsap.set("[data-slash]", { strokeDashoffset: 1 });
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
const tl = gsap.timeline();
|
|
46
|
+
tl.to("[data-slash]", {
|
|
47
|
+
strokeDashoffset: 1,
|
|
48
|
+
duration: 0.25,
|
|
49
|
+
ease: "power2.in"
|
|
50
|
+
}).to(
|
|
51
|
+
"[data-body]",
|
|
52
|
+
{
|
|
53
|
+
keyframes: { rotation: [0, 22, -18, 13, -9, 5, -2, 0] },
|
|
54
|
+
duration: 0.9,
|
|
55
|
+
ease: "sine.inOut",
|
|
56
|
+
svgOrigin: "12 4"
|
|
57
|
+
},
|
|
58
|
+
0.08
|
|
59
|
+
).to(
|
|
60
|
+
"[data-clapper]",
|
|
61
|
+
{
|
|
62
|
+
keyframes: { rotation: [0, -26, 22, -16, 10, -5, 0] },
|
|
63
|
+
duration: 0.95,
|
|
64
|
+
ease: "sine.inOut",
|
|
65
|
+
svgOrigin: "12 4"
|
|
66
|
+
},
|
|
67
|
+
0.14
|
|
68
|
+
).fromTo(
|
|
69
|
+
"[data-wave]",
|
|
70
|
+
{ strokeDashoffset: 1, opacity: 1, scale: 0.85, svgOrigin: "12 12" },
|
|
71
|
+
{
|
|
72
|
+
strokeDashoffset: 0,
|
|
73
|
+
scale: 1.1,
|
|
74
|
+
duration: 0.35,
|
|
75
|
+
ease: "power2.out",
|
|
76
|
+
stagger: 0.06
|
|
77
|
+
},
|
|
78
|
+
0.15
|
|
79
|
+
).to(
|
|
80
|
+
"[data-wave]",
|
|
81
|
+
{ opacity: 0, duration: 0.35, ease: "power1.in" },
|
|
82
|
+
0.6
|
|
83
|
+
);
|
|
84
|
+
});
|
|
85
|
+
const silence = contextSafe(() => {
|
|
86
|
+
if (still) {
|
|
87
|
+
gsap.set("[data-slash]", { strokeDashoffset: 0 });
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
gsap.killTweensOf("[data-body], [data-clapper], [data-wave]");
|
|
91
|
+
gsap.set("[data-wave]", { opacity: 0 });
|
|
92
|
+
gsap.timeline().to("[data-body], [data-clapper]", {
|
|
93
|
+
keyframes: { rotation: [0, -8, 0] },
|
|
94
|
+
duration: 0.4,
|
|
95
|
+
ease: "sine.inOut",
|
|
96
|
+
svgOrigin: "12 4"
|
|
97
|
+
}).to(
|
|
98
|
+
"[data-slash]",
|
|
99
|
+
{ strokeDashoffset: 0, duration: 0.3, ease: "power2.out" },
|
|
100
|
+
0.05
|
|
101
|
+
);
|
|
102
|
+
});
|
|
103
|
+
const nudge = contextSafe(() => {
|
|
104
|
+
if (!on || still) return;
|
|
105
|
+
gsap.to("[data-body]", {
|
|
106
|
+
keyframes: { rotation: [0, 9, -6, 0] },
|
|
107
|
+
duration: 0.5,
|
|
108
|
+
ease: "sine.inOut",
|
|
109
|
+
svgOrigin: "12 4",
|
|
110
|
+
overwrite: true
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
React.useEffect(() => {
|
|
114
|
+
if (first.current) {
|
|
115
|
+
first.current = false;
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
if (on) ring();
|
|
119
|
+
else silence();
|
|
120
|
+
}, [on]);
|
|
121
|
+
const toggle = () => {
|
|
122
|
+
const next = !on;
|
|
123
|
+
if (controlled === void 0) setInner(next);
|
|
124
|
+
onChange?.(next);
|
|
125
|
+
};
|
|
126
|
+
return /* @__PURE__ */ jsxs(
|
|
127
|
+
motion.button,
|
|
128
|
+
{
|
|
129
|
+
ref,
|
|
130
|
+
type: "button",
|
|
131
|
+
role: "switch",
|
|
132
|
+
"aria-checked": on,
|
|
133
|
+
"aria-label": on ? onLabel : label,
|
|
134
|
+
onClick: toggle,
|
|
135
|
+
onPointerEnter: nudge,
|
|
136
|
+
layout: true,
|
|
137
|
+
transition: still ? { duration: 0 } : UNFURL,
|
|
138
|
+
style: { borderRadius: 999 },
|
|
139
|
+
whileTap: still ? void 0 : { scale: 0.96 },
|
|
140
|
+
className: cn(
|
|
141
|
+
"inline-flex h-11 cursor-pointer items-center overflow-hidden whitespace-nowrap text-sm font-medium outline-none transition-colors duration-300 focus-visible:ring-2 focus-visible:ring-zinc-400 focus-visible:ring-offset-2 dark:focus-visible:ring-offset-zinc-900",
|
|
142
|
+
on ? "gap-2.5 bg-white pl-4 pr-5 text-zinc-900 dark:bg-zinc-800 dark:text-zinc-100" : "gap-2 bg-[#242423]/6 pl-3.5 pr-4 text-zinc-600 hover:bg-[#242423]/10 dark:bg-white/8 dark:text-zinc-300 dark:hover:bg-white/12",
|
|
143
|
+
className
|
|
144
|
+
),
|
|
145
|
+
children: [
|
|
146
|
+
/* @__PURE__ */ jsx(
|
|
147
|
+
motion.span,
|
|
148
|
+
{
|
|
149
|
+
layout: "position",
|
|
150
|
+
transition: still ? { duration: 0 } : UNFURL,
|
|
151
|
+
className: "grid",
|
|
152
|
+
children: /* @__PURE__ */ jsxs(
|
|
153
|
+
"svg",
|
|
154
|
+
{
|
|
155
|
+
ref: bell,
|
|
156
|
+
viewBox: "0 0 24 24",
|
|
157
|
+
className: "size-[18px] overflow-visible",
|
|
158
|
+
fill: "none",
|
|
159
|
+
stroke: "currentColor",
|
|
160
|
+
strokeWidth: "1.9",
|
|
161
|
+
strokeLinecap: "round",
|
|
162
|
+
strokeLinejoin: "round",
|
|
163
|
+
"aria-hidden": true,
|
|
164
|
+
children: [
|
|
165
|
+
/* @__PURE__ */ jsx(
|
|
166
|
+
"path",
|
|
167
|
+
{
|
|
168
|
+
"data-wave": true,
|
|
169
|
+
d: "M3.2 8.5a9 9 0 0 0 0 5",
|
|
170
|
+
pathLength: 1,
|
|
171
|
+
strokeDasharray: "1"
|
|
172
|
+
}
|
|
173
|
+
),
|
|
174
|
+
/* @__PURE__ */ jsx(
|
|
175
|
+
"path",
|
|
176
|
+
{
|
|
177
|
+
"data-wave": true,
|
|
178
|
+
d: "M20.8 8.5a9 9 0 0 1 0 5",
|
|
179
|
+
pathLength: 1,
|
|
180
|
+
strokeDasharray: "1"
|
|
181
|
+
}
|
|
182
|
+
),
|
|
183
|
+
/* @__PURE__ */ jsx(
|
|
184
|
+
"path",
|
|
185
|
+
{
|
|
186
|
+
"data-wave": true,
|
|
187
|
+
d: "M1 6.5a12.5 12.5 0 0 0 0 9",
|
|
188
|
+
pathLength: 1,
|
|
189
|
+
strokeDasharray: "1"
|
|
190
|
+
}
|
|
191
|
+
),
|
|
192
|
+
/* @__PURE__ */ jsx(
|
|
193
|
+
"path",
|
|
194
|
+
{
|
|
195
|
+
"data-wave": true,
|
|
196
|
+
d: "M23 6.5a12.5 12.5 0 0 1 0 9",
|
|
197
|
+
pathLength: 1,
|
|
198
|
+
strokeDasharray: "1"
|
|
199
|
+
}
|
|
200
|
+
),
|
|
201
|
+
/* @__PURE__ */ jsx("g", { "data-clapper": true, children: /* @__PURE__ */ jsx("path", { d: "M10.2 19.4a1.9 1.9 0 0 0 3.6 0" }) }),
|
|
202
|
+
/* @__PURE__ */ jsxs("g", { "data-body": true, children: [
|
|
203
|
+
/* @__PURE__ */ jsx("path", { d: "M12 3v1" }),
|
|
204
|
+
/* @__PURE__ */ jsx("path", { d: "M6.2 10.4a5.8 5.8 0 0 1 11.6 0c0 3.9 1.4 5.6 2.2 6.4H4c.8-.8 2.2-2.5 2.2-6.4Z" })
|
|
205
|
+
] }),
|
|
206
|
+
/* @__PURE__ */ jsx(
|
|
207
|
+
"path",
|
|
208
|
+
{
|
|
209
|
+
"data-slash": true,
|
|
210
|
+
d: "M4 3.5 20 20.5",
|
|
211
|
+
pathLength: 1,
|
|
212
|
+
strokeDasharray: "1"
|
|
213
|
+
}
|
|
214
|
+
)
|
|
215
|
+
]
|
|
216
|
+
}
|
|
217
|
+
)
|
|
218
|
+
}
|
|
219
|
+
),
|
|
220
|
+
/* @__PURE__ */ jsx(
|
|
221
|
+
motion.span,
|
|
222
|
+
{
|
|
223
|
+
layout: "position",
|
|
224
|
+
transition: still ? { duration: 0 } : UNFURL,
|
|
225
|
+
className: "relative inline-grid overflow-hidden",
|
|
226
|
+
children: /* @__PURE__ */ jsx(AnimatePresence, { mode: "popLayout", initial: false, children: /* @__PURE__ */ jsx(
|
|
227
|
+
motion.span,
|
|
228
|
+
{
|
|
229
|
+
initial: still ? { opacity: 0 } : { opacity: 0, y: "60%", filter: "blur(4px)" },
|
|
230
|
+
animate: { opacity: 1, y: 0, filter: "blur(0px)" },
|
|
231
|
+
exit: still ? { opacity: 0 } : { opacity: 0, y: "-60%", filter: "blur(4px)" },
|
|
232
|
+
transition: { duration: 0.3, ease: GLIDE },
|
|
233
|
+
children: on ? onLabel : label
|
|
234
|
+
},
|
|
235
|
+
on ? "on" : "off"
|
|
236
|
+
) })
|
|
237
|
+
}
|
|
238
|
+
)
|
|
239
|
+
]
|
|
240
|
+
}
|
|
241
|
+
);
|
|
242
|
+
}
|
|
243
|
+
);
|
|
244
|
+
|
|
245
|
+
export {
|
|
246
|
+
BellToggle
|
|
247
|
+
};
|