motion-brew 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +106 -2
- package/dist/account-menu.d.ts +1 -0
- package/dist/account-menu.js +16 -0
- package/dist/action-menu.d.ts +1 -0
- package/dist/action-menu.js +10 -0
- package/dist/activity-grid.d.ts +1 -0
- package/dist/activity-grid.js +14 -0
- package/dist/add-card.d.ts +1 -0
- package/dist/add-card.js +11 -0
- package/dist/amount-slider.d.ts +1 -0
- package/dist/amount-slider.js +10 -0
- package/dist/annotation-text.d.ts +1 -0
- package/dist/annotation-text.js +8 -0
- package/dist/aura-card.d.ts +1 -0
- package/dist/aura-card.js +19 -0
- package/dist/auth-card.d.ts +1 -0
- package/dist/auth-card.js +15 -0
- package/dist/avatar-testimonial.d.ts +1 -0
- package/dist/avatar-testimonial.js +8 -0
- package/dist/backspace-text.d.ts +1 -0
- package/dist/backspace-text.js +8 -0
- package/dist/bell-toggle.d.ts +1 -0
- package/dist/bell-toggle.js +8 -0
- package/dist/bill-list.d.ts +1 -0
- package/dist/bill-list.js +15 -0
- package/dist/binary-text.d.ts +1 -0
- package/dist/binary-text.js +8 -0
- package/dist/blur-accordion.d.ts +1 -0
- package/dist/blur-accordion.js +8 -0
- package/dist/blur-text.d.ts +1 -0
- package/dist/blur-text.js +8 -0
- package/dist/booking-card.d.ts +1 -0
- package/dist/booking-card.js +11 -0
- package/dist/brand-bridge.d.ts +1 -0
- package/dist/brand-bridge.js +12 -0
- package/dist/calendar-agenda.d.ts +1 -0
- package/dist/calendar-agenda.js +12 -0
- package/dist/channel-mix.d.ts +1 -0
- package/dist/channel-mix.js +11 -0
- package/dist/chunk-25254AZA.js +141 -0
- package/dist/chunk-2CIJ5TVW.js +59 -0
- package/dist/chunk-2GXY54MP.js +247 -0
- package/dist/chunk-2IMPUH4H.js +135 -0
- package/dist/chunk-2NRXP4HM.js +371 -0
- package/dist/chunk-2QCWELWT.js +120 -0
- package/dist/chunk-2TQSHVXA.js +12 -0
- package/dist/chunk-327TGRS5.js +75 -0
- package/dist/chunk-3B2RYSTL.js +867 -0
- package/dist/chunk-3RKCLFY5.js +634 -0
- package/dist/chunk-4BVCRIR4.js +51 -0
- package/dist/chunk-4CKKTOJK.js +366 -0
- package/dist/chunk-4IGMH34C.js +319 -0
- package/dist/chunk-4PI6UNIZ.js +464 -0
- package/dist/chunk-4RHQKP2P.js +664 -0
- package/dist/chunk-5MP5QNFG.js +560 -0
- package/dist/chunk-62RBYLIN.js +128 -0
- package/dist/chunk-6GAKTS3D.js +329 -0
- package/dist/chunk-6GRDT3OE.js +124 -0
- package/dist/chunk-6JQY7AX5.js +307 -0
- package/dist/chunk-6LOUA6XB.js +237 -0
- package/dist/chunk-6V6OTHNE.js +299 -0
- package/dist/chunk-6VZIT62Q.js +142 -0
- package/dist/chunk-6WSY725U.js +387 -0
- package/dist/chunk-6XSJC7M7.js +764 -0
- package/dist/chunk-75DEIDBX.js +129 -0
- package/dist/chunk-7FQ4XU7E.js +127 -0
- package/dist/chunk-7IL5WRJR.js +615 -0
- package/dist/chunk-7MPC3RUE.js +1462 -0
- package/dist/chunk-7PS2W7PU.js +112 -0
- package/dist/chunk-AATJOPNH.js +86 -0
- package/dist/chunk-ADXWPWJR.js +209 -0
- package/dist/chunk-ANNDITUM.js +47 -0
- package/dist/chunk-AQN6BHWC.js +325 -0
- package/dist/chunk-AVOS73MR.js +537 -0
- package/dist/chunk-B4LNE6YK.js +473 -0
- package/dist/chunk-BHUNLG6S.js +142 -0
- package/dist/chunk-BN4MA5UY.js +127 -0
- package/dist/chunk-BPE43MTT.js +183 -0
- package/dist/chunk-BPF3FQRS.js +590 -0
- package/dist/chunk-BRTZFUFR.js +503 -0
- package/dist/chunk-BS4ZFJKW.js +121 -0
- package/dist/chunk-BXAKCY6X.js +86 -0
- package/dist/chunk-CEQ56RF6.js +129 -0
- package/dist/chunk-CGDKH6BB.js +902 -0
- package/dist/chunk-CMTGYFT7.js +395 -0
- package/dist/chunk-COKBF5PG.js +3291 -0
- package/dist/chunk-DD55JZOI.js +257 -0
- package/dist/chunk-DQUXBNSH.js +412 -0
- package/dist/chunk-DR4DUSNF.js +265 -0
- package/dist/chunk-EDPCK6VU.js +419 -0
- package/dist/chunk-EEQ2WHTN.js +142 -0
- package/dist/chunk-ERVE5RSN.js +793 -0
- package/dist/chunk-FFUBTMDC.js +303 -0
- package/dist/chunk-FK4TZ5OW.js +29 -0
- package/dist/chunk-FXI6NHNR.js +1033 -0
- package/dist/chunk-G3XH7YT2.js +122 -0
- package/dist/chunk-G7KDH7ME.js +559 -0
- package/dist/chunk-GRUDTDLX.js +534 -0
- package/dist/chunk-GUQINNWS.js +770 -0
- package/dist/chunk-GV3Q4D2N.js +320 -0
- package/dist/chunk-GVWOJJ3T.js +129 -0
- package/dist/chunk-GYDTIVOY.js +934 -0
- package/dist/chunk-H2JOCJWM.js +125 -0
- package/dist/chunk-H7XKIWHA.js +135 -0
- package/dist/chunk-HHXK3NAH.js +1382 -0
- package/dist/chunk-HK34LPY6.js +112 -0
- package/dist/chunk-HLJXNSMM.js +320 -0
- package/dist/chunk-HPJJAQ5L.js +406 -0
- package/dist/chunk-HYSXVKZB.js +213 -0
- package/dist/chunk-I45D4XV4.js +124 -0
- package/dist/chunk-I7KTTOOJ.js +113 -0
- package/dist/chunk-IDJOKV6S.js +67 -0
- package/dist/chunk-IGI6OLRX.js +138 -0
- package/dist/chunk-IKM7EEYN.js +117 -0
- package/dist/chunk-INV5FI6O.js +394 -0
- package/dist/chunk-IUBUAIQZ.js +321 -0
- package/dist/chunk-IYZOANPX.js +159 -0
- package/dist/chunk-JFTD3YAL.js +163 -0
- package/dist/chunk-JGEV462J.js +235 -0
- package/dist/chunk-JHT6RCGY.js +127 -0
- package/dist/chunk-JJEWOQYQ.js +141 -0
- package/dist/chunk-JT2EIO5M.js +129 -0
- package/dist/chunk-K3HQEHJ6.js +663 -0
- package/dist/chunk-K6ET254T.js +398 -0
- package/dist/chunk-KE563QS4.js +425 -0
- package/dist/chunk-LBRMNY72.js +159 -0
- package/dist/chunk-LNBTWX4J.js +114 -0
- package/dist/chunk-LS4FP6SI.js +37 -0
- package/dist/chunk-M22UY764.js +135 -0
- package/dist/chunk-M4YMNHPI.js +204 -0
- package/dist/chunk-MGBS5LRY.js +412 -0
- package/dist/chunk-MKJOBHPQ.js +215 -0
- package/dist/chunk-MQDOFNKI.js +818 -0
- package/dist/chunk-MUDKP3LK.js +120 -0
- package/dist/chunk-N4ZNBWKO.js +118 -0
- package/dist/chunk-NB5CB65C.js +137 -0
- package/dist/chunk-NCEAUODT.js +172 -0
- package/dist/chunk-NGX34WJO.js +335 -0
- package/dist/chunk-NIQFSLPC.js +114 -0
- package/dist/chunk-NJWTPRGJ.js +806 -0
- package/dist/chunk-NNKC6NEH.js +128 -0
- package/dist/chunk-NY7M42KC.js +112 -0
- package/dist/chunk-O7G4ISAC.js +277 -0
- package/dist/chunk-O7QYPA6X.js +700 -0
- package/dist/chunk-OEDHLZ4T.js +651 -0
- package/dist/chunk-OGQQ2FZZ.js +114 -0
- package/dist/chunk-OINRQUYT.js +186 -0
- package/dist/chunk-OMJBDFEW.js +506 -0
- package/dist/chunk-ONUWTWKP.js +345 -0
- package/dist/chunk-OS6REIBR.js +154 -0
- package/dist/chunk-OUVP5VKH.js +702 -0
- package/dist/chunk-OVEBMZHA.js +573 -0
- package/dist/chunk-PFEHD3A2.js +409 -0
- package/dist/chunk-PJ5EVDNN.js +157 -0
- package/dist/chunk-PKM6B4JJ.js +108 -0
- package/dist/chunk-PV3OYTMT.js +596 -0
- package/dist/chunk-RBSLSNMW.js +444 -0
- package/dist/chunk-RE74K7KI.js +370 -0
- package/dist/chunk-RP22J4NX.js +247 -0
- package/dist/chunk-RU2Q2XVP.js +287 -0
- package/dist/chunk-RWUARRFZ.js +267 -0
- package/dist/chunk-RZ2UCZ3C.js +212 -0
- package/dist/chunk-SBDTC4UY.js +367 -0
- package/dist/chunk-SKEE23KW.js +137 -0
- package/dist/chunk-SOW7S7ET.js +1103 -0
- package/dist/chunk-SQ7F3VBU.js +1069 -0
- package/dist/chunk-SSWKGVRI.js +172 -0
- package/dist/chunk-T2TSMDP3.js +1022 -0
- package/dist/chunk-TAFVHTWV.js +607 -0
- package/dist/chunk-TNLY4CSA.js +523 -0
- package/dist/chunk-TP3XIHL5.js +787 -0
- package/dist/chunk-TQ6KSDDE.js +682 -0
- package/dist/chunk-TRWXLGL7.js +885 -0
- package/dist/chunk-TTNORJF5.js +908 -0
- package/dist/chunk-UD5OQ2T3.js +117 -0
- package/dist/chunk-UDFBQWUH.js +333 -0
- package/dist/chunk-USRMXCZD.js +625 -0
- package/dist/chunk-VAPHE4G4.js +442 -0
- package/dist/chunk-VEC5QAOY.js +104 -0
- package/dist/chunk-VIR5NV5W.js +118 -0
- package/dist/chunk-VT2FNWQF.js +240 -0
- package/dist/chunk-VX4XEYQN.js +837 -0
- package/dist/chunk-WE7VCUOA.js +130 -0
- package/dist/chunk-WFWO2EIW.js +120 -0
- package/dist/chunk-WGIT4MMH.js +350 -0
- package/dist/chunk-WOR2GMMN.js +114 -0
- package/dist/chunk-WTTDB475.js +54 -0
- package/dist/chunk-WWWKMU4Y.js +184 -0
- package/dist/chunk-XDR4FO6Q.js +124 -0
- package/dist/chunk-XH6YNONO.js +112 -0
- package/dist/chunk-XL4L2J6N.js +129 -0
- package/dist/chunk-Y6MTC46Q.js +684 -0
- package/dist/chunk-YFLQ4HPJ.js +119 -0
- package/dist/chunk-YGONLKWH.js +180 -0
- package/dist/chunk-YLSWBUDC.js +373 -0
- package/dist/chunk-YU6B7YRO.js +128 -0
- package/dist/chunk-YURGXJSP.js +102 -0
- package/dist/chunk-YVYYDPE2.js +124 -0
- package/dist/chunk-ZPGAMYOQ.js +1 -0
- package/dist/chunk-ZWGOAY27.js +234 -0
- package/dist/column-card.d.ts +1 -0
- package/dist/column-card.js +8 -0
- package/dist/components/account-menu/account-menu.d.ts +56 -0
- package/dist/components/account-menu/index.d.ts +1 -0
- package/dist/components/action-menu/action-menu.d.ts +45 -0
- package/dist/components/action-menu/index.d.ts +1 -0
- package/dist/components/activity-grid/activity-grid.d.ts +54 -0
- package/dist/components/activity-grid/index.d.ts +1 -0
- package/dist/components/add-card/add-card.d.ts +41 -0
- package/dist/components/add-card/index.d.ts +1 -0
- package/dist/components/amount-slider/amount-slider.d.ts +43 -0
- package/dist/components/amount-slider/index.d.ts +1 -0
- package/dist/components/annotation-text/annotation-text.d.ts +27 -0
- package/dist/components/annotation-text/index.d.ts +1 -0
- package/dist/components/aura-card/aura-card.d.ts +63 -0
- package/dist/components/aura-card/index.d.ts +1 -0
- package/dist/components/auth-card/auth-card.d.ts +51 -0
- package/dist/components/auth-card/index.d.ts +1 -0
- package/dist/components/avatar-testimonial/avatar-testimonial.d.ts +39 -0
- package/dist/components/avatar-testimonial/index.d.ts +1 -0
- package/dist/components/backspace-text/backspace-text.d.ts +27 -0
- package/dist/components/backspace-text/index.d.ts +1 -0
- package/dist/components/bell-toggle/bell-toggle.d.ts +33 -0
- package/dist/components/bell-toggle/index.d.ts +1 -0
- package/dist/components/bill-list/bill-list.d.ts +49 -0
- package/dist/components/bill-list/index.d.ts +1 -0
- package/dist/components/binary-text/binary-text.d.ts +24 -0
- package/dist/components/binary-text/index.d.ts +1 -0
- package/dist/components/blur-accordion/blur-accordion.d.ts +35 -0
- package/dist/components/blur-accordion/index.d.ts +1 -0
- package/dist/components/blur-text/blur-text.d.ts +33 -0
- package/dist/components/blur-text/index.d.ts +1 -0
- package/dist/components/booking-card/booking-card.d.ts +56 -0
- package/dist/components/booking-card/index.d.ts +1 -0
- package/dist/components/brand-bridge/brand-bridge.d.ts +63 -0
- package/dist/components/brand-bridge/index.d.ts +1 -0
- package/dist/components/calendar-agenda/calendar-agenda.d.ts +64 -0
- package/dist/components/calendar-agenda/index.d.ts +1 -0
- package/dist/components/channel-mix/channel-mix.d.ts +63 -0
- package/dist/components/channel-mix/index.d.ts +1 -0
- package/dist/components/column-card/column-card.d.ts +39 -0
- package/dist/components/column-card/index.d.ts +1 -0
- package/dist/components/contact-card/contact-card.d.ts +44 -0
- package/dist/components/contact-card/index.d.ts +1 -0
- package/dist/components/context-menu/context-menu.d.ts +59 -0
- package/dist/components/context-menu/index.d.ts +1 -0
- package/dist/components/contour-feature-card/contour-feature-card.d.ts +36 -0
- package/dist/components/contour-feature-card/index.d.ts +1 -0
- package/dist/components/contour-lines/contour-lines.d.ts +34 -0
- package/dist/components/contour-lines/index.d.ts +1 -0
- package/dist/components/decay-card/decay-card.d.ts +44 -0
- package/dist/components/decay-card/index.d.ts +1 -0
- package/dist/components/deploy-streak/deploy-streak.d.ts +30 -0
- package/dist/components/deploy-streak/index.d.ts +1 -0
- package/dist/components/depth-carousel/depth-carousel.d.ts +42 -0
- package/dist/components/depth-carousel/index.d.ts +1 -0
- package/dist/components/device-traffic/device-traffic.d.ts +59 -0
- package/dist/components/device-traffic/index.d.ts +1 -0
- package/dist/components/download-button/download-button.d.ts +36 -0
- package/dist/components/download-button/index.d.ts +1 -0
- package/dist/components/event-card/event-card.d.ts +55 -0
- package/dist/components/event-card/index.d.ts +1 -0
- package/dist/components/file-drop/file-drop.d.ts +46 -0
- package/dist/components/file-drop/index.d.ts +1 -0
- package/dist/components/flip-words/flip-words.d.ts +26 -0
- package/dist/components/flip-words/index.d.ts +1 -0
- package/dist/components/flux-card/flux-card.d.ts +56 -0
- package/dist/components/flux-card/index.d.ts +1 -0
- package/dist/components/fuse-button/fuse-button.d.ts +75 -0
- package/dist/components/fuse-button/index.d.ts +1 -0
- package/dist/components/globe-card/globe-card.d.ts +46 -0
- package/dist/components/globe-card/index.d.ts +1 -0
- package/dist/components/goal-gauge/goal-gauge.d.ts +47 -0
- package/dist/components/goal-gauge/index.d.ts +1 -0
- package/dist/components/gradient-card/gradient-card.d.ts +56 -0
- package/dist/components/gradient-card/index.d.ts +1 -0
- package/dist/components/gradient-text/gradient-text.d.ts +22 -0
- package/dist/components/gradient-text/index.d.ts +1 -0
- package/dist/components/gravity-tag-pile/gravity-tag-pile.d.ts +69 -0
- package/dist/components/gravity-tag-pile/index.d.ts +1 -0
- package/dist/components/growth-stream/growth-stream.d.ts +47 -0
- package/dist/components/growth-stream/index.d.ts +1 -0
- package/dist/components/highlight-text/highlight-text.d.ts +22 -0
- package/dist/components/highlight-text/index.d.ts +1 -0
- package/dist/components/hold-to-confirm/hold-to-confirm.d.ts +32 -0
- package/dist/components/hold-to-confirm/index.d.ts +1 -0
- package/dist/components/infinite-gallery/index.d.ts +1 -0
- package/dist/components/infinite-gallery/infinite-gallery.d.ts +73 -0
- package/dist/components/integration-hub/index.d.ts +1 -0
- package/dist/components/integration-hub/integration-hub.d.ts +40 -0
- package/dist/components/liquid-card/index.d.ts +1 -0
- package/dist/components/liquid-card/liquid-card.d.ts +66 -0
- package/dist/components/liquid-metal-card/index.d.ts +1 -0
- package/dist/components/liquid-metal-card/liquid-metal-card.d.ts +45 -0
- package/dist/components/liquid-tabs/index.d.ts +1 -0
- package/dist/components/liquid-tabs/liquid-tabs.d.ts +47 -0
- package/dist/components/magnetic-button/index.d.ts +1 -0
- package/dist/components/magnetic-button/magnetic-button.d.ts +46 -0
- package/dist/components/magnetic-flow/index.d.ts +1 -0
- package/dist/components/magnetic-flow/magnetic-flow.d.ts +35 -0
- package/dist/components/message-composer/index.d.ts +1 -0
- package/dist/components/message-composer/message-composer.d.ts +79 -0
- package/dist/components/metal-card-stack/index.d.ts +1 -0
- package/dist/components/metal-card-stack/metal-card-stack.d.ts +49 -0
- package/dist/components/metric-split/index.d.ts +1 -0
- package/dist/components/metric-split/metric-split.d.ts +45 -0
- package/dist/components/mix-chart/index.d.ts +1 -0
- package/dist/components/mix-chart/mix-chart.d.ts +59 -0
- package/dist/components/month-calendar/index.d.ts +1 -0
- package/dist/components/month-calendar/month-calendar.d.ts +34 -0
- package/dist/components/morph-search/index.d.ts +1 -0
- package/dist/components/morph-search/morph-search.d.ts +33 -0
- package/dist/components/orbit-card/index.d.ts +1 -0
- package/dist/components/orbit-card/orbit-card.d.ts +50 -0
- package/dist/components/otp-code/index.d.ts +1 -0
- package/dist/components/otp-code/otp-code.d.ts +61 -0
- package/dist/components/particle-card/index.d.ts +1 -0
- package/dist/components/particle-card/particle-card.d.ts +57 -0
- package/dist/components/payment-form/index.d.ts +1 -0
- package/dist/components/payment-form/payment-form.d.ts +54 -0
- package/dist/components/pill-tabs/index.d.ts +1 -0
- package/dist/components/pill-tabs/pill-tabs.d.ts +39 -0
- package/dist/components/pixel-blast/index.d.ts +1 -0
- package/dist/components/pixel-blast/pixel-blast.d.ts +41 -0
- package/dist/components/pixel-feature-card/index.d.ts +1 -0
- package/dist/components/pixel-feature-card/pixel-feature-card.d.ts +43 -0
- package/dist/components/pixel-scroll/index.d.ts +1 -0
- package/dist/components/pixel-scroll/pixel-scroll.d.ts +64 -0
- package/dist/components/pricing-card/index.d.ts +1 -0
- package/dist/components/pricing-card/pricing-card.d.ts +60 -0
- package/dist/components/prism-carousel/index.d.ts +1 -0
- package/dist/components/prism-carousel/prism-carousel.d.ts +54 -0
- package/dist/components/prism-flow/index.d.ts +1 -0
- package/dist/components/prism-flow/prism-flow.d.ts +41 -0
- package/dist/components/privacy-banner/index.d.ts +1 -0
- package/dist/components/privacy-banner/privacy-banner.d.ts +41 -0
- package/dist/components/profile-card/index.d.ts +1 -0
- package/dist/components/profile-card/profile-card.d.ts +52 -0
- package/dist/components/profile-menu/index.d.ts +1 -0
- package/dist/components/profile-menu/profile-menu.d.ts +43 -0
- package/dist/components/project-index/index.d.ts +1 -0
- package/dist/components/project-index/project-index.d.ts +65 -0
- package/dist/components/prompt-input/index.d.ts +1 -0
- package/dist/components/prompt-input/prompt-input.d.ts +49 -0
- package/dist/components/quota-gauge/index.d.ts +1 -0
- package/dist/components/quota-gauge/quota-gauge.d.ts +30 -0
- package/dist/components/range-chart/index.d.ts +1 -0
- package/dist/components/range-chart/range-chart.d.ts +47 -0
- package/dist/components/reaction-card/index.d.ts +1 -0
- package/dist/components/reaction-card/reaction-card.d.ts +60 -0
- package/dist/components/recap-card/index.d.ts +1 -0
- package/dist/components/recap-card/recap-card.d.ts +61 -0
- package/dist/components/receipt-button/index.d.ts +1 -0
- package/dist/components/receipt-button/receipt-button.d.ts +53 -0
- package/dist/components/ribbon-gallery/index.d.ts +1 -0
- package/dist/components/ribbon-gallery/ribbon-gallery.d.ts +61 -0
- package/dist/components/roadmap-card/index.d.ts +1 -0
- package/dist/components/roadmap-card/roadmap-card.d.ts +38 -0
- package/dist/components/rolling-card-stack/index.d.ts +1 -0
- package/dist/components/rolling-card-stack/rolling-card-stack.d.ts +53 -0
- package/dist/components/rolling-stepper/index.d.ts +1 -0
- package/dist/components/rolling-stepper/rolling-stepper.d.ts +33 -0
- package/dist/components/rotating-text/index.d.ts +1 -0
- package/dist/components/rotating-text/rotating-text.d.ts +25 -0
- package/dist/components/score-card/index.d.ts +1 -0
- package/dist/components/score-card/score-card.d.ts +40 -0
- package/dist/components/search-modal/index.d.ts +1 -0
- package/dist/components/search-modal/search-modal.d.ts +62 -0
- package/dist/components/shimmer-text/index.d.ts +1 -0
- package/dist/components/shimmer-text/shimmer-text.d.ts +22 -0
- package/dist/components/sidebar-nav/index.d.ts +1 -0
- package/dist/components/sidebar-nav/sidebar-nav.d.ts +71 -0
- package/dist/components/slide-commit/index.d.ts +1 -0
- package/dist/components/slide-commit/slide-commit.d.ts +39 -0
- package/dist/components/spatial-gallery/index.d.ts +1 -0
- package/dist/components/spatial-gallery/spatial-gallery.d.ts +88 -0
- package/dist/components/spending-meter/index.d.ts +1 -0
- package/dist/components/spending-meter/spending-meter.d.ts +41 -0
- package/dist/components/tab-bar/index.d.ts +1 -0
- package/dist/components/tab-bar/tab-bar.d.ts +44 -0
- package/dist/components/team-member-card/index.d.ts +1 -0
- package/dist/components/team-member-card/team-member-card.d.ts +66 -0
- package/dist/components/team-morph/index.d.ts +1 -0
- package/dist/components/team-morph/team-morph.d.ts +38 -0
- package/dist/components/tilt-card/index.d.ts +1 -0
- package/dist/components/tilt-card/tilt-card.d.ts +27 -0
- package/dist/components/tilt-carousel/index.d.ts +1 -0
- package/dist/components/tilt-carousel/tilt-carousel.d.ts +43 -0
- package/dist/components/toast-stack/index.d.ts +1 -0
- package/dist/components/toast-stack/toast-stack.d.ts +57 -0
- package/dist/components/usage-ring/index.d.ts +1 -0
- package/dist/components/usage-ring/usage-ring.d.ts +40 -0
- package/dist/components/verify-flow/index.d.ts +1 -0
- package/dist/components/verify-flow/verify-flow.d.ts +49 -0
- package/dist/components/voice-prompt/index.d.ts +1 -0
- package/dist/components/voice-prompt/voice-prompt.d.ts +55 -0
- package/dist/components/wallet-card/index.d.ts +1 -0
- package/dist/components/wallet-card/wallet-card.d.ts +54 -0
- package/dist/components/wave-text/index.d.ts +1 -0
- package/dist/components/wave-text/wave-text.d.ts +27 -0
- package/dist/contact-card.d.ts +1 -0
- package/dist/contact-card.js +12 -0
- package/dist/context-menu.d.ts +1 -0
- package/dist/context-menu.js +17 -0
- package/dist/contour-feature-card.d.ts +1 -0
- package/dist/contour-feature-card.js +9 -0
- package/dist/contour-lines.d.ts +1 -0
- package/dist/contour-lines.js +8 -0
- package/dist/decay-card.d.ts +1 -0
- package/dist/decay-card.js +8 -0
- package/dist/deploy-streak.d.ts +1 -0
- package/dist/deploy-streak.js +9 -0
- package/dist/depth-carousel.d.ts +1 -0
- package/dist/depth-carousel.js +8 -0
- package/dist/device-traffic.d.ts +1 -0
- package/dist/device-traffic.js +12 -0
- package/dist/download-button.d.ts +1 -0
- package/dist/download-button.js +8 -0
- package/dist/event-card.d.ts +1 -0
- package/dist/event-card.js +12 -0
- package/dist/file-drop.d.ts +1 -0
- package/dist/file-drop.js +12 -0
- package/dist/flip-words.d.ts +1 -0
- package/dist/flip-words.js +8 -0
- package/dist/flux-card.d.ts +1 -0
- package/dist/flux-card.js +13 -0
- package/dist/fuse-button.d.ts +1 -0
- package/dist/fuse-button.js +9 -0
- package/dist/globe-card.d.ts +1 -0
- package/dist/globe-card.js +8 -0
- package/dist/goal-gauge.d.ts +1 -0
- package/dist/goal-gauge.js +9 -0
- package/dist/gradient-card.d.ts +1 -0
- package/dist/gradient-card.js +8 -0
- package/dist/gradient-text.d.ts +1 -0
- package/dist/gradient-text.js +8 -0
- package/dist/gravity-tag-pile.d.ts +1 -0
- package/dist/gravity-tag-pile.js +9 -0
- package/dist/growth-stream.d.ts +1 -0
- package/dist/growth-stream.js +10 -0
- package/dist/highlight-text.d.ts +1 -0
- package/dist/highlight-text.js +8 -0
- package/dist/hold-to-confirm.d.ts +1 -0
- package/dist/hold-to-confirm.js +8 -0
- package/dist/icons/activity.d.ts +15 -0
- package/dist/icons/archive.d.ts +15 -0
- package/dist/icons/arrow-down-right.d.ts +15 -0
- package/dist/icons/arrow-down.d.ts +15 -0
- package/dist/icons/arrow-right.d.ts +15 -0
- package/dist/icons/arrow-up-right.d.ts +15 -0
- package/dist/icons/arrow-up.d.ts +15 -0
- package/dist/icons/at-sign.d.ts +15 -0
- package/dist/icons/attach-file.d.ts +15 -0
- package/dist/icons/badge-alert.d.ts +15 -0
- package/dist/icons/bell.d.ts +15 -0
- package/dist/icons/bold.d.ts +15 -0
- package/dist/icons/bookmark.d.ts +15 -0
- package/dist/icons/bot.d.ts +15 -0
- package/dist/icons/calendar-check-2.d.ts +15 -0
- package/dist/icons/calendar-check.d.ts +15 -0
- package/dist/icons/calendar-days.d.ts +15 -0
- package/dist/icons/chart-line.d.ts +15 -0
- package/dist/icons/chart-pie.d.ts +15 -0
- package/dist/icons/check.d.ts +15 -0
- package/dist/icons/chevron-down.d.ts +15 -0
- package/dist/icons/chevron-left.d.ts +15 -0
- package/dist/icons/chevron-right.d.ts +15 -0
- package/dist/icons/circle-check.d.ts +15 -0
- package/dist/icons/circle-dollar-sign.d.ts +15 -0
- package/dist/icons/clipboard-check.d.ts +15 -0
- package/dist/icons/clock.d.ts +15 -0
- package/dist/icons/cloud-upload.d.ts +15 -0
- package/dist/icons/compass.d.ts +15 -0
- package/dist/icons/contrast.d.ts +15 -0
- package/dist/icons/copy.d.ts +15 -0
- package/dist/icons/credit-card.d.ts +15 -0
- package/dist/icons/delete.d.ts +15 -0
- package/dist/icons/download.d.ts +15 -0
- package/dist/icons/dribbble.d.ts +15 -0
- package/dist/icons/earth.d.ts +15 -0
- package/dist/icons/eye-off.d.ts +15 -0
- package/dist/icons/eye.d.ts +15 -0
- package/dist/icons/feather.d.ts +15 -0
- package/dist/icons/figma.d.ts +15 -0
- package/dist/icons/file-text.d.ts +16 -0
- package/dist/icons/flame.d.ts +15 -0
- package/dist/icons/folder-input.d.ts +15 -0
- package/dist/icons/folder-open.d.ts +15 -0
- package/dist/icons/folders.d.ts +15 -0
- package/dist/icons/github.d.ts +15 -0
- package/dist/icons/hand-coins.d.ts +15 -0
- package/dist/icons/heart.d.ts +15 -0
- package/dist/icons/history.d.ts +15 -0
- package/dist/icons/home.d.ts +15 -0
- package/dist/icons/hourglass.d.ts +15 -0
- package/dist/icons/instagram.d.ts +15 -0
- package/dist/icons/italic.d.ts +15 -0
- package/dist/icons/layout-grid.d.ts +15 -0
- package/dist/icons/link.d.ts +15 -0
- package/dist/icons/linkedin.d.ts +15 -0
- package/dist/icons/loader-circle.d.ts +15 -0
- package/dist/icons/lock-keyhole-open.d.ts +15 -0
- package/dist/icons/lock-keyhole.d.ts +15 -0
- package/dist/icons/lock.d.ts +15 -0
- package/dist/icons/logout.d.ts +15 -0
- package/dist/icons/mail-check.d.ts +15 -0
- package/dist/icons/map-pin.d.ts +15 -0
- package/dist/icons/message-circle.d.ts +15 -0
- package/dist/icons/mic.d.ts +15 -0
- package/dist/icons/monitor-check.d.ts +15 -0
- package/dist/icons/moon.d.ts +15 -0
- package/dist/icons/palette.d.ts +15 -0
- package/dist/icons/panel-left-close.d.ts +15 -0
- package/dist/icons/panel-left-open.d.ts +15 -0
- package/dist/icons/plug-zap.d.ts +15 -0
- package/dist/icons/plus.d.ts +15 -0
- package/dist/icons/radio.d.ts +15 -0
- package/dist/icons/receipt.d.ts +15 -0
- package/dist/icons/refresh-cw.d.ts +15 -0
- package/dist/icons/rotate-ccw.d.ts +15 -0
- package/dist/icons/search.d.ts +15 -0
- package/dist/icons/send.d.ts +15 -0
- package/dist/icons/settings.d.ts +15 -0
- package/dist/icons/shield-check.d.ts +15 -0
- package/dist/icons/smartphone-nfc.d.ts +15 -0
- package/dist/icons/smile.d.ts +15 -0
- package/dist/icons/sparkles.d.ts +15 -0
- package/dist/icons/square-pen.d.ts +15 -0
- package/dist/icons/sun.d.ts +15 -0
- package/dist/icons/terminal.d.ts +15 -0
- package/dist/icons/timer.d.ts +15 -0
- package/dist/icons/trending-up.d.ts +15 -0
- package/dist/icons/twitter.d.ts +15 -0
- package/dist/icons/underline.d.ts +15 -0
- package/dist/icons/undo.d.ts +15 -0
- package/dist/icons/user-check.d.ts +15 -0
- package/dist/icons/user-plus.d.ts +15 -0
- package/dist/icons/user-round-plus.d.ts +15 -0
- package/dist/icons/user.d.ts +15 -0
- package/dist/icons/users.d.ts +15 -0
- package/dist/icons/wifi.d.ts +15 -0
- package/dist/icons/workflow.d.ts +15 -0
- package/dist/icons/x.d.ts +15 -0
- package/dist/icons/zap.d.ts +15 -0
- package/dist/index.d.ts +100 -0
- package/dist/index.js +472 -0
- package/dist/infinite-gallery.d.ts +1 -0
- package/dist/infinite-gallery.js +9 -0
- package/dist/integration-hub.d.ts +1 -0
- package/dist/integration-hub.js +8 -0
- package/dist/lib/cn.d.ts +3 -0
- package/dist/liquid-card.d.ts +1 -0
- package/dist/liquid-card.js +10 -0
- package/dist/liquid-metal-card.d.ts +1 -0
- package/dist/liquid-metal-card.js +8 -0
- package/dist/liquid-tabs.d.ts +1 -0
- package/dist/liquid-tabs.js +14 -0
- package/dist/magnetic-button.d.ts +1 -0
- package/dist/magnetic-button.js +8 -0
- package/dist/magnetic-flow.d.ts +1 -0
- package/dist/magnetic-flow.js +8 -0
- package/dist/message-composer.d.ts +1 -0
- package/dist/message-composer.js +20 -0
- package/dist/metal-card-stack.d.ts +1 -0
- package/dist/metal-card-stack.js +8 -0
- package/dist/metric-split.d.ts +1 -0
- package/dist/metric-split.js +9 -0
- package/dist/mix-chart.d.ts +1 -0
- package/dist/mix-chart.js +9 -0
- package/dist/month-calendar.d.ts +1 -0
- package/dist/month-calendar.js +10 -0
- package/dist/morph-search.d.ts +1 -0
- package/dist/morph-search.js +10 -0
- package/dist/orbit-card.d.ts +1 -0
- package/dist/orbit-card.js +8 -0
- package/dist/otp-code.d.ts +1 -0
- package/dist/otp-code.js +17 -0
- package/dist/particle-card.d.ts +1 -0
- package/dist/particle-card.js +8 -0
- package/dist/payment-form.d.ts +1 -0
- package/dist/payment-form.js +8 -0
- package/dist/pill-tabs.d.ts +1 -0
- package/dist/pill-tabs.js +9 -0
- package/dist/pixel-blast.d.ts +1 -0
- package/dist/pixel-blast.js +8 -0
- package/dist/pixel-feature-card.d.ts +1 -0
- package/dist/pixel-feature-card.js +9 -0
- package/dist/pixel-scroll.d.ts +1 -0
- package/dist/pixel-scroll.js +8 -0
- package/dist/pricing-card.d.ts +1 -0
- package/dist/pricing-card.js +14 -0
- package/dist/prism-carousel.d.ts +1 -0
- package/dist/prism-carousel.js +8 -0
- package/dist/prism-flow.d.ts +1 -0
- package/dist/prism-flow.js +8 -0
- package/dist/privacy-banner.d.ts +1 -0
- package/dist/privacy-banner.js +8 -0
- package/dist/profile-card.d.ts +1 -0
- package/dist/profile-card.js +13 -0
- package/dist/profile-menu.d.ts +1 -0
- package/dist/profile-menu.js +21 -0
- package/dist/project-index.d.ts +1 -0
- package/dist/project-index.js +9 -0
- package/dist/prompt-input.d.ts +1 -0
- package/dist/prompt-input.js +14 -0
- package/dist/quota-gauge.d.ts +1 -0
- package/dist/quota-gauge.js +9 -0
- package/dist/range-chart.d.ts +1 -0
- package/dist/range-chart.js +8 -0
- package/dist/reaction-card.d.ts +1 -0
- package/dist/reaction-card.js +8 -0
- package/dist/recap-card.d.ts +1 -0
- package/dist/recap-card.js +15 -0
- package/dist/receipt-button.d.ts +1 -0
- package/dist/receipt-button.js +8 -0
- package/dist/ribbon-gallery.d.ts +1 -0
- package/dist/ribbon-gallery.js +8 -0
- package/dist/roadmap-card.d.ts +1 -0
- package/dist/roadmap-card.js +11 -0
- package/dist/rolling-card-stack.d.ts +1 -0
- package/dist/rolling-card-stack.js +8 -0
- package/dist/rolling-stepper.d.ts +1 -0
- package/dist/rolling-stepper.js +8 -0
- package/dist/rotating-text.d.ts +1 -0
- package/dist/rotating-text.js +9 -0
- package/dist/score-card.d.ts +1 -0
- package/dist/score-card.js +10 -0
- package/dist/search-modal.d.ts +1 -0
- package/dist/search-modal.js +16 -0
- package/dist/shimmer-text.d.ts +1 -0
- package/dist/shimmer-text.js +8 -0
- package/dist/sidebar-nav.d.ts +1 -0
- package/dist/sidebar-nav.js +19 -0
- package/dist/slide-commit.d.ts +1 -0
- package/dist/slide-commit.js +9 -0
- package/dist/spatial-gallery.d.ts +1 -0
- package/dist/spatial-gallery.js +8 -0
- package/dist/spending-meter.d.ts +1 -0
- package/dist/spending-meter.js +9 -0
- package/dist/tab-bar.d.ts +1 -0
- package/dist/tab-bar.js +18 -0
- package/dist/team-member-card.d.ts +1 -0
- package/dist/team-member-card.js +14 -0
- package/dist/team-morph.d.ts +1 -0
- package/dist/team-morph.js +11 -0
- package/dist/tilt-card.d.ts +1 -0
- package/dist/tilt-card.js +8 -0
- package/dist/tilt-carousel.d.ts +1 -0
- package/dist/tilt-carousel.js +8 -0
- package/dist/toast-stack.d.ts +1 -0
- package/dist/toast-stack.js +13 -0
- package/dist/usage-ring.d.ts +1 -0
- package/dist/usage-ring.js +9 -0
- package/dist/verify-flow.d.ts +1 -0
- package/dist/verify-flow.js +10 -0
- package/dist/voice-prompt.d.ts +1 -0
- package/dist/voice-prompt.js +14 -0
- package/dist/wallet-card.d.ts +1 -0
- package/dist/wallet-card.js +15 -0
- package/dist/wave-text.d.ts +1 -0
- package/dist/wave-text.js +8 -0
- package/package.json +111 -4
|
@@ -0,0 +1,700 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
UserCheckIcon
|
|
4
|
+
} from "./chunk-JT2EIO5M.js";
|
|
5
|
+
import {
|
|
6
|
+
ChartLineIcon
|
|
7
|
+
} from "./chunk-XDR4FO6Q.js";
|
|
8
|
+
import {
|
|
9
|
+
BellIcon
|
|
10
|
+
} from "./chunk-7PS2W7PU.js";
|
|
11
|
+
import {
|
|
12
|
+
MonitorCheckIcon
|
|
13
|
+
} from "./chunk-NNKC6NEH.js";
|
|
14
|
+
import {
|
|
15
|
+
SmartphoneNfcIcon
|
|
16
|
+
} from "./chunk-OS6REIBR.js";
|
|
17
|
+
import {
|
|
18
|
+
ShieldCheckIcon
|
|
19
|
+
} from "./chunk-WE7VCUOA.js";
|
|
20
|
+
import {
|
|
21
|
+
cn
|
|
22
|
+
} from "./chunk-2TQSHVXA.js";
|
|
23
|
+
|
|
24
|
+
// src/components/liquid-tabs/liquid-tabs.tsx
|
|
25
|
+
import * as React from "react";
|
|
26
|
+
import {
|
|
27
|
+
AnimatePresence,
|
|
28
|
+
animate,
|
|
29
|
+
motion,
|
|
30
|
+
useInView,
|
|
31
|
+
useMotionValue,
|
|
32
|
+
useReducedMotion,
|
|
33
|
+
useTransform
|
|
34
|
+
} from "motion/react";
|
|
35
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
36
|
+
var GLIDE = [0.22, 1, 0.36, 1];
|
|
37
|
+
var ROW = 64;
|
|
38
|
+
var TOP = 4;
|
|
39
|
+
var PAD = 6;
|
|
40
|
+
var PANEL_R = 18;
|
|
41
|
+
var NECK = 18;
|
|
42
|
+
var CAP = 40;
|
|
43
|
+
function edge(lIn, rIn, w, base) {
|
|
44
|
+
const l = Math.max(0, lIn);
|
|
45
|
+
const r = Math.min(w, rIn);
|
|
46
|
+
const width = r - l;
|
|
47
|
+
const pull = Math.max(0, width - base);
|
|
48
|
+
const top = TOP + Math.min(10, pull * 0.07);
|
|
49
|
+
const neck = Math.min(NECK + pull * 0.05, 26);
|
|
50
|
+
const cap = Math.min(CAP, width / 2, ROW - top - neck);
|
|
51
|
+
const side = (room) => {
|
|
52
|
+
const k = Math.max(0, Math.min(1, room / (PANEL_R + neck)));
|
|
53
|
+
return { corner: PANEL_R * k, neck: neck * k };
|
|
54
|
+
};
|
|
55
|
+
const a = side(l);
|
|
56
|
+
const b = side(w - r);
|
|
57
|
+
const H = ROW;
|
|
58
|
+
return [
|
|
59
|
+
`M0 ${H + PANEL_R}`,
|
|
60
|
+
`L0 ${H + a.corner}`,
|
|
61
|
+
`A${a.corner} ${a.corner} 0 0 1 ${a.corner} ${H}`,
|
|
62
|
+
`L${l - a.neck} ${H}`,
|
|
63
|
+
`A${a.neck} ${a.neck} 0 0 0 ${l} ${H - a.neck}`,
|
|
64
|
+
`L${l} ${top + cap}`,
|
|
65
|
+
`A${cap} ${cap} 0 0 1 ${l + cap} ${top}`,
|
|
66
|
+
`L${r - cap} ${top}`,
|
|
67
|
+
`A${cap} ${cap} 0 0 1 ${r} ${top + cap}`,
|
|
68
|
+
`L${r} ${H - b.neck}`,
|
|
69
|
+
`A${b.neck} ${b.neck} 0 0 0 ${r + b.neck} ${H}`,
|
|
70
|
+
`L${w - b.corner} ${H}`,
|
|
71
|
+
`A${b.corner} ${b.corner} 0 0 1 ${w} ${H + b.corner}`,
|
|
72
|
+
`L${w} ${H + PANEL_R + 1}`,
|
|
73
|
+
`L0 ${H + PANEL_R + 1}`,
|
|
74
|
+
"Z"
|
|
75
|
+
].join(" ");
|
|
76
|
+
}
|
|
77
|
+
function Bump({
|
|
78
|
+
l,
|
|
79
|
+
r,
|
|
80
|
+
w,
|
|
81
|
+
base
|
|
82
|
+
}) {
|
|
83
|
+
const d = useTransform(
|
|
84
|
+
[l, r],
|
|
85
|
+
([a, b]) => edge(a, b, w, base)
|
|
86
|
+
);
|
|
87
|
+
return /* @__PURE__ */ jsx(
|
|
88
|
+
"svg",
|
|
89
|
+
{
|
|
90
|
+
"aria-hidden": true,
|
|
91
|
+
className: "pointer-events-none absolute left-0 top-0 overflow-visible",
|
|
92
|
+
width: w,
|
|
93
|
+
height: ROW + PANEL_R + 1,
|
|
94
|
+
children: /* @__PURE__ */ jsx(motion.path, { d, fill: "#fff" })
|
|
95
|
+
}
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
var STATUSES = [
|
|
99
|
+
{ id: "available", label: "Available", dot: "#269a5a" },
|
|
100
|
+
{ id: "focusing", label: "Focusing", dot: "#e8a317" },
|
|
101
|
+
{ id: "away", label: "Away", dot: "#a1a1aa" }
|
|
102
|
+
];
|
|
103
|
+
function ProfileDemo() {
|
|
104
|
+
const still = !!useReducedMotion();
|
|
105
|
+
const uid = React.useId();
|
|
106
|
+
const [status, setStatus] = React.useState("available");
|
|
107
|
+
const [hover, setHover] = React.useState(false);
|
|
108
|
+
const dot = STATUSES.find((s) => s.id === status).dot;
|
|
109
|
+
return /* @__PURE__ */ jsxs("div", { children: [
|
|
110
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-4 px-1", children: [
|
|
111
|
+
/* @__PURE__ */ jsxs(
|
|
112
|
+
"button",
|
|
113
|
+
{
|
|
114
|
+
type: "button",
|
|
115
|
+
"aria-label": "Change photo",
|
|
116
|
+
onPointerEnter: () => setHover(true),
|
|
117
|
+
onPointerLeave: () => setHover(false),
|
|
118
|
+
onFocus: () => setHover(true),
|
|
119
|
+
onBlur: () => setHover(false),
|
|
120
|
+
className: "relative size-16 shrink-0 cursor-pointer rounded-full outline-none focus-visible:ring-2 focus-visible:ring-zinc-400 focus-visible:ring-offset-2",
|
|
121
|
+
children: [
|
|
122
|
+
/* @__PURE__ */ jsx(
|
|
123
|
+
"img",
|
|
124
|
+
{
|
|
125
|
+
src: "https://images.unsplash.com/photo-1500648767791-00dcc994a43e?w=128&h=128&fit=crop&crop=faces",
|
|
126
|
+
alt: "",
|
|
127
|
+
draggable: false,
|
|
128
|
+
className: "size-16 rounded-full object-cover"
|
|
129
|
+
}
|
|
130
|
+
),
|
|
131
|
+
/* @__PURE__ */ jsx(
|
|
132
|
+
motion.span,
|
|
133
|
+
{
|
|
134
|
+
"aria-hidden": true,
|
|
135
|
+
className: "absolute inset-0 grid place-items-center rounded-full bg-[#242423]/45 text-xs font-medium text-white",
|
|
136
|
+
animate: { opacity: hover ? 1 : 0 },
|
|
137
|
+
transition: { duration: 0.2 },
|
|
138
|
+
children: "Edit"
|
|
139
|
+
}
|
|
140
|
+
),
|
|
141
|
+
/* @__PURE__ */ jsx(
|
|
142
|
+
motion.span,
|
|
143
|
+
{
|
|
144
|
+
className: "absolute bottom-0.5 right-0.5 size-4 rounded-full ring-[3px] ring-white",
|
|
145
|
+
animate: { backgroundColor: dot },
|
|
146
|
+
transition: { duration: 0.3 }
|
|
147
|
+
}
|
|
148
|
+
)
|
|
149
|
+
]
|
|
150
|
+
}
|
|
151
|
+
),
|
|
152
|
+
/* @__PURE__ */ jsxs("div", { className: "min-w-0 leading-tight", children: [
|
|
153
|
+
/* @__PURE__ */ jsx("p", { className: "truncate text-lg font-semibold tracking-tight", children: "Jordan Lee" }),
|
|
154
|
+
/* @__PURE__ */ jsx("p", { className: "mt-0.5 truncate text-sm text-zinc-500", children: "jordan@lumen.app" })
|
|
155
|
+
] })
|
|
156
|
+
] }),
|
|
157
|
+
/* @__PURE__ */ jsx("p", { className: "mt-5 px-1 text-xs font-medium text-zinc-400", children: "Status" }),
|
|
158
|
+
/* @__PURE__ */ jsx(
|
|
159
|
+
"div",
|
|
160
|
+
{
|
|
161
|
+
role: "radiogroup",
|
|
162
|
+
"aria-label": "Status",
|
|
163
|
+
className: "mt-2 flex rounded-full bg-[#242423]/[0.05] p-1",
|
|
164
|
+
children: STATUSES.map((s) => {
|
|
165
|
+
const on = s.id === status;
|
|
166
|
+
return /* @__PURE__ */ jsxs(
|
|
167
|
+
"button",
|
|
168
|
+
{
|
|
169
|
+
type: "button",
|
|
170
|
+
role: "radio",
|
|
171
|
+
"aria-checked": on,
|
|
172
|
+
onClick: () => setStatus(s.id),
|
|
173
|
+
className: cn(
|
|
174
|
+
"relative flex h-9 flex-1 cursor-pointer items-center justify-center gap-2 rounded-full text-sm font-medium outline-none transition-colors focus-visible:ring-2 focus-visible:ring-zinc-400",
|
|
175
|
+
on ? "text-[#242423]" : "text-zinc-500 hover:text-[#242423]"
|
|
176
|
+
),
|
|
177
|
+
children: [
|
|
178
|
+
on && /* @__PURE__ */ jsx(
|
|
179
|
+
motion.span,
|
|
180
|
+
{
|
|
181
|
+
layoutId: `${uid}-status`,
|
|
182
|
+
className: "absolute inset-0 rounded-full bg-white shadow-[0_1px_2px_rgba(0,0,0,0.08)]",
|
|
183
|
+
transition: still ? { duration: 0 } : { type: "spring", stiffness: 500, damping: 38 }
|
|
184
|
+
}
|
|
185
|
+
),
|
|
186
|
+
/* @__PURE__ */ jsx(
|
|
187
|
+
"span",
|
|
188
|
+
{
|
|
189
|
+
className: "relative size-2 rounded-full",
|
|
190
|
+
style: { background: s.dot }
|
|
191
|
+
}
|
|
192
|
+
),
|
|
193
|
+
/* @__PURE__ */ jsx("span", { className: "relative", children: s.label })
|
|
194
|
+
]
|
|
195
|
+
},
|
|
196
|
+
s.id
|
|
197
|
+
);
|
|
198
|
+
})
|
|
199
|
+
}
|
|
200
|
+
)
|
|
201
|
+
] });
|
|
202
|
+
}
|
|
203
|
+
var SESSIONS = [
|
|
204
|
+
{
|
|
205
|
+
id: "mac",
|
|
206
|
+
icon: MonitorCheckIcon,
|
|
207
|
+
title: "MacBook Pro",
|
|
208
|
+
place: "Lisbon",
|
|
209
|
+
time: "Active now",
|
|
210
|
+
current: true
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
id: "phone",
|
|
214
|
+
icon: SmartphoneNfcIcon,
|
|
215
|
+
title: "iPhone 15",
|
|
216
|
+
place: "Lisbon",
|
|
217
|
+
time: "2h ago"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
id: "ipad",
|
|
221
|
+
icon: MonitorCheckIcon,
|
|
222
|
+
title: "Chrome on Windows",
|
|
223
|
+
place: "Porto",
|
|
224
|
+
time: "3 days ago"
|
|
225
|
+
}
|
|
226
|
+
];
|
|
227
|
+
function SecurityDemo() {
|
|
228
|
+
const still = !!useReducedMotion();
|
|
229
|
+
const uid = React.useId();
|
|
230
|
+
const [signedOut, setSignedOut] = React.useState(/* @__PURE__ */ new Set());
|
|
231
|
+
const [hover, setHover] = React.useState(null);
|
|
232
|
+
const others = SESSIONS.filter(
|
|
233
|
+
(x) => !x.current && !signedOut.has(x.id)
|
|
234
|
+
).length;
|
|
235
|
+
return /* @__PURE__ */ jsxs("div", { children: [
|
|
236
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-1 pb-2", children: [
|
|
237
|
+
/* @__PURE__ */ jsxs("p", { className: "flex items-center gap-2 text-sm font-medium", children: [
|
|
238
|
+
/* @__PURE__ */ jsx(ShieldCheckIcon, { className: "size-4 text-[#269a5a]", active: true }),
|
|
239
|
+
"Two step sign in is on"
|
|
240
|
+
] }),
|
|
241
|
+
/* @__PURE__ */ jsx(
|
|
242
|
+
"button",
|
|
243
|
+
{
|
|
244
|
+
type: "button",
|
|
245
|
+
disabled: !others,
|
|
246
|
+
onClick: () => setSignedOut(
|
|
247
|
+
new Set(SESSIONS.filter((x) => !x.current).map((x) => x.id))
|
|
248
|
+
),
|
|
249
|
+
className: "cursor-pointer rounded-full px-2 py-1 text-xs font-medium text-zinc-500 outline-none transition-colors hover:text-[#242423] disabled:cursor-default disabled:opacity-40 focus-visible:ring-2 focus-visible:ring-zinc-400",
|
|
250
|
+
children: "Sign out others"
|
|
251
|
+
}
|
|
252
|
+
)
|
|
253
|
+
] }),
|
|
254
|
+
/* @__PURE__ */ jsx("ul", { onPointerLeave: () => setHover(null), children: /* @__PURE__ */ jsx(AnimatePresence, { initial: false, children: SESSIONS.filter((x) => !signedOut.has(x.id)).map((x, i) => {
|
|
255
|
+
const Icon = x.icon;
|
|
256
|
+
return /* @__PURE__ */ jsx(
|
|
257
|
+
motion.li,
|
|
258
|
+
{
|
|
259
|
+
layout: true,
|
|
260
|
+
initial: still ? false : { opacity: 0, x: 12 },
|
|
261
|
+
animate: { opacity: 1, x: 0 },
|
|
262
|
+
exit: {
|
|
263
|
+
opacity: 0,
|
|
264
|
+
x: -16,
|
|
265
|
+
filter: "blur(4px)",
|
|
266
|
+
transition: { duration: 0.25 }
|
|
267
|
+
},
|
|
268
|
+
transition: {
|
|
269
|
+
duration: 0.35,
|
|
270
|
+
ease: GLIDE,
|
|
271
|
+
delay: still ? 0 : 0.05 + i * 0.06
|
|
272
|
+
},
|
|
273
|
+
children: /* @__PURE__ */ jsxs(
|
|
274
|
+
"div",
|
|
275
|
+
{
|
|
276
|
+
onPointerEnter: () => setHover(x.id),
|
|
277
|
+
className: "relative flex w-full items-center gap-3 rounded-xl px-2 py-2",
|
|
278
|
+
children: [
|
|
279
|
+
hover === x.id && /* @__PURE__ */ jsx(
|
|
280
|
+
motion.span,
|
|
281
|
+
{
|
|
282
|
+
layoutId: `${uid}-session`,
|
|
283
|
+
className: "absolute inset-0 rounded-xl bg-[#242423]/[0.04]",
|
|
284
|
+
transition: {
|
|
285
|
+
type: "spring",
|
|
286
|
+
stiffness: 500,
|
|
287
|
+
damping: 40
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
),
|
|
291
|
+
/* @__PURE__ */ jsx("span", { className: "relative grid size-8 shrink-0 place-items-center rounded-lg bg-[#242423]/[0.05] text-zinc-600", children: /* @__PURE__ */ jsx(Icon, { className: "size-4", active: hover === x.id }) }),
|
|
292
|
+
/* @__PURE__ */ jsxs("span", { className: "relative min-w-0 flex-1 leading-tight", children: [
|
|
293
|
+
/* @__PURE__ */ jsx("span", { className: "block truncate text-sm font-medium", children: x.title }),
|
|
294
|
+
/* @__PURE__ */ jsxs("span", { className: "block truncate text-xs text-zinc-400", children: [
|
|
295
|
+
x.place,
|
|
296
|
+
", ",
|
|
297
|
+
x.time
|
|
298
|
+
] })
|
|
299
|
+
] }),
|
|
300
|
+
x.current ? /* @__PURE__ */ jsx("span", { className: "relative rounded-full bg-[#269a5a]/10 px-2 py-0.5 text-xs font-medium text-[#269a5a]", children: "This device" }) : /* @__PURE__ */ jsx(
|
|
301
|
+
"button",
|
|
302
|
+
{
|
|
303
|
+
type: "button",
|
|
304
|
+
onClick: () => setSignedOut((r) => new Set(r).add(x.id)),
|
|
305
|
+
className: "relative cursor-pointer rounded-full px-2 py-1 text-xs font-medium text-zinc-500 outline-none transition-colors hover:bg-[#242423]/[0.06] hover:text-[#d64545] focus-visible:ring-2 focus-visible:ring-zinc-400",
|
|
306
|
+
children: "Sign out"
|
|
307
|
+
}
|
|
308
|
+
)
|
|
309
|
+
]
|
|
310
|
+
}
|
|
311
|
+
)
|
|
312
|
+
},
|
|
313
|
+
x.id
|
|
314
|
+
);
|
|
315
|
+
}) }) })
|
|
316
|
+
] });
|
|
317
|
+
}
|
|
318
|
+
var BARS = [32, 48, 41, 66, 58, 82, 74];
|
|
319
|
+
var DAYS = ["M", "T", "W", "T", "F", "S", "S"];
|
|
320
|
+
function UsageDemo() {
|
|
321
|
+
const still = !!useReducedMotion();
|
|
322
|
+
const count = useMotionValue(still ? 1284 : 0);
|
|
323
|
+
const text = useTransform(
|
|
324
|
+
count,
|
|
325
|
+
(v) => Math.round(v).toLocaleString("en-US")
|
|
326
|
+
);
|
|
327
|
+
const [hover, setHover] = React.useState(null);
|
|
328
|
+
React.useEffect(() => {
|
|
329
|
+
if (still) return;
|
|
330
|
+
const run = animate(count, 1284, { duration: 1.1, ease: GLIDE });
|
|
331
|
+
return () => run.stop();
|
|
332
|
+
}, [count, still]);
|
|
333
|
+
return /* @__PURE__ */ jsxs("div", { children: [
|
|
334
|
+
/* @__PURE__ */ jsx("p", { className: "px-1 text-sm text-zinc-500", children: "Credits used this month" }),
|
|
335
|
+
/* @__PURE__ */ jsxs("div", { className: "mt-1 flex items-baseline gap-2 px-1", children: [
|
|
336
|
+
/* @__PURE__ */ jsx(motion.span, { className: "text-[32px] font-semibold leading-none tracking-tight tabular-nums", children: text }),
|
|
337
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium text-zinc-400", children: "of 2,000 on Pro" })
|
|
338
|
+
] }),
|
|
339
|
+
/* @__PURE__ */ jsx(
|
|
340
|
+
"div",
|
|
341
|
+
{
|
|
342
|
+
className: "mt-5 flex h-24 items-end gap-2",
|
|
343
|
+
onPointerLeave: () => setHover(null),
|
|
344
|
+
children: BARS.map((v, i) => /* @__PURE__ */ jsxs(
|
|
345
|
+
"div",
|
|
346
|
+
{
|
|
347
|
+
className: "flex flex-1 flex-col items-center gap-1.5",
|
|
348
|
+
onPointerEnter: () => setHover(i),
|
|
349
|
+
children: [
|
|
350
|
+
/* @__PURE__ */ jsxs("div", { className: "relative flex h-20 w-full items-end", children: [
|
|
351
|
+
/* @__PURE__ */ jsx(AnimatePresence, { children: hover === i && /* @__PURE__ */ jsx(
|
|
352
|
+
motion.span,
|
|
353
|
+
{
|
|
354
|
+
initial: { opacity: 0, y: 4 },
|
|
355
|
+
animate: { opacity: 1, y: 0 },
|
|
356
|
+
exit: { opacity: 0, y: 2 },
|
|
357
|
+
className: "absolute -top-6 left-1/2 -translate-x-1/2 rounded-md bg-[#242423] px-1.5 py-0.5 text-xs font-medium tabular-nums text-white",
|
|
358
|
+
children: v * 3
|
|
359
|
+
}
|
|
360
|
+
) }),
|
|
361
|
+
/* @__PURE__ */ jsx(
|
|
362
|
+
motion.span,
|
|
363
|
+
{
|
|
364
|
+
className: cn(
|
|
365
|
+
"w-full origin-bottom rounded-lg transition-colors",
|
|
366
|
+
hover === i ? "bg-[#4f46e5]" : i === BARS.length - 2 ? "bg-[#4f46e5]/80" : "bg-[#4f46e5]/25"
|
|
367
|
+
),
|
|
368
|
+
style: { height: `${v}%` },
|
|
369
|
+
initial: still ? false : { scaleY: 0 },
|
|
370
|
+
animate: { scaleY: 1 },
|
|
371
|
+
transition: {
|
|
372
|
+
type: "spring",
|
|
373
|
+
stiffness: 240,
|
|
374
|
+
damping: 22,
|
|
375
|
+
delay: still ? 0 : 0.1 + i * 0.05
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
)
|
|
379
|
+
] }),
|
|
380
|
+
/* @__PURE__ */ jsx("span", { className: "text-xs text-zinc-400", children: DAYS[i] })
|
|
381
|
+
]
|
|
382
|
+
},
|
|
383
|
+
i
|
|
384
|
+
))
|
|
385
|
+
}
|
|
386
|
+
)
|
|
387
|
+
] });
|
|
388
|
+
}
|
|
389
|
+
function Switch({
|
|
390
|
+
label,
|
|
391
|
+
detail,
|
|
392
|
+
defaultOn
|
|
393
|
+
}) {
|
|
394
|
+
const [on, setOn] = React.useState(!!defaultOn);
|
|
395
|
+
const id = React.useId();
|
|
396
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 px-1 py-2.5", children: [
|
|
397
|
+
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1 leading-tight", children: [
|
|
398
|
+
/* @__PURE__ */ jsx("p", { id, className: "text-sm font-medium", children: label }),
|
|
399
|
+
/* @__PURE__ */ jsx("p", { className: "mt-0.5 text-xs text-zinc-500", children: detail })
|
|
400
|
+
] }),
|
|
401
|
+
/* @__PURE__ */ jsx(
|
|
402
|
+
"button",
|
|
403
|
+
{
|
|
404
|
+
type: "button",
|
|
405
|
+
role: "switch",
|
|
406
|
+
"aria-checked": on,
|
|
407
|
+
"aria-labelledby": id,
|
|
408
|
+
onClick: () => setOn((v) => !v),
|
|
409
|
+
className: cn(
|
|
410
|
+
"relative h-6 w-10 shrink-0 cursor-pointer rounded-full outline-none transition-colors duration-300 focus-visible:ring-2 focus-visible:ring-zinc-400 focus-visible:ring-offset-2",
|
|
411
|
+
on ? "bg-[#269a5a]" : "bg-[#242423]/15"
|
|
412
|
+
),
|
|
413
|
+
children: /* @__PURE__ */ jsx(
|
|
414
|
+
motion.span,
|
|
415
|
+
{
|
|
416
|
+
className: "absolute left-0.5 top-0.5 size-5 rounded-full bg-white shadow-[0_1px_3px_rgba(0,0,0,0.2)]",
|
|
417
|
+
animate: { x: on ? 16 : 0 },
|
|
418
|
+
whileTap: { scaleX: 1.2 },
|
|
419
|
+
transition: { type: "spring", stiffness: 600, damping: 30 }
|
|
420
|
+
}
|
|
421
|
+
)
|
|
422
|
+
}
|
|
423
|
+
)
|
|
424
|
+
] });
|
|
425
|
+
}
|
|
426
|
+
function NotificationsDemo() {
|
|
427
|
+
return /* @__PURE__ */ jsxs("div", { className: "divide-y divide-[#242423]/[0.06]", children: [
|
|
428
|
+
/* @__PURE__ */ jsx(
|
|
429
|
+
Switch,
|
|
430
|
+
{
|
|
431
|
+
label: "Mentions and replies",
|
|
432
|
+
detail: "When someone tags you or answers you",
|
|
433
|
+
defaultOn: true
|
|
434
|
+
}
|
|
435
|
+
),
|
|
436
|
+
/* @__PURE__ */ jsx(
|
|
437
|
+
Switch,
|
|
438
|
+
{
|
|
439
|
+
label: "Weekly summary",
|
|
440
|
+
detail: "A short email every Monday morning",
|
|
441
|
+
defaultOn: true
|
|
442
|
+
}
|
|
443
|
+
),
|
|
444
|
+
/* @__PURE__ */ jsx(
|
|
445
|
+
Switch,
|
|
446
|
+
{
|
|
447
|
+
label: "Product news",
|
|
448
|
+
detail: "New features, at most once a month"
|
|
449
|
+
}
|
|
450
|
+
)
|
|
451
|
+
] });
|
|
452
|
+
}
|
|
453
|
+
var DEFAULT_TABS = [
|
|
454
|
+
{
|
|
455
|
+
id: "profile",
|
|
456
|
+
label: "Profile",
|
|
457
|
+
icon: UserCheckIcon,
|
|
458
|
+
content: /* @__PURE__ */ jsx(ProfileDemo, {})
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
id: "notifications",
|
|
462
|
+
label: "Notifications",
|
|
463
|
+
icon: BellIcon,
|
|
464
|
+
content: /* @__PURE__ */ jsx(NotificationsDemo, {})
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
id: "security",
|
|
468
|
+
label: "Security",
|
|
469
|
+
icon: ShieldCheckIcon,
|
|
470
|
+
content: /* @__PURE__ */ jsx(SecurityDemo, {})
|
|
471
|
+
},
|
|
472
|
+
{ id: "usage", label: "Usage", icon: ChartLineIcon, content: /* @__PURE__ */ jsx(UsageDemo, {}) }
|
|
473
|
+
];
|
|
474
|
+
var LiquidTabs = React.forwardRef(
|
|
475
|
+
function LiquidTabs2({
|
|
476
|
+
tabs = DEFAULT_TABS,
|
|
477
|
+
defaultValue,
|
|
478
|
+
value: valueProp,
|
|
479
|
+
onValueChange,
|
|
480
|
+
stretch = 0.6,
|
|
481
|
+
className
|
|
482
|
+
}, ref) {
|
|
483
|
+
const still = !!useReducedMotion();
|
|
484
|
+
const id = React.useId();
|
|
485
|
+
const root = React.useRef(null);
|
|
486
|
+
React.useImperativeHandle(ref, () => root.current);
|
|
487
|
+
const frame = React.useRef(null);
|
|
488
|
+
const buttons = React.useRef([]);
|
|
489
|
+
const seen = useInView(root, { once: true, amount: 0.3 });
|
|
490
|
+
const [own, setOwn] = React.useState(defaultValue ?? tabs[0]?.id ?? "");
|
|
491
|
+
const value = valueProp ?? own;
|
|
492
|
+
const index = Math.max(
|
|
493
|
+
0,
|
|
494
|
+
tabs.findIndex((t) => t.id === value)
|
|
495
|
+
);
|
|
496
|
+
const [dir, setDir] = React.useState(1);
|
|
497
|
+
const choose = (next) => {
|
|
498
|
+
const t = tabs[(next + tabs.length) % tabs.length];
|
|
499
|
+
if (!t || t.id === value) return;
|
|
500
|
+
setDir(next > index ? 1 : -1);
|
|
501
|
+
setOwn(t.id);
|
|
502
|
+
onValueChange?.(t.id);
|
|
503
|
+
};
|
|
504
|
+
const l = useMotionValue(0);
|
|
505
|
+
const r = useMotionValue(0);
|
|
506
|
+
const [width, setWidth] = React.useState(0);
|
|
507
|
+
const [base, setBase] = React.useState(60);
|
|
508
|
+
const placed = React.useRef(false);
|
|
509
|
+
const measure = React.useCallback(() => {
|
|
510
|
+
const box = frame.current;
|
|
511
|
+
const b = buttons.current[index];
|
|
512
|
+
if (!box || !b) return null;
|
|
513
|
+
setWidth(box.offsetWidth);
|
|
514
|
+
setBase(b.offsetWidth + PAD * 2);
|
|
515
|
+
const row = b.offsetParent;
|
|
516
|
+
const left = b.offsetLeft + (row && row !== box ? row.offsetLeft : 0);
|
|
517
|
+
return { l: left - PAD, r: left + b.offsetWidth + PAD };
|
|
518
|
+
}, [index]);
|
|
519
|
+
React.useLayoutEffect(() => {
|
|
520
|
+
const to = measure();
|
|
521
|
+
if (!to) return;
|
|
522
|
+
if (!placed.current || still) {
|
|
523
|
+
l.set(to.l);
|
|
524
|
+
r.set(to.r);
|
|
525
|
+
placed.current = true;
|
|
526
|
+
return;
|
|
527
|
+
}
|
|
528
|
+
const forward = to.l > l.get();
|
|
529
|
+
const lead = { type: "spring", stiffness: 520, damping: 24 };
|
|
530
|
+
const s = Math.min(1, Math.max(0, stretch));
|
|
531
|
+
const trail = {
|
|
532
|
+
type: "spring",
|
|
533
|
+
stiffness: 520 - 330 * s,
|
|
534
|
+
damping: 30 - 10 * s,
|
|
535
|
+
delay: 0.03 + 0.17 * s
|
|
536
|
+
};
|
|
537
|
+
const a = animate(l, to.l, forward ? trail : lead);
|
|
538
|
+
const b = animate(r, to.r, forward ? lead : trail);
|
|
539
|
+
return () => {
|
|
540
|
+
a.stop();
|
|
541
|
+
b.stop();
|
|
542
|
+
};
|
|
543
|
+
}, [index, measure, still, stretch, l, r]);
|
|
544
|
+
React.useEffect(() => {
|
|
545
|
+
const el = frame.current;
|
|
546
|
+
if (!el || typeof ResizeObserver === "undefined") return;
|
|
547
|
+
const ro = new ResizeObserver(() => {
|
|
548
|
+
const to = measure();
|
|
549
|
+
if (to) {
|
|
550
|
+
l.set(to.l);
|
|
551
|
+
r.set(to.r);
|
|
552
|
+
}
|
|
553
|
+
});
|
|
554
|
+
ro.observe(el);
|
|
555
|
+
return () => ro.disconnect();
|
|
556
|
+
}, [measure, l, r]);
|
|
557
|
+
const inner = React.useRef(null);
|
|
558
|
+
const [height, setHeight] = React.useState("auto");
|
|
559
|
+
React.useEffect(() => {
|
|
560
|
+
const el = inner.current;
|
|
561
|
+
if (!el || typeof ResizeObserver === "undefined") return;
|
|
562
|
+
const ro = new ResizeObserver(() => setHeight(el.offsetHeight));
|
|
563
|
+
ro.observe(el);
|
|
564
|
+
return () => ro.disconnect();
|
|
565
|
+
}, []);
|
|
566
|
+
const onKey = (e) => {
|
|
567
|
+
const keys = {
|
|
568
|
+
ArrowRight: index + 1,
|
|
569
|
+
ArrowLeft: index - 1,
|
|
570
|
+
Home: 0,
|
|
571
|
+
End: tabs.length - 1
|
|
572
|
+
};
|
|
573
|
+
if (!(e.key in keys)) return;
|
|
574
|
+
e.preventDefault();
|
|
575
|
+
const next = (keys[e.key] + tabs.length) % tabs.length;
|
|
576
|
+
choose(next);
|
|
577
|
+
buttons.current[next]?.focus();
|
|
578
|
+
};
|
|
579
|
+
const current = tabs[index];
|
|
580
|
+
return /* @__PURE__ */ jsx(
|
|
581
|
+
motion.div,
|
|
582
|
+
{
|
|
583
|
+
ref: root,
|
|
584
|
+
initial: still ? false : { opacity: 0, y: 16 },
|
|
585
|
+
animate: seen || still ? { opacity: 1, y: 0 } : void 0,
|
|
586
|
+
transition: { duration: 0.55, ease: GLIDE },
|
|
587
|
+
className: cn(
|
|
588
|
+
"w-[380px] max-w-full rounded-[32px] bg-[#f1f1ef] p-2 text-[#242423]",
|
|
589
|
+
className
|
|
590
|
+
),
|
|
591
|
+
children: /* @__PURE__ */ jsxs("div", { ref: frame, className: "relative", children: [
|
|
592
|
+
width > 0 && /* @__PURE__ */ jsx(Bump, { l, r, w: width, base }),
|
|
593
|
+
/* @__PURE__ */ jsx(
|
|
594
|
+
"div",
|
|
595
|
+
{
|
|
596
|
+
role: "tablist",
|
|
597
|
+
"aria-label": "Sections",
|
|
598
|
+
onKeyDown: onKey,
|
|
599
|
+
className: "relative mx-auto flex h-16 items-center justify-between",
|
|
600
|
+
style: { maxWidth: tabs.length * 44 + (tabs.length - 1) * 24 },
|
|
601
|
+
children: tabs.map((t, i) => {
|
|
602
|
+
const Icon = t.icon;
|
|
603
|
+
const on = i === index;
|
|
604
|
+
return /* @__PURE__ */ jsxs(
|
|
605
|
+
"button",
|
|
606
|
+
{
|
|
607
|
+
ref: (el) => {
|
|
608
|
+
buttons.current[i] = el;
|
|
609
|
+
},
|
|
610
|
+
type: "button",
|
|
611
|
+
role: "tab",
|
|
612
|
+
id: `${id}-tab-${t.id}`,
|
|
613
|
+
"aria-selected": on,
|
|
614
|
+
"aria-controls": `${id}-panel`,
|
|
615
|
+
"aria-label": t.label,
|
|
616
|
+
title: t.label,
|
|
617
|
+
tabIndex: on ? 0 : -1,
|
|
618
|
+
onClick: () => choose(i),
|
|
619
|
+
className: cn(
|
|
620
|
+
"group/tab relative grid size-11 shrink-0 cursor-pointer place-items-center rounded-full outline-none transition-colors duration-300 focus-visible:ring-2 focus-visible:ring-zinc-400",
|
|
621
|
+
on ? "text-[#242423]" : "text-zinc-500 hover:text-[#242423]"
|
|
622
|
+
),
|
|
623
|
+
children: [
|
|
624
|
+
/* @__PURE__ */ jsx(
|
|
625
|
+
motion.span,
|
|
626
|
+
{
|
|
627
|
+
"aria-hidden": true,
|
|
628
|
+
className: "absolute inset-0 rounded-full bg-white/55 transition-colors duration-200 group-hover/tab:bg-white/85",
|
|
629
|
+
animate: { opacity: on ? 0 : 1, scale: on ? 0.6 : 1 },
|
|
630
|
+
transition: { duration: 0.3, ease: GLIDE }
|
|
631
|
+
}
|
|
632
|
+
),
|
|
633
|
+
/* @__PURE__ */ jsx(
|
|
634
|
+
motion.span,
|
|
635
|
+
{
|
|
636
|
+
className: "relative grid",
|
|
637
|
+
animate: { scale: on ? 1.08 : 1, y: on ? -1 : 0 },
|
|
638
|
+
transition: {
|
|
639
|
+
type: "spring",
|
|
640
|
+
stiffness: 500,
|
|
641
|
+
damping: 22,
|
|
642
|
+
delay: on && !still ? 0.08 : 0
|
|
643
|
+
},
|
|
644
|
+
children: /* @__PURE__ */ jsx(Icon, { className: "size-5", active: on })
|
|
645
|
+
}
|
|
646
|
+
)
|
|
647
|
+
]
|
|
648
|
+
},
|
|
649
|
+
t.id
|
|
650
|
+
);
|
|
651
|
+
})
|
|
652
|
+
}
|
|
653
|
+
),
|
|
654
|
+
/* @__PURE__ */ jsx(
|
|
655
|
+
motion.div,
|
|
656
|
+
{
|
|
657
|
+
id: `${id}-panel`,
|
|
658
|
+
role: "tabpanel",
|
|
659
|
+
"aria-labelledby": current ? `${id}-tab-${current.id}` : void 0,
|
|
660
|
+
className: "relative overflow-hidden rounded-b-[24px] bg-white",
|
|
661
|
+
style: { marginTop: PANEL_R },
|
|
662
|
+
initial: false,
|
|
663
|
+
animate: { height },
|
|
664
|
+
transition: still ? { duration: 0 } : { duration: 0.4, ease: GLIDE },
|
|
665
|
+
children: /* @__PURE__ */ jsx("div", { ref: inner, className: "px-4 pb-5 pt-0", children: /* @__PURE__ */ jsx(AnimatePresence, { mode: "popLayout", initial: false, custom: dir, children: /* @__PURE__ */ jsx(
|
|
666
|
+
motion.div,
|
|
667
|
+
{
|
|
668
|
+
custom: dir,
|
|
669
|
+
variants: {
|
|
670
|
+
in: (d) => ({
|
|
671
|
+
opacity: 0,
|
|
672
|
+
x: d * 28,
|
|
673
|
+
filter: "blur(6px)"
|
|
674
|
+
}),
|
|
675
|
+
shown: { opacity: 1, x: 0, filter: "blur(0px)" },
|
|
676
|
+
out: (d) => ({
|
|
677
|
+
opacity: 0,
|
|
678
|
+
x: d * -28,
|
|
679
|
+
filter: "blur(6px)"
|
|
680
|
+
})
|
|
681
|
+
},
|
|
682
|
+
initial: still ? false : "in",
|
|
683
|
+
animate: "shown",
|
|
684
|
+
exit: still ? void 0 : "out",
|
|
685
|
+
transition: { duration: 0.38, ease: GLIDE },
|
|
686
|
+
children: current?.content
|
|
687
|
+
},
|
|
688
|
+
current?.id
|
|
689
|
+
) }) })
|
|
690
|
+
}
|
|
691
|
+
)
|
|
692
|
+
] })
|
|
693
|
+
}
|
|
694
|
+
);
|
|
695
|
+
}
|
|
696
|
+
);
|
|
697
|
+
|
|
698
|
+
export {
|
|
699
|
+
LiquidTabs
|
|
700
|
+
};
|