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,1462 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
LayoutGridIcon
|
|
4
|
+
} from "./chunk-WWWKMU4Y.js";
|
|
5
|
+
import {
|
|
6
|
+
CompassIcon
|
|
7
|
+
} from "./chunk-BS4ZFJKW.js";
|
|
8
|
+
import {
|
|
9
|
+
HomeIcon
|
|
10
|
+
} from "./chunk-I45D4XV4.js";
|
|
11
|
+
import {
|
|
12
|
+
ChartLineIcon
|
|
13
|
+
} from "./chunk-XDR4FO6Q.js";
|
|
14
|
+
import {
|
|
15
|
+
MessageCircleIcon
|
|
16
|
+
} from "./chunk-WFWO2EIW.js";
|
|
17
|
+
import {
|
|
18
|
+
BellIcon
|
|
19
|
+
} from "./chunk-7PS2W7PU.js";
|
|
20
|
+
import {
|
|
21
|
+
CalendarDaysIcon
|
|
22
|
+
} from "./chunk-JJEWOQYQ.js";
|
|
23
|
+
import {
|
|
24
|
+
SettingsIcon
|
|
25
|
+
} from "./chunk-NY7M42KC.js";
|
|
26
|
+
import {
|
|
27
|
+
ChevronDownIcon
|
|
28
|
+
} from "./chunk-NIQFSLPC.js";
|
|
29
|
+
import {
|
|
30
|
+
SearchIcon
|
|
31
|
+
} from "./chunk-WOR2GMMN.js";
|
|
32
|
+
import {
|
|
33
|
+
UsersIcon
|
|
34
|
+
} from "./chunk-NB5CB65C.js";
|
|
35
|
+
import {
|
|
36
|
+
cn
|
|
37
|
+
} from "./chunk-2TQSHVXA.js";
|
|
38
|
+
|
|
39
|
+
// src/components/sidebar-nav/sidebar-nav.tsx
|
|
40
|
+
import * as React from "react";
|
|
41
|
+
import {
|
|
42
|
+
AnimatePresence,
|
|
43
|
+
motion as motion7,
|
|
44
|
+
useInView,
|
|
45
|
+
useReducedMotion as useReducedMotion7
|
|
46
|
+
} from "motion/react";
|
|
47
|
+
|
|
48
|
+
// src/icons/bot.tsx
|
|
49
|
+
import { motion, useAnimation, useReducedMotion } from "motion/react";
|
|
50
|
+
import { forwardRef, useCallback, useEffect, useImperativeHandle, useRef, useState } from "react";
|
|
51
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
52
|
+
var BotIcon = forwardRef(
|
|
53
|
+
({ onMouseEnter, onMouseLeave, className, size, active, style, strokeWidth, ...props }, ref) => {
|
|
54
|
+
const controls = useAnimation();
|
|
55
|
+
const isControlledRef = useRef(false);
|
|
56
|
+
useImperativeHandle(ref, () => {
|
|
57
|
+
isControlledRef.current = true;
|
|
58
|
+
return {
|
|
59
|
+
startAnimation: () => controls.start("animate"),
|
|
60
|
+
stopAnimation: () => controls.start("normal")
|
|
61
|
+
};
|
|
62
|
+
});
|
|
63
|
+
const handleMouseEnter = useCallback(
|
|
64
|
+
(e) => {
|
|
65
|
+
if (isControlledRef.current) {
|
|
66
|
+
onMouseEnter?.(e);
|
|
67
|
+
} else {
|
|
68
|
+
controls.start("animate");
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
[controls, onMouseEnter]
|
|
72
|
+
);
|
|
73
|
+
const handleMouseLeave = useCallback(
|
|
74
|
+
(e) => {
|
|
75
|
+
if (isControlledRef.current) {
|
|
76
|
+
onMouseLeave?.(e);
|
|
77
|
+
} else {
|
|
78
|
+
controls.start("normal");
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
[controls, onMouseLeave]
|
|
82
|
+
);
|
|
83
|
+
const wrap = useRef(null);
|
|
84
|
+
const reduced = useReducedMotion();
|
|
85
|
+
const [hosted, setHosted] = useState(false);
|
|
86
|
+
useEffect(() => {
|
|
87
|
+
const fake = {};
|
|
88
|
+
if (reduced) {
|
|
89
|
+
setHosted(true);
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
if (active !== void 0) {
|
|
93
|
+
setHosted(true);
|
|
94
|
+
(active ? handleMouseEnter : handleMouseLeave)(fake);
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
const host = wrap.current?.parentElement?.closest("button, a, [role=button], [role=menuitem], [role=tab], [role=switch], [role=radio], label");
|
|
98
|
+
setHosted(!!host);
|
|
99
|
+
if (!host) return;
|
|
100
|
+
const on = () => handleMouseEnter(fake);
|
|
101
|
+
const off = () => handleMouseLeave(fake);
|
|
102
|
+
host.addEventListener("pointerenter", on);
|
|
103
|
+
host.addEventListener("pointerleave", off);
|
|
104
|
+
return () => {
|
|
105
|
+
host.removeEventListener("pointerenter", on);
|
|
106
|
+
host.removeEventListener("pointerleave", off);
|
|
107
|
+
};
|
|
108
|
+
}, [active, reduced, handleMouseEnter, handleMouseLeave]);
|
|
109
|
+
return /* @__PURE__ */ jsx(
|
|
110
|
+
"span",
|
|
111
|
+
{
|
|
112
|
+
ref: wrap,
|
|
113
|
+
className: cn("inline-grid size-6 shrink-0 place-items-center align-middle [&>svg]:size-full", className),
|
|
114
|
+
style: size ? { width: size, height: size, ...style } : style,
|
|
115
|
+
onMouseEnter: hosted ? void 0 : handleMouseEnter,
|
|
116
|
+
onMouseLeave: hosted ? void 0 : handleMouseLeave,
|
|
117
|
+
...props,
|
|
118
|
+
children: /* @__PURE__ */ jsxs(
|
|
119
|
+
"svg",
|
|
120
|
+
{
|
|
121
|
+
fill: "none",
|
|
122
|
+
height: size,
|
|
123
|
+
stroke: "currentColor",
|
|
124
|
+
strokeLinecap: "round",
|
|
125
|
+
strokeLinejoin: "round",
|
|
126
|
+
strokeWidth: strokeWidth ?? 2,
|
|
127
|
+
viewBox: "0 0 24 24",
|
|
128
|
+
width: size,
|
|
129
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
130
|
+
children: [
|
|
131
|
+
/* @__PURE__ */ jsx("path", { d: "M12 8V4H8" }),
|
|
132
|
+
/* @__PURE__ */ jsx("rect", { height: "12", rx: "2", width: "16", x: "4", y: "8" }),
|
|
133
|
+
/* @__PURE__ */ jsx("path", { d: "M2 14h2" }),
|
|
134
|
+
/* @__PURE__ */ jsx("path", { d: "M20 14h2" }),
|
|
135
|
+
/* @__PURE__ */ jsx(
|
|
136
|
+
motion.line,
|
|
137
|
+
{
|
|
138
|
+
animate: controls,
|
|
139
|
+
initial: "normal",
|
|
140
|
+
variants: {
|
|
141
|
+
normal: { y1: 13, y2: 15 },
|
|
142
|
+
animate: {
|
|
143
|
+
y1: [13, 14, 13],
|
|
144
|
+
y2: [15, 14, 15],
|
|
145
|
+
transition: {
|
|
146
|
+
duration: 0.5,
|
|
147
|
+
ease: "easeInOut",
|
|
148
|
+
delay: 0.2
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
x1: 15,
|
|
153
|
+
x2: 15
|
|
154
|
+
}
|
|
155
|
+
),
|
|
156
|
+
/* @__PURE__ */ jsx(
|
|
157
|
+
motion.line,
|
|
158
|
+
{
|
|
159
|
+
animate: controls,
|
|
160
|
+
initial: "normal",
|
|
161
|
+
variants: {
|
|
162
|
+
normal: { y1: 13, y2: 15 },
|
|
163
|
+
animate: {
|
|
164
|
+
y1: [13, 14, 13],
|
|
165
|
+
y2: [15, 14, 15],
|
|
166
|
+
transition: {
|
|
167
|
+
duration: 0.5,
|
|
168
|
+
ease: "easeInOut",
|
|
169
|
+
delay: 0.2
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
x1: 9,
|
|
174
|
+
x2: 9
|
|
175
|
+
}
|
|
176
|
+
)
|
|
177
|
+
]
|
|
178
|
+
}
|
|
179
|
+
)
|
|
180
|
+
}
|
|
181
|
+
);
|
|
182
|
+
}
|
|
183
|
+
);
|
|
184
|
+
BotIcon.displayName = "Bot";
|
|
185
|
+
|
|
186
|
+
// src/icons/folders.tsx
|
|
187
|
+
import { motion as motion2, useAnimation as useAnimation2, useReducedMotion as useReducedMotion2 } from "motion/react";
|
|
188
|
+
import { forwardRef as forwardRef2, useCallback as useCallback2, useEffect as useEffect2, useImperativeHandle as useImperativeHandle2, useRef as useRef2, useState as useState2 } from "react";
|
|
189
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
190
|
+
var FoldersIcon = forwardRef2(
|
|
191
|
+
({ onMouseEnter, onMouseLeave, className, size, active, style, strokeWidth, ...props }, ref) => {
|
|
192
|
+
const controls = useAnimation2();
|
|
193
|
+
const isControlledRef = useRef2(false);
|
|
194
|
+
useImperativeHandle2(ref, () => {
|
|
195
|
+
isControlledRef.current = true;
|
|
196
|
+
return {
|
|
197
|
+
startAnimation: () => controls.start("animate"),
|
|
198
|
+
stopAnimation: () => controls.start("normal")
|
|
199
|
+
};
|
|
200
|
+
});
|
|
201
|
+
const handleMouseEnter = useCallback2(
|
|
202
|
+
(e) => {
|
|
203
|
+
if (isControlledRef.current) {
|
|
204
|
+
onMouseEnter?.(e);
|
|
205
|
+
} else {
|
|
206
|
+
controls.start("animate");
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
[controls, onMouseEnter]
|
|
210
|
+
);
|
|
211
|
+
const handleMouseLeave = useCallback2(
|
|
212
|
+
(e) => {
|
|
213
|
+
if (isControlledRef.current) {
|
|
214
|
+
onMouseLeave?.(e);
|
|
215
|
+
} else {
|
|
216
|
+
controls.start("normal");
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
[controls, onMouseLeave]
|
|
220
|
+
);
|
|
221
|
+
const wrap = useRef2(null);
|
|
222
|
+
const reduced = useReducedMotion2();
|
|
223
|
+
const [hosted, setHosted] = useState2(false);
|
|
224
|
+
useEffect2(() => {
|
|
225
|
+
const fake = {};
|
|
226
|
+
if (reduced) {
|
|
227
|
+
setHosted(true);
|
|
228
|
+
return;
|
|
229
|
+
}
|
|
230
|
+
if (active !== void 0) {
|
|
231
|
+
setHosted(true);
|
|
232
|
+
(active ? handleMouseEnter : handleMouseLeave)(fake);
|
|
233
|
+
return;
|
|
234
|
+
}
|
|
235
|
+
const host = wrap.current?.parentElement?.closest("button, a, [role=button], [role=menuitem], [role=tab], [role=switch], [role=radio], label");
|
|
236
|
+
setHosted(!!host);
|
|
237
|
+
if (!host) return;
|
|
238
|
+
const on = () => handleMouseEnter(fake);
|
|
239
|
+
const off = () => handleMouseLeave(fake);
|
|
240
|
+
host.addEventListener("pointerenter", on);
|
|
241
|
+
host.addEventListener("pointerleave", off);
|
|
242
|
+
return () => {
|
|
243
|
+
host.removeEventListener("pointerenter", on);
|
|
244
|
+
host.removeEventListener("pointerleave", off);
|
|
245
|
+
};
|
|
246
|
+
}, [active, reduced, handleMouseEnter, handleMouseLeave]);
|
|
247
|
+
return /* @__PURE__ */ jsx2(
|
|
248
|
+
"span",
|
|
249
|
+
{
|
|
250
|
+
ref: wrap,
|
|
251
|
+
className: cn("inline-grid size-6 shrink-0 place-items-center align-middle [&>svg]:size-full", className),
|
|
252
|
+
style: size ? { width: size, height: size, ...style } : style,
|
|
253
|
+
onMouseEnter: hosted ? void 0 : handleMouseEnter,
|
|
254
|
+
onMouseLeave: hosted ? void 0 : handleMouseLeave,
|
|
255
|
+
...props,
|
|
256
|
+
children: /* @__PURE__ */ jsxs2(
|
|
257
|
+
"svg",
|
|
258
|
+
{
|
|
259
|
+
fill: "none",
|
|
260
|
+
height: size,
|
|
261
|
+
stroke: "currentColor",
|
|
262
|
+
strokeLinecap: "round",
|
|
263
|
+
strokeLinejoin: "round",
|
|
264
|
+
strokeWidth: strokeWidth ?? 2,
|
|
265
|
+
viewBox: "0 0 24 24",
|
|
266
|
+
width: size,
|
|
267
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
268
|
+
children: [
|
|
269
|
+
/* @__PURE__ */ jsx2(
|
|
270
|
+
motion2.path,
|
|
271
|
+
{
|
|
272
|
+
animate: controls,
|
|
273
|
+
d: "M20 17a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3.9a2 2 0 0 1-1.69-.9l-.81-1.2a2 2 0 0 0-1.67-.9H8a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2Z",
|
|
274
|
+
transition: {
|
|
275
|
+
type: "spring",
|
|
276
|
+
stiffness: 250,
|
|
277
|
+
damping: 25
|
|
278
|
+
},
|
|
279
|
+
variants: {
|
|
280
|
+
normal: {
|
|
281
|
+
translateX: 0,
|
|
282
|
+
translateY: 0
|
|
283
|
+
},
|
|
284
|
+
animate: {
|
|
285
|
+
translateX: -2,
|
|
286
|
+
translateY: 2
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
),
|
|
291
|
+
/* @__PURE__ */ jsx2(
|
|
292
|
+
motion2.path,
|
|
293
|
+
{
|
|
294
|
+
animate: controls,
|
|
295
|
+
d: "M2 8v11a2 2 0 0 0 2 2h14",
|
|
296
|
+
transition: {
|
|
297
|
+
type: "spring",
|
|
298
|
+
stiffness: 250,
|
|
299
|
+
damping: 25
|
|
300
|
+
},
|
|
301
|
+
variants: {
|
|
302
|
+
normal: {
|
|
303
|
+
translateX: 0,
|
|
304
|
+
translateY: 0,
|
|
305
|
+
opacity: 1,
|
|
306
|
+
scale: 1
|
|
307
|
+
},
|
|
308
|
+
animate: {
|
|
309
|
+
translateX: 2,
|
|
310
|
+
translateY: -2,
|
|
311
|
+
opacity: 0,
|
|
312
|
+
scale: 0.9
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
)
|
|
317
|
+
]
|
|
318
|
+
}
|
|
319
|
+
)
|
|
320
|
+
}
|
|
321
|
+
);
|
|
322
|
+
}
|
|
323
|
+
);
|
|
324
|
+
FoldersIcon.displayName = "FoldersIcon";
|
|
325
|
+
|
|
326
|
+
// src/icons/panel-left-close.tsx
|
|
327
|
+
import { motion as motion3, useAnimation as useAnimation3, useReducedMotion as useReducedMotion3 } from "motion/react";
|
|
328
|
+
import { forwardRef as forwardRef3, useCallback as useCallback3, useEffect as useEffect3, useImperativeHandle as useImperativeHandle3, useRef as useRef3, useState as useState3 } from "react";
|
|
329
|
+
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
330
|
+
var DEFAULT_TRANSITION = {
|
|
331
|
+
times: [0, 0.4, 1],
|
|
332
|
+
duration: 0.5
|
|
333
|
+
};
|
|
334
|
+
var PATH_VARIANTS = {
|
|
335
|
+
normal: { x: 0 },
|
|
336
|
+
animate: { x: [0, -1.5, 0] }
|
|
337
|
+
};
|
|
338
|
+
var PanelLeftCloseIcon = forwardRef3(({ onMouseEnter, onMouseLeave, className, size, active, style, strokeWidth, ...props }, ref) => {
|
|
339
|
+
const controls = useAnimation3();
|
|
340
|
+
const isControlledRef = useRef3(false);
|
|
341
|
+
useImperativeHandle3(ref, () => {
|
|
342
|
+
isControlledRef.current = true;
|
|
343
|
+
return {
|
|
344
|
+
startAnimation: () => controls.start("animate"),
|
|
345
|
+
stopAnimation: () => controls.start("normal")
|
|
346
|
+
};
|
|
347
|
+
});
|
|
348
|
+
const handleMouseEnter = useCallback3(
|
|
349
|
+
(e) => {
|
|
350
|
+
if (isControlledRef.current) {
|
|
351
|
+
onMouseEnter?.(e);
|
|
352
|
+
} else {
|
|
353
|
+
controls.start("animate");
|
|
354
|
+
}
|
|
355
|
+
},
|
|
356
|
+
[controls, onMouseEnter]
|
|
357
|
+
);
|
|
358
|
+
const handleMouseLeave = useCallback3(
|
|
359
|
+
(e) => {
|
|
360
|
+
if (isControlledRef.current) {
|
|
361
|
+
onMouseLeave?.(e);
|
|
362
|
+
} else {
|
|
363
|
+
controls.start("normal");
|
|
364
|
+
}
|
|
365
|
+
},
|
|
366
|
+
[controls, onMouseLeave]
|
|
367
|
+
);
|
|
368
|
+
const wrap = useRef3(null);
|
|
369
|
+
const reduced = useReducedMotion3();
|
|
370
|
+
const [hosted, setHosted] = useState3(false);
|
|
371
|
+
useEffect3(() => {
|
|
372
|
+
const fake = {};
|
|
373
|
+
if (reduced) {
|
|
374
|
+
setHosted(true);
|
|
375
|
+
return;
|
|
376
|
+
}
|
|
377
|
+
if (active !== void 0) {
|
|
378
|
+
setHosted(true);
|
|
379
|
+
(active ? handleMouseEnter : handleMouseLeave)(fake);
|
|
380
|
+
return;
|
|
381
|
+
}
|
|
382
|
+
const host = wrap.current?.parentElement?.closest("button, a, [role=button], [role=menuitem], [role=tab], [role=switch], [role=radio], label");
|
|
383
|
+
setHosted(!!host);
|
|
384
|
+
if (!host) return;
|
|
385
|
+
const on = () => handleMouseEnter(fake);
|
|
386
|
+
const off = () => handleMouseLeave(fake);
|
|
387
|
+
host.addEventListener("pointerenter", on);
|
|
388
|
+
host.addEventListener("pointerleave", off);
|
|
389
|
+
return () => {
|
|
390
|
+
host.removeEventListener("pointerenter", on);
|
|
391
|
+
host.removeEventListener("pointerleave", off);
|
|
392
|
+
};
|
|
393
|
+
}, [active, reduced, handleMouseEnter, handleMouseLeave]);
|
|
394
|
+
return /* @__PURE__ */ jsx3(
|
|
395
|
+
"span",
|
|
396
|
+
{
|
|
397
|
+
ref: wrap,
|
|
398
|
+
className: cn("inline-grid size-6 shrink-0 place-items-center align-middle [&>svg]:size-full", className),
|
|
399
|
+
style: size ? { width: size, height: size, ...style } : style,
|
|
400
|
+
onMouseEnter: hosted ? void 0 : handleMouseEnter,
|
|
401
|
+
onMouseLeave: hosted ? void 0 : handleMouseLeave,
|
|
402
|
+
...props,
|
|
403
|
+
children: /* @__PURE__ */ jsxs3(
|
|
404
|
+
"svg",
|
|
405
|
+
{
|
|
406
|
+
fill: "none",
|
|
407
|
+
height: size,
|
|
408
|
+
stroke: "currentColor",
|
|
409
|
+
strokeLinecap: "round",
|
|
410
|
+
strokeLinejoin: "round",
|
|
411
|
+
strokeWidth: strokeWidth ?? 2,
|
|
412
|
+
viewBox: "0 0 24 24",
|
|
413
|
+
width: size,
|
|
414
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
415
|
+
children: [
|
|
416
|
+
/* @__PURE__ */ jsx3("rect", { height: "18", rx: "2", width: "18", x: "3", y: "3" }),
|
|
417
|
+
/* @__PURE__ */ jsx3("path", { d: "M9 3v18" }),
|
|
418
|
+
/* @__PURE__ */ jsx3(
|
|
419
|
+
motion3.path,
|
|
420
|
+
{
|
|
421
|
+
animate: controls,
|
|
422
|
+
d: "m16 15-3-3 3-3",
|
|
423
|
+
transition: DEFAULT_TRANSITION,
|
|
424
|
+
variants: PATH_VARIANTS
|
|
425
|
+
}
|
|
426
|
+
)
|
|
427
|
+
]
|
|
428
|
+
}
|
|
429
|
+
)
|
|
430
|
+
}
|
|
431
|
+
);
|
|
432
|
+
});
|
|
433
|
+
PanelLeftCloseIcon.displayName = "PanelLeftCloseIcon";
|
|
434
|
+
|
|
435
|
+
// src/icons/panel-left-open.tsx
|
|
436
|
+
import { motion as motion4, useAnimation as useAnimation4, useReducedMotion as useReducedMotion4 } from "motion/react";
|
|
437
|
+
import { forwardRef as forwardRef4, useCallback as useCallback4, useEffect as useEffect4, useImperativeHandle as useImperativeHandle4, useRef as useRef4, useState as useState4 } from "react";
|
|
438
|
+
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
439
|
+
var DEFAULT_TRANSITION2 = {
|
|
440
|
+
times: [0, 0.4, 1],
|
|
441
|
+
duration: 0.5
|
|
442
|
+
};
|
|
443
|
+
var PATH_VARIANTS2 = {
|
|
444
|
+
normal: { x: 0 },
|
|
445
|
+
animate: { x: [0, 1.5, 0] }
|
|
446
|
+
};
|
|
447
|
+
var PanelLeftOpenIcon = forwardRef4(({ onMouseEnter, onMouseLeave, className, size, active, style, strokeWidth, ...props }, ref) => {
|
|
448
|
+
const controls = useAnimation4();
|
|
449
|
+
const isControlledRef = useRef4(false);
|
|
450
|
+
useImperativeHandle4(ref, () => {
|
|
451
|
+
isControlledRef.current = true;
|
|
452
|
+
return {
|
|
453
|
+
startAnimation: () => controls.start("animate"),
|
|
454
|
+
stopAnimation: () => controls.start("normal")
|
|
455
|
+
};
|
|
456
|
+
});
|
|
457
|
+
const handleMouseEnter = useCallback4(
|
|
458
|
+
(e) => {
|
|
459
|
+
if (isControlledRef.current) {
|
|
460
|
+
onMouseEnter?.(e);
|
|
461
|
+
} else {
|
|
462
|
+
controls.start("animate");
|
|
463
|
+
}
|
|
464
|
+
},
|
|
465
|
+
[controls, onMouseEnter]
|
|
466
|
+
);
|
|
467
|
+
const handleMouseLeave = useCallback4(
|
|
468
|
+
(e) => {
|
|
469
|
+
if (isControlledRef.current) {
|
|
470
|
+
onMouseLeave?.(e);
|
|
471
|
+
} else {
|
|
472
|
+
controls.start("normal");
|
|
473
|
+
}
|
|
474
|
+
},
|
|
475
|
+
[controls, onMouseLeave]
|
|
476
|
+
);
|
|
477
|
+
const wrap = useRef4(null);
|
|
478
|
+
const reduced = useReducedMotion4();
|
|
479
|
+
const [hosted, setHosted] = useState4(false);
|
|
480
|
+
useEffect4(() => {
|
|
481
|
+
const fake = {};
|
|
482
|
+
if (reduced) {
|
|
483
|
+
setHosted(true);
|
|
484
|
+
return;
|
|
485
|
+
}
|
|
486
|
+
if (active !== void 0) {
|
|
487
|
+
setHosted(true);
|
|
488
|
+
(active ? handleMouseEnter : handleMouseLeave)(fake);
|
|
489
|
+
return;
|
|
490
|
+
}
|
|
491
|
+
const host = wrap.current?.parentElement?.closest("button, a, [role=button], [role=menuitem], [role=tab], [role=switch], [role=radio], label");
|
|
492
|
+
setHosted(!!host);
|
|
493
|
+
if (!host) return;
|
|
494
|
+
const on = () => handleMouseEnter(fake);
|
|
495
|
+
const off = () => handleMouseLeave(fake);
|
|
496
|
+
host.addEventListener("pointerenter", on);
|
|
497
|
+
host.addEventListener("pointerleave", off);
|
|
498
|
+
return () => {
|
|
499
|
+
host.removeEventListener("pointerenter", on);
|
|
500
|
+
host.removeEventListener("pointerleave", off);
|
|
501
|
+
};
|
|
502
|
+
}, [active, reduced, handleMouseEnter, handleMouseLeave]);
|
|
503
|
+
return /* @__PURE__ */ jsx4(
|
|
504
|
+
"span",
|
|
505
|
+
{
|
|
506
|
+
ref: wrap,
|
|
507
|
+
className: cn("inline-grid size-6 shrink-0 place-items-center align-middle [&>svg]:size-full", className),
|
|
508
|
+
style: size ? { width: size, height: size, ...style } : style,
|
|
509
|
+
onMouseEnter: hosted ? void 0 : handleMouseEnter,
|
|
510
|
+
onMouseLeave: hosted ? void 0 : handleMouseLeave,
|
|
511
|
+
...props,
|
|
512
|
+
children: /* @__PURE__ */ jsxs4(
|
|
513
|
+
"svg",
|
|
514
|
+
{
|
|
515
|
+
fill: "none",
|
|
516
|
+
height: size,
|
|
517
|
+
stroke: "currentColor",
|
|
518
|
+
strokeLinecap: "round",
|
|
519
|
+
strokeLinejoin: "round",
|
|
520
|
+
strokeWidth: strokeWidth ?? 2,
|
|
521
|
+
viewBox: "0 0 24 24",
|
|
522
|
+
width: size,
|
|
523
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
524
|
+
children: [
|
|
525
|
+
/* @__PURE__ */ jsx4("rect", { height: "18", rx: "2", width: "18", x: "3", y: "3" }),
|
|
526
|
+
/* @__PURE__ */ jsx4("path", { d: "M9 3v18" }),
|
|
527
|
+
/* @__PURE__ */ jsx4(
|
|
528
|
+
motion4.path,
|
|
529
|
+
{
|
|
530
|
+
animate: controls,
|
|
531
|
+
d: "m14 9 3 3-3 3",
|
|
532
|
+
transition: DEFAULT_TRANSITION2,
|
|
533
|
+
variants: PATH_VARIANTS2
|
|
534
|
+
}
|
|
535
|
+
)
|
|
536
|
+
]
|
|
537
|
+
}
|
|
538
|
+
)
|
|
539
|
+
}
|
|
540
|
+
);
|
|
541
|
+
});
|
|
542
|
+
PanelLeftOpenIcon.displayName = "PanelLeftOpenIcon";
|
|
543
|
+
|
|
544
|
+
// src/icons/plug-zap.tsx
|
|
545
|
+
import { motion as motion5, useAnimation as useAnimation5, useReducedMotion as useReducedMotion5 } from "motion/react";
|
|
546
|
+
import { forwardRef as forwardRef5, useCallback as useCallback5, useEffect as useEffect5, useImperativeHandle as useImperativeHandle5, useRef as useRef5, useState as useState5 } from "react";
|
|
547
|
+
import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
548
|
+
var ZAP_VARIANT = {
|
|
549
|
+
normal: { opacity: 1 },
|
|
550
|
+
animate: {
|
|
551
|
+
opacity: [1, 0.4, 1],
|
|
552
|
+
transition: {
|
|
553
|
+
duration: 1,
|
|
554
|
+
repeat: Number.POSITIVE_INFINITY,
|
|
555
|
+
ease: "easeInOut"
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
};
|
|
559
|
+
var PlugZapIcon = forwardRef5(
|
|
560
|
+
({ onMouseEnter, onMouseLeave, className, size, active, style, strokeWidth, ...props }, ref) => {
|
|
561
|
+
const controls = useAnimation5();
|
|
562
|
+
const isControlledRef = useRef5(false);
|
|
563
|
+
useImperativeHandle5(ref, () => {
|
|
564
|
+
isControlledRef.current = true;
|
|
565
|
+
return {
|
|
566
|
+
startAnimation: () => controls.start("animate"),
|
|
567
|
+
stopAnimation: () => controls.start("normal")
|
|
568
|
+
};
|
|
569
|
+
});
|
|
570
|
+
const handleMouseEnter = useCallback5(
|
|
571
|
+
(e) => {
|
|
572
|
+
if (isControlledRef.current) {
|
|
573
|
+
onMouseEnter?.(e);
|
|
574
|
+
} else {
|
|
575
|
+
controls.start("animate");
|
|
576
|
+
}
|
|
577
|
+
},
|
|
578
|
+
[controls, onMouseEnter]
|
|
579
|
+
);
|
|
580
|
+
const handleMouseLeave = useCallback5(
|
|
581
|
+
(e) => {
|
|
582
|
+
if (isControlledRef.current) {
|
|
583
|
+
onMouseLeave?.(e);
|
|
584
|
+
} else {
|
|
585
|
+
controls.start("normal");
|
|
586
|
+
}
|
|
587
|
+
},
|
|
588
|
+
[controls, onMouseLeave]
|
|
589
|
+
);
|
|
590
|
+
const wrap = useRef5(null);
|
|
591
|
+
const reduced = useReducedMotion5();
|
|
592
|
+
const [hosted, setHosted] = useState5(false);
|
|
593
|
+
useEffect5(() => {
|
|
594
|
+
const fake = {};
|
|
595
|
+
if (reduced) {
|
|
596
|
+
setHosted(true);
|
|
597
|
+
return;
|
|
598
|
+
}
|
|
599
|
+
if (active !== void 0) {
|
|
600
|
+
setHosted(true);
|
|
601
|
+
(active ? handleMouseEnter : handleMouseLeave)(fake);
|
|
602
|
+
return;
|
|
603
|
+
}
|
|
604
|
+
const host = wrap.current?.parentElement?.closest("button, a, [role=button], [role=menuitem], [role=tab], [role=switch], [role=radio], label");
|
|
605
|
+
setHosted(!!host);
|
|
606
|
+
if (!host) return;
|
|
607
|
+
const on = () => handleMouseEnter(fake);
|
|
608
|
+
const off = () => handleMouseLeave(fake);
|
|
609
|
+
host.addEventListener("pointerenter", on);
|
|
610
|
+
host.addEventListener("pointerleave", off);
|
|
611
|
+
return () => {
|
|
612
|
+
host.removeEventListener("pointerenter", on);
|
|
613
|
+
host.removeEventListener("pointerleave", off);
|
|
614
|
+
};
|
|
615
|
+
}, [active, reduced, handleMouseEnter, handleMouseLeave]);
|
|
616
|
+
return /* @__PURE__ */ jsx5(
|
|
617
|
+
"span",
|
|
618
|
+
{
|
|
619
|
+
ref: wrap,
|
|
620
|
+
className: cn("inline-grid size-6 shrink-0 place-items-center align-middle [&>svg]:size-full", className),
|
|
621
|
+
style: size ? { width: size, height: size, ...style } : style,
|
|
622
|
+
onMouseEnter: hosted ? void 0 : handleMouseEnter,
|
|
623
|
+
onMouseLeave: hosted ? void 0 : handleMouseLeave,
|
|
624
|
+
...props,
|
|
625
|
+
children: /* @__PURE__ */ jsxs5(
|
|
626
|
+
"svg",
|
|
627
|
+
{
|
|
628
|
+
fill: "none",
|
|
629
|
+
height: size,
|
|
630
|
+
stroke: "currentColor",
|
|
631
|
+
strokeLinecap: "round",
|
|
632
|
+
strokeLinejoin: "round",
|
|
633
|
+
strokeWidth: strokeWidth ?? 2,
|
|
634
|
+
viewBox: "0 0 24 24",
|
|
635
|
+
width: size,
|
|
636
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
637
|
+
children: [
|
|
638
|
+
/* @__PURE__ */ jsx5("path", { d: "M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z" }),
|
|
639
|
+
/* @__PURE__ */ jsx5("path", { d: "m2 22 3-3" }),
|
|
640
|
+
/* @__PURE__ */ jsx5("path", { d: "M7.5 13.5 10 11" }),
|
|
641
|
+
/* @__PURE__ */ jsx5("path", { d: "M10.5 16.5 13 14" }),
|
|
642
|
+
/* @__PURE__ */ jsx5(
|
|
643
|
+
motion5.path,
|
|
644
|
+
{
|
|
645
|
+
animate: controls,
|
|
646
|
+
d: "m18 3-4 4h6l-4 4",
|
|
647
|
+
initial: "normal",
|
|
648
|
+
variants: ZAP_VARIANT
|
|
649
|
+
}
|
|
650
|
+
)
|
|
651
|
+
]
|
|
652
|
+
}
|
|
653
|
+
)
|
|
654
|
+
}
|
|
655
|
+
);
|
|
656
|
+
}
|
|
657
|
+
);
|
|
658
|
+
PlugZapIcon.displayName = "PlugZapIcon";
|
|
659
|
+
|
|
660
|
+
// src/icons/workflow.tsx
|
|
661
|
+
import { motion as motion6, useAnimation as useAnimation6, useReducedMotion as useReducedMotion6 } from "motion/react";
|
|
662
|
+
import { forwardRef as forwardRef6, useCallback as useCallback6, useEffect as useEffect6, useImperativeHandle as useImperativeHandle6, useRef as useRef6, useState as useState6 } from "react";
|
|
663
|
+
import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
664
|
+
var TRANSITION = {
|
|
665
|
+
duration: 0.3,
|
|
666
|
+
opacity: { delay: 0.15 }
|
|
667
|
+
};
|
|
668
|
+
var VARIANTS = {
|
|
669
|
+
normal: {
|
|
670
|
+
pathLength: 1,
|
|
671
|
+
opacity: 1
|
|
672
|
+
},
|
|
673
|
+
animate: (custom) => ({
|
|
674
|
+
pathLength: [0, 1],
|
|
675
|
+
opacity: [0, 1],
|
|
676
|
+
transition: {
|
|
677
|
+
...TRANSITION,
|
|
678
|
+
delay: 0.1 * custom
|
|
679
|
+
}
|
|
680
|
+
})
|
|
681
|
+
};
|
|
682
|
+
var WorkflowIcon = forwardRef6(
|
|
683
|
+
({ onMouseEnter, onMouseLeave, className, size, active, style, strokeWidth, ...props }, ref) => {
|
|
684
|
+
const controls = useAnimation6();
|
|
685
|
+
const isControlledRef = useRef6(false);
|
|
686
|
+
useImperativeHandle6(ref, () => {
|
|
687
|
+
isControlledRef.current = true;
|
|
688
|
+
return {
|
|
689
|
+
startAnimation: () => controls.start("animate"),
|
|
690
|
+
stopAnimation: () => controls.start("normal")
|
|
691
|
+
};
|
|
692
|
+
});
|
|
693
|
+
const handleMouseEnter = useCallback6(
|
|
694
|
+
(e) => {
|
|
695
|
+
if (isControlledRef.current) {
|
|
696
|
+
onMouseEnter?.(e);
|
|
697
|
+
} else {
|
|
698
|
+
controls.start("animate");
|
|
699
|
+
}
|
|
700
|
+
},
|
|
701
|
+
[controls, onMouseEnter]
|
|
702
|
+
);
|
|
703
|
+
const handleMouseLeave = useCallback6(
|
|
704
|
+
(e) => {
|
|
705
|
+
if (isControlledRef.current) {
|
|
706
|
+
onMouseLeave?.(e);
|
|
707
|
+
} else {
|
|
708
|
+
controls.start("normal");
|
|
709
|
+
}
|
|
710
|
+
},
|
|
711
|
+
[controls, onMouseLeave]
|
|
712
|
+
);
|
|
713
|
+
const wrap = useRef6(null);
|
|
714
|
+
const reduced = useReducedMotion6();
|
|
715
|
+
const [hosted, setHosted] = useState6(false);
|
|
716
|
+
useEffect6(() => {
|
|
717
|
+
const fake = {};
|
|
718
|
+
if (reduced) {
|
|
719
|
+
setHosted(true);
|
|
720
|
+
return;
|
|
721
|
+
}
|
|
722
|
+
if (active !== void 0) {
|
|
723
|
+
setHosted(true);
|
|
724
|
+
(active ? handleMouseEnter : handleMouseLeave)(fake);
|
|
725
|
+
return;
|
|
726
|
+
}
|
|
727
|
+
const host = wrap.current?.parentElement?.closest("button, a, [role=button], [role=menuitem], [role=tab], [role=switch], [role=radio], label");
|
|
728
|
+
setHosted(!!host);
|
|
729
|
+
if (!host) return;
|
|
730
|
+
const on = () => handleMouseEnter(fake);
|
|
731
|
+
const off = () => handleMouseLeave(fake);
|
|
732
|
+
host.addEventListener("pointerenter", on);
|
|
733
|
+
host.addEventListener("pointerleave", off);
|
|
734
|
+
return () => {
|
|
735
|
+
host.removeEventListener("pointerenter", on);
|
|
736
|
+
host.removeEventListener("pointerleave", off);
|
|
737
|
+
};
|
|
738
|
+
}, [active, reduced, handleMouseEnter, handleMouseLeave]);
|
|
739
|
+
return /* @__PURE__ */ jsx6(
|
|
740
|
+
"span",
|
|
741
|
+
{
|
|
742
|
+
ref: wrap,
|
|
743
|
+
className: cn("inline-grid size-6 shrink-0 place-items-center align-middle [&>svg]:size-full", className),
|
|
744
|
+
style: size ? { width: size, height: size, ...style } : style,
|
|
745
|
+
onMouseEnter: hosted ? void 0 : handleMouseEnter,
|
|
746
|
+
onMouseLeave: hosted ? void 0 : handleMouseLeave,
|
|
747
|
+
...props,
|
|
748
|
+
children: /* @__PURE__ */ jsxs6(
|
|
749
|
+
"svg",
|
|
750
|
+
{
|
|
751
|
+
fill: "none",
|
|
752
|
+
height: size,
|
|
753
|
+
stroke: "currentColor",
|
|
754
|
+
strokeLinecap: "round",
|
|
755
|
+
strokeLinejoin: "round",
|
|
756
|
+
strokeWidth: strokeWidth ?? 2,
|
|
757
|
+
viewBox: "0 0 24 24",
|
|
758
|
+
width: size,
|
|
759
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
760
|
+
children: [
|
|
761
|
+
/* @__PURE__ */ jsx6(
|
|
762
|
+
motion6.rect,
|
|
763
|
+
{
|
|
764
|
+
animate: controls,
|
|
765
|
+
custom: 0,
|
|
766
|
+
height: "8",
|
|
767
|
+
rx: "2",
|
|
768
|
+
variants: VARIANTS,
|
|
769
|
+
width: "8",
|
|
770
|
+
x: "3",
|
|
771
|
+
y: "3"
|
|
772
|
+
}
|
|
773
|
+
),
|
|
774
|
+
/* @__PURE__ */ jsx6(
|
|
775
|
+
motion6.path,
|
|
776
|
+
{
|
|
777
|
+
animate: controls,
|
|
778
|
+
custom: 3,
|
|
779
|
+
d: "M7 11v4a2 2 0 0 0 2 2h4",
|
|
780
|
+
variants: VARIANTS
|
|
781
|
+
}
|
|
782
|
+
),
|
|
783
|
+
/* @__PURE__ */ jsx6(
|
|
784
|
+
motion6.rect,
|
|
785
|
+
{
|
|
786
|
+
animate: controls,
|
|
787
|
+
custom: 0,
|
|
788
|
+
height: "8",
|
|
789
|
+
rx: "2",
|
|
790
|
+
variants: VARIANTS,
|
|
791
|
+
width: "8",
|
|
792
|
+
x: "13",
|
|
793
|
+
y: "13"
|
|
794
|
+
}
|
|
795
|
+
)
|
|
796
|
+
]
|
|
797
|
+
}
|
|
798
|
+
)
|
|
799
|
+
}
|
|
800
|
+
);
|
|
801
|
+
}
|
|
802
|
+
);
|
|
803
|
+
WorkflowIcon.displayName = "WorkflowIcon";
|
|
804
|
+
|
|
805
|
+
// src/components/sidebar-nav/sidebar-nav.tsx
|
|
806
|
+
import { jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
807
|
+
var WIDE = 256;
|
|
808
|
+
var SLIM = 64;
|
|
809
|
+
var LABEL_W = WIDE - 24 - 40;
|
|
810
|
+
var GLIDE = [0.22, 1, 0.36, 1];
|
|
811
|
+
var PILL = { type: "spring", stiffness: 520, damping: 40 };
|
|
812
|
+
var TIP = { type: "spring", stiffness: 600, damping: 42 };
|
|
813
|
+
var FOLD = (still) => still ? { duration: 0 } : { duration: 0.45, ease: GLIDE };
|
|
814
|
+
var CARD = {
|
|
815
|
+
hidden: { opacity: 0, y: 16, scale: 0.98 },
|
|
816
|
+
shown: {
|
|
817
|
+
opacity: 1,
|
|
818
|
+
y: 0,
|
|
819
|
+
scale: 1,
|
|
820
|
+
transition: {
|
|
821
|
+
duration: 0.55,
|
|
822
|
+
ease: GLIDE,
|
|
823
|
+
staggerChildren: 0.035,
|
|
824
|
+
delayChildren: 0.1
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
};
|
|
828
|
+
var ROW = {
|
|
829
|
+
hidden: { opacity: 0, y: 8 },
|
|
830
|
+
shown: { opacity: 1, y: 0, transition: { duration: 0.4, ease: GLIDE } }
|
|
831
|
+
};
|
|
832
|
+
var ICONS = {
|
|
833
|
+
home: HomeIcon,
|
|
834
|
+
search: SearchIcon,
|
|
835
|
+
messages: MessageCircleIcon,
|
|
836
|
+
projects: FoldersIcon,
|
|
837
|
+
analytics: ChartLineIcon,
|
|
838
|
+
calendar: CalendarDaysIcon,
|
|
839
|
+
agents: BotIcon,
|
|
840
|
+
workflows: WorkflowIcon,
|
|
841
|
+
integrations: PlugZapIcon,
|
|
842
|
+
apps: LayoutGridIcon,
|
|
843
|
+
explore: CompassIcon,
|
|
844
|
+
team: UsersIcon,
|
|
845
|
+
bell: BellIcon
|
|
846
|
+
};
|
|
847
|
+
var DEFAULT_SECTIONS = [
|
|
848
|
+
{
|
|
849
|
+
label: "Workspace",
|
|
850
|
+
items: [
|
|
851
|
+
{ id: "home", label: "Home", icon: "home" },
|
|
852
|
+
{ id: "messages", label: "Messages", icon: "messages", badge: 4 },
|
|
853
|
+
{
|
|
854
|
+
id: "projects",
|
|
855
|
+
label: "Projects",
|
|
856
|
+
icon: "projects",
|
|
857
|
+
children: [
|
|
858
|
+
{ id: "website", label: "Website refresh" },
|
|
859
|
+
{ id: "mobile", label: "Mobile app", badge: 2 },
|
|
860
|
+
{ id: "brand", label: "Brand kit" }
|
|
861
|
+
]
|
|
862
|
+
},
|
|
863
|
+
{ id: "analytics", label: "Analytics", icon: "analytics" }
|
|
864
|
+
]
|
|
865
|
+
},
|
|
866
|
+
{
|
|
867
|
+
label: "Automation",
|
|
868
|
+
items: [
|
|
869
|
+
{ id: "agents", label: "Agents", icon: "agents", tag: "New" },
|
|
870
|
+
{ id: "workflows", label: "Workflows", icon: "workflows" },
|
|
871
|
+
{ id: "integrations", label: "Integrations", icon: "integrations" }
|
|
872
|
+
]
|
|
873
|
+
}
|
|
874
|
+
];
|
|
875
|
+
var DEFAULT_USER = {
|
|
876
|
+
name: "Jordan Lee",
|
|
877
|
+
email: "jordan@lumen.app",
|
|
878
|
+
avatar: "https://images.unsplash.com/photo-1500648767791-00dcc994a43e?w=96&h=96&fit=crop&crop=faces"
|
|
879
|
+
};
|
|
880
|
+
var initialsOf = (name) => name.split(/\s+/).slice(0, 2).map((w) => w[0]?.toUpperCase() ?? "").join("");
|
|
881
|
+
function PinwheelMark({ turn }) {
|
|
882
|
+
return /* @__PURE__ */ jsx7(
|
|
883
|
+
motion7.svg,
|
|
884
|
+
{
|
|
885
|
+
viewBox: "0 0 28 28",
|
|
886
|
+
className: "size-7",
|
|
887
|
+
"aria-hidden": true,
|
|
888
|
+
animate: { rotate: turn ? 90 : 0 },
|
|
889
|
+
transition: { type: "spring", stiffness: 260, damping: 18 },
|
|
890
|
+
children: [0, 90, 180, 270].map((deg, i) => /* @__PURE__ */ jsx7(
|
|
891
|
+
"path",
|
|
892
|
+
{
|
|
893
|
+
d: "M14 14V2a6 6 0 0 1 0 12Z",
|
|
894
|
+
transform: `rotate(${deg} 14 14)`,
|
|
895
|
+
fill: "#242423",
|
|
896
|
+
fillOpacity: i % 2 ? 0.35 : 1
|
|
897
|
+
},
|
|
898
|
+
deg
|
|
899
|
+
))
|
|
900
|
+
}
|
|
901
|
+
);
|
|
902
|
+
}
|
|
903
|
+
var SidebarNav = React.forwardRef(
|
|
904
|
+
function SidebarNav2({
|
|
905
|
+
brand = "Lumen",
|
|
906
|
+
logo,
|
|
907
|
+
sections = DEFAULT_SECTIONS,
|
|
908
|
+
value: valueProp,
|
|
909
|
+
defaultValue = "home",
|
|
910
|
+
onNavigate,
|
|
911
|
+
defaultOpen = ["projects"],
|
|
912
|
+
collapsed: collapsedProp,
|
|
913
|
+
defaultCollapsed = false,
|
|
914
|
+
onCollapsedChange,
|
|
915
|
+
user = DEFAULT_USER,
|
|
916
|
+
onSettings,
|
|
917
|
+
className
|
|
918
|
+
}, ref) {
|
|
919
|
+
const still = !!useReducedMotion7();
|
|
920
|
+
const id = React.useId();
|
|
921
|
+
const root = React.useRef(null);
|
|
922
|
+
React.useImperativeHandle(ref, () => root.current);
|
|
923
|
+
const inView = useInView(root, { once: true, amount: 0.3 });
|
|
924
|
+
const [collapsedState, setCollapsedState] = React.useState(defaultCollapsed);
|
|
925
|
+
const collapsed = collapsedProp ?? collapsedState;
|
|
926
|
+
const setCollapsed = (next) => {
|
|
927
|
+
setCollapsedState(next);
|
|
928
|
+
onCollapsedChange?.(next);
|
|
929
|
+
setTip(null);
|
|
930
|
+
};
|
|
931
|
+
const [valueState, setValue] = React.useState(defaultValue);
|
|
932
|
+
const value = valueProp ?? valueState;
|
|
933
|
+
const go = (next) => {
|
|
934
|
+
setValue(next);
|
|
935
|
+
onNavigate?.(next);
|
|
936
|
+
};
|
|
937
|
+
const [open, setOpen] = React.useState(() => new Set(defaultOpen));
|
|
938
|
+
const toggleGroup = (key) => setOpen((prev) => {
|
|
939
|
+
const next = new Set(prev);
|
|
940
|
+
if (next.has(key)) next.delete(key);
|
|
941
|
+
else next.add(key);
|
|
942
|
+
return next;
|
|
943
|
+
});
|
|
944
|
+
const [hover, setHover] = React.useState(null);
|
|
945
|
+
const [logoHover, setLogoHover] = React.useState(false);
|
|
946
|
+
const [tip, setTip] = React.useState(null);
|
|
947
|
+
const showTip = (el, label, note) => {
|
|
948
|
+
if (!collapsed || !root.current) return;
|
|
949
|
+
const a = el.getBoundingClientRect();
|
|
950
|
+
const b = root.current.getBoundingClientRect();
|
|
951
|
+
setTip({ label, note, y: a.top - b.top + a.height / 2 });
|
|
952
|
+
};
|
|
953
|
+
const onKey = (e) => {
|
|
954
|
+
if (e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
|
|
955
|
+
const rows = Array.from(
|
|
956
|
+
root.current?.querySelectorAll("[data-nav-row]") ?? []
|
|
957
|
+
);
|
|
958
|
+
if (!rows.length) return;
|
|
959
|
+
e.preventDefault();
|
|
960
|
+
const at = rows.indexOf(document.activeElement);
|
|
961
|
+
const next = e.key === "ArrowDown" ? (at + 1) % rows.length : (at - 1 + rows.length) % rows.length;
|
|
962
|
+
rows[at < 0 ? 0 : next]?.focus();
|
|
963
|
+
};
|
|
964
|
+
const fade = (order2) => ({
|
|
965
|
+
animate: collapsed ? { opacity: 0, x: -6, filter: "blur(4px)" } : { opacity: 1, x: 0, filter: "blur(0px)" },
|
|
966
|
+
transition: still ? { duration: 0 } : collapsed ? { duration: 0.16, ease: "easeOut" } : { duration: 0.32, ease: GLIDE, delay: 0.1 + order2 * 0.02 }
|
|
967
|
+
});
|
|
968
|
+
const pill = (layout, tone) => /* @__PURE__ */ jsx7(
|
|
969
|
+
motion7.span,
|
|
970
|
+
{
|
|
971
|
+
layoutId: `${id}-${layout}`,
|
|
972
|
+
className: cn("absolute inset-0 rounded-xl", tone),
|
|
973
|
+
transition: still ? { duration: 0 } : PILL
|
|
974
|
+
}
|
|
975
|
+
);
|
|
976
|
+
const navRef = React.useRef(null);
|
|
977
|
+
const [more, setMore] = React.useState(false);
|
|
978
|
+
const measure = React.useCallback(() => {
|
|
979
|
+
const el = navRef.current;
|
|
980
|
+
if (el) setMore(el.scrollTop + el.clientHeight < el.scrollHeight - 4);
|
|
981
|
+
}, []);
|
|
982
|
+
React.useEffect(() => {
|
|
983
|
+
const el = navRef.current;
|
|
984
|
+
if (!el || typeof ResizeObserver === "undefined") return;
|
|
985
|
+
const ro = new ResizeObserver(measure);
|
|
986
|
+
ro.observe(el);
|
|
987
|
+
Array.from(el.children).forEach((c) => ro.observe(c));
|
|
988
|
+
return () => ro.disconnect();
|
|
989
|
+
}, [measure, sections]);
|
|
990
|
+
let order = 0;
|
|
991
|
+
return /* @__PURE__ */ jsxs7(
|
|
992
|
+
motion7.aside,
|
|
993
|
+
{
|
|
994
|
+
ref: root,
|
|
995
|
+
"aria-label": "Sidebar",
|
|
996
|
+
onKeyDown: onKey,
|
|
997
|
+
variants: still ? void 0 : CARD,
|
|
998
|
+
initial: still ? false : "hidden",
|
|
999
|
+
animate: inView || still ? "shown" : "hidden",
|
|
1000
|
+
className: cn(
|
|
1001
|
+
"relative isolate flex h-full min-h-[34rem] flex-col rounded-3xl bg-white py-3 text-[#242423] shadow-[0_1px_2px_rgba(0,0,0,0.04),0_12px_32px_-16px_rgba(0,0,0,0.18)]",
|
|
1002
|
+
className
|
|
1003
|
+
),
|
|
1004
|
+
children: [
|
|
1005
|
+
/* @__PURE__ */ jsxs7(
|
|
1006
|
+
motion7.div,
|
|
1007
|
+
{
|
|
1008
|
+
className: "flex min-h-0 flex-1 flex-col",
|
|
1009
|
+
initial: false,
|
|
1010
|
+
animate: { width: collapsed ? SLIM : WIDE },
|
|
1011
|
+
transition: FOLD(still),
|
|
1012
|
+
children: [
|
|
1013
|
+
/* @__PURE__ */ jsxs7(motion7.div, { variants: ROW, className: "relative px-3", children: [
|
|
1014
|
+
/* @__PURE__ */ jsxs7("div", { className: "flex h-10 items-center", children: [
|
|
1015
|
+
/* @__PURE__ */ jsx7(
|
|
1016
|
+
"span",
|
|
1017
|
+
{
|
|
1018
|
+
className: "grid size-10 shrink-0 place-items-center",
|
|
1019
|
+
onPointerEnter: () => setLogoHover(true),
|
|
1020
|
+
onPointerLeave: () => setLogoHover(false),
|
|
1021
|
+
children: logo ?? /* @__PURE__ */ jsx7(PinwheelMark, { turn: logoHover && !still })
|
|
1022
|
+
}
|
|
1023
|
+
),
|
|
1024
|
+
/* @__PURE__ */ jsx7("div", { className: "min-w-0 flex-1 overflow-hidden", children: /* @__PURE__ */ jsx7(
|
|
1025
|
+
motion7.span,
|
|
1026
|
+
{
|
|
1027
|
+
className: "block whitespace-nowrap pl-1 text-xl font-semibold tracking-[-0.03em]",
|
|
1028
|
+
...fade(0),
|
|
1029
|
+
children: brand
|
|
1030
|
+
}
|
|
1031
|
+
) })
|
|
1032
|
+
] }),
|
|
1033
|
+
/* @__PURE__ */ jsx7(
|
|
1034
|
+
motion7.div,
|
|
1035
|
+
{
|
|
1036
|
+
"aria-hidden": true,
|
|
1037
|
+
initial: false,
|
|
1038
|
+
animate: { height: collapsed ? 48 : 0 },
|
|
1039
|
+
transition: FOLD(still)
|
|
1040
|
+
}
|
|
1041
|
+
),
|
|
1042
|
+
/* @__PURE__ */ jsxs7(
|
|
1043
|
+
motion7.button,
|
|
1044
|
+
{
|
|
1045
|
+
type: "button",
|
|
1046
|
+
"aria-label": collapsed ? "Expand sidebar" : "Collapse sidebar",
|
|
1047
|
+
"aria-expanded": !collapsed,
|
|
1048
|
+
onClick: () => setCollapsed(!collapsed),
|
|
1049
|
+
onPointerEnter: (e) => showTip(e.currentTarget, "Expand sidebar"),
|
|
1050
|
+
onPointerLeave: () => setTip(null),
|
|
1051
|
+
onFocus: (e) => showTip(e.currentTarget, "Expand sidebar"),
|
|
1052
|
+
onBlur: () => setTip(null),
|
|
1053
|
+
initial: false,
|
|
1054
|
+
animate: {
|
|
1055
|
+
x: collapsed ? 0 : WIDE - 24 - 40,
|
|
1056
|
+
y: collapsed ? 48 : 0
|
|
1057
|
+
},
|
|
1058
|
+
whileTap: still ? void 0 : { scale: 0.92 },
|
|
1059
|
+
transition: FOLD(still),
|
|
1060
|
+
className: "absolute left-3 top-0 grid size-10 cursor-pointer place-items-center rounded-xl text-zinc-500 outline-none transition-colors hover:bg-[#242423]/[0.05] hover:text-[#242423] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[#242423]/25",
|
|
1061
|
+
children: [
|
|
1062
|
+
/* @__PURE__ */ jsx7(
|
|
1063
|
+
motion7.span,
|
|
1064
|
+
{
|
|
1065
|
+
className: "absolute inset-0 grid place-items-center",
|
|
1066
|
+
initial: false,
|
|
1067
|
+
animate: {
|
|
1068
|
+
opacity: collapsed ? 0 : 1,
|
|
1069
|
+
scale: collapsed ? 0.7 : 1
|
|
1070
|
+
},
|
|
1071
|
+
transition: { duration: still ? 0 : 0.2 },
|
|
1072
|
+
children: /* @__PURE__ */ jsx7(PanelLeftCloseIcon, { className: "size-[18px]" })
|
|
1073
|
+
}
|
|
1074
|
+
),
|
|
1075
|
+
/* @__PURE__ */ jsx7(
|
|
1076
|
+
motion7.span,
|
|
1077
|
+
{
|
|
1078
|
+
className: "absolute inset-0 grid place-items-center",
|
|
1079
|
+
initial: false,
|
|
1080
|
+
animate: {
|
|
1081
|
+
opacity: collapsed ? 1 : 0,
|
|
1082
|
+
scale: collapsed ? 1 : 0.7
|
|
1083
|
+
},
|
|
1084
|
+
transition: {
|
|
1085
|
+
duration: still ? 0 : 0.2,
|
|
1086
|
+
delay: collapsed && !still ? 0.2 : 0
|
|
1087
|
+
},
|
|
1088
|
+
children: /* @__PURE__ */ jsx7(PanelLeftOpenIcon, { className: "size-[18px]" })
|
|
1089
|
+
}
|
|
1090
|
+
)
|
|
1091
|
+
]
|
|
1092
|
+
}
|
|
1093
|
+
)
|
|
1094
|
+
] }),
|
|
1095
|
+
/* @__PURE__ */ jsx7(
|
|
1096
|
+
"nav",
|
|
1097
|
+
{
|
|
1098
|
+
ref: navRef,
|
|
1099
|
+
"aria-label": "Main",
|
|
1100
|
+
onPointerLeave: () => {
|
|
1101
|
+
setHover(null);
|
|
1102
|
+
setTip(null);
|
|
1103
|
+
},
|
|
1104
|
+
onScroll: () => {
|
|
1105
|
+
setTip(null);
|
|
1106
|
+
measure();
|
|
1107
|
+
},
|
|
1108
|
+
className: cn(
|
|
1109
|
+
"mt-2 min-h-0 flex-1 overflow-y-auto overflow-x-hidden px-3 pb-2 [scrollbar-width:none]",
|
|
1110
|
+
more && "[mask-image:linear-gradient(to_bottom,black_calc(100%-40px),transparent)]"
|
|
1111
|
+
),
|
|
1112
|
+
children: sections.map((section, si) => /* @__PURE__ */ jsxs7("div", { className: "pt-2", children: [
|
|
1113
|
+
section.label !== void 0 && /* @__PURE__ */ jsxs7(
|
|
1114
|
+
motion7.div,
|
|
1115
|
+
{
|
|
1116
|
+
variants: ROW,
|
|
1117
|
+
className: "relative h-8",
|
|
1118
|
+
onPointerEnter: () => {
|
|
1119
|
+
setHover(null);
|
|
1120
|
+
setTip(null);
|
|
1121
|
+
},
|
|
1122
|
+
children: [
|
|
1123
|
+
/* @__PURE__ */ jsx7(
|
|
1124
|
+
motion7.p,
|
|
1125
|
+
{
|
|
1126
|
+
className: "absolute bottom-2 left-3 whitespace-nowrap text-xs font-medium text-zinc-400",
|
|
1127
|
+
...fade(order++),
|
|
1128
|
+
children: section.label
|
|
1129
|
+
}
|
|
1130
|
+
),
|
|
1131
|
+
/* @__PURE__ */ jsx7(
|
|
1132
|
+
motion7.span,
|
|
1133
|
+
{
|
|
1134
|
+
"aria-hidden": true,
|
|
1135
|
+
className: "absolute bottom-3.5 left-3 h-px w-4 rounded-full bg-[#242423]/15",
|
|
1136
|
+
initial: false,
|
|
1137
|
+
animate: {
|
|
1138
|
+
opacity: collapsed ? 1 : 0,
|
|
1139
|
+
scaleX: collapsed ? 1 : 0.2
|
|
1140
|
+
},
|
|
1141
|
+
transition: {
|
|
1142
|
+
duration: still ? 0 : 0.3,
|
|
1143
|
+
ease: GLIDE,
|
|
1144
|
+
delay: collapsed && !still ? 0.15 : 0
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
)
|
|
1148
|
+
]
|
|
1149
|
+
}
|
|
1150
|
+
),
|
|
1151
|
+
section.items.map((item) => {
|
|
1152
|
+
const Icon = ICONS[item.icon];
|
|
1153
|
+
const kids = item.children ?? [];
|
|
1154
|
+
const groupOpen = kids.length > 0 && open.has(item.id);
|
|
1155
|
+
const childActive = kids.some((k) => k.id === value);
|
|
1156
|
+
const active = value === item.id || childActive && (collapsed || !groupOpen);
|
|
1157
|
+
const lit = active || hover === item.id;
|
|
1158
|
+
const note = item.badge ? `${item.badge} new` : kids.length ? `${kids.length} pages` : item.tag;
|
|
1159
|
+
const rowOrder = order++;
|
|
1160
|
+
return /* @__PURE__ */ jsxs7(motion7.div, { variants: ROW, children: [
|
|
1161
|
+
/* @__PURE__ */ jsxs7(
|
|
1162
|
+
motion7.button,
|
|
1163
|
+
{
|
|
1164
|
+
type: "button",
|
|
1165
|
+
"data-nav-row": true,
|
|
1166
|
+
"aria-current": value === item.id ? "page" : void 0,
|
|
1167
|
+
"aria-expanded": kids.length ? groupOpen && !collapsed : void 0,
|
|
1168
|
+
onPointerEnter: (e) => {
|
|
1169
|
+
setHover(item.id);
|
|
1170
|
+
showTip(e.currentTarget, item.label, note);
|
|
1171
|
+
},
|
|
1172
|
+
onFocus: (e) => {
|
|
1173
|
+
setHover(item.id);
|
|
1174
|
+
showTip(e.currentTarget, item.label, note);
|
|
1175
|
+
},
|
|
1176
|
+
onBlur: () => setTip(null),
|
|
1177
|
+
onClick: () => {
|
|
1178
|
+
if (!kids.length) return go(item.id);
|
|
1179
|
+
if (collapsed) {
|
|
1180
|
+
setOpen((p) => new Set(p).add(item.id));
|
|
1181
|
+
setCollapsed(false);
|
|
1182
|
+
} else toggleGroup(item.id);
|
|
1183
|
+
},
|
|
1184
|
+
whileTap: still ? void 0 : { scale: 0.97 },
|
|
1185
|
+
className: "relative flex h-10 w-full cursor-pointer items-center rounded-xl text-left text-sm font-medium outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[#242423]/25",
|
|
1186
|
+
children: [
|
|
1187
|
+
active && pill("active", "bg-[#242423]/[0.06]"),
|
|
1188
|
+
hover === item.id && !active && pill("hover", "bg-[#242423]/[0.035]"),
|
|
1189
|
+
/* @__PURE__ */ jsxs7(
|
|
1190
|
+
"span",
|
|
1191
|
+
{
|
|
1192
|
+
className: cn(
|
|
1193
|
+
"relative grid size-10 shrink-0 place-items-center transition-colors duration-200",
|
|
1194
|
+
lit ? "text-[#242423]" : "text-zinc-500"
|
|
1195
|
+
),
|
|
1196
|
+
children: [
|
|
1197
|
+
/* @__PURE__ */ jsx7(
|
|
1198
|
+
Icon,
|
|
1199
|
+
{
|
|
1200
|
+
className: "size-[18px]",
|
|
1201
|
+
active: hover === item.id
|
|
1202
|
+
}
|
|
1203
|
+
),
|
|
1204
|
+
item.badge ? /* @__PURE__ */ jsx7(
|
|
1205
|
+
motion7.span,
|
|
1206
|
+
{
|
|
1207
|
+
"aria-hidden": true,
|
|
1208
|
+
className: "absolute right-2 top-2 size-2 rounded-full bg-[#242423] ring-2 ring-white",
|
|
1209
|
+
initial: false,
|
|
1210
|
+
animate: {
|
|
1211
|
+
scale: collapsed ? 1 : 0,
|
|
1212
|
+
opacity: collapsed ? 1 : 0
|
|
1213
|
+
},
|
|
1214
|
+
transition: still ? { duration: 0 } : collapsed ? {
|
|
1215
|
+
type: "spring",
|
|
1216
|
+
stiffness: 500,
|
|
1217
|
+
damping: 22,
|
|
1218
|
+
delay: 0.25
|
|
1219
|
+
} : { duration: 0.12 }
|
|
1220
|
+
}
|
|
1221
|
+
) : null
|
|
1222
|
+
]
|
|
1223
|
+
}
|
|
1224
|
+
),
|
|
1225
|
+
/* @__PURE__ */ jsx7("span", { className: "relative min-w-0 flex-1 self-stretch overflow-hidden", children: /* @__PURE__ */ jsxs7(
|
|
1226
|
+
motion7.span,
|
|
1227
|
+
{
|
|
1228
|
+
className: "flex h-full items-center gap-2 pr-2",
|
|
1229
|
+
style: { width: LABEL_W },
|
|
1230
|
+
...fade(rowOrder),
|
|
1231
|
+
children: [
|
|
1232
|
+
/* @__PURE__ */ jsx7(
|
|
1233
|
+
"span",
|
|
1234
|
+
{
|
|
1235
|
+
className: cn(
|
|
1236
|
+
"min-w-0 flex-1 truncate transition-colors duration-200",
|
|
1237
|
+
lit ? "text-[#242423]" : "text-zinc-600"
|
|
1238
|
+
),
|
|
1239
|
+
children: item.label
|
|
1240
|
+
}
|
|
1241
|
+
),
|
|
1242
|
+
item.tag && /* @__PURE__ */ jsx7("span", { className: "grid h-5 place-items-center rounded-full bg-[#269a5a]/10 px-2 text-xs font-medium text-[#269a5a]", children: item.tag }),
|
|
1243
|
+
item.badge ? /* @__PURE__ */ jsx7(
|
|
1244
|
+
motion7.span,
|
|
1245
|
+
{
|
|
1246
|
+
className: "grid h-5 min-w-5 place-items-center rounded-full bg-[#242423] px-1.5 text-xs font-medium tabular-nums text-white",
|
|
1247
|
+
animate: {
|
|
1248
|
+
scale: hover === item.id && !still ? [1, 1.18, 1] : 1
|
|
1249
|
+
},
|
|
1250
|
+
transition: { duration: 0.35 },
|
|
1251
|
+
children: item.badge
|
|
1252
|
+
}
|
|
1253
|
+
) : null,
|
|
1254
|
+
kids.length > 0 && /* @__PURE__ */ jsx7(
|
|
1255
|
+
motion7.span,
|
|
1256
|
+
{
|
|
1257
|
+
className: "grid size-5 place-items-center text-zinc-400",
|
|
1258
|
+
animate: { rotate: groupOpen ? 0 : -90 },
|
|
1259
|
+
transition: still ? { duration: 0 } : { duration: 0.3, ease: GLIDE },
|
|
1260
|
+
children: /* @__PURE__ */ jsx7(
|
|
1261
|
+
ChevronDownIcon,
|
|
1262
|
+
{
|
|
1263
|
+
className: "size-4",
|
|
1264
|
+
active: false
|
|
1265
|
+
}
|
|
1266
|
+
)
|
|
1267
|
+
}
|
|
1268
|
+
)
|
|
1269
|
+
]
|
|
1270
|
+
}
|
|
1271
|
+
) })
|
|
1272
|
+
]
|
|
1273
|
+
}
|
|
1274
|
+
),
|
|
1275
|
+
/* @__PURE__ */ jsx7(AnimatePresence, { initial: false, children: groupOpen && !collapsed && /* @__PURE__ */ jsxs7(
|
|
1276
|
+
motion7.div,
|
|
1277
|
+
{
|
|
1278
|
+
initial: { height: 0, opacity: 0 },
|
|
1279
|
+
animate: { height: "auto", opacity: 1 },
|
|
1280
|
+
exit: { height: 0, opacity: 0 },
|
|
1281
|
+
transition: {
|
|
1282
|
+
duration: still ? 0 : 0.32,
|
|
1283
|
+
ease: GLIDE
|
|
1284
|
+
},
|
|
1285
|
+
className: "relative overflow-hidden",
|
|
1286
|
+
children: [
|
|
1287
|
+
/* @__PURE__ */ jsx7(
|
|
1288
|
+
motion7.span,
|
|
1289
|
+
{
|
|
1290
|
+
"aria-hidden": true,
|
|
1291
|
+
className: "absolute bottom-3 left-[19.5px] top-0 w-px origin-top bg-[#242423]/10",
|
|
1292
|
+
initial: { scaleY: 0 },
|
|
1293
|
+
animate: { scaleY: 1 },
|
|
1294
|
+
transition: {
|
|
1295
|
+
duration: still ? 0 : 0.4,
|
|
1296
|
+
ease: GLIDE,
|
|
1297
|
+
delay: still ? 0 : 0.05
|
|
1298
|
+
}
|
|
1299
|
+
}
|
|
1300
|
+
),
|
|
1301
|
+
/* @__PURE__ */ jsx7("div", { className: "py-0.5", children: kids.map((kid, ki) => {
|
|
1302
|
+
const on = value === kid.id;
|
|
1303
|
+
const key = `${item.id}/${kid.id}`;
|
|
1304
|
+
return /* @__PURE__ */ jsxs7(
|
|
1305
|
+
motion7.button,
|
|
1306
|
+
{
|
|
1307
|
+
type: "button",
|
|
1308
|
+
"data-nav-row": true,
|
|
1309
|
+
"aria-current": on ? "page" : void 0,
|
|
1310
|
+
initial: { opacity: 0, x: -6 },
|
|
1311
|
+
animate: { opacity: 1, x: 0 },
|
|
1312
|
+
transition: {
|
|
1313
|
+
duration: still ? 0 : 0.28,
|
|
1314
|
+
ease: GLIDE,
|
|
1315
|
+
delay: still ? 0 : 0.06 + ki * 0.04
|
|
1316
|
+
},
|
|
1317
|
+
onPointerEnter: () => setHover(key),
|
|
1318
|
+
onFocus: () => setHover(key),
|
|
1319
|
+
onClick: () => go(kid.id),
|
|
1320
|
+
className: "relative flex h-9 w-full cursor-pointer items-center rounded-xl pl-10 pr-2 text-left text-sm font-medium outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[#242423]/25",
|
|
1321
|
+
children: [
|
|
1322
|
+
on && pill("active", "bg-[#242423]/[0.06]"),
|
|
1323
|
+
hover === key && !on && pill("hover", "bg-[#242423]/[0.035]"),
|
|
1324
|
+
on && /* @__PURE__ */ jsx7(
|
|
1325
|
+
motion7.span,
|
|
1326
|
+
{
|
|
1327
|
+
layoutId: `${id}-tick`,
|
|
1328
|
+
"aria-hidden": true,
|
|
1329
|
+
className: "absolute left-[18.5px] top-1/2 h-4 w-[3px] -translate-y-1/2 rounded-full bg-[#242423]",
|
|
1330
|
+
transition: still ? { duration: 0 } : PILL
|
|
1331
|
+
}
|
|
1332
|
+
),
|
|
1333
|
+
/* @__PURE__ */ jsx7(
|
|
1334
|
+
"span",
|
|
1335
|
+
{
|
|
1336
|
+
className: cn(
|
|
1337
|
+
"relative min-w-0 flex-1 truncate transition-colors duration-200",
|
|
1338
|
+
on || hover === key ? "text-[#242423]" : "text-zinc-500"
|
|
1339
|
+
),
|
|
1340
|
+
children: kid.label
|
|
1341
|
+
}
|
|
1342
|
+
),
|
|
1343
|
+
kid.badge ? /* @__PURE__ */ jsx7("span", { className: "relative text-xs font-medium tabular-nums text-zinc-400", children: kid.badge }) : null
|
|
1344
|
+
]
|
|
1345
|
+
},
|
|
1346
|
+
kid.id
|
|
1347
|
+
);
|
|
1348
|
+
}) })
|
|
1349
|
+
]
|
|
1350
|
+
},
|
|
1351
|
+
"kids"
|
|
1352
|
+
) })
|
|
1353
|
+
] }, item.id);
|
|
1354
|
+
})
|
|
1355
|
+
] }, section.label ?? si))
|
|
1356
|
+
}
|
|
1357
|
+
),
|
|
1358
|
+
/* @__PURE__ */ jsxs7(motion7.div, { variants: ROW, children: [
|
|
1359
|
+
/* @__PURE__ */ jsx7("div", { "aria-hidden": true, className: "mb-3 h-px bg-[#242423]/[0.07]" }),
|
|
1360
|
+
/* @__PURE__ */ jsxs7("div", { className: "flex h-10 items-center px-3", children: [
|
|
1361
|
+
/* @__PURE__ */ jsxs7(
|
|
1362
|
+
"span",
|
|
1363
|
+
{
|
|
1364
|
+
className: "relative grid size-10 shrink-0 place-items-center",
|
|
1365
|
+
onPointerEnter: (e) => showTip(e.currentTarget, user.name, user.email),
|
|
1366
|
+
onPointerLeave: () => setTip(null),
|
|
1367
|
+
children: [
|
|
1368
|
+
user.avatar ? /* @__PURE__ */ jsx7(
|
|
1369
|
+
"img",
|
|
1370
|
+
{
|
|
1371
|
+
src: user.avatar,
|
|
1372
|
+
alt: "",
|
|
1373
|
+
draggable: false,
|
|
1374
|
+
className: "size-8 rounded-full object-cover"
|
|
1375
|
+
}
|
|
1376
|
+
) : /* @__PURE__ */ jsx7("span", { className: "grid size-8 place-items-center rounded-full bg-[#242423]/[0.06] text-xs font-semibold", children: initialsOf(user.name) }),
|
|
1377
|
+
/* @__PURE__ */ jsx7("span", { className: "absolute bottom-1 right-1 size-2.5 rounded-full bg-[#269a5a] ring-2 ring-white" })
|
|
1378
|
+
]
|
|
1379
|
+
}
|
|
1380
|
+
),
|
|
1381
|
+
/* @__PURE__ */ jsx7("div", { className: "min-w-0 flex-1 overflow-hidden", children: /* @__PURE__ */ jsxs7(
|
|
1382
|
+
motion7.div,
|
|
1383
|
+
{
|
|
1384
|
+
className: "flex items-center gap-2 pl-1.5",
|
|
1385
|
+
style: { width: LABEL_W - 4 },
|
|
1386
|
+
...fade(order++),
|
|
1387
|
+
children: [
|
|
1388
|
+
/* @__PURE__ */ jsxs7("span", { className: "min-w-0 flex-1 leading-tight", children: [
|
|
1389
|
+
/* @__PURE__ */ jsx7("span", { className: "block truncate text-sm font-medium", children: user.name }),
|
|
1390
|
+
user.email && /* @__PURE__ */ jsx7("span", { className: "block truncate text-xs text-zinc-500", children: user.email })
|
|
1391
|
+
] }),
|
|
1392
|
+
/* @__PURE__ */ jsx7(
|
|
1393
|
+
motion7.button,
|
|
1394
|
+
{
|
|
1395
|
+
type: "button",
|
|
1396
|
+
"aria-label": "Settings",
|
|
1397
|
+
tabIndex: collapsed ? -1 : 0,
|
|
1398
|
+
onClick: onSettings,
|
|
1399
|
+
whileTap: still ? void 0 : { scale: 0.9 },
|
|
1400
|
+
className: "grid size-8 cursor-pointer place-items-center rounded-full text-zinc-500 outline-none transition-colors hover:bg-[#242423]/[0.06] hover:text-[#242423] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[#242423]/30",
|
|
1401
|
+
children: /* @__PURE__ */ jsx7(SettingsIcon, { className: "size-[18px]" })
|
|
1402
|
+
}
|
|
1403
|
+
)
|
|
1404
|
+
]
|
|
1405
|
+
}
|
|
1406
|
+
) })
|
|
1407
|
+
] })
|
|
1408
|
+
] })
|
|
1409
|
+
]
|
|
1410
|
+
}
|
|
1411
|
+
),
|
|
1412
|
+
/* @__PURE__ */ jsx7(AnimatePresence, { children: collapsed && tip && /* @__PURE__ */ jsx7(
|
|
1413
|
+
motion7.div,
|
|
1414
|
+
{
|
|
1415
|
+
className: "pointer-events-none absolute top-0 z-20",
|
|
1416
|
+
style: { left: SLIM + 8 },
|
|
1417
|
+
initial: { opacity: 0, x: -6, y: tip.y, scale: 0.96 },
|
|
1418
|
+
animate: { opacity: 1, x: 0, y: tip.y, scale: 1 },
|
|
1419
|
+
exit: {
|
|
1420
|
+
opacity: 0,
|
|
1421
|
+
x: -4,
|
|
1422
|
+
scale: 0.97,
|
|
1423
|
+
transition: { duration: 0.12 }
|
|
1424
|
+
},
|
|
1425
|
+
transition: still ? { duration: 0 } : {
|
|
1426
|
+
...TIP,
|
|
1427
|
+
opacity: { duration: 0.15 },
|
|
1428
|
+
x: { duration: 0.2, ease: GLIDE }
|
|
1429
|
+
},
|
|
1430
|
+
children: /* @__PURE__ */ jsx7(
|
|
1431
|
+
"div",
|
|
1432
|
+
{
|
|
1433
|
+
role: "tooltip",
|
|
1434
|
+
className: "flex -translate-y-1/2 items-center gap-2 whitespace-nowrap rounded-xl bg-[#242423] px-3 py-1.5 text-sm font-medium text-white shadow-[0_8px_24px_-8px_rgba(0,0,0,0.35)]",
|
|
1435
|
+
children: /* @__PURE__ */ jsx7(AnimatePresence, { mode: "popLayout", initial: false, children: /* @__PURE__ */ jsxs7(
|
|
1436
|
+
motion7.span,
|
|
1437
|
+
{
|
|
1438
|
+
className: "flex items-center gap-2",
|
|
1439
|
+
initial: { opacity: 0, filter: "blur(3px)" },
|
|
1440
|
+
animate: { opacity: 1, filter: "blur(0px)" },
|
|
1441
|
+
exit: { opacity: 0, filter: "blur(3px)" },
|
|
1442
|
+
transition: { duration: still ? 0 : 0.16 },
|
|
1443
|
+
children: [
|
|
1444
|
+
tip.label,
|
|
1445
|
+
tip.note && /* @__PURE__ */ jsx7("span", { className: "text-xs font-normal text-white/60", children: tip.note })
|
|
1446
|
+
]
|
|
1447
|
+
},
|
|
1448
|
+
tip.label
|
|
1449
|
+
) })
|
|
1450
|
+
}
|
|
1451
|
+
)
|
|
1452
|
+
}
|
|
1453
|
+
) })
|
|
1454
|
+
]
|
|
1455
|
+
}
|
|
1456
|
+
);
|
|
1457
|
+
}
|
|
1458
|
+
);
|
|
1459
|
+
|
|
1460
|
+
export {
|
|
1461
|
+
SidebarNav
|
|
1462
|
+
};
|