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,702 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
SettingsIcon
|
|
4
|
+
} from "./chunk-NY7M42KC.js";
|
|
5
|
+
import {
|
|
6
|
+
LogoutIcon
|
|
7
|
+
} from "./chunk-75DEIDBX.js";
|
|
8
|
+
import {
|
|
9
|
+
SparklesIcon
|
|
10
|
+
} from "./chunk-YGONLKWH.js";
|
|
11
|
+
import {
|
|
12
|
+
UserIcon
|
|
13
|
+
} from "./chunk-BHUNLG6S.js";
|
|
14
|
+
import {
|
|
15
|
+
ChevronDownIcon
|
|
16
|
+
} from "./chunk-NIQFSLPC.js";
|
|
17
|
+
import {
|
|
18
|
+
PlusIcon
|
|
19
|
+
} from "./chunk-HK34LPY6.js";
|
|
20
|
+
import {
|
|
21
|
+
ZapIcon
|
|
22
|
+
} from "./chunk-6GRDT3OE.js";
|
|
23
|
+
import {
|
|
24
|
+
CheckIcon
|
|
25
|
+
} from "./chunk-JHT6RCGY.js";
|
|
26
|
+
import {
|
|
27
|
+
cn
|
|
28
|
+
} from "./chunk-2TQSHVXA.js";
|
|
29
|
+
|
|
30
|
+
// src/components/account-menu/account-menu.tsx
|
|
31
|
+
import * as React from "react";
|
|
32
|
+
import {
|
|
33
|
+
AnimatePresence,
|
|
34
|
+
LayoutGroup,
|
|
35
|
+
motion,
|
|
36
|
+
useReducedMotion
|
|
37
|
+
} from "motion/react";
|
|
38
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
39
|
+
var STATUS = {
|
|
40
|
+
online: { label: "Online", line: "Available", color: "#269a5a" },
|
|
41
|
+
focus: { label: "Focus", line: "Notifications paused", color: "#5b5bff" },
|
|
42
|
+
away: { label: "Away", line: "Back soon", color: "#e8a317" },
|
|
43
|
+
hidden: { label: "Hidden", line: "Appears offline", color: "#a1a19b" }
|
|
44
|
+
};
|
|
45
|
+
var ORDER = ["online", "focus", "away", "hidden"];
|
|
46
|
+
var DEFAULT_WORKSPACES = [
|
|
47
|
+
{
|
|
48
|
+
id: "lumen",
|
|
49
|
+
name: "Lumen",
|
|
50
|
+
plan: "Pro plan, 12 members",
|
|
51
|
+
color: "#242423"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
id: "northwind",
|
|
55
|
+
name: "Northwind",
|
|
56
|
+
plan: "Free plan, 3 members",
|
|
57
|
+
color: "#8a8a85"
|
|
58
|
+
}
|
|
59
|
+
];
|
|
60
|
+
var GLIDE = [0.22, 1, 0.36, 1];
|
|
61
|
+
var POP = { type: "spring", stiffness: 520, damping: 30 };
|
|
62
|
+
var MORPH = { type: "spring", stiffness: 340, damping: 32 };
|
|
63
|
+
var PILL = { type: "spring", stiffness: 500, damping: 38 };
|
|
64
|
+
var CARD = {
|
|
65
|
+
hidden: {},
|
|
66
|
+
shown: { transition: { staggerChildren: 0.045, delayChildren: 0.12 } }
|
|
67
|
+
};
|
|
68
|
+
var ITEM = {
|
|
69
|
+
hidden: { opacity: 0, y: 10, filter: "blur(4px)" },
|
|
70
|
+
shown: {
|
|
71
|
+
opacity: 1,
|
|
72
|
+
y: 0,
|
|
73
|
+
filter: "blur(0px)",
|
|
74
|
+
transition: { duration: 0.42, ease: GLIDE }
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
function Roll({
|
|
78
|
+
value,
|
|
79
|
+
still,
|
|
80
|
+
className
|
|
81
|
+
}) {
|
|
82
|
+
return /* @__PURE__ */ jsx("span", { className: cn("relative inline-grid overflow-hidden", className), children: /* @__PURE__ */ jsx(AnimatePresence, { mode: "popLayout", initial: false, children: /* @__PURE__ */ jsx(
|
|
83
|
+
motion.span,
|
|
84
|
+
{
|
|
85
|
+
className: "truncate",
|
|
86
|
+
initial: still ? { opacity: 0 } : { opacity: 0, y: "90%", filter: "blur(3px)" },
|
|
87
|
+
animate: { opacity: 1, y: 0, filter: "blur(0px)" },
|
|
88
|
+
exit: still ? { opacity: 0 } : { opacity: 0, y: "-90%", filter: "blur(3px)" },
|
|
89
|
+
transition: { duration: 0.3, ease: GLIDE },
|
|
90
|
+
children: value
|
|
91
|
+
},
|
|
92
|
+
value
|
|
93
|
+
) }) });
|
|
94
|
+
}
|
|
95
|
+
function Avatar({
|
|
96
|
+
src,
|
|
97
|
+
status,
|
|
98
|
+
size,
|
|
99
|
+
layoutId,
|
|
100
|
+
still
|
|
101
|
+
}) {
|
|
102
|
+
const color = STATUS[status].color;
|
|
103
|
+
const dot = Math.round(size * 0.3);
|
|
104
|
+
return /* @__PURE__ */ jsxs(
|
|
105
|
+
motion.span,
|
|
106
|
+
{
|
|
107
|
+
layoutId,
|
|
108
|
+
transition: still ? { duration: 0 } : MORPH,
|
|
109
|
+
className: "relative block shrink-0",
|
|
110
|
+
style: { width: size, height: size },
|
|
111
|
+
children: [
|
|
112
|
+
/* @__PURE__ */ jsx(
|
|
113
|
+
"img",
|
|
114
|
+
{
|
|
115
|
+
src,
|
|
116
|
+
alt: "",
|
|
117
|
+
draggable: false,
|
|
118
|
+
className: "size-full rounded-full object-cover"
|
|
119
|
+
}
|
|
120
|
+
),
|
|
121
|
+
/* @__PURE__ */ jsxs(
|
|
122
|
+
"span",
|
|
123
|
+
{
|
|
124
|
+
className: "absolute -bottom-px -right-px grid place-items-center",
|
|
125
|
+
style: { width: dot, height: dot },
|
|
126
|
+
children: [
|
|
127
|
+
/* @__PURE__ */ jsx(AnimatePresence, { initial: false, children: !still && /* @__PURE__ */ jsx(
|
|
128
|
+
motion.span,
|
|
129
|
+
{
|
|
130
|
+
"aria-hidden": true,
|
|
131
|
+
initial: { scale: 1, opacity: 0.7 },
|
|
132
|
+
animate: { scale: 2.6, opacity: 0 },
|
|
133
|
+
transition: { duration: 0.7, ease: GLIDE },
|
|
134
|
+
className: "absolute inset-0 rounded-full",
|
|
135
|
+
style: { backgroundColor: color }
|
|
136
|
+
},
|
|
137
|
+
status
|
|
138
|
+
) }),
|
|
139
|
+
/* @__PURE__ */ jsx(
|
|
140
|
+
motion.span,
|
|
141
|
+
{
|
|
142
|
+
initial: still ? false : { scale: 0.4 },
|
|
143
|
+
animate: { scale: 1, backgroundColor: color },
|
|
144
|
+
transition: POP,
|
|
145
|
+
className: "relative size-full rounded-full ring-2 ring-white"
|
|
146
|
+
},
|
|
147
|
+
`dot-${status}`
|
|
148
|
+
)
|
|
149
|
+
]
|
|
150
|
+
}
|
|
151
|
+
)
|
|
152
|
+
]
|
|
153
|
+
}
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
var AccountMenu = React.forwardRef(
|
|
157
|
+
function AccountMenu2({
|
|
158
|
+
name = "Jordan Lee",
|
|
159
|
+
handle = "@jordan",
|
|
160
|
+
avatar = "https://images.unsplash.com/photo-1500648767791-00dcc994a43e?w=144&h=144&fit=crop&crop=faces",
|
|
161
|
+
defaultOpen = false,
|
|
162
|
+
defaultStatus = "online",
|
|
163
|
+
onStatusChange,
|
|
164
|
+
workspaces = DEFAULT_WORKSPACES,
|
|
165
|
+
defaultWorkspace,
|
|
166
|
+
onWorkspaceChange,
|
|
167
|
+
storage = [6.4, 10],
|
|
168
|
+
onUpgrade,
|
|
169
|
+
onProfile,
|
|
170
|
+
onSettings,
|
|
171
|
+
onShortcuts,
|
|
172
|
+
onNewWorkspace,
|
|
173
|
+
onSignOut,
|
|
174
|
+
className
|
|
175
|
+
}, ref) {
|
|
176
|
+
const still = !!useReducedMotion();
|
|
177
|
+
const id = React.useId();
|
|
178
|
+
const root = React.useRef(null);
|
|
179
|
+
React.useImperativeHandle(ref, () => root.current);
|
|
180
|
+
const pill = React.useRef(null);
|
|
181
|
+
const card = React.useRef(null);
|
|
182
|
+
const [open, setOpen] = React.useState(defaultOpen);
|
|
183
|
+
const [status, setStatus] = React.useState(defaultStatus);
|
|
184
|
+
const [space, setSpace] = React.useState(
|
|
185
|
+
defaultWorkspace ?? workspaces[0]?.id ?? ""
|
|
186
|
+
);
|
|
187
|
+
const [hover, setHover] = React.useState(null);
|
|
188
|
+
const [leaving, setLeaving] = React.useState(null);
|
|
189
|
+
const byKeyboard = React.useRef(false);
|
|
190
|
+
const current = workspaces.find((w) => w.id === space) ?? workspaces[0];
|
|
191
|
+
const close = React.useCallback(() => {
|
|
192
|
+
setOpen(false);
|
|
193
|
+
setHover(null);
|
|
194
|
+
setLeaving(null);
|
|
195
|
+
requestAnimationFrame(() => pill.current?.focus({ preventScroll: true }));
|
|
196
|
+
}, []);
|
|
197
|
+
React.useEffect(() => {
|
|
198
|
+
if (!open || !byKeyboard.current) return;
|
|
199
|
+
byKeyboard.current = false;
|
|
200
|
+
const t = window.setTimeout(
|
|
201
|
+
() => card.current?.querySelector("[role=radio][aria-checked=true]")?.focus(),
|
|
202
|
+
still ? 0 : 260
|
|
203
|
+
);
|
|
204
|
+
return () => window.clearTimeout(t);
|
|
205
|
+
}, [open, still]);
|
|
206
|
+
React.useEffect(() => {
|
|
207
|
+
if (leaving !== "ask") return;
|
|
208
|
+
const t = window.setTimeout(() => setLeaving(null), 2600);
|
|
209
|
+
return () => window.clearTimeout(t);
|
|
210
|
+
}, [leaving]);
|
|
211
|
+
const signOut = () => {
|
|
212
|
+
if (leaving === null) return setLeaving("ask");
|
|
213
|
+
if (leaving === "done") return;
|
|
214
|
+
setLeaving("done");
|
|
215
|
+
onSignOut?.();
|
|
216
|
+
window.setTimeout(close, still ? 400 : 1100);
|
|
217
|
+
};
|
|
218
|
+
const onKey = (e) => {
|
|
219
|
+
if (e.key === "Escape" && open) {
|
|
220
|
+
e.stopPropagation();
|
|
221
|
+
close();
|
|
222
|
+
return;
|
|
223
|
+
}
|
|
224
|
+
if (e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
|
|
225
|
+
const items = Array.from(
|
|
226
|
+
card.current?.querySelectorAll("[data-item]") ?? []
|
|
227
|
+
);
|
|
228
|
+
if (!items.length) return;
|
|
229
|
+
e.preventDefault();
|
|
230
|
+
const at = items.indexOf(document.activeElement);
|
|
231
|
+
const next = e.key === "ArrowDown" ? (at + 1) % items.length : (at - 1 + items.length) % items.length;
|
|
232
|
+
items[at < 0 ? 0 : next]?.focus();
|
|
233
|
+
};
|
|
234
|
+
const glide = (key) => hover === key && /* @__PURE__ */ jsx(
|
|
235
|
+
motion.span,
|
|
236
|
+
{
|
|
237
|
+
layoutId: `${id}-glide`,
|
|
238
|
+
transition: still ? { duration: 0 } : PILL,
|
|
239
|
+
className: "absolute inset-0 rounded-2xl bg-[#242423]/[0.05]"
|
|
240
|
+
}
|
|
241
|
+
);
|
|
242
|
+
const tiles = [
|
|
243
|
+
{ key: "profile", label: "Profile", Icon: UserIcon, on: onProfile },
|
|
244
|
+
{
|
|
245
|
+
key: "settings",
|
|
246
|
+
label: "Settings",
|
|
247
|
+
Icon: SettingsIcon,
|
|
248
|
+
on: onSettings
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
key: "shortcuts",
|
|
252
|
+
label: "Shortcuts",
|
|
253
|
+
Icon: ZapIcon,
|
|
254
|
+
on: onShortcuts,
|
|
255
|
+
kbd: "?"
|
|
256
|
+
}
|
|
257
|
+
];
|
|
258
|
+
const used = storage ? Math.min(1, storage[0] / storage[1]) : 0;
|
|
259
|
+
return /* @__PURE__ */ jsxs(
|
|
260
|
+
"div",
|
|
261
|
+
{
|
|
262
|
+
ref: root,
|
|
263
|
+
onKeyDown: onKey,
|
|
264
|
+
className: cn(
|
|
265
|
+
// It only takes the pill's room; the card drops over what is below, like a menu.
|
|
266
|
+
"relative h-12 w-[320px] max-w-full",
|
|
267
|
+
className
|
|
268
|
+
),
|
|
269
|
+
children: [
|
|
270
|
+
/* @__PURE__ */ jsx("div", { className: "absolute inset-x-0 top-0 z-30 flex justify-center", children: /* @__PURE__ */ jsx(LayoutGroup, { id, children: /* @__PURE__ */ jsx(
|
|
271
|
+
motion.div,
|
|
272
|
+
{
|
|
273
|
+
layout: true,
|
|
274
|
+
transition: still ? { duration: 0 } : MORPH,
|
|
275
|
+
style: { borderRadius: open ? 28 : 999 },
|
|
276
|
+
className: cn(
|
|
277
|
+
"overflow-hidden bg-white text-[#242423] shadow-[0_1px_2px_rgba(0,0,0,0.04),0_12px_32px_-16px_rgba(0,0,0,0.18)]",
|
|
278
|
+
open ? "w-full" : "w-auto"
|
|
279
|
+
),
|
|
280
|
+
children: /* @__PURE__ */ jsx(AnimatePresence, { mode: "popLayout", initial: false, children: !open ? (
|
|
281
|
+
/* The pill */
|
|
282
|
+
/* @__PURE__ */ jsxs(
|
|
283
|
+
motion.button,
|
|
284
|
+
{
|
|
285
|
+
ref: pill,
|
|
286
|
+
type: "button",
|
|
287
|
+
"aria-haspopup": "menu",
|
|
288
|
+
"aria-expanded": false,
|
|
289
|
+
onClick: (e) => {
|
|
290
|
+
byKeyboard.current = e.detail === 0;
|
|
291
|
+
setOpen(true);
|
|
292
|
+
},
|
|
293
|
+
initial: still ? { opacity: 0 } : { opacity: 0, filter: "blur(4px)" },
|
|
294
|
+
animate: { opacity: 1, filter: "blur(0px)" },
|
|
295
|
+
exit: { opacity: 0, transition: { duration: 0.12 } },
|
|
296
|
+
whileHover: still ? void 0 : { scale: 1.02 },
|
|
297
|
+
whileTap: still ? void 0 : { scale: 0.96 },
|
|
298
|
+
transition: { duration: 0.25 },
|
|
299
|
+
className: "group flex h-12 cursor-pointer items-center gap-2.5 rounded-full py-1.5 pl-1.5 pr-3.5 outline-none focus-visible:ring-2 focus-visible:ring-[#242423]/30",
|
|
300
|
+
children: [
|
|
301
|
+
/* @__PURE__ */ jsx(
|
|
302
|
+
Avatar,
|
|
303
|
+
{
|
|
304
|
+
src: avatar,
|
|
305
|
+
status,
|
|
306
|
+
size: 36,
|
|
307
|
+
layoutId: `${id}-avatar`,
|
|
308
|
+
still
|
|
309
|
+
}
|
|
310
|
+
),
|
|
311
|
+
/* @__PURE__ */ jsx(
|
|
312
|
+
motion.span,
|
|
313
|
+
{
|
|
314
|
+
layoutId: `${id}-name`,
|
|
315
|
+
transition: still ? { duration: 0 } : MORPH,
|
|
316
|
+
className: "text-[14px] font-semibold",
|
|
317
|
+
children: name
|
|
318
|
+
}
|
|
319
|
+
),
|
|
320
|
+
/* @__PURE__ */ jsx("span", { className: "grid text-[#242423]/45 transition-transform duration-300 group-hover:translate-y-px", children: /* @__PURE__ */ jsx(ChevronDownIcon, { className: "size-4", strokeWidth: 2.25 }) })
|
|
321
|
+
]
|
|
322
|
+
},
|
|
323
|
+
"pill"
|
|
324
|
+
)
|
|
325
|
+
) : (
|
|
326
|
+
/* The card */
|
|
327
|
+
/* @__PURE__ */ jsxs(
|
|
328
|
+
motion.div,
|
|
329
|
+
{
|
|
330
|
+
ref: card,
|
|
331
|
+
role: "menu",
|
|
332
|
+
"aria-label": `${name} account`,
|
|
333
|
+
variants: still ? void 0 : CARD,
|
|
334
|
+
initial: "hidden",
|
|
335
|
+
animate: "shown",
|
|
336
|
+
exit: {
|
|
337
|
+
opacity: 0,
|
|
338
|
+
filter: "blur(4px)",
|
|
339
|
+
transition: { duration: 0.15 }
|
|
340
|
+
},
|
|
341
|
+
onPointerLeave: () => setHover(null),
|
|
342
|
+
className: "w-[320px] max-w-full p-2",
|
|
343
|
+
children: [
|
|
344
|
+
/* @__PURE__ */ jsxs("div", { className: "rounded-[22px] bg-[#f1f1ef] p-3", children: [
|
|
345
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
346
|
+
/* @__PURE__ */ jsx(
|
|
347
|
+
Avatar,
|
|
348
|
+
{
|
|
349
|
+
src: avatar,
|
|
350
|
+
status,
|
|
351
|
+
size: 48,
|
|
352
|
+
layoutId: `${id}-avatar`,
|
|
353
|
+
still
|
|
354
|
+
}
|
|
355
|
+
),
|
|
356
|
+
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
357
|
+
/* @__PURE__ */ jsx(
|
|
358
|
+
motion.p,
|
|
359
|
+
{
|
|
360
|
+
layoutId: `${id}-name`,
|
|
361
|
+
transition: still ? { duration: 0 } : MORPH,
|
|
362
|
+
className: "w-fit truncate text-[16px] font-semibold leading-6",
|
|
363
|
+
children: name
|
|
364
|
+
}
|
|
365
|
+
),
|
|
366
|
+
/* @__PURE__ */ jsxs(
|
|
367
|
+
motion.p,
|
|
368
|
+
{
|
|
369
|
+
variants: ITEM,
|
|
370
|
+
className: "flex items-center gap-1.5 text-[12px] leading-4 text-[#242423]/55",
|
|
371
|
+
children: [
|
|
372
|
+
/* @__PURE__ */ jsx("span", { className: "truncate", children: handle }),
|
|
373
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": true, children: "\xB7" }),
|
|
374
|
+
/* @__PURE__ */ jsx(Roll, { value: STATUS[status].line, still })
|
|
375
|
+
]
|
|
376
|
+
}
|
|
377
|
+
)
|
|
378
|
+
] }),
|
|
379
|
+
/* @__PURE__ */ jsx(
|
|
380
|
+
motion.button,
|
|
381
|
+
{
|
|
382
|
+
variants: ITEM,
|
|
383
|
+
type: "button",
|
|
384
|
+
"aria-label": "Collapse menu",
|
|
385
|
+
onClick: close,
|
|
386
|
+
whileTap: still ? void 0 : { scale: 0.88 },
|
|
387
|
+
className: "group grid size-8 shrink-0 cursor-pointer place-items-center self-start rounded-full text-[#242423]/50 outline-none transition-colors hover:bg-white hover:text-[#242423] focus-visible:ring-2 focus-visible:ring-[#242423]/30",
|
|
388
|
+
children: /* @__PURE__ */ jsx("span", { className: "grid rotate-180", children: /* @__PURE__ */ jsx(
|
|
389
|
+
ChevronDownIcon,
|
|
390
|
+
{
|
|
391
|
+
className: "size-4",
|
|
392
|
+
strokeWidth: 2.25
|
|
393
|
+
}
|
|
394
|
+
) })
|
|
395
|
+
}
|
|
396
|
+
)
|
|
397
|
+
] }),
|
|
398
|
+
/* @__PURE__ */ jsx(
|
|
399
|
+
motion.div,
|
|
400
|
+
{
|
|
401
|
+
variants: ITEM,
|
|
402
|
+
role: "radiogroup",
|
|
403
|
+
"aria-label": "Status",
|
|
404
|
+
className: "mt-3 grid grid-cols-4 rounded-full bg-[#242423]/[0.05] p-0.5",
|
|
405
|
+
children: ORDER.map((s) => {
|
|
406
|
+
const on = status === s;
|
|
407
|
+
return /* @__PURE__ */ jsxs(
|
|
408
|
+
motion.button,
|
|
409
|
+
{
|
|
410
|
+
type: "button",
|
|
411
|
+
role: "radio",
|
|
412
|
+
"aria-checked": on,
|
|
413
|
+
"data-item": "",
|
|
414
|
+
onClick: () => {
|
|
415
|
+
setStatus(s);
|
|
416
|
+
onStatusChange?.(s);
|
|
417
|
+
},
|
|
418
|
+
whileTap: still ? void 0 : { scale: 0.92 },
|
|
419
|
+
className: cn(
|
|
420
|
+
"relative flex h-8 cursor-pointer items-center justify-center gap-1.5 rounded-full text-[12px] font-medium outline-none transition-colors focus-visible:ring-2 focus-visible:ring-[#242423]/30",
|
|
421
|
+
on ? "text-[#242423]" : "text-[#242423]/55 hover:text-[#242423]"
|
|
422
|
+
),
|
|
423
|
+
children: [
|
|
424
|
+
on && /* @__PURE__ */ jsx(
|
|
425
|
+
motion.span,
|
|
426
|
+
{
|
|
427
|
+
layoutId: `${id}-status`,
|
|
428
|
+
transition: still ? { duration: 0 } : PILL,
|
|
429
|
+
className: "absolute inset-0 rounded-full bg-white shadow-[0_1px_2px_rgba(0,0,0,0.08)]"
|
|
430
|
+
}
|
|
431
|
+
),
|
|
432
|
+
/* @__PURE__ */ jsx(
|
|
433
|
+
motion.span,
|
|
434
|
+
{
|
|
435
|
+
animate: { scale: on ? 1.25 : 1 },
|
|
436
|
+
transition: POP,
|
|
437
|
+
className: "relative size-1.5 rounded-full",
|
|
438
|
+
style: { backgroundColor: STATUS[s].color }
|
|
439
|
+
}
|
|
440
|
+
),
|
|
441
|
+
/* @__PURE__ */ jsx("span", { className: "relative", children: STATUS[s].label })
|
|
442
|
+
]
|
|
443
|
+
},
|
|
444
|
+
s
|
|
445
|
+
);
|
|
446
|
+
})
|
|
447
|
+
}
|
|
448
|
+
)
|
|
449
|
+
] }),
|
|
450
|
+
/* @__PURE__ */ jsx("div", { className: "mt-2 grid grid-cols-3 gap-2", children: tiles.map(({ key, label, Icon, on, kbd }) => /* @__PURE__ */ jsxs(
|
|
451
|
+
motion.button,
|
|
452
|
+
{
|
|
453
|
+
variants: ITEM,
|
|
454
|
+
type: "button",
|
|
455
|
+
role: "menuitem",
|
|
456
|
+
"data-item": "",
|
|
457
|
+
onClick: on,
|
|
458
|
+
whileHover: still ? void 0 : { y: -3 },
|
|
459
|
+
whileTap: still ? void 0 : { scale: 0.94 },
|
|
460
|
+
transition: POP,
|
|
461
|
+
className: "group relative flex h-[76px] cursor-pointer flex-col justify-between rounded-[18px] bg-[#242423]/[0.04] p-3 text-left outline-none transition-colors duration-200 hover:bg-[#242423]/[0.07] focus-visible:ring-2 focus-visible:ring-[#242423]/30",
|
|
462
|
+
children: [
|
|
463
|
+
/* @__PURE__ */ jsxs("span", { className: "flex items-start justify-between", children: [
|
|
464
|
+
/* @__PURE__ */ jsx(Icon, { className: "size-[18px] text-[#242423]/70 transition-colors group-hover:text-[#242423]" }),
|
|
465
|
+
kbd && /* @__PURE__ */ jsx("span", { className: "grid h-5 min-w-5 place-items-center rounded-md bg-white px-1 text-[12px] font-medium text-[#242423]/50 shadow-[0_1px_0_rgba(36,36,35,0.08)]", children: kbd })
|
|
466
|
+
] }),
|
|
467
|
+
/* @__PURE__ */ jsx("span", { className: "text-[12px] font-medium", children: label })
|
|
468
|
+
]
|
|
469
|
+
},
|
|
470
|
+
key
|
|
471
|
+
)) }),
|
|
472
|
+
/* @__PURE__ */ jsx(
|
|
473
|
+
motion.p,
|
|
474
|
+
{
|
|
475
|
+
variants: ITEM,
|
|
476
|
+
className: "px-3 pb-1 pt-3 text-[12px] font-medium text-[#242423]/45",
|
|
477
|
+
children: "Workspaces"
|
|
478
|
+
}
|
|
479
|
+
),
|
|
480
|
+
workspaces.map((w) => {
|
|
481
|
+
const on = w.id === space;
|
|
482
|
+
const key = `ws-${w.id}`;
|
|
483
|
+
return /* @__PURE__ */ jsxs(
|
|
484
|
+
motion.button,
|
|
485
|
+
{
|
|
486
|
+
variants: ITEM,
|
|
487
|
+
type: "button",
|
|
488
|
+
role: "menuitemradio",
|
|
489
|
+
"aria-checked": on,
|
|
490
|
+
"data-item": "",
|
|
491
|
+
onPointerEnter: () => setHover(key),
|
|
492
|
+
onFocus: () => setHover(key),
|
|
493
|
+
onClick: () => {
|
|
494
|
+
setSpace(w.id);
|
|
495
|
+
onWorkspaceChange?.(w.id);
|
|
496
|
+
},
|
|
497
|
+
whileTap: still ? void 0 : { scale: 0.98 },
|
|
498
|
+
className: "group relative flex h-12 w-full cursor-pointer items-center gap-3 rounded-2xl px-2 text-left outline-none focus-visible:ring-2 focus-visible:ring-[#242423]/30",
|
|
499
|
+
children: [
|
|
500
|
+
glide(key),
|
|
501
|
+
/* @__PURE__ */ jsx(
|
|
502
|
+
motion.span,
|
|
503
|
+
{
|
|
504
|
+
animate: {
|
|
505
|
+
rotate: hover === key && !still ? -6 : 0,
|
|
506
|
+
scale: hover === key && !still ? 1.06 : 1
|
|
507
|
+
},
|
|
508
|
+
transition: POP,
|
|
509
|
+
className: "relative grid size-8 shrink-0 place-items-center rounded-[10px] text-[14px] font-semibold text-white",
|
|
510
|
+
style: { backgroundColor: w.color ?? "#242423" },
|
|
511
|
+
children: w.name[0]
|
|
512
|
+
}
|
|
513
|
+
),
|
|
514
|
+
/* @__PURE__ */ jsxs("span", { className: "relative min-w-0 flex-1", children: [
|
|
515
|
+
/* @__PURE__ */ jsx("span", { className: "block truncate text-[14px] font-medium leading-5", children: w.name }),
|
|
516
|
+
/* @__PURE__ */ jsx("span", { className: "block truncate text-[12px] leading-4 text-[#242423]/50", children: w.plan })
|
|
517
|
+
] }),
|
|
518
|
+
/* @__PURE__ */ jsx("span", { className: "relative grid size-6 place-items-center", children: on && /* @__PURE__ */ jsx(
|
|
519
|
+
motion.span,
|
|
520
|
+
{
|
|
521
|
+
layoutId: `${id}-ws-check`,
|
|
522
|
+
transition: still ? { duration: 0 } : POP,
|
|
523
|
+
className: "grid size-6 place-items-center rounded-full bg-[#242423] text-white",
|
|
524
|
+
children: /* @__PURE__ */ jsx(
|
|
525
|
+
CheckIcon,
|
|
526
|
+
{
|
|
527
|
+
className: "size-3.5",
|
|
528
|
+
strokeWidth: 2.75,
|
|
529
|
+
active: true
|
|
530
|
+
}
|
|
531
|
+
)
|
|
532
|
+
}
|
|
533
|
+
) })
|
|
534
|
+
]
|
|
535
|
+
},
|
|
536
|
+
w.id
|
|
537
|
+
);
|
|
538
|
+
}),
|
|
539
|
+
/* @__PURE__ */ jsxs(
|
|
540
|
+
motion.button,
|
|
541
|
+
{
|
|
542
|
+
variants: ITEM,
|
|
543
|
+
type: "button",
|
|
544
|
+
role: "menuitem",
|
|
545
|
+
"data-item": "",
|
|
546
|
+
onPointerEnter: () => setHover("new"),
|
|
547
|
+
onFocus: () => setHover("new"),
|
|
548
|
+
onClick: onNewWorkspace,
|
|
549
|
+
whileTap: still ? void 0 : { scale: 0.98 },
|
|
550
|
+
className: "group relative flex h-11 w-full cursor-pointer items-center gap-3 rounded-2xl px-2 text-left text-[14px] font-medium text-[#242423]/70 outline-none hover:text-[#242423] focus-visible:ring-2 focus-visible:ring-[#242423]/30",
|
|
551
|
+
children: [
|
|
552
|
+
glide("new"),
|
|
553
|
+
/* @__PURE__ */ jsx("span", { className: "relative grid size-8 place-items-center rounded-[10px] border border-dashed border-[#242423]/25 transition-colors group-hover:border-[#242423]/50", children: /* @__PURE__ */ jsx(PlusIcon, { className: "size-4", strokeWidth: 2.25 }) }),
|
|
554
|
+
/* @__PURE__ */ jsx("span", { className: "relative", children: "New workspace" })
|
|
555
|
+
]
|
|
556
|
+
}
|
|
557
|
+
),
|
|
558
|
+
storage && /* @__PURE__ */ jsxs(
|
|
559
|
+
motion.div,
|
|
560
|
+
{
|
|
561
|
+
variants: ITEM,
|
|
562
|
+
className: "mx-1 mt-2 rounded-[18px] bg-[#242423]/[0.04] p-3",
|
|
563
|
+
children: [
|
|
564
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-baseline justify-between text-[12px]", children: [
|
|
565
|
+
/* @__PURE__ */ jsx("span", { className: "font-medium", children: "Storage" }),
|
|
566
|
+
/* @__PURE__ */ jsxs("span", { className: "tabular-nums text-[#242423]/55", children: [
|
|
567
|
+
storage[0],
|
|
568
|
+
" of ",
|
|
569
|
+
storage[1],
|
|
570
|
+
" GB"
|
|
571
|
+
] })
|
|
572
|
+
] }),
|
|
573
|
+
/* @__PURE__ */ jsx("div", { className: "relative mt-2 h-1.5 overflow-hidden rounded-full bg-[#242423]/[0.08]", children: /* @__PURE__ */ jsx(
|
|
574
|
+
motion.div,
|
|
575
|
+
{
|
|
576
|
+
initial: still ? false : { width: 0 },
|
|
577
|
+
animate: { width: `${used * 100}%` },
|
|
578
|
+
transition: still ? { duration: 0 } : {
|
|
579
|
+
type: "spring",
|
|
580
|
+
stiffness: 120,
|
|
581
|
+
damping: 20,
|
|
582
|
+
delay: 0.35
|
|
583
|
+
},
|
|
584
|
+
className: "relative h-full overflow-hidden rounded-full bg-[#242423]",
|
|
585
|
+
children: !still && /* @__PURE__ */ jsx(
|
|
586
|
+
motion.span,
|
|
587
|
+
{
|
|
588
|
+
"aria-hidden": true,
|
|
589
|
+
className: "absolute inset-y-0 w-8 bg-gradient-to-r from-transparent via-white/60 to-transparent",
|
|
590
|
+
initial: { x: "-150%" },
|
|
591
|
+
animate: { x: "600%" },
|
|
592
|
+
transition: {
|
|
593
|
+
duration: 1.4,
|
|
594
|
+
delay: 0.9,
|
|
595
|
+
ease: "easeInOut",
|
|
596
|
+
repeat: Infinity,
|
|
597
|
+
repeatDelay: 2.6
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
)
|
|
601
|
+
}
|
|
602
|
+
) }),
|
|
603
|
+
/* @__PURE__ */ jsxs(
|
|
604
|
+
"button",
|
|
605
|
+
{
|
|
606
|
+
type: "button",
|
|
607
|
+
"data-item": "",
|
|
608
|
+
onClick: onUpgrade,
|
|
609
|
+
className: "group mt-2.5 flex cursor-pointer items-center gap-1.5 rounded-full text-[12px] font-medium text-[#242423]/70 outline-none transition-colors hover:text-[#242423] focus-visible:ring-2 focus-visible:ring-[#242423]/30",
|
|
610
|
+
children: [
|
|
611
|
+
/* @__PURE__ */ jsx(SparklesIcon, { className: "size-3.5" }),
|
|
612
|
+
"Upgrade for 100 GB",
|
|
613
|
+
/* @__PURE__ */ jsx("span", { className: "transition-transform duration-300 group-hover:translate-x-0.5", children: "\u2192" })
|
|
614
|
+
]
|
|
615
|
+
}
|
|
616
|
+
)
|
|
617
|
+
]
|
|
618
|
+
}
|
|
619
|
+
),
|
|
620
|
+
/* @__PURE__ */ jsx(
|
|
621
|
+
motion.div,
|
|
622
|
+
{
|
|
623
|
+
variants: ITEM,
|
|
624
|
+
"aria-hidden": true,
|
|
625
|
+
className: "mx-1 my-2 h-px bg-[#242423]/[0.07]"
|
|
626
|
+
}
|
|
627
|
+
),
|
|
628
|
+
/* @__PURE__ */ jsxs(
|
|
629
|
+
motion.button,
|
|
630
|
+
{
|
|
631
|
+
variants: ITEM,
|
|
632
|
+
type: "button",
|
|
633
|
+
role: "menuitem",
|
|
634
|
+
"data-item": "",
|
|
635
|
+
onPointerEnter: () => setHover("out"),
|
|
636
|
+
onFocus: () => setHover("out"),
|
|
637
|
+
onClick: signOut,
|
|
638
|
+
whileTap: still ? void 0 : { scale: 0.98 },
|
|
639
|
+
className: cn(
|
|
640
|
+
"group relative flex h-11 w-full cursor-pointer items-center gap-3 overflow-hidden rounded-2xl px-3 text-left text-[14px] font-medium outline-none focus-visible:ring-2 focus-visible:ring-[#242423]/30",
|
|
641
|
+
leaving ? "text-[#d64545]" : "text-[#242423]"
|
|
642
|
+
),
|
|
643
|
+
children: [
|
|
644
|
+
!leaving && glide("out"),
|
|
645
|
+
/* @__PURE__ */ jsx(AnimatePresence, { children: leaving && /* @__PURE__ */ jsx(
|
|
646
|
+
motion.span,
|
|
647
|
+
{
|
|
648
|
+
"aria-hidden": true,
|
|
649
|
+
initial: {
|
|
650
|
+
scaleX: leaving === "done" ? 1 : 0,
|
|
651
|
+
opacity: 1
|
|
652
|
+
},
|
|
653
|
+
animate: { scaleX: 1, opacity: 1 },
|
|
654
|
+
exit: { opacity: 0 },
|
|
655
|
+
transition: leaving === "ask" && !still ? { duration: 2.6, ease: "linear" } : { duration: 0.2 },
|
|
656
|
+
style: { transformOrigin: "0% 50%" },
|
|
657
|
+
className: "absolute inset-0 rounded-2xl bg-[#d64545]/[0.09]"
|
|
658
|
+
},
|
|
659
|
+
"wash"
|
|
660
|
+
) }),
|
|
661
|
+
/* @__PURE__ */ jsx("span", { className: "relative grid", children: leaving === "done" ? /* @__PURE__ */ jsx(
|
|
662
|
+
CheckIcon,
|
|
663
|
+
{
|
|
664
|
+
className: "size-[18px]",
|
|
665
|
+
strokeWidth: 2.5,
|
|
666
|
+
active: true
|
|
667
|
+
}
|
|
668
|
+
) : /* @__PURE__ */ jsx(
|
|
669
|
+
LogoutIcon,
|
|
670
|
+
{
|
|
671
|
+
className: "size-[18px]",
|
|
672
|
+
active: hover === "out" || leaving === "ask"
|
|
673
|
+
}
|
|
674
|
+
) }),
|
|
675
|
+
/* @__PURE__ */ jsx(
|
|
676
|
+
Roll,
|
|
677
|
+
{
|
|
678
|
+
value: leaving === "done" ? "Signed out" : leaving === "ask" ? "Click again to log out" : "Log out",
|
|
679
|
+
still,
|
|
680
|
+
className: "relative"
|
|
681
|
+
}
|
|
682
|
+
)
|
|
683
|
+
]
|
|
684
|
+
}
|
|
685
|
+
)
|
|
686
|
+
]
|
|
687
|
+
},
|
|
688
|
+
"card"
|
|
689
|
+
)
|
|
690
|
+
) })
|
|
691
|
+
}
|
|
692
|
+
) }) }),
|
|
693
|
+
/* @__PURE__ */ jsx("span", { role: "status", "aria-live": "polite", className: "sr-only", children: leaving === "done" ? "Signed out." : `Status: ${STATUS[status].label}.` })
|
|
694
|
+
]
|
|
695
|
+
}
|
|
696
|
+
);
|
|
697
|
+
}
|
|
698
|
+
);
|
|
699
|
+
|
|
700
|
+
export {
|
|
701
|
+
AccountMenu
|
|
702
|
+
};
|