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,1382 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
LockKeyholeIcon
|
|
4
|
+
} from "./chunk-IGI6OLRX.js";
|
|
5
|
+
import {
|
|
6
|
+
LoaderCircleIcon
|
|
7
|
+
} from "./chunk-G3XH7YT2.js";
|
|
8
|
+
import {
|
|
9
|
+
BadgeAlertIcon
|
|
10
|
+
} from "./chunk-UD5OQ2T3.js";
|
|
11
|
+
import {
|
|
12
|
+
ArrowRightIcon
|
|
13
|
+
} from "./chunk-H7XKIWHA.js";
|
|
14
|
+
import {
|
|
15
|
+
CircleCheckIcon
|
|
16
|
+
} from "./chunk-YU6B7YRO.js";
|
|
17
|
+
import {
|
|
18
|
+
EyeIcon
|
|
19
|
+
} from "./chunk-BN4MA5UY.js";
|
|
20
|
+
import {
|
|
21
|
+
UserIcon
|
|
22
|
+
} from "./chunk-BHUNLG6S.js";
|
|
23
|
+
import {
|
|
24
|
+
cn
|
|
25
|
+
} from "./chunk-2TQSHVXA.js";
|
|
26
|
+
|
|
27
|
+
// src/components/auth-card/auth-card.tsx
|
|
28
|
+
import * as React from "react";
|
|
29
|
+
import {
|
|
30
|
+
AnimatePresence,
|
|
31
|
+
motion as motion4,
|
|
32
|
+
useAnimationControls,
|
|
33
|
+
useInView,
|
|
34
|
+
useReducedMotion as useReducedMotion4
|
|
35
|
+
} from "motion/react";
|
|
36
|
+
|
|
37
|
+
// src/icons/at-sign.tsx
|
|
38
|
+
import { motion, useAnimation, useReducedMotion } from "motion/react";
|
|
39
|
+
import { forwardRef, useCallback, useEffect, useImperativeHandle, useRef, useState } from "react";
|
|
40
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
41
|
+
var CIRCLE_VARIANTS = {
|
|
42
|
+
normal: {
|
|
43
|
+
opacity: 1,
|
|
44
|
+
pathLength: 1,
|
|
45
|
+
pathOffset: 0,
|
|
46
|
+
transition: {
|
|
47
|
+
duration: 0.4,
|
|
48
|
+
opacity: { duration: 0.1 }
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
animate: {
|
|
52
|
+
opacity: [0, 1],
|
|
53
|
+
pathLength: [0, 1],
|
|
54
|
+
pathOffset: [1, 0],
|
|
55
|
+
transition: {
|
|
56
|
+
duration: 0.3,
|
|
57
|
+
opacity: { duration: 0.1 }
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
var PATH_VARIANTS = {
|
|
62
|
+
normal: {
|
|
63
|
+
opacity: 1,
|
|
64
|
+
pathLength: 1,
|
|
65
|
+
transition: {
|
|
66
|
+
delay: 0.3,
|
|
67
|
+
duration: 0.3,
|
|
68
|
+
opacity: { duration: 0.1, delay: 0.3 }
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
animate: {
|
|
72
|
+
opacity: [0, 1],
|
|
73
|
+
pathLength: [0, 1],
|
|
74
|
+
transition: {
|
|
75
|
+
delay: 0.3,
|
|
76
|
+
duration: 0.3,
|
|
77
|
+
opacity: { duration: 0.1, delay: 0.3 }
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
var AtSignIcon = forwardRef(
|
|
82
|
+
({ onMouseEnter, onMouseLeave, className, size, active, style, strokeWidth, ...props }, ref) => {
|
|
83
|
+
const controls = useAnimation();
|
|
84
|
+
const isControlledRef = useRef(false);
|
|
85
|
+
useImperativeHandle(ref, () => {
|
|
86
|
+
isControlledRef.current = true;
|
|
87
|
+
return {
|
|
88
|
+
startAnimation: () => controls.start("animate"),
|
|
89
|
+
stopAnimation: () => controls.start("normal")
|
|
90
|
+
};
|
|
91
|
+
});
|
|
92
|
+
const handleMouseEnter = useCallback(
|
|
93
|
+
(e) => {
|
|
94
|
+
if (isControlledRef.current) {
|
|
95
|
+
onMouseEnter?.(e);
|
|
96
|
+
} else {
|
|
97
|
+
controls.start("animate");
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
[controls, onMouseEnter]
|
|
101
|
+
);
|
|
102
|
+
const handleMouseLeave = useCallback(
|
|
103
|
+
(e) => {
|
|
104
|
+
if (isControlledRef.current) {
|
|
105
|
+
onMouseLeave?.(e);
|
|
106
|
+
} else {
|
|
107
|
+
controls.start("normal");
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
[controls, onMouseLeave]
|
|
111
|
+
);
|
|
112
|
+
const wrap = useRef(null);
|
|
113
|
+
const reduced = useReducedMotion();
|
|
114
|
+
const [hosted, setHosted] = useState(false);
|
|
115
|
+
useEffect(() => {
|
|
116
|
+
const fake = {};
|
|
117
|
+
if (reduced) {
|
|
118
|
+
setHosted(true);
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
if (active !== void 0) {
|
|
122
|
+
setHosted(true);
|
|
123
|
+
(active ? handleMouseEnter : handleMouseLeave)(fake);
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
const host = wrap.current?.parentElement?.closest("button, a, [role=button], [role=menuitem], [role=tab], [role=switch], [role=radio], label");
|
|
127
|
+
setHosted(!!host);
|
|
128
|
+
if (!host) return;
|
|
129
|
+
const on = () => handleMouseEnter(fake);
|
|
130
|
+
const off = () => handleMouseLeave(fake);
|
|
131
|
+
host.addEventListener("pointerenter", on);
|
|
132
|
+
host.addEventListener("pointerleave", off);
|
|
133
|
+
return () => {
|
|
134
|
+
host.removeEventListener("pointerenter", on);
|
|
135
|
+
host.removeEventListener("pointerleave", off);
|
|
136
|
+
};
|
|
137
|
+
}, [active, reduced, handleMouseEnter, handleMouseLeave]);
|
|
138
|
+
return /* @__PURE__ */ jsx(
|
|
139
|
+
"span",
|
|
140
|
+
{
|
|
141
|
+
ref: wrap,
|
|
142
|
+
className: cn("inline-grid size-6 shrink-0 place-items-center align-middle [&>svg]:size-full", className),
|
|
143
|
+
style: size ? { width: size, height: size, ...style } : style,
|
|
144
|
+
onMouseEnter: hosted ? void 0 : handleMouseEnter,
|
|
145
|
+
onMouseLeave: hosted ? void 0 : handleMouseLeave,
|
|
146
|
+
...props,
|
|
147
|
+
children: /* @__PURE__ */ jsxs(
|
|
148
|
+
"svg",
|
|
149
|
+
{
|
|
150
|
+
fill: "none",
|
|
151
|
+
height: size,
|
|
152
|
+
stroke: "currentColor",
|
|
153
|
+
strokeLinecap: "round",
|
|
154
|
+
strokeLinejoin: "round",
|
|
155
|
+
strokeWidth: strokeWidth ?? 2,
|
|
156
|
+
viewBox: "0 0 24 24",
|
|
157
|
+
width: size,
|
|
158
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
159
|
+
children: [
|
|
160
|
+
/* @__PURE__ */ jsx(
|
|
161
|
+
motion.circle,
|
|
162
|
+
{
|
|
163
|
+
animate: controls,
|
|
164
|
+
cx: "12",
|
|
165
|
+
cy: "12",
|
|
166
|
+
r: "4",
|
|
167
|
+
variants: CIRCLE_VARIANTS
|
|
168
|
+
}
|
|
169
|
+
),
|
|
170
|
+
/* @__PURE__ */ jsx(
|
|
171
|
+
motion.path,
|
|
172
|
+
{
|
|
173
|
+
animate: controls,
|
|
174
|
+
d: "M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8",
|
|
175
|
+
variants: PATH_VARIANTS
|
|
176
|
+
}
|
|
177
|
+
)
|
|
178
|
+
]
|
|
179
|
+
}
|
|
180
|
+
)
|
|
181
|
+
}
|
|
182
|
+
);
|
|
183
|
+
}
|
|
184
|
+
);
|
|
185
|
+
AtSignIcon.displayName = "AtSignIcon";
|
|
186
|
+
|
|
187
|
+
// src/icons/eye-off.tsx
|
|
188
|
+
import { motion as motion2, useAnimation as useAnimation2, useReducedMotion as useReducedMotion2 } from "motion/react";
|
|
189
|
+
import { forwardRef as forwardRef2, useCallback as useCallback2, useEffect as useEffect2, useImperativeHandle as useImperativeHandle2, useRef as useRef2, useState as useState2 } from "react";
|
|
190
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
191
|
+
var PATH_VARIANTS2 = {
|
|
192
|
+
normal: { pathLength: 1, opacity: 1, pathOffset: 0 },
|
|
193
|
+
animate: {
|
|
194
|
+
pathLength: [0, 2],
|
|
195
|
+
opacity: [0, 1],
|
|
196
|
+
pathOffset: [0, 2],
|
|
197
|
+
transition: { duration: 0.6 }
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
var EyeOffIcon = forwardRef2(
|
|
201
|
+
({ onMouseEnter, onMouseLeave, className, size, active, style, strokeWidth, ...props }, ref) => {
|
|
202
|
+
const controls = useAnimation2();
|
|
203
|
+
const isControlledRef = useRef2(false);
|
|
204
|
+
useImperativeHandle2(ref, () => {
|
|
205
|
+
isControlledRef.current = true;
|
|
206
|
+
return {
|
|
207
|
+
startAnimation: () => controls.start("animate"),
|
|
208
|
+
stopAnimation: () => controls.start("normal")
|
|
209
|
+
};
|
|
210
|
+
});
|
|
211
|
+
const handleMouseEnter = useCallback2(
|
|
212
|
+
(e) => {
|
|
213
|
+
if (isControlledRef.current) {
|
|
214
|
+
onMouseEnter?.(e);
|
|
215
|
+
} else {
|
|
216
|
+
controls.start("animate");
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
[controls, onMouseEnter]
|
|
220
|
+
);
|
|
221
|
+
const handleMouseLeave = useCallback2(
|
|
222
|
+
(e) => {
|
|
223
|
+
if (isControlledRef.current) {
|
|
224
|
+
onMouseLeave?.(e);
|
|
225
|
+
} else {
|
|
226
|
+
controls.start("normal");
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
[controls, onMouseLeave]
|
|
230
|
+
);
|
|
231
|
+
const wrap = useRef2(null);
|
|
232
|
+
const reduced = useReducedMotion2();
|
|
233
|
+
const [hosted, setHosted] = useState2(false);
|
|
234
|
+
useEffect2(() => {
|
|
235
|
+
const fake = {};
|
|
236
|
+
if (reduced) {
|
|
237
|
+
setHosted(true);
|
|
238
|
+
return;
|
|
239
|
+
}
|
|
240
|
+
if (active !== void 0) {
|
|
241
|
+
setHosted(true);
|
|
242
|
+
(active ? handleMouseEnter : handleMouseLeave)(fake);
|
|
243
|
+
return;
|
|
244
|
+
}
|
|
245
|
+
const host = wrap.current?.parentElement?.closest("button, a, [role=button], [role=menuitem], [role=tab], [role=switch], [role=radio], label");
|
|
246
|
+
setHosted(!!host);
|
|
247
|
+
if (!host) return;
|
|
248
|
+
const on = () => handleMouseEnter(fake);
|
|
249
|
+
const off = () => handleMouseLeave(fake);
|
|
250
|
+
host.addEventListener("pointerenter", on);
|
|
251
|
+
host.addEventListener("pointerleave", off);
|
|
252
|
+
return () => {
|
|
253
|
+
host.removeEventListener("pointerenter", on);
|
|
254
|
+
host.removeEventListener("pointerleave", off);
|
|
255
|
+
};
|
|
256
|
+
}, [active, reduced, handleMouseEnter, handleMouseLeave]);
|
|
257
|
+
return /* @__PURE__ */ jsx2(
|
|
258
|
+
"span",
|
|
259
|
+
{
|
|
260
|
+
ref: wrap,
|
|
261
|
+
className: cn("inline-grid size-6 shrink-0 place-items-center align-middle [&>svg]:size-full", className),
|
|
262
|
+
style: size ? { width: size, height: size, ...style } : style,
|
|
263
|
+
onMouseEnter: hosted ? void 0 : handleMouseEnter,
|
|
264
|
+
onMouseLeave: hosted ? void 0 : handleMouseLeave,
|
|
265
|
+
...props,
|
|
266
|
+
children: /* @__PURE__ */ jsxs2(
|
|
267
|
+
"svg",
|
|
268
|
+
{
|
|
269
|
+
fill: "none",
|
|
270
|
+
height: size,
|
|
271
|
+
stroke: "currentColor",
|
|
272
|
+
strokeLinecap: "round",
|
|
273
|
+
strokeLinejoin: "round",
|
|
274
|
+
strokeWidth: strokeWidth ?? 2,
|
|
275
|
+
viewBox: "0 0 24 24",
|
|
276
|
+
width: size,
|
|
277
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
278
|
+
children: [
|
|
279
|
+
/* @__PURE__ */ jsx2("path", { d: "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49" }),
|
|
280
|
+
/* @__PURE__ */ jsx2("path", { d: "M14.084 14.158a3 3 0 0 1-4.242-4.242" }),
|
|
281
|
+
/* @__PURE__ */ jsx2("path", { d: "M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143" }),
|
|
282
|
+
/* @__PURE__ */ jsx2(
|
|
283
|
+
motion2.path,
|
|
284
|
+
{
|
|
285
|
+
animate: controls,
|
|
286
|
+
d: "m2 2 20 20",
|
|
287
|
+
variants: PATH_VARIANTS2
|
|
288
|
+
}
|
|
289
|
+
)
|
|
290
|
+
]
|
|
291
|
+
}
|
|
292
|
+
)
|
|
293
|
+
}
|
|
294
|
+
);
|
|
295
|
+
}
|
|
296
|
+
);
|
|
297
|
+
EyeOffIcon.displayName = "EyeOffIcon";
|
|
298
|
+
|
|
299
|
+
// src/icons/lock-keyhole-open.tsx
|
|
300
|
+
import { motion as motion3, useAnimation as useAnimation3, useReducedMotion as useReducedMotion3 } from "motion/react";
|
|
301
|
+
import { forwardRef as forwardRef3, useCallback as useCallback3, useEffect as useEffect3, useImperativeHandle as useImperativeHandle3, useRef as useRef3, useState as useState3 } from "react";
|
|
302
|
+
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
303
|
+
var LockKeyholeOpenIcon = forwardRef3(({ onMouseEnter, onMouseLeave, className, size, active, style, strokeWidth, ...props }, ref) => {
|
|
304
|
+
const controls = useAnimation3();
|
|
305
|
+
const isControlledRef = useRef3(false);
|
|
306
|
+
useImperativeHandle3(ref, () => {
|
|
307
|
+
isControlledRef.current = true;
|
|
308
|
+
return {
|
|
309
|
+
startAnimation: () => controls.start("animate"),
|
|
310
|
+
stopAnimation: () => controls.start("normal")
|
|
311
|
+
};
|
|
312
|
+
});
|
|
313
|
+
const handleMouseEnter = useCallback3(
|
|
314
|
+
(e) => {
|
|
315
|
+
if (isControlledRef.current) {
|
|
316
|
+
onMouseEnter?.(e);
|
|
317
|
+
} else {
|
|
318
|
+
controls.start("animate");
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
[controls, onMouseEnter]
|
|
322
|
+
);
|
|
323
|
+
const handleMouseLeave = useCallback3(
|
|
324
|
+
(e) => {
|
|
325
|
+
if (isControlledRef.current) {
|
|
326
|
+
onMouseLeave?.(e);
|
|
327
|
+
} else {
|
|
328
|
+
controls.start("normal");
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
[controls, onMouseLeave]
|
|
332
|
+
);
|
|
333
|
+
const wrap = useRef3(null);
|
|
334
|
+
const reduced = useReducedMotion3();
|
|
335
|
+
const [hosted, setHosted] = useState3(false);
|
|
336
|
+
useEffect3(() => {
|
|
337
|
+
const fake = {};
|
|
338
|
+
if (reduced) {
|
|
339
|
+
setHosted(true);
|
|
340
|
+
return;
|
|
341
|
+
}
|
|
342
|
+
if (active !== void 0) {
|
|
343
|
+
setHosted(true);
|
|
344
|
+
(active ? handleMouseEnter : handleMouseLeave)(fake);
|
|
345
|
+
return;
|
|
346
|
+
}
|
|
347
|
+
const host = wrap.current?.parentElement?.closest("button, a, [role=button], [role=menuitem], [role=tab], [role=switch], [role=radio], label");
|
|
348
|
+
setHosted(!!host);
|
|
349
|
+
if (!host) return;
|
|
350
|
+
const on = () => handleMouseEnter(fake);
|
|
351
|
+
const off = () => handleMouseLeave(fake);
|
|
352
|
+
host.addEventListener("pointerenter", on);
|
|
353
|
+
host.addEventListener("pointerleave", off);
|
|
354
|
+
return () => {
|
|
355
|
+
host.removeEventListener("pointerenter", on);
|
|
356
|
+
host.removeEventListener("pointerleave", off);
|
|
357
|
+
};
|
|
358
|
+
}, [active, reduced, handleMouseEnter, handleMouseLeave]);
|
|
359
|
+
return /* @__PURE__ */ jsx3(
|
|
360
|
+
"span",
|
|
361
|
+
{
|
|
362
|
+
ref: wrap,
|
|
363
|
+
className: cn("inline-grid size-6 shrink-0 place-items-center align-middle [&>svg]:size-full", className),
|
|
364
|
+
style: size ? { width: size, height: size, ...style } : style,
|
|
365
|
+
onMouseEnter: hosted ? void 0 : handleMouseEnter,
|
|
366
|
+
onMouseLeave: hosted ? void 0 : handleMouseLeave,
|
|
367
|
+
...props,
|
|
368
|
+
children: /* @__PURE__ */ jsxs3(
|
|
369
|
+
motion3.svg,
|
|
370
|
+
{
|
|
371
|
+
animate: controls,
|
|
372
|
+
fill: "none",
|
|
373
|
+
height: size,
|
|
374
|
+
initial: "normal",
|
|
375
|
+
stroke: "currentColor",
|
|
376
|
+
strokeLinecap: "round",
|
|
377
|
+
strokeLinejoin: "round",
|
|
378
|
+
strokeWidth: strokeWidth ?? 2,
|
|
379
|
+
transition: {
|
|
380
|
+
duration: 1,
|
|
381
|
+
ease: [0.4, 0, 0.2, 1]
|
|
382
|
+
},
|
|
383
|
+
variants: {
|
|
384
|
+
normal: {
|
|
385
|
+
rotate: 0,
|
|
386
|
+
scale: 1
|
|
387
|
+
},
|
|
388
|
+
animate: {
|
|
389
|
+
rotate: [2, 4, -2, 0],
|
|
390
|
+
scale: [1.05, 0.95, 1.02, 1]
|
|
391
|
+
}
|
|
392
|
+
},
|
|
393
|
+
viewBox: "0 0 24 24",
|
|
394
|
+
width: size,
|
|
395
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
396
|
+
children: [
|
|
397
|
+
/* @__PURE__ */ jsx3("circle", { cx: "12", cy: "16", r: "1" }),
|
|
398
|
+
/* @__PURE__ */ jsx3("rect", { height: "12", rx: "2", width: "18", x: "3", y: "10" }),
|
|
399
|
+
/* @__PURE__ */ jsx3(
|
|
400
|
+
motion3.path,
|
|
401
|
+
{
|
|
402
|
+
animate: controls,
|
|
403
|
+
d: "M7 10V7a5 5 0 0 1 10 0v3",
|
|
404
|
+
initial: "normal",
|
|
405
|
+
transition: {
|
|
406
|
+
duration: 0.3,
|
|
407
|
+
ease: [0.4, 0, 0.2, 1]
|
|
408
|
+
},
|
|
409
|
+
variants: {
|
|
410
|
+
normal: {
|
|
411
|
+
pathLength: 0.8
|
|
412
|
+
},
|
|
413
|
+
animate: {
|
|
414
|
+
pathLength: 1
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
)
|
|
419
|
+
]
|
|
420
|
+
}
|
|
421
|
+
)
|
|
422
|
+
}
|
|
423
|
+
);
|
|
424
|
+
});
|
|
425
|
+
LockKeyholeOpenIcon.displayName = "LockKeyholeOpenIcon";
|
|
426
|
+
|
|
427
|
+
// src/components/auth-card/auth-card.tsx
|
|
428
|
+
import { Fragment, jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
429
|
+
var GLIDE = [0.22, 1, 0.36, 1];
|
|
430
|
+
var INK = "#242423";
|
|
431
|
+
var GOOD = "#269a5a";
|
|
432
|
+
var BAD = "#d64545";
|
|
433
|
+
var COPY = {
|
|
434
|
+
signin: {
|
|
435
|
+
title: "Welcome back",
|
|
436
|
+
sub: "Sign in to pick up where you left off.",
|
|
437
|
+
cta: "Get started",
|
|
438
|
+
busy: "Signing you in",
|
|
439
|
+
done: "You're in",
|
|
440
|
+
ask: "Don't have an account?",
|
|
441
|
+
flip: "Sign up"
|
|
442
|
+
},
|
|
443
|
+
signup: {
|
|
444
|
+
title: "Create your account",
|
|
445
|
+
sub: "It takes less than a minute.",
|
|
446
|
+
cta: "Create account",
|
|
447
|
+
busy: "Setting things up",
|
|
448
|
+
done: "Account ready",
|
|
449
|
+
ask: "Already have an account?",
|
|
450
|
+
flip: "Sign in"
|
|
451
|
+
}
|
|
452
|
+
};
|
|
453
|
+
var EMAIL = /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/;
|
|
454
|
+
function strength(pw) {
|
|
455
|
+
if (!pw) return 0;
|
|
456
|
+
let s = pw.length >= 8 ? 1 : 0;
|
|
457
|
+
if (/\d/.test(pw)) s++;
|
|
458
|
+
if (/[A-Z]/.test(pw) && /[a-z]/.test(pw)) s++;
|
|
459
|
+
if (/[^A-Za-z0-9]/.test(pw)) s++;
|
|
460
|
+
return Math.max(1, s);
|
|
461
|
+
}
|
|
462
|
+
var LEVELS = [
|
|
463
|
+
{ label: "", color: INK },
|
|
464
|
+
{ label: "Weak", color: BAD },
|
|
465
|
+
{ label: "Fair", color: "#e8a317" },
|
|
466
|
+
{ label: "Good", color: "#5aa832" },
|
|
467
|
+
{ label: "Strong", color: GOOD }
|
|
468
|
+
];
|
|
469
|
+
function Roll({
|
|
470
|
+
children,
|
|
471
|
+
dir,
|
|
472
|
+
className
|
|
473
|
+
}) {
|
|
474
|
+
const still = !!useReducedMotion4();
|
|
475
|
+
return /* @__PURE__ */ jsx4("span", { className: cn("relative inline-grid overflow-hidden", className), children: /* @__PURE__ */ jsx4(AnimatePresence, { mode: "popLayout", initial: false, custom: dir, children: /* @__PURE__ */ jsx4(
|
|
476
|
+
motion4.span,
|
|
477
|
+
{
|
|
478
|
+
custom: dir,
|
|
479
|
+
variants: {
|
|
480
|
+
in: (d) => ({
|
|
481
|
+
y: d > 0 ? "60%" : "-60%",
|
|
482
|
+
opacity: 0,
|
|
483
|
+
filter: "blur(4px)"
|
|
484
|
+
}),
|
|
485
|
+
on: { y: "0%", opacity: 1, filter: "blur(0px)" },
|
|
486
|
+
out: (d) => ({
|
|
487
|
+
y: d > 0 ? "-60%" : "60%",
|
|
488
|
+
opacity: 0,
|
|
489
|
+
filter: "blur(4px)"
|
|
490
|
+
})
|
|
491
|
+
},
|
|
492
|
+
initial: still ? false : "in",
|
|
493
|
+
animate: "on",
|
|
494
|
+
exit: still ? void 0 : "out",
|
|
495
|
+
transition: { duration: 0.35, ease: GLIDE },
|
|
496
|
+
className: "col-start-1 row-start-1 whitespace-nowrap",
|
|
497
|
+
children
|
|
498
|
+
},
|
|
499
|
+
children
|
|
500
|
+
) }) });
|
|
501
|
+
}
|
|
502
|
+
function BrandMark({ turn, still }) {
|
|
503
|
+
const gid = React.useId();
|
|
504
|
+
return /* @__PURE__ */ jsxs4("span", { className: "relative grid size-12 place-items-center overflow-hidden rounded-[14px] shadow-[inset_0_1px_0_rgba(255,255,255,0.35),0_10px_24px_-10px_rgba(0,0,0,0.45)]", children: [
|
|
505
|
+
/* @__PURE__ */ jsxs4(
|
|
506
|
+
"svg",
|
|
507
|
+
{
|
|
508
|
+
viewBox: "0 0 48 48",
|
|
509
|
+
className: "absolute inset-0 size-full",
|
|
510
|
+
"aria-hidden": true,
|
|
511
|
+
children: [
|
|
512
|
+
/* @__PURE__ */ jsxs4("defs", { children: [
|
|
513
|
+
/* @__PURE__ */ jsxs4("linearGradient", { id: `${gid}-bg`, x1: "0", y1: "0", x2: "1", y2: "1", children: [
|
|
514
|
+
/* @__PURE__ */ jsx4("stop", { offset: "0", stopColor: "#71717a" }),
|
|
515
|
+
/* @__PURE__ */ jsx4("stop", { offset: "0.55", stopColor: "#3f3f46" }),
|
|
516
|
+
/* @__PURE__ */ jsx4("stop", { offset: "1", stopColor: "#1c1c1e" })
|
|
517
|
+
] }),
|
|
518
|
+
/* @__PURE__ */ jsxs4("radialGradient", { id: `${gid}-shine`, cx: "0.3", cy: "0.15", r: "0.8", children: [
|
|
519
|
+
/* @__PURE__ */ jsx4("stop", { offset: "0", stopColor: "#fff", stopOpacity: "0.35" }),
|
|
520
|
+
/* @__PURE__ */ jsx4("stop", { offset: "1", stopColor: "#fff", stopOpacity: "0" })
|
|
521
|
+
] })
|
|
522
|
+
] }),
|
|
523
|
+
/* @__PURE__ */ jsx4("rect", { width: "48", height: "48", fill: `url(#${gid}-bg)` }),
|
|
524
|
+
/* @__PURE__ */ jsx4("rect", { width: "48", height: "48", fill: `url(#${gid}-shine)` })
|
|
525
|
+
]
|
|
526
|
+
}
|
|
527
|
+
),
|
|
528
|
+
/* @__PURE__ */ jsxs4(
|
|
529
|
+
motion4.svg,
|
|
530
|
+
{
|
|
531
|
+
viewBox: "0 0 24 24",
|
|
532
|
+
className: "relative size-8 text-white",
|
|
533
|
+
"aria-hidden": true,
|
|
534
|
+
animate: { rotate: turn * 60 },
|
|
535
|
+
transition: still ? { duration: 0 } : { type: "spring", stiffness: 160, damping: 14 },
|
|
536
|
+
children: [
|
|
537
|
+
[0, 60, 120, 180, 240, 300].map((deg) => /* @__PURE__ */ jsx4(
|
|
538
|
+
"ellipse",
|
|
539
|
+
{
|
|
540
|
+
cx: "12",
|
|
541
|
+
cy: "6.4",
|
|
542
|
+
rx: "2.9",
|
|
543
|
+
ry: "4.9",
|
|
544
|
+
fill: "currentColor",
|
|
545
|
+
opacity: deg % 120 ? 0.62 : 0.95,
|
|
546
|
+
transform: `rotate(${deg} 12 12)`
|
|
547
|
+
},
|
|
548
|
+
deg
|
|
549
|
+
)),
|
|
550
|
+
/* @__PURE__ */ jsx4("circle", { cx: "12", cy: "12", r: "2.4", fill: "#fff" })
|
|
551
|
+
]
|
|
552
|
+
}
|
|
553
|
+
)
|
|
554
|
+
] });
|
|
555
|
+
}
|
|
556
|
+
function Unlock() {
|
|
557
|
+
const [shut, setShut] = React.useState(true);
|
|
558
|
+
React.useEffect(() => {
|
|
559
|
+
const t = window.setTimeout(() => setShut(false), 320);
|
|
560
|
+
return () => window.clearTimeout(t);
|
|
561
|
+
}, []);
|
|
562
|
+
return /* @__PURE__ */ jsx4(LockKeyholeOpenIcon, { className: "size-4", active: shut });
|
|
563
|
+
}
|
|
564
|
+
function Reveal({
|
|
565
|
+
show,
|
|
566
|
+
children,
|
|
567
|
+
delay = 0
|
|
568
|
+
}) {
|
|
569
|
+
const still = !!useReducedMotion4();
|
|
570
|
+
return /* @__PURE__ */ jsx4(AnimatePresence, { initial: false, children: show && /* @__PURE__ */ jsx4(
|
|
571
|
+
motion4.div,
|
|
572
|
+
{
|
|
573
|
+
initial: still ? false : {
|
|
574
|
+
height: 0,
|
|
575
|
+
opacity: 0,
|
|
576
|
+
filter: "blur(4px)",
|
|
577
|
+
overflow: "hidden"
|
|
578
|
+
},
|
|
579
|
+
animate: {
|
|
580
|
+
height: "auto",
|
|
581
|
+
opacity: 1,
|
|
582
|
+
filter: "blur(0px)",
|
|
583
|
+
// Once open, let rings and strokes drawn outside the fields show.
|
|
584
|
+
transitionEnd: { overflow: "visible" },
|
|
585
|
+
transition: {
|
|
586
|
+
duration: still ? 0 : 0.42,
|
|
587
|
+
ease: GLIDE,
|
|
588
|
+
delay: still ? 0 : delay
|
|
589
|
+
}
|
|
590
|
+
},
|
|
591
|
+
exit: {
|
|
592
|
+
height: 0,
|
|
593
|
+
opacity: 0,
|
|
594
|
+
filter: "blur(4px)",
|
|
595
|
+
overflow: "hidden",
|
|
596
|
+
transition: { duration: still ? 0 : 0.3, ease: GLIDE }
|
|
597
|
+
},
|
|
598
|
+
children
|
|
599
|
+
}
|
|
600
|
+
) });
|
|
601
|
+
}
|
|
602
|
+
function Field({
|
|
603
|
+
id,
|
|
604
|
+
label,
|
|
605
|
+
type,
|
|
606
|
+
value,
|
|
607
|
+
onChange,
|
|
608
|
+
icon: Icon,
|
|
609
|
+
autoComplete,
|
|
610
|
+
error,
|
|
611
|
+
valid,
|
|
612
|
+
shake,
|
|
613
|
+
invalid,
|
|
614
|
+
invalidHint,
|
|
615
|
+
end,
|
|
616
|
+
inputRef
|
|
617
|
+
}) {
|
|
618
|
+
const still = !!useReducedMotion4();
|
|
619
|
+
const [focus, setFocus] = React.useState(false);
|
|
620
|
+
const filled = value.trim().length > 0;
|
|
621
|
+
const [tip, setTip] = React.useState(false);
|
|
622
|
+
React.useEffect(() => {
|
|
623
|
+
if (!invalid) setTip(false);
|
|
624
|
+
}, [invalid]);
|
|
625
|
+
const hint = invalidHint ?? "Use a full email address, like name@example.com.";
|
|
626
|
+
const box = useAnimationControls();
|
|
627
|
+
React.useEffect(() => {
|
|
628
|
+
if (error && shake && !still)
|
|
629
|
+
void box.start({
|
|
630
|
+
x: [0, -7, 7, -5, 5, -2, 0],
|
|
631
|
+
transition: { duration: 0.45 }
|
|
632
|
+
});
|
|
633
|
+
}, [shake]);
|
|
634
|
+
return /* @__PURE__ */ jsxs4("div", { className: "pt-3", children: [
|
|
635
|
+
/* @__PURE__ */ jsx4(
|
|
636
|
+
"label",
|
|
637
|
+
{
|
|
638
|
+
htmlFor: id,
|
|
639
|
+
className: "mb-1.5 block px-4 text-xs font-medium text-zinc-500",
|
|
640
|
+
children: label
|
|
641
|
+
}
|
|
642
|
+
),
|
|
643
|
+
/* @__PURE__ */ jsxs4(
|
|
644
|
+
motion4.div,
|
|
645
|
+
{
|
|
646
|
+
animate: box,
|
|
647
|
+
className: cn(
|
|
648
|
+
"relative flex h-12 items-center gap-2.5 rounded-full pl-4 pr-3.5 transition-[background-color,box-shadow] duration-300",
|
|
649
|
+
focus ? "bg-white shadow-[0_0_0_4px_rgba(36,36,35,0.08),0_1px_2px_rgba(0,0,0,0.06)]" : filled ? (
|
|
650
|
+
// Done: pure white with a thin stroke, so a filled field reads as complete.
|
|
651
|
+
"bg-white shadow-[0_0_0_1.5px_rgba(36,36,35,0.3)]"
|
|
652
|
+
) : "bg-[#242423]/[0.045] hover:bg-[#242423]/[0.07]",
|
|
653
|
+
error && !invalid && "shadow-[0_0_0_2px_rgba(214,69,69,0.55)]",
|
|
654
|
+
invalid && "shadow-[0_0_0_1px_rgba(214,69,69,0.3)]"
|
|
655
|
+
),
|
|
656
|
+
children: [
|
|
657
|
+
/* @__PURE__ */ jsx4(AnimatePresence, { children: invalid && /* @__PURE__ */ jsx4(
|
|
658
|
+
motion4.span,
|
|
659
|
+
{
|
|
660
|
+
"aria-hidden": true,
|
|
661
|
+
initial: { opacity: 0 },
|
|
662
|
+
animate: { opacity: 1 },
|
|
663
|
+
exit: { opacity: 0 },
|
|
664
|
+
transition: { duration: 0.25 },
|
|
665
|
+
className: "pointer-events-none absolute inset-0 overflow-hidden rounded-full p-px",
|
|
666
|
+
style: {
|
|
667
|
+
WebkitMask: "linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0)",
|
|
668
|
+
WebkitMaskComposite: "xor",
|
|
669
|
+
mask: "linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0)"
|
|
670
|
+
},
|
|
671
|
+
children: /* @__PURE__ */ jsx4(
|
|
672
|
+
motion4.span,
|
|
673
|
+
{
|
|
674
|
+
className: "absolute left-1/2 top-1/2 aspect-square w-[160%] -translate-x-1/2 -translate-y-1/2",
|
|
675
|
+
style: {
|
|
676
|
+
background: "conic-gradient(from 0deg, transparent 0deg, transparent 250deg, rgba(214,69,69,0.12) 290deg, rgba(214,69,69,0.75) 335deg, rgba(255,214,214,0.95) 350deg, transparent 360deg)"
|
|
677
|
+
},
|
|
678
|
+
animate: still ? void 0 : { rotate: 360 },
|
|
679
|
+
transition: { duration: 2.4, repeat: Infinity, ease: "linear" }
|
|
680
|
+
}
|
|
681
|
+
)
|
|
682
|
+
}
|
|
683
|
+
) }),
|
|
684
|
+
/* @__PURE__ */ jsx4(
|
|
685
|
+
"span",
|
|
686
|
+
{
|
|
687
|
+
className: cn(
|
|
688
|
+
"grid shrink-0 transition-colors duration-200",
|
|
689
|
+
focus ? "text-[#242423]" : "text-zinc-400"
|
|
690
|
+
),
|
|
691
|
+
children: /* @__PURE__ */ jsx4(Icon, { className: "size-[18px]", active: focus })
|
|
692
|
+
}
|
|
693
|
+
),
|
|
694
|
+
/* @__PURE__ */ jsx4(
|
|
695
|
+
"input",
|
|
696
|
+
{
|
|
697
|
+
ref: inputRef,
|
|
698
|
+
id,
|
|
699
|
+
type,
|
|
700
|
+
value,
|
|
701
|
+
autoComplete,
|
|
702
|
+
spellCheck: false,
|
|
703
|
+
"aria-invalid": !!error || !!invalid || void 0,
|
|
704
|
+
"aria-describedby": error ? `${id}-error` : invalid ? `${id}-hint` : void 0,
|
|
705
|
+
onChange: (e) => onChange(e.target.value),
|
|
706
|
+
onFocus: () => setFocus(true),
|
|
707
|
+
onBlur: () => setFocus(false),
|
|
708
|
+
className: "h-full min-w-0 flex-1 bg-transparent text-sm text-[#242423] outline-none placeholder:text-zinc-400"
|
|
709
|
+
}
|
|
710
|
+
),
|
|
711
|
+
invalid && !error && /* @__PURE__ */ jsx4("span", { id: `${id}-hint`, className: "sr-only", children: hint }),
|
|
712
|
+
/* @__PURE__ */ jsxs4(AnimatePresence, { initial: false, mode: "popLayout", children: [
|
|
713
|
+
invalid && /* @__PURE__ */ jsxs4(
|
|
714
|
+
motion4.span,
|
|
715
|
+
{
|
|
716
|
+
initial: still ? false : { scale: 0, opacity: 0, rotate: -30 },
|
|
717
|
+
animate: { scale: 1, opacity: 1, rotate: 0 },
|
|
718
|
+
exit: { scale: 0, opacity: 0 },
|
|
719
|
+
transition: { type: "spring", stiffness: 600, damping: 18 },
|
|
720
|
+
className: "relative grid",
|
|
721
|
+
style: { color: BAD },
|
|
722
|
+
children: [
|
|
723
|
+
/* @__PURE__ */ jsx4(
|
|
724
|
+
"span",
|
|
725
|
+
{
|
|
726
|
+
tabIndex: 0,
|
|
727
|
+
role: "img",
|
|
728
|
+
"aria-label": hint,
|
|
729
|
+
"aria-describedby": tip ? `${id}-tip` : void 0,
|
|
730
|
+
onPointerEnter: () => setTip(true),
|
|
731
|
+
onPointerLeave: () => setTip(false),
|
|
732
|
+
onFocus: () => setTip(true),
|
|
733
|
+
onBlur: () => setTip(false),
|
|
734
|
+
className: "grid cursor-help rounded-full outline-none focus-visible:ring-2 focus-visible:ring-[#d64545]/40",
|
|
735
|
+
children: /* @__PURE__ */ jsx4(
|
|
736
|
+
BadgeAlertIcon,
|
|
737
|
+
{
|
|
738
|
+
className: "size-[18px]",
|
|
739
|
+
active: tip || void 0
|
|
740
|
+
}
|
|
741
|
+
)
|
|
742
|
+
}
|
|
743
|
+
),
|
|
744
|
+
/* @__PURE__ */ jsx4(AnimatePresence, { children: tip && /* @__PURE__ */ jsxs4(
|
|
745
|
+
motion4.span,
|
|
746
|
+
{
|
|
747
|
+
id: `${id}-tip`,
|
|
748
|
+
role: "tooltip",
|
|
749
|
+
initial: {
|
|
750
|
+
opacity: 0,
|
|
751
|
+
y: 6,
|
|
752
|
+
scale: 0.96,
|
|
753
|
+
filter: "blur(4px)"
|
|
754
|
+
},
|
|
755
|
+
animate: {
|
|
756
|
+
opacity: 1,
|
|
757
|
+
y: 0,
|
|
758
|
+
scale: 1,
|
|
759
|
+
filter: "blur(0px)"
|
|
760
|
+
},
|
|
761
|
+
exit: {
|
|
762
|
+
opacity: 0,
|
|
763
|
+
y: 4,
|
|
764
|
+
scale: 0.97,
|
|
765
|
+
filter: "blur(4px)"
|
|
766
|
+
},
|
|
767
|
+
transition: { duration: still ? 0 : 0.2, ease: GLIDE },
|
|
768
|
+
className: "pointer-events-none absolute bottom-[calc(100%+12px)] right-[-10px] z-20 w-56 origin-bottom-right rounded-xl bg-[#242423] px-3 py-2 text-left text-xs leading-relaxed text-white shadow-[0_8px_24px_-8px_rgba(0,0,0,0.35)]",
|
|
769
|
+
children: [
|
|
770
|
+
/* @__PURE__ */ jsxs4("span", { className: "flex items-start gap-1.5", children: [
|
|
771
|
+
/* @__PURE__ */ jsx4(
|
|
772
|
+
"span",
|
|
773
|
+
{
|
|
774
|
+
className: "mt-[5px] size-1.5 shrink-0 rounded-full",
|
|
775
|
+
style: { background: BAD }
|
|
776
|
+
}
|
|
777
|
+
),
|
|
778
|
+
hint
|
|
779
|
+
] }),
|
|
780
|
+
/* @__PURE__ */ jsx4("span", { className: "absolute -bottom-1 right-[14px] size-2.5 rotate-45 rounded-[2px] bg-[#242423]" })
|
|
781
|
+
]
|
|
782
|
+
}
|
|
783
|
+
) })
|
|
784
|
+
]
|
|
785
|
+
},
|
|
786
|
+
"bad"
|
|
787
|
+
),
|
|
788
|
+
valid && !error && !invalid && /* @__PURE__ */ jsx4(
|
|
789
|
+
motion4.span,
|
|
790
|
+
{
|
|
791
|
+
initial: still ? false : { scale: 0, opacity: 0 },
|
|
792
|
+
animate: { scale: 1, opacity: 1 },
|
|
793
|
+
exit: { scale: 0, opacity: 0 },
|
|
794
|
+
transition: { type: "spring", stiffness: 600, damping: 20 },
|
|
795
|
+
className: "grid text-[#269a5a]",
|
|
796
|
+
children: /* @__PURE__ */ jsx4(CircleCheckIcon, { className: "size-[18px]", active: true })
|
|
797
|
+
},
|
|
798
|
+
"ok"
|
|
799
|
+
)
|
|
800
|
+
] }),
|
|
801
|
+
end
|
|
802
|
+
]
|
|
803
|
+
}
|
|
804
|
+
),
|
|
805
|
+
/* @__PURE__ */ jsx4(AnimatePresence, { initial: false, children: error && /* @__PURE__ */ jsx4(
|
|
806
|
+
motion4.p,
|
|
807
|
+
{
|
|
808
|
+
id: `${id}-error`,
|
|
809
|
+
initial: { height: 0, opacity: 0 },
|
|
810
|
+
animate: { height: "auto", opacity: 1 },
|
|
811
|
+
exit: { height: 0, opacity: 0 },
|
|
812
|
+
transition: { duration: still ? 0 : 0.25, ease: GLIDE },
|
|
813
|
+
className: "overflow-hidden px-4 text-xs",
|
|
814
|
+
style: { color: BAD },
|
|
815
|
+
children: /* @__PURE__ */ jsx4("span", { className: "block pt-1.5", children: error })
|
|
816
|
+
}
|
|
817
|
+
) })
|
|
818
|
+
] });
|
|
819
|
+
}
|
|
820
|
+
var LOGOS = {
|
|
821
|
+
github: /* @__PURE__ */ jsx4("svg", { viewBox: "0 0 24 24", className: "size-[18px]", "aria-hidden": true, children: /* @__PURE__ */ jsx4(
|
|
822
|
+
"path",
|
|
823
|
+
{
|
|
824
|
+
fill: "currentColor",
|
|
825
|
+
d: "M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"
|
|
826
|
+
}
|
|
827
|
+
) }),
|
|
828
|
+
google: /* @__PURE__ */ jsxs4("svg", { viewBox: "0 0 24 24", className: "size-[18px]", "aria-hidden": true, children: [
|
|
829
|
+
/* @__PURE__ */ jsx4(
|
|
830
|
+
"path",
|
|
831
|
+
{
|
|
832
|
+
fill: "#4285F4",
|
|
833
|
+
d: "M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 0 1-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1z"
|
|
834
|
+
}
|
|
835
|
+
),
|
|
836
|
+
/* @__PURE__ */ jsx4(
|
|
837
|
+
"path",
|
|
838
|
+
{
|
|
839
|
+
fill: "#34A853",
|
|
840
|
+
d: "M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84A11 11 0 0 0 12 23z"
|
|
841
|
+
}
|
|
842
|
+
),
|
|
843
|
+
/* @__PURE__ */ jsx4(
|
|
844
|
+
"path",
|
|
845
|
+
{
|
|
846
|
+
fill: "#FBBC05",
|
|
847
|
+
d: "M5.84 14.1A6.6 6.6 0 0 1 5.5 12c0-.73.13-1.44.34-2.1V7.06H2.18A11 11 0 0 0 1 12c0 1.77.43 3.45 1.18 4.94l3.66-2.84z"
|
|
848
|
+
}
|
|
849
|
+
),
|
|
850
|
+
/* @__PURE__ */ jsx4(
|
|
851
|
+
"path",
|
|
852
|
+
{
|
|
853
|
+
fill: "#EA4335",
|
|
854
|
+
d: "M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1A11 11 0 0 0 2.18 7.06l3.66 2.84C6.71 7.31 9.14 5.38 12 5.38z"
|
|
855
|
+
}
|
|
856
|
+
)
|
|
857
|
+
] }),
|
|
858
|
+
apple: /* @__PURE__ */ jsx4("svg", { viewBox: "0 0 24 24", className: "size-[18px]", "aria-hidden": true, children: /* @__PURE__ */ jsx4(
|
|
859
|
+
"path",
|
|
860
|
+
{
|
|
861
|
+
fill: "currentColor",
|
|
862
|
+
d: "M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701"
|
|
863
|
+
}
|
|
864
|
+
) })
|
|
865
|
+
};
|
|
866
|
+
var PROVIDERS = [
|
|
867
|
+
{ id: "google", label: "Google" },
|
|
868
|
+
{ id: "apple", label: "Apple" },
|
|
869
|
+
{ id: "github", label: "GitHub" }
|
|
870
|
+
];
|
|
871
|
+
function SocialButton({
|
|
872
|
+
provider,
|
|
873
|
+
label,
|
|
874
|
+
onPress,
|
|
875
|
+
disabled
|
|
876
|
+
}) {
|
|
877
|
+
const still = !!useReducedMotion4();
|
|
878
|
+
const [hover, setHover] = React.useState(false);
|
|
879
|
+
const [busy, setBusy] = React.useState(false);
|
|
880
|
+
return /* @__PURE__ */ jsxs4(
|
|
881
|
+
motion4.button,
|
|
882
|
+
{
|
|
883
|
+
type: "button",
|
|
884
|
+
"aria-label": `Continue with ${label}`,
|
|
885
|
+
disabled: disabled || busy,
|
|
886
|
+
onPointerEnter: () => setHover(true),
|
|
887
|
+
onPointerLeave: () => setHover(false),
|
|
888
|
+
onClick: async () => {
|
|
889
|
+
setBusy(true);
|
|
890
|
+
try {
|
|
891
|
+
await onPress();
|
|
892
|
+
} finally {
|
|
893
|
+
setBusy(false);
|
|
894
|
+
}
|
|
895
|
+
},
|
|
896
|
+
whileHover: still ? void 0 : { y: -2 },
|
|
897
|
+
whileTap: still ? void 0 : { scale: 0.95, y: 0 },
|
|
898
|
+
transition: { type: "spring", stiffness: 500, damping: 28 },
|
|
899
|
+
className: "flex h-11 flex-1 cursor-pointer items-center justify-center gap-2 rounded-full bg-[#242423]/[0.045] text-sm font-medium text-[#242423] outline-none transition-[background-color,box-shadow] duration-200 hover:bg-white hover:shadow-[0_0_0_1px_rgba(36,36,35,0.08),0_6px_16px_-8px_rgba(0,0,0,0.25)] disabled:cursor-default focus-visible:ring-2 focus-visible:ring-zinc-400",
|
|
900
|
+
children: [
|
|
901
|
+
/* @__PURE__ */ jsx4(AnimatePresence, { mode: "popLayout", initial: false, children: busy ? /* @__PURE__ */ jsx4(
|
|
902
|
+
motion4.span,
|
|
903
|
+
{
|
|
904
|
+
initial: { scale: 0.5, opacity: 0 },
|
|
905
|
+
animate: { scale: 1, opacity: 1 },
|
|
906
|
+
exit: { scale: 0.5, opacity: 0 },
|
|
907
|
+
className: "grid text-zinc-500",
|
|
908
|
+
children: /* @__PURE__ */ jsx4(LoaderCircleIcon, { className: "size-[18px]", active: true })
|
|
909
|
+
},
|
|
910
|
+
"busy"
|
|
911
|
+
) : /* @__PURE__ */ jsx4(
|
|
912
|
+
motion4.span,
|
|
913
|
+
{
|
|
914
|
+
initial: { scale: 0.5, opacity: 0 },
|
|
915
|
+
animate: {
|
|
916
|
+
scale: 1,
|
|
917
|
+
opacity: 1,
|
|
918
|
+
rotate: hover && !still ? [0, -12, 10, -6, 0] : 0
|
|
919
|
+
},
|
|
920
|
+
exit: { scale: 0.5, opacity: 0 },
|
|
921
|
+
transition: {
|
|
922
|
+
rotate: { duration: 0.5 },
|
|
923
|
+
default: { duration: 0.2 }
|
|
924
|
+
},
|
|
925
|
+
className: "grid",
|
|
926
|
+
children: LOGOS[provider]
|
|
927
|
+
},
|
|
928
|
+
"logo"
|
|
929
|
+
) }),
|
|
930
|
+
label
|
|
931
|
+
]
|
|
932
|
+
}
|
|
933
|
+
);
|
|
934
|
+
}
|
|
935
|
+
var wait = (ms) => new Promise((r) => setTimeout(r, ms));
|
|
936
|
+
var AuthCard = React.forwardRef(
|
|
937
|
+
function AuthCard2({
|
|
938
|
+
defaultMode = "signin",
|
|
939
|
+
mode: modeProp,
|
|
940
|
+
onModeChange,
|
|
941
|
+
onSubmit,
|
|
942
|
+
onSocial,
|
|
943
|
+
onForgotPassword,
|
|
944
|
+
logo,
|
|
945
|
+
className
|
|
946
|
+
}, ref) {
|
|
947
|
+
const still = !!useReducedMotion4();
|
|
948
|
+
const id = React.useId();
|
|
949
|
+
const root = React.useRef(null);
|
|
950
|
+
React.useImperativeHandle(ref, () => root.current);
|
|
951
|
+
const seen = useInView(root, { once: true, amount: 0.3 });
|
|
952
|
+
const [own, setOwn] = React.useState(defaultMode);
|
|
953
|
+
const mode = modeProp ?? own;
|
|
954
|
+
const signup = mode === "signup";
|
|
955
|
+
const dir = signup ? 1 : -1;
|
|
956
|
+
const copy = COPY[mode];
|
|
957
|
+
const [name, setName] = React.useState("");
|
|
958
|
+
const [email, setEmail] = React.useState("");
|
|
959
|
+
const [password, setPassword] = React.useState("");
|
|
960
|
+
const [show, setShow] = React.useState(false);
|
|
961
|
+
const [errors, setErrors] = React.useState({});
|
|
962
|
+
const [shake, setShake] = React.useState(0);
|
|
963
|
+
const [status, setStatus] = React.useState(
|
|
964
|
+
"idle"
|
|
965
|
+
);
|
|
966
|
+
const [ctaHover, setCtaHover] = React.useState(false);
|
|
967
|
+
const [turns, setTurns] = React.useState(0);
|
|
968
|
+
const [logoHover, setLogoHover] = React.useState(false);
|
|
969
|
+
const nameRef = React.useRef(null);
|
|
970
|
+
const switchMode = () => {
|
|
971
|
+
const next = signup ? "signin" : "signup";
|
|
972
|
+
setOwn(next);
|
|
973
|
+
onModeChange?.(next);
|
|
974
|
+
setErrors({});
|
|
975
|
+
setStatus("idle");
|
|
976
|
+
setTurns((t) => t + 1);
|
|
977
|
+
};
|
|
978
|
+
const edit = (key, set) => (v) => {
|
|
979
|
+
set(v);
|
|
980
|
+
if (errors[key] || errors.form)
|
|
981
|
+
setErrors((e) => ({ ...e, [key]: void 0, form: void 0 }));
|
|
982
|
+
};
|
|
983
|
+
const level = strength(password);
|
|
984
|
+
const [settled, setSettled] = React.useState("");
|
|
985
|
+
React.useEffect(() => {
|
|
986
|
+
const t = window.setTimeout(() => setSettled(email), 800);
|
|
987
|
+
return () => window.clearTimeout(t);
|
|
988
|
+
}, [email]);
|
|
989
|
+
const emailOk = EMAIL.test(email.trim());
|
|
990
|
+
const emailBad = email.trim().length > 0 && !emailOk && settled === email;
|
|
991
|
+
const submit = async (e) => {
|
|
992
|
+
e.preventDefault();
|
|
993
|
+
if (status !== "idle") return;
|
|
994
|
+
const next = {};
|
|
995
|
+
if (signup && !name.trim()) next.name = "Tell us what to call you.";
|
|
996
|
+
if (!emailOk)
|
|
997
|
+
next.email = email ? "That email doesn't look right." : "Enter your email.";
|
|
998
|
+
if (!password) next.password = "Enter your password.";
|
|
999
|
+
else if (signup && password.length < 8)
|
|
1000
|
+
next.password = "Use at least 8 characters.";
|
|
1001
|
+
if (Object.keys(next).length) {
|
|
1002
|
+
setErrors(next);
|
|
1003
|
+
setShake((n) => n + 1);
|
|
1004
|
+
return;
|
|
1005
|
+
}
|
|
1006
|
+
setStatus("busy");
|
|
1007
|
+
try {
|
|
1008
|
+
const details = {
|
|
1009
|
+
mode,
|
|
1010
|
+
email: email.trim(),
|
|
1011
|
+
password,
|
|
1012
|
+
...signup ? { name: name.trim() } : {}
|
|
1013
|
+
};
|
|
1014
|
+
if (onSubmit) await onSubmit(details);
|
|
1015
|
+
else await wait(1200);
|
|
1016
|
+
setStatus("done");
|
|
1017
|
+
if (!onSubmit) window.setTimeout(() => setStatus("idle"), 1800);
|
|
1018
|
+
} catch (err) {
|
|
1019
|
+
setStatus("idle");
|
|
1020
|
+
setErrors({
|
|
1021
|
+
form: err instanceof Error ? err.message : "Something went wrong. Try again."
|
|
1022
|
+
});
|
|
1023
|
+
setShake((n) => n + 1);
|
|
1024
|
+
}
|
|
1025
|
+
};
|
|
1026
|
+
const social = async (p) => {
|
|
1027
|
+
if (onSocial) await onSocial(p);
|
|
1028
|
+
else await wait(1e3);
|
|
1029
|
+
};
|
|
1030
|
+
return /* @__PURE__ */ jsxs4(
|
|
1031
|
+
motion4.div,
|
|
1032
|
+
{
|
|
1033
|
+
ref: root,
|
|
1034
|
+
initial: still ? false : { opacity: 0, y: 16 },
|
|
1035
|
+
animate: seen || still ? { opacity: 1, y: 0 } : void 0,
|
|
1036
|
+
transition: { duration: 0.55, ease: GLIDE },
|
|
1037
|
+
className: cn(
|
|
1038
|
+
"w-[380px] max-w-full rounded-[32px] bg-white p-6 text-[#242423] shadow-[0_1px_2px_rgba(0,0,0,0.04),0_12px_32px_-16px_rgba(0,0,0,0.18)]",
|
|
1039
|
+
className
|
|
1040
|
+
),
|
|
1041
|
+
children: [
|
|
1042
|
+
/* @__PURE__ */ jsxs4("div", { className: "flex flex-col items-center text-center", children: [
|
|
1043
|
+
/* @__PURE__ */ jsx4(
|
|
1044
|
+
motion4.span,
|
|
1045
|
+
{
|
|
1046
|
+
onPointerEnter: () => setLogoHover(true),
|
|
1047
|
+
onPointerLeave: () => setLogoHover(false),
|
|
1048
|
+
initial: still ? false : { scale: 0.6, opacity: 0 },
|
|
1049
|
+
animate: {
|
|
1050
|
+
scale: seen || still ? 1 : 0.6,
|
|
1051
|
+
opacity: seen || still ? 1 : 0,
|
|
1052
|
+
rotate: logoHover && !still ? -6 : 0,
|
|
1053
|
+
y: logoHover && !still ? -2 : 0
|
|
1054
|
+
},
|
|
1055
|
+
transition: { type: "spring", stiffness: 420, damping: 22 },
|
|
1056
|
+
className: "grid",
|
|
1057
|
+
children: logo ?? /* @__PURE__ */ jsx4(BrandMark, { turn: turns, still })
|
|
1058
|
+
}
|
|
1059
|
+
),
|
|
1060
|
+
/* @__PURE__ */ jsx4("h3", { className: "mt-5 text-2xl font-semibold tracking-tight", children: /* @__PURE__ */ jsx4(Roll, { dir, children: copy.title }) }),
|
|
1061
|
+
/* @__PURE__ */ jsx4("p", { className: "mt-1.5 text-sm text-zinc-500", children: /* @__PURE__ */ jsx4(Roll, { dir, children: copy.sub }) })
|
|
1062
|
+
] }),
|
|
1063
|
+
/* @__PURE__ */ jsxs4(
|
|
1064
|
+
"form",
|
|
1065
|
+
{
|
|
1066
|
+
noValidate: true,
|
|
1067
|
+
onSubmit: submit,
|
|
1068
|
+
className: "mt-4",
|
|
1069
|
+
"aria-label": copy.title,
|
|
1070
|
+
children: [
|
|
1071
|
+
/* @__PURE__ */ jsx4(Reveal, { show: signup, children: /* @__PURE__ */ jsx4(
|
|
1072
|
+
Field,
|
|
1073
|
+
{
|
|
1074
|
+
id: `${id}-name`,
|
|
1075
|
+
label: "Name",
|
|
1076
|
+
type: "text",
|
|
1077
|
+
value: name,
|
|
1078
|
+
onChange: edit("name", setName),
|
|
1079
|
+
icon: UserIcon,
|
|
1080
|
+
autoComplete: "name",
|
|
1081
|
+
error: errors.name,
|
|
1082
|
+
valid: name.trim().length > 1,
|
|
1083
|
+
shake,
|
|
1084
|
+
inputRef: nameRef
|
|
1085
|
+
}
|
|
1086
|
+
) }),
|
|
1087
|
+
/* @__PURE__ */ jsx4(
|
|
1088
|
+
Field,
|
|
1089
|
+
{
|
|
1090
|
+
id: `${id}-email`,
|
|
1091
|
+
label: "Email",
|
|
1092
|
+
type: "email",
|
|
1093
|
+
value: email,
|
|
1094
|
+
onChange: edit("email", setEmail),
|
|
1095
|
+
icon: AtSignIcon,
|
|
1096
|
+
autoComplete: "email",
|
|
1097
|
+
error: errors.email,
|
|
1098
|
+
valid: emailOk,
|
|
1099
|
+
invalid: emailBad || !!errors.email && !!email,
|
|
1100
|
+
shake
|
|
1101
|
+
}
|
|
1102
|
+
),
|
|
1103
|
+
/* @__PURE__ */ jsx4(
|
|
1104
|
+
Field,
|
|
1105
|
+
{
|
|
1106
|
+
id: `${id}-password`,
|
|
1107
|
+
label: "Password",
|
|
1108
|
+
type: show ? "text" : "password",
|
|
1109
|
+
value: password,
|
|
1110
|
+
onChange: edit("password", setPassword),
|
|
1111
|
+
icon: LockKeyholeIcon,
|
|
1112
|
+
autoComplete: signup ? "new-password" : "current-password",
|
|
1113
|
+
error: errors.password,
|
|
1114
|
+
shake,
|
|
1115
|
+
end: /* @__PURE__ */ jsx4(
|
|
1116
|
+
motion4.button,
|
|
1117
|
+
{
|
|
1118
|
+
type: "button",
|
|
1119
|
+
"aria-label": show ? "Hide password" : "Show password",
|
|
1120
|
+
"aria-pressed": show,
|
|
1121
|
+
onClick: () => setShow((s) => !s),
|
|
1122
|
+
whileTap: still ? void 0 : { scale: 0.85 },
|
|
1123
|
+
className: "-mr-1.5 grid size-8 shrink-0 cursor-pointer place-items-center rounded-full text-zinc-400 outline-none transition-colors hover:bg-[#242423]/[0.06] hover:text-[#242423] focus-visible:ring-2 focus-visible:ring-zinc-400",
|
|
1124
|
+
children: /* @__PURE__ */ jsx4(AnimatePresence, { mode: "popLayout", initial: false, children: /* @__PURE__ */ jsx4(
|
|
1125
|
+
motion4.span,
|
|
1126
|
+
{
|
|
1127
|
+
initial: { opacity: 0, scale: 0.6, filter: "blur(2px)" },
|
|
1128
|
+
animate: { opacity: 1, scale: 1, filter: "blur(0px)" },
|
|
1129
|
+
exit: { opacity: 0, scale: 0.6, filter: "blur(2px)" },
|
|
1130
|
+
transition: { duration: 0.18 },
|
|
1131
|
+
className: "grid",
|
|
1132
|
+
children: show ? /* @__PURE__ */ jsx4(EyeOffIcon, { className: "size-[18px]" }) : /* @__PURE__ */ jsx4(EyeIcon, { className: "size-[18px]" })
|
|
1133
|
+
},
|
|
1134
|
+
show ? "off" : "on"
|
|
1135
|
+
) })
|
|
1136
|
+
}
|
|
1137
|
+
)
|
|
1138
|
+
}
|
|
1139
|
+
),
|
|
1140
|
+
/* @__PURE__ */ jsx4(Reveal, { show: signup, delay: 0.08, children: /* @__PURE__ */ jsxs4(
|
|
1141
|
+
"div",
|
|
1142
|
+
{
|
|
1143
|
+
className: "flex items-center gap-3 px-4 pt-2.5",
|
|
1144
|
+
"aria-live": "polite",
|
|
1145
|
+
children: [
|
|
1146
|
+
/* @__PURE__ */ jsx4("div", { className: "flex flex-1 gap-1", children: [1, 2, 3, 4].map((n) => /* @__PURE__ */ jsx4(
|
|
1147
|
+
"span",
|
|
1148
|
+
{
|
|
1149
|
+
className: "h-1 flex-1 overflow-hidden rounded-full bg-[#242423]/[0.07]",
|
|
1150
|
+
children: /* @__PURE__ */ jsx4(
|
|
1151
|
+
motion4.span,
|
|
1152
|
+
{
|
|
1153
|
+
className: "block h-full origin-left rounded-full",
|
|
1154
|
+
animate: {
|
|
1155
|
+
scaleX: level >= n ? 1 : 0,
|
|
1156
|
+
backgroundColor: LEVELS[level].color
|
|
1157
|
+
},
|
|
1158
|
+
transition: {
|
|
1159
|
+
type: "spring",
|
|
1160
|
+
stiffness: 300,
|
|
1161
|
+
damping: 26,
|
|
1162
|
+
delay: still ? 0 : (n - 1) * 0.04
|
|
1163
|
+
}
|
|
1164
|
+
}
|
|
1165
|
+
)
|
|
1166
|
+
},
|
|
1167
|
+
n
|
|
1168
|
+
)) }),
|
|
1169
|
+
/* @__PURE__ */ jsx4(
|
|
1170
|
+
"span",
|
|
1171
|
+
{
|
|
1172
|
+
className: "w-16 whitespace-nowrap text-right text-xs font-medium",
|
|
1173
|
+
style: { color: LEVELS[level].color },
|
|
1174
|
+
children: level ? /* @__PURE__ */ jsx4(Roll, { dir: 1, children: LEVELS[level].label }) : /* @__PURE__ */ jsx4("span", { className: "text-zinc-400", children: "8+ chars" })
|
|
1175
|
+
}
|
|
1176
|
+
)
|
|
1177
|
+
]
|
|
1178
|
+
}
|
|
1179
|
+
) }),
|
|
1180
|
+
/* @__PURE__ */ jsx4(Reveal, { show: !signup, children: /* @__PURE__ */ jsx4("div", { className: "flex justify-end px-3 pt-2.5", children: /* @__PURE__ */ jsxs4(
|
|
1181
|
+
"button",
|
|
1182
|
+
{
|
|
1183
|
+
type: "button",
|
|
1184
|
+
onClick: () => onForgotPassword?.(email),
|
|
1185
|
+
className: "group/f relative cursor-pointer rounded-md text-xs font-medium text-zinc-500 outline-none transition-colors hover:text-[#242423] focus-visible:ring-2 focus-visible:ring-zinc-400",
|
|
1186
|
+
children: [
|
|
1187
|
+
"Forgot password?",
|
|
1188
|
+
/* @__PURE__ */ jsx4("span", { className: "absolute inset-x-0 -bottom-0.5 h-px origin-right scale-x-0 bg-[#242423] transition-transform duration-300 ease-out group-hover/f:origin-left group-hover/f:scale-x-100" })
|
|
1189
|
+
]
|
|
1190
|
+
}
|
|
1191
|
+
) }) }),
|
|
1192
|
+
/* @__PURE__ */ jsx4(AnimatePresence, { initial: false, children: errors.form && /* @__PURE__ */ jsx4(
|
|
1193
|
+
motion4.p,
|
|
1194
|
+
{
|
|
1195
|
+
role: "alert",
|
|
1196
|
+
initial: { height: 0, opacity: 0 },
|
|
1197
|
+
animate: { height: "auto", opacity: 1 },
|
|
1198
|
+
exit: { height: 0, opacity: 0 },
|
|
1199
|
+
className: "overflow-hidden px-1 text-xs",
|
|
1200
|
+
style: { color: BAD },
|
|
1201
|
+
children: /* @__PURE__ */ jsx4("span", { className: "block pt-3", children: errors.form })
|
|
1202
|
+
}
|
|
1203
|
+
) }),
|
|
1204
|
+
/* @__PURE__ */ jsxs4(
|
|
1205
|
+
motion4.button,
|
|
1206
|
+
{
|
|
1207
|
+
type: "submit",
|
|
1208
|
+
onPointerEnter: () => setCtaHover(true),
|
|
1209
|
+
onPointerLeave: () => setCtaHover(false),
|
|
1210
|
+
whileTap: still || status !== "idle" ? void 0 : { scale: 0.97 },
|
|
1211
|
+
animate: { backgroundColor: status === "done" ? GOOD : INK },
|
|
1212
|
+
transition: { duration: 0.3 },
|
|
1213
|
+
"aria-busy": status === "busy",
|
|
1214
|
+
className: "relative mt-5 flex h-12 w-full cursor-pointer items-center justify-center overflow-hidden rounded-full text-sm font-medium text-white outline-none focus-visible:ring-2 focus-visible:ring-zinc-400 focus-visible:ring-offset-2",
|
|
1215
|
+
children: [
|
|
1216
|
+
/* @__PURE__ */ jsx4(AnimatePresence, { children: status === "busy" && !still && /* @__PURE__ */ jsx4(
|
|
1217
|
+
motion4.span,
|
|
1218
|
+
{
|
|
1219
|
+
"aria-hidden": true,
|
|
1220
|
+
initial: { opacity: 0 },
|
|
1221
|
+
animate: { opacity: 1 },
|
|
1222
|
+
exit: { opacity: 0 },
|
|
1223
|
+
className: "pointer-events-none absolute inset-0 overflow-hidden rounded-[inherit]",
|
|
1224
|
+
children: /* @__PURE__ */ jsx4(
|
|
1225
|
+
motion4.span,
|
|
1226
|
+
{
|
|
1227
|
+
className: "absolute inset-y-0 left-0 w-2/3",
|
|
1228
|
+
style: {
|
|
1229
|
+
background: "linear-gradient(100deg, transparent 0%, rgba(255,255,255,0.16) 50%, transparent 100%)"
|
|
1230
|
+
},
|
|
1231
|
+
initial: { x: "-100%" },
|
|
1232
|
+
animate: { x: "160%" },
|
|
1233
|
+
transition: {
|
|
1234
|
+
duration: 1.4,
|
|
1235
|
+
ease: "easeInOut",
|
|
1236
|
+
repeat: Infinity,
|
|
1237
|
+
repeatDelay: 0.15
|
|
1238
|
+
}
|
|
1239
|
+
}
|
|
1240
|
+
)
|
|
1241
|
+
},
|
|
1242
|
+
"sheen"
|
|
1243
|
+
) }),
|
|
1244
|
+
/* @__PURE__ */ jsx4(AnimatePresence, { children: status === "done" && !still && /* @__PURE__ */ jsx4(
|
|
1245
|
+
motion4.span,
|
|
1246
|
+
{
|
|
1247
|
+
"aria-hidden": true,
|
|
1248
|
+
className: "pointer-events-none absolute left-1/2 top-1/2 size-24 -translate-x-1/2 -translate-y-1/2 rounded-full bg-white/25",
|
|
1249
|
+
initial: { scale: 0.2, opacity: 0.8 },
|
|
1250
|
+
animate: { scale: 5, opacity: 0 },
|
|
1251
|
+
exit: { opacity: 0 },
|
|
1252
|
+
transition: { duration: 0.8, ease: GLIDE }
|
|
1253
|
+
},
|
|
1254
|
+
"ripple"
|
|
1255
|
+
) }),
|
|
1256
|
+
/* @__PURE__ */ jsx4("span", { className: "sr-only", "aria-live": "polite", children: status === "busy" ? copy.busy : status === "done" ? copy.done : "" }),
|
|
1257
|
+
/* @__PURE__ */ jsx4(AnimatePresence, { mode: "popLayout", initial: false, children: /* @__PURE__ */ jsxs4(
|
|
1258
|
+
motion4.span,
|
|
1259
|
+
{
|
|
1260
|
+
initial: still ? false : { y: 18, opacity: 0, filter: "blur(4px)" },
|
|
1261
|
+
animate: { y: 0, opacity: 1, filter: "blur(0px)" },
|
|
1262
|
+
exit: still ? void 0 : { y: -18, opacity: 0, filter: "blur(4px)" },
|
|
1263
|
+
transition: { duration: 0.3, ease: GLIDE },
|
|
1264
|
+
className: "flex items-center gap-2",
|
|
1265
|
+
"aria-hidden": true,
|
|
1266
|
+
children: [
|
|
1267
|
+
status === "idle" && /* @__PURE__ */ jsxs4(Fragment, { children: [
|
|
1268
|
+
/* @__PURE__ */ jsx4(Roll, { dir, children: copy.cta }),
|
|
1269
|
+
/* @__PURE__ */ jsx4(
|
|
1270
|
+
motion4.span,
|
|
1271
|
+
{
|
|
1272
|
+
className: "grid",
|
|
1273
|
+
animate: { x: ctaHover && !still ? 3 : 0 },
|
|
1274
|
+
transition: {
|
|
1275
|
+
type: "spring",
|
|
1276
|
+
stiffness: 500,
|
|
1277
|
+
damping: 24
|
|
1278
|
+
},
|
|
1279
|
+
children: /* @__PURE__ */ jsx4(ArrowRightIcon, { className: "size-4", active: ctaHover })
|
|
1280
|
+
}
|
|
1281
|
+
)
|
|
1282
|
+
] }),
|
|
1283
|
+
status === "busy" && /* @__PURE__ */ jsxs4(Fragment, { children: [
|
|
1284
|
+
/* @__PURE__ */ jsx4(LoaderCircleIcon, { className: "size-4", active: true }),
|
|
1285
|
+
/* @__PURE__ */ jsx4("span", { className: "relative", children: copy.busy }),
|
|
1286
|
+
/* @__PURE__ */ jsx4("span", { className: "-ml-1.5 flex items-end gap-[3px] pb-[3px]", children: [0, 1, 2].map((i) => /* @__PURE__ */ jsx4(
|
|
1287
|
+
motion4.span,
|
|
1288
|
+
{
|
|
1289
|
+
className: "size-[3px] rounded-full bg-white",
|
|
1290
|
+
animate: still ? void 0 : { y: [0, -3, 0], opacity: [0.4, 1, 0.4] },
|
|
1291
|
+
transition: {
|
|
1292
|
+
duration: 0.9,
|
|
1293
|
+
repeat: Infinity,
|
|
1294
|
+
delay: i * 0.15,
|
|
1295
|
+
ease: "easeInOut"
|
|
1296
|
+
}
|
|
1297
|
+
},
|
|
1298
|
+
i
|
|
1299
|
+
)) })
|
|
1300
|
+
] }),
|
|
1301
|
+
status === "done" && /* @__PURE__ */ jsxs4(Fragment, { children: [
|
|
1302
|
+
/* @__PURE__ */ jsx4(
|
|
1303
|
+
motion4.span,
|
|
1304
|
+
{
|
|
1305
|
+
className: "grid",
|
|
1306
|
+
initial: still ? false : { scale: 0.4, rotate: -20 },
|
|
1307
|
+
animate: { scale: 1, rotate: 0 },
|
|
1308
|
+
transition: {
|
|
1309
|
+
type: "spring",
|
|
1310
|
+
stiffness: 500,
|
|
1311
|
+
damping: 16
|
|
1312
|
+
},
|
|
1313
|
+
children: signup ? /* @__PURE__ */ jsx4(CircleCheckIcon, { className: "size-4", active: true }) : (
|
|
1314
|
+
// Signed in: the lock opens.
|
|
1315
|
+
/* @__PURE__ */ jsx4(Unlock, {})
|
|
1316
|
+
)
|
|
1317
|
+
}
|
|
1318
|
+
),
|
|
1319
|
+
copy.done
|
|
1320
|
+
] })
|
|
1321
|
+
]
|
|
1322
|
+
},
|
|
1323
|
+
status
|
|
1324
|
+
) })
|
|
1325
|
+
]
|
|
1326
|
+
}
|
|
1327
|
+
)
|
|
1328
|
+
]
|
|
1329
|
+
}
|
|
1330
|
+
),
|
|
1331
|
+
/* @__PURE__ */ jsxs4("div", { className: "mt-6 flex items-center gap-3 text-xs text-zinc-400", children: [
|
|
1332
|
+
/* @__PURE__ */ jsx4(
|
|
1333
|
+
motion4.span,
|
|
1334
|
+
{
|
|
1335
|
+
className: "h-px flex-1 origin-right bg-[#242423]/[0.08]",
|
|
1336
|
+
initial: still ? false : { scaleX: 0 },
|
|
1337
|
+
animate: seen || still ? { scaleX: 1 } : void 0,
|
|
1338
|
+
transition: { duration: 0.6, ease: GLIDE, delay: 0.3 }
|
|
1339
|
+
}
|
|
1340
|
+
),
|
|
1341
|
+
"or continue with",
|
|
1342
|
+
/* @__PURE__ */ jsx4(
|
|
1343
|
+
motion4.span,
|
|
1344
|
+
{
|
|
1345
|
+
className: "h-px flex-1 origin-left bg-[#242423]/[0.08]",
|
|
1346
|
+
initial: still ? false : { scaleX: 0 },
|
|
1347
|
+
animate: seen || still ? { scaleX: 1 } : void 0,
|
|
1348
|
+
transition: { duration: 0.6, ease: GLIDE, delay: 0.3 }
|
|
1349
|
+
}
|
|
1350
|
+
)
|
|
1351
|
+
] }),
|
|
1352
|
+
/* @__PURE__ */ jsx4("div", { className: "mt-4 flex gap-2", children: PROVIDERS.map((p) => /* @__PURE__ */ jsx4(
|
|
1353
|
+
SocialButton,
|
|
1354
|
+
{
|
|
1355
|
+
provider: p.id,
|
|
1356
|
+
label: p.label,
|
|
1357
|
+
onPress: () => social(p.id),
|
|
1358
|
+
disabled: status === "busy"
|
|
1359
|
+
},
|
|
1360
|
+
p.id
|
|
1361
|
+
)) }),
|
|
1362
|
+
/* @__PURE__ */ jsxs4("p", { className: "mt-6 flex items-center justify-center gap-1.5 text-sm text-zinc-500", children: [
|
|
1363
|
+
/* @__PURE__ */ jsx4(Roll, { dir, children: copy.ask }),
|
|
1364
|
+
/* @__PURE__ */ jsx4(
|
|
1365
|
+
"button",
|
|
1366
|
+
{
|
|
1367
|
+
type: "button",
|
|
1368
|
+
onClick: switchMode,
|
|
1369
|
+
className: "cursor-pointer rounded-md font-medium text-[#242423] outline-none transition-opacity hover:opacity-60 focus-visible:ring-2 focus-visible:ring-zinc-400",
|
|
1370
|
+
children: /* @__PURE__ */ jsx4(Roll, { dir, children: copy.flip })
|
|
1371
|
+
}
|
|
1372
|
+
)
|
|
1373
|
+
] })
|
|
1374
|
+
]
|
|
1375
|
+
}
|
|
1376
|
+
);
|
|
1377
|
+
}
|
|
1378
|
+
);
|
|
1379
|
+
|
|
1380
|
+
export {
|
|
1381
|
+
AuthCard
|
|
1382
|
+
};
|