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,1103 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
LayoutGridIcon
|
|
4
|
+
} from "./chunk-WWWKMU4Y.js";
|
|
5
|
+
import {
|
|
6
|
+
CompassIcon
|
|
7
|
+
} from "./chunk-BS4ZFJKW.js";
|
|
8
|
+
import {
|
|
9
|
+
ChartLineIcon
|
|
10
|
+
} from "./chunk-XDR4FO6Q.js";
|
|
11
|
+
import {
|
|
12
|
+
XIcon
|
|
13
|
+
} from "./chunk-7FQ4XU7E.js";
|
|
14
|
+
import {
|
|
15
|
+
BookmarkIcon
|
|
16
|
+
} from "./chunk-VIR5NV5W.js";
|
|
17
|
+
import {
|
|
18
|
+
ArrowRightIcon
|
|
19
|
+
} from "./chunk-H7XKIWHA.js";
|
|
20
|
+
import {
|
|
21
|
+
TrendingUpIcon
|
|
22
|
+
} from "./chunk-SSWKGVRI.js";
|
|
23
|
+
import {
|
|
24
|
+
SearchIcon
|
|
25
|
+
} from "./chunk-WOR2GMMN.js";
|
|
26
|
+
import {
|
|
27
|
+
cn
|
|
28
|
+
} from "./chunk-2TQSHVXA.js";
|
|
29
|
+
|
|
30
|
+
// src/components/search-modal/search-modal.tsx
|
|
31
|
+
import * as React from "react";
|
|
32
|
+
import { createPortal } from "react-dom";
|
|
33
|
+
import {
|
|
34
|
+
AnimatePresence,
|
|
35
|
+
motion,
|
|
36
|
+
useInView,
|
|
37
|
+
useReducedMotion
|
|
38
|
+
} from "motion/react";
|
|
39
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
40
|
+
var DEFAULT_GROUPS = ["Products", "Shops", "Watchlist", "Keywords"];
|
|
41
|
+
var DEFAULT_ITEMS = [
|
|
42
|
+
{
|
|
43
|
+
id: "p1",
|
|
44
|
+
group: "Products",
|
|
45
|
+
title: "Ceramic pour over kettle",
|
|
46
|
+
meta: "1,210 sales",
|
|
47
|
+
tint: "#e7efe4"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
id: "p2",
|
|
51
|
+
group: "Products",
|
|
52
|
+
title: "Linen tote bag",
|
|
53
|
+
meta: "970 sales",
|
|
54
|
+
tint: "#f3ebe0"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
id: "p3",
|
|
58
|
+
group: "Products",
|
|
59
|
+
title: "Walnut desk organiser",
|
|
60
|
+
meta: "640 sales",
|
|
61
|
+
tint: "#ece7e2"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
id: "p4",
|
|
65
|
+
group: "Products",
|
|
66
|
+
title: "Matte steel water bottle",
|
|
67
|
+
meta: "2,140 sales",
|
|
68
|
+
tint: "#e3e9f2"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
id: "p5",
|
|
72
|
+
group: "Products",
|
|
73
|
+
title: "Stoneware mug set",
|
|
74
|
+
meta: "388 sales",
|
|
75
|
+
tint: "#f1e6e6"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
id: "s1",
|
|
79
|
+
group: "Shops",
|
|
80
|
+
title: "Northwind Goods",
|
|
81
|
+
meta: "12 products",
|
|
82
|
+
tint: "#e3e9f2"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
id: "s2",
|
|
86
|
+
group: "Shops",
|
|
87
|
+
title: "Moonspirit Studio",
|
|
88
|
+
meta: "48 products",
|
|
89
|
+
tint: "#ece6f3"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
id: "s3",
|
|
93
|
+
group: "Shops",
|
|
94
|
+
title: "Paper and Pine",
|
|
95
|
+
meta: "31 products",
|
|
96
|
+
tint: "#e7efe4"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
id: "s4",
|
|
100
|
+
group: "Shops",
|
|
101
|
+
title: "Switchback Supply",
|
|
102
|
+
meta: "86 products",
|
|
103
|
+
tint: "#f3ebe0"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
id: "w1",
|
|
107
|
+
group: "Watchlist",
|
|
108
|
+
title: "Kettle price drops",
|
|
109
|
+
meta: "3 alerts",
|
|
110
|
+
tint: "#f1e6e6"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
id: "w2",
|
|
114
|
+
group: "Watchlist",
|
|
115
|
+
title: "Spring launch keywords",
|
|
116
|
+
meta: "12 terms",
|
|
117
|
+
tint: "#e3e9f2"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
id: "k1",
|
|
121
|
+
group: "Keywords",
|
|
122
|
+
title: "pour over coffee",
|
|
123
|
+
meta: "8.2k searches",
|
|
124
|
+
tint: "#ece7e2"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
id: "k2",
|
|
128
|
+
group: "Keywords",
|
|
129
|
+
title: "minimal desk setup",
|
|
130
|
+
meta: "5.1k searches",
|
|
131
|
+
tint: "#e7efe4"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
id: "k3",
|
|
135
|
+
group: "Keywords",
|
|
136
|
+
title: "linen tote",
|
|
137
|
+
meta: "2.4k searches",
|
|
138
|
+
tint: "#f3ebe0"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
id: "t1",
|
|
142
|
+
group: "Tags",
|
|
143
|
+
title: "handmade",
|
|
144
|
+
meta: "1.9k items",
|
|
145
|
+
tint: "#ece6f3"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
id: "t2",
|
|
149
|
+
group: "Tags",
|
|
150
|
+
title: "stoneware",
|
|
151
|
+
meta: "740 items",
|
|
152
|
+
tint: "#f1e6e6"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
id: "p6",
|
|
156
|
+
group: "Products",
|
|
157
|
+
title: "Gooseneck kettle, matte black",
|
|
158
|
+
meta: "1,880 sales",
|
|
159
|
+
tint: "#e3e9f2"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
id: "p7",
|
|
163
|
+
group: "Products",
|
|
164
|
+
title: "Studio desk lamp",
|
|
165
|
+
meta: "512 sales",
|
|
166
|
+
tint: "#f3ebe0"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
id: "p8",
|
|
170
|
+
group: "Products",
|
|
171
|
+
title: "Linen napkin set",
|
|
172
|
+
meta: "430 sales",
|
|
173
|
+
tint: "#e7efe4"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
id: "p9",
|
|
177
|
+
group: "Products",
|
|
178
|
+
title: "Standing desk mat",
|
|
179
|
+
meta: "296 sales",
|
|
180
|
+
tint: "#ece7e2"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
id: "s5",
|
|
184
|
+
group: "Shops",
|
|
185
|
+
title: "Studio North",
|
|
186
|
+
meta: "22 products",
|
|
187
|
+
tint: "#e3e9f2"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
id: "s6",
|
|
191
|
+
group: "Shops",
|
|
192
|
+
title: "Linen and Loom",
|
|
193
|
+
meta: "64 products",
|
|
194
|
+
tint: "#f3ebe0"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
id: "s7",
|
|
198
|
+
group: "Shops",
|
|
199
|
+
title: "Stoneware Co.",
|
|
200
|
+
meta: "19 products",
|
|
201
|
+
tint: "#f1e6e6"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
id: "w3",
|
|
205
|
+
group: "Watchlist",
|
|
206
|
+
title: "Studio lamp restock",
|
|
207
|
+
meta: "1 alert",
|
|
208
|
+
tint: "#ece6f3"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
id: "w4",
|
|
212
|
+
group: "Watchlist",
|
|
213
|
+
title: "Desk accessories trend",
|
|
214
|
+
meta: "6 terms",
|
|
215
|
+
tint: "#e7efe4"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
id: "w5",
|
|
219
|
+
group: "Watchlist",
|
|
220
|
+
title: "Stoneware competitors",
|
|
221
|
+
meta: "4 shops",
|
|
222
|
+
tint: "#ece7e2"
|
|
223
|
+
}
|
|
224
|
+
];
|
|
225
|
+
var DEFAULT_ACTIONS = [
|
|
226
|
+
{ id: "a1", label: "Product analytics", icon: "chart", key: "R" },
|
|
227
|
+
{ id: "a2", label: "Shop analyser", icon: "grid", key: "Y" },
|
|
228
|
+
{ id: "a3", label: "Keyword research", icon: "compass", key: "F" },
|
|
229
|
+
{ id: "a4", label: "Trends", icon: "trend", key: "T" }
|
|
230
|
+
];
|
|
231
|
+
var ACTION_ICONS = {
|
|
232
|
+
chart: ChartLineIcon,
|
|
233
|
+
grid: LayoutGridIcon,
|
|
234
|
+
compass: CompassIcon,
|
|
235
|
+
trend: TrendingUpIcon,
|
|
236
|
+
bookmark: BookmarkIcon
|
|
237
|
+
};
|
|
238
|
+
var GLIDE = [0.22, 1, 0.36, 1];
|
|
239
|
+
var POP = { type: "spring", stiffness: 520, damping: 30 };
|
|
240
|
+
var SOFT = { type: "spring", stiffness: 340, damping: 34 };
|
|
241
|
+
function Marked({
|
|
242
|
+
text,
|
|
243
|
+
query,
|
|
244
|
+
still
|
|
245
|
+
}) {
|
|
246
|
+
const q = query.trim().toLowerCase();
|
|
247
|
+
if (!q) return /* @__PURE__ */ jsx(Fragment, { children: text });
|
|
248
|
+
const parts = [];
|
|
249
|
+
const lower = text.toLowerCase();
|
|
250
|
+
let at = 0;
|
|
251
|
+
let k = 0;
|
|
252
|
+
for (; ; ) {
|
|
253
|
+
const i = lower.indexOf(q, at);
|
|
254
|
+
if (i < 0) break;
|
|
255
|
+
if (i > at) parts.push(text.slice(at, i));
|
|
256
|
+
parts.push(
|
|
257
|
+
/* @__PURE__ */ jsxs("span", { className: "relative", children: [
|
|
258
|
+
/* @__PURE__ */ jsx(
|
|
259
|
+
motion.span,
|
|
260
|
+
{
|
|
261
|
+
"aria-hidden": true,
|
|
262
|
+
className: "absolute -inset-x-0.5 inset-y-0 rounded-[4px] bg-[#f5d77a]/45",
|
|
263
|
+
initial: still ? false : { scaleX: 0 },
|
|
264
|
+
animate: { scaleX: 1 },
|
|
265
|
+
transition: { duration: 0.35, ease: GLIDE },
|
|
266
|
+
style: { originX: 0 }
|
|
267
|
+
}
|
|
268
|
+
),
|
|
269
|
+
/* @__PURE__ */ jsx("span", { className: "relative", children: text.slice(i, i + q.length) })
|
|
270
|
+
] }, k++)
|
|
271
|
+
);
|
|
272
|
+
at = i + q.length;
|
|
273
|
+
}
|
|
274
|
+
parts.push(text.slice(at));
|
|
275
|
+
return /* @__PURE__ */ jsx(Fragment, { children: parts });
|
|
276
|
+
}
|
|
277
|
+
function Key({ children }) {
|
|
278
|
+
return /* @__PURE__ */ jsx("span", { className: "grid h-6 min-w-6 place-items-center rounded-md bg-white px-1.5 text-[12px] font-medium text-[#242423]/60 shadow-[0_1px_2px_rgba(36,36,35,0.12)]", children });
|
|
279
|
+
}
|
|
280
|
+
function Count({
|
|
281
|
+
value,
|
|
282
|
+
still,
|
|
283
|
+
className
|
|
284
|
+
}) {
|
|
285
|
+
return /* @__PURE__ */ jsx(
|
|
286
|
+
"span",
|
|
287
|
+
{
|
|
288
|
+
className: cn(
|
|
289
|
+
"relative inline-grid overflow-hidden tabular-nums",
|
|
290
|
+
className
|
|
291
|
+
),
|
|
292
|
+
children: /* @__PURE__ */ jsx(AnimatePresence, { mode: "popLayout", initial: false, children: /* @__PURE__ */ jsx(
|
|
293
|
+
motion.span,
|
|
294
|
+
{
|
|
295
|
+
initial: still ? { opacity: 0 } : { y: "80%", opacity: 0 },
|
|
296
|
+
animate: { y: 0, opacity: 1 },
|
|
297
|
+
exit: still ? { opacity: 0 } : { y: "-80%", opacity: 0 },
|
|
298
|
+
transition: { duration: 0.25, ease: GLIDE },
|
|
299
|
+
children: value
|
|
300
|
+
},
|
|
301
|
+
value
|
|
302
|
+
) })
|
|
303
|
+
}
|
|
304
|
+
);
|
|
305
|
+
}
|
|
306
|
+
var SearchModal = React.forwardRef(
|
|
307
|
+
function SearchModal2({
|
|
308
|
+
items = DEFAULT_ITEMS,
|
|
309
|
+
groups = DEFAULT_GROUPS,
|
|
310
|
+
defaultScope = "All",
|
|
311
|
+
recent = ["p1", "s2", "p2", "s3"],
|
|
312
|
+
actions = DEFAULT_ACTIONS,
|
|
313
|
+
placeholder = "Search products, shops and more",
|
|
314
|
+
examples = ["kettle", "studio", "linen", "desk", "stoneware"],
|
|
315
|
+
modal = false,
|
|
316
|
+
defaultOpen = false,
|
|
317
|
+
onSelect,
|
|
318
|
+
className
|
|
319
|
+
}, ref) {
|
|
320
|
+
const still = !!useReducedMotion();
|
|
321
|
+
const uid = React.useId();
|
|
322
|
+
const root = React.useRef(null);
|
|
323
|
+
React.useImperativeHandle(ref, () => root.current);
|
|
324
|
+
const input = React.useRef(null);
|
|
325
|
+
const body = React.useRef(null);
|
|
326
|
+
const seen = useInView(root, { once: true, amount: 0.3 });
|
|
327
|
+
const shown = seen || still || modal;
|
|
328
|
+
const [open, setOpen] = React.useState(!modal || defaultOpen);
|
|
329
|
+
const [expanded, setExpanded] = React.useState(modal);
|
|
330
|
+
const showCard = modal || expanded;
|
|
331
|
+
const [query, setQuery] = React.useState("");
|
|
332
|
+
const [scope, setScope] = React.useState(defaultScope);
|
|
333
|
+
const [cursor, setCursor] = React.useState(0);
|
|
334
|
+
const [focused, setFocused] = React.useState(false);
|
|
335
|
+
const [typing, setTyping] = React.useState(false);
|
|
336
|
+
const [hint, setHint] = React.useState(0);
|
|
337
|
+
const typingTimer = React.useRef(0);
|
|
338
|
+
React.useEffect(() => () => window.clearTimeout(typingTimer.current), []);
|
|
339
|
+
const scopes = ["All", ...groups];
|
|
340
|
+
const q = query.trim().toLowerCase();
|
|
341
|
+
const inScope = (i) => scope === "All" || i.group === scope;
|
|
342
|
+
const matches = React.useMemo(
|
|
343
|
+
() => q ? items.filter((i) => i.title.toLowerCase().includes(q)) : [],
|
|
344
|
+
[q, items]
|
|
345
|
+
);
|
|
346
|
+
const counts = React.useMemo(() => {
|
|
347
|
+
const c = { All: matches.length };
|
|
348
|
+
for (const g of groups)
|
|
349
|
+
c[g] = matches.filter((i) => i.group === g).length;
|
|
350
|
+
return c;
|
|
351
|
+
}, [matches, groups]);
|
|
352
|
+
const recentItems = recent.map((id) => items.find((i) => i.id === id)).filter((i) => !!i && inScope(i)).slice(0, 4);
|
|
353
|
+
const found = matches.filter(inScope);
|
|
354
|
+
const results = found.slice(0, 7);
|
|
355
|
+
const entries = q ? results.map((item) => ({
|
|
356
|
+
kind: "item",
|
|
357
|
+
key: `i-${item.id}`,
|
|
358
|
+
item
|
|
359
|
+
})) : [
|
|
360
|
+
...recentItems.map((item) => ({
|
|
361
|
+
kind: "item",
|
|
362
|
+
key: `r-${item.id}`,
|
|
363
|
+
item
|
|
364
|
+
})),
|
|
365
|
+
...actions.map((action) => ({
|
|
366
|
+
kind: "action",
|
|
367
|
+
key: `a-${action.id}`,
|
|
368
|
+
action
|
|
369
|
+
}))
|
|
370
|
+
];
|
|
371
|
+
const at = entries.length ? Math.min(cursor, entries.length - 1) : -1;
|
|
372
|
+
const activeKey = at >= 0 ? entries[at].key : null;
|
|
373
|
+
React.useEffect(() => setCursor(0), [q, scope]);
|
|
374
|
+
React.useEffect(() => {
|
|
375
|
+
if (query || examples.length < 2 || still) return;
|
|
376
|
+
const t = window.setInterval(
|
|
377
|
+
() => setHint((h) => (h + 1) % examples.length),
|
|
378
|
+
2400
|
|
379
|
+
);
|
|
380
|
+
return () => window.clearInterval(t);
|
|
381
|
+
}, [query, examples.length, still]);
|
|
382
|
+
const example = examples.length ? examples[hint % examples.length] : void 0;
|
|
383
|
+
const [height, setHeight] = React.useState("auto");
|
|
384
|
+
React.useLayoutEffect(() => {
|
|
385
|
+
const el = body.current;
|
|
386
|
+
if (!el) return;
|
|
387
|
+
setHeight(el.offsetHeight);
|
|
388
|
+
if (typeof ResizeObserver === "undefined") return;
|
|
389
|
+
const ro = new ResizeObserver(() => setHeight(el.offsetHeight));
|
|
390
|
+
ro.observe(el);
|
|
391
|
+
return () => ro.disconnect();
|
|
392
|
+
}, [showCard]);
|
|
393
|
+
React.useEffect(() => {
|
|
394
|
+
if (modal || !expanded) return;
|
|
395
|
+
const away = (e) => {
|
|
396
|
+
if (!root.current?.contains(e.target)) setExpanded(false);
|
|
397
|
+
};
|
|
398
|
+
document.addEventListener("pointerdown", away);
|
|
399
|
+
return () => document.removeEventListener("pointerdown", away);
|
|
400
|
+
}, [modal, expanded]);
|
|
401
|
+
React.useEffect(() => {
|
|
402
|
+
if (!modal) return;
|
|
403
|
+
const onKey = (e) => {
|
|
404
|
+
if ((e.metaKey || e.ctrlKey) && e.key.toLowerCase() === "k") {
|
|
405
|
+
e.preventDefault();
|
|
406
|
+
setOpen((o) => !o);
|
|
407
|
+
}
|
|
408
|
+
};
|
|
409
|
+
window.addEventListener("keydown", onKey);
|
|
410
|
+
return () => window.removeEventListener("keydown", onKey);
|
|
411
|
+
}, [modal]);
|
|
412
|
+
React.useEffect(() => {
|
|
413
|
+
if (modal && open) requestAnimationFrame(() => input.current?.focus());
|
|
414
|
+
}, [modal, open]);
|
|
415
|
+
const choose = (entry) => {
|
|
416
|
+
if (!entry) return;
|
|
417
|
+
onSelect?.(entry.kind === "item" ? entry.item : entry.action);
|
|
418
|
+
};
|
|
419
|
+
const onKeyDown = (e) => {
|
|
420
|
+
if (!expanded) setExpanded(true);
|
|
421
|
+
if (e.key === "Tab" && !query && example && !e.shiftKey) {
|
|
422
|
+
e.preventDefault();
|
|
423
|
+
setQuery(example);
|
|
424
|
+
} else if (e.key === "ArrowDown" || e.key === "ArrowUp") {
|
|
425
|
+
e.preventDefault();
|
|
426
|
+
if (!entries.length) return;
|
|
427
|
+
setCursor(
|
|
428
|
+
(c) => (Math.min(c, entries.length - 1) + (e.key === "ArrowDown" ? 1 : entries.length - 1)) % entries.length
|
|
429
|
+
);
|
|
430
|
+
} else if ((e.key === "ArrowRight" || e.key === "ArrowLeft") && e.altKey) {
|
|
431
|
+
e.preventDefault();
|
|
432
|
+
const i = scopes.indexOf(scope);
|
|
433
|
+
setScope(
|
|
434
|
+
scopes[(i + (e.key === "ArrowRight" ? 1 : scopes.length - 1)) % scopes.length]
|
|
435
|
+
);
|
|
436
|
+
} else if (e.key === "Enter") {
|
|
437
|
+
e.preventDefault();
|
|
438
|
+
choose(entries[at]);
|
|
439
|
+
} else if (e.key === "Escape") {
|
|
440
|
+
if (query) setQuery("");
|
|
441
|
+
else if (modal) setOpen(false);
|
|
442
|
+
else if (expanded) setExpanded(false);
|
|
443
|
+
else return;
|
|
444
|
+
e.preventDefault();
|
|
445
|
+
e.stopPropagation();
|
|
446
|
+
} else if ((e.metaKey || e.ctrlKey) && e.key.length === 1) {
|
|
447
|
+
const action = actions.find(
|
|
448
|
+
(a) => a.key?.toLowerCase() === e.key.toLowerCase()
|
|
449
|
+
);
|
|
450
|
+
if (!action) return;
|
|
451
|
+
e.preventDefault();
|
|
452
|
+
choose({ kind: "action", key: `a-${action.id}`, action });
|
|
453
|
+
}
|
|
454
|
+
};
|
|
455
|
+
const enter = (delay) => ({
|
|
456
|
+
initial: still ? false : { opacity: 0, y: 10, filter: "blur(4px)" },
|
|
457
|
+
animate: shown ? { opacity: 1, y: 0, filter: "blur(0px)" } : void 0,
|
|
458
|
+
transition: { duration: 0.5, ease: GLIDE, delay: still ? 0 : delay }
|
|
459
|
+
});
|
|
460
|
+
const rise = (i) => ({
|
|
461
|
+
initial: still ? false : { opacity: 0, y: 8, filter: "blur(4px)" },
|
|
462
|
+
animate: { opacity: 1, y: 0, filter: "blur(0px)" },
|
|
463
|
+
transition: { duration: 0.35, ease: GLIDE, delay: still ? 0 : i * 0.04 }
|
|
464
|
+
});
|
|
465
|
+
const optionProps = (entry, index) => ({
|
|
466
|
+
id: `${uid}-${entry.key}`,
|
|
467
|
+
role: "option",
|
|
468
|
+
"aria-selected": entry.key === activeKey,
|
|
469
|
+
onPointerEnter: () => setCursor(index),
|
|
470
|
+
onPointerDown: (e) => e.preventDefault(),
|
|
471
|
+
onClick: () => choose(entry)
|
|
472
|
+
});
|
|
473
|
+
const tail = (key, extra) => /* @__PURE__ */ jsx(AnimatePresence, { mode: "popLayout", initial: false, children: activeKey === key ? /* @__PURE__ */ jsxs(
|
|
474
|
+
motion.span,
|
|
475
|
+
{
|
|
476
|
+
initial: still ? { opacity: 0 } : { opacity: 0, x: -6 },
|
|
477
|
+
animate: { opacity: 1, x: 0 },
|
|
478
|
+
exit: { opacity: 0, transition: { duration: 0.1 } },
|
|
479
|
+
transition: { duration: 0.25, ease: GLIDE },
|
|
480
|
+
className: "relative flex shrink-0 items-center gap-1 text-[12px] font-medium text-[#242423]/55",
|
|
481
|
+
children: [
|
|
482
|
+
"Open",
|
|
483
|
+
/* @__PURE__ */ jsx("span", { className: "grid h-5 min-w-5 place-items-center rounded-[6px] bg-white px-1 text-[12px] shadow-[0_1px_2px_rgba(36,36,35,0.12)]", children: "\u21B5" })
|
|
484
|
+
]
|
|
485
|
+
},
|
|
486
|
+
"open"
|
|
487
|
+
) : extra });
|
|
488
|
+
const top = q ? results[0] : void 0;
|
|
489
|
+
const rest = q ? results.slice(1) : [];
|
|
490
|
+
const panel = /* @__PURE__ */ jsxs(
|
|
491
|
+
"div",
|
|
492
|
+
{
|
|
493
|
+
ref: root,
|
|
494
|
+
onKeyDown: (e) => {
|
|
495
|
+
if (e.key !== "Escape" || e.target === input.current || !query)
|
|
496
|
+
return;
|
|
497
|
+
setQuery("");
|
|
498
|
+
input.current?.focus();
|
|
499
|
+
e.stopPropagation();
|
|
500
|
+
},
|
|
501
|
+
className: cn(
|
|
502
|
+
"relative w-[560px] max-w-full text-[#242423]",
|
|
503
|
+
!modal && className
|
|
504
|
+
),
|
|
505
|
+
children: [
|
|
506
|
+
/* @__PURE__ */ jsxs(
|
|
507
|
+
motion.div,
|
|
508
|
+
{
|
|
509
|
+
...enter(0),
|
|
510
|
+
animate: shown ? {
|
|
511
|
+
opacity: 1,
|
|
512
|
+
y: 0,
|
|
513
|
+
filter: "blur(0px)",
|
|
514
|
+
boxShadow: focused ? "0 0 0 4px rgba(36,36,35,0.06), 0 1px 2px rgba(0,0,0,0.05), 0 16px 36px -18px rgba(0,0,0,0.22)" : "0 0 0 0px rgba(36,36,35,0), 0 1px 2px rgba(0,0,0,0.04), 0 12px 32px -16px rgba(0,0,0,0.18)"
|
|
515
|
+
} : void 0,
|
|
516
|
+
className: "relative flex h-14 items-center gap-3 rounded-[22px] bg-white pl-4 pr-2.5",
|
|
517
|
+
children: [
|
|
518
|
+
/* @__PURE__ */ jsx(
|
|
519
|
+
SearchIcon,
|
|
520
|
+
{
|
|
521
|
+
className: "size-5 shrink-0 text-[#242423]/45",
|
|
522
|
+
active: typing
|
|
523
|
+
}
|
|
524
|
+
),
|
|
525
|
+
/* @__PURE__ */ jsxs("div", { className: "relative h-full min-w-0 flex-1", children: [
|
|
526
|
+
/* @__PURE__ */ jsx(
|
|
527
|
+
"input",
|
|
528
|
+
{
|
|
529
|
+
ref: input,
|
|
530
|
+
value: query,
|
|
531
|
+
role: "combobox",
|
|
532
|
+
"aria-expanded": showCard,
|
|
533
|
+
"aria-controls": `${uid}-list`,
|
|
534
|
+
"aria-activedescendant": activeKey ? `${uid}-${activeKey}` : void 0,
|
|
535
|
+
"aria-label": "Search",
|
|
536
|
+
placeholder: example ? "" : placeholder,
|
|
537
|
+
onChange: (e) => {
|
|
538
|
+
setQuery(e.target.value);
|
|
539
|
+
setTyping(true);
|
|
540
|
+
window.clearTimeout(typingTimer.current);
|
|
541
|
+
typingTimer.current = window.setTimeout(
|
|
542
|
+
() => setTyping(false),
|
|
543
|
+
600
|
|
544
|
+
);
|
|
545
|
+
},
|
|
546
|
+
onFocus: () => {
|
|
547
|
+
setFocused(true);
|
|
548
|
+
setExpanded(true);
|
|
549
|
+
},
|
|
550
|
+
onPointerDown: () => setExpanded(true),
|
|
551
|
+
onBlur: () => setFocused(false),
|
|
552
|
+
onKeyDown,
|
|
553
|
+
className: "h-full w-full bg-transparent text-[16px] outline-none placeholder:text-[#242423]/35"
|
|
554
|
+
}
|
|
555
|
+
),
|
|
556
|
+
!query && example && /* @__PURE__ */ jsxs(
|
|
557
|
+
"span",
|
|
558
|
+
{
|
|
559
|
+
"aria-hidden": true,
|
|
560
|
+
className: "pointer-events-none absolute inset-0 flex items-center overflow-hidden whitespace-nowrap text-[16px] text-[#242423]/35",
|
|
561
|
+
children: [
|
|
562
|
+
"Search for\xA0",
|
|
563
|
+
/* @__PURE__ */ jsx("span", { className: "relative inline-grid overflow-hidden", children: /* @__PURE__ */ jsx(AnimatePresence, { mode: "popLayout", initial: false, children: /* @__PURE__ */ jsxs(
|
|
564
|
+
motion.span,
|
|
565
|
+
{
|
|
566
|
+
initial: still ? { opacity: 0 } : { y: "80%", opacity: 0, filter: "blur(3px)" },
|
|
567
|
+
animate: { y: 0, opacity: 1, filter: "blur(0px)" },
|
|
568
|
+
exit: still ? { opacity: 0 } : { y: "-80%", opacity: 0, filter: "blur(3px)" },
|
|
569
|
+
transition: { duration: 0.4, ease: GLIDE },
|
|
570
|
+
className: "text-[#242423]/55",
|
|
571
|
+
children: [
|
|
572
|
+
"\u201C",
|
|
573
|
+
example,
|
|
574
|
+
"\u201D"
|
|
575
|
+
]
|
|
576
|
+
},
|
|
577
|
+
example
|
|
578
|
+
) }) }),
|
|
579
|
+
focused && /* @__PURE__ */ jsx("span", { className: "ml-2 rounded-md bg-[#242423]/[0.05] px-1.5 text-[12px] leading-5 text-[#242423]/45", children: "Tab" })
|
|
580
|
+
]
|
|
581
|
+
}
|
|
582
|
+
)
|
|
583
|
+
] }),
|
|
584
|
+
/* @__PURE__ */ jsx(AnimatePresence, { mode: "popLayout", initial: false, children: query ? /* @__PURE__ */ jsx(
|
|
585
|
+
motion.button,
|
|
586
|
+
{
|
|
587
|
+
type: "button",
|
|
588
|
+
"aria-label": "Clear search",
|
|
589
|
+
onClick: () => {
|
|
590
|
+
setQuery("");
|
|
591
|
+
input.current?.focus();
|
|
592
|
+
},
|
|
593
|
+
initial: still ? { opacity: 0 } : { opacity: 0, scale: 0.6, rotate: -90 },
|
|
594
|
+
animate: { opacity: 1, scale: 1, rotate: 0 },
|
|
595
|
+
exit: still ? { opacity: 0 } : { opacity: 0, scale: 0.6, rotate: 90 },
|
|
596
|
+
whileTap: still ? void 0 : { scale: 0.88 },
|
|
597
|
+
transition: POP,
|
|
598
|
+
className: "group grid size-9 cursor-pointer place-items-center rounded-full text-[#242423]/55 outline-none transition-colors hover:bg-[#242423]/[0.05] hover:text-[#242423] focus-visible:ring-2 focus-visible:ring-[#242423]/30",
|
|
599
|
+
children: /* @__PURE__ */ jsx(XIcon, { className: "size-4" })
|
|
600
|
+
},
|
|
601
|
+
"clear"
|
|
602
|
+
) : /* @__PURE__ */ jsxs(
|
|
603
|
+
motion.span,
|
|
604
|
+
{
|
|
605
|
+
"aria-hidden": true,
|
|
606
|
+
initial: still ? { opacity: 0 } : { opacity: 0, scale: 0.8 },
|
|
607
|
+
animate: { opacity: 1, scale: 1 },
|
|
608
|
+
exit: { opacity: 0, scale: 0.8 },
|
|
609
|
+
transition: POP,
|
|
610
|
+
className: "flex gap-1 pr-1",
|
|
611
|
+
children: [
|
|
612
|
+
/* @__PURE__ */ jsx(Key, { children: "\u2318" }),
|
|
613
|
+
/* @__PURE__ */ jsx(Key, { children: "K" })
|
|
614
|
+
]
|
|
615
|
+
},
|
|
616
|
+
"keys"
|
|
617
|
+
) })
|
|
618
|
+
]
|
|
619
|
+
}
|
|
620
|
+
),
|
|
621
|
+
/* @__PURE__ */ jsx(AnimatePresence, { children: showCard && /* @__PURE__ */ jsxs(
|
|
622
|
+
motion.div,
|
|
623
|
+
{
|
|
624
|
+
initial: still ? { opacity: 0 } : { opacity: 0, y: -8, scale: 0.98, filter: "blur(6px)" },
|
|
625
|
+
animate: { opacity: 1, y: 0, scale: 1, filter: "blur(0px)" },
|
|
626
|
+
exit: still ? { opacity: 0 } : {
|
|
627
|
+
opacity: 0,
|
|
628
|
+
y: -6,
|
|
629
|
+
scale: 0.98,
|
|
630
|
+
filter: "blur(4px)",
|
|
631
|
+
transition: { duration: 0.18 }
|
|
632
|
+
},
|
|
633
|
+
transition: { type: "spring", stiffness: 380, damping: 32 },
|
|
634
|
+
style: { transformOrigin: "50% 0%" },
|
|
635
|
+
className: cn(
|
|
636
|
+
"mt-2 overflow-hidden rounded-[24px] bg-white shadow-[0_1px_2px_rgba(0,0,0,0.04),0_18px_44px_-18px_rgba(0,0,0,0.25)]",
|
|
637
|
+
modal ? "relative" : "absolute inset-x-0 top-full z-30"
|
|
638
|
+
),
|
|
639
|
+
children: [
|
|
640
|
+
/* @__PURE__ */ jsx("div", { className: "p-2", children: /* @__PURE__ */ jsx(
|
|
641
|
+
"div",
|
|
642
|
+
{
|
|
643
|
+
role: "tablist",
|
|
644
|
+
"aria-label": "Search in",
|
|
645
|
+
className: "flex gap-0.5 overflow-x-auto rounded-full bg-[#242423]/[0.04] p-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",
|
|
646
|
+
children: scopes.map((s) => {
|
|
647
|
+
const on = s === scope;
|
|
648
|
+
return /* @__PURE__ */ jsxs(
|
|
649
|
+
"button",
|
|
650
|
+
{
|
|
651
|
+
type: "button",
|
|
652
|
+
role: "tab",
|
|
653
|
+
"aria-selected": on,
|
|
654
|
+
onMouseDown: (e) => e.preventDefault(),
|
|
655
|
+
onClick: () => setScope(s),
|
|
656
|
+
className: cn(
|
|
657
|
+
"relative flex h-8 shrink-0 cursor-pointer items-center gap-1.5 rounded-full px-3 text-[14px] outline-none transition-colors focus-visible:ring-2 focus-visible:ring-[#242423]/30",
|
|
658
|
+
on ? "font-medium text-[#242423]" : "text-[#242423]/50 hover:text-[#242423]/80"
|
|
659
|
+
),
|
|
660
|
+
children: [
|
|
661
|
+
on && /* @__PURE__ */ jsx(
|
|
662
|
+
motion.span,
|
|
663
|
+
{
|
|
664
|
+
layoutId: `${uid}-scope`,
|
|
665
|
+
transition: still ? { duration: 0 } : POP,
|
|
666
|
+
className: "absolute inset-0 rounded-full bg-white shadow-[0_1px_2px_rgba(0,0,0,0.08)]"
|
|
667
|
+
}
|
|
668
|
+
),
|
|
669
|
+
/* @__PURE__ */ jsx("span", { className: "relative", children: s }),
|
|
670
|
+
/* @__PURE__ */ jsx(AnimatePresence, { initial: false, children: q && /* @__PURE__ */ jsx(
|
|
671
|
+
motion.span,
|
|
672
|
+
{
|
|
673
|
+
initial: still ? { opacity: 0 } : { opacity: 0, width: 0, scale: 0.6 },
|
|
674
|
+
animate: { opacity: 1, width: "auto", scale: 1 },
|
|
675
|
+
exit: still ? { opacity: 0 } : { opacity: 0, width: 0, scale: 0.6 },
|
|
676
|
+
transition: POP,
|
|
677
|
+
className: cn(
|
|
678
|
+
"relative grid h-5 min-w-5 place-items-center rounded-full px-1 text-[12px]",
|
|
679
|
+
counts[s] ? on ? "bg-[#242423] text-white" : "bg-[#242423]/[0.08] text-[#242423]/60" : "bg-transparent text-[#242423]/30"
|
|
680
|
+
),
|
|
681
|
+
children: /* @__PURE__ */ jsx(Count, { value: counts[s] ?? 0, still })
|
|
682
|
+
}
|
|
683
|
+
) })
|
|
684
|
+
]
|
|
685
|
+
},
|
|
686
|
+
s
|
|
687
|
+
);
|
|
688
|
+
})
|
|
689
|
+
}
|
|
690
|
+
) }),
|
|
691
|
+
/* @__PURE__ */ jsx(
|
|
692
|
+
motion.div,
|
|
693
|
+
{
|
|
694
|
+
animate: { height },
|
|
695
|
+
transition: still ? { duration: 0 } : SOFT,
|
|
696
|
+
className: "overflow-hidden",
|
|
697
|
+
children: /* @__PURE__ */ jsx(
|
|
698
|
+
"div",
|
|
699
|
+
{
|
|
700
|
+
ref: body,
|
|
701
|
+
id: `${uid}-list`,
|
|
702
|
+
role: "listbox",
|
|
703
|
+
"aria-label": "Results",
|
|
704
|
+
className: "flow-root px-3 pb-3",
|
|
705
|
+
children: /* @__PURE__ */ jsx(AnimatePresence, { mode: "popLayout", initial: false, children: !q ? /* @__PURE__ */ jsxs(
|
|
706
|
+
motion.div,
|
|
707
|
+
{
|
|
708
|
+
exit: { opacity: 0, transition: { duration: 0.12 } },
|
|
709
|
+
children: [
|
|
710
|
+
recentItems.length > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
711
|
+
/* @__PURE__ */ jsx("p", { className: "px-1 pb-2 pt-2 text-[12px] font-medium text-[#242423]/45", children: "Jump back in" }),
|
|
712
|
+
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-2 gap-2", children: recentItems.map((item, i) => {
|
|
713
|
+
const entry = entries[i];
|
|
714
|
+
const on = entry.key === activeKey;
|
|
715
|
+
return /* @__PURE__ */ jsxs(
|
|
716
|
+
motion.div,
|
|
717
|
+
{
|
|
718
|
+
...rise(i),
|
|
719
|
+
...optionProps(entry, i),
|
|
720
|
+
whileTap: still ? void 0 : { scale: 0.97 },
|
|
721
|
+
className: "group relative cursor-pointer rounded-2xl p-3",
|
|
722
|
+
style: {
|
|
723
|
+
backgroundColor: item.tint ?? "#f1f1ef"
|
|
724
|
+
},
|
|
725
|
+
children: [
|
|
726
|
+
/* @__PURE__ */ jsx(
|
|
727
|
+
motion.span,
|
|
728
|
+
{
|
|
729
|
+
"aria-hidden": true,
|
|
730
|
+
animate: { opacity: on ? 1 : 0 },
|
|
731
|
+
transition: { duration: 0.2 },
|
|
732
|
+
className: "absolute inset-0 rounded-2xl bg-[#242423]/[0.05]"
|
|
733
|
+
}
|
|
734
|
+
),
|
|
735
|
+
/* @__PURE__ */ jsxs("div", { className: "relative flex items-start justify-between gap-2", children: [
|
|
736
|
+
/* @__PURE__ */ jsx(
|
|
737
|
+
motion.span,
|
|
738
|
+
{
|
|
739
|
+
animate: {
|
|
740
|
+
rotate: on && !still ? -6 : 0,
|
|
741
|
+
scale: on && !still ? 1.06 : 1
|
|
742
|
+
},
|
|
743
|
+
transition: POP,
|
|
744
|
+
className: "grid size-8 place-items-center rounded-[10px] bg-white/80 text-[14px] font-semibold text-[#242423]/70",
|
|
745
|
+
children: item.title[0].toUpperCase()
|
|
746
|
+
}
|
|
747
|
+
),
|
|
748
|
+
tail(
|
|
749
|
+
entry.key,
|
|
750
|
+
/* @__PURE__ */ jsx(
|
|
751
|
+
"span",
|
|
752
|
+
{
|
|
753
|
+
className: "text-[12px] text-[#242423]/45",
|
|
754
|
+
children: item.group
|
|
755
|
+
},
|
|
756
|
+
"group"
|
|
757
|
+
)
|
|
758
|
+
)
|
|
759
|
+
] }),
|
|
760
|
+
/* @__PURE__ */ jsx("p", { className: "relative mt-3 truncate text-[14px] font-medium", children: item.title }),
|
|
761
|
+
item.meta && /* @__PURE__ */ jsx("p", { className: "relative text-[12px] text-[#242423]/55", children: item.meta })
|
|
762
|
+
]
|
|
763
|
+
},
|
|
764
|
+
entry.key
|
|
765
|
+
);
|
|
766
|
+
}) })
|
|
767
|
+
] }),
|
|
768
|
+
actions.length > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
769
|
+
/* @__PURE__ */ jsx("p", { className: "px-1 pb-2 pt-4 text-[12px] font-medium text-[#242423]/45", children: "Shortcuts" }),
|
|
770
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-1.5", children: actions.map((action, j) => {
|
|
771
|
+
const index = recentItems.length + j;
|
|
772
|
+
const entry = entries[index];
|
|
773
|
+
const on = entry.key === activeKey;
|
|
774
|
+
const Icon = ACTION_ICONS[action.icon];
|
|
775
|
+
return /* @__PURE__ */ jsxs(
|
|
776
|
+
motion.div,
|
|
777
|
+
{
|
|
778
|
+
...rise(index),
|
|
779
|
+
...optionProps(entry, index),
|
|
780
|
+
whileTap: still ? void 0 : { scale: 0.95 },
|
|
781
|
+
className: cn(
|
|
782
|
+
"group relative flex h-9 cursor-pointer items-center gap-2 rounded-full pl-2.5 pr-3 text-[14px] transition-colors",
|
|
783
|
+
on ? "bg-[#242423]/[0.08]" : "bg-[#242423]/[0.04]"
|
|
784
|
+
),
|
|
785
|
+
children: [
|
|
786
|
+
/* @__PURE__ */ jsx(
|
|
787
|
+
Icon,
|
|
788
|
+
{
|
|
789
|
+
className: "size-4 text-[#242423]/70",
|
|
790
|
+
active: on
|
|
791
|
+
}
|
|
792
|
+
),
|
|
793
|
+
action.label,
|
|
794
|
+
/* @__PURE__ */ jsx(AnimatePresence, { initial: false, children: on && action.key && /* @__PURE__ */ jsxs(
|
|
795
|
+
motion.span,
|
|
796
|
+
{
|
|
797
|
+
initial: still ? { opacity: 0 } : { opacity: 0, width: 0 },
|
|
798
|
+
animate: {
|
|
799
|
+
opacity: 1,
|
|
800
|
+
width: "auto"
|
|
801
|
+
},
|
|
802
|
+
exit: still ? { opacity: 0 } : { opacity: 0, width: 0 },
|
|
803
|
+
transition: {
|
|
804
|
+
duration: 0.25,
|
|
805
|
+
ease: GLIDE
|
|
806
|
+
},
|
|
807
|
+
className: "overflow-hidden whitespace-nowrap text-[12px] text-[#242423]/45",
|
|
808
|
+
children: [
|
|
809
|
+
"\u2318",
|
|
810
|
+
action.key
|
|
811
|
+
]
|
|
812
|
+
}
|
|
813
|
+
) })
|
|
814
|
+
]
|
|
815
|
+
},
|
|
816
|
+
entry.key
|
|
817
|
+
);
|
|
818
|
+
}) })
|
|
819
|
+
] })
|
|
820
|
+
]
|
|
821
|
+
},
|
|
822
|
+
"idle"
|
|
823
|
+
) : top ? /* @__PURE__ */ jsxs(
|
|
824
|
+
motion.div,
|
|
825
|
+
{
|
|
826
|
+
exit: { opacity: 0, transition: { duration: 0.12 } },
|
|
827
|
+
children: [
|
|
828
|
+
/* @__PURE__ */ jsx("p", { className: "px-1 pb-2 pt-2 text-[12px] font-medium text-[#242423]/45", children: "Top result" }),
|
|
829
|
+
(() => {
|
|
830
|
+
const entry = entries[0];
|
|
831
|
+
const on = entry.key === activeKey;
|
|
832
|
+
return /* @__PURE__ */ jsxs(
|
|
833
|
+
motion.div,
|
|
834
|
+
{
|
|
835
|
+
...rise(0),
|
|
836
|
+
...optionProps(entry, 0),
|
|
837
|
+
animate: {
|
|
838
|
+
opacity: 1,
|
|
839
|
+
y: on && !still ? -1 : 0,
|
|
840
|
+
filter: "blur(0px)"
|
|
841
|
+
},
|
|
842
|
+
whileTap: still ? void 0 : { scale: 0.985 },
|
|
843
|
+
className: "group relative flex cursor-pointer items-center gap-3 rounded-2xl p-3",
|
|
844
|
+
style: { backgroundColor: top.tint ?? "#f1f1ef" },
|
|
845
|
+
children: [
|
|
846
|
+
/* @__PURE__ */ jsx(
|
|
847
|
+
motion.span,
|
|
848
|
+
{
|
|
849
|
+
"aria-hidden": true,
|
|
850
|
+
animate: { opacity: on ? 1 : 0 },
|
|
851
|
+
transition: { duration: 0.2 },
|
|
852
|
+
className: "absolute inset-0 rounded-2xl bg-[#242423]/[0.05]"
|
|
853
|
+
}
|
|
854
|
+
),
|
|
855
|
+
/* @__PURE__ */ jsx(
|
|
856
|
+
motion.span,
|
|
857
|
+
{
|
|
858
|
+
animate: {
|
|
859
|
+
rotate: on && !still ? -6 : 0,
|
|
860
|
+
scale: on && !still ? 1.06 : 1
|
|
861
|
+
},
|
|
862
|
+
transition: POP,
|
|
863
|
+
className: "relative grid size-11 shrink-0 place-items-center rounded-[14px] bg-white/80 text-[16px] font-semibold text-[#242423]/70",
|
|
864
|
+
children: top.title[0].toUpperCase()
|
|
865
|
+
}
|
|
866
|
+
),
|
|
867
|
+
/* @__PURE__ */ jsxs("span", { className: "relative min-w-0 flex-1", children: [
|
|
868
|
+
/* @__PURE__ */ jsx("span", { className: "block truncate text-[16px] font-medium leading-6", children: /* @__PURE__ */ jsx(
|
|
869
|
+
Marked,
|
|
870
|
+
{
|
|
871
|
+
text: top.title,
|
|
872
|
+
query,
|
|
873
|
+
still
|
|
874
|
+
}
|
|
875
|
+
) }),
|
|
876
|
+
/* @__PURE__ */ jsxs("span", { className: "block truncate text-[12px] text-[#242423]/55", children: [
|
|
877
|
+
top.group,
|
|
878
|
+
top.meta ? `, ${top.meta}` : ""
|
|
879
|
+
] })
|
|
880
|
+
] }),
|
|
881
|
+
tail(
|
|
882
|
+
entry.key,
|
|
883
|
+
/* @__PURE__ */ jsx(
|
|
884
|
+
"span",
|
|
885
|
+
{
|
|
886
|
+
className: "relative grid size-8 place-items-center rounded-full bg-white/80 text-[#242423]/60",
|
|
887
|
+
children: /* @__PURE__ */ jsx(ArrowRightIcon, { className: "size-4" })
|
|
888
|
+
},
|
|
889
|
+
"arrow"
|
|
890
|
+
)
|
|
891
|
+
)
|
|
892
|
+
]
|
|
893
|
+
},
|
|
894
|
+
entry.key
|
|
895
|
+
);
|
|
896
|
+
})(),
|
|
897
|
+
rest.length > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
898
|
+
/* @__PURE__ */ jsx("p", { className: "px-1 pb-1 pt-4 text-[12px] font-medium text-[#242423]/45", children: "More results" }),
|
|
899
|
+
rest.map((item, j) => {
|
|
900
|
+
const index = j + 1;
|
|
901
|
+
const entry = entries[index];
|
|
902
|
+
const on = entry.key === activeKey;
|
|
903
|
+
return /* @__PURE__ */ jsxs(
|
|
904
|
+
motion.div,
|
|
905
|
+
{
|
|
906
|
+
...rise(index),
|
|
907
|
+
...optionProps(entry, index),
|
|
908
|
+
className: "group relative flex h-11 cursor-pointer items-center gap-3 rounded-xl px-2",
|
|
909
|
+
children: [
|
|
910
|
+
on && /* @__PURE__ */ jsx(
|
|
911
|
+
motion.span,
|
|
912
|
+
{
|
|
913
|
+
layoutId: `${uid}-row`,
|
|
914
|
+
transition: still ? { duration: 0 } : POP,
|
|
915
|
+
className: "absolute inset-0 rounded-xl bg-[#242423]/[0.04]"
|
|
916
|
+
}
|
|
917
|
+
),
|
|
918
|
+
/* @__PURE__ */ jsx(
|
|
919
|
+
"span",
|
|
920
|
+
{
|
|
921
|
+
className: "relative size-2 shrink-0 rounded-full",
|
|
922
|
+
style: {
|
|
923
|
+
backgroundColor: item.tint ? `color-mix(in srgb, ${item.tint} 45%, #242423)` : "#a3a3a0"
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
),
|
|
927
|
+
/* @__PURE__ */ jsx("span", { className: "relative min-w-0 flex-1 truncate text-[14px]", children: /* @__PURE__ */ jsx(
|
|
928
|
+
Marked,
|
|
929
|
+
{
|
|
930
|
+
text: item.title,
|
|
931
|
+
query,
|
|
932
|
+
still
|
|
933
|
+
}
|
|
934
|
+
) }),
|
|
935
|
+
tail(
|
|
936
|
+
entry.key,
|
|
937
|
+
/* @__PURE__ */ jsxs(
|
|
938
|
+
"span",
|
|
939
|
+
{
|
|
940
|
+
className: "relative flex shrink-0 items-center gap-2 text-[12px] text-[#242423]/45",
|
|
941
|
+
children: [
|
|
942
|
+
item.meta && /* @__PURE__ */ jsx("span", { className: "tabular-nums", children: item.meta }),
|
|
943
|
+
/* @__PURE__ */ jsx("span", { className: "rounded-full bg-[#242423]/[0.05] px-2 py-0.5", children: item.group })
|
|
944
|
+
]
|
|
945
|
+
},
|
|
946
|
+
"tag"
|
|
947
|
+
)
|
|
948
|
+
)
|
|
949
|
+
]
|
|
950
|
+
},
|
|
951
|
+
entry.key
|
|
952
|
+
);
|
|
953
|
+
})
|
|
954
|
+
] })
|
|
955
|
+
]
|
|
956
|
+
},
|
|
957
|
+
`found-${scope}`
|
|
958
|
+
) : /* @__PURE__ */ jsxs(
|
|
959
|
+
motion.div,
|
|
960
|
+
{
|
|
961
|
+
initial: still ? { opacity: 0 } : { opacity: 0, y: 8, filter: "blur(4px)" },
|
|
962
|
+
animate: { opacity: 1, y: 0, filter: "blur(0px)" },
|
|
963
|
+
exit: { opacity: 0 },
|
|
964
|
+
transition: { duration: 0.35, ease: GLIDE },
|
|
965
|
+
className: "flex flex-col items-center px-6 pb-4 pt-8 text-center",
|
|
966
|
+
children: [
|
|
967
|
+
/* @__PURE__ */ jsx("span", { className: "grid size-11 place-items-center rounded-full bg-[#242423]/[0.05] text-[#242423]/60", children: /* @__PURE__ */ jsx(SearchIcon, { className: "size-5", active: true }) }),
|
|
968
|
+
/* @__PURE__ */ jsxs("p", { className: "mt-3 text-[14px] font-medium", children: [
|
|
969
|
+
"Nothing for \u201C",
|
|
970
|
+
query.trim(),
|
|
971
|
+
"\u201D",
|
|
972
|
+
scope !== "All" ? ` in ${scope}` : ""
|
|
973
|
+
] }),
|
|
974
|
+
/* @__PURE__ */ jsx("p", { className: "mt-1 text-[12px] text-[#242423]/50", children: scope !== "All" && counts.All ? /* @__PURE__ */ jsxs(
|
|
975
|
+
"button",
|
|
976
|
+
{
|
|
977
|
+
type: "button",
|
|
978
|
+
onClick: () => setScope("All"),
|
|
979
|
+
className: "cursor-pointer underline decoration-[#242423]/25 underline-offset-2 hover:text-[#242423]",
|
|
980
|
+
children: [
|
|
981
|
+
"Search everything instead (",
|
|
982
|
+
counts.All,
|
|
983
|
+
")"
|
|
984
|
+
]
|
|
985
|
+
}
|
|
986
|
+
) : "Try another word." })
|
|
987
|
+
]
|
|
988
|
+
},
|
|
989
|
+
"none"
|
|
990
|
+
) })
|
|
991
|
+
}
|
|
992
|
+
)
|
|
993
|
+
}
|
|
994
|
+
),
|
|
995
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between border-t border-[#242423]/[0.06] px-5 py-2.5 text-[12px] text-[#242423]/45", children: [
|
|
996
|
+
/* @__PURE__ */ jsx("span", { children: q ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
997
|
+
found.length > results.length ? "Showing " : "",
|
|
998
|
+
/* @__PURE__ */ jsx(
|
|
999
|
+
Count,
|
|
1000
|
+
{
|
|
1001
|
+
value: results.length,
|
|
1002
|
+
still,
|
|
1003
|
+
className: "font-medium text-[#242423]/70"
|
|
1004
|
+
}
|
|
1005
|
+
),
|
|
1006
|
+
found.length > results.length ? ` of ${found.length}` : "",
|
|
1007
|
+
" ",
|
|
1008
|
+
found.length === 1 ? "result" : "results",
|
|
1009
|
+
scope !== "All" ? ` in ${scope}` : ""
|
|
1010
|
+
] }) : "Type to search, Tab for the example" }),
|
|
1011
|
+
/* @__PURE__ */ jsxs("span", { children: [
|
|
1012
|
+
"\u2191 \u2193 to move, \u21B5 to open, Esc to ",
|
|
1013
|
+
modal ? "close" : "clear"
|
|
1014
|
+
] })
|
|
1015
|
+
] })
|
|
1016
|
+
]
|
|
1017
|
+
},
|
|
1018
|
+
"card"
|
|
1019
|
+
) }),
|
|
1020
|
+
/* @__PURE__ */ jsx("span", { role: "status", "aria-live": "polite", className: "sr-only", children: q ? `${found.length} results` : "" })
|
|
1021
|
+
]
|
|
1022
|
+
}
|
|
1023
|
+
);
|
|
1024
|
+
if (!modal) return panel;
|
|
1025
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1026
|
+
/* @__PURE__ */ jsxs(
|
|
1027
|
+
"button",
|
|
1028
|
+
{
|
|
1029
|
+
type: "button",
|
|
1030
|
+
onClick: () => setOpen(true),
|
|
1031
|
+
className: cn(
|
|
1032
|
+
"group flex h-11 w-72 max-w-full cursor-pointer items-center gap-2.5 rounded-full bg-white pl-4 pr-2 text-[14px] text-[#242423]/45 shadow-[0_1px_2px_rgba(0,0,0,0.04),0_12px_32px_-16px_rgba(0,0,0,0.18)] outline-none focus-visible:ring-2 focus-visible:ring-[#242423]/30",
|
|
1033
|
+
className
|
|
1034
|
+
),
|
|
1035
|
+
children: [
|
|
1036
|
+
/* @__PURE__ */ jsx(SearchIcon, { className: "size-4" }),
|
|
1037
|
+
/* @__PURE__ */ jsx("span", { className: "flex-1 text-left", children: "Search" }),
|
|
1038
|
+
/* @__PURE__ */ jsxs("span", { className: "flex gap-1", children: [
|
|
1039
|
+
/* @__PURE__ */ jsx(Key, { children: "\u2318" }),
|
|
1040
|
+
/* @__PURE__ */ jsx(Key, { children: "K" })
|
|
1041
|
+
] })
|
|
1042
|
+
]
|
|
1043
|
+
}
|
|
1044
|
+
),
|
|
1045
|
+
typeof document !== "undefined" && createPortal(
|
|
1046
|
+
/* @__PURE__ */ jsx(AnimatePresence, { children: open && /* @__PURE__ */ jsxs(
|
|
1047
|
+
motion.div,
|
|
1048
|
+
{
|
|
1049
|
+
className: "fixed inset-0 z-[100] flex items-start justify-center px-4 pt-[12vh]",
|
|
1050
|
+
initial: { opacity: 0 },
|
|
1051
|
+
animate: { opacity: 1 },
|
|
1052
|
+
exit: { opacity: 0 },
|
|
1053
|
+
transition: { duration: 0.2 },
|
|
1054
|
+
children: [
|
|
1055
|
+
/* @__PURE__ */ jsx(
|
|
1056
|
+
"div",
|
|
1057
|
+
{
|
|
1058
|
+
"aria-hidden": true,
|
|
1059
|
+
onClick: () => setOpen(false),
|
|
1060
|
+
className: "absolute inset-0 bg-[#242423]/20 backdrop-blur-sm"
|
|
1061
|
+
}
|
|
1062
|
+
),
|
|
1063
|
+
/* @__PURE__ */ jsx(
|
|
1064
|
+
motion.div,
|
|
1065
|
+
{
|
|
1066
|
+
role: "dialog",
|
|
1067
|
+
"aria-modal": true,
|
|
1068
|
+
"aria-label": "Search",
|
|
1069
|
+
initial: still ? false : {
|
|
1070
|
+
opacity: 0,
|
|
1071
|
+
y: -12,
|
|
1072
|
+
scale: 0.97,
|
|
1073
|
+
filter: "blur(6px)"
|
|
1074
|
+
},
|
|
1075
|
+
animate: {
|
|
1076
|
+
opacity: 1,
|
|
1077
|
+
y: 0,
|
|
1078
|
+
scale: 1,
|
|
1079
|
+
filter: "blur(0px)"
|
|
1080
|
+
},
|
|
1081
|
+
exit: still ? { opacity: 0 } : {
|
|
1082
|
+
opacity: 0,
|
|
1083
|
+
y: -8,
|
|
1084
|
+
scale: 0.98,
|
|
1085
|
+
filter: "blur(4px)"
|
|
1086
|
+
},
|
|
1087
|
+
transition: { duration: 0.3, ease: GLIDE },
|
|
1088
|
+
className: "relative",
|
|
1089
|
+
children: panel
|
|
1090
|
+
}
|
|
1091
|
+
)
|
|
1092
|
+
]
|
|
1093
|
+
}
|
|
1094
|
+
) }),
|
|
1095
|
+
document.body
|
|
1096
|
+
)
|
|
1097
|
+
] });
|
|
1098
|
+
}
|
|
1099
|
+
);
|
|
1100
|
+
|
|
1101
|
+
export {
|
|
1102
|
+
SearchModal
|
|
1103
|
+
};
|