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,394 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
ArrowUpRightIcon
|
|
4
|
+
} from "./chunk-I7KTTOOJ.js";
|
|
5
|
+
import {
|
|
6
|
+
ChevronDownIcon
|
|
7
|
+
} from "./chunk-NIQFSLPC.js";
|
|
8
|
+
import {
|
|
9
|
+
cn
|
|
10
|
+
} from "./chunk-2TQSHVXA.js";
|
|
11
|
+
|
|
12
|
+
// src/components/action-menu/action-menu.tsx
|
|
13
|
+
import * as React from "react";
|
|
14
|
+
import gsap from "gsap";
|
|
15
|
+
import { useGSAP } from "@gsap/react";
|
|
16
|
+
import { AnimatePresence, motion } from "motion/react";
|
|
17
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
18
|
+
gsap.registerPlugin(useGSAP);
|
|
19
|
+
var GLIDE = [0.22, 1, 0.36, 1];
|
|
20
|
+
var PANEL = { type: "spring", stiffness: 520, damping: 34, mass: 0.7 };
|
|
21
|
+
var SWAP = {
|
|
22
|
+
initial: { opacity: 0, y: 6 },
|
|
23
|
+
animate: { opacity: 1, y: 0 },
|
|
24
|
+
exit: { opacity: 0, y: -6 },
|
|
25
|
+
transition: { duration: 0.2, ease: GLIDE }
|
|
26
|
+
};
|
|
27
|
+
var WAVE_W = 20;
|
|
28
|
+
function wavePath(amplitude, phase) {
|
|
29
|
+
const pts = [];
|
|
30
|
+
for (let y = 0; y <= 96; y += 4) {
|
|
31
|
+
const x = WAVE_W / 2 + amplitude * Math.sin(y / 48 * Math.PI * 2 + phase);
|
|
32
|
+
pts.push(`${x.toFixed(2)} ${y}`);
|
|
33
|
+
}
|
|
34
|
+
return `M0 0 L${pts.join(" L")} L0 96 Z`;
|
|
35
|
+
}
|
|
36
|
+
var WAVE_FRONT = wavePath(6, 0);
|
|
37
|
+
var WAVE_BACK = wavePath(7.5, Math.PI / 1.5);
|
|
38
|
+
var DEFAULT_ITEMS = [
|
|
39
|
+
{ kind: "copy", label: "Copy logo SVG", copyText: "<svg><!-- logo --></svg>" },
|
|
40
|
+
{ kind: "copy", label: "Copy wordmark SVG", copyText: "<svg><!-- wordmark --></svg>" },
|
|
41
|
+
{ kind: "download", label: "Download SVGs" },
|
|
42
|
+
{ kind: "separator" },
|
|
43
|
+
{ kind: "link", label: "Usage guidelines" },
|
|
44
|
+
{ kind: "link", label: "Download press kit" }
|
|
45
|
+
];
|
|
46
|
+
function CopyIcon() {
|
|
47
|
+
return /* @__PURE__ */ jsxs("g", { "data-face": "copy", children: [
|
|
48
|
+
/* @__PURE__ */ jsx("rect", { x: "9", y: "9", width: "12", height: "12", rx: "2.5" }),
|
|
49
|
+
/* @__PURE__ */ jsx("path", { d: "M5 15H4.5A1.5 1.5 0 0 1 3 13.5v-9A1.5 1.5 0 0 1 4.5 3h9A1.5 1.5 0 0 1 15 4.5V5" })
|
|
50
|
+
] });
|
|
51
|
+
}
|
|
52
|
+
function DownloadIcon() {
|
|
53
|
+
return /* @__PURE__ */ jsxs("g", { "data-face": "download", children: [
|
|
54
|
+
/* @__PURE__ */ jsx("path", { d: "M7 17.5H6a4 4 0 0 1-.7-7.94A6 6 0 0 1 17 8.2a4.5 4.5 0 0 1 1 8.8" }),
|
|
55
|
+
/* @__PURE__ */ jsxs("g", { "data-arrow": true, children: [
|
|
56
|
+
/* @__PURE__ */ jsx("path", { d: "M12 11v9" }),
|
|
57
|
+
/* @__PURE__ */ jsx("path", { d: "m8.5 16.5 3.5 3.5 3.5-3.5" })
|
|
58
|
+
] })
|
|
59
|
+
] });
|
|
60
|
+
}
|
|
61
|
+
function ActionRow({
|
|
62
|
+
item,
|
|
63
|
+
index,
|
|
64
|
+
active,
|
|
65
|
+
highlightId,
|
|
66
|
+
confirmFor,
|
|
67
|
+
onHover
|
|
68
|
+
}) {
|
|
69
|
+
const row = React.useRef(null);
|
|
70
|
+
const [done, setDone] = React.useState(false);
|
|
71
|
+
const busy = React.useRef(false);
|
|
72
|
+
const { contextSafe } = useGSAP({ scope: row });
|
|
73
|
+
const $ = (sel) => row.current ? Array.from(row.current.querySelectorAll(sel)) : [];
|
|
74
|
+
const run = contextSafe(async () => {
|
|
75
|
+
if (busy.current) return;
|
|
76
|
+
busy.current = true;
|
|
77
|
+
const reduce = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
78
|
+
const tl = gsap.timeline();
|
|
79
|
+
if (item.kind === "download") {
|
|
80
|
+
const ripples = [
|
|
81
|
+
gsap.fromTo(
|
|
82
|
+
$("[data-wave=front]"),
|
|
83
|
+
{ yPercent: 0 },
|
|
84
|
+
{ yPercent: -50, duration: 0.55, ease: "none", repeat: -1 }
|
|
85
|
+
),
|
|
86
|
+
gsap.fromTo($("[data-wave=back]"), { yPercent: -50 }, { yPercent: 0, duration: 0.85, ease: "none", repeat: -1 })
|
|
87
|
+
];
|
|
88
|
+
tl.to($("[data-arrow]"), { y: 3, duration: 0.18, ease: "power2.in", yoyo: true, repeat: 3 }).fromTo(
|
|
89
|
+
$("[data-progress]"),
|
|
90
|
+
{ xPercent: -100, x: -WAVE_W, opacity: 1 },
|
|
91
|
+
{
|
|
92
|
+
xPercent: 0,
|
|
93
|
+
x: 0,
|
|
94
|
+
duration: 0.9,
|
|
95
|
+
ease: "power2.inOut",
|
|
96
|
+
onComplete: () => ripples.forEach((r) => r.kill())
|
|
97
|
+
},
|
|
98
|
+
0
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
try {
|
|
102
|
+
if (item.kind === "copy" && item.copyText) await navigator.clipboard?.writeText(item.copyText);
|
|
103
|
+
await item.onSelect?.();
|
|
104
|
+
} catch {
|
|
105
|
+
}
|
|
106
|
+
tl.to($("[data-face]"), { scale: 0.5, opacity: 0, duration: 0.15, ease: "power2.in", transformOrigin: "50% 50%" }).set($("[data-check]"), { opacity: 1 }).fromTo($("[data-check]"), { strokeDashoffset: 24 }, { strokeDashoffset: 0, duration: 0.3, ease: "power2.out" }).to($("[data-progress]"), { opacity: 0, duration: 0.35, ease: "power2.out" }, "<").add(() => setDone(true), "<");
|
|
107
|
+
if (reduce) tl.progress(1);
|
|
108
|
+
await tl.then();
|
|
109
|
+
window.setTimeout(
|
|
110
|
+
contextSafe(() => {
|
|
111
|
+
setDone(false);
|
|
112
|
+
gsap.timeline({ onComplete: () => void (busy.current = false) }).to($("[data-check]"), { opacity: 0, duration: 0.15 }).fromTo(
|
|
113
|
+
$("[data-face]"),
|
|
114
|
+
{ scale: 0.5, opacity: 0 },
|
|
115
|
+
{ scale: 1, opacity: 1, duration: 0.35, ease: "back.out(2)", transformOrigin: "50% 50%" }
|
|
116
|
+
).set($("[data-progress]"), { xPercent: -100, x: -WAVE_W });
|
|
117
|
+
}),
|
|
118
|
+
confirmFor
|
|
119
|
+
);
|
|
120
|
+
});
|
|
121
|
+
const doneLabel = item.doneLabel ?? (item.kind === "copy" ? "Copied" : "Downloaded");
|
|
122
|
+
return /* @__PURE__ */ jsxs(
|
|
123
|
+
"button",
|
|
124
|
+
{
|
|
125
|
+
ref: row,
|
|
126
|
+
type: "button",
|
|
127
|
+
role: "menuitem",
|
|
128
|
+
"data-item": index,
|
|
129
|
+
tabIndex: active ? 0 : -1,
|
|
130
|
+
onPointerEnter: onHover,
|
|
131
|
+
onFocus: onHover,
|
|
132
|
+
onClick: run,
|
|
133
|
+
className: "relative flex w-full cursor-pointer items-center gap-3 rounded-xl px-3 py-2 text-left text-sm outline-none",
|
|
134
|
+
children: [
|
|
135
|
+
active && /* @__PURE__ */ jsx(
|
|
136
|
+
motion.span,
|
|
137
|
+
{
|
|
138
|
+
layoutId: highlightId,
|
|
139
|
+
transition: { duration: 0.25, ease: GLIDE },
|
|
140
|
+
className: "absolute inset-0 rounded-xl bg-[#242423]/6 dark:bg-white/8"
|
|
141
|
+
}
|
|
142
|
+
),
|
|
143
|
+
item.kind === "download" && // Same rounded shape as the hover highlight; starts parked off the left edge. Solid grays,
|
|
144
|
+
// not translucent ones, so the fill and its two wave layers never double up where they overlap.
|
|
145
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "pointer-events-none absolute inset-0 overflow-hidden rounded-xl", children: /* @__PURE__ */ jsx(
|
|
146
|
+
"span",
|
|
147
|
+
{
|
|
148
|
+
"data-progress": true,
|
|
149
|
+
className: "absolute inset-0 bg-[#e6e6e5] text-[#e6e6e5] dark:bg-zinc-700 dark:text-zinc-700",
|
|
150
|
+
style: { transform: `translateX(calc(-100% - ${WAVE_W}px))` },
|
|
151
|
+
children: /* @__PURE__ */ jsxs("span", { className: "absolute left-full top-0 h-full overflow-hidden", style: { width: WAVE_W }, children: [
|
|
152
|
+
/* @__PURE__ */ jsx(
|
|
153
|
+
"svg",
|
|
154
|
+
{
|
|
155
|
+
"data-wave": "back",
|
|
156
|
+
viewBox: `0 0 ${WAVE_W} 96`,
|
|
157
|
+
preserveAspectRatio: "none",
|
|
158
|
+
className: "absolute left-0 top-0 h-[200%] w-full text-[#ececeb] dark:text-zinc-800",
|
|
159
|
+
children: /* @__PURE__ */ jsx("path", { d: WAVE_BACK, fill: "currentColor" })
|
|
160
|
+
}
|
|
161
|
+
),
|
|
162
|
+
/* @__PURE__ */ jsx(
|
|
163
|
+
"svg",
|
|
164
|
+
{
|
|
165
|
+
"data-wave": "front",
|
|
166
|
+
viewBox: `0 0 ${WAVE_W} 96`,
|
|
167
|
+
preserveAspectRatio: "none",
|
|
168
|
+
className: "absolute left-0 top-0 h-[200%] w-full",
|
|
169
|
+
children: /* @__PURE__ */ jsx("path", { d: WAVE_FRONT, fill: "currentColor" })
|
|
170
|
+
}
|
|
171
|
+
)
|
|
172
|
+
] })
|
|
173
|
+
}
|
|
174
|
+
) }),
|
|
175
|
+
/* @__PURE__ */ jsxs(
|
|
176
|
+
"svg",
|
|
177
|
+
{
|
|
178
|
+
viewBox: "0 0 24 24",
|
|
179
|
+
className: cn(
|
|
180
|
+
"relative size-[18px] shrink-0 fill-none stroke-current transition-colors",
|
|
181
|
+
active ? "text-zinc-900 dark:text-zinc-100" : "text-zinc-400"
|
|
182
|
+
),
|
|
183
|
+
strokeWidth: 1.75,
|
|
184
|
+
strokeLinecap: "round",
|
|
185
|
+
strokeLinejoin: "round",
|
|
186
|
+
"aria-hidden": true,
|
|
187
|
+
children: [
|
|
188
|
+
item.kind === "copy" ? /* @__PURE__ */ jsx(CopyIcon, {}) : /* @__PURE__ */ jsx(DownloadIcon, {}),
|
|
189
|
+
/* @__PURE__ */ jsx("path", { "data-check": true, d: "M20 6 9 17l-5-5", strokeWidth: 2.25, strokeDasharray: 24, opacity: 0 })
|
|
190
|
+
]
|
|
191
|
+
}
|
|
192
|
+
),
|
|
193
|
+
/* @__PURE__ */ jsx(
|
|
194
|
+
"span",
|
|
195
|
+
{
|
|
196
|
+
className: cn(
|
|
197
|
+
"relative grid flex-1 font-medium transition-colors",
|
|
198
|
+
active ? "text-zinc-900 dark:text-zinc-100" : "text-zinc-600 dark:text-zinc-300"
|
|
199
|
+
),
|
|
200
|
+
children: /* @__PURE__ */ jsx(AnimatePresence, { initial: false, mode: "popLayout", children: /* @__PURE__ */ jsx(motion.span, { ...SWAP, className: "col-start-1 row-start-1", children: done ? doneLabel : item.label }, done ? "done" : "idle") })
|
|
201
|
+
}
|
|
202
|
+
),
|
|
203
|
+
/* @__PURE__ */ jsx("span", { "aria-live": "polite", className: "sr-only", children: done ? doneLabel : "" })
|
|
204
|
+
]
|
|
205
|
+
}
|
|
206
|
+
);
|
|
207
|
+
}
|
|
208
|
+
function LinkRow({
|
|
209
|
+
item,
|
|
210
|
+
index,
|
|
211
|
+
active,
|
|
212
|
+
highlightId,
|
|
213
|
+
onHover,
|
|
214
|
+
onPick
|
|
215
|
+
}) {
|
|
216
|
+
const Tag = item.href ? motion.a : motion.button;
|
|
217
|
+
return /* @__PURE__ */ jsxs(
|
|
218
|
+
Tag,
|
|
219
|
+
{
|
|
220
|
+
...item.href ? { href: item.href } : { type: "button" },
|
|
221
|
+
role: "menuitem",
|
|
222
|
+
"data-item": index,
|
|
223
|
+
tabIndex: active ? 0 : -1,
|
|
224
|
+
onPointerEnter: onHover,
|
|
225
|
+
onFocus: onHover,
|
|
226
|
+
onClick: () => {
|
|
227
|
+
item.onSelect?.();
|
|
228
|
+
onPick();
|
|
229
|
+
},
|
|
230
|
+
initial: "rest",
|
|
231
|
+
animate: active ? "hover" : "rest",
|
|
232
|
+
className: cn(
|
|
233
|
+
"relative flex w-full cursor-pointer items-center justify-between gap-3 rounded-xl px-3 py-2 text-left text-sm font-medium outline-none transition-colors",
|
|
234
|
+
active ? "text-zinc-900 dark:text-zinc-100" : "text-zinc-500 dark:text-zinc-400"
|
|
235
|
+
),
|
|
236
|
+
children: [
|
|
237
|
+
active && /* @__PURE__ */ jsx(
|
|
238
|
+
motion.span,
|
|
239
|
+
{
|
|
240
|
+
layoutId: highlightId,
|
|
241
|
+
transition: { duration: 0.25, ease: GLIDE },
|
|
242
|
+
className: "absolute inset-0 rounded-xl bg-[#242423]/6 dark:bg-white/8"
|
|
243
|
+
}
|
|
244
|
+
),
|
|
245
|
+
/* @__PURE__ */ jsx("span", { className: "relative", children: item.label }),
|
|
246
|
+
/* @__PURE__ */ jsx(
|
|
247
|
+
motion.span,
|
|
248
|
+
{
|
|
249
|
+
variants: { rest: { x: 0, y: 0, opacity: 0.5 }, hover: { x: 2, y: -2, opacity: 1 } },
|
|
250
|
+
transition: { duration: 0.25, ease: GLIDE },
|
|
251
|
+
className: "relative flex",
|
|
252
|
+
children: /* @__PURE__ */ jsx(ArrowUpRightIcon, { className: "size-4", strokeWidth: 2 })
|
|
253
|
+
}
|
|
254
|
+
)
|
|
255
|
+
]
|
|
256
|
+
}
|
|
257
|
+
);
|
|
258
|
+
}
|
|
259
|
+
var ActionMenu = React.forwardRef(function ActionMenu2({ label = "Brand assets", items = DEFAULT_ITEMS, defaultOpen = false, confirmFor = 1400, className }, forwardedRef) {
|
|
260
|
+
const root = React.useRef(null);
|
|
261
|
+
React.useImperativeHandle(forwardedRef, () => root.current);
|
|
262
|
+
const triggerRef = React.useRef(null);
|
|
263
|
+
const panelRef = React.useRef(null);
|
|
264
|
+
const [open, setOpen] = React.useState(defaultOpen);
|
|
265
|
+
const [active, setActive] = React.useState(null);
|
|
266
|
+
const uid = React.useId();
|
|
267
|
+
const highlightId = `${uid}-highlight`;
|
|
268
|
+
const menuId = `${uid}-menu`;
|
|
269
|
+
const selectable = items.flatMap((it, i) => it.kind === "separator" ? [] : [i]);
|
|
270
|
+
useGSAP(
|
|
271
|
+
() => {
|
|
272
|
+
if (!open) return;
|
|
273
|
+
if (window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;
|
|
274
|
+
const rows = panelRef.current?.querySelectorAll("[data-row]");
|
|
275
|
+
if (!rows?.length) return;
|
|
276
|
+
gsap.fromTo(
|
|
277
|
+
rows,
|
|
278
|
+
{ opacity: 0, y: 6 },
|
|
279
|
+
{ opacity: 1, y: 0, duration: 0.32, ease: "power2.out", stagger: 0.035, delay: 0.04 }
|
|
280
|
+
);
|
|
281
|
+
},
|
|
282
|
+
{ scope: panelRef, dependencies: [open] }
|
|
283
|
+
);
|
|
284
|
+
React.useEffect(() => {
|
|
285
|
+
if (!open) return;
|
|
286
|
+
const onDown = (e) => {
|
|
287
|
+
if (!root.current?.contains(e.target)) setOpen(false);
|
|
288
|
+
};
|
|
289
|
+
document.addEventListener("pointerdown", onDown);
|
|
290
|
+
return () => document.removeEventListener("pointerdown", onDown);
|
|
291
|
+
}, [open]);
|
|
292
|
+
React.useEffect(() => {
|
|
293
|
+
if (!open || active === null) return;
|
|
294
|
+
const el = panelRef.current?.querySelector(`[data-item="${active}"]`);
|
|
295
|
+
if (el && document.activeElement !== el && panelRef.current?.contains(document.activeElement)) el.focus();
|
|
296
|
+
}, [active, open]);
|
|
297
|
+
const close = (refocus = true) => {
|
|
298
|
+
setOpen(false);
|
|
299
|
+
setActive(null);
|
|
300
|
+
if (refocus) triggerRef.current?.focus();
|
|
301
|
+
};
|
|
302
|
+
const move = (dir) => {
|
|
303
|
+
const at = active === null ? -1 : selectable.indexOf(active);
|
|
304
|
+
const next = dir === "first" ? 0 : dir === "last" ? selectable.length - 1 : (at + dir + selectable.length) % selectable.length;
|
|
305
|
+
const target = selectable[next];
|
|
306
|
+
setActive(target);
|
|
307
|
+
panelRef.current?.querySelector(`[data-item="${target}"]`)?.focus();
|
|
308
|
+
};
|
|
309
|
+
return /* @__PURE__ */ jsxs("div", { ref: root, className: cn("relative inline-flex flex-col items-start", className), children: [
|
|
310
|
+
/* @__PURE__ */ jsxs(
|
|
311
|
+
motion.button,
|
|
312
|
+
{
|
|
313
|
+
ref: triggerRef,
|
|
314
|
+
type: "button",
|
|
315
|
+
"aria-haspopup": "menu",
|
|
316
|
+
"aria-expanded": open,
|
|
317
|
+
"aria-controls": menuId,
|
|
318
|
+
onClick: () => setOpen((o) => !o),
|
|
319
|
+
onKeyDown: (e) => {
|
|
320
|
+
if (e.key === "ArrowDown" || e.key === "ArrowUp") {
|
|
321
|
+
e.preventDefault();
|
|
322
|
+
setOpen(true);
|
|
323
|
+
requestAnimationFrame(() => move(e.key === "ArrowDown" ? "first" : "last"));
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
whileTap: { scale: 0.97 },
|
|
327
|
+
className: "inline-flex cursor-pointer items-center gap-2 rounded-full bg-[#242423]/6 px-4 py-2 text-sm font-medium text-[#242423] transition-colors hover:bg-[#242423]/10 outline-none focus-visible:ring-2 focus-visible:ring-zinc-400 dark:bg-white/8 dark:text-zinc-100 dark:hover:bg-white/12",
|
|
328
|
+
children: [
|
|
329
|
+
label,
|
|
330
|
+
/* @__PURE__ */ jsx(motion.span, { animate: { rotate: open ? 180 : 0 }, transition: { duration: 0.3, ease: GLIDE }, className: "flex", children: /* @__PURE__ */ jsx(ChevronDownIcon, { className: "size-4", strokeWidth: 2.25 }) })
|
|
331
|
+
]
|
|
332
|
+
}
|
|
333
|
+
),
|
|
334
|
+
/* @__PURE__ */ jsx(AnimatePresence, { children: open && /* @__PURE__ */ jsx(
|
|
335
|
+
motion.div,
|
|
336
|
+
{
|
|
337
|
+
ref: panelRef,
|
|
338
|
+
id: menuId,
|
|
339
|
+
role: "menu",
|
|
340
|
+
"aria-label": typeof label === "string" ? label : "Menu",
|
|
341
|
+
initial: { opacity: 0, scale: 0.94, y: -6 },
|
|
342
|
+
animate: { opacity: 1, scale: 1, y: 0 },
|
|
343
|
+
exit: { opacity: 0, scale: 0.96, y: -4, transition: { duration: 0.15, ease: GLIDE } },
|
|
344
|
+
transition: PANEL,
|
|
345
|
+
style: { transformOrigin: "top left" },
|
|
346
|
+
onPointerLeave: () => setActive(null),
|
|
347
|
+
onKeyDown: (e) => {
|
|
348
|
+
if (e.key === "ArrowDown") e.preventDefault(), move(1);
|
|
349
|
+
if (e.key === "ArrowUp") e.preventDefault(), move(-1);
|
|
350
|
+
if (e.key === "Home") e.preventDefault(), move("first");
|
|
351
|
+
if (e.key === "End") e.preventDefault(), move("last");
|
|
352
|
+
if (e.key === "Escape") e.preventDefault(), close();
|
|
353
|
+
if (e.key === "Tab") close(false);
|
|
354
|
+
},
|
|
355
|
+
className: "absolute left-0 top-full z-20 mt-2 w-64 rounded-2xl bg-white p-1.5 shadow-[0_1px_2px_rgba(0,0,0,0.05),0_16px_40px_-12px_rgba(0,0,0,0.22)] ring-1 ring-black/5 dark:bg-zinc-900 dark:ring-white/10",
|
|
356
|
+
children: items.map(
|
|
357
|
+
(item, i) => item.kind === "separator" ? /* @__PURE__ */ jsx(
|
|
358
|
+
"div",
|
|
359
|
+
{
|
|
360
|
+
"data-row": true,
|
|
361
|
+
role: "separator",
|
|
362
|
+
className: "mx-3 my-1.5 h-px bg-zinc-100 dark:bg-zinc-800"
|
|
363
|
+
},
|
|
364
|
+
`sep-${i}`
|
|
365
|
+
) : /* @__PURE__ */ jsx("div", { "data-row": true, children: item.kind === "link" ? /* @__PURE__ */ jsx(
|
|
366
|
+
LinkRow,
|
|
367
|
+
{
|
|
368
|
+
item,
|
|
369
|
+
index: i,
|
|
370
|
+
active: active === i,
|
|
371
|
+
highlightId,
|
|
372
|
+
onHover: () => setActive(i),
|
|
373
|
+
onPick: () => close()
|
|
374
|
+
}
|
|
375
|
+
) : /* @__PURE__ */ jsx(
|
|
376
|
+
ActionRow,
|
|
377
|
+
{
|
|
378
|
+
item,
|
|
379
|
+
index: i,
|
|
380
|
+
active: active === i,
|
|
381
|
+
highlightId,
|
|
382
|
+
confirmFor,
|
|
383
|
+
onHover: () => setActive(i)
|
|
384
|
+
}
|
|
385
|
+
) }, item.label)
|
|
386
|
+
)
|
|
387
|
+
}
|
|
388
|
+
) })
|
|
389
|
+
] });
|
|
390
|
+
});
|
|
391
|
+
|
|
392
|
+
export {
|
|
393
|
+
ActionMenu
|
|
394
|
+
};
|