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,234 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
cn
|
|
4
|
+
} from "./chunk-2TQSHVXA.js";
|
|
5
|
+
|
|
6
|
+
// src/icons/moon.tsx
|
|
7
|
+
import { motion, useAnimation, useReducedMotion } from "motion/react";
|
|
8
|
+
import { forwardRef, useCallback, useEffect, useImperativeHandle, useRef, useState } from "react";
|
|
9
|
+
import { jsx } from "react/jsx-runtime";
|
|
10
|
+
var SVG_VARIANTS = {
|
|
11
|
+
normal: {
|
|
12
|
+
rotate: 0
|
|
13
|
+
},
|
|
14
|
+
animate: {
|
|
15
|
+
rotate: [0, -10, 10, -5, 5, 0]
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
var SVG_TRANSITION = {
|
|
19
|
+
duration: 1.2,
|
|
20
|
+
ease: "easeInOut"
|
|
21
|
+
};
|
|
22
|
+
var MoonIcon = forwardRef(
|
|
23
|
+
({ onMouseEnter, onMouseLeave, className, size, active, style, strokeWidth, ...props }, ref) => {
|
|
24
|
+
const controls = useAnimation();
|
|
25
|
+
const isControlledRef = useRef(false);
|
|
26
|
+
useImperativeHandle(ref, () => {
|
|
27
|
+
isControlledRef.current = true;
|
|
28
|
+
return {
|
|
29
|
+
startAnimation: () => controls.start("animate"),
|
|
30
|
+
stopAnimation: () => controls.start("normal")
|
|
31
|
+
};
|
|
32
|
+
});
|
|
33
|
+
const handleMouseEnter = useCallback(
|
|
34
|
+
(e) => {
|
|
35
|
+
if (isControlledRef.current) {
|
|
36
|
+
onMouseEnter?.(e);
|
|
37
|
+
} else {
|
|
38
|
+
controls.start("animate");
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
[controls, onMouseEnter]
|
|
42
|
+
);
|
|
43
|
+
const handleMouseLeave = useCallback(
|
|
44
|
+
(e) => {
|
|
45
|
+
if (isControlledRef.current) {
|
|
46
|
+
onMouseLeave?.(e);
|
|
47
|
+
} else {
|
|
48
|
+
controls.start("normal");
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
[controls, onMouseLeave]
|
|
52
|
+
);
|
|
53
|
+
const wrap = useRef(null);
|
|
54
|
+
const reduced = useReducedMotion();
|
|
55
|
+
const [hosted, setHosted] = useState(false);
|
|
56
|
+
useEffect(() => {
|
|
57
|
+
const fake = {};
|
|
58
|
+
if (reduced) {
|
|
59
|
+
setHosted(true);
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
if (active !== void 0) {
|
|
63
|
+
setHosted(true);
|
|
64
|
+
(active ? handleMouseEnter : handleMouseLeave)(fake);
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
const host = wrap.current?.parentElement?.closest("button, a, [role=button], [role=menuitem], [role=tab], [role=switch], [role=radio], label");
|
|
68
|
+
setHosted(!!host);
|
|
69
|
+
if (!host) return;
|
|
70
|
+
const on = () => handleMouseEnter(fake);
|
|
71
|
+
const off = () => handleMouseLeave(fake);
|
|
72
|
+
host.addEventListener("pointerenter", on);
|
|
73
|
+
host.addEventListener("pointerleave", off);
|
|
74
|
+
return () => {
|
|
75
|
+
host.removeEventListener("pointerenter", on);
|
|
76
|
+
host.removeEventListener("pointerleave", off);
|
|
77
|
+
};
|
|
78
|
+
}, [active, reduced, handleMouseEnter, handleMouseLeave]);
|
|
79
|
+
return /* @__PURE__ */ jsx(
|
|
80
|
+
"span",
|
|
81
|
+
{
|
|
82
|
+
ref: wrap,
|
|
83
|
+
className: cn("inline-grid size-6 shrink-0 place-items-center align-middle [&>svg]:size-full", className),
|
|
84
|
+
style: size ? { width: size, height: size, ...style } : style,
|
|
85
|
+
onMouseEnter: hosted ? void 0 : handleMouseEnter,
|
|
86
|
+
onMouseLeave: hosted ? void 0 : handleMouseLeave,
|
|
87
|
+
...props,
|
|
88
|
+
children: /* @__PURE__ */ jsx(
|
|
89
|
+
motion.svg,
|
|
90
|
+
{
|
|
91
|
+
animate: controls,
|
|
92
|
+
fill: "none",
|
|
93
|
+
height: size,
|
|
94
|
+
stroke: "currentColor",
|
|
95
|
+
strokeLinecap: "round",
|
|
96
|
+
strokeLinejoin: "round",
|
|
97
|
+
strokeWidth: strokeWidth ?? 2,
|
|
98
|
+
transition: SVG_TRANSITION,
|
|
99
|
+
variants: SVG_VARIANTS,
|
|
100
|
+
viewBox: "0 0 24 24",
|
|
101
|
+
width: size,
|
|
102
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
103
|
+
children: /* @__PURE__ */ jsx("path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" })
|
|
104
|
+
}
|
|
105
|
+
)
|
|
106
|
+
}
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
);
|
|
110
|
+
MoonIcon.displayName = "MoonIcon";
|
|
111
|
+
|
|
112
|
+
// src/icons/sun.tsx
|
|
113
|
+
import { motion as motion2, useAnimation as useAnimation2, useReducedMotion as useReducedMotion2 } from "motion/react";
|
|
114
|
+
import { forwardRef as forwardRef2, useCallback as useCallback2, useEffect as useEffect2, useImperativeHandle as useImperativeHandle2, useRef as useRef2, useState as useState2 } from "react";
|
|
115
|
+
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
116
|
+
var PATH_VARIANTS = {
|
|
117
|
+
normal: { opacity: 1 },
|
|
118
|
+
animate: (i) => ({
|
|
119
|
+
opacity: [0, 1],
|
|
120
|
+
transition: { delay: i * 0.1, duration: 0.3 }
|
|
121
|
+
})
|
|
122
|
+
};
|
|
123
|
+
var SunIcon = forwardRef2(
|
|
124
|
+
({ onMouseEnter, onMouseLeave, className, size, active, style, strokeWidth, ...props }, ref) => {
|
|
125
|
+
const controls = useAnimation2();
|
|
126
|
+
const isControlledRef = useRef2(false);
|
|
127
|
+
useImperativeHandle2(ref, () => {
|
|
128
|
+
isControlledRef.current = true;
|
|
129
|
+
return {
|
|
130
|
+
startAnimation: () => controls.start("animate"),
|
|
131
|
+
stopAnimation: () => controls.start("normal")
|
|
132
|
+
};
|
|
133
|
+
});
|
|
134
|
+
const handleMouseEnter = useCallback2(
|
|
135
|
+
(e) => {
|
|
136
|
+
if (isControlledRef.current) {
|
|
137
|
+
onMouseEnter?.(e);
|
|
138
|
+
} else {
|
|
139
|
+
controls.start("animate");
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
[controls, onMouseEnter]
|
|
143
|
+
);
|
|
144
|
+
const handleMouseLeave = useCallback2(
|
|
145
|
+
(e) => {
|
|
146
|
+
if (isControlledRef.current) {
|
|
147
|
+
onMouseLeave?.(e);
|
|
148
|
+
} else {
|
|
149
|
+
controls.start("normal");
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
[controls, onMouseLeave]
|
|
153
|
+
);
|
|
154
|
+
const wrap = useRef2(null);
|
|
155
|
+
const reduced = useReducedMotion2();
|
|
156
|
+
const [hosted, setHosted] = useState2(false);
|
|
157
|
+
useEffect2(() => {
|
|
158
|
+
const fake = {};
|
|
159
|
+
if (reduced) {
|
|
160
|
+
setHosted(true);
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
if (active !== void 0) {
|
|
164
|
+
setHosted(true);
|
|
165
|
+
(active ? handleMouseEnter : handleMouseLeave)(fake);
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
const host = wrap.current?.parentElement?.closest("button, a, [role=button], [role=menuitem], [role=tab], [role=switch], [role=radio], label");
|
|
169
|
+
setHosted(!!host);
|
|
170
|
+
if (!host) return;
|
|
171
|
+
const on = () => handleMouseEnter(fake);
|
|
172
|
+
const off = () => handleMouseLeave(fake);
|
|
173
|
+
host.addEventListener("pointerenter", on);
|
|
174
|
+
host.addEventListener("pointerleave", off);
|
|
175
|
+
return () => {
|
|
176
|
+
host.removeEventListener("pointerenter", on);
|
|
177
|
+
host.removeEventListener("pointerleave", off);
|
|
178
|
+
};
|
|
179
|
+
}, [active, reduced, handleMouseEnter, handleMouseLeave]);
|
|
180
|
+
return /* @__PURE__ */ jsx2(
|
|
181
|
+
"span",
|
|
182
|
+
{
|
|
183
|
+
ref: wrap,
|
|
184
|
+
className: cn("inline-grid size-6 shrink-0 place-items-center align-middle [&>svg]:size-full", className),
|
|
185
|
+
style: size ? { width: size, height: size, ...style } : style,
|
|
186
|
+
onMouseEnter: hosted ? void 0 : handleMouseEnter,
|
|
187
|
+
onMouseLeave: hosted ? void 0 : handleMouseLeave,
|
|
188
|
+
...props,
|
|
189
|
+
children: /* @__PURE__ */ jsxs(
|
|
190
|
+
"svg",
|
|
191
|
+
{
|
|
192
|
+
fill: "none",
|
|
193
|
+
height: size,
|
|
194
|
+
stroke: "currentColor",
|
|
195
|
+
strokeLinecap: "round",
|
|
196
|
+
strokeLinejoin: "round",
|
|
197
|
+
strokeWidth: strokeWidth ?? 2,
|
|
198
|
+
viewBox: "0 0 24 24",
|
|
199
|
+
width: size,
|
|
200
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
201
|
+
children: [
|
|
202
|
+
/* @__PURE__ */ jsx2("circle", { cx: "12", cy: "12", r: "4" }),
|
|
203
|
+
[
|
|
204
|
+
"M12 2v2",
|
|
205
|
+
"m19.07 4.93-1.41 1.41",
|
|
206
|
+
"M20 12h2",
|
|
207
|
+
"m17.66 17.66 1.41 1.41",
|
|
208
|
+
"M12 20v2",
|
|
209
|
+
"m6.34 17.66-1.41 1.41",
|
|
210
|
+
"M2 12h2",
|
|
211
|
+
"m4.93 4.93 1.41 1.41"
|
|
212
|
+
].map((d, index) => /* @__PURE__ */ jsx2(
|
|
213
|
+
motion2.path,
|
|
214
|
+
{
|
|
215
|
+
animate: controls,
|
|
216
|
+
custom: index + 1,
|
|
217
|
+
d,
|
|
218
|
+
variants: PATH_VARIANTS
|
|
219
|
+
},
|
|
220
|
+
d
|
|
221
|
+
))
|
|
222
|
+
]
|
|
223
|
+
}
|
|
224
|
+
)
|
|
225
|
+
}
|
|
226
|
+
);
|
|
227
|
+
}
|
|
228
|
+
);
|
|
229
|
+
SunIcon.displayName = "SunIcon";
|
|
230
|
+
|
|
231
|
+
export {
|
|
232
|
+
MoonIcon,
|
|
233
|
+
SunIcon
|
|
234
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./components/column-card/index";
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AccountMenu
|
|
3
|
+
*
|
|
4
|
+
* Trigger: press (plus hover and keys). A profile pill (avatar with a status
|
|
5
|
+
* dot, name and a chevron) that morphs into a full account card when pressed:
|
|
6
|
+
* the pill's outline grows into the card while the avatar and name fly into
|
|
7
|
+
* the header and the rest of the card rises in after them. In the header band
|
|
8
|
+
* a status picker slides a white pill between Online, Focus, Away and Hidden;
|
|
9
|
+
* the avatar's dot changes colour with a pop and a ring pulses out of it, and
|
|
10
|
+
* the line under the name rolls to match. Three quick tiles lift on hover and
|
|
11
|
+
* play their icons. A workspace switcher glides a pill under the pointer and
|
|
12
|
+
* the check flies to the chosen workspace while the header's plan line rolls.
|
|
13
|
+
* A storage meter fills with a spring and a sheen runs across it. Log out asks
|
|
14
|
+
* twice: the first press rolls the label and a red wash fills from the left
|
|
15
|
+
* as a countdown, and the second press signs out. Escape or the chevron folds
|
|
16
|
+
* the card back into the pill. Arrow keys move through the rows. Reduced
|
|
17
|
+
* motion keeps every state without movement.
|
|
18
|
+
*
|
|
19
|
+
* Engine: motion/react (a layout morph between the pill and the card,
|
|
20
|
+
* shared layoutIds for the avatar and name, layoutId pills and checks,
|
|
21
|
+
* staggered entrances and rolling labels) with animated icons from
|
|
22
|
+
* lucide-animated (MIT), vendored in src/icons.
|
|
23
|
+
*/
|
|
24
|
+
import * as React from "react";
|
|
25
|
+
export type AccountStatus = "online" | "focus" | "away" | "hidden";
|
|
26
|
+
export interface AccountWorkspace {
|
|
27
|
+
id: string;
|
|
28
|
+
name: string;
|
|
29
|
+
/** A short line under the name, like the plan. */
|
|
30
|
+
plan: string;
|
|
31
|
+
/** Background of the workspace's letter tile. */
|
|
32
|
+
color?: string;
|
|
33
|
+
}
|
|
34
|
+
export interface AccountMenuProps {
|
|
35
|
+
name?: string;
|
|
36
|
+
/** A short line under the name, like a handle. */
|
|
37
|
+
handle?: string;
|
|
38
|
+
avatar?: string;
|
|
39
|
+
/** Start as the open card instead of the pill. */
|
|
40
|
+
defaultOpen?: boolean;
|
|
41
|
+
defaultStatus?: AccountStatus;
|
|
42
|
+
onStatusChange?: (status: AccountStatus) => void;
|
|
43
|
+
workspaces?: AccountWorkspace[];
|
|
44
|
+
defaultWorkspace?: string;
|
|
45
|
+
onWorkspaceChange?: (id: string) => void;
|
|
46
|
+
/** Used and total storage in GB. Default `[6.4, 10]`. Pass `null` to hide the meter. */
|
|
47
|
+
storage?: [number, number] | null;
|
|
48
|
+
onUpgrade?: () => void;
|
|
49
|
+
onProfile?: () => void;
|
|
50
|
+
onSettings?: () => void;
|
|
51
|
+
onShortcuts?: () => void;
|
|
52
|
+
onNewWorkspace?: () => void;
|
|
53
|
+
onSignOut?: () => void;
|
|
54
|
+
className?: string;
|
|
55
|
+
}
|
|
56
|
+
export declare const AccountMenu: React.ForwardRefExoticComponent<AccountMenuProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AccountMenu, type AccountMenuProps, type AccountStatus, type AccountWorkspace, } from "./account-menu";
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ActionMenu
|
|
3
|
+
*
|
|
4
|
+
* Trigger: press, then hover. A dropdown of actions and links. Opening springs
|
|
5
|
+
* the panel out of its trigger while the items cascade in. A soft highlight
|
|
6
|
+
* slides between items as you hover or arrow through them. Copy actions shrink
|
|
7
|
+
* their icon away and draw a check while the label swaps to "Copied"; download
|
|
8
|
+
* actions bounce their arrow while a light gray water fill washes across the
|
|
9
|
+
* row, then draw the check. Link items nudge their arrow. Escape or a click outside closes it and
|
|
10
|
+
* focus returns to the trigger.
|
|
11
|
+
*
|
|
12
|
+
* Engine: motion/react + gsap (Motion for the panel spring, sliding highlight,
|
|
13
|
+
* label swaps and arrow nudges; gsap + @gsap/react for the item cascade and
|
|
14
|
+
* the icon timelines).
|
|
15
|
+
*/
|
|
16
|
+
import * as React from "react";
|
|
17
|
+
export type ActionMenuItem = {
|
|
18
|
+
kind: "copy" | "download";
|
|
19
|
+
label: string;
|
|
20
|
+
/** Label while the action confirms. Default "Copied" or "Downloaded". */
|
|
21
|
+
doneLabel?: string;
|
|
22
|
+
/** Text written to the clipboard for copy items. */
|
|
23
|
+
copyText?: string;
|
|
24
|
+
/** Runs when chosen. Download items wait for it before showing the check. */
|
|
25
|
+
onSelect?: () => void | Promise<void>;
|
|
26
|
+
} | {
|
|
27
|
+
kind: "link";
|
|
28
|
+
label: string;
|
|
29
|
+
href?: string;
|
|
30
|
+
onSelect?: () => void;
|
|
31
|
+
} | {
|
|
32
|
+
kind: "separator";
|
|
33
|
+
};
|
|
34
|
+
export interface ActionMenuProps {
|
|
35
|
+
/** Trigger button label. Default `"Brand assets"`. */
|
|
36
|
+
label?: React.ReactNode;
|
|
37
|
+
/** Menu items, top to bottom. Default a brand-asset menu. */
|
|
38
|
+
items?: ActionMenuItem[];
|
|
39
|
+
/** Start open. Default `false`. */
|
|
40
|
+
defaultOpen?: boolean;
|
|
41
|
+
/** How long a confirmed action shows its check, in ms. Default `1400`. */
|
|
42
|
+
confirmFor?: number;
|
|
43
|
+
className?: string;
|
|
44
|
+
}
|
|
45
|
+
export declare const ActionMenu: React.ForwardRefExoticComponent<ActionMenuProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ActionMenu, type ActionMenuProps, type ActionMenuItem } from "./action-menu";
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ActivityGrid
|
|
3
|
+
*
|
|
4
|
+
* Trigger: in view, then hover, keys and resize. A white card with a year of
|
|
5
|
+
* daily activity as a heatmap: one column per week, one square per day, in
|
|
6
|
+
* tints and shades of one colour, dark ink by default. When the card scrolls into view the squares sweep
|
|
7
|
+
* in as a diagonal wave from the oldest week to today while the total counts
|
|
8
|
+
* up beside a change chip. Hover a day and its row and column stay lit while
|
|
9
|
+
* the rest dims, with a tooltip naming the day and its count; hover a step of
|
|
10
|
+
* the legend and only the days at that level stay lit. The grid measures its
|
|
11
|
+
* own width and shows as many recent weeks as fit, so it sits in a small card
|
|
12
|
+
* and stretches to the full year on a wide one; the total, the streak tiles
|
|
13
|
+
* and the period chip count to the new numbers when the width changes. The
|
|
14
|
+
* arrow keys move through the days. Reduced motion shows the final state at
|
|
15
|
+
* once.
|
|
16
|
+
*
|
|
17
|
+
* Engine: motion/react (motion values counting the numbers, AnimatePresence
|
|
18
|
+
* for the tooltip) with CSS transitions staggering the squares, a
|
|
19
|
+
* ResizeObserver fitting the weeks, and animated icons from lucide-animated
|
|
20
|
+
* (MIT), vendored in src/icons.
|
|
21
|
+
*/
|
|
22
|
+
import * as React from "react";
|
|
23
|
+
/**
|
|
24
|
+
* Ready made ramps: one colour each, from a light tint on quiet days to a
|
|
25
|
+
* deep shade on the busiest.
|
|
26
|
+
*/
|
|
27
|
+
export declare const ACTIVITY_PALETTES: {
|
|
28
|
+
readonly ink: readonly ["#dcdcda", "#a6a6a3", "#6e6e6b", "#242423"];
|
|
29
|
+
readonly green: readonly ["#c9f2d5", "#7ddc96", "#2fbf5c", "#17803a"];
|
|
30
|
+
readonly violet: readonly ["#ddd6ff", "#ad9bff", "#7b61ff", "#4a2fd1"];
|
|
31
|
+
readonly mint: readonly ["#c6f4e3", "#6fe0b8", "#16c79a", "#0b8a6a"];
|
|
32
|
+
readonly amber: readonly ["#ffe7b3", "#ffc85c", "#ffad1f", "#d98200"];
|
|
33
|
+
readonly sky: readonly ["#cbeaff", "#7cc8ff", "#2aa8f2", "#0a72b8"];
|
|
34
|
+
};
|
|
35
|
+
export interface ActivityGridProps {
|
|
36
|
+
/** Card title. Default `"Focus sessions"`. */
|
|
37
|
+
title?: string;
|
|
38
|
+
/** One value per day, oldest first, the last one is today. Default a year of sample sessions. */
|
|
39
|
+
data?: number[];
|
|
40
|
+
/** The last day in `data`. Default today. */
|
|
41
|
+
endDate?: Date;
|
|
42
|
+
/** What is counted, singular. Default `"session"`. */
|
|
43
|
+
unit?: string;
|
|
44
|
+
/** A ready made colour, in tints and shades. Default `"ink"`, which turns light in dark mode. */
|
|
45
|
+
palette?: keyof typeof ACTIVITY_PALETTES;
|
|
46
|
+
/** Four colours for the activity levels, quietest to busiest; overrides `palette`. */
|
|
47
|
+
colors?: readonly [string, string, string, string];
|
|
48
|
+
/** Preferred square size in px; squares grow up to 16px when the whole year fits. Default `11`. */
|
|
49
|
+
cellSize?: number;
|
|
50
|
+
/** Show the three streak tiles. Default `true`. */
|
|
51
|
+
showStats?: boolean;
|
|
52
|
+
className?: string;
|
|
53
|
+
}
|
|
54
|
+
export declare const ActivityGrid: React.ForwardRefExoticComponent<ActivityGridProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ActivityGrid, ACTIVITY_PALETTES, type ActivityGridProps } from "./activity-grid";
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AddCard
|
|
3
|
+
*
|
|
4
|
+
* Trigger: press (plus hover). An empty state for payments: a white card that
|
|
5
|
+
* asks for a first payment card. Above the copy, a dark card floats over a
|
|
6
|
+
* dashed slot, tipped and waiting. Hovering it tilts it toward the cursor with
|
|
7
|
+
* a glare that follows, and the plus in the button turns on hover. Pressing
|
|
8
|
+
* the button types the card in: the last four digits roll in one by one, the
|
|
9
|
+
* name and expiry fill, then the card drops into its slot with a bounce, the
|
|
10
|
+
* dashes fade, a check pops on the card and the button turns green and rolls
|
|
11
|
+
* to its done label. Changes are announced, and reduced motion swaps the
|
|
12
|
+
* movement for fades. When the card scrolls into view, the stage fades up,
|
|
13
|
+
* the payment card swings in from above and settles into its float, the
|
|
14
|
+
* title and line rise out of a soft blur, and the button follows.
|
|
15
|
+
*
|
|
16
|
+
* Engine: motion/react (springs for the float, tilt and drop; AnimatePresence
|
|
17
|
+
* for the rolling text and icon swaps).
|
|
18
|
+
*/
|
|
19
|
+
import * as React from "react";
|
|
20
|
+
export interface AddCardProps {
|
|
21
|
+
/** Card title. Default `"Add your first card"`. */
|
|
22
|
+
title?: string;
|
|
23
|
+
/** Line under the title. */
|
|
24
|
+
subtitle?: string;
|
|
25
|
+
/** Button label. Default `"Add card"`. */
|
|
26
|
+
cta?: string;
|
|
27
|
+
/** Button label once the card is in. Default `"Card added"`. */
|
|
28
|
+
doneLabel?: string;
|
|
29
|
+
/** Small line under the button. Pass an empty string to hide it. */
|
|
30
|
+
note?: string;
|
|
31
|
+
/** Last four digits shown once added. Default `"4242"`. */
|
|
32
|
+
last4?: string;
|
|
33
|
+
/** Name shown once added. Default `"Alex Morgan"`. */
|
|
34
|
+
holder?: string;
|
|
35
|
+
/** Expiry shown once added. Default `"08/29"`. */
|
|
36
|
+
expiry?: string;
|
|
37
|
+
/** Called on press. Return a promise to hold the card until it settles; a rejection puts it back. */
|
|
38
|
+
onAdd?: () => void | Promise<unknown>;
|
|
39
|
+
className?: string;
|
|
40
|
+
}
|
|
41
|
+
export declare const AddCard: React.ForwardRefExoticComponent<AddCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AddCard, type AddCardProps } from "./add-card";
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AmountSlider
|
|
3
|
+
*
|
|
4
|
+
* Trigger: drag (plus press and keys). A white card for picking an amount: a
|
|
5
|
+
* label, a big amount whose digits roll like an odometer as it changes, a
|
|
6
|
+
* slider with an ink fill and a white grip thumb, and a soft gray row that
|
|
7
|
+
* works out the monthly payment as you go. Grabbing the thumb swells it and
|
|
8
|
+
* spreads its grip lines; dragging past either end stretches it a little like
|
|
9
|
+
* rubber before it springs back. Pressing the track glides the thumb there on
|
|
10
|
+
* a spring, and the arrow, Page and Home/End keys step it. The ink button's
|
|
11
|
+
* arrow slides through on hover. Reduced motion swaps the rolls and springs
|
|
12
|
+
* for plain changes.
|
|
13
|
+
*
|
|
14
|
+
* Engine: motion/react (a motion value for the thumb position, springs for
|
|
15
|
+
* track presses and the stretch, odometer digit columns).
|
|
16
|
+
*/
|
|
17
|
+
import * as React from "react";
|
|
18
|
+
export interface AmountSliderProps {
|
|
19
|
+
/** Label above the amount. Default `"How much do you need?"`. */
|
|
20
|
+
label?: string;
|
|
21
|
+
/** Lowest amount. Default `5000`. */
|
|
22
|
+
min?: number;
|
|
23
|
+
/** Highest amount. Default `500000`. */
|
|
24
|
+
max?: number;
|
|
25
|
+
/** Amounts snap to this step. Default `1000`. */
|
|
26
|
+
step?: number;
|
|
27
|
+
/** Starting amount. Default `75000`. */
|
|
28
|
+
defaultValue?: number;
|
|
29
|
+
/** ISO currency code. Default `"USD"`. */
|
|
30
|
+
currency?: string;
|
|
31
|
+
/** Yearly interest rate in percent, for the monthly estimate. Default `7.5`. */
|
|
32
|
+
rate?: number;
|
|
33
|
+
/** Term in months, for the monthly estimate. Default `60`. */
|
|
34
|
+
months?: number;
|
|
35
|
+
/** Button label. Default `"Continue"`. */
|
|
36
|
+
cta?: string;
|
|
37
|
+
/** Called as the amount changes. */
|
|
38
|
+
onChange?: (value: number) => void;
|
|
39
|
+
/** Called when the button is pressed. */
|
|
40
|
+
onSubmit?: (value: number) => void;
|
|
41
|
+
className?: string;
|
|
42
|
+
}
|
|
43
|
+
export declare const AmountSlider: React.ForwardRefExoticComponent<AmountSliderProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AmountSlider, type AmountSliderProps } from "./amount-slider";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AnnotationText
|
|
3
|
+
*
|
|
4
|
+
* Trigger: in view. Hand-drawn pen marks draw themselves around words when they
|
|
5
|
+
* scroll into view: an underline, a circle, a box or a strike-through, each with
|
|
6
|
+
* a slightly wobbly stroke so it reads as drawn, not ruled. Chain several with
|
|
7
|
+
* `delay`. Reduced motion shows the marks already drawn.
|
|
8
|
+
*
|
|
9
|
+
* Engine: motion/react (pathLength on SVG paths sized to the measured word).
|
|
10
|
+
*/
|
|
11
|
+
import * as React from "react";
|
|
12
|
+
export type AnnotationType = "underline" | "circle" | "box" | "strike";
|
|
13
|
+
export interface AnnotationTextProps {
|
|
14
|
+
children: React.ReactNode;
|
|
15
|
+
/** Mark to draw. Default `"underline"`. */
|
|
16
|
+
type?: AnnotationType;
|
|
17
|
+
/** Pen color. Default a warm red. */
|
|
18
|
+
color?: string;
|
|
19
|
+
/** Stroke width, px. Default `2.5`. */
|
|
20
|
+
strokeWidth?: number;
|
|
21
|
+
/** Seconds to wait before drawing, for chaining marks. Default `0`. */
|
|
22
|
+
delay?: number;
|
|
23
|
+
/** Seconds the stroke takes. Default `0.7`. */
|
|
24
|
+
duration?: number;
|
|
25
|
+
className?: string;
|
|
26
|
+
}
|
|
27
|
+
export declare function AnnotationText({ children, type, color, strokeWidth, delay, duration, className, }: AnnotationTextProps): React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AnnotationText, type AnnotationTextProps, type AnnotationType } from "./annotation-text";
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AuraCard
|
|
3
|
+
*
|
|
4
|
+
* Trigger: in view and timeline, plus hover and press. A feature card on a
|
|
5
|
+
* live two colour gradient: a main pool flows in the lower left and a second
|
|
6
|
+
* colour drifts in from the lower right, blending into it under a moving
|
|
7
|
+
* film grain that sits on the colour only while the top stays clear for the title and copy. The pool leans
|
|
8
|
+
* toward the pointer, soft rings ripple out from it, and a press anywhere on
|
|
9
|
+
* the card sends a wave through the colour. Four controls shape it: grain,
|
|
10
|
+
* noise (how much the flow warps), speed and ripple. In front, two glass
|
|
11
|
+
* keycaps press ⌘ and K, and a frosted command palette plays a loop: a
|
|
12
|
+
* command types itself, matching results blur in with the typed letters in
|
|
13
|
+
* bold, a highlight glides down the rows as the arrow key flashes, and Enter
|
|
14
|
+
* runs the chosen row: its icon plays, the return key turns into a check and
|
|
15
|
+
* the gradient ripples out from the row. Pointing at the palette pauses the
|
|
16
|
+
* loop so you can move the highlight yourself and click a row to run it.
|
|
17
|
+
* Everything pauses off screen and in a hidden tab. Reduced motion keeps a
|
|
18
|
+
* still frame of the gradient and the first command.
|
|
19
|
+
*
|
|
20
|
+
* Engine: motion/react (entrances, keycaps, the palette loop, a layoutId
|
|
21
|
+
* highlight) and a WebGL fragment shader (domain warped noise, ripples and
|
|
22
|
+
* grain), drawn on requestAnimationFrame only while the card is visible.
|
|
23
|
+
*/
|
|
24
|
+
import * as React from "react";
|
|
25
|
+
export type AuraCommandIcon = "card" | "history" | "download" | "deploy" | "undo" | "file" | "invite" | "team" | "mail";
|
|
26
|
+
export interface AuraCommand {
|
|
27
|
+
label: string;
|
|
28
|
+
icon: AuraCommandIcon;
|
|
29
|
+
/** Shortcut shown on the right while the row is not highlighted, like "G B". */
|
|
30
|
+
hint?: string;
|
|
31
|
+
}
|
|
32
|
+
export interface AuraScene {
|
|
33
|
+
/** What gets typed into the palette. */
|
|
34
|
+
query: string;
|
|
35
|
+
/** Results shown under it, up to four. */
|
|
36
|
+
results: AuraCommand[];
|
|
37
|
+
/** Which result the loop runs. Default the first. */
|
|
38
|
+
pick?: number;
|
|
39
|
+
}
|
|
40
|
+
export interface AuraCardProps {
|
|
41
|
+
/** Card title. Default `"Everything, one keystroke away"`. */
|
|
42
|
+
title?: React.ReactNode;
|
|
43
|
+
/** Line under the title. */
|
|
44
|
+
description?: React.ReactNode;
|
|
45
|
+
/** The palette plays these one after another. */
|
|
46
|
+
scenes?: AuraScene[];
|
|
47
|
+
/** Keys on the two keycaps. Default `["⌘", "K"]`. */
|
|
48
|
+
keys?: [string, string];
|
|
49
|
+
/** Four colors for the main pool in the lower left, deepest first. Default a blue to periwinkle ramp. */
|
|
50
|
+
colors?: [string, string, string, string];
|
|
51
|
+
/** The second pool's color, drifting in the lower right and blending into the first. Default `"#ff86c8"`. */
|
|
52
|
+
accent?: string;
|
|
53
|
+
/** Film grain over the gradient, 0 to 3. Default `1`. */
|
|
54
|
+
grain?: number;
|
|
55
|
+
/** How much the flow warps, 0 to 1. Default `0.5`. */
|
|
56
|
+
noise?: number;
|
|
57
|
+
/** Flow speed, 0 (still) to 2. Default `0.6`. */
|
|
58
|
+
speed?: number;
|
|
59
|
+
/** Strength of the rings and press waves, 0 to 1. Default `0.5`. */
|
|
60
|
+
ripple?: number;
|
|
61
|
+
className?: string;
|
|
62
|
+
}
|
|
63
|
+
export declare const AuraCard: React.ForwardRefExoticComponent<AuraCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AuraCard, type AuraCardProps } from "./aura-card";
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AuthCard
|
|
3
|
+
*
|
|
4
|
+
* Trigger: press and type (plus focus, hover and in view). One white card
|
|
5
|
+
* for signing in and signing up. Sign in asks for email and password, with
|
|
6
|
+
* a forgot password link, a Get started button, and Google, Apple and
|
|
7
|
+
* GitHub below. The line at the bottom switches modes, and the card changes
|
|
8
|
+
* in place instead of swapping pages: a name field grows in above the email,
|
|
9
|
+
* the forgot link folds away, a password strength meter fills in under the
|
|
10
|
+
* password, and the title, the button and the bottom line roll to their new
|
|
11
|
+
* words while the logo turns once. Email and password keep what was
|
|
12
|
+
* typed. Fields are full pills that wake on focus: the surface turns white,
|
|
13
|
+
* a soft ring grows and the field's icon plays, and once filled they stay
|
|
14
|
+
* white with a thin stroke to show they are done; a valid email earns a green check, the eye
|
|
15
|
+
* shows or hides the password, and fields that need fixing shake and explain
|
|
16
|
+
* why. Get started presses in; while it works a light sweeps across it, an
|
|
17
|
+
* arc spins and dots wave; when done it turns green with a ripple and the
|
|
18
|
+
* lock opens (sign in) or a check lands (sign up). Social buttons lift, wiggle their logo and show a spinner
|
|
19
|
+
* when pressed. Reduced motion keeps every state without movement.
|
|
20
|
+
*
|
|
21
|
+
* Engine: motion/react (height reveals with AnimatePresence, rolling text,
|
|
22
|
+
* keyframe shakes, springs) with animated icons from lucide-animated (MIT),
|
|
23
|
+
* vendored in src/icons.
|
|
24
|
+
*/
|
|
25
|
+
import * as React from "react";
|
|
26
|
+
export type AuthMode = "signin" | "signup";
|
|
27
|
+
export type AuthProvider = "google" | "apple" | "github";
|
|
28
|
+
export interface AuthDetails {
|
|
29
|
+
mode: AuthMode;
|
|
30
|
+
email: string;
|
|
31
|
+
password: string;
|
|
32
|
+
/** Only when signing up. */
|
|
33
|
+
name?: string;
|
|
34
|
+
}
|
|
35
|
+
export interface AuthCardProps {
|
|
36
|
+
/** Mode shown first. Default `"signin"`. */
|
|
37
|
+
defaultMode?: AuthMode;
|
|
38
|
+
/** Mode (controlled). */
|
|
39
|
+
mode?: AuthMode;
|
|
40
|
+
onModeChange?: (mode: AuthMode) => void;
|
|
41
|
+
/** Called with the details once they pass the checks. Return a promise to keep the button spinning until it settles; throw to show an error. */
|
|
42
|
+
onSubmit?: (details: AuthDetails) => void | Promise<void>;
|
|
43
|
+
/** Called by the Google, Apple and GitHub buttons. */
|
|
44
|
+
onSocial?: (provider: AuthProvider) => void | Promise<void>;
|
|
45
|
+
/** Called by the forgot password link. */
|
|
46
|
+
onForgotPassword?: (email: string) => void;
|
|
47
|
+
/** Your logo for the top of the card. Default a placeholder gradient mark. */
|
|
48
|
+
logo?: React.ReactNode;
|
|
49
|
+
className?: string;
|
|
50
|
+
}
|
|
51
|
+
export declare const AuthCard: React.ForwardRefExoticComponent<AuthCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AuthCard, type AuthCardProps, type AuthMode, type AuthProvider, type AuthDetails } from "./auth-card";
|