motion-brew 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +106 -2
- package/dist/account-menu.d.ts +1 -0
- package/dist/account-menu.js +16 -0
- package/dist/action-menu.d.ts +1 -0
- package/dist/action-menu.js +10 -0
- package/dist/activity-grid.d.ts +1 -0
- package/dist/activity-grid.js +14 -0
- package/dist/add-card.d.ts +1 -0
- package/dist/add-card.js +11 -0
- package/dist/amount-slider.d.ts +1 -0
- package/dist/amount-slider.js +10 -0
- package/dist/annotation-text.d.ts +1 -0
- package/dist/annotation-text.js +8 -0
- package/dist/aura-card.d.ts +1 -0
- package/dist/aura-card.js +19 -0
- package/dist/auth-card.d.ts +1 -0
- package/dist/auth-card.js +15 -0
- package/dist/avatar-testimonial.d.ts +1 -0
- package/dist/avatar-testimonial.js +8 -0
- package/dist/backspace-text.d.ts +1 -0
- package/dist/backspace-text.js +8 -0
- package/dist/bell-toggle.d.ts +1 -0
- package/dist/bell-toggle.js +8 -0
- package/dist/bill-list.d.ts +1 -0
- package/dist/bill-list.js +15 -0
- package/dist/binary-text.d.ts +1 -0
- package/dist/binary-text.js +8 -0
- package/dist/blur-accordion.d.ts +1 -0
- package/dist/blur-accordion.js +8 -0
- package/dist/blur-text.d.ts +1 -0
- package/dist/blur-text.js +8 -0
- package/dist/booking-card.d.ts +1 -0
- package/dist/booking-card.js +11 -0
- package/dist/brand-bridge.d.ts +1 -0
- package/dist/brand-bridge.js +12 -0
- package/dist/calendar-agenda.d.ts +1 -0
- package/dist/calendar-agenda.js +12 -0
- package/dist/channel-mix.d.ts +1 -0
- package/dist/channel-mix.js +11 -0
- package/dist/chunk-25254AZA.js +141 -0
- package/dist/chunk-2CIJ5TVW.js +59 -0
- package/dist/chunk-2GXY54MP.js +247 -0
- package/dist/chunk-2IMPUH4H.js +135 -0
- package/dist/chunk-2NRXP4HM.js +371 -0
- package/dist/chunk-2QCWELWT.js +120 -0
- package/dist/chunk-2TQSHVXA.js +12 -0
- package/dist/chunk-327TGRS5.js +75 -0
- package/dist/chunk-3B2RYSTL.js +867 -0
- package/dist/chunk-3RKCLFY5.js +634 -0
- package/dist/chunk-4BVCRIR4.js +51 -0
- package/dist/chunk-4CKKTOJK.js +366 -0
- package/dist/chunk-4IGMH34C.js +319 -0
- package/dist/chunk-4PI6UNIZ.js +464 -0
- package/dist/chunk-4RHQKP2P.js +664 -0
- package/dist/chunk-5MP5QNFG.js +560 -0
- package/dist/chunk-62RBYLIN.js +128 -0
- package/dist/chunk-6GAKTS3D.js +329 -0
- package/dist/chunk-6GRDT3OE.js +124 -0
- package/dist/chunk-6JQY7AX5.js +307 -0
- package/dist/chunk-6LOUA6XB.js +237 -0
- package/dist/chunk-6V6OTHNE.js +299 -0
- package/dist/chunk-6VZIT62Q.js +142 -0
- package/dist/chunk-6WSY725U.js +387 -0
- package/dist/chunk-6XSJC7M7.js +764 -0
- package/dist/chunk-75DEIDBX.js +129 -0
- package/dist/chunk-7FQ4XU7E.js +127 -0
- package/dist/chunk-7IL5WRJR.js +615 -0
- package/dist/chunk-7MPC3RUE.js +1462 -0
- package/dist/chunk-7PS2W7PU.js +112 -0
- package/dist/chunk-AATJOPNH.js +86 -0
- package/dist/chunk-ADXWPWJR.js +209 -0
- package/dist/chunk-ANNDITUM.js +47 -0
- package/dist/chunk-AQN6BHWC.js +325 -0
- package/dist/chunk-AVOS73MR.js +537 -0
- package/dist/chunk-B4LNE6YK.js +473 -0
- package/dist/chunk-BHUNLG6S.js +142 -0
- package/dist/chunk-BN4MA5UY.js +127 -0
- package/dist/chunk-BPE43MTT.js +183 -0
- package/dist/chunk-BPF3FQRS.js +590 -0
- package/dist/chunk-BRTZFUFR.js +503 -0
- package/dist/chunk-BS4ZFJKW.js +121 -0
- package/dist/chunk-BXAKCY6X.js +86 -0
- package/dist/chunk-CEQ56RF6.js +129 -0
- package/dist/chunk-CGDKH6BB.js +902 -0
- package/dist/chunk-CMTGYFT7.js +395 -0
- package/dist/chunk-COKBF5PG.js +3291 -0
- package/dist/chunk-DD55JZOI.js +257 -0
- package/dist/chunk-DQUXBNSH.js +412 -0
- package/dist/chunk-DR4DUSNF.js +265 -0
- package/dist/chunk-EDPCK6VU.js +419 -0
- package/dist/chunk-EEQ2WHTN.js +142 -0
- package/dist/chunk-ERVE5RSN.js +793 -0
- package/dist/chunk-FFUBTMDC.js +303 -0
- package/dist/chunk-FK4TZ5OW.js +29 -0
- package/dist/chunk-FXI6NHNR.js +1033 -0
- package/dist/chunk-G3XH7YT2.js +122 -0
- package/dist/chunk-G7KDH7ME.js +559 -0
- package/dist/chunk-GRUDTDLX.js +534 -0
- package/dist/chunk-GUQINNWS.js +770 -0
- package/dist/chunk-GV3Q4D2N.js +320 -0
- package/dist/chunk-GVWOJJ3T.js +129 -0
- package/dist/chunk-GYDTIVOY.js +934 -0
- package/dist/chunk-H2JOCJWM.js +125 -0
- package/dist/chunk-H7XKIWHA.js +135 -0
- package/dist/chunk-HHXK3NAH.js +1382 -0
- package/dist/chunk-HK34LPY6.js +112 -0
- package/dist/chunk-HLJXNSMM.js +320 -0
- package/dist/chunk-HPJJAQ5L.js +406 -0
- package/dist/chunk-HYSXVKZB.js +213 -0
- package/dist/chunk-I45D4XV4.js +124 -0
- package/dist/chunk-I7KTTOOJ.js +113 -0
- package/dist/chunk-IDJOKV6S.js +67 -0
- package/dist/chunk-IGI6OLRX.js +138 -0
- package/dist/chunk-IKM7EEYN.js +117 -0
- package/dist/chunk-INV5FI6O.js +394 -0
- package/dist/chunk-IUBUAIQZ.js +321 -0
- package/dist/chunk-IYZOANPX.js +159 -0
- package/dist/chunk-JFTD3YAL.js +163 -0
- package/dist/chunk-JGEV462J.js +235 -0
- package/dist/chunk-JHT6RCGY.js +127 -0
- package/dist/chunk-JJEWOQYQ.js +141 -0
- package/dist/chunk-JT2EIO5M.js +129 -0
- package/dist/chunk-K3HQEHJ6.js +663 -0
- package/dist/chunk-K6ET254T.js +398 -0
- package/dist/chunk-KE563QS4.js +425 -0
- package/dist/chunk-LBRMNY72.js +159 -0
- package/dist/chunk-LNBTWX4J.js +114 -0
- package/dist/chunk-LS4FP6SI.js +37 -0
- package/dist/chunk-M22UY764.js +135 -0
- package/dist/chunk-M4YMNHPI.js +204 -0
- package/dist/chunk-MGBS5LRY.js +412 -0
- package/dist/chunk-MKJOBHPQ.js +215 -0
- package/dist/chunk-MQDOFNKI.js +818 -0
- package/dist/chunk-MUDKP3LK.js +120 -0
- package/dist/chunk-N4ZNBWKO.js +118 -0
- package/dist/chunk-NB5CB65C.js +137 -0
- package/dist/chunk-NCEAUODT.js +172 -0
- package/dist/chunk-NGX34WJO.js +335 -0
- package/dist/chunk-NIQFSLPC.js +114 -0
- package/dist/chunk-NJWTPRGJ.js +806 -0
- package/dist/chunk-NNKC6NEH.js +128 -0
- package/dist/chunk-NY7M42KC.js +112 -0
- package/dist/chunk-O7G4ISAC.js +277 -0
- package/dist/chunk-O7QYPA6X.js +700 -0
- package/dist/chunk-OEDHLZ4T.js +651 -0
- package/dist/chunk-OGQQ2FZZ.js +114 -0
- package/dist/chunk-OINRQUYT.js +186 -0
- package/dist/chunk-OMJBDFEW.js +506 -0
- package/dist/chunk-ONUWTWKP.js +345 -0
- package/dist/chunk-OS6REIBR.js +154 -0
- package/dist/chunk-OUVP5VKH.js +702 -0
- package/dist/chunk-OVEBMZHA.js +573 -0
- package/dist/chunk-PFEHD3A2.js +409 -0
- package/dist/chunk-PJ5EVDNN.js +157 -0
- package/dist/chunk-PKM6B4JJ.js +108 -0
- package/dist/chunk-PV3OYTMT.js +596 -0
- package/dist/chunk-RBSLSNMW.js +444 -0
- package/dist/chunk-RE74K7KI.js +370 -0
- package/dist/chunk-RP22J4NX.js +247 -0
- package/dist/chunk-RU2Q2XVP.js +287 -0
- package/dist/chunk-RWUARRFZ.js +267 -0
- package/dist/chunk-RZ2UCZ3C.js +212 -0
- package/dist/chunk-SBDTC4UY.js +367 -0
- package/dist/chunk-SKEE23KW.js +137 -0
- package/dist/chunk-SOW7S7ET.js +1103 -0
- package/dist/chunk-SQ7F3VBU.js +1069 -0
- package/dist/chunk-SSWKGVRI.js +172 -0
- package/dist/chunk-T2TSMDP3.js +1022 -0
- package/dist/chunk-TAFVHTWV.js +607 -0
- package/dist/chunk-TNLY4CSA.js +523 -0
- package/dist/chunk-TP3XIHL5.js +787 -0
- package/dist/chunk-TQ6KSDDE.js +682 -0
- package/dist/chunk-TRWXLGL7.js +885 -0
- package/dist/chunk-TTNORJF5.js +908 -0
- package/dist/chunk-UD5OQ2T3.js +117 -0
- package/dist/chunk-UDFBQWUH.js +333 -0
- package/dist/chunk-USRMXCZD.js +625 -0
- package/dist/chunk-VAPHE4G4.js +442 -0
- package/dist/chunk-VEC5QAOY.js +104 -0
- package/dist/chunk-VIR5NV5W.js +118 -0
- package/dist/chunk-VT2FNWQF.js +240 -0
- package/dist/chunk-VX4XEYQN.js +837 -0
- package/dist/chunk-WE7VCUOA.js +130 -0
- package/dist/chunk-WFWO2EIW.js +120 -0
- package/dist/chunk-WGIT4MMH.js +350 -0
- package/dist/chunk-WOR2GMMN.js +114 -0
- package/dist/chunk-WTTDB475.js +54 -0
- package/dist/chunk-WWWKMU4Y.js +184 -0
- package/dist/chunk-XDR4FO6Q.js +124 -0
- package/dist/chunk-XH6YNONO.js +112 -0
- package/dist/chunk-XL4L2J6N.js +129 -0
- package/dist/chunk-Y6MTC46Q.js +684 -0
- package/dist/chunk-YFLQ4HPJ.js +119 -0
- package/dist/chunk-YGONLKWH.js +180 -0
- package/dist/chunk-YLSWBUDC.js +373 -0
- package/dist/chunk-YU6B7YRO.js +128 -0
- package/dist/chunk-YURGXJSP.js +102 -0
- package/dist/chunk-YVYYDPE2.js +124 -0
- package/dist/chunk-ZPGAMYOQ.js +1 -0
- package/dist/chunk-ZWGOAY27.js +234 -0
- package/dist/column-card.d.ts +1 -0
- package/dist/column-card.js +8 -0
- package/dist/components/account-menu/account-menu.d.ts +56 -0
- package/dist/components/account-menu/index.d.ts +1 -0
- package/dist/components/action-menu/action-menu.d.ts +45 -0
- package/dist/components/action-menu/index.d.ts +1 -0
- package/dist/components/activity-grid/activity-grid.d.ts +54 -0
- package/dist/components/activity-grid/index.d.ts +1 -0
- package/dist/components/add-card/add-card.d.ts +41 -0
- package/dist/components/add-card/index.d.ts +1 -0
- package/dist/components/amount-slider/amount-slider.d.ts +43 -0
- package/dist/components/amount-slider/index.d.ts +1 -0
- package/dist/components/annotation-text/annotation-text.d.ts +27 -0
- package/dist/components/annotation-text/index.d.ts +1 -0
- package/dist/components/aura-card/aura-card.d.ts +63 -0
- package/dist/components/aura-card/index.d.ts +1 -0
- package/dist/components/auth-card/auth-card.d.ts +51 -0
- package/dist/components/auth-card/index.d.ts +1 -0
- package/dist/components/avatar-testimonial/avatar-testimonial.d.ts +39 -0
- package/dist/components/avatar-testimonial/index.d.ts +1 -0
- package/dist/components/backspace-text/backspace-text.d.ts +27 -0
- package/dist/components/backspace-text/index.d.ts +1 -0
- package/dist/components/bell-toggle/bell-toggle.d.ts +33 -0
- package/dist/components/bell-toggle/index.d.ts +1 -0
- package/dist/components/bill-list/bill-list.d.ts +49 -0
- package/dist/components/bill-list/index.d.ts +1 -0
- package/dist/components/binary-text/binary-text.d.ts +24 -0
- package/dist/components/binary-text/index.d.ts +1 -0
- package/dist/components/blur-accordion/blur-accordion.d.ts +35 -0
- package/dist/components/blur-accordion/index.d.ts +1 -0
- package/dist/components/blur-text/blur-text.d.ts +33 -0
- package/dist/components/blur-text/index.d.ts +1 -0
- package/dist/components/booking-card/booking-card.d.ts +56 -0
- package/dist/components/booking-card/index.d.ts +1 -0
- package/dist/components/brand-bridge/brand-bridge.d.ts +63 -0
- package/dist/components/brand-bridge/index.d.ts +1 -0
- package/dist/components/calendar-agenda/calendar-agenda.d.ts +64 -0
- package/dist/components/calendar-agenda/index.d.ts +1 -0
- package/dist/components/channel-mix/channel-mix.d.ts +63 -0
- package/dist/components/channel-mix/index.d.ts +1 -0
- package/dist/components/column-card/column-card.d.ts +39 -0
- package/dist/components/column-card/index.d.ts +1 -0
- package/dist/components/contact-card/contact-card.d.ts +44 -0
- package/dist/components/contact-card/index.d.ts +1 -0
- package/dist/components/context-menu/context-menu.d.ts +59 -0
- package/dist/components/context-menu/index.d.ts +1 -0
- package/dist/components/contour-feature-card/contour-feature-card.d.ts +36 -0
- package/dist/components/contour-feature-card/index.d.ts +1 -0
- package/dist/components/contour-lines/contour-lines.d.ts +34 -0
- package/dist/components/contour-lines/index.d.ts +1 -0
- package/dist/components/decay-card/decay-card.d.ts +44 -0
- package/dist/components/decay-card/index.d.ts +1 -0
- package/dist/components/deploy-streak/deploy-streak.d.ts +30 -0
- package/dist/components/deploy-streak/index.d.ts +1 -0
- package/dist/components/depth-carousel/depth-carousel.d.ts +42 -0
- package/dist/components/depth-carousel/index.d.ts +1 -0
- package/dist/components/device-traffic/device-traffic.d.ts +59 -0
- package/dist/components/device-traffic/index.d.ts +1 -0
- package/dist/components/download-button/download-button.d.ts +36 -0
- package/dist/components/download-button/index.d.ts +1 -0
- package/dist/components/event-card/event-card.d.ts +55 -0
- package/dist/components/event-card/index.d.ts +1 -0
- package/dist/components/file-drop/file-drop.d.ts +46 -0
- package/dist/components/file-drop/index.d.ts +1 -0
- package/dist/components/flip-words/flip-words.d.ts +26 -0
- package/dist/components/flip-words/index.d.ts +1 -0
- package/dist/components/flux-card/flux-card.d.ts +56 -0
- package/dist/components/flux-card/index.d.ts +1 -0
- package/dist/components/fuse-button/fuse-button.d.ts +75 -0
- package/dist/components/fuse-button/index.d.ts +1 -0
- package/dist/components/globe-card/globe-card.d.ts +46 -0
- package/dist/components/globe-card/index.d.ts +1 -0
- package/dist/components/goal-gauge/goal-gauge.d.ts +47 -0
- package/dist/components/goal-gauge/index.d.ts +1 -0
- package/dist/components/gradient-card/gradient-card.d.ts +56 -0
- package/dist/components/gradient-card/index.d.ts +1 -0
- package/dist/components/gradient-text/gradient-text.d.ts +22 -0
- package/dist/components/gradient-text/index.d.ts +1 -0
- package/dist/components/gravity-tag-pile/gravity-tag-pile.d.ts +69 -0
- package/dist/components/gravity-tag-pile/index.d.ts +1 -0
- package/dist/components/growth-stream/growth-stream.d.ts +47 -0
- package/dist/components/growth-stream/index.d.ts +1 -0
- package/dist/components/highlight-text/highlight-text.d.ts +22 -0
- package/dist/components/highlight-text/index.d.ts +1 -0
- package/dist/components/hold-to-confirm/hold-to-confirm.d.ts +32 -0
- package/dist/components/hold-to-confirm/index.d.ts +1 -0
- package/dist/components/infinite-gallery/index.d.ts +1 -0
- package/dist/components/infinite-gallery/infinite-gallery.d.ts +73 -0
- package/dist/components/integration-hub/index.d.ts +1 -0
- package/dist/components/integration-hub/integration-hub.d.ts +40 -0
- package/dist/components/liquid-card/index.d.ts +1 -0
- package/dist/components/liquid-card/liquid-card.d.ts +66 -0
- package/dist/components/liquid-metal-card/index.d.ts +1 -0
- package/dist/components/liquid-metal-card/liquid-metal-card.d.ts +45 -0
- package/dist/components/liquid-tabs/index.d.ts +1 -0
- package/dist/components/liquid-tabs/liquid-tabs.d.ts +47 -0
- package/dist/components/magnetic-button/index.d.ts +1 -0
- package/dist/components/magnetic-button/magnetic-button.d.ts +46 -0
- package/dist/components/magnetic-flow/index.d.ts +1 -0
- package/dist/components/magnetic-flow/magnetic-flow.d.ts +35 -0
- package/dist/components/message-composer/index.d.ts +1 -0
- package/dist/components/message-composer/message-composer.d.ts +79 -0
- package/dist/components/metal-card-stack/index.d.ts +1 -0
- package/dist/components/metal-card-stack/metal-card-stack.d.ts +49 -0
- package/dist/components/metric-split/index.d.ts +1 -0
- package/dist/components/metric-split/metric-split.d.ts +45 -0
- package/dist/components/mix-chart/index.d.ts +1 -0
- package/dist/components/mix-chart/mix-chart.d.ts +59 -0
- package/dist/components/month-calendar/index.d.ts +1 -0
- package/dist/components/month-calendar/month-calendar.d.ts +34 -0
- package/dist/components/morph-search/index.d.ts +1 -0
- package/dist/components/morph-search/morph-search.d.ts +33 -0
- package/dist/components/orbit-card/index.d.ts +1 -0
- package/dist/components/orbit-card/orbit-card.d.ts +50 -0
- package/dist/components/otp-code/index.d.ts +1 -0
- package/dist/components/otp-code/otp-code.d.ts +61 -0
- package/dist/components/particle-card/index.d.ts +1 -0
- package/dist/components/particle-card/particle-card.d.ts +57 -0
- package/dist/components/payment-form/index.d.ts +1 -0
- package/dist/components/payment-form/payment-form.d.ts +54 -0
- package/dist/components/pill-tabs/index.d.ts +1 -0
- package/dist/components/pill-tabs/pill-tabs.d.ts +39 -0
- package/dist/components/pixel-blast/index.d.ts +1 -0
- package/dist/components/pixel-blast/pixel-blast.d.ts +41 -0
- package/dist/components/pixel-feature-card/index.d.ts +1 -0
- package/dist/components/pixel-feature-card/pixel-feature-card.d.ts +43 -0
- package/dist/components/pixel-scroll/index.d.ts +1 -0
- package/dist/components/pixel-scroll/pixel-scroll.d.ts +64 -0
- package/dist/components/pricing-card/index.d.ts +1 -0
- package/dist/components/pricing-card/pricing-card.d.ts +60 -0
- package/dist/components/prism-carousel/index.d.ts +1 -0
- package/dist/components/prism-carousel/prism-carousel.d.ts +54 -0
- package/dist/components/prism-flow/index.d.ts +1 -0
- package/dist/components/prism-flow/prism-flow.d.ts +41 -0
- package/dist/components/privacy-banner/index.d.ts +1 -0
- package/dist/components/privacy-banner/privacy-banner.d.ts +41 -0
- package/dist/components/profile-card/index.d.ts +1 -0
- package/dist/components/profile-card/profile-card.d.ts +52 -0
- package/dist/components/profile-menu/index.d.ts +1 -0
- package/dist/components/profile-menu/profile-menu.d.ts +43 -0
- package/dist/components/project-index/index.d.ts +1 -0
- package/dist/components/project-index/project-index.d.ts +65 -0
- package/dist/components/prompt-input/index.d.ts +1 -0
- package/dist/components/prompt-input/prompt-input.d.ts +49 -0
- package/dist/components/quota-gauge/index.d.ts +1 -0
- package/dist/components/quota-gauge/quota-gauge.d.ts +30 -0
- package/dist/components/range-chart/index.d.ts +1 -0
- package/dist/components/range-chart/range-chart.d.ts +47 -0
- package/dist/components/reaction-card/index.d.ts +1 -0
- package/dist/components/reaction-card/reaction-card.d.ts +60 -0
- package/dist/components/recap-card/index.d.ts +1 -0
- package/dist/components/recap-card/recap-card.d.ts +61 -0
- package/dist/components/receipt-button/index.d.ts +1 -0
- package/dist/components/receipt-button/receipt-button.d.ts +53 -0
- package/dist/components/ribbon-gallery/index.d.ts +1 -0
- package/dist/components/ribbon-gallery/ribbon-gallery.d.ts +61 -0
- package/dist/components/roadmap-card/index.d.ts +1 -0
- package/dist/components/roadmap-card/roadmap-card.d.ts +38 -0
- package/dist/components/rolling-card-stack/index.d.ts +1 -0
- package/dist/components/rolling-card-stack/rolling-card-stack.d.ts +53 -0
- package/dist/components/rolling-stepper/index.d.ts +1 -0
- package/dist/components/rolling-stepper/rolling-stepper.d.ts +33 -0
- package/dist/components/rotating-text/index.d.ts +1 -0
- package/dist/components/rotating-text/rotating-text.d.ts +25 -0
- package/dist/components/score-card/index.d.ts +1 -0
- package/dist/components/score-card/score-card.d.ts +40 -0
- package/dist/components/search-modal/index.d.ts +1 -0
- package/dist/components/search-modal/search-modal.d.ts +62 -0
- package/dist/components/shimmer-text/index.d.ts +1 -0
- package/dist/components/shimmer-text/shimmer-text.d.ts +22 -0
- package/dist/components/sidebar-nav/index.d.ts +1 -0
- package/dist/components/sidebar-nav/sidebar-nav.d.ts +71 -0
- package/dist/components/slide-commit/index.d.ts +1 -0
- package/dist/components/slide-commit/slide-commit.d.ts +39 -0
- package/dist/components/spatial-gallery/index.d.ts +1 -0
- package/dist/components/spatial-gallery/spatial-gallery.d.ts +88 -0
- package/dist/components/spending-meter/index.d.ts +1 -0
- package/dist/components/spending-meter/spending-meter.d.ts +41 -0
- package/dist/components/tab-bar/index.d.ts +1 -0
- package/dist/components/tab-bar/tab-bar.d.ts +44 -0
- package/dist/components/team-member-card/index.d.ts +1 -0
- package/dist/components/team-member-card/team-member-card.d.ts +66 -0
- package/dist/components/team-morph/index.d.ts +1 -0
- package/dist/components/team-morph/team-morph.d.ts +38 -0
- package/dist/components/tilt-card/index.d.ts +1 -0
- package/dist/components/tilt-card/tilt-card.d.ts +27 -0
- package/dist/components/tilt-carousel/index.d.ts +1 -0
- package/dist/components/tilt-carousel/tilt-carousel.d.ts +43 -0
- package/dist/components/toast-stack/index.d.ts +1 -0
- package/dist/components/toast-stack/toast-stack.d.ts +57 -0
- package/dist/components/usage-ring/index.d.ts +1 -0
- package/dist/components/usage-ring/usage-ring.d.ts +40 -0
- package/dist/components/verify-flow/index.d.ts +1 -0
- package/dist/components/verify-flow/verify-flow.d.ts +49 -0
- package/dist/components/voice-prompt/index.d.ts +1 -0
- package/dist/components/voice-prompt/voice-prompt.d.ts +55 -0
- package/dist/components/wallet-card/index.d.ts +1 -0
- package/dist/components/wallet-card/wallet-card.d.ts +54 -0
- package/dist/components/wave-text/index.d.ts +1 -0
- package/dist/components/wave-text/wave-text.d.ts +27 -0
- package/dist/contact-card.d.ts +1 -0
- package/dist/contact-card.js +12 -0
- package/dist/context-menu.d.ts +1 -0
- package/dist/context-menu.js +17 -0
- package/dist/contour-feature-card.d.ts +1 -0
- package/dist/contour-feature-card.js +9 -0
- package/dist/contour-lines.d.ts +1 -0
- package/dist/contour-lines.js +8 -0
- package/dist/decay-card.d.ts +1 -0
- package/dist/decay-card.js +8 -0
- package/dist/deploy-streak.d.ts +1 -0
- package/dist/deploy-streak.js +9 -0
- package/dist/depth-carousel.d.ts +1 -0
- package/dist/depth-carousel.js +8 -0
- package/dist/device-traffic.d.ts +1 -0
- package/dist/device-traffic.js +12 -0
- package/dist/download-button.d.ts +1 -0
- package/dist/download-button.js +8 -0
- package/dist/event-card.d.ts +1 -0
- package/dist/event-card.js +12 -0
- package/dist/file-drop.d.ts +1 -0
- package/dist/file-drop.js +12 -0
- package/dist/flip-words.d.ts +1 -0
- package/dist/flip-words.js +8 -0
- package/dist/flux-card.d.ts +1 -0
- package/dist/flux-card.js +13 -0
- package/dist/fuse-button.d.ts +1 -0
- package/dist/fuse-button.js +9 -0
- package/dist/globe-card.d.ts +1 -0
- package/dist/globe-card.js +8 -0
- package/dist/goal-gauge.d.ts +1 -0
- package/dist/goal-gauge.js +9 -0
- package/dist/gradient-card.d.ts +1 -0
- package/dist/gradient-card.js +8 -0
- package/dist/gradient-text.d.ts +1 -0
- package/dist/gradient-text.js +8 -0
- package/dist/gravity-tag-pile.d.ts +1 -0
- package/dist/gravity-tag-pile.js +9 -0
- package/dist/growth-stream.d.ts +1 -0
- package/dist/growth-stream.js +10 -0
- package/dist/highlight-text.d.ts +1 -0
- package/dist/highlight-text.js +8 -0
- package/dist/hold-to-confirm.d.ts +1 -0
- package/dist/hold-to-confirm.js +8 -0
- package/dist/icons/activity.d.ts +15 -0
- package/dist/icons/archive.d.ts +15 -0
- package/dist/icons/arrow-down-right.d.ts +15 -0
- package/dist/icons/arrow-down.d.ts +15 -0
- package/dist/icons/arrow-right.d.ts +15 -0
- package/dist/icons/arrow-up-right.d.ts +15 -0
- package/dist/icons/arrow-up.d.ts +15 -0
- package/dist/icons/at-sign.d.ts +15 -0
- package/dist/icons/attach-file.d.ts +15 -0
- package/dist/icons/badge-alert.d.ts +15 -0
- package/dist/icons/bell.d.ts +15 -0
- package/dist/icons/bold.d.ts +15 -0
- package/dist/icons/bookmark.d.ts +15 -0
- package/dist/icons/bot.d.ts +15 -0
- package/dist/icons/calendar-check-2.d.ts +15 -0
- package/dist/icons/calendar-check.d.ts +15 -0
- package/dist/icons/calendar-days.d.ts +15 -0
- package/dist/icons/chart-line.d.ts +15 -0
- package/dist/icons/chart-pie.d.ts +15 -0
- package/dist/icons/check.d.ts +15 -0
- package/dist/icons/chevron-down.d.ts +15 -0
- package/dist/icons/chevron-left.d.ts +15 -0
- package/dist/icons/chevron-right.d.ts +15 -0
- package/dist/icons/circle-check.d.ts +15 -0
- package/dist/icons/circle-dollar-sign.d.ts +15 -0
- package/dist/icons/clipboard-check.d.ts +15 -0
- package/dist/icons/clock.d.ts +15 -0
- package/dist/icons/cloud-upload.d.ts +15 -0
- package/dist/icons/compass.d.ts +15 -0
- package/dist/icons/contrast.d.ts +15 -0
- package/dist/icons/copy.d.ts +15 -0
- package/dist/icons/credit-card.d.ts +15 -0
- package/dist/icons/delete.d.ts +15 -0
- package/dist/icons/download.d.ts +15 -0
- package/dist/icons/dribbble.d.ts +15 -0
- package/dist/icons/earth.d.ts +15 -0
- package/dist/icons/eye-off.d.ts +15 -0
- package/dist/icons/eye.d.ts +15 -0
- package/dist/icons/feather.d.ts +15 -0
- package/dist/icons/figma.d.ts +15 -0
- package/dist/icons/file-text.d.ts +16 -0
- package/dist/icons/flame.d.ts +15 -0
- package/dist/icons/folder-input.d.ts +15 -0
- package/dist/icons/folder-open.d.ts +15 -0
- package/dist/icons/folders.d.ts +15 -0
- package/dist/icons/github.d.ts +15 -0
- package/dist/icons/hand-coins.d.ts +15 -0
- package/dist/icons/heart.d.ts +15 -0
- package/dist/icons/history.d.ts +15 -0
- package/dist/icons/home.d.ts +15 -0
- package/dist/icons/hourglass.d.ts +15 -0
- package/dist/icons/instagram.d.ts +15 -0
- package/dist/icons/italic.d.ts +15 -0
- package/dist/icons/layout-grid.d.ts +15 -0
- package/dist/icons/link.d.ts +15 -0
- package/dist/icons/linkedin.d.ts +15 -0
- package/dist/icons/loader-circle.d.ts +15 -0
- package/dist/icons/lock-keyhole-open.d.ts +15 -0
- package/dist/icons/lock-keyhole.d.ts +15 -0
- package/dist/icons/lock.d.ts +15 -0
- package/dist/icons/logout.d.ts +15 -0
- package/dist/icons/mail-check.d.ts +15 -0
- package/dist/icons/map-pin.d.ts +15 -0
- package/dist/icons/message-circle.d.ts +15 -0
- package/dist/icons/mic.d.ts +15 -0
- package/dist/icons/monitor-check.d.ts +15 -0
- package/dist/icons/moon.d.ts +15 -0
- package/dist/icons/palette.d.ts +15 -0
- package/dist/icons/panel-left-close.d.ts +15 -0
- package/dist/icons/panel-left-open.d.ts +15 -0
- package/dist/icons/plug-zap.d.ts +15 -0
- package/dist/icons/plus.d.ts +15 -0
- package/dist/icons/radio.d.ts +15 -0
- package/dist/icons/receipt.d.ts +15 -0
- package/dist/icons/refresh-cw.d.ts +15 -0
- package/dist/icons/rotate-ccw.d.ts +15 -0
- package/dist/icons/search.d.ts +15 -0
- package/dist/icons/send.d.ts +15 -0
- package/dist/icons/settings.d.ts +15 -0
- package/dist/icons/shield-check.d.ts +15 -0
- package/dist/icons/smartphone-nfc.d.ts +15 -0
- package/dist/icons/smile.d.ts +15 -0
- package/dist/icons/sparkles.d.ts +15 -0
- package/dist/icons/square-pen.d.ts +15 -0
- package/dist/icons/sun.d.ts +15 -0
- package/dist/icons/terminal.d.ts +15 -0
- package/dist/icons/timer.d.ts +15 -0
- package/dist/icons/trending-up.d.ts +15 -0
- package/dist/icons/twitter.d.ts +15 -0
- package/dist/icons/underline.d.ts +15 -0
- package/dist/icons/undo.d.ts +15 -0
- package/dist/icons/user-check.d.ts +15 -0
- package/dist/icons/user-plus.d.ts +15 -0
- package/dist/icons/user-round-plus.d.ts +15 -0
- package/dist/icons/user.d.ts +15 -0
- package/dist/icons/users.d.ts +15 -0
- package/dist/icons/wifi.d.ts +15 -0
- package/dist/icons/workflow.d.ts +15 -0
- package/dist/icons/x.d.ts +15 -0
- package/dist/icons/zap.d.ts +15 -0
- package/dist/index.d.ts +100 -0
- package/dist/index.js +472 -0
- package/dist/infinite-gallery.d.ts +1 -0
- package/dist/infinite-gallery.js +9 -0
- package/dist/integration-hub.d.ts +1 -0
- package/dist/integration-hub.js +8 -0
- package/dist/lib/cn.d.ts +3 -0
- package/dist/liquid-card.d.ts +1 -0
- package/dist/liquid-card.js +10 -0
- package/dist/liquid-metal-card.d.ts +1 -0
- package/dist/liquid-metal-card.js +8 -0
- package/dist/liquid-tabs.d.ts +1 -0
- package/dist/liquid-tabs.js +14 -0
- package/dist/magnetic-button.d.ts +1 -0
- package/dist/magnetic-button.js +8 -0
- package/dist/magnetic-flow.d.ts +1 -0
- package/dist/magnetic-flow.js +8 -0
- package/dist/message-composer.d.ts +1 -0
- package/dist/message-composer.js +20 -0
- package/dist/metal-card-stack.d.ts +1 -0
- package/dist/metal-card-stack.js +8 -0
- package/dist/metric-split.d.ts +1 -0
- package/dist/metric-split.js +9 -0
- package/dist/mix-chart.d.ts +1 -0
- package/dist/mix-chart.js +9 -0
- package/dist/month-calendar.d.ts +1 -0
- package/dist/month-calendar.js +10 -0
- package/dist/morph-search.d.ts +1 -0
- package/dist/morph-search.js +10 -0
- package/dist/orbit-card.d.ts +1 -0
- package/dist/orbit-card.js +8 -0
- package/dist/otp-code.d.ts +1 -0
- package/dist/otp-code.js +17 -0
- package/dist/particle-card.d.ts +1 -0
- package/dist/particle-card.js +8 -0
- package/dist/payment-form.d.ts +1 -0
- package/dist/payment-form.js +8 -0
- package/dist/pill-tabs.d.ts +1 -0
- package/dist/pill-tabs.js +9 -0
- package/dist/pixel-blast.d.ts +1 -0
- package/dist/pixel-blast.js +8 -0
- package/dist/pixel-feature-card.d.ts +1 -0
- package/dist/pixel-feature-card.js +9 -0
- package/dist/pixel-scroll.d.ts +1 -0
- package/dist/pixel-scroll.js +8 -0
- package/dist/pricing-card.d.ts +1 -0
- package/dist/pricing-card.js +14 -0
- package/dist/prism-carousel.d.ts +1 -0
- package/dist/prism-carousel.js +8 -0
- package/dist/prism-flow.d.ts +1 -0
- package/dist/prism-flow.js +8 -0
- package/dist/privacy-banner.d.ts +1 -0
- package/dist/privacy-banner.js +8 -0
- package/dist/profile-card.d.ts +1 -0
- package/dist/profile-card.js +13 -0
- package/dist/profile-menu.d.ts +1 -0
- package/dist/profile-menu.js +21 -0
- package/dist/project-index.d.ts +1 -0
- package/dist/project-index.js +9 -0
- package/dist/prompt-input.d.ts +1 -0
- package/dist/prompt-input.js +14 -0
- package/dist/quota-gauge.d.ts +1 -0
- package/dist/quota-gauge.js +9 -0
- package/dist/range-chart.d.ts +1 -0
- package/dist/range-chart.js +8 -0
- package/dist/reaction-card.d.ts +1 -0
- package/dist/reaction-card.js +8 -0
- package/dist/recap-card.d.ts +1 -0
- package/dist/recap-card.js +15 -0
- package/dist/receipt-button.d.ts +1 -0
- package/dist/receipt-button.js +8 -0
- package/dist/ribbon-gallery.d.ts +1 -0
- package/dist/ribbon-gallery.js +8 -0
- package/dist/roadmap-card.d.ts +1 -0
- package/dist/roadmap-card.js +11 -0
- package/dist/rolling-card-stack.d.ts +1 -0
- package/dist/rolling-card-stack.js +8 -0
- package/dist/rolling-stepper.d.ts +1 -0
- package/dist/rolling-stepper.js +8 -0
- package/dist/rotating-text.d.ts +1 -0
- package/dist/rotating-text.js +9 -0
- package/dist/score-card.d.ts +1 -0
- package/dist/score-card.js +10 -0
- package/dist/search-modal.d.ts +1 -0
- package/dist/search-modal.js +16 -0
- package/dist/shimmer-text.d.ts +1 -0
- package/dist/shimmer-text.js +8 -0
- package/dist/sidebar-nav.d.ts +1 -0
- package/dist/sidebar-nav.js +19 -0
- package/dist/slide-commit.d.ts +1 -0
- package/dist/slide-commit.js +9 -0
- package/dist/spatial-gallery.d.ts +1 -0
- package/dist/spatial-gallery.js +8 -0
- package/dist/spending-meter.d.ts +1 -0
- package/dist/spending-meter.js +9 -0
- package/dist/tab-bar.d.ts +1 -0
- package/dist/tab-bar.js +18 -0
- package/dist/team-member-card.d.ts +1 -0
- package/dist/team-member-card.js +14 -0
- package/dist/team-morph.d.ts +1 -0
- package/dist/team-morph.js +11 -0
- package/dist/tilt-card.d.ts +1 -0
- package/dist/tilt-card.js +8 -0
- package/dist/tilt-carousel.d.ts +1 -0
- package/dist/tilt-carousel.js +8 -0
- package/dist/toast-stack.d.ts +1 -0
- package/dist/toast-stack.js +13 -0
- package/dist/usage-ring.d.ts +1 -0
- package/dist/usage-ring.js +9 -0
- package/dist/verify-flow.d.ts +1 -0
- package/dist/verify-flow.js +10 -0
- package/dist/voice-prompt.d.ts +1 -0
- package/dist/voice-prompt.js +14 -0
- package/dist/wallet-card.d.ts +1 -0
- package/dist/wallet-card.js +15 -0
- package/dist/wave-text.d.ts +1 -0
- package/dist/wave-text.js +8 -0
- package/package.json +111 -4
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ReceiptButton
|
|
3
|
+
*
|
|
4
|
+
* Trigger: press, then a timeline. Pressing pay lifts the label away while a
|
|
5
|
+
* success fill washes across the button with a rippling water edge. A check draws itself and "Paid" rises
|
|
6
|
+
* in letter by letter. Then a receipt feeds up from behind the button line by
|
|
7
|
+
* line, like a thermal printer, and is torn off: its bottom edge rips into a
|
|
8
|
+
* zigzag and the slip lifts away with a slight tilt. It resets after a delay,
|
|
9
|
+
* or when the receipt is clicked. Reduced motion jumps straight to the end.
|
|
10
|
+
*
|
|
11
|
+
* Engine: gsap + @gsap/react (one timeline per payment, scoped with useGSAP,
|
|
12
|
+
* contextSafe handlers, clip-path tween for the tear).
|
|
13
|
+
*/
|
|
14
|
+
import * as React from "react";
|
|
15
|
+
export interface ReceiptItem {
|
|
16
|
+
qty: number;
|
|
17
|
+
name: string;
|
|
18
|
+
price: number;
|
|
19
|
+
}
|
|
20
|
+
export interface ReceiptButtonProps {
|
|
21
|
+
/** Line items on the receipt. The total is their sum. */
|
|
22
|
+
items?: ReceiptItem[];
|
|
23
|
+
/** Currency symbol. Default `"$"`. */
|
|
24
|
+
currency?: string;
|
|
25
|
+
/** Shop name at the top of the receipt. Default `"NORTH ROAST"`. */
|
|
26
|
+
merchant?: string;
|
|
27
|
+
/** Small line under the shop name. Default `"Coffee bar"`. */
|
|
28
|
+
tagline?: string;
|
|
29
|
+
/** Order number printed on the receipt. Default `"1042"`. */
|
|
30
|
+
orderId?: string;
|
|
31
|
+
/** Last line of the receipt. Default `"Thank you, come again"`. */
|
|
32
|
+
footer?: string;
|
|
33
|
+
/** Button label before paying. Default `Pay {total}`. */
|
|
34
|
+
label?: React.ReactNode;
|
|
35
|
+
/** Label once paid. Default `"Paid"`. */
|
|
36
|
+
paidLabel?: string;
|
|
37
|
+
/** How long the processing fill takes, in ms. Default `1200`. */
|
|
38
|
+
processing?: number;
|
|
39
|
+
/** Seconds per printed line. Lower prints faster. Default `0.09`. */
|
|
40
|
+
feedSpeed?: number;
|
|
41
|
+
/** Button color before paying. Default `"#141414"`. */
|
|
42
|
+
color?: string;
|
|
43
|
+
/** Fill and paid color. Default `"#2f8a4f"`. */
|
|
44
|
+
successColor?: string;
|
|
45
|
+
/** Reset this many ms after the tear. `null` keeps the receipt. Default `3200`. */
|
|
46
|
+
resetAfter?: number | null;
|
|
47
|
+
/** Called on press, when payment starts. */
|
|
48
|
+
onPay?: () => void;
|
|
49
|
+
/** Called once the receipt is torn off. */
|
|
50
|
+
onComplete?: () => void;
|
|
51
|
+
className?: string;
|
|
52
|
+
}
|
|
53
|
+
export declare const ReceiptButton: React.ForwardRefExoticComponent<ReceiptButtonProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { RibbonGallery, type RibbonGalleryItem, type RibbonGalleryProps } from "./ribbon-gallery";
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RibbonGallery
|
|
3
|
+
*
|
|
4
|
+
* Trigger: drag (plus wheel, trackpad and touch). An endless ribbon of cards
|
|
5
|
+
* wrapped on the inside of a curved screen and tilted across the frame (20
|
|
6
|
+
* degrees by default). Cards near the edges swing toward you while the center
|
|
7
|
+
* sits back, and every card bends smoothly with the curve. Drag or flick to
|
|
8
|
+
* spin it, scroll to glide, or let it drift. Speed makes the ribbon ripple like
|
|
9
|
+
* fabric (it ripples gently even at rest) and smears it with a motion blur along its length, both settling as it
|
|
10
|
+
* slows to its resting ripple. Hovering a card brings it fully into focus, its
|
|
11
|
+
* ripple settling flat, while the rest of the ribbon fades back. On first view it sweeps in from the side. Reduced motion keeps it
|
|
12
|
+
* still and flat-lit, with no ripple, blur or drift.
|
|
13
|
+
*
|
|
14
|
+
* Engine: motion/react (useAnimationFrame runs the camera; each card is cut into
|
|
15
|
+
* thin vertical slices placed on a cylinder with CSS 3D transforms written
|
|
16
|
+
* straight to the DOM, so it bends without WebGL or React re-renders).
|
|
17
|
+
*/
|
|
18
|
+
import * as React from "react";
|
|
19
|
+
export interface RibbonGalleryItem {
|
|
20
|
+
/** Image URL. */
|
|
21
|
+
src: string;
|
|
22
|
+
title: string;
|
|
23
|
+
/** Alt text. Default the title. */
|
|
24
|
+
alt?: string;
|
|
25
|
+
/** Where the card goes when clicked. */
|
|
26
|
+
href?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface RibbonGalleryProps {
|
|
29
|
+
/** Cards on the ribbon; repeated as needed to loop. Default sample photos. */
|
|
30
|
+
items?: RibbonGalleryItem[];
|
|
31
|
+
/** Tilt of the ribbon across the frame, degrees. `0` is horizontal. Default `20`. */
|
|
32
|
+
angle?: number;
|
|
33
|
+
/** How strongly the ribbon curves, 0 (flat) to 1 (tight). Default `0.45`. */
|
|
34
|
+
curve?: number;
|
|
35
|
+
/** Card width, px. Default `230`. */
|
|
36
|
+
cardWidth?: number;
|
|
37
|
+
/** Card height, px. Default `290`. */
|
|
38
|
+
cardHeight?: number;
|
|
39
|
+
/** Space between cards, px. Default `14`. */
|
|
40
|
+
gap?: number;
|
|
41
|
+
/** Idle drift, px/s. `0` stops it. Default `30`. */
|
|
42
|
+
drift?: number;
|
|
43
|
+
/** How far a flick carries, 0 to 1. Default `0.65`. */
|
|
44
|
+
momentum?: number;
|
|
45
|
+
/** Ripple strength, 0 (flat) to 2. The ribbon always ripples gently and swells further while dragged or scrolled. Default `1`. */
|
|
46
|
+
wave?: number;
|
|
47
|
+
/** Strongest motion blur along the ribbon, px. `0` turns it off. Default `9.5`. */
|
|
48
|
+
blur?: number;
|
|
49
|
+
/** Sweep in from the side the first time it scrolls into view. Default `true`. */
|
|
50
|
+
intro?: boolean;
|
|
51
|
+
/** Wheel and trackpad move the ribbon while hovered. Default `true`. */
|
|
52
|
+
wheel?: boolean;
|
|
53
|
+
/** How far the other cards fade back while one is hovered, 0 (no fade) to 1. Default `0.75`. */
|
|
54
|
+
dim?: number;
|
|
55
|
+
/** Color the other cards fade toward while one is hovered; match it to the background. Default a light gray. */
|
|
56
|
+
dimColor?: string;
|
|
57
|
+
/** Accessible name. Default `"Project ribbon"`. */
|
|
58
|
+
label?: string;
|
|
59
|
+
className?: string;
|
|
60
|
+
}
|
|
61
|
+
export declare const RibbonGallery: React.ForwardRefExoticComponent<RibbonGalleryProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { RoadmapCard, type RoadmapCardProps, type RoadmapPhase } from "./roadmap-card";
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RoadmapCard
|
|
3
|
+
*
|
|
4
|
+
* Trigger: press (plus keys and in view). A white card that walks through the
|
|
5
|
+
* phases of a product roadmap like stories. A row of bars across the top has
|
|
6
|
+
* one bar per phase: past ones full, the current one filling over the time
|
|
7
|
+
* each phase is shown, the rest empty; any bar jumps to its phase, and a
|
|
8
|
+
* small Playing chip pauses and resumes it. A big two digit phase number rolls
|
|
9
|
+
* like an odometer next to the title, the title and body blur across in the
|
|
10
|
+
* direction of travel, and a short list of milestones follows with each check
|
|
11
|
+
* drawing in one after another. Round previous and next buttons with animated
|
|
12
|
+
* chevrons step through, and so do the arrow keys. Reduced motion stops it
|
|
13
|
+
* playing on its own and swaps the moves for plain changes.
|
|
14
|
+
*
|
|
15
|
+
* Engine: motion/react (a motion value for the story fill that pauses and
|
|
16
|
+
* resumes from the chip, rolling digit columns, AnimatePresence for the text and the list)
|
|
17
|
+
* with animated icons from lucide-animated (MIT), vendored in src/icons.
|
|
18
|
+
*/
|
|
19
|
+
import * as React from "react";
|
|
20
|
+
export interface RoadmapPhase {
|
|
21
|
+
/** Short name, like "Private beta". Shown as the title. */
|
|
22
|
+
title: string;
|
|
23
|
+
body: string;
|
|
24
|
+
/** A few milestones, checked off under the body. */
|
|
25
|
+
focus?: string[];
|
|
26
|
+
}
|
|
27
|
+
export interface RoadmapCardProps {
|
|
28
|
+
/** Small label at the top. Default `"Product roadmap"`. */
|
|
29
|
+
label?: string;
|
|
30
|
+
phases?: RoadmapPhase[];
|
|
31
|
+
/** Phase shown first. Default `2` (the third). */
|
|
32
|
+
defaultPhase?: number;
|
|
33
|
+
/** Seconds per phase while it plays on its own; `0` turns it off. Default `5`. */
|
|
34
|
+
autoplay?: number;
|
|
35
|
+
onChange?: (index: number) => void;
|
|
36
|
+
className?: string;
|
|
37
|
+
}
|
|
38
|
+
export declare const RoadmapCard: React.ForwardRefExoticComponent<RoadmapCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { RollingCardStack, type RollingCardStackProps, type StackCard } from "./rolling-card-stack";
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RollingCardStack
|
|
3
|
+
*
|
|
4
|
+
* Trigger: drag (plus wheel, keys and a timeline). A deck of metric cards that
|
|
5
|
+
* rolls forward like a rolodex. The cards behind peek out above the front one,
|
|
6
|
+
* smaller and softer. On each advance the front card tips forward and rolls
|
|
7
|
+
* down out of view with a touch of blur, the next card glides into place, and
|
|
8
|
+
* the rolled card fades into the back of the stack. The new front card counts
|
|
9
|
+
* its number up and fills its segmented bar. It advances on its own, pausing
|
|
10
|
+
* while hovered or focused; drag it up or down, scroll or use the arrow keys
|
|
11
|
+
* to roll it yourself. Changes are announced politely.
|
|
12
|
+
* Reduced motion swaps cards with a fade.
|
|
13
|
+
*
|
|
14
|
+
* Engine: motion/react (keyframed roll, depth springs, drag with elastic snap,
|
|
15
|
+
* counting numbers and staggered bar fills).
|
|
16
|
+
*/
|
|
17
|
+
import * as React from "react";
|
|
18
|
+
import { type LucideIcon } from "lucide-react";
|
|
19
|
+
export interface StackCard {
|
|
20
|
+
title: string;
|
|
21
|
+
value: number;
|
|
22
|
+
/** Text before the number, like `"$"`. */
|
|
23
|
+
prefix?: string;
|
|
24
|
+
/** Text after the number, like `"%"`. */
|
|
25
|
+
suffix?: string;
|
|
26
|
+
/** Decimal places. Default `0`. */
|
|
27
|
+
decimals?: number;
|
|
28
|
+
/** Change label, like `"+12.4%"`. A leading minus shows it as a drop. */
|
|
29
|
+
delta?: string;
|
|
30
|
+
/** Bar fill, 0 to 1. */
|
|
31
|
+
progress: number;
|
|
32
|
+
/** Caption after the bar. Default `"<n>% of target"`. */
|
|
33
|
+
caption?: string;
|
|
34
|
+
/** Accent color for the bar and dot. */
|
|
35
|
+
color: string;
|
|
36
|
+
icon?: LucideIcon;
|
|
37
|
+
}
|
|
38
|
+
export interface RollingCardStackProps {
|
|
39
|
+
/** Cards in order. Default five product metrics. */
|
|
40
|
+
cards?: StackCard[];
|
|
41
|
+
/** Milliseconds between automatic rolls. `0` turns autoplay off. Default `3600`. */
|
|
42
|
+
interval?: number;
|
|
43
|
+
/** How many cards peek out behind the front one. Default `2`. */
|
|
44
|
+
peek?: number;
|
|
45
|
+
/** Pills in each card's bar. Default `10`. */
|
|
46
|
+
pills?: number;
|
|
47
|
+
/** Called with the new front card's index. */
|
|
48
|
+
onChange?: (index: number) => void;
|
|
49
|
+
/** Accessible name. Default `"Metrics"`. */
|
|
50
|
+
label?: string;
|
|
51
|
+
className?: string;
|
|
52
|
+
}
|
|
53
|
+
export declare const RollingCardStack: React.ForwardRefExoticComponent<RollingCardStackProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { RollingStepper, type RollingStepperProps } from "./rolling-stepper";
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RollingStepper
|
|
3
|
+
*
|
|
4
|
+
* Trigger: press. A number stepper whose digits roll like an odometer. Each
|
|
5
|
+
* digit is its own column of 0 to 9 that springs to the new value, so going
|
|
6
|
+
* from 19 to 20 rolls both columns. The buttons squash on press, and hitting
|
|
7
|
+
* the min or max gives a small sideways shake instead of a dead click.
|
|
8
|
+
* Arrow Up / Down step the value when the number is focused.
|
|
9
|
+
*
|
|
10
|
+
* Engine: motion/react (springs on transform, useAnimate for the shake).
|
|
11
|
+
*/
|
|
12
|
+
import * as React from "react";
|
|
13
|
+
import { type SpringOptions } from "motion/react";
|
|
14
|
+
export interface RollingStepperProps {
|
|
15
|
+
/** Controlled value. Leave out to let the stepper manage its own value. */
|
|
16
|
+
value?: number;
|
|
17
|
+
/** Starting value when uncontrolled. Default `0`. */
|
|
18
|
+
defaultValue?: number;
|
|
19
|
+
/** Called with the next value after every step. */
|
|
20
|
+
onValueChange?: (value: number) => void;
|
|
21
|
+
/** Lowest allowed value. Default `0`. */
|
|
22
|
+
min?: number;
|
|
23
|
+
/** Highest allowed value. Default `999`. */
|
|
24
|
+
max?: number;
|
|
25
|
+
/** Amount per step. Default `1`. */
|
|
26
|
+
step?: number;
|
|
27
|
+
/** Spring for the digit roll. Default `{ stiffness: 280, damping: 26, mass: 0.8 }`. */
|
|
28
|
+
spring?: SpringOptions;
|
|
29
|
+
/** Accessible name for the value. Default `"Quantity"`. */
|
|
30
|
+
label?: string;
|
|
31
|
+
className?: string;
|
|
32
|
+
}
|
|
33
|
+
export declare function RollingStepper({ value: valueProp, defaultValue, onValueChange, min, max, step, spring, label, className, }: RollingStepperProps): React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { RotatingText, type RotatingTextProps } from "./rotating-text";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RotatingText
|
|
3
|
+
*
|
|
4
|
+
* Trigger: hover. Text set on a circle spins slowly around a center badge.
|
|
5
|
+
* Hovering speeds the spin up and the arrow in the middle turns to point the
|
|
6
|
+
* way; leaving eases the spin back down. Reduced motion keeps the ring still.
|
|
7
|
+
*
|
|
8
|
+
* Engine: motion/react (useAnimationFrame drives the rotation so the speed can
|
|
9
|
+
* ease between rates without restarting the loop).
|
|
10
|
+
*/
|
|
11
|
+
import * as React from "react";
|
|
12
|
+
export interface RotatingTextProps {
|
|
13
|
+
/** Text on the ring; it repeats to fill the circle. Default `"Scroll to explore • "`. */
|
|
14
|
+
text?: string;
|
|
15
|
+
/** Diameter in px. Default `160`. */
|
|
16
|
+
size?: number;
|
|
17
|
+
/** Seconds per turn at rest. Default `14`. */
|
|
18
|
+
duration?: number;
|
|
19
|
+
/** How much faster it spins on hover. Default `4`. */
|
|
20
|
+
boost?: number;
|
|
21
|
+
/** Accessible label. Default the ring text. */
|
|
22
|
+
label?: string;
|
|
23
|
+
className?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare const RotatingText: React.ForwardRefExoticComponent<RotatingTextProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ScoreCard, type ScoreCardProps, type ScoreBar, } from "./score-card";
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ScoreCard
|
|
3
|
+
*
|
|
4
|
+
* Trigger: in view, then hover, press and keys. A white chart card with a big
|
|
5
|
+
* score and a few pill bars. When it scrolls into view the bars slide in from
|
|
6
|
+
* the left one after another, springing a little past their mark, while the
|
|
7
|
+
* score counts up from zero with a light motion blur. Hovering (or focusing) a
|
|
8
|
+
* bar fills it with its colour, dims the others and rolls the score to that bar's share,
|
|
9
|
+
* with its name in the caption; leaving rolls it back. New data glides every
|
|
10
|
+
* bar to its new length while the score counts to the new number.
|
|
11
|
+
* Reduced motion shows the final state at once.
|
|
12
|
+
*
|
|
13
|
+
* Engine: motion/react (animate on motion values for the count, bar fills
|
|
14
|
+
* that grow on springs, AnimatePresence for the
|
|
15
|
+
* caption and the change chip).
|
|
16
|
+
*/
|
|
17
|
+
import * as React from "react";
|
|
18
|
+
export interface ScoreBar {
|
|
19
|
+
label: string;
|
|
20
|
+
value: number;
|
|
21
|
+
max: number;
|
|
22
|
+
/** Bar colour. Defaults run violet, blue, green. */
|
|
23
|
+
color?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface ScoreCardProps {
|
|
26
|
+
/** Card title. Default `"Health score"`. */
|
|
27
|
+
title?: string;
|
|
28
|
+
/** Avatar image in the corner. Pass `null` to hide it. */
|
|
29
|
+
avatar?: string | null;
|
|
30
|
+
/** The bars, top to bottom. The last one sits in full colour. Default Sleep, Activity and Nutrition. */
|
|
31
|
+
bars?: ScoreBar[];
|
|
32
|
+
/** Change against the period before, in points, shown as a chip. Pass `null` to hide it. Default `4.1`. */
|
|
33
|
+
change?: number | null;
|
|
34
|
+
/** Period named in the caption, as in "Overall this month". Default `"month"`. */
|
|
35
|
+
period?: string;
|
|
36
|
+
/** Decimal places on the score. Default `1`. */
|
|
37
|
+
decimals?: number;
|
|
38
|
+
className?: string;
|
|
39
|
+
}
|
|
40
|
+
export declare const ScoreCard: React.ForwardRefExoticComponent<ScoreCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SearchModal, type SearchModalProps, type SearchModalItem, type SearchModalAction, } from "./search-modal";
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SearchModal
|
|
3
|
+
*
|
|
4
|
+
* Trigger: type and press (plus keys and in view). A search field with a
|
|
5
|
+
* card that drops down once it is used. The empty field rolls through
|
|
6
|
+
* example searches, and Tab takes the one showing. Across the top of the
|
|
7
|
+
* card a segmented scope control (All, Products, Shops and so on) slides a
|
|
8
|
+
* white pill to the chosen scope, and while you type each scope shows how
|
|
9
|
+
* many matches it holds. With nothing typed the card offers Jump back in, a
|
|
10
|
+
* grid of soft tinted cards for recent things, and Shortcuts, small pills
|
|
11
|
+
* whose keys slide out on hover. As you type, the best match rises in as a
|
|
12
|
+
* featured Top result card and the rest follow as a quiet list, each tagged
|
|
13
|
+
* with its group and with the matched letters marked by a soft highlight
|
|
14
|
+
* that sweeps in. The active item (pointer or arrow keys) lifts or gains a
|
|
15
|
+
* soft pill and shows an Open hint; Enter or a press opens it.
|
|
16
|
+
* The card's height glides to fit, the search icon plays while you type, and
|
|
17
|
+
* a slim line at the foot counts the results. Set `modal` to open it over the
|
|
18
|
+
* page with Cmd or Ctrl K. Reduced motion keeps every state without movement.
|
|
19
|
+
*
|
|
20
|
+
* Engine: motion/react (a layoutId scope pill and row highlight, rolling
|
|
21
|
+
* counts, a measured height glide, staggered entrances) with animated icons
|
|
22
|
+
* from lucide-animated (MIT), vendored in src/icons.
|
|
23
|
+
*/
|
|
24
|
+
import * as React from "react";
|
|
25
|
+
export interface SearchModalItem {
|
|
26
|
+
id: string;
|
|
27
|
+
title: string;
|
|
28
|
+
/** Which group (scope) it belongs to. */
|
|
29
|
+
group: string;
|
|
30
|
+
/** A short figure, like "1,210 sales". */
|
|
31
|
+
meta?: string;
|
|
32
|
+
/** Background of its tile and card. */
|
|
33
|
+
tint?: string;
|
|
34
|
+
}
|
|
35
|
+
export interface SearchModalAction {
|
|
36
|
+
id: string;
|
|
37
|
+
label: string;
|
|
38
|
+
icon: "chart" | "grid" | "compass" | "trend" | "bookmark";
|
|
39
|
+
/** The letter after ⌘, like "R". */
|
|
40
|
+
key?: string;
|
|
41
|
+
}
|
|
42
|
+
export interface SearchModalProps {
|
|
43
|
+
items?: SearchModalItem[];
|
|
44
|
+
/** The scopes, after All. */
|
|
45
|
+
groups?: string[];
|
|
46
|
+
/** The scope at first. Default `"All"`. */
|
|
47
|
+
defaultScope?: string;
|
|
48
|
+
/** Ids offered under Jump back in before anything is typed, up to four. */
|
|
49
|
+
recent?: string[];
|
|
50
|
+
actions?: SearchModalAction[];
|
|
51
|
+
/** Shown when there are no `examples`. */
|
|
52
|
+
placeholder?: string;
|
|
53
|
+
/** Example searches the empty field rolls through, as Search for "kettle". Tab fills the one showing. */
|
|
54
|
+
examples?: string[];
|
|
55
|
+
/** Open over the page with a backdrop, toggled with Cmd or Ctrl K. Default `false` (inline). */
|
|
56
|
+
modal?: boolean;
|
|
57
|
+
/** With `modal`, whether it starts open. */
|
|
58
|
+
defaultOpen?: boolean;
|
|
59
|
+
onSelect?: (item: SearchModalItem | SearchModalAction) => void;
|
|
60
|
+
className?: string;
|
|
61
|
+
}
|
|
62
|
+
export declare const SearchModal: React.ForwardRefExoticComponent<SearchModalProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ShimmerText, type ShimmerTextProps } from "./shimmer-text";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ShimmerText
|
|
3
|
+
*
|
|
4
|
+
* Trigger: timeline. A bright band sweeps across muted text on a loop, the
|
|
5
|
+
* "thinking" sheen used for AI and loading states. The text stays real. Reduced
|
|
6
|
+
* motion shows it plain.
|
|
7
|
+
*
|
|
8
|
+
* Engine: motion/react (a looping background-position sweep on clipped text).
|
|
9
|
+
*/
|
|
10
|
+
import * as React from "react";
|
|
11
|
+
export interface ShimmerTextProps {
|
|
12
|
+
/** The text. Default `"Thinking…"`. */
|
|
13
|
+
text?: string;
|
|
14
|
+
/** Element to render. Default `"span"`. */
|
|
15
|
+
as?: "p" | "span" | "h3";
|
|
16
|
+
/** Seconds per sweep. Default `1.8`. */
|
|
17
|
+
duration?: number;
|
|
18
|
+
/** Width of the bright band, as a percent of the text. Default `14`. */
|
|
19
|
+
spread?: number;
|
|
20
|
+
className?: string;
|
|
21
|
+
}
|
|
22
|
+
export declare const ShimmerText: React.ForwardRefExoticComponent<ShimmerTextProps & React.RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SidebarNav, type SidebarNavProps, type SidebarSection, type SidebarItem, type SidebarChild, type SidebarIcon, } from "./sidebar-nav";
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SidebarNav
|
|
3
|
+
*
|
|
4
|
+
* Trigger: press and hover (plus keys and in view). A white app sidebar that
|
|
5
|
+
* folds between a full rail of icons and labels and a slim rail of icons only.
|
|
6
|
+
* The card glides to its new width while the icons hold still on their own
|
|
7
|
+
* line, so nothing jumps: labels blur out on the way in and come back one
|
|
8
|
+
* after another on the way out, section titles shrink to short hairlines,
|
|
9
|
+
* count badges become dots on their icons, and a single dark tooltip slides
|
|
10
|
+
* from row to row under the pointer while the rail is slim. A soft gray pill
|
|
11
|
+
* glides to the chosen page and a lighter one follows the pointer; every
|
|
12
|
+
* icon plays its own animation while its row is hovered. Groups open into a
|
|
13
|
+
* threaded list where a short ink tick slides to the chosen child. The fold
|
|
14
|
+
* button glides from the end of the brand row to just under the logo, so it
|
|
15
|
+
* stays in reach on the slim rail, and the logo's pinwheel turns when pointed
|
|
16
|
+
* at. The arrow keys move through the rows.
|
|
17
|
+
* Reduced motion keeps every state without movement.
|
|
18
|
+
*
|
|
19
|
+
* Engine: motion/react (width tween, staggered label fades, layoutId pills,
|
|
20
|
+
* a spring tooltip, AnimatePresence for the group) with animated
|
|
21
|
+
* icons from lucide-animated (MIT), vendored in src/icons.
|
|
22
|
+
*/
|
|
23
|
+
import * as React from "react";
|
|
24
|
+
export type SidebarIcon = "home" | "search" | "messages" | "projects" | "analytics" | "calendar" | "agents" | "workflows" | "integrations" | "apps" | "explore" | "team" | "bell";
|
|
25
|
+
export interface SidebarChild {
|
|
26
|
+
id: string;
|
|
27
|
+
label: string;
|
|
28
|
+
badge?: number;
|
|
29
|
+
}
|
|
30
|
+
export interface SidebarItem {
|
|
31
|
+
id: string;
|
|
32
|
+
label: string;
|
|
33
|
+
/** One of the built in animated icons. */
|
|
34
|
+
icon: SidebarIcon;
|
|
35
|
+
/** A count on the right; a dot on the icon while the rail is slim. */
|
|
36
|
+
badge?: number;
|
|
37
|
+
/** A small green tag, like "New". */
|
|
38
|
+
tag?: string;
|
|
39
|
+
/** Pages under this one, shown in a threaded list that opens and closes. */
|
|
40
|
+
children?: SidebarChild[];
|
|
41
|
+
}
|
|
42
|
+
export interface SidebarSection {
|
|
43
|
+
/** A small title over the rows; a short hairline while the rail is slim. */
|
|
44
|
+
label?: string;
|
|
45
|
+
items: SidebarItem[];
|
|
46
|
+
}
|
|
47
|
+
export interface SidebarNavProps {
|
|
48
|
+
/** The wordmark beside the logo. */
|
|
49
|
+
brand?: string;
|
|
50
|
+
/** The logo mark, about 28px. Default a pinwheel. It stays on the slim rail. */
|
|
51
|
+
logo?: React.ReactNode;
|
|
52
|
+
sections?: SidebarSection[];
|
|
53
|
+
/** The chosen page id (controlled). */
|
|
54
|
+
value?: string;
|
|
55
|
+
defaultValue?: string;
|
|
56
|
+
onNavigate?: (id: string) => void;
|
|
57
|
+
/** Groups open at the start, by item id. */
|
|
58
|
+
defaultOpen?: string[];
|
|
59
|
+
/** Slim rail, icons only (controlled). */
|
|
60
|
+
collapsed?: boolean;
|
|
61
|
+
defaultCollapsed?: boolean;
|
|
62
|
+
onCollapsedChange?: (collapsed: boolean) => void;
|
|
63
|
+
user?: {
|
|
64
|
+
name: string;
|
|
65
|
+
email?: string;
|
|
66
|
+
avatar?: string;
|
|
67
|
+
};
|
|
68
|
+
onSettings?: () => void;
|
|
69
|
+
className?: string;
|
|
70
|
+
}
|
|
71
|
+
export declare const SidebarNav: React.ForwardRefExoticComponent<SidebarNavProps & React.RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SlideCommit, type SlideCommitProps } from "./slide-commit";
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SlideCommit
|
|
3
|
+
*
|
|
4
|
+
* Trigger: drag (plus keys). A slide-to-confirm pill for actions worth a
|
|
5
|
+
* deliberate gesture: paying, sending, deleting. An ink handle sits at the
|
|
6
|
+
* left with a row of chevrons that march toward the end, and the label in the
|
|
7
|
+
* track shimmers to show which way to go. Dragging the handle stretches a
|
|
8
|
+
* fill behind it and fades the label out as it travels; letting go early
|
|
9
|
+
* springs it back home with a small overshoot. Past the threshold the handle
|
|
10
|
+
* gives a little pulse to say it will commit, and on release it snaps to the
|
|
11
|
+
* end and turns into a spinner while "Committing..." rolls in beside it
|
|
12
|
+
* with a light sweeping through it. Then green floods back
|
|
13
|
+
* across the track from the handle, the track gives a small settle, the
|
|
14
|
+
* handle pops white and draws a check as two rings ripple out of it, and the
|
|
15
|
+
* label rolls in, centred in the space beside the handle. It resets itself
|
|
16
|
+
* after a moment, or on press. With the keyboard, Enter or Space commits and
|
|
17
|
+
* the arrow keys nudge the handle. Reduced motion swaps the springs, sweep
|
|
18
|
+
* and shimmer for plain changes.
|
|
19
|
+
*
|
|
20
|
+
* Engine: motion/react (drag on a motion value, springs, AnimatePresence for
|
|
21
|
+
* the handle's icon and the rolling label).
|
|
22
|
+
*/
|
|
23
|
+
import * as React from "react";
|
|
24
|
+
export interface SlideCommitProps {
|
|
25
|
+
/** Label in the track. Default `"Slide to commit"`. */
|
|
26
|
+
label?: string;
|
|
27
|
+
/** Label while the action runs. Default `"Committing"`. */
|
|
28
|
+
pendingLabel?: string;
|
|
29
|
+
/** Label once committed. Default `"Committed"`. */
|
|
30
|
+
doneLabel?: string;
|
|
31
|
+
/** Share of the track the handle must pass to commit, 0.5 to 0.95. Default `0.82`. */
|
|
32
|
+
threshold?: number;
|
|
33
|
+
/** Called on commit. Return a promise to hold the spinner until it settles; a rejection springs back. */
|
|
34
|
+
onCommit?: () => void | Promise<unknown>;
|
|
35
|
+
/** Seconds before it resets on its own. `0` waits for a press. Default `2.4`. */
|
|
36
|
+
resetAfter?: number;
|
|
37
|
+
className?: string;
|
|
38
|
+
}
|
|
39
|
+
export declare const SlideCommit: React.ForwardRefExoticComponent<SlideCommitProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SpatialGallery, type SpatialGalleryProps, type SpatialItem, type SpatialFacing, } from "./spatial-gallery";
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SpatialGallery
|
|
3
|
+
*
|
|
4
|
+
* Trigger: scroll, drag and hover (plus a timeline). A WebGL media tunnel
|
|
5
|
+
* that turns a list of images and videos into an endless space you travel
|
|
6
|
+
* through. The planes stand on a ring around the view with a hollow core
|
|
7
|
+
* that keeps the middle clear, and they recycle in both directions, so the
|
|
8
|
+
* journey never ends. Facing is Front (every plane faces you) or Funnel (the
|
|
9
|
+
* planes lean in toward the axis, by a blend amount). Spiral mode bends the
|
|
10
|
+
* ring into a corkscrew that turns as it travels, so scrolling makes the
|
|
11
|
+
* whole tunnel twist past you. Auto move drifts on its own and stacks with
|
|
12
|
+
* your input: the wheel (captured, or read from the page's own scrolling so
|
|
13
|
+
* it can sit in a normal page), dragging (with a threshold so a drag never
|
|
14
|
+
* fires a link) and the arrow keys. The scene leans with the pointer. A
|
|
15
|
+
* hovered plane grows a little and names itself in a caption; a hovered video
|
|
16
|
+
* plays, and only then loads, so many video planes cost one decoder. Rounded
|
|
17
|
+
* corners, cover cropping and the fade into the distance are all drawn in the
|
|
18
|
+
* shader. It pauses off screen and in a hidden tab, rebuilds itself after a
|
|
19
|
+
* lost WebGL context, and under reduced motion it stays put until you move it.
|
|
20
|
+
* A visually hidden list carries every item's alt text and link for search
|
|
21
|
+
* engines and screen readers.
|
|
22
|
+
*
|
|
23
|
+
* Engine: raw WebGL (one quad, one draw per plane, sorted back to front) on
|
|
24
|
+
* the GSAP ticker; motion/react for the caption and hint.
|
|
25
|
+
*/
|
|
26
|
+
import * as React from "react";
|
|
27
|
+
export interface SpatialItem {
|
|
28
|
+
/** Image or video URL. Must allow cross origin use (CORS) to draw in WebGL. */
|
|
29
|
+
src: string;
|
|
30
|
+
/** Default `"image"`. */
|
|
31
|
+
type?: "image" | "video";
|
|
32
|
+
/** For videos: the still shown until it is hovered. */
|
|
33
|
+
poster?: string;
|
|
34
|
+
/** Alt text, shown in the caption and in the hidden list. */
|
|
35
|
+
alt: string;
|
|
36
|
+
/** Opens on click (a click, not a drag). */
|
|
37
|
+
href?: string;
|
|
38
|
+
}
|
|
39
|
+
export type SpatialFacing = "front" | "funnel";
|
|
40
|
+
export interface SpatialGalleryProps {
|
|
41
|
+
items?: SpatialItem[];
|
|
42
|
+
/** Planes in the tunnel, 8 to 160. Default `124`. */
|
|
43
|
+
count?: number;
|
|
44
|
+
/** Tunnel radius, in scene units. Default `4.1`. */
|
|
45
|
+
radius?: number;
|
|
46
|
+
/** Hollow core: how much of the radius stays clear, 0 to 0.95. Default `0.8`. */
|
|
47
|
+
core?: number;
|
|
48
|
+
/** Depth between planes. Default `0.2`. */
|
|
49
|
+
spacing?: number;
|
|
50
|
+
/** Plane size. Default `0.95`. */
|
|
51
|
+
size?: number;
|
|
52
|
+
/** Planes face you, or lean in toward the axis. Default `"funnel"`. */
|
|
53
|
+
facing?: SpatialFacing;
|
|
54
|
+
/** How far Funnel leans into the tunnel wall, 0 to 1. Default `0.78`. */
|
|
55
|
+
funnel?: number;
|
|
56
|
+
/** Bend the ring into a turning corkscrew. Default `true`. */
|
|
57
|
+
spiral?: boolean;
|
|
58
|
+
/** Corkscrew strength, 0 to 1. Default `0.3`. */
|
|
59
|
+
twist?: number;
|
|
60
|
+
/** Drift on its own. Default `true`. */
|
|
61
|
+
autoMove?: boolean;
|
|
62
|
+
/** Auto move speed; negative goes backward. Default `0.8`. */
|
|
63
|
+
speed?: number;
|
|
64
|
+
/** How far the wheel or page scroll carries you. Default `2.1`. */
|
|
65
|
+
scrollSpeed?: number;
|
|
66
|
+
/** Scrolling over the gallery travels through it instead of scrolling the page. Default `true`. */
|
|
67
|
+
captureScroll?: boolean;
|
|
68
|
+
/** Read the page's own scrolling, so scrolling past it travels too. Default `true`. */
|
|
69
|
+
followPageScroll?: boolean;
|
|
70
|
+
/** Drag to travel. Default `true`. */
|
|
71
|
+
drag?: boolean;
|
|
72
|
+
/** How much the scene leans with the pointer, 0 to 1. Default `0.5`. */
|
|
73
|
+
parallax?: number;
|
|
74
|
+
/** Corner radius as a share of the plane's height, 0 to 0.5. Default `0.22`. */
|
|
75
|
+
corner?: number;
|
|
76
|
+
/** Fade out with distance, 0 to 1. The canvas is transparent, so it sits on any page. Default `0.8`. */
|
|
77
|
+
fog?: number;
|
|
78
|
+
/** Each plane's own tilt, so the images sit at varied angles, 0 to 1. Default `0`. */
|
|
79
|
+
roll?: number;
|
|
80
|
+
/** Name the hovered item in a caption. Default `true`. */
|
|
81
|
+
caption?: boolean;
|
|
82
|
+
/** How links open. Default `"_self"`. */
|
|
83
|
+
linkTarget?: "_self" | "_blank";
|
|
84
|
+
/** Anything on top, like a heading. */
|
|
85
|
+
children?: React.ReactNode;
|
|
86
|
+
className?: string;
|
|
87
|
+
}
|
|
88
|
+
export declare const SpatialGallery: React.ForwardRefExoticComponent<SpatialGalleryProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SpendingMeter, type SpendingMeterProps } from "./spending-meter";
|