motion-brew 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +106 -2
- package/dist/account-menu.d.ts +1 -0
- package/dist/account-menu.js +16 -0
- package/dist/action-menu.d.ts +1 -0
- package/dist/action-menu.js +10 -0
- package/dist/activity-grid.d.ts +1 -0
- package/dist/activity-grid.js +14 -0
- package/dist/add-card.d.ts +1 -0
- package/dist/add-card.js +11 -0
- package/dist/amount-slider.d.ts +1 -0
- package/dist/amount-slider.js +10 -0
- package/dist/annotation-text.d.ts +1 -0
- package/dist/annotation-text.js +8 -0
- package/dist/aura-card.d.ts +1 -0
- package/dist/aura-card.js +19 -0
- package/dist/auth-card.d.ts +1 -0
- package/dist/auth-card.js +15 -0
- package/dist/avatar-testimonial.d.ts +1 -0
- package/dist/avatar-testimonial.js +8 -0
- package/dist/backspace-text.d.ts +1 -0
- package/dist/backspace-text.js +8 -0
- package/dist/bell-toggle.d.ts +1 -0
- package/dist/bell-toggle.js +8 -0
- package/dist/bill-list.d.ts +1 -0
- package/dist/bill-list.js +15 -0
- package/dist/binary-text.d.ts +1 -0
- package/dist/binary-text.js +8 -0
- package/dist/blur-accordion.d.ts +1 -0
- package/dist/blur-accordion.js +8 -0
- package/dist/blur-text.d.ts +1 -0
- package/dist/blur-text.js +8 -0
- package/dist/booking-card.d.ts +1 -0
- package/dist/booking-card.js +11 -0
- package/dist/brand-bridge.d.ts +1 -0
- package/dist/brand-bridge.js +12 -0
- package/dist/calendar-agenda.d.ts +1 -0
- package/dist/calendar-agenda.js +12 -0
- package/dist/channel-mix.d.ts +1 -0
- package/dist/channel-mix.js +11 -0
- package/dist/chunk-25254AZA.js +141 -0
- package/dist/chunk-2CIJ5TVW.js +59 -0
- package/dist/chunk-2GXY54MP.js +247 -0
- package/dist/chunk-2IMPUH4H.js +135 -0
- package/dist/chunk-2NRXP4HM.js +371 -0
- package/dist/chunk-2QCWELWT.js +120 -0
- package/dist/chunk-2TQSHVXA.js +12 -0
- package/dist/chunk-327TGRS5.js +75 -0
- package/dist/chunk-3B2RYSTL.js +867 -0
- package/dist/chunk-3RKCLFY5.js +634 -0
- package/dist/chunk-4BVCRIR4.js +51 -0
- package/dist/chunk-4CKKTOJK.js +366 -0
- package/dist/chunk-4IGMH34C.js +319 -0
- package/dist/chunk-4PI6UNIZ.js +464 -0
- package/dist/chunk-4RHQKP2P.js +664 -0
- package/dist/chunk-5IAO5YQA.js +373 -0
- package/dist/chunk-5MP5QNFG.js +560 -0
- package/dist/chunk-62RBYLIN.js +128 -0
- package/dist/chunk-6FTC5OQF.js +384 -0
- package/dist/chunk-6GAKTS3D.js +329 -0
- package/dist/chunk-6GRDT3OE.js +124 -0
- package/dist/chunk-6JQY7AX5.js +307 -0
- package/dist/chunk-6LOUA6XB.js +237 -0
- package/dist/chunk-6V6OTHNE.js +299 -0
- package/dist/chunk-6VZIT62Q.js +142 -0
- package/dist/chunk-6WSY725U.js +387 -0
- package/dist/chunk-6XSJC7M7.js +764 -0
- package/dist/chunk-75DEIDBX.js +129 -0
- package/dist/chunk-7FQ4XU7E.js +127 -0
- package/dist/chunk-7IL5WRJR.js +615 -0
- package/dist/chunk-7MPC3RUE.js +1462 -0
- package/dist/chunk-7PS2W7PU.js +112 -0
- package/dist/chunk-AATJOPNH.js +86 -0
- package/dist/chunk-ADXWPWJR.js +209 -0
- package/dist/chunk-ANNDITUM.js +47 -0
- package/dist/chunk-AQN6BHWC.js +325 -0
- package/dist/chunk-AVOS73MR.js +537 -0
- package/dist/chunk-B4LNE6YK.js +473 -0
- package/dist/chunk-BHUNLG6S.js +142 -0
- package/dist/chunk-BN4MA5UY.js +127 -0
- package/dist/chunk-BPE43MTT.js +183 -0
- package/dist/chunk-BPF3FQRS.js +590 -0
- package/dist/chunk-BRTZFUFR.js +503 -0
- package/dist/chunk-BS4ZFJKW.js +121 -0
- package/dist/chunk-BXAKCY6X.js +86 -0
- package/dist/chunk-CEQ56RF6.js +129 -0
- package/dist/chunk-CGDKH6BB.js +902 -0
- package/dist/chunk-CMTGYFT7.js +395 -0
- package/dist/chunk-DD55JZOI.js +257 -0
- package/dist/chunk-DQUXBNSH.js +412 -0
- package/dist/chunk-DR4DUSNF.js +265 -0
- package/dist/chunk-EDPCK6VU.js +419 -0
- package/dist/chunk-EEQ2WHTN.js +142 -0
- package/dist/chunk-ERVE5RSN.js +793 -0
- package/dist/chunk-FFUBTMDC.js +303 -0
- package/dist/chunk-FK4TZ5OW.js +29 -0
- package/dist/chunk-FXI6NHNR.js +1033 -0
- package/dist/chunk-G3XH7YT2.js +122 -0
- package/dist/chunk-G7KDH7ME.js +559 -0
- package/dist/chunk-GRUDTDLX.js +534 -0
- package/dist/chunk-GUQINNWS.js +770 -0
- package/dist/chunk-GV3Q4D2N.js +320 -0
- package/dist/chunk-GVWOJJ3T.js +129 -0
- package/dist/chunk-H2JOCJWM.js +125 -0
- package/dist/chunk-H7XKIWHA.js +135 -0
- package/dist/chunk-HHXK3NAH.js +1382 -0
- package/dist/chunk-HJINEW5T.js +3289 -0
- package/dist/chunk-HK34LPY6.js +112 -0
- package/dist/chunk-HLJXNSMM.js +320 -0
- package/dist/chunk-HPJJAQ5L.js +406 -0
- package/dist/chunk-HYSXVKZB.js +213 -0
- package/dist/chunk-I45D4XV4.js +124 -0
- package/dist/chunk-I7KTTOOJ.js +113 -0
- package/dist/chunk-IDJOKV6S.js +67 -0
- package/dist/chunk-IGI6OLRX.js +138 -0
- package/dist/chunk-IKM7EEYN.js +117 -0
- package/dist/chunk-INV5FI6O.js +394 -0
- package/dist/chunk-IUBUAIQZ.js +321 -0
- package/dist/chunk-IYZOANPX.js +159 -0
- package/dist/chunk-JFTD3YAL.js +163 -0
- package/dist/chunk-JGEV462J.js +235 -0
- package/dist/chunk-JHT6RCGY.js +127 -0
- package/dist/chunk-JJEWOQYQ.js +141 -0
- package/dist/chunk-JT2EIO5M.js +129 -0
- package/dist/chunk-K3HQEHJ6.js +663 -0
- package/dist/chunk-K6ET254T.js +398 -0
- package/dist/chunk-LBRMNY72.js +159 -0
- package/dist/chunk-LNBTWX4J.js +114 -0
- package/dist/chunk-LS4FP6SI.js +37 -0
- package/dist/chunk-M22UY764.js +135 -0
- package/dist/chunk-M4YMNHPI.js +204 -0
- package/dist/chunk-MGBS5LRY.js +412 -0
- package/dist/chunk-MKJOBHPQ.js +215 -0
- package/dist/chunk-MQDOFNKI.js +818 -0
- package/dist/chunk-MUDKP3LK.js +120 -0
- package/dist/chunk-N4ZNBWKO.js +118 -0
- package/dist/chunk-NB5CB65C.js +137 -0
- package/dist/chunk-NCEAUODT.js +172 -0
- package/dist/chunk-NGX34WJO.js +335 -0
- package/dist/chunk-NIQFSLPC.js +114 -0
- package/dist/chunk-NJWTPRGJ.js +806 -0
- package/dist/chunk-NNKC6NEH.js +128 -0
- package/dist/chunk-NY7M42KC.js +112 -0
- package/dist/chunk-O7G4ISAC.js +277 -0
- package/dist/chunk-O7QYPA6X.js +700 -0
- package/dist/chunk-OEDHLZ4T.js +651 -0
- package/dist/chunk-OGQQ2FZZ.js +114 -0
- package/dist/chunk-OINRQUYT.js +186 -0
- package/dist/chunk-OMJBDFEW.js +506 -0
- package/dist/chunk-ONUWTWKP.js +345 -0
- package/dist/chunk-OS6REIBR.js +154 -0
- package/dist/chunk-OUVP5VKH.js +702 -0
- package/dist/chunk-OVEBMZHA.js +573 -0
- package/dist/chunk-PJ5EVDNN.js +157 -0
- package/dist/chunk-PKM6B4JJ.js +108 -0
- package/dist/chunk-PV3OYTMT.js +596 -0
- package/dist/chunk-RBSLSNMW.js +444 -0
- package/dist/chunk-RE74K7KI.js +370 -0
- package/dist/chunk-RP22J4NX.js +247 -0
- package/dist/chunk-RU2Q2XVP.js +287 -0
- package/dist/chunk-RZ2UCZ3C.js +212 -0
- package/dist/chunk-SBDTC4UY.js +367 -0
- package/dist/chunk-SKEE23KW.js +137 -0
- package/dist/chunk-SOW7S7ET.js +1103 -0
- package/dist/chunk-SQ7F3VBU.js +1069 -0
- package/dist/chunk-SSWKGVRI.js +172 -0
- package/dist/chunk-SVK4MQMV.js +267 -0
- package/dist/chunk-SZAHSOSQ.js +932 -0
- package/dist/chunk-T2TSMDP3.js +1022 -0
- package/dist/chunk-TAFVHTWV.js +607 -0
- package/dist/chunk-TNLY4CSA.js +523 -0
- package/dist/chunk-TP3XIHL5.js +787 -0
- package/dist/chunk-TQ6KSDDE.js +682 -0
- package/dist/chunk-TRWXLGL7.js +885 -0
- package/dist/chunk-TTNORJF5.js +908 -0
- package/dist/chunk-UD5OQ2T3.js +117 -0
- package/dist/chunk-UDFBQWUH.js +333 -0
- package/dist/chunk-USRMXCZD.js +625 -0
- package/dist/chunk-VAPHE4G4.js +442 -0
- package/dist/chunk-VEC5QAOY.js +104 -0
- package/dist/chunk-VIR5NV5W.js +118 -0
- package/dist/chunk-VT2FNWQF.js +240 -0
- package/dist/chunk-VX4XEYQN.js +837 -0
- package/dist/chunk-W46CBUFX.js +425 -0
- package/dist/chunk-WE7VCUOA.js +130 -0
- package/dist/chunk-WFWO2EIW.js +120 -0
- package/dist/chunk-WGIT4MMH.js +350 -0
- package/dist/chunk-WOR2GMMN.js +114 -0
- package/dist/chunk-WTTDB475.js +54 -0
- package/dist/chunk-WWWKMU4Y.js +184 -0
- package/dist/chunk-XDR4FO6Q.js +124 -0
- package/dist/chunk-XH6YNONO.js +112 -0
- package/dist/chunk-XL4L2J6N.js +129 -0
- package/dist/chunk-Y6MTC46Q.js +684 -0
- package/dist/chunk-YFLQ4HPJ.js +119 -0
- package/dist/chunk-YGONLKWH.js +180 -0
- package/dist/chunk-YU6B7YRO.js +128 -0
- package/dist/chunk-YURGXJSP.js +102 -0
- package/dist/chunk-YVYYDPE2.js +124 -0
- package/dist/chunk-ZPGAMYOQ.js +1 -0
- package/dist/chunk-ZWGOAY27.js +234 -0
- package/dist/column-card.d.ts +1 -0
- package/dist/column-card.js +8 -0
- package/dist/components/account-menu/account-menu.d.ts +56 -0
- package/dist/components/account-menu/index.d.ts +1 -0
- package/dist/components/action-menu/action-menu.d.ts +45 -0
- package/dist/components/action-menu/index.d.ts +1 -0
- package/dist/components/activity-grid/activity-grid.d.ts +54 -0
- package/dist/components/activity-grid/index.d.ts +1 -0
- package/dist/components/add-card/add-card.d.ts +41 -0
- package/dist/components/add-card/index.d.ts +1 -0
- package/dist/components/amount-slider/amount-slider.d.ts +43 -0
- package/dist/components/amount-slider/index.d.ts +1 -0
- package/dist/components/annotation-text/annotation-text.d.ts +27 -0
- package/dist/components/annotation-text/index.d.ts +1 -0
- package/dist/components/aura-card/aura-card.d.ts +63 -0
- package/dist/components/aura-card/index.d.ts +1 -0
- package/dist/components/auth-card/auth-card.d.ts +51 -0
- package/dist/components/auth-card/index.d.ts +1 -0
- package/dist/components/avatar-testimonial/avatar-testimonial.d.ts +39 -0
- package/dist/components/avatar-testimonial/index.d.ts +1 -0
- package/dist/components/backspace-text/backspace-text.d.ts +27 -0
- package/dist/components/backspace-text/index.d.ts +1 -0
- package/dist/components/bell-toggle/bell-toggle.d.ts +33 -0
- package/dist/components/bell-toggle/index.d.ts +1 -0
- package/dist/components/bill-list/bill-list.d.ts +49 -0
- package/dist/components/bill-list/index.d.ts +1 -0
- package/dist/components/binary-text/binary-text.d.ts +24 -0
- package/dist/components/binary-text/index.d.ts +1 -0
- package/dist/components/blur-accordion/blur-accordion.d.ts +35 -0
- package/dist/components/blur-accordion/index.d.ts +1 -0
- package/dist/components/blur-text/blur-text.d.ts +33 -0
- package/dist/components/blur-text/index.d.ts +1 -0
- package/dist/components/booking-card/booking-card.d.ts +56 -0
- package/dist/components/booking-card/index.d.ts +1 -0
- package/dist/components/brand-bridge/brand-bridge.d.ts +63 -0
- package/dist/components/brand-bridge/index.d.ts +1 -0
- package/dist/components/calendar-agenda/calendar-agenda.d.ts +64 -0
- package/dist/components/calendar-agenda/index.d.ts +1 -0
- package/dist/components/channel-mix/channel-mix.d.ts +63 -0
- package/dist/components/channel-mix/index.d.ts +1 -0
- package/dist/components/column-card/column-card.d.ts +39 -0
- package/dist/components/column-card/index.d.ts +1 -0
- package/dist/components/contact-card/contact-card.d.ts +44 -0
- package/dist/components/contact-card/index.d.ts +1 -0
- package/dist/components/context-menu/context-menu.d.ts +59 -0
- package/dist/components/context-menu/index.d.ts +1 -0
- package/dist/components/contour-feature-card/contour-feature-card.d.ts +36 -0
- package/dist/components/contour-feature-card/index.d.ts +1 -0
- package/dist/components/contour-lines/contour-lines.d.ts +34 -0
- package/dist/components/contour-lines/index.d.ts +1 -0
- package/dist/components/decay-card/decay-card.d.ts +44 -0
- package/dist/components/decay-card/index.d.ts +1 -0
- package/dist/components/deploy-streak/deploy-streak.d.ts +30 -0
- package/dist/components/deploy-streak/index.d.ts +1 -0
- package/dist/components/depth-carousel/depth-carousel.d.ts +42 -0
- package/dist/components/depth-carousel/index.d.ts +1 -0
- package/dist/components/device-traffic/device-traffic.d.ts +59 -0
- package/dist/components/device-traffic/index.d.ts +1 -0
- package/dist/components/download-button/download-button.d.ts +36 -0
- package/dist/components/download-button/index.d.ts +1 -0
- package/dist/components/event-card/event-card.d.ts +55 -0
- package/dist/components/event-card/index.d.ts +1 -0
- package/dist/components/file-drop/file-drop.d.ts +46 -0
- package/dist/components/file-drop/index.d.ts +1 -0
- package/dist/components/flip-words/flip-words.d.ts +26 -0
- package/dist/components/flip-words/index.d.ts +1 -0
- package/dist/components/flux-card/flux-card.d.ts +56 -0
- package/dist/components/flux-card/index.d.ts +1 -0
- package/dist/components/fuse-button/fuse-button.d.ts +75 -0
- package/dist/components/fuse-button/index.d.ts +1 -0
- package/dist/components/globe-card/globe-card.d.ts +46 -0
- package/dist/components/globe-card/index.d.ts +1 -0
- package/dist/components/goal-gauge/goal-gauge.d.ts +47 -0
- package/dist/components/goal-gauge/index.d.ts +1 -0
- package/dist/components/gradient-card/gradient-card.d.ts +56 -0
- package/dist/components/gradient-card/index.d.ts +1 -0
- package/dist/components/gradient-text/gradient-text.d.ts +22 -0
- package/dist/components/gradient-text/index.d.ts +1 -0
- package/dist/components/gravity-tag-pile/gravity-tag-pile.d.ts +69 -0
- package/dist/components/gravity-tag-pile/index.d.ts +1 -0
- package/dist/components/growth-stream/growth-stream.d.ts +47 -0
- package/dist/components/growth-stream/index.d.ts +1 -0
- package/dist/components/highlight-text/highlight-text.d.ts +22 -0
- package/dist/components/highlight-text/index.d.ts +1 -0
- package/dist/components/hold-to-confirm/hold-to-confirm.d.ts +32 -0
- package/dist/components/hold-to-confirm/index.d.ts +1 -0
- package/dist/components/infinite-gallery/index.d.ts +1 -0
- package/dist/components/infinite-gallery/infinite-gallery.d.ts +73 -0
- package/dist/components/integration-hub/index.d.ts +1 -0
- package/dist/components/integration-hub/integration-hub.d.ts +40 -0
- package/dist/components/liquid-card/index.d.ts +1 -0
- package/dist/components/liquid-card/liquid-card.d.ts +66 -0
- package/dist/components/liquid-metal-card/index.d.ts +1 -0
- package/dist/components/liquid-metal-card/liquid-metal-card.d.ts +45 -0
- package/dist/components/liquid-tabs/index.d.ts +1 -0
- package/dist/components/liquid-tabs/liquid-tabs.d.ts +47 -0
- package/dist/components/magnetic-button/index.d.ts +1 -0
- package/dist/components/magnetic-button/magnetic-button.d.ts +46 -0
- package/dist/components/magnetic-flow/index.d.ts +1 -0
- package/dist/components/magnetic-flow/magnetic-flow.d.ts +35 -0
- package/dist/components/message-composer/index.d.ts +1 -0
- package/dist/components/message-composer/message-composer.d.ts +79 -0
- package/dist/components/metal-card-stack/index.d.ts +1 -0
- package/dist/components/metal-card-stack/metal-card-stack.d.ts +49 -0
- package/dist/components/metric-split/index.d.ts +1 -0
- package/dist/components/metric-split/metric-split.d.ts +45 -0
- package/dist/components/mix-chart/index.d.ts +1 -0
- package/dist/components/mix-chart/mix-chart.d.ts +59 -0
- package/dist/components/month-calendar/index.d.ts +1 -0
- package/dist/components/month-calendar/month-calendar.d.ts +34 -0
- package/dist/components/morph-search/index.d.ts +1 -0
- package/dist/components/morph-search/morph-search.d.ts +33 -0
- package/dist/components/orbit-card/index.d.ts +1 -0
- package/dist/components/orbit-card/orbit-card.d.ts +50 -0
- package/dist/components/otp-code/index.d.ts +1 -0
- package/dist/components/otp-code/otp-code.d.ts +61 -0
- package/dist/components/particle-card/index.d.ts +1 -0
- package/dist/components/particle-card/particle-card.d.ts +57 -0
- package/dist/components/payment-form/index.d.ts +1 -0
- package/dist/components/payment-form/payment-form.d.ts +54 -0
- package/dist/components/pill-tabs/index.d.ts +1 -0
- package/dist/components/pill-tabs/pill-tabs.d.ts +39 -0
- package/dist/components/pixel-blast/index.d.ts +1 -0
- package/dist/components/pixel-blast/pixel-blast.d.ts +41 -0
- package/dist/components/pixel-feature-card/index.d.ts +1 -0
- package/dist/components/pixel-feature-card/pixel-feature-card.d.ts +43 -0
- package/dist/components/pixel-scroll/index.d.ts +1 -0
- package/dist/components/pixel-scroll/pixel-scroll.d.ts +64 -0
- package/dist/components/pricing-card/index.d.ts +1 -0
- package/dist/components/pricing-card/pricing-card.d.ts +60 -0
- package/dist/components/prism-carousel/index.d.ts +1 -0
- package/dist/components/prism-carousel/prism-carousel.d.ts +54 -0
- package/dist/components/prism-flow/index.d.ts +1 -0
- package/dist/components/prism-flow/prism-flow.d.ts +41 -0
- package/dist/components/privacy-banner/index.d.ts +1 -0
- package/dist/components/privacy-banner/privacy-banner.d.ts +41 -0
- package/dist/components/profile-card/index.d.ts +1 -0
- package/dist/components/profile-card/profile-card.d.ts +52 -0
- package/dist/components/profile-menu/index.d.ts +1 -0
- package/dist/components/profile-menu/profile-menu.d.ts +43 -0
- package/dist/components/project-index/index.d.ts +1 -0
- package/dist/components/project-index/project-index.d.ts +65 -0
- package/dist/components/prompt-input/index.d.ts +1 -0
- package/dist/components/prompt-input/prompt-input.d.ts +49 -0
- package/dist/components/quota-gauge/index.d.ts +1 -0
- package/dist/components/quota-gauge/quota-gauge.d.ts +30 -0
- package/dist/components/range-chart/index.d.ts +1 -0
- package/dist/components/range-chart/range-chart.d.ts +47 -0
- package/dist/components/reaction-card/index.d.ts +1 -0
- package/dist/components/reaction-card/reaction-card.d.ts +60 -0
- package/dist/components/recap-card/index.d.ts +1 -0
- package/dist/components/recap-card/recap-card.d.ts +61 -0
- package/dist/components/receipt-button/index.d.ts +1 -0
- package/dist/components/receipt-button/receipt-button.d.ts +53 -0
- package/dist/components/ribbon-gallery/index.d.ts +1 -0
- package/dist/components/ribbon-gallery/ribbon-gallery.d.ts +61 -0
- package/dist/components/roadmap-card/index.d.ts +1 -0
- package/dist/components/roadmap-card/roadmap-card.d.ts +38 -0
- package/dist/components/rolling-card-stack/index.d.ts +1 -0
- package/dist/components/rolling-card-stack/rolling-card-stack.d.ts +53 -0
- package/dist/components/rolling-stepper/index.d.ts +1 -0
- package/dist/components/rolling-stepper/rolling-stepper.d.ts +33 -0
- package/dist/components/rotating-text/index.d.ts +1 -0
- package/dist/components/rotating-text/rotating-text.d.ts +25 -0
- package/dist/components/score-card/index.d.ts +1 -0
- package/dist/components/score-card/score-card.d.ts +40 -0
- package/dist/components/search-modal/index.d.ts +1 -0
- package/dist/components/search-modal/search-modal.d.ts +62 -0
- package/dist/components/shimmer-text/index.d.ts +1 -0
- package/dist/components/shimmer-text/shimmer-text.d.ts +22 -0
- package/dist/components/sidebar-nav/index.d.ts +1 -0
- package/dist/components/sidebar-nav/sidebar-nav.d.ts +71 -0
- package/dist/components/slide-commit/index.d.ts +1 -0
- package/dist/components/slide-commit/slide-commit.d.ts +39 -0
- package/dist/components/spatial-gallery/index.d.ts +1 -0
- package/dist/components/spatial-gallery/spatial-gallery.d.ts +88 -0
- package/dist/components/spending-meter/index.d.ts +1 -0
- package/dist/components/spending-meter/spending-meter.d.ts +41 -0
- package/dist/components/tab-bar/index.d.ts +1 -0
- package/dist/components/tab-bar/tab-bar.d.ts +44 -0
- package/dist/components/team-member-card/index.d.ts +1 -0
- package/dist/components/team-member-card/team-member-card.d.ts +66 -0
- package/dist/components/team-morph/index.d.ts +1 -0
- package/dist/components/team-morph/team-morph.d.ts +38 -0
- package/dist/components/tilt-card/index.d.ts +1 -0
- package/dist/components/tilt-card/tilt-card.d.ts +27 -0
- package/dist/components/tilt-carousel/index.d.ts +1 -0
- package/dist/components/tilt-carousel/tilt-carousel.d.ts +43 -0
- package/dist/components/toast-stack/index.d.ts +1 -0
- package/dist/components/toast-stack/toast-stack.d.ts +57 -0
- package/dist/components/usage-ring/index.d.ts +1 -0
- package/dist/components/usage-ring/usage-ring.d.ts +40 -0
- package/dist/components/verify-flow/index.d.ts +1 -0
- package/dist/components/verify-flow/verify-flow.d.ts +49 -0
- package/dist/components/voice-prompt/index.d.ts +1 -0
- package/dist/components/voice-prompt/voice-prompt.d.ts +55 -0
- package/dist/components/wallet-card/index.d.ts +1 -0
- package/dist/components/wallet-card/wallet-card.d.ts +54 -0
- package/dist/components/wave-text/index.d.ts +1 -0
- package/dist/components/wave-text/wave-text.d.ts +27 -0
- package/dist/contact-card.d.ts +1 -0
- package/dist/contact-card.js +12 -0
- package/dist/context-menu.d.ts +1 -0
- package/dist/context-menu.js +17 -0
- package/dist/contour-feature-card.d.ts +1 -0
- package/dist/contour-feature-card.js +9 -0
- package/dist/contour-lines.d.ts +1 -0
- package/dist/contour-lines.js +8 -0
- package/dist/decay-card.d.ts +1 -0
- package/dist/decay-card.js +8 -0
- package/dist/deploy-streak.d.ts +1 -0
- package/dist/deploy-streak.js +9 -0
- package/dist/depth-carousel.d.ts +1 -0
- package/dist/depth-carousel.js +8 -0
- package/dist/device-traffic.d.ts +1 -0
- package/dist/device-traffic.js +12 -0
- package/dist/download-button.d.ts +1 -0
- package/dist/download-button.js +8 -0
- package/dist/event-card.d.ts +1 -0
- package/dist/event-card.js +12 -0
- package/dist/file-drop.d.ts +1 -0
- package/dist/file-drop.js +12 -0
- package/dist/flip-words.d.ts +1 -0
- package/dist/flip-words.js +8 -0
- package/dist/flux-card.d.ts +1 -0
- package/dist/flux-card.js +13 -0
- package/dist/fuse-button.d.ts +1 -0
- package/dist/fuse-button.js +9 -0
- package/dist/globe-card.d.ts +1 -0
- package/dist/globe-card.js +8 -0
- package/dist/goal-gauge.d.ts +1 -0
- package/dist/goal-gauge.js +9 -0
- package/dist/gradient-card.d.ts +1 -0
- package/dist/gradient-card.js +8 -0
- package/dist/gradient-text.d.ts +1 -0
- package/dist/gradient-text.js +8 -0
- package/dist/gravity-tag-pile.d.ts +1 -0
- package/dist/gravity-tag-pile.js +9 -0
- package/dist/growth-stream.d.ts +1 -0
- package/dist/growth-stream.js +10 -0
- package/dist/highlight-text.d.ts +1 -0
- package/dist/highlight-text.js +8 -0
- package/dist/hold-to-confirm.d.ts +1 -0
- package/dist/hold-to-confirm.js +8 -0
- package/dist/icons/activity.d.ts +15 -0
- package/dist/icons/archive.d.ts +15 -0
- package/dist/icons/arrow-down-right.d.ts +15 -0
- package/dist/icons/arrow-down.d.ts +15 -0
- package/dist/icons/arrow-right.d.ts +15 -0
- package/dist/icons/arrow-up-right.d.ts +15 -0
- package/dist/icons/arrow-up.d.ts +15 -0
- package/dist/icons/at-sign.d.ts +15 -0
- package/dist/icons/attach-file.d.ts +15 -0
- package/dist/icons/badge-alert.d.ts +15 -0
- package/dist/icons/bell.d.ts +15 -0
- package/dist/icons/bold.d.ts +15 -0
- package/dist/icons/bookmark.d.ts +15 -0
- package/dist/icons/bot.d.ts +15 -0
- package/dist/icons/calendar-check-2.d.ts +15 -0
- package/dist/icons/calendar-check.d.ts +15 -0
- package/dist/icons/calendar-days.d.ts +15 -0
- package/dist/icons/chart-line.d.ts +15 -0
- package/dist/icons/chart-pie.d.ts +15 -0
- package/dist/icons/check.d.ts +15 -0
- package/dist/icons/chevron-down.d.ts +15 -0
- package/dist/icons/chevron-left.d.ts +15 -0
- package/dist/icons/chevron-right.d.ts +15 -0
- package/dist/icons/circle-check.d.ts +15 -0
- package/dist/icons/circle-dollar-sign.d.ts +15 -0
- package/dist/icons/clipboard-check.d.ts +15 -0
- package/dist/icons/clock.d.ts +15 -0
- package/dist/icons/cloud-upload.d.ts +15 -0
- package/dist/icons/compass.d.ts +15 -0
- package/dist/icons/contrast.d.ts +15 -0
- package/dist/icons/copy.d.ts +15 -0
- package/dist/icons/credit-card.d.ts +15 -0
- package/dist/icons/delete.d.ts +15 -0
- package/dist/icons/download.d.ts +15 -0
- package/dist/icons/dribbble.d.ts +15 -0
- package/dist/icons/earth.d.ts +15 -0
- package/dist/icons/eye-off.d.ts +15 -0
- package/dist/icons/eye.d.ts +15 -0
- package/dist/icons/feather.d.ts +15 -0
- package/dist/icons/figma.d.ts +15 -0
- package/dist/icons/file-text.d.ts +16 -0
- package/dist/icons/flame.d.ts +15 -0
- package/dist/icons/folder-input.d.ts +15 -0
- package/dist/icons/folder-open.d.ts +15 -0
- package/dist/icons/folders.d.ts +15 -0
- package/dist/icons/github.d.ts +15 -0
- package/dist/icons/hand-coins.d.ts +15 -0
- package/dist/icons/heart.d.ts +15 -0
- package/dist/icons/history.d.ts +15 -0
- package/dist/icons/home.d.ts +15 -0
- package/dist/icons/hourglass.d.ts +15 -0
- package/dist/icons/instagram.d.ts +15 -0
- package/dist/icons/italic.d.ts +15 -0
- package/dist/icons/layout-grid.d.ts +15 -0
- package/dist/icons/link.d.ts +15 -0
- package/dist/icons/linkedin.d.ts +15 -0
- package/dist/icons/loader-circle.d.ts +15 -0
- package/dist/icons/lock-keyhole-open.d.ts +15 -0
- package/dist/icons/lock-keyhole.d.ts +15 -0
- package/dist/icons/lock.d.ts +15 -0
- package/dist/icons/logout.d.ts +15 -0
- package/dist/icons/mail-check.d.ts +15 -0
- package/dist/icons/map-pin.d.ts +15 -0
- package/dist/icons/message-circle.d.ts +15 -0
- package/dist/icons/mic.d.ts +15 -0
- package/dist/icons/monitor-check.d.ts +15 -0
- package/dist/icons/moon.d.ts +15 -0
- package/dist/icons/palette.d.ts +15 -0
- package/dist/icons/panel-left-close.d.ts +15 -0
- package/dist/icons/panel-left-open.d.ts +15 -0
- package/dist/icons/plug-zap.d.ts +15 -0
- package/dist/icons/plus.d.ts +15 -0
- package/dist/icons/radio.d.ts +15 -0
- package/dist/icons/receipt.d.ts +15 -0
- package/dist/icons/refresh-cw.d.ts +15 -0
- package/dist/icons/rotate-ccw.d.ts +15 -0
- package/dist/icons/search.d.ts +15 -0
- package/dist/icons/send.d.ts +15 -0
- package/dist/icons/settings.d.ts +15 -0
- package/dist/icons/shield-check.d.ts +15 -0
- package/dist/icons/smartphone-nfc.d.ts +15 -0
- package/dist/icons/smile.d.ts +15 -0
- package/dist/icons/sparkles.d.ts +15 -0
- package/dist/icons/square-pen.d.ts +15 -0
- package/dist/icons/sun.d.ts +15 -0
- package/dist/icons/terminal.d.ts +15 -0
- package/dist/icons/timer.d.ts +15 -0
- package/dist/icons/trending-up.d.ts +15 -0
- package/dist/icons/twitter.d.ts +15 -0
- package/dist/icons/underline.d.ts +15 -0
- package/dist/icons/undo.d.ts +15 -0
- package/dist/icons/user-check.d.ts +15 -0
- package/dist/icons/user-plus.d.ts +15 -0
- package/dist/icons/user-round-plus.d.ts +15 -0
- package/dist/icons/user.d.ts +15 -0
- package/dist/icons/users.d.ts +15 -0
- package/dist/icons/wifi.d.ts +15 -0
- package/dist/icons/workflow.d.ts +15 -0
- package/dist/icons/x.d.ts +15 -0
- package/dist/icons/zap.d.ts +15 -0
- package/dist/index.d.ts +100 -0
- package/dist/index.js +472 -0
- package/dist/infinite-gallery.d.ts +1 -0
- package/dist/infinite-gallery.js +9 -0
- package/dist/integration-hub.d.ts +1 -0
- package/dist/integration-hub.js +8 -0
- package/dist/lib/cn.d.ts +3 -0
- package/dist/liquid-card.d.ts +1 -0
- package/dist/liquid-card.js +10 -0
- package/dist/liquid-metal-card.d.ts +1 -0
- package/dist/liquid-metal-card.js +8 -0
- package/dist/liquid-tabs.d.ts +1 -0
- package/dist/liquid-tabs.js +14 -0
- package/dist/magnetic-button.d.ts +1 -0
- package/dist/magnetic-button.js +8 -0
- package/dist/magnetic-flow.d.ts +1 -0
- package/dist/magnetic-flow.js +8 -0
- package/dist/message-composer.d.ts +1 -0
- package/dist/message-composer.js +20 -0
- package/dist/metal-card-stack.d.ts +1 -0
- package/dist/metal-card-stack.js +8 -0
- package/dist/metric-split.d.ts +1 -0
- package/dist/metric-split.js +9 -0
- package/dist/mix-chart.d.ts +1 -0
- package/dist/mix-chart.js +9 -0
- package/dist/month-calendar.d.ts +1 -0
- package/dist/month-calendar.js +10 -0
- package/dist/morph-search.d.ts +1 -0
- package/dist/morph-search.js +10 -0
- package/dist/orbit-card.d.ts +1 -0
- package/dist/orbit-card.js +8 -0
- package/dist/otp-code.d.ts +1 -0
- package/dist/otp-code.js +17 -0
- package/dist/particle-card.d.ts +1 -0
- package/dist/particle-card.js +8 -0
- package/dist/payment-form.d.ts +1 -0
- package/dist/payment-form.js +8 -0
- package/dist/pill-tabs.d.ts +1 -0
- package/dist/pill-tabs.js +9 -0
- package/dist/pixel-blast.d.ts +1 -0
- package/dist/pixel-blast.js +8 -0
- package/dist/pixel-feature-card.d.ts +1 -0
- package/dist/pixel-feature-card.js +9 -0
- package/dist/pixel-scroll.d.ts +1 -0
- package/dist/pixel-scroll.js +8 -0
- package/dist/pricing-card.d.ts +1 -0
- package/dist/pricing-card.js +14 -0
- package/dist/prism-carousel.d.ts +1 -0
- package/dist/prism-carousel.js +8 -0
- package/dist/prism-flow.d.ts +1 -0
- package/dist/prism-flow.js +8 -0
- package/dist/privacy-banner.d.ts +1 -0
- package/dist/privacy-banner.js +8 -0
- package/dist/profile-card.d.ts +1 -0
- package/dist/profile-card.js +14 -0
- package/dist/profile-menu.d.ts +1 -0
- package/dist/profile-menu.js +21 -0
- package/dist/project-index.d.ts +1 -0
- package/dist/project-index.js +9 -0
- package/dist/prompt-input.d.ts +1 -0
- package/dist/prompt-input.js +14 -0
- package/dist/quota-gauge.d.ts +1 -0
- package/dist/quota-gauge.js +9 -0
- package/dist/range-chart.d.ts +1 -0
- package/dist/range-chart.js +8 -0
- package/dist/reaction-card.d.ts +1 -0
- package/dist/reaction-card.js +8 -0
- package/dist/recap-card.d.ts +1 -0
- package/dist/recap-card.js +15 -0
- package/dist/receipt-button.d.ts +1 -0
- package/dist/receipt-button.js +8 -0
- package/dist/ribbon-gallery.d.ts +1 -0
- package/dist/ribbon-gallery.js +8 -0
- package/dist/roadmap-card.d.ts +1 -0
- package/dist/roadmap-card.js +11 -0
- package/dist/rolling-card-stack.d.ts +1 -0
- package/dist/rolling-card-stack.js +8 -0
- package/dist/rolling-stepper.d.ts +1 -0
- package/dist/rolling-stepper.js +8 -0
- package/dist/rotating-text.d.ts +1 -0
- package/dist/rotating-text.js +9 -0
- package/dist/score-card.d.ts +1 -0
- package/dist/score-card.js +10 -0
- package/dist/search-modal.d.ts +1 -0
- package/dist/search-modal.js +16 -0
- package/dist/shimmer-text.d.ts +1 -0
- package/dist/shimmer-text.js +8 -0
- package/dist/sidebar-nav.d.ts +1 -0
- package/dist/sidebar-nav.js +19 -0
- package/dist/slide-commit.d.ts +1 -0
- package/dist/slide-commit.js +9 -0
- package/dist/spatial-gallery.d.ts +1 -0
- package/dist/spatial-gallery.js +8 -0
- package/dist/spending-meter.d.ts +1 -0
- package/dist/spending-meter.js +9 -0
- package/dist/tab-bar.d.ts +1 -0
- package/dist/tab-bar.js +18 -0
- package/dist/team-member-card.d.ts +1 -0
- package/dist/team-member-card.js +14 -0
- package/dist/team-morph.d.ts +1 -0
- package/dist/team-morph.js +11 -0
- package/dist/tilt-card.d.ts +1 -0
- package/dist/tilt-card.js +8 -0
- package/dist/tilt-carousel.d.ts +1 -0
- package/dist/tilt-carousel.js +8 -0
- package/dist/toast-stack.d.ts +1 -0
- package/dist/toast-stack.js +13 -0
- package/dist/usage-ring.d.ts +1 -0
- package/dist/usage-ring.js +9 -0
- package/dist/verify-flow.d.ts +1 -0
- package/dist/verify-flow.js +10 -0
- package/dist/voice-prompt.d.ts +1 -0
- package/dist/voice-prompt.js +14 -0
- package/dist/wallet-card.d.ts +1 -0
- package/dist/wallet-card.js +15 -0
- package/dist/wave-text.d.ts +1 -0
- package/dist/wave-text.js +8 -0
- package/package.json +111 -4
|
@@ -0,0 +1,770 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
GithubIcon
|
|
4
|
+
} from "./chunk-NCEAUODT.js";
|
|
5
|
+
import {
|
|
6
|
+
LockKeyholeIcon
|
|
7
|
+
} from "./chunk-IGI6OLRX.js";
|
|
8
|
+
import {
|
|
9
|
+
cn
|
|
10
|
+
} from "./chunk-2TQSHVXA.js";
|
|
11
|
+
|
|
12
|
+
// src/components/verify-flow/verify-flow.tsx
|
|
13
|
+
import * as React from "react";
|
|
14
|
+
import { AnimatePresence, motion, useReducedMotion } from "motion/react";
|
|
15
|
+
import gsap from "gsap";
|
|
16
|
+
import { useGSAP } from "@gsap/react";
|
|
17
|
+
import { ArrowRight } from "lucide-react";
|
|
18
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
19
|
+
gsap.registerPlugin(useGSAP);
|
|
20
|
+
var GLIDE = [0.22, 1, 0.36, 1];
|
|
21
|
+
var FILL = [0.5, 1, 0.89, 1];
|
|
22
|
+
var DEFAULT_CHECKS = ["Account age", "Two-factor enabled", "Public activity"];
|
|
23
|
+
var SUBTITLES = {
|
|
24
|
+
waiting: "Connect an account to start",
|
|
25
|
+
checking: "Running a few quick checks",
|
|
26
|
+
done: "Everything checks out"
|
|
27
|
+
};
|
|
28
|
+
var fmt = (s) => `${String(Math.floor(s / 60)).padStart(2, "0")}:${String(s % 60).padStart(2, "0")}`;
|
|
29
|
+
function Roll({
|
|
30
|
+
children,
|
|
31
|
+
still,
|
|
32
|
+
className
|
|
33
|
+
}) {
|
|
34
|
+
return /* @__PURE__ */ jsx("span", { className: cn("relative inline-grid overflow-hidden", className), children: /* @__PURE__ */ jsx(AnimatePresence, { mode: "popLayout", initial: false, children: /* @__PURE__ */ jsx(
|
|
35
|
+
motion.span,
|
|
36
|
+
{
|
|
37
|
+
initial: still ? { opacity: 0 } : { y: "100%", opacity: 0, filter: "blur(3px)" },
|
|
38
|
+
animate: { y: 0, opacity: 1, filter: "blur(0px)" },
|
|
39
|
+
exit: still ? { opacity: 0 } : { y: "-100%", opacity: 0, filter: "blur(3px)" },
|
|
40
|
+
transition: { duration: still ? 0 : 0.35, ease: GLIDE },
|
|
41
|
+
className: "col-start-1 row-start-1 whitespace-nowrap",
|
|
42
|
+
children
|
|
43
|
+
},
|
|
44
|
+
children
|
|
45
|
+
) }) });
|
|
46
|
+
}
|
|
47
|
+
function Spinner({ className, still }) {
|
|
48
|
+
const ref = React.useRef(null);
|
|
49
|
+
useGSAP(
|
|
50
|
+
() => {
|
|
51
|
+
if (!still)
|
|
52
|
+
gsap.to(ref.current, {
|
|
53
|
+
rotation: 360,
|
|
54
|
+
duration: 0.8,
|
|
55
|
+
ease: "none",
|
|
56
|
+
repeat: -1,
|
|
57
|
+
transformOrigin: "50% 50%"
|
|
58
|
+
});
|
|
59
|
+
},
|
|
60
|
+
{ scope: ref }
|
|
61
|
+
);
|
|
62
|
+
return /* @__PURE__ */ jsxs("svg", { ref, viewBox: "0 0 16 16", className, "aria-hidden": true, children: [
|
|
63
|
+
/* @__PURE__ */ jsx(
|
|
64
|
+
"circle",
|
|
65
|
+
{
|
|
66
|
+
cx: "8",
|
|
67
|
+
cy: "8",
|
|
68
|
+
r: "6",
|
|
69
|
+
fill: "none",
|
|
70
|
+
stroke: "currentColor",
|
|
71
|
+
strokeOpacity: "0.18",
|
|
72
|
+
strokeWidth: "2"
|
|
73
|
+
}
|
|
74
|
+
),
|
|
75
|
+
/* @__PURE__ */ jsx(
|
|
76
|
+
"circle",
|
|
77
|
+
{
|
|
78
|
+
cx: "8",
|
|
79
|
+
cy: "8",
|
|
80
|
+
r: "6",
|
|
81
|
+
fill: "none",
|
|
82
|
+
stroke: "currentColor",
|
|
83
|
+
strokeWidth: "2",
|
|
84
|
+
strokeLinecap: "round",
|
|
85
|
+
pathLength: 100,
|
|
86
|
+
strokeDasharray: "28 100"
|
|
87
|
+
}
|
|
88
|
+
)
|
|
89
|
+
] });
|
|
90
|
+
}
|
|
91
|
+
function HeaderStatus({
|
|
92
|
+
stage,
|
|
93
|
+
accent,
|
|
94
|
+
still
|
|
95
|
+
}) {
|
|
96
|
+
const ref = React.useRef(null);
|
|
97
|
+
useGSAP(
|
|
98
|
+
() => {
|
|
99
|
+
if (stage !== "done" || still) return;
|
|
100
|
+
gsap.fromTo(
|
|
101
|
+
ref.current.querySelector(".pulse"),
|
|
102
|
+
{ scale: 1, autoAlpha: 0.5 },
|
|
103
|
+
{
|
|
104
|
+
scale: 1.9,
|
|
105
|
+
autoAlpha: 0,
|
|
106
|
+
duration: 0.9,
|
|
107
|
+
ease: "power2.out",
|
|
108
|
+
delay: 0.15
|
|
109
|
+
}
|
|
110
|
+
);
|
|
111
|
+
gsap.fromTo(
|
|
112
|
+
ref.current.querySelector(".tick"),
|
|
113
|
+
{ strokeDashoffset: 1 },
|
|
114
|
+
{
|
|
115
|
+
strokeDashoffset: 0,
|
|
116
|
+
duration: 0.35,
|
|
117
|
+
ease: "power2.out",
|
|
118
|
+
delay: 0.12
|
|
119
|
+
}
|
|
120
|
+
);
|
|
121
|
+
},
|
|
122
|
+
{ dependencies: [stage], scope: ref }
|
|
123
|
+
);
|
|
124
|
+
return /* @__PURE__ */ jsxs(
|
|
125
|
+
"span",
|
|
126
|
+
{
|
|
127
|
+
ref,
|
|
128
|
+
className: "relative grid size-9 shrink-0 place-items-center rounded-full text-[#242423] transition-colors duration-500 dark:text-zinc-100",
|
|
129
|
+
style: { background: stage === "done" ? accent : "rgb(36 36 35 / 0.06)" },
|
|
130
|
+
"aria-hidden": true,
|
|
131
|
+
children: [
|
|
132
|
+
/* @__PURE__ */ jsx(
|
|
133
|
+
"span",
|
|
134
|
+
{
|
|
135
|
+
className: "pulse absolute inset-0 rounded-full opacity-0",
|
|
136
|
+
style: { background: accent }
|
|
137
|
+
}
|
|
138
|
+
),
|
|
139
|
+
/* @__PURE__ */ jsx(AnimatePresence, { mode: "popLayout", initial: false, children: /* @__PURE__ */ jsxs(
|
|
140
|
+
motion.span,
|
|
141
|
+
{
|
|
142
|
+
initial: { opacity: 0, scale: 0.6 },
|
|
143
|
+
animate: { opacity: 1, scale: 1 },
|
|
144
|
+
exit: { opacity: 0, scale: 0.6 },
|
|
145
|
+
transition: { duration: still ? 0 : 0.3, ease: GLIDE },
|
|
146
|
+
className: "relative grid place-items-center",
|
|
147
|
+
children: [
|
|
148
|
+
stage === "waiting" && /* @__PURE__ */ jsx(LockKeyholeIcon, { className: "size-4", strokeWidth: 2.25 }),
|
|
149
|
+
stage === "checking" && /* @__PURE__ */ jsx(Spinner, { className: "size-4", still }),
|
|
150
|
+
stage === "done" && /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "size-4", children: /* @__PURE__ */ jsx(
|
|
151
|
+
"path",
|
|
152
|
+
{
|
|
153
|
+
className: "tick",
|
|
154
|
+
d: "M3.5 8.4l2.8 2.8 6.2-6.4",
|
|
155
|
+
fill: "none",
|
|
156
|
+
stroke: "#fff",
|
|
157
|
+
strokeWidth: "2.2",
|
|
158
|
+
strokeLinecap: "round",
|
|
159
|
+
strokeLinejoin: "round",
|
|
160
|
+
pathLength: 1,
|
|
161
|
+
strokeDasharray: "1",
|
|
162
|
+
strokeDashoffset: still ? 0 : 1
|
|
163
|
+
}
|
|
164
|
+
) })
|
|
165
|
+
]
|
|
166
|
+
},
|
|
167
|
+
stage
|
|
168
|
+
) })
|
|
169
|
+
]
|
|
170
|
+
}
|
|
171
|
+
);
|
|
172
|
+
}
|
|
173
|
+
function ShimmerButton({
|
|
174
|
+
children,
|
|
175
|
+
onClick,
|
|
176
|
+
pressed,
|
|
177
|
+
still
|
|
178
|
+
}) {
|
|
179
|
+
const ref = React.useRef(null);
|
|
180
|
+
useGSAP(
|
|
181
|
+
() => {
|
|
182
|
+
if (still) return;
|
|
183
|
+
gsap.fromTo(
|
|
184
|
+
ref.current.querySelector(".sheen"),
|
|
185
|
+
{ xPercent: -160 },
|
|
186
|
+
{
|
|
187
|
+
xPercent: 260,
|
|
188
|
+
duration: 1.1,
|
|
189
|
+
ease: "power2.inOut",
|
|
190
|
+
repeat: -1,
|
|
191
|
+
repeatDelay: 1.3
|
|
192
|
+
}
|
|
193
|
+
);
|
|
194
|
+
},
|
|
195
|
+
{ scope: ref }
|
|
196
|
+
);
|
|
197
|
+
return /* @__PURE__ */ jsxs(
|
|
198
|
+
motion.button,
|
|
199
|
+
{
|
|
200
|
+
ref,
|
|
201
|
+
type: "button",
|
|
202
|
+
onClick,
|
|
203
|
+
animate: pressed && !still ? { scale: [1, 0.94, 1] } : { scale: 1 },
|
|
204
|
+
whileTap: still ? void 0 : { scale: 0.94 },
|
|
205
|
+
transition: { duration: 0.3, ease: GLIDE },
|
|
206
|
+
className: "relative h-8 shrink-0 cursor-pointer overflow-hidden rounded-full bg-[#242423] px-3.5 text-[12px] font-medium text-white outline-none focus-visible:ring-2 focus-visible:ring-zinc-400 focus-visible:ring-offset-2 dark:bg-white dark:text-zinc-900",
|
|
207
|
+
children: [
|
|
208
|
+
/* @__PURE__ */ jsx(
|
|
209
|
+
"span",
|
|
210
|
+
{
|
|
211
|
+
"aria-hidden": true,
|
|
212
|
+
className: "sheen absolute inset-y-0 left-0 w-1/2 -skew-x-12 bg-gradient-to-r from-transparent via-white/25 to-transparent"
|
|
213
|
+
}
|
|
214
|
+
),
|
|
215
|
+
/* @__PURE__ */ jsx("span", { className: "relative", children })
|
|
216
|
+
]
|
|
217
|
+
}
|
|
218
|
+
);
|
|
219
|
+
}
|
|
220
|
+
function ContinueButton({
|
|
221
|
+
label,
|
|
222
|
+
seconds,
|
|
223
|
+
total,
|
|
224
|
+
onClick,
|
|
225
|
+
still
|
|
226
|
+
}) {
|
|
227
|
+
const ref = React.useRef(null);
|
|
228
|
+
useGSAP(
|
|
229
|
+
() => {
|
|
230
|
+
gsap.fromTo(
|
|
231
|
+
ref.current.querySelector(".ring"),
|
|
232
|
+
{ strokeDashoffset: 0 },
|
|
233
|
+
{ strokeDashoffset: 1, duration: still ? 0 : total, ease: "none" }
|
|
234
|
+
);
|
|
235
|
+
},
|
|
236
|
+
{ scope: ref }
|
|
237
|
+
);
|
|
238
|
+
return /* @__PURE__ */ jsxs(
|
|
239
|
+
motion.button,
|
|
240
|
+
{
|
|
241
|
+
ref,
|
|
242
|
+
type: "button",
|
|
243
|
+
onClick,
|
|
244
|
+
initial: "rest",
|
|
245
|
+
whileHover: "hover",
|
|
246
|
+
whileTap: still ? void 0 : { scale: 0.97 },
|
|
247
|
+
className: "group flex h-12 w-full cursor-pointer items-center justify-between rounded-full bg-[#242423] pl-5 pr-2 text-[14px] font-medium text-white outline-none focus-visible:ring-2 focus-visible:ring-zinc-400 focus-visible:ring-offset-2 dark:bg-white dark:text-zinc-900",
|
|
248
|
+
children: [
|
|
249
|
+
/* @__PURE__ */ jsxs("span", { className: "flex items-center gap-2", children: [
|
|
250
|
+
label,
|
|
251
|
+
/* @__PURE__ */ jsx(
|
|
252
|
+
motion.span,
|
|
253
|
+
{
|
|
254
|
+
variants: { rest: { x: 0 }, hover: { x: still ? 0 : 3 } },
|
|
255
|
+
transition: { duration: 0.3, ease: GLIDE },
|
|
256
|
+
className: "flex",
|
|
257
|
+
children: /* @__PURE__ */ jsx(ArrowRight, { className: "size-4", strokeWidth: 2.25 })
|
|
258
|
+
}
|
|
259
|
+
)
|
|
260
|
+
] }),
|
|
261
|
+
/* @__PURE__ */ jsxs(
|
|
262
|
+
"span",
|
|
263
|
+
{
|
|
264
|
+
className: "relative grid size-8 place-items-center text-[12px] tabular-nums",
|
|
265
|
+
"aria-label": `${seconds} seconds left`,
|
|
266
|
+
children: [
|
|
267
|
+
/* @__PURE__ */ jsxs(
|
|
268
|
+
"svg",
|
|
269
|
+
{
|
|
270
|
+
viewBox: "0 0 32 32",
|
|
271
|
+
className: "absolute inset-0 size-full -rotate-90",
|
|
272
|
+
"aria-hidden": true,
|
|
273
|
+
children: [
|
|
274
|
+
/* @__PURE__ */ jsx(
|
|
275
|
+
"circle",
|
|
276
|
+
{
|
|
277
|
+
cx: "16",
|
|
278
|
+
cy: "16",
|
|
279
|
+
r: "13",
|
|
280
|
+
fill: "none",
|
|
281
|
+
stroke: "currentColor",
|
|
282
|
+
strokeOpacity: "0.2",
|
|
283
|
+
strokeWidth: "2.5"
|
|
284
|
+
}
|
|
285
|
+
),
|
|
286
|
+
/* @__PURE__ */ jsx(
|
|
287
|
+
"circle",
|
|
288
|
+
{
|
|
289
|
+
className: "ring",
|
|
290
|
+
cx: "16",
|
|
291
|
+
cy: "16",
|
|
292
|
+
r: "13",
|
|
293
|
+
fill: "none",
|
|
294
|
+
stroke: "currentColor",
|
|
295
|
+
strokeWidth: "2.5",
|
|
296
|
+
strokeLinecap: "round",
|
|
297
|
+
pathLength: 1,
|
|
298
|
+
strokeDasharray: "1"
|
|
299
|
+
}
|
|
300
|
+
)
|
|
301
|
+
]
|
|
302
|
+
}
|
|
303
|
+
),
|
|
304
|
+
/* @__PURE__ */ jsx(Roll, { still, className: "h-[1.2em] leading-[1.2em]", children: String(seconds) })
|
|
305
|
+
]
|
|
306
|
+
}
|
|
307
|
+
)
|
|
308
|
+
]
|
|
309
|
+
}
|
|
310
|
+
);
|
|
311
|
+
}
|
|
312
|
+
function sealPath(bumps = 9, depth = 0.085, r = 42) {
|
|
313
|
+
const pts = [];
|
|
314
|
+
for (let i = 0; i <= 180; i++) {
|
|
315
|
+
const t = i / 180 * Math.PI * 2;
|
|
316
|
+
const rr = r * (1 + depth * Math.cos(bumps * t));
|
|
317
|
+
pts.push(
|
|
318
|
+
`${(50 + Math.cos(t) * rr).toFixed(2)} ${(50 + Math.sin(t) * rr).toFixed(2)}`
|
|
319
|
+
);
|
|
320
|
+
}
|
|
321
|
+
return `M${pts.join(" L")}Z`;
|
|
322
|
+
}
|
|
323
|
+
var SEAL = sealPath();
|
|
324
|
+
function SuccessSeal({ accent, still }) {
|
|
325
|
+
const ref = React.useRef(null);
|
|
326
|
+
useGSAP(
|
|
327
|
+
() => {
|
|
328
|
+
const q = (sel) => ref.current.querySelectorAll(sel);
|
|
329
|
+
if (still) {
|
|
330
|
+
gsap.set(q(".seal-tick"), { strokeDashoffset: 0 });
|
|
331
|
+
return;
|
|
332
|
+
}
|
|
333
|
+
gsap.timeline({ delay: 0.15 }).from(q(".seal"), {
|
|
334
|
+
scale: 0,
|
|
335
|
+
rotation: -60,
|
|
336
|
+
svgOrigin: "60 60",
|
|
337
|
+
duration: 0.7,
|
|
338
|
+
ease: "back.out(1.9)"
|
|
339
|
+
}).to(
|
|
340
|
+
q(".seal-tick"),
|
|
341
|
+
{ strokeDashoffset: 0, duration: 0.35, ease: "power2.out" },
|
|
342
|
+
0.32
|
|
343
|
+
).fromTo(
|
|
344
|
+
q(".spark"),
|
|
345
|
+
{
|
|
346
|
+
autoAlpha: 1,
|
|
347
|
+
attr: { "stroke-dashoffset": 1 },
|
|
348
|
+
scale: 0.6,
|
|
349
|
+
svgOrigin: "60 60"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
attr: { "stroke-dashoffset": 0 },
|
|
353
|
+
scale: 1,
|
|
354
|
+
duration: 0.35,
|
|
355
|
+
ease: "power3.out",
|
|
356
|
+
stagger: 0.02
|
|
357
|
+
},
|
|
358
|
+
0.28
|
|
359
|
+
).to(
|
|
360
|
+
q(".spark"),
|
|
361
|
+
{
|
|
362
|
+
autoAlpha: 0,
|
|
363
|
+
scale: 1.18,
|
|
364
|
+
svgOrigin: "60 60",
|
|
365
|
+
duration: 0.45,
|
|
366
|
+
ease: "power2.in",
|
|
367
|
+
stagger: 0.02
|
|
368
|
+
},
|
|
369
|
+
0.62
|
|
370
|
+
).fromTo(
|
|
371
|
+
q(".dot"),
|
|
372
|
+
{ autoAlpha: 1, scale: 0.3, svgOrigin: "60 60" },
|
|
373
|
+
{
|
|
374
|
+
scale: 1.35,
|
|
375
|
+
autoAlpha: 0,
|
|
376
|
+
duration: 0.9,
|
|
377
|
+
ease: "power2.out",
|
|
378
|
+
stagger: 0.03
|
|
379
|
+
},
|
|
380
|
+
0.3
|
|
381
|
+
).to(
|
|
382
|
+
q(".seal-wrap"),
|
|
383
|
+
{ y: -3, duration: 1.6, ease: "sine.inOut", repeat: -1, yoyo: true },
|
|
384
|
+
1.1
|
|
385
|
+
);
|
|
386
|
+
},
|
|
387
|
+
{ scope: ref }
|
|
388
|
+
);
|
|
389
|
+
const sparks = Array.from({ length: 8 }, (_, i) => {
|
|
390
|
+
const a = i / 8 * Math.PI * 2 - Math.PI / 2 + 0.2;
|
|
391
|
+
return {
|
|
392
|
+
x1: 60 + Math.cos(a) * 48,
|
|
393
|
+
y1: 60 + Math.sin(a) * 48,
|
|
394
|
+
x2: 60 + Math.cos(a) * 58,
|
|
395
|
+
y2: 60 + Math.sin(a) * 58
|
|
396
|
+
};
|
|
397
|
+
});
|
|
398
|
+
const dots = Array.from({ length: 6 }, (_, i) => {
|
|
399
|
+
const a = i / 6 * Math.PI * 2 + 0.5;
|
|
400
|
+
return { cx: 60 + Math.cos(a) * 54, cy: 60 + Math.sin(a) * 54 };
|
|
401
|
+
});
|
|
402
|
+
return /* @__PURE__ */ jsxs(
|
|
403
|
+
"svg",
|
|
404
|
+
{
|
|
405
|
+
ref,
|
|
406
|
+
viewBox: "0 0 120 120",
|
|
407
|
+
className: "size-[104px] overflow-visible",
|
|
408
|
+
"aria-hidden": true,
|
|
409
|
+
children: [
|
|
410
|
+
sparks.map((p, i) => /* @__PURE__ */ jsx(
|
|
411
|
+
"line",
|
|
412
|
+
{
|
|
413
|
+
className: "spark",
|
|
414
|
+
...p,
|
|
415
|
+
stroke: accent,
|
|
416
|
+
strokeWidth: "3",
|
|
417
|
+
strokeLinecap: "round",
|
|
418
|
+
pathLength: 1,
|
|
419
|
+
strokeDasharray: "1",
|
|
420
|
+
style: { visibility: "hidden" }
|
|
421
|
+
},
|
|
422
|
+
i
|
|
423
|
+
)),
|
|
424
|
+
dots.map((p, i) => /* @__PURE__ */ jsx(
|
|
425
|
+
"circle",
|
|
426
|
+
{
|
|
427
|
+
className: "dot",
|
|
428
|
+
...p,
|
|
429
|
+
r: "2.4",
|
|
430
|
+
fill: i % 2 ? "#f5c542" : accent,
|
|
431
|
+
style: { visibility: "hidden" }
|
|
432
|
+
},
|
|
433
|
+
i
|
|
434
|
+
)),
|
|
435
|
+
/* @__PURE__ */ jsx("g", { className: "seal-wrap", children: /* @__PURE__ */ jsxs("g", { className: "seal", children: [
|
|
436
|
+
/* @__PURE__ */ jsx("path", { d: SEAL, transform: "translate(10 10)", fill: accent }),
|
|
437
|
+
/* @__PURE__ */ jsx(
|
|
438
|
+
"path",
|
|
439
|
+
{
|
|
440
|
+
className: "seal-tick",
|
|
441
|
+
d: "M44 61l11 11 22-23",
|
|
442
|
+
fill: "none",
|
|
443
|
+
stroke: "#fff",
|
|
444
|
+
strokeWidth: "7",
|
|
445
|
+
strokeLinecap: "round",
|
|
446
|
+
strokeLinejoin: "round",
|
|
447
|
+
pathLength: 1,
|
|
448
|
+
strokeDasharray: "1",
|
|
449
|
+
strokeDashoffset: "1"
|
|
450
|
+
}
|
|
451
|
+
)
|
|
452
|
+
] }) })
|
|
453
|
+
]
|
|
454
|
+
}
|
|
455
|
+
);
|
|
456
|
+
}
|
|
457
|
+
function AutoHeight({
|
|
458
|
+
children,
|
|
459
|
+
still
|
|
460
|
+
}) {
|
|
461
|
+
const inner = React.useRef(null);
|
|
462
|
+
const [h, setH] = React.useState("auto");
|
|
463
|
+
React.useLayoutEffect(() => {
|
|
464
|
+
const el = inner.current;
|
|
465
|
+
if (!el) return;
|
|
466
|
+
const ro = new ResizeObserver(() => setH(el.offsetHeight));
|
|
467
|
+
ro.observe(el);
|
|
468
|
+
return () => ro.disconnect();
|
|
469
|
+
}, []);
|
|
470
|
+
return /* @__PURE__ */ jsx(
|
|
471
|
+
motion.div,
|
|
472
|
+
{
|
|
473
|
+
animate: { height: h },
|
|
474
|
+
initial: false,
|
|
475
|
+
transition: { duration: still ? 0 : 0.55, ease: GLIDE },
|
|
476
|
+
className: "relative -mx-2 overflow-hidden px-2",
|
|
477
|
+
children: /* @__PURE__ */ jsx("div", { ref: inner, children })
|
|
478
|
+
}
|
|
479
|
+
);
|
|
480
|
+
}
|
|
481
|
+
var VerifyFlow = React.forwardRef(
|
|
482
|
+
function VerifyFlow2({
|
|
483
|
+
stage: stageProp,
|
|
484
|
+
completed: completedProp,
|
|
485
|
+
checks = DEFAULT_CHECKS,
|
|
486
|
+
title = "Verify your account",
|
|
487
|
+
provider = "GitHub",
|
|
488
|
+
providerIcon,
|
|
489
|
+
onSignIn,
|
|
490
|
+
destination = "Acme",
|
|
491
|
+
redirectSeconds = 5,
|
|
492
|
+
onContinue,
|
|
493
|
+
loop = false,
|
|
494
|
+
accent = "#269a5a",
|
|
495
|
+
className
|
|
496
|
+
}, ref) {
|
|
497
|
+
const still = !!useReducedMotion();
|
|
498
|
+
const uid = React.useId();
|
|
499
|
+
const demo = stageProp === void 0;
|
|
500
|
+
const [demoStage, setDemoStage] = React.useState("waiting");
|
|
501
|
+
const [demoDone, setDemoDone] = React.useState(0);
|
|
502
|
+
const [demoPress, setDemoPress] = React.useState(false);
|
|
503
|
+
const [run, setRun] = React.useState(0);
|
|
504
|
+
const stage = stageProp ?? demoStage;
|
|
505
|
+
const completed = Math.min(
|
|
506
|
+
checks.length,
|
|
507
|
+
stage === "done" ? checks.length : stage === "waiting" ? 0 : completedProp ?? demoDone
|
|
508
|
+
);
|
|
509
|
+
const [elapsed, setElapsed] = React.useState(0);
|
|
510
|
+
const [seconds, setSeconds] = React.useState(redirectSeconds);
|
|
511
|
+
React.useEffect(() => {
|
|
512
|
+
if (!demo) return;
|
|
513
|
+
setDemoStage("waiting");
|
|
514
|
+
setDemoDone(0);
|
|
515
|
+
setDemoPress(false);
|
|
516
|
+
const timers = [];
|
|
517
|
+
let at = 2400;
|
|
518
|
+
timers.push(window.setTimeout(() => setDemoPress(true), at));
|
|
519
|
+
at += 450;
|
|
520
|
+
timers.push(window.setTimeout(() => setDemoStage("checking"), at));
|
|
521
|
+
checks.forEach((_, i) => {
|
|
522
|
+
at += i === 0 ? 1500 : 1300;
|
|
523
|
+
timers.push(window.setTimeout(() => setDemoDone(i + 1), at));
|
|
524
|
+
});
|
|
525
|
+
at += 600;
|
|
526
|
+
timers.push(window.setTimeout(() => setDemoStage("done"), at));
|
|
527
|
+
return () => timers.forEach((t) => window.clearTimeout(t));
|
|
528
|
+
}, [demo, run, checks]);
|
|
529
|
+
React.useEffect(() => {
|
|
530
|
+
if (stage === "waiting") setElapsed(0);
|
|
531
|
+
if (stage !== "checking") return;
|
|
532
|
+
const id = window.setInterval(() => setElapsed((s) => s + 1), 1e3);
|
|
533
|
+
return () => window.clearInterval(id);
|
|
534
|
+
}, [stage]);
|
|
535
|
+
React.useEffect(() => {
|
|
536
|
+
if (stage !== "done") return;
|
|
537
|
+
setSeconds(redirectSeconds);
|
|
538
|
+
let left = redirectSeconds;
|
|
539
|
+
const id = window.setInterval(() => {
|
|
540
|
+
left -= 1;
|
|
541
|
+
setSeconds(Math.max(0, left));
|
|
542
|
+
if (left <= 0) {
|
|
543
|
+
window.clearInterval(id);
|
|
544
|
+
onContinue?.();
|
|
545
|
+
if (demo && loop) window.setTimeout(() => setRun((r) => r + 1), 1200);
|
|
546
|
+
}
|
|
547
|
+
}, 1e3);
|
|
548
|
+
return () => window.clearInterval(id);
|
|
549
|
+
}, [stage, redirectSeconds]);
|
|
550
|
+
const step = stage === "waiting" ? 1 : stage === "checking" ? 2 : 3;
|
|
551
|
+
const fills = [
|
|
552
|
+
stage === "waiting" ? 0 : 1,
|
|
553
|
+
stage === "done" ? 1 : stage === "checking" ? completed / checks.length : 0,
|
|
554
|
+
stage === "done" ? 1 : 0
|
|
555
|
+
];
|
|
556
|
+
const tr = { duration: still ? 0 : 0.45, ease: GLIDE };
|
|
557
|
+
const swap = {
|
|
558
|
+
initial: still ? { opacity: 0 } : { opacity: 0, y: 10, filter: "blur(6px)" },
|
|
559
|
+
animate: { opacity: 1, y: 0, filter: "blur(0px)" },
|
|
560
|
+
exit: still ? { opacity: 0 } : { opacity: 0, y: -6, filter: "blur(4px)" },
|
|
561
|
+
transition: { ...tr, delay: still ? 0 : 0.06 }
|
|
562
|
+
};
|
|
563
|
+
const live = stage === "waiting" ? `Waiting for ${provider} sign-in` : stage === "checking" ? `Checking: ${checks[completed] ?? ""}` : "Verified";
|
|
564
|
+
return /* @__PURE__ */ jsxs(
|
|
565
|
+
"div",
|
|
566
|
+
{
|
|
567
|
+
ref,
|
|
568
|
+
className: cn(
|
|
569
|
+
"w-[400px] max-w-full rounded-3xl bg-white px-5 pb-5 pt-6 text-zinc-900 shadow-[0_1px_2px_rgba(0,0,0,0.04),0_12px_32px_-16px_rgba(0,0,0,0.18)] dark:bg-zinc-900 dark:text-zinc-100",
|
|
570
|
+
className
|
|
571
|
+
),
|
|
572
|
+
children: [
|
|
573
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", role: "status", "aria-live": "polite", children: live }),
|
|
574
|
+
/* @__PURE__ */ jsxs("header", { className: "flex items-start justify-between gap-4 px-1", children: [
|
|
575
|
+
/* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
|
|
576
|
+
/* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold tracking-tight", children: title }),
|
|
577
|
+
/* @__PURE__ */ jsx("p", { className: "mt-0.5 text-sm text-zinc-500 dark:text-zinc-400", children: /* @__PURE__ */ jsx(Roll, { still, children: SUBTITLES[stage] }) })
|
|
578
|
+
] }),
|
|
579
|
+
/* @__PURE__ */ jsx(HeaderStatus, { stage, accent, still })
|
|
580
|
+
] }),
|
|
581
|
+
/* @__PURE__ */ jsxs("div", { className: "mt-6 px-1", children: [
|
|
582
|
+
/* @__PURE__ */ jsx("div", { className: "flex gap-1.5", "aria-hidden": true, children: fills.map((f, i) => /* @__PURE__ */ jsx(
|
|
583
|
+
"span",
|
|
584
|
+
{
|
|
585
|
+
className: "relative h-2.5 flex-1 overflow-hidden rounded-full bg-zinc-100 dark:bg-zinc-800/60",
|
|
586
|
+
children: /* @__PURE__ */ jsx(
|
|
587
|
+
motion.span,
|
|
588
|
+
{
|
|
589
|
+
className: "absolute inset-0 origin-left rounded-full",
|
|
590
|
+
style: { background: i === 2 ? accent : "#242423" },
|
|
591
|
+
initial: false,
|
|
592
|
+
animate: { scaleX: f },
|
|
593
|
+
transition: { duration: still ? 0 : 0.8, ease: FILL }
|
|
594
|
+
}
|
|
595
|
+
)
|
|
596
|
+
},
|
|
597
|
+
i
|
|
598
|
+
)) }),
|
|
599
|
+
/* @__PURE__ */ jsxs("div", { className: "mt-3 flex items-center justify-between text-[12px] text-zinc-500 dark:text-zinc-400", children: [
|
|
600
|
+
/* @__PURE__ */ jsxs("span", { className: "inline-flex items-center gap-1.5", children: [
|
|
601
|
+
/* @__PURE__ */ jsx(
|
|
602
|
+
"span",
|
|
603
|
+
{
|
|
604
|
+
className: "size-2 rounded-full transition-colors duration-500",
|
|
605
|
+
style: { background: stage === "done" ? accent : "#242423" }
|
|
606
|
+
}
|
|
607
|
+
),
|
|
608
|
+
/* @__PURE__ */ jsxs("span", { children: [
|
|
609
|
+
"Step",
|
|
610
|
+
" ",
|
|
611
|
+
/* @__PURE__ */ jsx(Roll, { still, className: "align-bottom", children: String(step) }),
|
|
612
|
+
" ",
|
|
613
|
+
"of 3"
|
|
614
|
+
] })
|
|
615
|
+
] }),
|
|
616
|
+
/* @__PURE__ */ jsxs("span", { className: "tabular-nums", children: [
|
|
617
|
+
stage === "done" ? "Done in " : "",
|
|
618
|
+
fmt(elapsed).split("").map((ch, i) => /* @__PURE__ */ jsx(Roll, { still, children: ch }, i))
|
|
619
|
+
] })
|
|
620
|
+
] })
|
|
621
|
+
] }),
|
|
622
|
+
/* @__PURE__ */ jsx("div", { className: "mt-5", children: /* @__PURE__ */ jsx(AutoHeight, { still, children: /* @__PURE__ */ jsxs(AnimatePresence, { mode: "popLayout", initial: false, children: [
|
|
623
|
+
stage === "waiting" && /* @__PURE__ */ jsxs(
|
|
624
|
+
motion.div,
|
|
625
|
+
{
|
|
626
|
+
...swap,
|
|
627
|
+
className: "flex items-center gap-3 rounded-[22px] bg-[#242423]/[0.035] p-3 dark:bg-white/5",
|
|
628
|
+
children: [
|
|
629
|
+
/* @__PURE__ */ jsx("span", { className: "grid size-10 shrink-0 place-items-center rounded-full bg-white text-[#242423] ring-1 ring-black/[0.06] dark:bg-zinc-800 dark:text-zinc-100 dark:ring-white/10", children: providerIcon ?? /* @__PURE__ */ jsx(GithubIcon, { className: "size-[18px]", strokeWidth: 2 }) }),
|
|
630
|
+
/* @__PURE__ */ jsxs("span", { className: "min-w-0 flex-1", children: [
|
|
631
|
+
/* @__PURE__ */ jsx("span", { className: "block text-[14px] font-medium", children: provider }),
|
|
632
|
+
/* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1.5 text-[12px] text-zinc-500 dark:text-zinc-400", children: [
|
|
633
|
+
/* @__PURE__ */ jsx(
|
|
634
|
+
motion.span,
|
|
635
|
+
{
|
|
636
|
+
className: "size-1.5 rounded-full bg-zinc-400",
|
|
637
|
+
animate: still ? void 0 : { opacity: [1, 0.25, 1] },
|
|
638
|
+
transition: {
|
|
639
|
+
duration: 1.6,
|
|
640
|
+
repeat: Infinity,
|
|
641
|
+
ease: "easeInOut"
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
),
|
|
645
|
+
"Not connected yet"
|
|
646
|
+
] })
|
|
647
|
+
] }),
|
|
648
|
+
/* @__PURE__ */ jsx(
|
|
649
|
+
ShimmerButton,
|
|
650
|
+
{
|
|
651
|
+
onClick: onSignIn,
|
|
652
|
+
pressed: demoPress,
|
|
653
|
+
still,
|
|
654
|
+
children: "Sign in"
|
|
655
|
+
}
|
|
656
|
+
)
|
|
657
|
+
]
|
|
658
|
+
},
|
|
659
|
+
"waiting"
|
|
660
|
+
),
|
|
661
|
+
stage === "checking" && /* @__PURE__ */ jsx(
|
|
662
|
+
motion.ul,
|
|
663
|
+
{
|
|
664
|
+
...swap,
|
|
665
|
+
className: "relative rounded-[22px] bg-[#242423]/[0.035] p-1.5 dark:bg-white/5",
|
|
666
|
+
children: checks.map((label, i) => {
|
|
667
|
+
const state = i < completed ? "passed" : i === completed ? "running" : "queued";
|
|
668
|
+
return /* @__PURE__ */ jsxs(
|
|
669
|
+
"li",
|
|
670
|
+
{
|
|
671
|
+
className: "relative flex h-11 items-center justify-between px-3.5",
|
|
672
|
+
children: [
|
|
673
|
+
state === "running" && /* @__PURE__ */ jsx(
|
|
674
|
+
motion.span,
|
|
675
|
+
{
|
|
676
|
+
layoutId: `${uid}-running`,
|
|
677
|
+
transition: {
|
|
678
|
+
type: "spring",
|
|
679
|
+
stiffness: 420,
|
|
680
|
+
damping: 36
|
|
681
|
+
},
|
|
682
|
+
className: "absolute inset-0 rounded-2xl bg-white shadow-[0_1px_2px_rgba(0,0,0,0.05)] dark:bg-zinc-800"
|
|
683
|
+
}
|
|
684
|
+
),
|
|
685
|
+
/* @__PURE__ */ jsx(
|
|
686
|
+
"span",
|
|
687
|
+
{
|
|
688
|
+
className: cn(
|
|
689
|
+
"relative text-[14px] transition-colors duration-500",
|
|
690
|
+
state === "queued" ? "text-zinc-400" : "text-zinc-900 dark:text-zinc-100"
|
|
691
|
+
),
|
|
692
|
+
children: label
|
|
693
|
+
}
|
|
694
|
+
),
|
|
695
|
+
/* @__PURE__ */ jsxs(
|
|
696
|
+
"span",
|
|
697
|
+
{
|
|
698
|
+
className: cn(
|
|
699
|
+
"relative inline-flex items-center gap-1.5 text-[12px]",
|
|
700
|
+
state === "queued" ? "text-zinc-400" : "text-zinc-500 dark:text-zinc-400"
|
|
701
|
+
),
|
|
702
|
+
children: [
|
|
703
|
+
state === "running" && /* @__PURE__ */ jsx(
|
|
704
|
+
Spinner,
|
|
705
|
+
{
|
|
706
|
+
className: "size-3.5 text-[#242423] dark:text-zinc-100",
|
|
707
|
+
still
|
|
708
|
+
}
|
|
709
|
+
),
|
|
710
|
+
state === "passed" && /* @__PURE__ */ jsx(
|
|
711
|
+
motion.span,
|
|
712
|
+
{
|
|
713
|
+
initial: still ? false : { scale: 0 },
|
|
714
|
+
animate: { scale: 1 },
|
|
715
|
+
transition: {
|
|
716
|
+
type: "spring",
|
|
717
|
+
stiffness: 600,
|
|
718
|
+
damping: 20
|
|
719
|
+
},
|
|
720
|
+
className: "size-2 rounded-full",
|
|
721
|
+
style: { background: accent }
|
|
722
|
+
}
|
|
723
|
+
),
|
|
724
|
+
/* @__PURE__ */ jsx(Roll, { still, children: state === "passed" ? "Passed" : state === "running" ? "Checking" : "Queued" })
|
|
725
|
+
]
|
|
726
|
+
}
|
|
727
|
+
)
|
|
728
|
+
]
|
|
729
|
+
},
|
|
730
|
+
label
|
|
731
|
+
);
|
|
732
|
+
})
|
|
733
|
+
},
|
|
734
|
+
"checking"
|
|
735
|
+
),
|
|
736
|
+
stage === "done" && /* @__PURE__ */ jsxs(motion.div, { ...swap, className: "space-y-4", children: [
|
|
737
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center rounded-[22px] bg-[#242423]/[0.035] px-4 pb-5 pt-6 text-center dark:bg-white/5", children: [
|
|
738
|
+
/* @__PURE__ */ jsx(SuccessSeal, { accent, still }),
|
|
739
|
+
/* @__PURE__ */ jsxs("p", { className: "mt-3 text-[18px] font-semibold tracking-tight", children: [
|
|
740
|
+
provider,
|
|
741
|
+
" connected"
|
|
742
|
+
] }),
|
|
743
|
+
/* @__PURE__ */ jsxs("p", { className: "mt-0.5 text-[12px] text-zinc-500 dark:text-zinc-400", children: [
|
|
744
|
+
checks.length,
|
|
745
|
+
" of ",
|
|
746
|
+
checks.length,
|
|
747
|
+
" checks passed"
|
|
748
|
+
] })
|
|
749
|
+
] }),
|
|
750
|
+
/* @__PURE__ */ jsx(
|
|
751
|
+
ContinueButton,
|
|
752
|
+
{
|
|
753
|
+
label: `Continue to ${destination}`,
|
|
754
|
+
seconds,
|
|
755
|
+
total: redirectSeconds,
|
|
756
|
+
onClick: onContinue,
|
|
757
|
+
still
|
|
758
|
+
}
|
|
759
|
+
)
|
|
760
|
+
] }, "done")
|
|
761
|
+
] }) }) })
|
|
762
|
+
]
|
|
763
|
+
}
|
|
764
|
+
);
|
|
765
|
+
}
|
|
766
|
+
);
|
|
767
|
+
|
|
768
|
+
export {
|
|
769
|
+
VerifyFlow
|
|
770
|
+
};
|