motion-brew 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +106 -2
- package/dist/account-menu.d.ts +1 -0
- package/dist/account-menu.js +16 -0
- package/dist/action-menu.d.ts +1 -0
- package/dist/action-menu.js +10 -0
- package/dist/activity-grid.d.ts +1 -0
- package/dist/activity-grid.js +14 -0
- package/dist/add-card.d.ts +1 -0
- package/dist/add-card.js +11 -0
- package/dist/amount-slider.d.ts +1 -0
- package/dist/amount-slider.js +10 -0
- package/dist/annotation-text.d.ts +1 -0
- package/dist/annotation-text.js +8 -0
- package/dist/aura-card.d.ts +1 -0
- package/dist/aura-card.js +19 -0
- package/dist/auth-card.d.ts +1 -0
- package/dist/auth-card.js +15 -0
- package/dist/avatar-testimonial.d.ts +1 -0
- package/dist/avatar-testimonial.js +8 -0
- package/dist/backspace-text.d.ts +1 -0
- package/dist/backspace-text.js +8 -0
- package/dist/bell-toggle.d.ts +1 -0
- package/dist/bell-toggle.js +8 -0
- package/dist/bill-list.d.ts +1 -0
- package/dist/bill-list.js +15 -0
- package/dist/binary-text.d.ts +1 -0
- package/dist/binary-text.js +8 -0
- package/dist/blur-accordion.d.ts +1 -0
- package/dist/blur-accordion.js +8 -0
- package/dist/blur-text.d.ts +1 -0
- package/dist/blur-text.js +8 -0
- package/dist/booking-card.d.ts +1 -0
- package/dist/booking-card.js +11 -0
- package/dist/brand-bridge.d.ts +1 -0
- package/dist/brand-bridge.js +12 -0
- package/dist/calendar-agenda.d.ts +1 -0
- package/dist/calendar-agenda.js +12 -0
- package/dist/channel-mix.d.ts +1 -0
- package/dist/channel-mix.js +11 -0
- package/dist/chunk-25254AZA.js +141 -0
- package/dist/chunk-2CIJ5TVW.js +59 -0
- package/dist/chunk-2GXY54MP.js +247 -0
- package/dist/chunk-2IMPUH4H.js +135 -0
- package/dist/chunk-2NRXP4HM.js +371 -0
- package/dist/chunk-2QCWELWT.js +120 -0
- package/dist/chunk-2TQSHVXA.js +12 -0
- package/dist/chunk-327TGRS5.js +75 -0
- package/dist/chunk-3B2RYSTL.js +867 -0
- package/dist/chunk-3RKCLFY5.js +634 -0
- package/dist/chunk-4BVCRIR4.js +51 -0
- package/dist/chunk-4CKKTOJK.js +366 -0
- package/dist/chunk-4IGMH34C.js +319 -0
- package/dist/chunk-4PI6UNIZ.js +464 -0
- package/dist/chunk-4RHQKP2P.js +664 -0
- package/dist/chunk-5MP5QNFG.js +560 -0
- package/dist/chunk-62RBYLIN.js +128 -0
- package/dist/chunk-6GAKTS3D.js +329 -0
- package/dist/chunk-6GRDT3OE.js +124 -0
- package/dist/chunk-6JQY7AX5.js +307 -0
- package/dist/chunk-6LOUA6XB.js +237 -0
- package/dist/chunk-6V6OTHNE.js +299 -0
- package/dist/chunk-6VZIT62Q.js +142 -0
- package/dist/chunk-6WSY725U.js +387 -0
- package/dist/chunk-6XSJC7M7.js +764 -0
- package/dist/chunk-75DEIDBX.js +129 -0
- package/dist/chunk-7FQ4XU7E.js +127 -0
- package/dist/chunk-7IL5WRJR.js +615 -0
- package/dist/chunk-7MPC3RUE.js +1462 -0
- package/dist/chunk-7PS2W7PU.js +112 -0
- package/dist/chunk-AATJOPNH.js +86 -0
- package/dist/chunk-ADXWPWJR.js +209 -0
- package/dist/chunk-ANNDITUM.js +47 -0
- package/dist/chunk-AQN6BHWC.js +325 -0
- package/dist/chunk-AVOS73MR.js +537 -0
- package/dist/chunk-B4LNE6YK.js +473 -0
- package/dist/chunk-BHUNLG6S.js +142 -0
- package/dist/chunk-BN4MA5UY.js +127 -0
- package/dist/chunk-BPE43MTT.js +183 -0
- package/dist/chunk-BPF3FQRS.js +590 -0
- package/dist/chunk-BRTZFUFR.js +503 -0
- package/dist/chunk-BS4ZFJKW.js +121 -0
- package/dist/chunk-BXAKCY6X.js +86 -0
- package/dist/chunk-CEQ56RF6.js +129 -0
- package/dist/chunk-CGDKH6BB.js +902 -0
- package/dist/chunk-CMTGYFT7.js +395 -0
- package/dist/chunk-COKBF5PG.js +3291 -0
- package/dist/chunk-DD55JZOI.js +257 -0
- package/dist/chunk-DQUXBNSH.js +412 -0
- package/dist/chunk-DR4DUSNF.js +265 -0
- package/dist/chunk-EDPCK6VU.js +419 -0
- package/dist/chunk-EEQ2WHTN.js +142 -0
- package/dist/chunk-ERVE5RSN.js +793 -0
- package/dist/chunk-FFUBTMDC.js +303 -0
- package/dist/chunk-FK4TZ5OW.js +29 -0
- package/dist/chunk-FXI6NHNR.js +1033 -0
- package/dist/chunk-G3XH7YT2.js +122 -0
- package/dist/chunk-G7KDH7ME.js +559 -0
- package/dist/chunk-GRUDTDLX.js +534 -0
- package/dist/chunk-GUQINNWS.js +770 -0
- package/dist/chunk-GV3Q4D2N.js +320 -0
- package/dist/chunk-GVWOJJ3T.js +129 -0
- package/dist/chunk-GYDTIVOY.js +934 -0
- package/dist/chunk-H2JOCJWM.js +125 -0
- package/dist/chunk-H7XKIWHA.js +135 -0
- package/dist/chunk-HHXK3NAH.js +1382 -0
- package/dist/chunk-HK34LPY6.js +112 -0
- package/dist/chunk-HLJXNSMM.js +320 -0
- package/dist/chunk-HPJJAQ5L.js +406 -0
- package/dist/chunk-HYSXVKZB.js +213 -0
- package/dist/chunk-I45D4XV4.js +124 -0
- package/dist/chunk-I7KTTOOJ.js +113 -0
- package/dist/chunk-IDJOKV6S.js +67 -0
- package/dist/chunk-IGI6OLRX.js +138 -0
- package/dist/chunk-IKM7EEYN.js +117 -0
- package/dist/chunk-INV5FI6O.js +394 -0
- package/dist/chunk-IUBUAIQZ.js +321 -0
- package/dist/chunk-IYZOANPX.js +159 -0
- package/dist/chunk-JFTD3YAL.js +163 -0
- package/dist/chunk-JGEV462J.js +235 -0
- package/dist/chunk-JHT6RCGY.js +127 -0
- package/dist/chunk-JJEWOQYQ.js +141 -0
- package/dist/chunk-JT2EIO5M.js +129 -0
- package/dist/chunk-K3HQEHJ6.js +663 -0
- package/dist/chunk-K6ET254T.js +398 -0
- package/dist/chunk-KE563QS4.js +425 -0
- package/dist/chunk-LBRMNY72.js +159 -0
- package/dist/chunk-LNBTWX4J.js +114 -0
- package/dist/chunk-LS4FP6SI.js +37 -0
- package/dist/chunk-M22UY764.js +135 -0
- package/dist/chunk-M4YMNHPI.js +204 -0
- package/dist/chunk-MGBS5LRY.js +412 -0
- package/dist/chunk-MKJOBHPQ.js +215 -0
- package/dist/chunk-MQDOFNKI.js +818 -0
- package/dist/chunk-MUDKP3LK.js +120 -0
- package/dist/chunk-N4ZNBWKO.js +118 -0
- package/dist/chunk-NB5CB65C.js +137 -0
- package/dist/chunk-NCEAUODT.js +172 -0
- package/dist/chunk-NGX34WJO.js +335 -0
- package/dist/chunk-NIQFSLPC.js +114 -0
- package/dist/chunk-NJWTPRGJ.js +806 -0
- package/dist/chunk-NNKC6NEH.js +128 -0
- package/dist/chunk-NY7M42KC.js +112 -0
- package/dist/chunk-O7G4ISAC.js +277 -0
- package/dist/chunk-O7QYPA6X.js +700 -0
- package/dist/chunk-OEDHLZ4T.js +651 -0
- package/dist/chunk-OGQQ2FZZ.js +114 -0
- package/dist/chunk-OINRQUYT.js +186 -0
- package/dist/chunk-OMJBDFEW.js +506 -0
- package/dist/chunk-ONUWTWKP.js +345 -0
- package/dist/chunk-OS6REIBR.js +154 -0
- package/dist/chunk-OUVP5VKH.js +702 -0
- package/dist/chunk-OVEBMZHA.js +573 -0
- package/dist/chunk-PFEHD3A2.js +409 -0
- package/dist/chunk-PJ5EVDNN.js +157 -0
- package/dist/chunk-PKM6B4JJ.js +108 -0
- package/dist/chunk-PV3OYTMT.js +596 -0
- package/dist/chunk-RBSLSNMW.js +444 -0
- package/dist/chunk-RE74K7KI.js +370 -0
- package/dist/chunk-RP22J4NX.js +247 -0
- package/dist/chunk-RU2Q2XVP.js +287 -0
- package/dist/chunk-RWUARRFZ.js +267 -0
- package/dist/chunk-RZ2UCZ3C.js +212 -0
- package/dist/chunk-SBDTC4UY.js +367 -0
- package/dist/chunk-SKEE23KW.js +137 -0
- package/dist/chunk-SOW7S7ET.js +1103 -0
- package/dist/chunk-SQ7F3VBU.js +1069 -0
- package/dist/chunk-SSWKGVRI.js +172 -0
- package/dist/chunk-T2TSMDP3.js +1022 -0
- package/dist/chunk-TAFVHTWV.js +607 -0
- package/dist/chunk-TNLY4CSA.js +523 -0
- package/dist/chunk-TP3XIHL5.js +787 -0
- package/dist/chunk-TQ6KSDDE.js +682 -0
- package/dist/chunk-TRWXLGL7.js +885 -0
- package/dist/chunk-TTNORJF5.js +908 -0
- package/dist/chunk-UD5OQ2T3.js +117 -0
- package/dist/chunk-UDFBQWUH.js +333 -0
- package/dist/chunk-USRMXCZD.js +625 -0
- package/dist/chunk-VAPHE4G4.js +442 -0
- package/dist/chunk-VEC5QAOY.js +104 -0
- package/dist/chunk-VIR5NV5W.js +118 -0
- package/dist/chunk-VT2FNWQF.js +240 -0
- package/dist/chunk-VX4XEYQN.js +837 -0
- package/dist/chunk-WE7VCUOA.js +130 -0
- package/dist/chunk-WFWO2EIW.js +120 -0
- package/dist/chunk-WGIT4MMH.js +350 -0
- package/dist/chunk-WOR2GMMN.js +114 -0
- package/dist/chunk-WTTDB475.js +54 -0
- package/dist/chunk-WWWKMU4Y.js +184 -0
- package/dist/chunk-XDR4FO6Q.js +124 -0
- package/dist/chunk-XH6YNONO.js +112 -0
- package/dist/chunk-XL4L2J6N.js +129 -0
- package/dist/chunk-Y6MTC46Q.js +684 -0
- package/dist/chunk-YFLQ4HPJ.js +119 -0
- package/dist/chunk-YGONLKWH.js +180 -0
- package/dist/chunk-YLSWBUDC.js +373 -0
- package/dist/chunk-YU6B7YRO.js +128 -0
- package/dist/chunk-YURGXJSP.js +102 -0
- package/dist/chunk-YVYYDPE2.js +124 -0
- package/dist/chunk-ZPGAMYOQ.js +1 -0
- package/dist/chunk-ZWGOAY27.js +234 -0
- package/dist/column-card.d.ts +1 -0
- package/dist/column-card.js +8 -0
- package/dist/components/account-menu/account-menu.d.ts +56 -0
- package/dist/components/account-menu/index.d.ts +1 -0
- package/dist/components/action-menu/action-menu.d.ts +45 -0
- package/dist/components/action-menu/index.d.ts +1 -0
- package/dist/components/activity-grid/activity-grid.d.ts +54 -0
- package/dist/components/activity-grid/index.d.ts +1 -0
- package/dist/components/add-card/add-card.d.ts +41 -0
- package/dist/components/add-card/index.d.ts +1 -0
- package/dist/components/amount-slider/amount-slider.d.ts +43 -0
- package/dist/components/amount-slider/index.d.ts +1 -0
- package/dist/components/annotation-text/annotation-text.d.ts +27 -0
- package/dist/components/annotation-text/index.d.ts +1 -0
- package/dist/components/aura-card/aura-card.d.ts +63 -0
- package/dist/components/aura-card/index.d.ts +1 -0
- package/dist/components/auth-card/auth-card.d.ts +51 -0
- package/dist/components/auth-card/index.d.ts +1 -0
- package/dist/components/avatar-testimonial/avatar-testimonial.d.ts +39 -0
- package/dist/components/avatar-testimonial/index.d.ts +1 -0
- package/dist/components/backspace-text/backspace-text.d.ts +27 -0
- package/dist/components/backspace-text/index.d.ts +1 -0
- package/dist/components/bell-toggle/bell-toggle.d.ts +33 -0
- package/dist/components/bell-toggle/index.d.ts +1 -0
- package/dist/components/bill-list/bill-list.d.ts +49 -0
- package/dist/components/bill-list/index.d.ts +1 -0
- package/dist/components/binary-text/binary-text.d.ts +24 -0
- package/dist/components/binary-text/index.d.ts +1 -0
- package/dist/components/blur-accordion/blur-accordion.d.ts +35 -0
- package/dist/components/blur-accordion/index.d.ts +1 -0
- package/dist/components/blur-text/blur-text.d.ts +33 -0
- package/dist/components/blur-text/index.d.ts +1 -0
- package/dist/components/booking-card/booking-card.d.ts +56 -0
- package/dist/components/booking-card/index.d.ts +1 -0
- package/dist/components/brand-bridge/brand-bridge.d.ts +63 -0
- package/dist/components/brand-bridge/index.d.ts +1 -0
- package/dist/components/calendar-agenda/calendar-agenda.d.ts +64 -0
- package/dist/components/calendar-agenda/index.d.ts +1 -0
- package/dist/components/channel-mix/channel-mix.d.ts +63 -0
- package/dist/components/channel-mix/index.d.ts +1 -0
- package/dist/components/column-card/column-card.d.ts +39 -0
- package/dist/components/column-card/index.d.ts +1 -0
- package/dist/components/contact-card/contact-card.d.ts +44 -0
- package/dist/components/contact-card/index.d.ts +1 -0
- package/dist/components/context-menu/context-menu.d.ts +59 -0
- package/dist/components/context-menu/index.d.ts +1 -0
- package/dist/components/contour-feature-card/contour-feature-card.d.ts +36 -0
- package/dist/components/contour-feature-card/index.d.ts +1 -0
- package/dist/components/contour-lines/contour-lines.d.ts +34 -0
- package/dist/components/contour-lines/index.d.ts +1 -0
- package/dist/components/decay-card/decay-card.d.ts +44 -0
- package/dist/components/decay-card/index.d.ts +1 -0
- package/dist/components/deploy-streak/deploy-streak.d.ts +30 -0
- package/dist/components/deploy-streak/index.d.ts +1 -0
- package/dist/components/depth-carousel/depth-carousel.d.ts +42 -0
- package/dist/components/depth-carousel/index.d.ts +1 -0
- package/dist/components/device-traffic/device-traffic.d.ts +59 -0
- package/dist/components/device-traffic/index.d.ts +1 -0
- package/dist/components/download-button/download-button.d.ts +36 -0
- package/dist/components/download-button/index.d.ts +1 -0
- package/dist/components/event-card/event-card.d.ts +55 -0
- package/dist/components/event-card/index.d.ts +1 -0
- package/dist/components/file-drop/file-drop.d.ts +46 -0
- package/dist/components/file-drop/index.d.ts +1 -0
- package/dist/components/flip-words/flip-words.d.ts +26 -0
- package/dist/components/flip-words/index.d.ts +1 -0
- package/dist/components/flux-card/flux-card.d.ts +56 -0
- package/dist/components/flux-card/index.d.ts +1 -0
- package/dist/components/fuse-button/fuse-button.d.ts +75 -0
- package/dist/components/fuse-button/index.d.ts +1 -0
- package/dist/components/globe-card/globe-card.d.ts +46 -0
- package/dist/components/globe-card/index.d.ts +1 -0
- package/dist/components/goal-gauge/goal-gauge.d.ts +47 -0
- package/dist/components/goal-gauge/index.d.ts +1 -0
- package/dist/components/gradient-card/gradient-card.d.ts +56 -0
- package/dist/components/gradient-card/index.d.ts +1 -0
- package/dist/components/gradient-text/gradient-text.d.ts +22 -0
- package/dist/components/gradient-text/index.d.ts +1 -0
- package/dist/components/gravity-tag-pile/gravity-tag-pile.d.ts +69 -0
- package/dist/components/gravity-tag-pile/index.d.ts +1 -0
- package/dist/components/growth-stream/growth-stream.d.ts +47 -0
- package/dist/components/growth-stream/index.d.ts +1 -0
- package/dist/components/highlight-text/highlight-text.d.ts +22 -0
- package/dist/components/highlight-text/index.d.ts +1 -0
- package/dist/components/hold-to-confirm/hold-to-confirm.d.ts +32 -0
- package/dist/components/hold-to-confirm/index.d.ts +1 -0
- package/dist/components/infinite-gallery/index.d.ts +1 -0
- package/dist/components/infinite-gallery/infinite-gallery.d.ts +73 -0
- package/dist/components/integration-hub/index.d.ts +1 -0
- package/dist/components/integration-hub/integration-hub.d.ts +40 -0
- package/dist/components/liquid-card/index.d.ts +1 -0
- package/dist/components/liquid-card/liquid-card.d.ts +66 -0
- package/dist/components/liquid-metal-card/index.d.ts +1 -0
- package/dist/components/liquid-metal-card/liquid-metal-card.d.ts +45 -0
- package/dist/components/liquid-tabs/index.d.ts +1 -0
- package/dist/components/liquid-tabs/liquid-tabs.d.ts +47 -0
- package/dist/components/magnetic-button/index.d.ts +1 -0
- package/dist/components/magnetic-button/magnetic-button.d.ts +46 -0
- package/dist/components/magnetic-flow/index.d.ts +1 -0
- package/dist/components/magnetic-flow/magnetic-flow.d.ts +35 -0
- package/dist/components/message-composer/index.d.ts +1 -0
- package/dist/components/message-composer/message-composer.d.ts +79 -0
- package/dist/components/metal-card-stack/index.d.ts +1 -0
- package/dist/components/metal-card-stack/metal-card-stack.d.ts +49 -0
- package/dist/components/metric-split/index.d.ts +1 -0
- package/dist/components/metric-split/metric-split.d.ts +45 -0
- package/dist/components/mix-chart/index.d.ts +1 -0
- package/dist/components/mix-chart/mix-chart.d.ts +59 -0
- package/dist/components/month-calendar/index.d.ts +1 -0
- package/dist/components/month-calendar/month-calendar.d.ts +34 -0
- package/dist/components/morph-search/index.d.ts +1 -0
- package/dist/components/morph-search/morph-search.d.ts +33 -0
- package/dist/components/orbit-card/index.d.ts +1 -0
- package/dist/components/orbit-card/orbit-card.d.ts +50 -0
- package/dist/components/otp-code/index.d.ts +1 -0
- package/dist/components/otp-code/otp-code.d.ts +61 -0
- package/dist/components/particle-card/index.d.ts +1 -0
- package/dist/components/particle-card/particle-card.d.ts +57 -0
- package/dist/components/payment-form/index.d.ts +1 -0
- package/dist/components/payment-form/payment-form.d.ts +54 -0
- package/dist/components/pill-tabs/index.d.ts +1 -0
- package/dist/components/pill-tabs/pill-tabs.d.ts +39 -0
- package/dist/components/pixel-blast/index.d.ts +1 -0
- package/dist/components/pixel-blast/pixel-blast.d.ts +41 -0
- package/dist/components/pixel-feature-card/index.d.ts +1 -0
- package/dist/components/pixel-feature-card/pixel-feature-card.d.ts +43 -0
- package/dist/components/pixel-scroll/index.d.ts +1 -0
- package/dist/components/pixel-scroll/pixel-scroll.d.ts +64 -0
- package/dist/components/pricing-card/index.d.ts +1 -0
- package/dist/components/pricing-card/pricing-card.d.ts +60 -0
- package/dist/components/prism-carousel/index.d.ts +1 -0
- package/dist/components/prism-carousel/prism-carousel.d.ts +54 -0
- package/dist/components/prism-flow/index.d.ts +1 -0
- package/dist/components/prism-flow/prism-flow.d.ts +41 -0
- package/dist/components/privacy-banner/index.d.ts +1 -0
- package/dist/components/privacy-banner/privacy-banner.d.ts +41 -0
- package/dist/components/profile-card/index.d.ts +1 -0
- package/dist/components/profile-card/profile-card.d.ts +52 -0
- package/dist/components/profile-menu/index.d.ts +1 -0
- package/dist/components/profile-menu/profile-menu.d.ts +43 -0
- package/dist/components/project-index/index.d.ts +1 -0
- package/dist/components/project-index/project-index.d.ts +65 -0
- package/dist/components/prompt-input/index.d.ts +1 -0
- package/dist/components/prompt-input/prompt-input.d.ts +49 -0
- package/dist/components/quota-gauge/index.d.ts +1 -0
- package/dist/components/quota-gauge/quota-gauge.d.ts +30 -0
- package/dist/components/range-chart/index.d.ts +1 -0
- package/dist/components/range-chart/range-chart.d.ts +47 -0
- package/dist/components/reaction-card/index.d.ts +1 -0
- package/dist/components/reaction-card/reaction-card.d.ts +60 -0
- package/dist/components/recap-card/index.d.ts +1 -0
- package/dist/components/recap-card/recap-card.d.ts +61 -0
- package/dist/components/receipt-button/index.d.ts +1 -0
- package/dist/components/receipt-button/receipt-button.d.ts +53 -0
- package/dist/components/ribbon-gallery/index.d.ts +1 -0
- package/dist/components/ribbon-gallery/ribbon-gallery.d.ts +61 -0
- package/dist/components/roadmap-card/index.d.ts +1 -0
- package/dist/components/roadmap-card/roadmap-card.d.ts +38 -0
- package/dist/components/rolling-card-stack/index.d.ts +1 -0
- package/dist/components/rolling-card-stack/rolling-card-stack.d.ts +53 -0
- package/dist/components/rolling-stepper/index.d.ts +1 -0
- package/dist/components/rolling-stepper/rolling-stepper.d.ts +33 -0
- package/dist/components/rotating-text/index.d.ts +1 -0
- package/dist/components/rotating-text/rotating-text.d.ts +25 -0
- package/dist/components/score-card/index.d.ts +1 -0
- package/dist/components/score-card/score-card.d.ts +40 -0
- package/dist/components/search-modal/index.d.ts +1 -0
- package/dist/components/search-modal/search-modal.d.ts +62 -0
- package/dist/components/shimmer-text/index.d.ts +1 -0
- package/dist/components/shimmer-text/shimmer-text.d.ts +22 -0
- package/dist/components/sidebar-nav/index.d.ts +1 -0
- package/dist/components/sidebar-nav/sidebar-nav.d.ts +71 -0
- package/dist/components/slide-commit/index.d.ts +1 -0
- package/dist/components/slide-commit/slide-commit.d.ts +39 -0
- package/dist/components/spatial-gallery/index.d.ts +1 -0
- package/dist/components/spatial-gallery/spatial-gallery.d.ts +88 -0
- package/dist/components/spending-meter/index.d.ts +1 -0
- package/dist/components/spending-meter/spending-meter.d.ts +41 -0
- package/dist/components/tab-bar/index.d.ts +1 -0
- package/dist/components/tab-bar/tab-bar.d.ts +44 -0
- package/dist/components/team-member-card/index.d.ts +1 -0
- package/dist/components/team-member-card/team-member-card.d.ts +66 -0
- package/dist/components/team-morph/index.d.ts +1 -0
- package/dist/components/team-morph/team-morph.d.ts +38 -0
- package/dist/components/tilt-card/index.d.ts +1 -0
- package/dist/components/tilt-card/tilt-card.d.ts +27 -0
- package/dist/components/tilt-carousel/index.d.ts +1 -0
- package/dist/components/tilt-carousel/tilt-carousel.d.ts +43 -0
- package/dist/components/toast-stack/index.d.ts +1 -0
- package/dist/components/toast-stack/toast-stack.d.ts +57 -0
- package/dist/components/usage-ring/index.d.ts +1 -0
- package/dist/components/usage-ring/usage-ring.d.ts +40 -0
- package/dist/components/verify-flow/index.d.ts +1 -0
- package/dist/components/verify-flow/verify-flow.d.ts +49 -0
- package/dist/components/voice-prompt/index.d.ts +1 -0
- package/dist/components/voice-prompt/voice-prompt.d.ts +55 -0
- package/dist/components/wallet-card/index.d.ts +1 -0
- package/dist/components/wallet-card/wallet-card.d.ts +54 -0
- package/dist/components/wave-text/index.d.ts +1 -0
- package/dist/components/wave-text/wave-text.d.ts +27 -0
- package/dist/contact-card.d.ts +1 -0
- package/dist/contact-card.js +12 -0
- package/dist/context-menu.d.ts +1 -0
- package/dist/context-menu.js +17 -0
- package/dist/contour-feature-card.d.ts +1 -0
- package/dist/contour-feature-card.js +9 -0
- package/dist/contour-lines.d.ts +1 -0
- package/dist/contour-lines.js +8 -0
- package/dist/decay-card.d.ts +1 -0
- package/dist/decay-card.js +8 -0
- package/dist/deploy-streak.d.ts +1 -0
- package/dist/deploy-streak.js +9 -0
- package/dist/depth-carousel.d.ts +1 -0
- package/dist/depth-carousel.js +8 -0
- package/dist/device-traffic.d.ts +1 -0
- package/dist/device-traffic.js +12 -0
- package/dist/download-button.d.ts +1 -0
- package/dist/download-button.js +8 -0
- package/dist/event-card.d.ts +1 -0
- package/dist/event-card.js +12 -0
- package/dist/file-drop.d.ts +1 -0
- package/dist/file-drop.js +12 -0
- package/dist/flip-words.d.ts +1 -0
- package/dist/flip-words.js +8 -0
- package/dist/flux-card.d.ts +1 -0
- package/dist/flux-card.js +13 -0
- package/dist/fuse-button.d.ts +1 -0
- package/dist/fuse-button.js +9 -0
- package/dist/globe-card.d.ts +1 -0
- package/dist/globe-card.js +8 -0
- package/dist/goal-gauge.d.ts +1 -0
- package/dist/goal-gauge.js +9 -0
- package/dist/gradient-card.d.ts +1 -0
- package/dist/gradient-card.js +8 -0
- package/dist/gradient-text.d.ts +1 -0
- package/dist/gradient-text.js +8 -0
- package/dist/gravity-tag-pile.d.ts +1 -0
- package/dist/gravity-tag-pile.js +9 -0
- package/dist/growth-stream.d.ts +1 -0
- package/dist/growth-stream.js +10 -0
- package/dist/highlight-text.d.ts +1 -0
- package/dist/highlight-text.js +8 -0
- package/dist/hold-to-confirm.d.ts +1 -0
- package/dist/hold-to-confirm.js +8 -0
- package/dist/icons/activity.d.ts +15 -0
- package/dist/icons/archive.d.ts +15 -0
- package/dist/icons/arrow-down-right.d.ts +15 -0
- package/dist/icons/arrow-down.d.ts +15 -0
- package/dist/icons/arrow-right.d.ts +15 -0
- package/dist/icons/arrow-up-right.d.ts +15 -0
- package/dist/icons/arrow-up.d.ts +15 -0
- package/dist/icons/at-sign.d.ts +15 -0
- package/dist/icons/attach-file.d.ts +15 -0
- package/dist/icons/badge-alert.d.ts +15 -0
- package/dist/icons/bell.d.ts +15 -0
- package/dist/icons/bold.d.ts +15 -0
- package/dist/icons/bookmark.d.ts +15 -0
- package/dist/icons/bot.d.ts +15 -0
- package/dist/icons/calendar-check-2.d.ts +15 -0
- package/dist/icons/calendar-check.d.ts +15 -0
- package/dist/icons/calendar-days.d.ts +15 -0
- package/dist/icons/chart-line.d.ts +15 -0
- package/dist/icons/chart-pie.d.ts +15 -0
- package/dist/icons/check.d.ts +15 -0
- package/dist/icons/chevron-down.d.ts +15 -0
- package/dist/icons/chevron-left.d.ts +15 -0
- package/dist/icons/chevron-right.d.ts +15 -0
- package/dist/icons/circle-check.d.ts +15 -0
- package/dist/icons/circle-dollar-sign.d.ts +15 -0
- package/dist/icons/clipboard-check.d.ts +15 -0
- package/dist/icons/clock.d.ts +15 -0
- package/dist/icons/cloud-upload.d.ts +15 -0
- package/dist/icons/compass.d.ts +15 -0
- package/dist/icons/contrast.d.ts +15 -0
- package/dist/icons/copy.d.ts +15 -0
- package/dist/icons/credit-card.d.ts +15 -0
- package/dist/icons/delete.d.ts +15 -0
- package/dist/icons/download.d.ts +15 -0
- package/dist/icons/dribbble.d.ts +15 -0
- package/dist/icons/earth.d.ts +15 -0
- package/dist/icons/eye-off.d.ts +15 -0
- package/dist/icons/eye.d.ts +15 -0
- package/dist/icons/feather.d.ts +15 -0
- package/dist/icons/figma.d.ts +15 -0
- package/dist/icons/file-text.d.ts +16 -0
- package/dist/icons/flame.d.ts +15 -0
- package/dist/icons/folder-input.d.ts +15 -0
- package/dist/icons/folder-open.d.ts +15 -0
- package/dist/icons/folders.d.ts +15 -0
- package/dist/icons/github.d.ts +15 -0
- package/dist/icons/hand-coins.d.ts +15 -0
- package/dist/icons/heart.d.ts +15 -0
- package/dist/icons/history.d.ts +15 -0
- package/dist/icons/home.d.ts +15 -0
- package/dist/icons/hourglass.d.ts +15 -0
- package/dist/icons/instagram.d.ts +15 -0
- package/dist/icons/italic.d.ts +15 -0
- package/dist/icons/layout-grid.d.ts +15 -0
- package/dist/icons/link.d.ts +15 -0
- package/dist/icons/linkedin.d.ts +15 -0
- package/dist/icons/loader-circle.d.ts +15 -0
- package/dist/icons/lock-keyhole-open.d.ts +15 -0
- package/dist/icons/lock-keyhole.d.ts +15 -0
- package/dist/icons/lock.d.ts +15 -0
- package/dist/icons/logout.d.ts +15 -0
- package/dist/icons/mail-check.d.ts +15 -0
- package/dist/icons/map-pin.d.ts +15 -0
- package/dist/icons/message-circle.d.ts +15 -0
- package/dist/icons/mic.d.ts +15 -0
- package/dist/icons/monitor-check.d.ts +15 -0
- package/dist/icons/moon.d.ts +15 -0
- package/dist/icons/palette.d.ts +15 -0
- package/dist/icons/panel-left-close.d.ts +15 -0
- package/dist/icons/panel-left-open.d.ts +15 -0
- package/dist/icons/plug-zap.d.ts +15 -0
- package/dist/icons/plus.d.ts +15 -0
- package/dist/icons/radio.d.ts +15 -0
- package/dist/icons/receipt.d.ts +15 -0
- package/dist/icons/refresh-cw.d.ts +15 -0
- package/dist/icons/rotate-ccw.d.ts +15 -0
- package/dist/icons/search.d.ts +15 -0
- package/dist/icons/send.d.ts +15 -0
- package/dist/icons/settings.d.ts +15 -0
- package/dist/icons/shield-check.d.ts +15 -0
- package/dist/icons/smartphone-nfc.d.ts +15 -0
- package/dist/icons/smile.d.ts +15 -0
- package/dist/icons/sparkles.d.ts +15 -0
- package/dist/icons/square-pen.d.ts +15 -0
- package/dist/icons/sun.d.ts +15 -0
- package/dist/icons/terminal.d.ts +15 -0
- package/dist/icons/timer.d.ts +15 -0
- package/dist/icons/trending-up.d.ts +15 -0
- package/dist/icons/twitter.d.ts +15 -0
- package/dist/icons/underline.d.ts +15 -0
- package/dist/icons/undo.d.ts +15 -0
- package/dist/icons/user-check.d.ts +15 -0
- package/dist/icons/user-plus.d.ts +15 -0
- package/dist/icons/user-round-plus.d.ts +15 -0
- package/dist/icons/user.d.ts +15 -0
- package/dist/icons/users.d.ts +15 -0
- package/dist/icons/wifi.d.ts +15 -0
- package/dist/icons/workflow.d.ts +15 -0
- package/dist/icons/x.d.ts +15 -0
- package/dist/icons/zap.d.ts +15 -0
- package/dist/index.d.ts +100 -0
- package/dist/index.js +472 -0
- package/dist/infinite-gallery.d.ts +1 -0
- package/dist/infinite-gallery.js +9 -0
- package/dist/integration-hub.d.ts +1 -0
- package/dist/integration-hub.js +8 -0
- package/dist/lib/cn.d.ts +3 -0
- package/dist/liquid-card.d.ts +1 -0
- package/dist/liquid-card.js +10 -0
- package/dist/liquid-metal-card.d.ts +1 -0
- package/dist/liquid-metal-card.js +8 -0
- package/dist/liquid-tabs.d.ts +1 -0
- package/dist/liquid-tabs.js +14 -0
- package/dist/magnetic-button.d.ts +1 -0
- package/dist/magnetic-button.js +8 -0
- package/dist/magnetic-flow.d.ts +1 -0
- package/dist/magnetic-flow.js +8 -0
- package/dist/message-composer.d.ts +1 -0
- package/dist/message-composer.js +20 -0
- package/dist/metal-card-stack.d.ts +1 -0
- package/dist/metal-card-stack.js +8 -0
- package/dist/metric-split.d.ts +1 -0
- package/dist/metric-split.js +9 -0
- package/dist/mix-chart.d.ts +1 -0
- package/dist/mix-chart.js +9 -0
- package/dist/month-calendar.d.ts +1 -0
- package/dist/month-calendar.js +10 -0
- package/dist/morph-search.d.ts +1 -0
- package/dist/morph-search.js +10 -0
- package/dist/orbit-card.d.ts +1 -0
- package/dist/orbit-card.js +8 -0
- package/dist/otp-code.d.ts +1 -0
- package/dist/otp-code.js +17 -0
- package/dist/particle-card.d.ts +1 -0
- package/dist/particle-card.js +8 -0
- package/dist/payment-form.d.ts +1 -0
- package/dist/payment-form.js +8 -0
- package/dist/pill-tabs.d.ts +1 -0
- package/dist/pill-tabs.js +9 -0
- package/dist/pixel-blast.d.ts +1 -0
- package/dist/pixel-blast.js +8 -0
- package/dist/pixel-feature-card.d.ts +1 -0
- package/dist/pixel-feature-card.js +9 -0
- package/dist/pixel-scroll.d.ts +1 -0
- package/dist/pixel-scroll.js +8 -0
- package/dist/pricing-card.d.ts +1 -0
- package/dist/pricing-card.js +14 -0
- package/dist/prism-carousel.d.ts +1 -0
- package/dist/prism-carousel.js +8 -0
- package/dist/prism-flow.d.ts +1 -0
- package/dist/prism-flow.js +8 -0
- package/dist/privacy-banner.d.ts +1 -0
- package/dist/privacy-banner.js +8 -0
- package/dist/profile-card.d.ts +1 -0
- package/dist/profile-card.js +13 -0
- package/dist/profile-menu.d.ts +1 -0
- package/dist/profile-menu.js +21 -0
- package/dist/project-index.d.ts +1 -0
- package/dist/project-index.js +9 -0
- package/dist/prompt-input.d.ts +1 -0
- package/dist/prompt-input.js +14 -0
- package/dist/quota-gauge.d.ts +1 -0
- package/dist/quota-gauge.js +9 -0
- package/dist/range-chart.d.ts +1 -0
- package/dist/range-chart.js +8 -0
- package/dist/reaction-card.d.ts +1 -0
- package/dist/reaction-card.js +8 -0
- package/dist/recap-card.d.ts +1 -0
- package/dist/recap-card.js +15 -0
- package/dist/receipt-button.d.ts +1 -0
- package/dist/receipt-button.js +8 -0
- package/dist/ribbon-gallery.d.ts +1 -0
- package/dist/ribbon-gallery.js +8 -0
- package/dist/roadmap-card.d.ts +1 -0
- package/dist/roadmap-card.js +11 -0
- package/dist/rolling-card-stack.d.ts +1 -0
- package/dist/rolling-card-stack.js +8 -0
- package/dist/rolling-stepper.d.ts +1 -0
- package/dist/rolling-stepper.js +8 -0
- package/dist/rotating-text.d.ts +1 -0
- package/dist/rotating-text.js +9 -0
- package/dist/score-card.d.ts +1 -0
- package/dist/score-card.js +10 -0
- package/dist/search-modal.d.ts +1 -0
- package/dist/search-modal.js +16 -0
- package/dist/shimmer-text.d.ts +1 -0
- package/dist/shimmer-text.js +8 -0
- package/dist/sidebar-nav.d.ts +1 -0
- package/dist/sidebar-nav.js +19 -0
- package/dist/slide-commit.d.ts +1 -0
- package/dist/slide-commit.js +9 -0
- package/dist/spatial-gallery.d.ts +1 -0
- package/dist/spatial-gallery.js +8 -0
- package/dist/spending-meter.d.ts +1 -0
- package/dist/spending-meter.js +9 -0
- package/dist/tab-bar.d.ts +1 -0
- package/dist/tab-bar.js +18 -0
- package/dist/team-member-card.d.ts +1 -0
- package/dist/team-member-card.js +14 -0
- package/dist/team-morph.d.ts +1 -0
- package/dist/team-morph.js +11 -0
- package/dist/tilt-card.d.ts +1 -0
- package/dist/tilt-card.js +8 -0
- package/dist/tilt-carousel.d.ts +1 -0
- package/dist/tilt-carousel.js +8 -0
- package/dist/toast-stack.d.ts +1 -0
- package/dist/toast-stack.js +13 -0
- package/dist/usage-ring.d.ts +1 -0
- package/dist/usage-ring.js +9 -0
- package/dist/verify-flow.d.ts +1 -0
- package/dist/verify-flow.js +10 -0
- package/dist/voice-prompt.d.ts +1 -0
- package/dist/voice-prompt.js +14 -0
- package/dist/wallet-card.d.ts +1 -0
- package/dist/wallet-card.js +15 -0
- package/dist/wave-text.d.ts +1 -0
- package/dist/wave-text.js +8 -0
- package/package.json +111 -4
|
@@ -0,0 +1,806 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
RefreshCWIcon
|
|
4
|
+
} from "./chunk-VEC5QAOY.js";
|
|
5
|
+
import {
|
|
6
|
+
ArrowUpIcon
|
|
7
|
+
} from "./chunk-2IMPUH4H.js";
|
|
8
|
+
import {
|
|
9
|
+
ReceiptIcon
|
|
10
|
+
} from "./chunk-IYZOANPX.js";
|
|
11
|
+
import {
|
|
12
|
+
SmartphoneNfcIcon
|
|
13
|
+
} from "./chunk-OS6REIBR.js";
|
|
14
|
+
import {
|
|
15
|
+
ChevronDownIcon
|
|
16
|
+
} from "./chunk-NIQFSLPC.js";
|
|
17
|
+
import {
|
|
18
|
+
TrendingUpIcon
|
|
19
|
+
} from "./chunk-SSWKGVRI.js";
|
|
20
|
+
import {
|
|
21
|
+
CreditCardIcon
|
|
22
|
+
} from "./chunk-GVWOJJ3T.js";
|
|
23
|
+
import {
|
|
24
|
+
cn
|
|
25
|
+
} from "./chunk-2TQSHVXA.js";
|
|
26
|
+
|
|
27
|
+
// src/components/wallet-card/wallet-card.tsx
|
|
28
|
+
import * as React from "react";
|
|
29
|
+
import {
|
|
30
|
+
AnimatePresence,
|
|
31
|
+
animate,
|
|
32
|
+
useAnimate,
|
|
33
|
+
motion as motion3,
|
|
34
|
+
useMotionValue,
|
|
35
|
+
useInView,
|
|
36
|
+
useMotionValueEvent,
|
|
37
|
+
useReducedMotion as useReducedMotion3,
|
|
38
|
+
useTransform,
|
|
39
|
+
useVelocity
|
|
40
|
+
} from "motion/react";
|
|
41
|
+
|
|
42
|
+
// src/icons/arrow-down.tsx
|
|
43
|
+
import { motion, useAnimation, useReducedMotion } from "motion/react";
|
|
44
|
+
import { forwardRef, useCallback, useEffect, useImperativeHandle, useRef, useState } from "react";
|
|
45
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
46
|
+
var PATH_VARIANTS = {
|
|
47
|
+
normal: { d: "m19 12-7 7-7-7", translateY: 0 },
|
|
48
|
+
animate: {
|
|
49
|
+
d: "m19 12-7 7-7-7",
|
|
50
|
+
translateY: [0, -3, 0],
|
|
51
|
+
transition: {
|
|
52
|
+
duration: 0.4
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
var SECOND_PATH_VARIANTS = {
|
|
57
|
+
normal: { d: "M12 5v14" },
|
|
58
|
+
animate: {
|
|
59
|
+
d: ["M12 5v14", "M12 5v9", "M12 5v14"],
|
|
60
|
+
transition: {
|
|
61
|
+
duration: 0.4
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
var ArrowDownIcon = forwardRef(
|
|
66
|
+
({ onMouseEnter, onMouseLeave, className, size, active, style, strokeWidth, ...props }, ref) => {
|
|
67
|
+
const controls = useAnimation();
|
|
68
|
+
const isControlledRef = useRef(false);
|
|
69
|
+
useImperativeHandle(ref, () => {
|
|
70
|
+
isControlledRef.current = true;
|
|
71
|
+
return {
|
|
72
|
+
startAnimation: () => controls.start("animate"),
|
|
73
|
+
stopAnimation: () => controls.start("normal")
|
|
74
|
+
};
|
|
75
|
+
});
|
|
76
|
+
const handleMouseEnter = useCallback(
|
|
77
|
+
(e) => {
|
|
78
|
+
if (isControlledRef.current) {
|
|
79
|
+
onMouseEnter?.(e);
|
|
80
|
+
} else {
|
|
81
|
+
controls.start("animate");
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
[controls, onMouseEnter]
|
|
85
|
+
);
|
|
86
|
+
const handleMouseLeave = useCallback(
|
|
87
|
+
(e) => {
|
|
88
|
+
if (isControlledRef.current) {
|
|
89
|
+
onMouseLeave?.(e);
|
|
90
|
+
} else {
|
|
91
|
+
controls.start("normal");
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
[controls, onMouseLeave]
|
|
95
|
+
);
|
|
96
|
+
const wrap = useRef(null);
|
|
97
|
+
const reduced = useReducedMotion();
|
|
98
|
+
const [hosted, setHosted] = useState(false);
|
|
99
|
+
useEffect(() => {
|
|
100
|
+
const fake = {};
|
|
101
|
+
if (reduced) {
|
|
102
|
+
setHosted(true);
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
if (active !== void 0) {
|
|
106
|
+
setHosted(true);
|
|
107
|
+
(active ? handleMouseEnter : handleMouseLeave)(fake);
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
const host = wrap.current?.parentElement?.closest("button, a, [role=button], [role=menuitem], [role=tab], [role=switch], [role=radio], label");
|
|
111
|
+
setHosted(!!host);
|
|
112
|
+
if (!host) return;
|
|
113
|
+
const on = () => handleMouseEnter(fake);
|
|
114
|
+
const off = () => handleMouseLeave(fake);
|
|
115
|
+
host.addEventListener("pointerenter", on);
|
|
116
|
+
host.addEventListener("pointerleave", off);
|
|
117
|
+
return () => {
|
|
118
|
+
host.removeEventListener("pointerenter", on);
|
|
119
|
+
host.removeEventListener("pointerleave", off);
|
|
120
|
+
};
|
|
121
|
+
}, [active, reduced, handleMouseEnter, handleMouseLeave]);
|
|
122
|
+
return /* @__PURE__ */ jsx(
|
|
123
|
+
"span",
|
|
124
|
+
{
|
|
125
|
+
ref: wrap,
|
|
126
|
+
className: cn("inline-grid size-6 shrink-0 place-items-center align-middle [&>svg]:size-full", className),
|
|
127
|
+
style: size ? { width: size, height: size, ...style } : style,
|
|
128
|
+
onMouseEnter: hosted ? void 0 : handleMouseEnter,
|
|
129
|
+
onMouseLeave: hosted ? void 0 : handleMouseLeave,
|
|
130
|
+
...props,
|
|
131
|
+
children: /* @__PURE__ */ jsxs(
|
|
132
|
+
"svg",
|
|
133
|
+
{
|
|
134
|
+
fill: "none",
|
|
135
|
+
height: size,
|
|
136
|
+
stroke: "currentColor",
|
|
137
|
+
strokeLinecap: "round",
|
|
138
|
+
strokeLinejoin: "round",
|
|
139
|
+
strokeWidth: strokeWidth ?? 2,
|
|
140
|
+
viewBox: "0 0 24 24",
|
|
141
|
+
width: size,
|
|
142
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
143
|
+
children: [
|
|
144
|
+
/* @__PURE__ */ jsx(
|
|
145
|
+
motion.path,
|
|
146
|
+
{
|
|
147
|
+
animate: controls,
|
|
148
|
+
d: "m19 12-7 7-7-7",
|
|
149
|
+
variants: PATH_VARIANTS
|
|
150
|
+
}
|
|
151
|
+
),
|
|
152
|
+
/* @__PURE__ */ jsx(
|
|
153
|
+
motion.path,
|
|
154
|
+
{
|
|
155
|
+
animate: controls,
|
|
156
|
+
d: "M12 5v14",
|
|
157
|
+
variants: SECOND_PATH_VARIANTS
|
|
158
|
+
}
|
|
159
|
+
)
|
|
160
|
+
]
|
|
161
|
+
}
|
|
162
|
+
)
|
|
163
|
+
}
|
|
164
|
+
);
|
|
165
|
+
}
|
|
166
|
+
);
|
|
167
|
+
ArrowDownIcon.displayName = "ArrowDownIcon";
|
|
168
|
+
|
|
169
|
+
// src/icons/hand-coins.tsx
|
|
170
|
+
import { motion as motion2, useAnimation as useAnimation2, useReducedMotion as useReducedMotion2 } from "motion/react";
|
|
171
|
+
import { forwardRef as forwardRef2, useCallback as useCallback2, useEffect as useEffect2, useImperativeHandle as useImperativeHandle2, useRef as useRef2, useState as useState2 } from "react";
|
|
172
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
173
|
+
var CIRCLE_VARIANTS = {
|
|
174
|
+
normal: {
|
|
175
|
+
translateY: 0,
|
|
176
|
+
opacity: 1,
|
|
177
|
+
transition: {
|
|
178
|
+
opacity: { duration: 0.2 },
|
|
179
|
+
type: "spring",
|
|
180
|
+
stiffness: 150,
|
|
181
|
+
damping: 15,
|
|
182
|
+
bounce: 0.8
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
animate: {
|
|
186
|
+
opacity: [0, 1],
|
|
187
|
+
translateY: [-20, 0],
|
|
188
|
+
transition: {
|
|
189
|
+
opacity: { duration: 0.2 },
|
|
190
|
+
type: "spring",
|
|
191
|
+
stiffness: 150,
|
|
192
|
+
damping: 15,
|
|
193
|
+
bounce: 0.8
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
var SECOND_CIRCLE_VARIANTS = {
|
|
198
|
+
normal: {
|
|
199
|
+
translateY: 0,
|
|
200
|
+
opacity: 1,
|
|
201
|
+
transition: {
|
|
202
|
+
opacity: { duration: 0.2 },
|
|
203
|
+
delay: 0.15,
|
|
204
|
+
type: "spring",
|
|
205
|
+
stiffness: 150,
|
|
206
|
+
damping: 15,
|
|
207
|
+
bounce: 0.8
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
animate: {
|
|
211
|
+
opacity: [0, 1],
|
|
212
|
+
translateY: [-20, 0],
|
|
213
|
+
transition: {
|
|
214
|
+
opacity: { duration: 0.2 },
|
|
215
|
+
delay: 0.15,
|
|
216
|
+
type: "spring",
|
|
217
|
+
stiffness: 150,
|
|
218
|
+
damping: 15,
|
|
219
|
+
bounce: 0.8
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
var HandCoinsIcon = forwardRef2(
|
|
224
|
+
({ onMouseEnter, onMouseLeave, className, size, active, style, strokeWidth, ...props }, ref) => {
|
|
225
|
+
const controls = useAnimation2();
|
|
226
|
+
const isControlledRef = useRef2(false);
|
|
227
|
+
useImperativeHandle2(ref, () => {
|
|
228
|
+
isControlledRef.current = true;
|
|
229
|
+
return {
|
|
230
|
+
startAnimation: () => controls.start("animate"),
|
|
231
|
+
stopAnimation: () => controls.start("normal")
|
|
232
|
+
};
|
|
233
|
+
});
|
|
234
|
+
const handleMouseEnter = useCallback2(
|
|
235
|
+
(e) => {
|
|
236
|
+
if (isControlledRef.current) {
|
|
237
|
+
onMouseEnter?.(e);
|
|
238
|
+
} else {
|
|
239
|
+
controls.start("animate");
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
[controls, onMouseEnter]
|
|
243
|
+
);
|
|
244
|
+
const handleMouseLeave = useCallback2(
|
|
245
|
+
(e) => {
|
|
246
|
+
if (isControlledRef.current) {
|
|
247
|
+
onMouseLeave?.(e);
|
|
248
|
+
} else {
|
|
249
|
+
controls.start("normal");
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
[controls, onMouseLeave]
|
|
253
|
+
);
|
|
254
|
+
const wrap = useRef2(null);
|
|
255
|
+
const reduced = useReducedMotion2();
|
|
256
|
+
const [hosted, setHosted] = useState2(false);
|
|
257
|
+
useEffect2(() => {
|
|
258
|
+
const fake = {};
|
|
259
|
+
if (reduced) {
|
|
260
|
+
setHosted(true);
|
|
261
|
+
return;
|
|
262
|
+
}
|
|
263
|
+
if (active !== void 0) {
|
|
264
|
+
setHosted(true);
|
|
265
|
+
(active ? handleMouseEnter : handleMouseLeave)(fake);
|
|
266
|
+
return;
|
|
267
|
+
}
|
|
268
|
+
const host = wrap.current?.parentElement?.closest("button, a, [role=button], [role=menuitem], [role=tab], [role=switch], [role=radio], label");
|
|
269
|
+
setHosted(!!host);
|
|
270
|
+
if (!host) return;
|
|
271
|
+
const on = () => handleMouseEnter(fake);
|
|
272
|
+
const off = () => handleMouseLeave(fake);
|
|
273
|
+
host.addEventListener("pointerenter", on);
|
|
274
|
+
host.addEventListener("pointerleave", off);
|
|
275
|
+
return () => {
|
|
276
|
+
host.removeEventListener("pointerenter", on);
|
|
277
|
+
host.removeEventListener("pointerleave", off);
|
|
278
|
+
};
|
|
279
|
+
}, [active, reduced, handleMouseEnter, handleMouseLeave]);
|
|
280
|
+
return /* @__PURE__ */ jsx2(
|
|
281
|
+
"span",
|
|
282
|
+
{
|
|
283
|
+
ref: wrap,
|
|
284
|
+
className: cn("inline-grid size-6 shrink-0 place-items-center align-middle [&>svg]:size-full", className),
|
|
285
|
+
style: size ? { width: size, height: size, ...style } : style,
|
|
286
|
+
onMouseEnter: hosted ? void 0 : handleMouseEnter,
|
|
287
|
+
onMouseLeave: hosted ? void 0 : handleMouseLeave,
|
|
288
|
+
...props,
|
|
289
|
+
children: /* @__PURE__ */ jsxs2(
|
|
290
|
+
"svg",
|
|
291
|
+
{
|
|
292
|
+
fill: "none",
|
|
293
|
+
height: size,
|
|
294
|
+
stroke: "currentColor",
|
|
295
|
+
strokeLinecap: "round",
|
|
296
|
+
strokeLinejoin: "round",
|
|
297
|
+
strokeWidth: strokeWidth ?? 2,
|
|
298
|
+
viewBox: "0 0 24 24",
|
|
299
|
+
width: size,
|
|
300
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
301
|
+
children: [
|
|
302
|
+
/* @__PURE__ */ jsx2("path", { d: "M11 15h2a2 2 0 1 0 0-4h-3c-.6 0-1.1.2-1.4.6L3 17" }),
|
|
303
|
+
/* @__PURE__ */ jsx2("path", { d: "m7 21 1.6-1.4c.3-.4.8-.6 1.4-.6h4c1.1 0 2.1-.4 2.8-1.2l4.6-4.4a2 2 0 0 0-2.75-2.91l-4.2 3.9" }),
|
|
304
|
+
/* @__PURE__ */ jsx2("path", { d: "m2 16 6 6" }),
|
|
305
|
+
/* @__PURE__ */ jsx2(
|
|
306
|
+
motion2.circle,
|
|
307
|
+
{
|
|
308
|
+
animate: controls,
|
|
309
|
+
cx: "16",
|
|
310
|
+
cy: "9",
|
|
311
|
+
r: "2.9",
|
|
312
|
+
variants: CIRCLE_VARIANTS
|
|
313
|
+
}
|
|
314
|
+
),
|
|
315
|
+
/* @__PURE__ */ jsx2(
|
|
316
|
+
motion2.circle,
|
|
317
|
+
{
|
|
318
|
+
animate: controls,
|
|
319
|
+
cx: "6",
|
|
320
|
+
cy: "5",
|
|
321
|
+
r: "3",
|
|
322
|
+
variants: SECOND_CIRCLE_VARIANTS
|
|
323
|
+
}
|
|
324
|
+
)
|
|
325
|
+
]
|
|
326
|
+
}
|
|
327
|
+
)
|
|
328
|
+
}
|
|
329
|
+
);
|
|
330
|
+
}
|
|
331
|
+
);
|
|
332
|
+
HandCoinsIcon.displayName = "HandCoinsIcon";
|
|
333
|
+
|
|
334
|
+
// src/components/wallet-card/wallet-card.tsx
|
|
335
|
+
import { Fragment, jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
336
|
+
var GLIDE = [0.22, 1, 0.36, 1];
|
|
337
|
+
var LIST = {
|
|
338
|
+
hidden: { opacity: 0, scale: 0.94, y: -6 },
|
|
339
|
+
shown: {
|
|
340
|
+
opacity: 1,
|
|
341
|
+
scale: 1,
|
|
342
|
+
y: 0,
|
|
343
|
+
transition: { type: "spring", stiffness: 520, damping: 34, mass: 0.7, staggerChildren: 0.035, delayChildren: 0.04 }
|
|
344
|
+
}
|
|
345
|
+
};
|
|
346
|
+
var ROW = {
|
|
347
|
+
hidden: { opacity: 0, y: 6 },
|
|
348
|
+
shown: { opacity: 1, y: 0, transition: { duration: 0.32, ease: [0.5, 1, 0.89, 1] } }
|
|
349
|
+
};
|
|
350
|
+
var FILL = [0.5, 1, 0.89, 1];
|
|
351
|
+
var DIGITS = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
|
|
352
|
+
var MAX_BLUR = 0.5;
|
|
353
|
+
function Wheel({
|
|
354
|
+
amount,
|
|
355
|
+
rate,
|
|
356
|
+
place,
|
|
357
|
+
unit
|
|
358
|
+
}) {
|
|
359
|
+
const position = useTransform(amount, (a) => {
|
|
360
|
+
const ticks = Math.max(0, a) / unit + 1e-6;
|
|
361
|
+
const whole = Math.floor(ticks);
|
|
362
|
+
const turning = ticks - whole;
|
|
363
|
+
const span = Math.round(place / unit);
|
|
364
|
+
const digit = Math.floor(whole / span) % 10;
|
|
365
|
+
const turn = span === 1 ? turning : whole % span === span - 1 ? turning : 0;
|
|
366
|
+
return digit + turn;
|
|
367
|
+
});
|
|
368
|
+
const y = useTransform(position, (p) => `${-p * 100 / 11}%`);
|
|
369
|
+
const filter = useTransform(rate, (v) => {
|
|
370
|
+
const px = Math.min(MAX_BLUR, Math.abs(v) / place * 0.015);
|
|
371
|
+
return px < 0.1 ? "none" : `blur(${px.toFixed(2)}px)`;
|
|
372
|
+
});
|
|
373
|
+
return /* @__PURE__ */ jsx3("span", { className: "relative inline-block h-[1em] w-[0.62em] overflow-hidden", children: /* @__PURE__ */ jsx3(motion3.span, { className: "absolute inset-x-0 top-0 flex flex-col", style: { y, filter }, children: [...DIGITS, 0].map((d, i) => /* @__PURE__ */ jsx3("span", { className: "flex h-[1em] items-center justify-center", children: d }, i)) }) });
|
|
374
|
+
}
|
|
375
|
+
function Odometer({
|
|
376
|
+
amount,
|
|
377
|
+
format,
|
|
378
|
+
label
|
|
379
|
+
}) {
|
|
380
|
+
const parts = React.useMemo(() => format.formatToParts(1234.5), [format]);
|
|
381
|
+
const before = parts.slice(
|
|
382
|
+
0,
|
|
383
|
+
parts.findIndex((p) => p.type === "integer")
|
|
384
|
+
).map((p) => p.value).join("");
|
|
385
|
+
const numeric = ["integer", "group", "decimal", "fraction"];
|
|
386
|
+
const lastNum = parts.reduce((last, p, i) => numeric.includes(p.type) ? i : last, -1);
|
|
387
|
+
const after = parts.slice(lastNum + 1).map((p) => p.value).join("");
|
|
388
|
+
const group = parts.find((p) => p.type === "group")?.value ?? ",";
|
|
389
|
+
const decimal = parts.find((p) => p.type === "decimal")?.value ?? ".";
|
|
390
|
+
const fractionDigits = parts.find((p) => p.type === "fraction")?.value.length ?? 0;
|
|
391
|
+
const rate = useVelocity(amount);
|
|
392
|
+
const wholeDigits = (a) => Math.max(1, String(Math.floor(Math.max(0, a) + 1e-6)).length);
|
|
393
|
+
const [count, setCount] = React.useState(() => wholeDigits(amount.get()));
|
|
394
|
+
useMotionValueEvent(amount, "change", (a) => {
|
|
395
|
+
const next = wholeDigits(a);
|
|
396
|
+
if (next !== count) setCount(next);
|
|
397
|
+
});
|
|
398
|
+
const cells = [];
|
|
399
|
+
for (let k = count - 1; k >= 0; k--) {
|
|
400
|
+
cells.push(
|
|
401
|
+
/* @__PURE__ */ jsx3(
|
|
402
|
+
motion3.span,
|
|
403
|
+
{
|
|
404
|
+
className: "inline-flex",
|
|
405
|
+
initial: { opacity: 0 },
|
|
406
|
+
animate: { opacity: 1 },
|
|
407
|
+
transition: { duration: 0.2 },
|
|
408
|
+
children: /* @__PURE__ */ jsx3(Wheel, { amount, rate, place: 10 ** k, unit: 10 ** -fractionDigits })
|
|
409
|
+
},
|
|
410
|
+
`w${k}`
|
|
411
|
+
)
|
|
412
|
+
);
|
|
413
|
+
if (k > 0 && k % 3 === 0) cells.push(/* @__PURE__ */ jsx3("span", { children: group }, `g${k}`));
|
|
414
|
+
}
|
|
415
|
+
if (fractionDigits > 0) cells.push(/* @__PURE__ */ jsx3("span", { children: decimal }, "dec"));
|
|
416
|
+
for (let f = 1; f <= fractionDigits; f++) {
|
|
417
|
+
cells.push(/* @__PURE__ */ jsx3(Wheel, { amount, rate, place: 10 ** -f, unit: 10 ** -fractionDigits }, `f${f}`));
|
|
418
|
+
}
|
|
419
|
+
return /* @__PURE__ */ jsx3("span", { "aria-label": label, className: "inline-flex leading-none tabular-nums", children: /* @__PURE__ */ jsxs3("span", { "aria-hidden": true, className: "inline-flex", children: [
|
|
420
|
+
before,
|
|
421
|
+
cells,
|
|
422
|
+
after
|
|
423
|
+
] }) });
|
|
424
|
+
}
|
|
425
|
+
var DEFAULT_CURRENCIES = [
|
|
426
|
+
{ code: "USD", flag: "\u{1F1FA}\u{1F1F8}", name: "US dollar", rate: 1, locale: "en-US" },
|
|
427
|
+
{ code: "EUR", flag: "\u{1F1EA}\u{1F1FA}", name: "Euro", rate: 0.92, locale: "de-DE" },
|
|
428
|
+
{ code: "GBP", flag: "\u{1F1EC}\u{1F1E7}", name: "British pound", rate: 0.79, locale: "en-GB" },
|
|
429
|
+
{ code: "IDR", flag: "\u{1F1EE}\u{1F1E9}", name: "Indonesian rupiah", rate: 15947, locale: "id-ID", digits: 0 }
|
|
430
|
+
];
|
|
431
|
+
var DEFAULT_ACTIONS = [
|
|
432
|
+
{ label: "Transfer", icon: "transfer" },
|
|
433
|
+
{ label: "Top up", icon: "topup" },
|
|
434
|
+
{ label: "Exchange", icon: "exchange" },
|
|
435
|
+
{ label: "Pay later", icon: "paylater" }
|
|
436
|
+
];
|
|
437
|
+
var DEFAULT_MORE = [
|
|
438
|
+
{ label: "Bills", icon: "bills" },
|
|
439
|
+
{ label: "Savings", icon: "savings" },
|
|
440
|
+
{ label: "Mobile", icon: "mobile" },
|
|
441
|
+
{ label: "Invest", icon: "invest" }
|
|
442
|
+
];
|
|
443
|
+
var ICONS = {
|
|
444
|
+
transfer: ArrowUpIcon,
|
|
445
|
+
topup: ArrowDownIcon,
|
|
446
|
+
exchange: RefreshCWIcon,
|
|
447
|
+
paylater: CreditCardIcon,
|
|
448
|
+
bills: ReceiptIcon,
|
|
449
|
+
savings: HandCoinsIcon,
|
|
450
|
+
mobile: SmartphoneNfcIcon,
|
|
451
|
+
invest: TrendingUpIcon
|
|
452
|
+
};
|
|
453
|
+
var ENTER = {
|
|
454
|
+
transfer: { y: 16 },
|
|
455
|
+
topup: { y: -16 },
|
|
456
|
+
exchange: { rotate: -180, scale: 0.6 },
|
|
457
|
+
paylater: { x: -16 },
|
|
458
|
+
bills: { y: 16 },
|
|
459
|
+
savings: { scale: 0.4 },
|
|
460
|
+
mobile: { rotate: -30, scale: 0.6 },
|
|
461
|
+
invest: { x: -14, y: 14 }
|
|
462
|
+
};
|
|
463
|
+
function ActionButton({
|
|
464
|
+
action,
|
|
465
|
+
color,
|
|
466
|
+
index,
|
|
467
|
+
appear
|
|
468
|
+
}) {
|
|
469
|
+
const Icon = ICONS[action.icon];
|
|
470
|
+
const [ripples, setRipples] = React.useState([]);
|
|
471
|
+
const [well, animateWell] = useAnimate();
|
|
472
|
+
const reduceMotion = useReducedMotion3();
|
|
473
|
+
React.useEffect(() => {
|
|
474
|
+
if (appear === null || !well.current) return;
|
|
475
|
+
if (reduceMotion) {
|
|
476
|
+
animateWell(well.current, { opacity: 1, x: 0, y: 0, rotate: 0, scale: 1 }, { duration: 0 });
|
|
477
|
+
return;
|
|
478
|
+
}
|
|
479
|
+
const from = ENTER[action.icon];
|
|
480
|
+
animateWell(
|
|
481
|
+
well.current,
|
|
482
|
+
{
|
|
483
|
+
opacity: [0, 1],
|
|
484
|
+
x: [from.x ?? 0, 0],
|
|
485
|
+
y: [from.y ?? 0, 0],
|
|
486
|
+
rotate: [from.rotate ?? 0, 0],
|
|
487
|
+
scale: [from.scale ?? 1, 1]
|
|
488
|
+
},
|
|
489
|
+
{ duration: 0.5, ease: GLIDE, delay: appear }
|
|
490
|
+
);
|
|
491
|
+
}, [appear, action.icon, animateWell, well, reduceMotion]);
|
|
492
|
+
return /* @__PURE__ */ jsxs3(
|
|
493
|
+
motion3.button,
|
|
494
|
+
{
|
|
495
|
+
type: "button",
|
|
496
|
+
onClick: () => {
|
|
497
|
+
setRipples((r) => [...r, Date.now()]);
|
|
498
|
+
action.onSelect?.();
|
|
499
|
+
},
|
|
500
|
+
initial: "rest",
|
|
501
|
+
whileHover: "hover",
|
|
502
|
+
whileFocus: "hover",
|
|
503
|
+
whileTap: "press",
|
|
504
|
+
custom: index,
|
|
505
|
+
className: "group flex w-full cursor-pointer flex-col items-center gap-2 rounded-2xl py-1 outline-none focus-visible:ring-2 focus-visible:ring-zinc-400",
|
|
506
|
+
children: [
|
|
507
|
+
/* @__PURE__ */ jsxs3(
|
|
508
|
+
motion3.span,
|
|
509
|
+
{
|
|
510
|
+
variants: { rest: { scale: 1 }, hover: { scale: 1.06 }, press: { scale: 0.9 } },
|
|
511
|
+
transition: { type: "spring", stiffness: 500, damping: 26 },
|
|
512
|
+
className: "relative grid size-11 place-items-center rounded-full text-white",
|
|
513
|
+
style: { background: color },
|
|
514
|
+
children: [
|
|
515
|
+
/* @__PURE__ */ jsx3(AnimatePresence, { children: ripples.map((key) => /* @__PURE__ */ jsx3(
|
|
516
|
+
motion3.span,
|
|
517
|
+
{
|
|
518
|
+
"aria-hidden": true,
|
|
519
|
+
className: "absolute inset-0 rounded-full",
|
|
520
|
+
style: { boxShadow: `0 0 0 2px ${color}` },
|
|
521
|
+
initial: { scale: 1, opacity: 0.5 },
|
|
522
|
+
animate: { scale: 1.6, opacity: 0 },
|
|
523
|
+
transition: { duration: 0.55, ease: GLIDE },
|
|
524
|
+
onAnimationComplete: () => setRipples((r) => r.filter((k) => k !== key))
|
|
525
|
+
},
|
|
526
|
+
key
|
|
527
|
+
)) }),
|
|
528
|
+
/* @__PURE__ */ jsx3("span", { className: "absolute inset-0 grid place-items-center rounded-full", children: /* @__PURE__ */ jsx3("span", { ref: well, className: "flex", style: { opacity: 0 }, children: /* @__PURE__ */ jsx3(motion3.span, { whileTap: { scale: 0.85 }, className: "flex", children: /* @__PURE__ */ jsx3(Icon, { className: "size-5", strokeWidth: 2.25 }) }) }) })
|
|
529
|
+
]
|
|
530
|
+
}
|
|
531
|
+
),
|
|
532
|
+
/* @__PURE__ */ jsx3("span", { className: "text-[12px] font-medium text-zinc-700 dark:text-zinc-300", children: action.label })
|
|
533
|
+
]
|
|
534
|
+
}
|
|
535
|
+
);
|
|
536
|
+
}
|
|
537
|
+
var WalletCard = React.forwardRef(function WalletCard2({
|
|
538
|
+
balance = 3840.52,
|
|
539
|
+
currencies = DEFAULT_CURRENCIES,
|
|
540
|
+
actions = DEFAULT_ACTIONS,
|
|
541
|
+
moreActions = DEFAULT_MORE,
|
|
542
|
+
color = "#2a2e3c",
|
|
543
|
+
duration = 1.4,
|
|
544
|
+
className
|
|
545
|
+
}, forwardedRef) {
|
|
546
|
+
const root = React.useRef(null);
|
|
547
|
+
React.useImperativeHandle(forwardedRef, () => root.current);
|
|
548
|
+
const reduceMotion = !!useReducedMotion3();
|
|
549
|
+
const uid = React.useId();
|
|
550
|
+
const [code, setCode] = React.useState(currencies[0]?.code ?? "USD");
|
|
551
|
+
const [listOpen, setListOpen] = React.useState(false);
|
|
552
|
+
const [hoverCode, setHoverCode] = React.useState(null);
|
|
553
|
+
const [more, setMore] = React.useState(false);
|
|
554
|
+
const [moreSettled, setMoreSettled] = React.useState(false);
|
|
555
|
+
const pillRef = React.useRef(null);
|
|
556
|
+
const currency = currencies.find((c) => c.code === code) ?? currencies[0];
|
|
557
|
+
const format = React.useMemo(
|
|
558
|
+
() => new Intl.NumberFormat(currency.locale ?? "en-US", {
|
|
559
|
+
style: "currency",
|
|
560
|
+
currency: currency.code,
|
|
561
|
+
currencyDisplay: "narrowSymbol",
|
|
562
|
+
...currency.digits !== void 0 ? { minimumFractionDigits: currency.digits, maximumFractionDigits: currency.digits } : {}
|
|
563
|
+
}),
|
|
564
|
+
[currency]
|
|
565
|
+
);
|
|
566
|
+
const shownDigits = format.resolvedOptions().maximumFractionDigits ?? 2;
|
|
567
|
+
const target = Math.round(balance * currency.rate * 10 ** shownDigits) / 10 ** shownDigits;
|
|
568
|
+
const inView = useInView(root, { once: true, amount: 0.4 });
|
|
569
|
+
const amount = useMotionValue(0);
|
|
570
|
+
React.useEffect(() => {
|
|
571
|
+
if (!inView) return;
|
|
572
|
+
if (reduceMotion) {
|
|
573
|
+
amount.set(target);
|
|
574
|
+
return;
|
|
575
|
+
}
|
|
576
|
+
const controls = animate(amount, target, { duration, ease: FILL });
|
|
577
|
+
return () => controls.stop();
|
|
578
|
+
}, [inView, target, duration, reduceMotion, amount]);
|
|
579
|
+
React.useEffect(() => {
|
|
580
|
+
if (!listOpen) return;
|
|
581
|
+
const onDown = (e) => {
|
|
582
|
+
if (!root.current?.contains(e.target)) setListOpen(false);
|
|
583
|
+
};
|
|
584
|
+
document.addEventListener("pointerdown", onDown);
|
|
585
|
+
return () => document.removeEventListener("pointerdown", onDown);
|
|
586
|
+
}, [listOpen]);
|
|
587
|
+
const pick = (next) => {
|
|
588
|
+
setCode(next);
|
|
589
|
+
setListOpen(false);
|
|
590
|
+
pillRef.current?.focus();
|
|
591
|
+
};
|
|
592
|
+
return /* @__PURE__ */ jsxs3(
|
|
593
|
+
"div",
|
|
594
|
+
{
|
|
595
|
+
ref: root,
|
|
596
|
+
className: cn(
|
|
597
|
+
"w-[384px] max-w-full rounded-3xl bg-white p-5 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",
|
|
598
|
+
className
|
|
599
|
+
),
|
|
600
|
+
children: [
|
|
601
|
+
/* @__PURE__ */ jsxs3("header", { className: "flex items-start justify-between gap-4 px-1", children: [
|
|
602
|
+
/* @__PURE__ */ jsxs3("div", { className: "min-w-0", children: [
|
|
603
|
+
/* @__PURE__ */ jsx3(
|
|
604
|
+
motion3.p,
|
|
605
|
+
{
|
|
606
|
+
initial: { opacity: 0, y: 4 },
|
|
607
|
+
animate: inView ? { opacity: 1, y: 0 } : void 0,
|
|
608
|
+
transition: { duration: 0.4, ease: GLIDE },
|
|
609
|
+
className: "text-[12px] text-zinc-500 dark:text-zinc-400",
|
|
610
|
+
children: "Total balance"
|
|
611
|
+
}
|
|
612
|
+
),
|
|
613
|
+
/* @__PURE__ */ jsx3("p", { className: "mt-1.5 text-[32px] font-medium leading-none tracking-tight", children: /* @__PURE__ */ jsx3(Odometer, { amount, format, label: format.format(target) }) })
|
|
614
|
+
] }),
|
|
615
|
+
/* @__PURE__ */ jsxs3(
|
|
616
|
+
motion3.div,
|
|
617
|
+
{
|
|
618
|
+
className: "relative shrink-0",
|
|
619
|
+
initial: { opacity: 0, y: -4 },
|
|
620
|
+
animate: inView ? { opacity: 1, y: 0 } : void 0,
|
|
621
|
+
transition: { duration: 0.4, ease: GLIDE, delay: 0.1 },
|
|
622
|
+
children: [
|
|
623
|
+
/* @__PURE__ */ jsxs3(
|
|
624
|
+
motion3.button,
|
|
625
|
+
{
|
|
626
|
+
ref: pillRef,
|
|
627
|
+
type: "button",
|
|
628
|
+
"aria-haspopup": "listbox",
|
|
629
|
+
"aria-expanded": listOpen,
|
|
630
|
+
"aria-label": `Currency: ${currency.name}`,
|
|
631
|
+
onClick: () => setListOpen((o) => !o),
|
|
632
|
+
whileTap: { scale: 0.96 },
|
|
633
|
+
className: "inline-flex cursor-pointer items-center gap-2 rounded-full bg-[#242423]/6 py-1.5 pl-1.5 pr-3 text-sm font-medium 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",
|
|
634
|
+
children: [
|
|
635
|
+
/* @__PURE__ */ jsx3("span", { className: "grid size-6 place-items-center rounded-full bg-white text-sm leading-none shadow-sm dark:bg-zinc-800", children: /* @__PURE__ */ jsx3(AnimatePresence, { initial: false, mode: "popLayout", children: /* @__PURE__ */ jsx3(
|
|
636
|
+
motion3.span,
|
|
637
|
+
{
|
|
638
|
+
initial: { opacity: 0, scale: 0.5, rotate: -30 },
|
|
639
|
+
animate: { opacity: 1, scale: 1, rotate: 0 },
|
|
640
|
+
exit: { opacity: 0, scale: 0.5, rotate: 30 },
|
|
641
|
+
transition: { duration: 0.25, ease: GLIDE },
|
|
642
|
+
children: currency.flag
|
|
643
|
+
},
|
|
644
|
+
currency.code
|
|
645
|
+
) }) }),
|
|
646
|
+
currency.code,
|
|
647
|
+
/* @__PURE__ */ jsx3(
|
|
648
|
+
motion3.span,
|
|
649
|
+
{
|
|
650
|
+
animate: { rotate: listOpen ? 180 : 0 },
|
|
651
|
+
transition: { duration: 0.3, ease: GLIDE },
|
|
652
|
+
className: "flex",
|
|
653
|
+
children: /* @__PURE__ */ jsx3(ChevronDownIcon, { className: "size-4", strokeWidth: 2.25 })
|
|
654
|
+
}
|
|
655
|
+
)
|
|
656
|
+
]
|
|
657
|
+
}
|
|
658
|
+
),
|
|
659
|
+
/* @__PURE__ */ jsx3(AnimatePresence, { children: listOpen && /* @__PURE__ */ jsx3(
|
|
660
|
+
motion3.ul,
|
|
661
|
+
{
|
|
662
|
+
role: "listbox",
|
|
663
|
+
"aria-label": "Currency",
|
|
664
|
+
initial: "hidden",
|
|
665
|
+
animate: "shown",
|
|
666
|
+
exit: { opacity: 0, scale: 0.96, y: -4, transition: { duration: 0.15, ease: GLIDE } },
|
|
667
|
+
variants: LIST,
|
|
668
|
+
style: { transformOrigin: "top right" },
|
|
669
|
+
onPointerLeave: () => setHoverCode(null),
|
|
670
|
+
onKeyDown: (e) => {
|
|
671
|
+
const i = currencies.findIndex((c) => c.code === (hoverCode ?? code));
|
|
672
|
+
if (e.key === "ArrowDown" || e.key === "ArrowUp") {
|
|
673
|
+
e.preventDefault();
|
|
674
|
+
const next = currencies[(i + (e.key === "ArrowDown" ? 1 : -1) + currencies.length) % currencies.length];
|
|
675
|
+
setHoverCode(next.code);
|
|
676
|
+
e.currentTarget.querySelector(`[data-code="${next.code}"]`)?.focus();
|
|
677
|
+
}
|
|
678
|
+
if (e.key === "Escape") e.preventDefault(), setListOpen(false), pillRef.current?.focus();
|
|
679
|
+
},
|
|
680
|
+
className: "absolute right-0 top-full z-20 mt-2 w-56 rounded-2xl bg-white p-1.5 shadow-[0_1px_2px_rgba(0,0,0,0.05),0_16px_40px_-12px_rgba(0,0,0,0.22)] ring-1 ring-black/5 dark:bg-zinc-900 dark:ring-white/10",
|
|
681
|
+
children: currencies.map((c) => /* @__PURE__ */ jsx3(motion3.li, { variants: ROW, children: /* @__PURE__ */ jsxs3(
|
|
682
|
+
"button",
|
|
683
|
+
{
|
|
684
|
+
type: "button",
|
|
685
|
+
role: "option",
|
|
686
|
+
"aria-selected": c.code === code,
|
|
687
|
+
"data-code": c.code,
|
|
688
|
+
onPointerEnter: () => setHoverCode(c.code),
|
|
689
|
+
onFocus: () => setHoverCode(c.code),
|
|
690
|
+
onClick: () => pick(c.code),
|
|
691
|
+
className: "relative flex w-full cursor-pointer items-center gap-2.5 rounded-xl px-2.5 py-2 text-left text-sm outline-none",
|
|
692
|
+
children: [
|
|
693
|
+
hoverCode === c.code && /* @__PURE__ */ jsx3(
|
|
694
|
+
motion3.span,
|
|
695
|
+
{
|
|
696
|
+
layoutId: `${uid}-hl`,
|
|
697
|
+
transition: { duration: 0.25, ease: GLIDE },
|
|
698
|
+
className: "absolute inset-0 rounded-xl bg-[#242423]/6 dark:bg-white/8"
|
|
699
|
+
}
|
|
700
|
+
),
|
|
701
|
+
/* @__PURE__ */ jsx3("span", { className: "relative text-base leading-none", children: c.flag }),
|
|
702
|
+
/* @__PURE__ */ jsx3("span", { className: "relative font-medium", children: c.code }),
|
|
703
|
+
/* @__PURE__ */ jsx3("span", { className: "relative flex-1 truncate text-zinc-500 dark:text-zinc-400", children: c.name }),
|
|
704
|
+
c.code === code && /* @__PURE__ */ jsx3("span", { className: "relative size-1.5 rounded-full bg-zinc-900 dark:bg-zinc-100" })
|
|
705
|
+
]
|
|
706
|
+
}
|
|
707
|
+
) }, c.code))
|
|
708
|
+
}
|
|
709
|
+
) })
|
|
710
|
+
]
|
|
711
|
+
}
|
|
712
|
+
)
|
|
713
|
+
] }),
|
|
714
|
+
/* @__PURE__ */ jsxs3("div", { className: "mt-6 rounded-[22px] bg-[#242423]/[0.035] px-3 pb-2 pt-4 dark:bg-white/5", children: [
|
|
715
|
+
/* @__PURE__ */ jsx3(
|
|
716
|
+
motion3.div,
|
|
717
|
+
{
|
|
718
|
+
className: "grid grid-cols-4 gap-1",
|
|
719
|
+
initial: "hidden",
|
|
720
|
+
animate: inView ? "shown" : "hidden",
|
|
721
|
+
variants: { shown: { transition: { staggerChildren: 0.06, delayChildren: 0.15 } } },
|
|
722
|
+
children: actions.map((action, i) => /* @__PURE__ */ jsx3(
|
|
723
|
+
motion3.div,
|
|
724
|
+
{
|
|
725
|
+
variants: { hidden: { opacity: 0, y: 10, scale: 0.9 }, shown: { opacity: 1, y: 0, scale: 1 } },
|
|
726
|
+
transition: { type: "spring", stiffness: 420, damping: 28 },
|
|
727
|
+
children: /* @__PURE__ */ jsx3(ActionButton, { action, color, index: i, appear: inView ? 0.28 + i * 0.06 : null })
|
|
728
|
+
},
|
|
729
|
+
action.label
|
|
730
|
+
))
|
|
731
|
+
}
|
|
732
|
+
),
|
|
733
|
+
/* @__PURE__ */ jsx3(AnimatePresence, { initial: false, children: more && /* @__PURE__ */ jsx3(
|
|
734
|
+
motion3.div,
|
|
735
|
+
{
|
|
736
|
+
initial: { height: 0, opacity: 0 },
|
|
737
|
+
animate: { height: "auto", opacity: 1 },
|
|
738
|
+
exit: { height: 0, opacity: 0 },
|
|
739
|
+
transition: { duration: 0.35, ease: GLIDE },
|
|
740
|
+
onAnimationStart: () => setMoreSettled(false),
|
|
741
|
+
onAnimationComplete: () => setMoreSettled(more),
|
|
742
|
+
style: { overflow: moreSettled ? "visible" : "hidden" },
|
|
743
|
+
children: /* @__PURE__ */ jsx3(
|
|
744
|
+
motion3.div,
|
|
745
|
+
{
|
|
746
|
+
className: "grid grid-cols-4 gap-1 pt-3",
|
|
747
|
+
initial: "hidden",
|
|
748
|
+
animate: "shown",
|
|
749
|
+
variants: { shown: { transition: { staggerChildren: 0.05, delayChildren: 0.08 } } },
|
|
750
|
+
children: moreActions.map((action, i) => /* @__PURE__ */ jsx3(
|
|
751
|
+
motion3.div,
|
|
752
|
+
{
|
|
753
|
+
variants: { hidden: { opacity: 0, y: 8 }, shown: { opacity: 1, y: 0 } },
|
|
754
|
+
transition: { duration: 0.3, ease: GLIDE },
|
|
755
|
+
children: /* @__PURE__ */ jsx3(ActionButton, { action, color, index: i, appear: inView ? 0.28 + i * 0.06 : null })
|
|
756
|
+
},
|
|
757
|
+
action.label
|
|
758
|
+
))
|
|
759
|
+
}
|
|
760
|
+
)
|
|
761
|
+
},
|
|
762
|
+
"more"
|
|
763
|
+
) }),
|
|
764
|
+
moreActions.length > 0 && /* @__PURE__ */ jsxs3(Fragment, { children: [
|
|
765
|
+
/* @__PURE__ */ jsx3("div", { className: "-mx-3 mt-3 h-px bg-[#242423]/8 dark:bg-white/10" }),
|
|
766
|
+
/* @__PURE__ */ jsxs3(
|
|
767
|
+
"button",
|
|
768
|
+
{
|
|
769
|
+
type: "button",
|
|
770
|
+
"aria-expanded": more,
|
|
771
|
+
onClick: () => setMore((m) => !m),
|
|
772
|
+
className: "mt-1 flex w-full cursor-pointer items-center justify-center gap-1 rounded-xl py-2 text-[12px] font-medium text-zinc-700 transition-colors hover:text-zinc-900 outline-none focus-visible:ring-2 focus-visible:ring-zinc-400 dark:text-zinc-300 dark:hover:text-zinc-100",
|
|
773
|
+
children: [
|
|
774
|
+
/* @__PURE__ */ jsx3(AnimatePresence, { initial: false, mode: "popLayout", children: /* @__PURE__ */ jsx3(
|
|
775
|
+
motion3.span,
|
|
776
|
+
{
|
|
777
|
+
initial: { opacity: 0, y: 4 },
|
|
778
|
+
animate: { opacity: 1, y: 0 },
|
|
779
|
+
exit: { opacity: 0, y: -4 },
|
|
780
|
+
transition: { duration: 0.2, ease: GLIDE },
|
|
781
|
+
children: more ? "Fewer features" : "More features"
|
|
782
|
+
},
|
|
783
|
+
more ? "less" : "more"
|
|
784
|
+
) }),
|
|
785
|
+
/* @__PURE__ */ jsx3(
|
|
786
|
+
motion3.span,
|
|
787
|
+
{
|
|
788
|
+
animate: { rotate: more ? 180 : 0 },
|
|
789
|
+
transition: { duration: 0.3, ease: GLIDE },
|
|
790
|
+
className: "flex",
|
|
791
|
+
children: /* @__PURE__ */ jsx3(ChevronDownIcon, { className: "size-3.5", strokeWidth: 2.25 })
|
|
792
|
+
}
|
|
793
|
+
)
|
|
794
|
+
]
|
|
795
|
+
}
|
|
796
|
+
)
|
|
797
|
+
] })
|
|
798
|
+
] })
|
|
799
|
+
]
|
|
800
|
+
}
|
|
801
|
+
);
|
|
802
|
+
});
|
|
803
|
+
|
|
804
|
+
export {
|
|
805
|
+
WalletCard
|
|
806
|
+
};
|