asta-ui 0.9.7 → 0.9.9
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/bin/asta-ui.mjs +43 -7
- package/css/asta.css +2 -2
- package/css/asta.js +192 -45
- package/css/components.css +92 -81
- package/css/runtime/agent.js +31 -10
- package/css/runtime/assist.js +0 -1
- package/css/runtime/blocks.js +15 -3
- package/css/runtime/core.js +3 -3
- package/css/runtime/forms.js +2 -2
- package/css/runtime/modules.js +30 -9
- package/css/runtime/overlays.js +110 -16
- package/css/src/assist.css +4 -4
- package/css/src/blocks.css +12 -12
- package/css/src/controls.css +3 -3
- package/css/src/core.css +23 -23
- package/css/src/data.css +10 -10
- package/css/src/display.css +5 -5
- package/css/src/forms.css +3 -3
- package/css/src/overlays.css +32 -21
- package/css/tokens.css +3 -0
- package/dist/accordion.js +1 -1
- package/dist/add-to-cart.js +2 -1
- package/dist/agent-plan.js +1 -1
- package/dist/agent-team.js +1 -1
- package/dist/ai-chat.js +1 -1
- package/dist/alert.js +1 -1
- package/dist/announcement-bar.js +1 -1
- package/dist/api-keys.js +2 -2
- package/dist/autonomy-dial.js +2 -1
- package/dist/avatar-group.js +2 -2
- package/dist/avatar.js +1 -1
- package/dist/badge.js +1 -1
- package/dist/base/accordion.js +1 -1
- package/dist/base/add-to-cart.js +2 -1
- package/dist/base/agent-plan.js +1 -1
- package/dist/base/agent-team.js +1 -1
- package/dist/base/ai-chat.js +1 -1
- package/dist/base/alert.js +1 -1
- package/dist/base/announcement-bar.js +1 -1
- package/dist/base/api-keys.js +2 -2
- package/dist/base/autonomy-dial.js +2 -1
- package/dist/base/avatar-group.js +2 -2
- package/dist/base/avatar.js +1 -1
- package/dist/base/badge.js +1 -1
- package/dist/base/billing.js +3 -3
- package/dist/base/booking-slots.js +2 -1
- package/dist/base/breadcrumb.js +1 -1
- package/dist/base/button-aui-064.d.ts +2 -0
- package/dist/base/button-aui-064.js +11 -0
- package/dist/base/button-aui-065.d.ts +2 -0
- package/dist/base/button-aui-065.js +9 -0
- package/dist/base/button-aui-066.d.ts +2 -0
- package/dist/base/button-aui-066.js +11 -0
- package/dist/base/button-aui-067.d.ts +2 -0
- package/dist/base/button-aui-067.js +9 -0
- package/dist/base/button-aui-068.d.ts +2 -0
- package/dist/base/button-aui-068.js +9 -0
- package/dist/base/button.js +1 -1
- package/dist/base/candlestick.js +1 -1
- package/dist/base/card-checkout.js +2 -1
- package/dist/base/carousel.js +1 -1
- package/dist/base/cart-drawer.js +2 -1
- package/dist/base/change-ledger.js +2 -1
- package/dist/base/chart-card.js +1 -1
- package/dist/base/chat-thread.js +2 -1
- package/dist/base/checkbox-aui-052.js +1 -1
- package/dist/base/checkbox-aui-053.js +1 -1
- package/dist/base/checkbox-aui-054.js +1 -1
- package/dist/base/checkbox.js +1 -1
- package/dist/base/checkout.js +3 -4
- package/dist/base/citations.js +1 -1
- package/dist/base/combobox-aui-046.js +1 -1
- package/dist/base/combobox-aui-047.js +1 -1
- package/dist/base/combobox.js +1 -1
- package/dist/base/command-palette.js +1 -1
- package/dist/base/comments.js +3 -3
- package/dist/base/context-menu.js +1 -1
- package/dist/base/context-meter.js +2 -2
- package/dist/base/cookie-consent.js +2 -2
- package/dist/base/copy-button.js +1 -1
- package/dist/base/data-table.js +1 -1
- package/dist/base/date-picker-aui-050.js +1 -1
- package/dist/base/date-picker-aui-051.js +1 -1
- package/dist/base/date-picker.js +1 -1
- package/dist/base/dialog.js +1 -1
- package/dist/base/drawer.js +1 -1
- package/dist/base/dropdown-menu.js +2 -2
- package/dist/base/elastic-string.js +2 -1
- package/dist/base/empty-state.js +2 -2
- package/dist/base/event-calendar.js +1 -1
- package/dist/base/fallback-chain.js +1 -1
- package/dist/base/field.js +1 -1
- package/dist/base/file-card.js +1 -1
- package/dist/base/file-manager.js +7 -7
- package/dist/base/file-upload.js +1 -1
- package/dist/base/flash-sale.js +1 -1
- package/dist/base/footer-aui-026.js +1 -1
- package/dist/base/footer-aui-027.js +1 -1
- package/dist/base/footer-aui-028.js +1 -1
- package/dist/base/footer.js +2 -2
- package/dist/base/gravity-pills.js +1 -1
- package/dist/base/hold-to-confirm.js +1 -1
- package/dist/base/image-compare.js +1 -1
- package/dist/base/inbox.js +3 -3
- package/dist/base/ink-trail.js +2 -1
- package/dist/base/inline-edit.js +1 -1
- package/dist/base/input-aui-029.js +1 -1
- package/dist/base/input-aui-030.js +1 -1
- package/dist/base/input-aui-031.js +1 -1
- package/dist/base/input-aui-032.js +1 -1
- package/dist/base/input-aui-033.js +1 -1
- package/dist/base/input.js +1 -1
- package/dist/base/invoice.js +2 -2
- package/dist/base/kanban.js +2 -2
- package/dist/base/menubar.js +1 -1
- package/dist/base/meter.js +1 -1
- package/dist/base/model-picker.js +1 -1
- package/dist/base/motion-button.js +1 -1
- package/dist/base/navbar-aui-009.js +1 -1
- package/dist/base/navbar-aui-010.js +1 -1
- package/dist/base/navbar-aui-011.js +1 -1
- package/dist/base/navbar-aui-012.js +1 -1
- package/dist/base/navbar-aui-013.js +1 -1
- package/dist/base/navbar-aui-014.js +1 -1
- package/dist/base/navbar.js +2 -2
- package/dist/base/needle-field.js +1 -1
- package/dist/base/notification-center.js +3 -3
- package/dist/base/notification-stack.js +2 -1
- package/dist/base/now-playing.js +2 -1
- package/dist/base/number-input.js +1 -1
- package/dist/base/onboarding.js +2 -2
- package/dist/base/otp-input-aui-041.js +1 -1
- package/dist/base/otp-input-aui-042.js +1 -1
- package/dist/base/pagination.js +1 -1
- package/dist/base/password-input-aui-040.js +1 -1
- package/dist/base/password-input.js +1 -1
- package/dist/base/pay-methods.js +2 -1
- package/dist/base/payment-received.js +2 -1
- package/dist/base/payment-status.js +2 -1
- package/dist/base/phone-input.js +1 -1
- package/dist/base/pixel-reveal.js +1 -1
- package/dist/base/plan-switcher.js +2 -1
- package/dist/base/popover.js +1 -1
- package/dist/base/price-alert.js +1 -1
- package/dist/base/price-chart.js +2 -1
- package/dist/base/pricing-aui-021.js +1 -1
- package/dist/base/pricing-aui-022.js +1 -1
- package/dist/base/pricing-aui-023.js +1 -1
- package/dist/base/pricing-aui-024.js +1 -1
- package/dist/base/pricing.js +2 -2
- package/dist/base/prompt-composer.js +1 -1
- package/dist/base/properties-panel.js +1 -1
- package/dist/base/radio-group-aui-055.js +1 -1
- package/dist/base/radio-group-aui-056.js +1 -1
- package/dist/base/radio-group-aui-057.js +1 -1
- package/dist/base/radio-group.js +1 -1
- package/dist/base/range-slider.js +1 -1
- package/dist/base/rating.js +1 -1
- package/dist/base/scramble-text.js +1 -1
- package/dist/base/scrub-input.js +1 -1
- package/dist/base/seat-picker.js +2 -1
- package/dist/base/segmented-control.js +1 -1
- package/dist/base/select-aui-043.js +1 -1
- package/dist/base/select-aui-044.js +1 -1
- package/dist/base/select-aui-045.js +1 -1
- package/dist/base/select.js +1 -1
- package/dist/base/settings-panel.js +2 -2
- package/dist/base/shipment-tracker.js +2 -1
- package/dist/base/sidebar.js +2 -2
- package/dist/base/sign-in-aui-015.js +1 -1
- package/dist/base/sign-in-aui-016.js +1 -1
- package/dist/base/sign-in-aui-017.js +1 -1
- package/dist/base/sign-in-aui-018.js +1 -1
- package/dist/base/sign-in-aui-019.js +1 -1
- package/dist/base/sign-in-aui-020.js +1 -1
- package/dist/base/sign-in.js +2 -2
- package/dist/base/skeleton.js +1 -1
- package/dist/base/slider-aui-062.js +1 -1
- package/dist/base/slider-aui-063.js +1 -1
- package/dist/base/slider.js +1 -1
- package/dist/base/snap-grid.js +1 -1
- package/dist/base/sortable-list.js +1 -1
- package/dist/base/spinner.js +1 -1
- package/dist/base/split-bill.js +1 -1
- package/dist/base/split-flap.js +2 -1
- package/dist/base/stat-card.js +1 -1
- package/dist/base/stepper.js +1 -1
- package/dist/base/switch-aui-058.js +1 -1
- package/dist/base/switch-aui-059.js +1 -1
- package/dist/base/switch-aui-060.js +1 -1
- package/dist/base/tabs.js +1 -1
- package/dist/base/tag-input-aui-048.js +1 -1
- package/dist/base/tag-input-aui-049.js +1 -1
- package/dist/base/tag-input.js +1 -1
- package/dist/base/team-members.js +4 -4
- package/dist/base/testimonials.js +2 -2
- package/dist/base/textarea-aui-002.js +1 -1
- package/dist/base/textarea-aui-003.js +1 -1
- package/dist/base/textarea-aui-005.js +1 -1
- package/dist/base/textarea-aui-006.js +1 -1
- package/dist/base/textarea-aui-007.js +1 -1
- package/dist/base/textarea-aui-008.js +1 -1
- package/dist/base/textarea-aui-036.js +1 -1
- package/dist/base/textarea-aui-037.js +1 -1
- package/dist/base/textarea-aui-038.js +1 -1
- package/dist/base/textarea.js +1 -1
- package/dist/base/thinking.js +1 -1
- package/dist/base/toast.js +1 -1
- package/dist/base/token-swap.js +2 -1
- package/dist/base/tool-approval.js +1 -1
- package/dist/base/tool-dock.js +1 -1
- package/dist/base/trace-waterfall.js +1 -1
- package/dist/base/trade-ticket.js +2 -1
- package/dist/base/tree-view.js +1 -1
- package/dist/base/variant-picker.js +2 -1
- package/dist/base/watchlist.js +1 -1
- package/dist/base/wishlist.js +2 -1
- package/dist/base/workspace-switcher.js +1 -1
- package/dist/base.js +227 -192
- package/dist/billing.js +3 -3
- package/dist/booking-slots.js +2 -1
- package/dist/breadcrumb.js +1 -1
- package/dist/button-aui-064.d.ts +2 -0
- package/dist/button-aui-064.js +11 -0
- package/dist/button-aui-065.d.ts +2 -0
- package/dist/button-aui-065.js +9 -0
- package/dist/button-aui-066.d.ts +2 -0
- package/dist/button-aui-066.js +11 -0
- package/dist/button-aui-067.d.ts +2 -0
- package/dist/button-aui-067.js +9 -0
- package/dist/button-aui-068.d.ts +2 -0
- package/dist/button-aui-068.js +9 -0
- package/dist/button.js +1 -1
- package/dist/candlestick.js +1 -1
- package/dist/card-checkout.js +2 -1
- package/dist/carousel.js +1 -1
- package/dist/cart-drawer.js +2 -1
- package/dist/change-ledger.js +2 -1
- package/dist/chart-card.js +1 -1
- package/dist/chat-thread.js +2 -1
- package/dist/checkbox-aui-052.js +1 -1
- package/dist/checkbox-aui-053.js +1 -1
- package/dist/checkbox-aui-054.js +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/checkout.js +3 -4
- package/dist/{chunk-2F5CE6ZB.js → chunk-27W3F7NE.js} +7 -6
- package/dist/{chunk-TLODJONC.js → chunk-2DA4SEGX.js} +3 -3
- package/dist/{chunk-EKPTPTKK.js → chunk-2DECQKLI.js} +2 -2
- package/dist/chunk-2GLBURQR.js +85 -0
- package/dist/{chunk-YRPLUNP4.js → chunk-2H25OHYS.js} +18 -14
- package/dist/{chunk-VTTXURIB.js → chunk-32GWAA4A.js} +4 -3
- package/dist/{chunk-QASSYLQQ.js → chunk-3AJ4EBSV.js} +6 -5
- package/dist/{chunk-H4NFBYKY.js → chunk-3G2L5A4O.js} +8 -2
- package/dist/{chunk-OKCSTMX3.js → chunk-3LJ72YR4.js} +4 -1
- package/dist/{chunk-LOHFV5JF.js → chunk-3MH5O4HX.js} +7 -7
- package/dist/{chunk-ECGJ6D5D.js → chunk-3N7SRANH.js} +9 -5
- package/dist/{chunk-6RA7LJ3K.js → chunk-3OCWR4L3.js} +13 -8
- package/dist/{chunk-57PESBSZ.js → chunk-3PSV752Q.js} +1 -1
- package/dist/{chunk-QJXVIEB5.js → chunk-3QC5SYGC.js} +5 -5
- package/dist/{chunk-UJYZZSII.js → chunk-4ATDGYSC.js} +13 -9
- package/dist/{chunk-3UQIYJTI.js → chunk-4EX6JZ7C.js} +11 -4
- package/dist/{chunk-XYQI4ZYV.js → chunk-4GWJFDSU.js} +1 -1
- package/dist/{chunk-5OHHGQV6.js → chunk-4IPMVLH7.js} +4 -4
- package/dist/{chunk-JLCSRNI2.js → chunk-4MBIQUM2.js} +7 -7
- package/dist/{chunk-NIYIT2QU.js → chunk-4N2KNDOB.js} +3 -3
- package/dist/{chunk-SDOWCCM2.js → chunk-4P6EPSHA.js} +12 -7
- package/dist/{chunk-MDB4RFMV.js → chunk-4YF2XZY5.js} +6 -6
- package/dist/{chunk-7MBTBYTJ.js → chunk-56PRVZWW.js} +6 -6
- package/dist/{chunk-YJAZHJY3.js → chunk-56VKEODT.js} +1 -1
- package/dist/{chunk-3RMCFFW2.js → chunk-5CAZEFDX.js} +8 -8
- package/dist/{chunk-5DLY6FGD.js → chunk-5EYHX66O.js} +18 -9
- package/dist/{chunk-NZRQL3SA.js → chunk-5JLFPVXB.js} +6 -3
- package/dist/{chunk-UOOGRGEC.js → chunk-5SK7NMOG.js} +2 -1
- package/dist/{chunk-W5M3EHJL.js → chunk-5UARATD2.js} +12 -9
- package/dist/{chunk-Z2DF2YL5.js → chunk-5WVRC4BW.js} +1 -1
- package/dist/{chunk-ZWBJUJTR.js → chunk-5ZQ6PMJT.js} +2 -2
- package/dist/{chunk-6MPEI6V5.js → chunk-67BNR73B.js} +5 -5
- package/dist/{chunk-EN6XBXW5.js → chunk-6ZGHPBHD.js} +3 -2
- package/dist/{chunk-C2G5BUEG.js → chunk-74WYX24P.js} +23 -14
- package/dist/{chunk-PZ2ZUHC3.js → chunk-76NMSRFH.js} +19 -6
- package/dist/{chunk-FLCT7THQ.js → chunk-7AN76PIT.js} +2 -2
- package/dist/chunk-7DQJUZFY.js +139 -0
- package/dist/{chunk-77RFV2MG.js → chunk-7GUFM5QQ.js} +16 -11
- package/dist/{chunk-5RPJPL2V.js → chunk-7HI4HJFN.js} +62 -26
- package/dist/{chunk-IVCHYE55.js → chunk-7IOMROVG.js} +13 -8
- package/dist/{chunk-DU3CZ3K7.js → chunk-7RECQQQP.js} +19 -5
- package/dist/{chunk-UX6CWJT7.js → chunk-7TCU6IJX.js} +1 -1
- package/dist/{chunk-N3X4T5OR.js → chunk-A4CMX7CD.js} +26 -17
- package/dist/{chunk-ITGWD7ZY.js → chunk-A7TELQOW.js} +3 -3
- package/dist/{chunk-RQNXELUL.js → chunk-AAE4SLAV.js} +5 -2
- package/dist/{chunk-LDTCIVDX.js → chunk-AF2WLL3H.js} +2 -2
- package/dist/{chunk-YNPG4WOS.js → chunk-AIUW7VNA.js} +8 -5
- package/dist/{chunk-U6N7CZYN.js → chunk-AM63372L.js} +3 -3
- package/dist/{chunk-OBU2UOYI.js → chunk-B2GAISZU.js} +2 -3
- package/dist/{chunk-JX7V6EFT.js → chunk-B2SLXW63.js} +19 -15
- package/dist/{chunk-ZZ25XSK2.js → chunk-B3WWWKHW.js} +2 -1
- package/dist/{chunk-FFRJW5O7.js → chunk-B6KIW23F.js} +6 -5
- package/dist/{chunk-2LM3VHNO.js → chunk-BBILYMCF.js} +8 -4
- package/dist/{chunk-BIYNJDPD.js → chunk-BLZYUAE7.js} +6 -3
- package/dist/{chunk-CSTI5CTF.js → chunk-BNODQM6D.js} +14 -8
- package/dist/{chunk-TMOEFAXQ.js → chunk-BQL7HJSV.js} +27 -4
- package/dist/{chunk-FOJRZASV.js → chunk-BWAOBM2E.js} +32 -8
- package/dist/chunk-C5NGITT4.js +90 -0
- package/dist/{chunk-W2S6JDBM.js → chunk-CGMVTIMW.js} +13 -13
- package/dist/{chunk-DWA62IYV.js → chunk-CZKYSTF5.js} +7 -4
- package/dist/{chunk-EXX6YSUX.js → chunk-D3GC3QHM.js} +8 -6
- package/dist/{chunk-LKRE4HLZ.js → chunk-DAWISPMI.js} +84 -39
- package/dist/{chunk-SCQ6A4ZG.js → chunk-DSMKE64O.js} +10 -3
- package/dist/{chunk-OXLBH4QM.js → chunk-DXFIPXJJ.js} +6 -3
- package/dist/{chunk-RFVKRVTD.js → chunk-DY5Z45NW.js} +7 -4
- package/dist/{chunk-MAKFUH34.js → chunk-E6HAVXWS.js} +32 -18
- package/dist/{chunk-CZCZB5YP.js → chunk-E7Q7EP4K.js} +1 -1
- package/dist/{chunk-4YNUJFTL.js → chunk-EHBCXGBF.js} +7 -7
- package/dist/{chunk-Y4JOW2UW.js → chunk-EQVJUIF4.js} +14 -10
- package/dist/{chunk-PIXHOFUT.js → chunk-ET4NNKVK.js} +18 -11
- package/dist/{chunk-R3LWG23K.js → chunk-FC54ZZOS.js} +9 -14
- package/dist/{chunk-NPVUFQGC.js → chunk-FDI2X6DY.js} +1 -1
- package/dist/{chunk-F4CWSZXK.js → chunk-FEQPNCG7.js} +9 -6
- package/dist/{chunk-JNNMKFEQ.js → chunk-FGN7KDKD.js} +1 -1
- package/dist/{chunk-KEMMI76V.js → chunk-FJNJ2TLR.js} +2 -3
- package/dist/{chunk-Q5A5OTLI.js → chunk-FOHY7LPU.js} +1 -1
- package/dist/chunk-FS2PZKJY.js +43 -0
- package/dist/{chunk-BEV2X4YL.js → chunk-FZ3GCVH2.js} +53 -12
- package/dist/{chunk-D6LGKFZH.js → chunk-G23AGEY4.js} +1 -1
- package/dist/{chunk-SUWA7DM6.js → chunk-GPGIY2ZG.js} +8 -7
- package/dist/{chunk-EAHHWF3V.js → chunk-GQZPSVLB.js} +144 -46
- package/dist/{chunk-ZUH7XRX7.js → chunk-GTRJUSVK.js} +4 -3
- package/dist/{chunk-BV5HEXB5.js → chunk-GU5KNBTL.js} +12 -10
- package/dist/{chunk-FT66LAUZ.js → chunk-GUZHEEYG.js} +8 -7
- package/dist/{chunk-LS6CFF6X.js → chunk-GX4ZHNG7.js} +5 -1
- package/dist/{chunk-JAQKJBVJ.js → chunk-H3LVWLBS.js} +8 -7
- package/dist/{chunk-7UMBKY3H.js → chunk-H46UXFHV.js} +1 -1
- package/dist/{chunk-B4XRAVHL.js → chunk-HBKB2GXI.js} +32 -18
- package/dist/{chunk-DD2TBHSJ.js → chunk-HJ2FWSSM.js} +9 -9
- package/dist/{chunk-IS2VTYDA.js → chunk-HJD3NQST.js} +6 -3
- package/dist/{chunk-XNL5BLUR.js → chunk-HJMROSE4.js} +26 -14
- package/dist/{chunk-UXRTPEH7.js → chunk-HRQUTQSW.js} +9 -7
- package/dist/{chunk-WSL4JGEA.js → chunk-HSDMCZMX.js} +2 -2
- package/dist/{chunk-WO36QUH3.js → chunk-IDEK35SZ.js} +4 -1
- package/dist/{chunk-QYI7LQBQ.js → chunk-ITC5UU7V.js} +1 -1
- package/dist/{chunk-MPH64VG7.js → chunk-IUOKOPNY.js} +7 -6
- package/dist/{chunk-PAXDHYBX.js → chunk-IVTOFG7I.js} +79 -16
- package/dist/{chunk-MSBN2O66.js → chunk-J65FSZ6X.js} +1 -1
- package/dist/{chunk-YPFZXGPT.js → chunk-JZJWB5CQ.js} +18 -9
- package/dist/{chunk-TL32C2SQ.js → chunk-K3ASWIQF.js} +8 -2
- package/dist/{chunk-UTGEGGSE.js → chunk-K3SP537A.js} +12 -11
- package/dist/{chunk-ANL6VX4X.js → chunk-K5QMUHOG.js} +13 -10
- package/dist/{chunk-DNROUJ62.js → chunk-KCASF2IV.js} +17 -12
- package/dist/{chunk-FQ4YUKAE.js → chunk-KE33WVT2.js} +6 -6
- package/dist/{chunk-5N2G462S.js → chunk-KEPRNTOF.js} +8 -8
- package/dist/{chunk-JF4BKHFK.js → chunk-KKDIIZQG.js} +14 -8
- package/dist/{chunk-ZKMEKSJZ.js → chunk-KSNSN42X.js} +9 -4
- package/dist/{chunk-MUDW65ZT.js → chunk-KSZLBV3P.js} +36 -10
- package/dist/{chunk-HVFB44HO.js → chunk-KUK3UZ7M.js} +11 -8
- package/dist/{chunk-5GGS6VP5.js → chunk-L4G2YUXT.js} +1 -2
- package/dist/{chunk-NVLYF4UL.js → chunk-L7SG34PT.js} +69 -27
- package/dist/{chunk-SPKSRH6G.js → chunk-LGGGLQAD.js} +10 -9
- package/dist/{chunk-CDQNLDO6.js → chunk-LLI33GKW.js} +4 -4
- package/dist/{chunk-QWOO4V7N.js → chunk-LO4TYPLL.js} +8 -2
- package/dist/{chunk-DWPGFNNF.js → chunk-LUDI3KWR.js} +144 -46
- package/dist/{chunk-TXC6CCSA.js → chunk-M32LPQKJ.js} +2 -2
- package/dist/{chunk-OFYGJUKP.js → chunk-M4NEGTL3.js} +5 -2
- package/dist/{chunk-4SLC3EK6.js → chunk-M6UUAF25.js} +79 -16
- package/dist/{chunk-N6FMS47F.js → chunk-MEIRPHQO.js} +26 -21
- package/dist/{chunk-YVGC7QT7.js → chunk-MG6TUMH7.js} +5 -5
- package/dist/{chunk-W6YVDJHX.js → chunk-MQYV5MKH.js} +11 -7
- package/dist/{chunk-OIIMYSVT.js → chunk-MTI7DQ4F.js} +7 -7
- package/dist/{chunk-D4AYULMF.js → chunk-MUURQUEM.js} +8 -8
- package/dist/chunk-MVGUQ36E.js +75 -0
- package/dist/{chunk-D2JJSUXI.js → chunk-MXHFJ3XF.js} +6 -3
- package/dist/{chunk-IATF2OTU.js → chunk-MYPRORYG.js} +14 -5
- package/dist/{chunk-PZJYDIJI.js → chunk-N3MCZYXP.js} +1 -1
- package/dist/{chunk-B7MVYR7C.js → chunk-NBNAXWLN.js} +10 -6
- package/dist/{chunk-KEMC4RIF.js → chunk-NNAJQJSC.js} +6 -3
- package/dist/{chunk-KFPGQ5RT.js → chunk-O2CID2IT.js} +11 -11
- package/dist/{chunk-ISZ7O2Q6.js → chunk-O6GCB7HD.js} +10 -9
- package/dist/{chunk-EG7NXGDD.js → chunk-OFUEFWOK.js} +19 -6
- package/dist/{chunk-ZQV2GAWY.js → chunk-OJNEZ5AY.js} +10 -9
- package/dist/{chunk-DPLH3EGO.js → chunk-OOK5CF2D.js} +91 -39
- package/dist/{chunk-TAAAYFBT.js → chunk-OR6R6OXI.js} +3 -3
- package/dist/{chunk-FBIGYEFN.js → chunk-OSM5E2YR.js} +6 -6
- package/dist/{chunk-37JQA6PI.js → chunk-PHI4NQLJ.js} +1 -1
- package/dist/{chunk-XKA3LTJZ.js → chunk-Q2QV62WV.js} +14 -8
- package/dist/{chunk-2PPF4GK5.js → chunk-QEV4RIZR.js} +60 -30
- package/dist/{chunk-44DNL43W.js → chunk-QHDDNBEI.js} +11 -11
- package/dist/{chunk-RSUZHZCG.js → chunk-QKAFDPXO.js} +12 -11
- package/dist/{chunk-O626XQW2.js → chunk-QKMSLSS6.js} +27 -4
- package/dist/{chunk-VS3GQ4JR.js → chunk-QLIA6OT4.js} +7 -5
- package/dist/{chunk-3PQTSFOS.js → chunk-QMH6X4OV.js} +1 -1
- package/dist/{chunk-FIPWA5KL.js → chunk-QRU57VKP.js} +27 -9
- package/dist/{chunk-ANZANDQM.js → chunk-QSGSKHZL.js} +5 -5
- package/dist/{chunk-LBXIMJFU.js → chunk-QSQFJRFC.js} +5 -6
- package/dist/chunk-QVKVPYNA.js +41 -0
- package/dist/{chunk-5TMFFW3Y.js → chunk-QYMPXHK5.js} +4 -1
- package/dist/{chunk-EAUUUVUR.js → chunk-QZPBZONY.js} +8 -7
- package/dist/chunk-RDV5ETG2.js +105 -0
- package/dist/{chunk-CBJUY4WE.js → chunk-RJ6FURDA.js} +5 -5
- package/dist/{chunk-24O5V2PQ.js → chunk-RJWEBYP2.js} +12 -3
- package/dist/{chunk-DUGKLVQJ.js → chunk-RKCW27UM.js} +0 -1
- package/dist/{chunk-WNPMHOXE.js → chunk-RQ673YJJ.js} +1 -1
- package/dist/{chunk-6322OCI4.js → chunk-RVVYQ6J5.js} +20 -9
- package/dist/{chunk-P37H477M.js → chunk-S4Q2HPP5.js} +8 -5
- package/dist/chunk-SDBQOVMA.js +53 -0
- package/dist/{chunk-3ZFF6VC5.js → chunk-SK6M4GOD.js} +11 -10
- package/dist/{chunk-SR4NYQWO.js → chunk-SL6HYI6T.js} +9 -3
- package/dist/{chunk-AMVX4DDT.js → chunk-STEGNOAK.js} +7 -7
- package/dist/{chunk-BG2W2KVE.js → chunk-T2GLXMC7.js} +10 -3
- package/dist/{chunk-H4URFOQC.js → chunk-TAN5UNTZ.js} +36 -5
- package/dist/{chunk-7RCBOTWL.js → chunk-TCCKCLEZ.js} +9 -14
- package/dist/{chunk-LPTY5WXM.js → chunk-TLPJA7QP.js} +6 -3
- package/dist/{chunk-XUZH4Y52.js → chunk-TN3ATHN7.js} +23 -22
- package/dist/{chunk-45KDL3JM.js → chunk-TOGS33KA.js} +11 -8
- package/dist/{chunk-YF3XSH54.js → chunk-TQKGGJ4W.js} +9 -3
- package/dist/{chunk-OH5VAD27.js → chunk-TXHOOVX7.js} +35 -17
- package/dist/{chunk-X4JYOCFA.js → chunk-UHNZ3I66.js} +20 -18
- package/dist/{chunk-VUDTGRS3.js → chunk-UHW53LWK.js} +1 -2
- package/dist/{chunk-45IXJ7W7.js → chunk-UINHBFRO.js} +12 -10
- package/dist/{chunk-F526V5BA.js → chunk-UNE53KA2.js} +6 -3
- package/dist/{chunk-4WCMPLE3.js → chunk-UQWPG5BH.js} +9 -5
- package/dist/{chunk-RBTX7TVA.js → chunk-URXTC4RD.js} +8 -7
- package/dist/{chunk-VWYX5IRP.js → chunk-USBGON3T.js} +38 -16
- package/dist/{chunk-FK2LKLRN.js → chunk-VDSYL3LA.js} +0 -1
- package/dist/{chunk-ADZI4ROA.js → chunk-VDUU5243.js} +1 -0
- package/dist/{chunk-JRD6FENH.js → chunk-VTZDMX2U.js} +18 -9
- package/dist/{chunk-F7LAUVDJ.js → chunk-VYFSYD3Z.js} +5 -2
- package/dist/{chunk-WRB66XD3.js → chunk-VYO4JJVI.js} +3 -1
- package/dist/{chunk-25RCKHWV.js → chunk-W3AUNR4J.js} +4 -3
- package/dist/{chunk-FT7WZV3D.js → chunk-W42RQZ2S.js} +17 -5
- package/dist/{chunk-E4MX3E3B.js → chunk-W723JZDF.js} +22 -7
- package/dist/{chunk-U7VX6A6K.js → chunk-WA4HAXEF.js} +40 -15
- package/dist/{chunk-ZGMBQZDV.js → chunk-WGHJKPVG.js} +29 -16
- package/dist/{chunk-UBTYMAKF.js → chunk-WIX5IGDH.js} +5 -8
- package/dist/{chunk-4GF7WTR3.js → chunk-WSN6SDBH.js} +1 -1
- package/dist/{chunk-FDE3S2YK.js → chunk-WSYMYSW3.js} +5 -5
- package/dist/{chunk-JWBGI7FN.js → chunk-WVXAVILO.js} +91 -39
- package/dist/{chunk-VNUX5LOC.js → chunk-WYFRNK6S.js} +9 -9
- package/dist/{chunk-2PQIPQGO.js → chunk-XDIWPIKO.js} +14 -10
- package/dist/{chunk-JE2MAZGR.js → chunk-XILRY6LB.js} +1 -1
- package/dist/{chunk-EOZDJA7Z.js → chunk-XKJ3KMMO.js} +13 -8
- package/dist/{chunk-Z5GNX2S3.js → chunk-XN2OBKPK.js} +1 -1
- package/dist/{chunk-SDL3JXFN.js → chunk-XSNQN67K.js} +1 -1
- package/dist/{chunk-BKHH2CJA.js → chunk-XWQNDAL5.js} +2 -2
- package/dist/{chunk-V7JUJQNR.js → chunk-XXOJGQF6.js} +1 -2
- package/dist/{chunk-ZE7BT2K4.js → chunk-Y3QA2RIG.js} +70 -13
- package/dist/{chunk-PIE76JKF.js → chunk-Y5NPX36Y.js} +35 -17
- package/dist/{chunk-JVTDNOHQ.js → chunk-YGRYE53G.js} +8 -8
- package/dist/{chunk-IDXERBKL.js → chunk-YSUGZLB5.js} +7 -3
- package/dist/{chunk-RGVRHFKY.js → chunk-YTQSVOA7.js} +5 -3
- package/dist/{chunk-UZF7SCRT.js → chunk-YV5WZJGS.js} +15 -11
- package/dist/{chunk-PSTMF66E.js → chunk-YVRTO4XC.js} +9 -6
- package/dist/{chunk-6HPSPZTF.js → chunk-YXEAYRUY.js} +10 -9
- package/dist/{chunk-GBOJUMMY.js → chunk-YXFUOERB.js} +6 -6
- package/dist/{chunk-DWZT455C.js → chunk-Z3PHHGUZ.js} +9 -9
- package/dist/{chunk-RXOVKEYG.js → chunk-Z77R5OHW.js} +3 -3
- package/dist/{chunk-G7WTEBMX.js → chunk-ZGJUXBLD.js} +11 -7
- package/dist/{chunk-IF6CWIUB.js → chunk-ZIC4VJ2T.js} +1 -1
- package/dist/{chunk-X2VID7XY.js → chunk-ZIL4N5BT.js} +2 -2
- package/dist/{chunk-FXXR3FM3.js → chunk-ZLIFMMAH.js} +10 -7
- package/dist/{chunk-72UKXOMW.js → chunk-ZMP7XCON.js} +22 -7
- package/dist/{chunk-UC55XR76.js → chunk-ZYZHLWFL.js} +8 -2
- package/dist/citations.js +1 -1
- package/dist/combobox-aui-046.js +1 -1
- package/dist/combobox-aui-047.js +1 -1
- package/dist/combobox.js +1 -1
- package/dist/command-palette.js +1 -1
- package/dist/comments.js +3 -3
- package/dist/context-menu.js +1 -1
- package/dist/context-meter.js +2 -2
- package/dist/cookie-consent.js +2 -2
- package/dist/copy-button.js +1 -1
- package/dist/data-table.js +1 -1
- package/dist/date-picker-aui-050.js +1 -1
- package/dist/date-picker-aui-051.js +1 -1
- package/dist/date-picker.js +1 -1
- package/dist/dialog.js +1 -1
- package/dist/drawer.js +1 -1
- package/dist/dropdown-menu.js +2 -2
- package/dist/elastic-string.js +2 -1
- package/dist/empty-state.js +2 -2
- package/dist/event-calendar.js +1 -1
- package/dist/fallback-chain.js +1 -1
- package/dist/field.js +1 -1
- package/dist/file-card.js +1 -1
- package/dist/file-manager.js +7 -7
- package/dist/file-upload.js +1 -1
- package/dist/flash-sale.js +1 -1
- package/dist/footer-aui-026.js +1 -1
- package/dist/footer-aui-027.js +1 -1
- package/dist/footer-aui-028.js +1 -1
- package/dist/footer.js +2 -2
- package/dist/gravity-pills.js +1 -1
- package/dist/hold-to-confirm.js +1 -1
- package/dist/image-compare.js +1 -1
- package/dist/inbox.js +3 -3
- package/dist/index.js +228 -193
- package/dist/ink-trail.js +2 -1
- package/dist/inline-edit.js +1 -1
- package/dist/input-aui-029.js +1 -1
- package/dist/input-aui-030.js +1 -1
- package/dist/input-aui-031.js +1 -1
- package/dist/input-aui-032.js +1 -1
- package/dist/input-aui-033.js +1 -1
- package/dist/input.js +1 -1
- package/dist/invoice.js +2 -2
- package/dist/kanban.js +2 -2
- package/dist/menubar.js +1 -1
- package/dist/meter.js +1 -1
- package/dist/model-picker.js +1 -1
- package/dist/motion-button.js +1 -1
- package/dist/navbar-aui-009.js +1 -1
- package/dist/navbar-aui-010.js +1 -1
- package/dist/navbar-aui-011.js +1 -1
- package/dist/navbar-aui-012.js +1 -1
- package/dist/navbar-aui-013.js +1 -1
- package/dist/navbar-aui-014.js +1 -1
- package/dist/navbar.js +2 -2
- package/dist/needle-field.js +1 -1
- package/dist/notification-center.js +3 -3
- package/dist/notification-stack.js +2 -1
- package/dist/now-playing.js +2 -1
- package/dist/number-input.js +1 -1
- package/dist/onboarding.js +2 -2
- package/dist/otp-input-aui-041.js +1 -1
- package/dist/otp-input-aui-042.js +1 -1
- package/dist/pagination.js +1 -1
- package/dist/password-input-aui-040.js +1 -1
- package/dist/password-input.js +1 -1
- package/dist/pay-methods.js +2 -1
- package/dist/payment-received.js +2 -1
- package/dist/payment-status.js +2 -1
- package/dist/phone-input.js +1 -1
- package/dist/pixel-reveal.js +1 -1
- package/dist/plan-switcher.js +2 -1
- package/dist/popover.js +1 -1
- package/dist/price-alert.js +1 -1
- package/dist/price-chart.js +2 -1
- package/dist/pricing-aui-021.js +1 -1
- package/dist/pricing-aui-022.js +1 -1
- package/dist/pricing-aui-023.js +1 -1
- package/dist/pricing-aui-024.js +1 -1
- package/dist/pricing.js +2 -2
- package/dist/prompt-composer.js +1 -1
- package/dist/properties-panel.js +1 -1
- package/dist/radio-group-aui-055.js +1 -1
- package/dist/radio-group-aui-056.js +1 -1
- package/dist/radio-group-aui-057.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/range-slider.js +1 -1
- package/dist/rating.js +1 -1
- package/dist/scramble-text.js +1 -1
- package/dist/scrub-input.js +1 -1
- package/dist/seat-picker.js +2 -1
- package/dist/segmented-control.js +1 -1
- package/dist/select-aui-043.js +1 -1
- package/dist/select-aui-044.js +1 -1
- package/dist/select-aui-045.js +1 -1
- package/dist/select.js +1 -1
- package/dist/settings-panel.js +2 -2
- package/dist/shipment-tracker.js +2 -1
- package/dist/sidebar.js +2 -2
- package/dist/sign-in-aui-015.js +1 -1
- package/dist/sign-in-aui-016.js +1 -1
- package/dist/sign-in-aui-017.js +1 -1
- package/dist/sign-in-aui-018.js +1 -1
- package/dist/sign-in-aui-019.js +1 -1
- package/dist/sign-in-aui-020.js +1 -1
- package/dist/sign-in.js +2 -2
- package/dist/skeleton.js +1 -1
- package/dist/slider-aui-062.js +1 -1
- package/dist/slider-aui-063.js +1 -1
- package/dist/slider.js +1 -1
- package/dist/snap-grid.js +1 -1
- package/dist/sortable-list.js +1 -1
- package/dist/spinner.js +1 -1
- package/dist/split-bill.js +1 -1
- package/dist/split-flap.js +2 -1
- package/dist/stat-card.js +1 -1
- package/dist/stepper.js +1 -1
- package/dist/styles.css +3 -0
- package/dist/switch-aui-058.js +1 -1
- package/dist/switch-aui-059.js +1 -1
- package/dist/switch-aui-060.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tag-input-aui-048.js +1 -1
- package/dist/tag-input-aui-049.js +1 -1
- package/dist/tag-input.js +1 -1
- package/dist/team-members.js +4 -4
- package/dist/testimonials.js +2 -2
- package/dist/textarea-aui-002.js +1 -1
- package/dist/textarea-aui-003.js +1 -1
- package/dist/textarea-aui-005.js +1 -1
- package/dist/textarea-aui-006.js +1 -1
- package/dist/textarea-aui-007.js +1 -1
- package/dist/textarea-aui-008.js +1 -1
- package/dist/textarea-aui-036.js +1 -1
- package/dist/textarea-aui-037.js +1 -1
- package/dist/textarea-aui-038.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/thinking.js +1 -1
- package/dist/toast.js +1 -1
- package/dist/token-swap.js +2 -1
- package/dist/tool-approval.js +1 -1
- package/dist/tool-dock.js +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/trace-waterfall.js +1 -1
- package/dist/trade-ticket.js +2 -1
- package/dist/tree-view.js +1 -1
- package/dist/types/components/kit/accordion.d.ts +4 -3
- package/dist/types/components/kit/api-keys.d.ts +1 -1
- package/dist/types/components/kit/base/navbar.d.ts +2 -0
- package/dist/types/components/kit/base/pricing.d.ts +4 -1
- package/dist/types/components/kit/navbar.d.ts +2 -0
- package/dist/types/components/kit/pricing.d.ts +4 -1
- package/dist/types/components/kit/variants/button-aui-064.d.ts +21 -0
- package/dist/types/components/kit/variants/button-aui-065.d.ts +26 -0
- package/dist/types/components/kit/variants/button-aui-066.d.ts +19 -0
- package/dist/types/components/kit/variants/button-aui-067.d.ts +23 -0
- package/dist/types/components/kit/variants/button-aui-068.d.ts +28 -0
- package/dist/types/components/lab/lab-hooks.d.ts +12 -0
- package/dist/types/packages/asta-ui/src/base/accordion.d.ts +2 -2
- package/dist/types/packages/asta-ui/src/base/button-aui-064.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/button-aui-065.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/button-aui-066.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/button-aui-067.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/button-aui-068.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base.d.ts +12 -2
- package/dist/types/packages/asta-ui/src/button-aui-064.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/button-aui-065.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/button-aui-066.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/button-aui-067.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/button-aui-068.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/index.d.ts +10 -0
- package/dist/variant-picker.js +2 -1
- package/dist/watchlist.js +1 -1
- package/dist/wishlist.js +2 -1
- package/dist/workspace-switcher.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-2Z5Z4YYZ.js +0 -57
- package/dist/chunk-B7V4ZTKI.js +0 -53
- package/dist/chunk-XTP6ITUJ.js +0 -55
- package/dist/types/components/kit/base/accordion.d.ts +0 -19
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Button
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5ZQ6PMJT.js";
|
|
5
5
|
|
|
6
6
|
// components/kit/navbar.tsx
|
|
7
|
-
import { useCallback, useEffect, useLayoutEffect, useRef, useState } from "react";
|
|
7
|
+
import { useCallback, useEffect, useId, useLayoutEffect, useRef, useState } from "react";
|
|
8
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
var cx = (...c) => c.filter(Boolean).join(" ");
|
|
10
10
|
var RING = "shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_12%,transparent)]";
|
|
11
11
|
var EASE = "ease-[cubic-bezier(.16,1,.3,1)]";
|
|
12
|
-
var Chevron = ({ className = "" }) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
12
|
+
var Chevron = ({ className = "" }) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: cx("h-3.5 w-3.5", className), fill: "none", stroke: "currentColor", strokeWidth: "2.55", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "m9.5 6 6 6-6 6" }) });
|
|
13
13
|
function Preview({ kind }) {
|
|
14
14
|
const bar = "rounded-full bg-[color-mix(in_srgb,var(--ink)_12%,transparent)] transition-colors duration-500";
|
|
15
15
|
return /* @__PURE__ */ jsxs(
|
|
@@ -112,12 +112,12 @@ function Panel({ menu }) {
|
|
|
112
112
|
{
|
|
113
113
|
href: menu.feature.href,
|
|
114
114
|
"data-kit-nav-link": true,
|
|
115
|
-
className: "group/feat relative flex min-h-[200px] flex-col justify-end overflow-hidden rounded-[10px] bg-brand p-4 text-
|
|
115
|
+
className: "group/feat relative flex min-h-[200px] flex-col justify-end overflow-hidden rounded-[10px] bg-brand p-4 text-on-brand outline-none transition-opacity duration-300 group-has-[a:hover]/menu:opacity-70 hover:!opacity-100 focus-visible:ring-2 focus-visible:ring-brand/50 focus-visible:ring-offset-2 focus-visible:ring-offset-paper",
|
|
116
116
|
children: [
|
|
117
|
-
/* @__PURE__ */ jsx("span", { "aria-hidden": true, className: cx("absolute -right-10 -top-10 h-40 w-40 rounded-full bg-
|
|
118
|
-
/* @__PURE__ */ jsx("span", { "aria-hidden": true, className: cx("absolute -right-2 top-12 h-20 w-20 rounded-full bg-
|
|
117
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": true, className: cx("absolute -right-10 -top-10 h-40 w-40 rounded-full bg-on-brand/15 transition-transform duration-700 group-hover/feat:scale-125", EASE) }),
|
|
118
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": true, className: cx("absolute -right-2 top-12 h-20 w-20 rounded-full bg-on-brand/10 transition-transform duration-700 group-hover/feat:-translate-x-3", EASE) }),
|
|
119
119
|
/* @__PURE__ */ jsx("span", { className: "relative text-[15px] font-medium tracking-[-0.01em]", children: menu.feature.title }),
|
|
120
|
-
/* @__PURE__ */ jsx("span", { className: "relative mt-1 text-[12.5px] leading-snug text-
|
|
120
|
+
/* @__PURE__ */ jsx("span", { className: "relative mt-1 text-[12.5px] leading-snug text-on-brand/80", children: menu.feature.description }),
|
|
121
121
|
/* @__PURE__ */ jsxs("span", { className: "relative mt-3 flex items-center gap-1 text-[13px] font-medium", children: [
|
|
122
122
|
menu.feature.cta,
|
|
123
123
|
/* @__PURE__ */ jsx(Chevron, { className: cx("transition-transform duration-300 group-hover/feat:translate-x-0.5", EASE) })
|
|
@@ -128,7 +128,12 @@ function Panel({ menu }) {
|
|
|
128
128
|
] })
|
|
129
129
|
] });
|
|
130
130
|
}
|
|
131
|
-
var flat = (m) => [
|
|
131
|
+
var flat = (m) => [
|
|
132
|
+
...m.list ?? [],
|
|
133
|
+
...m.tiles ?? [],
|
|
134
|
+
...m.columns?.flatMap((c) => c.links) ?? [],
|
|
135
|
+
...m.feature ? [{ title: m.feature.title, description: m.feature.description, href: m.feature.href }] : []
|
|
136
|
+
];
|
|
132
137
|
function Navbar({ brand, brandHref = "/", items, docs, cta, scrollRoot, className }) {
|
|
133
138
|
const [open, setOpen] = useState(null);
|
|
134
139
|
const [dir, setDir] = useState(1);
|
|
@@ -139,11 +144,17 @@ function Navbar({ brand, brandHref = "/", items, docs, cta, scrollRoot, classNam
|
|
|
139
144
|
const [scrolled, setScrolled] = useState(false);
|
|
140
145
|
const [sheet, setSheet] = useState(false);
|
|
141
146
|
const [section, setSection] = useState(null);
|
|
147
|
+
const [pill, setPill] = useState({ x: 0, w: 0, on: false, glide: false });
|
|
148
|
+
const [current, setCurrent] = useState(null);
|
|
142
149
|
const root = useRef(null);
|
|
143
150
|
const content = useRef(null);
|
|
144
151
|
const triggers = useRef([]);
|
|
145
152
|
const timer = useRef(void 0);
|
|
146
153
|
const focusPanel = useRef(false);
|
|
154
|
+
const hoverAt = useRef(0);
|
|
155
|
+
const uid = useId();
|
|
156
|
+
const panelId = `${uid}-panel`;
|
|
157
|
+
const sheetId = `${uid}-sheet`;
|
|
147
158
|
const openRef = useRef(null);
|
|
148
159
|
const shown = open ?? last;
|
|
149
160
|
useEffect(() => {
|
|
@@ -165,8 +176,12 @@ function Navbar({ brand, brandHref = "/", items, docs, cta, scrollRoot, classNam
|
|
|
165
176
|
}, []);
|
|
166
177
|
const enter = (i) => {
|
|
167
178
|
clearTimeout(timer.current);
|
|
168
|
-
|
|
169
|
-
|
|
179
|
+
const go = () => {
|
|
180
|
+
hoverAt.current = performance.now();
|
|
181
|
+
show(i);
|
|
182
|
+
};
|
|
183
|
+
if (openRef.current === null) timer.current = setTimeout(go, 80);
|
|
184
|
+
else go();
|
|
170
185
|
};
|
|
171
186
|
const leave = () => {
|
|
172
187
|
clearTimeout(timer.current);
|
|
@@ -177,7 +192,6 @@ function Navbar({ brand, brandHref = "/", items, docs, cta, scrollRoot, classNam
|
|
|
177
192
|
const el = content.current;
|
|
178
193
|
if (shown === null || !el) return;
|
|
179
194
|
const measure = () => setSize({ w: el.offsetWidth, h: el.offsetHeight });
|
|
180
|
-
measure();
|
|
181
195
|
const ro = new ResizeObserver(measure);
|
|
182
196
|
ro.observe(el);
|
|
183
197
|
if (focusPanel.current) {
|
|
@@ -194,6 +208,26 @@ function Navbar({ brand, brandHref = "/", items, docs, cta, scrollRoot, classNam
|
|
|
194
208
|
target.addEventListener("scroll", read, { passive: true });
|
|
195
209
|
return () => target.removeEventListener("scroll", read);
|
|
196
210
|
}, [scrollRoot]);
|
|
211
|
+
const anchors = items.map((it) => it.href).filter((h) => !!h && h.startsWith("#") && h.length > 1).join(" ");
|
|
212
|
+
useEffect(() => {
|
|
213
|
+
const els = anchors.split(" ").filter(Boolean).map((h) => document.getElementById(decodeURIComponent(h.slice(1)))).filter((el) => !!el);
|
|
214
|
+
if (!els.length) return;
|
|
215
|
+
const io = new IntersectionObserver(
|
|
216
|
+
(entries) => {
|
|
217
|
+
for (const e of entries) if (e.isIntersecting) setCurrent(`#${e.target.id}`);
|
|
218
|
+
if (entries.every((e) => !e.isIntersecting) && entries.length === els.length) setCurrent(null);
|
|
219
|
+
},
|
|
220
|
+
{ root: scrollRoot?.current ?? null, rootMargin: "-45% 0px -50% 0px" }
|
|
221
|
+
);
|
|
222
|
+
els.forEach((el) => io.observe(el));
|
|
223
|
+
return () => io.disconnect();
|
|
224
|
+
}, [anchors, scrollRoot]);
|
|
225
|
+
const glideTo = (el, e) => {
|
|
226
|
+
if (e.pointerType !== "mouse") return;
|
|
227
|
+
const x = el.offsetLeft;
|
|
228
|
+
const w = el.offsetWidth;
|
|
229
|
+
setPill((p) => ({ x, w, on: true, glide: p.on }));
|
|
230
|
+
};
|
|
197
231
|
useEffect(() => {
|
|
198
232
|
const down = (e) => {
|
|
199
233
|
if (!root.current?.contains(e.target)) {
|
|
@@ -220,14 +254,14 @@ function Navbar({ brand, brandHref = "/", items, docs, cta, scrollRoot, classNam
|
|
|
220
254
|
useEffect(() => () => clearTimeout(timer.current), []);
|
|
221
255
|
const menu = shown !== null ? items[shown]?.menu : void 0;
|
|
222
256
|
const panelX = menu?.list ? Math.max(12, Math.min(anchor.left - 6, anchor.bar - size.w - 12)) : (anchor.bar - size.w) / 2;
|
|
223
|
-
const trigger = "flex h-8 items-center gap-1 rounded-md px-2.5 text-[13.5px] font-medium text-ink-2 outline-none transition-colors duration-200 hover:
|
|
257
|
+
const trigger = "relative flex h-8 items-center gap-1 rounded-md px-2.5 text-[13.5px] font-medium text-ink-2 outline-none transition-colors duration-200 hover:text-ink focus-visible:ring-2 focus-visible:ring-brand/50 aria-expanded:text-ink";
|
|
224
258
|
return /* @__PURE__ */ jsxs(
|
|
225
259
|
"header",
|
|
226
260
|
{
|
|
227
261
|
ref: root,
|
|
228
262
|
className: cx(
|
|
229
|
-
"sticky top-0 z-30 w-full
|
|
230
|
-
|
|
263
|
+
"sticky top-0 z-30 w-full transition-colors duration-300",
|
|
264
|
+
sheet && "bg-paper",
|
|
231
265
|
className
|
|
232
266
|
),
|
|
233
267
|
children: [
|
|
@@ -236,39 +270,102 @@ function Navbar({ brand, brandHref = "/", items, docs, cta, scrollRoot, classNam
|
|
|
236
270
|
@keyframes kit-nav-pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
|
|
237
271
|
@media (prefers-reduced-motion: reduce) { .kit-nav-motion, .kit-nav-motion * { animation: none !important; transition-duration: 0s !important; } }
|
|
238
272
|
` }),
|
|
239
|
-
/* @__PURE__ */ jsxs("div", { "data-kit-nav-bar": true, className: "kit-nav-motion relative flex h-14 items-center gap-3 px-4", children: [
|
|
273
|
+
/* @__PURE__ */ jsxs("div", { "data-kit-nav-bar": true, className: "kit-nav-motion relative isolate flex h-14 items-center gap-3 px-4", children: [
|
|
274
|
+
/* @__PURE__ */ jsx(
|
|
275
|
+
"span",
|
|
276
|
+
{
|
|
277
|
+
"aria-hidden": true,
|
|
278
|
+
className: cx(
|
|
279
|
+
"pointer-events-none absolute inset-x-1.5 inset-y-1.5 -z-10 rounded-[14px] bg-paper/90 backdrop-blur-md transition-[opacity,transform] duration-500",
|
|
280
|
+
"shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_9%,transparent),0_1px_2px_rgb(0_0_0/0.04),0_12px_32px_-16px_rgb(0_0_0/0.28)]",
|
|
281
|
+
EASE,
|
|
282
|
+
scrolled && !sheet ? "opacity-100" : "scale-[.985] opacity-0"
|
|
283
|
+
)
|
|
284
|
+
}
|
|
285
|
+
),
|
|
240
286
|
/* @__PURE__ */ jsx("a", { href: brandHref, className: "flex flex-1 items-center gap-2 text-[15px] font-semibold tracking-[-0.02em] text-ink outline-none focus-visible:ring-2 focus-visible:ring-brand/50 rounded-md", children: brand }),
|
|
241
|
-
/* @__PURE__ */ jsx(
|
|
242
|
-
"
|
|
287
|
+
/* @__PURE__ */ jsx(
|
|
288
|
+
"nav",
|
|
243
289
|
{
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
"aria-controls": "kit-nav-panel",
|
|
250
|
-
onPointerEnter: (e) => e.pointerType === "mouse" && enter(i),
|
|
251
|
-
onClick: () => show(open === i ? null : i),
|
|
252
|
-
onKeyDown: (e) => {
|
|
253
|
-
if (e.key === "ArrowDown" || (e.key === "Enter" || e.key === " ") && open !== i) {
|
|
254
|
-
e.preventDefault();
|
|
255
|
-
focusPanel.current = true;
|
|
256
|
-
show(i);
|
|
257
|
-
} else if (e.key === "ArrowRight" || e.key === "ArrowLeft") {
|
|
258
|
-
e.preventDefault();
|
|
259
|
-
const step = e.key === "ArrowRight" ? 1 : -1;
|
|
260
|
-
const next = (i + step + items.length) % items.length;
|
|
261
|
-
root.current?.querySelectorAll("nav[aria-label=Main] li > *")[next]?.focus();
|
|
262
|
-
if (open !== null && items[next].menu) show(next);
|
|
263
|
-
}
|
|
290
|
+
"aria-label": "Main",
|
|
291
|
+
className: "hidden @min-[560px]:block",
|
|
292
|
+
onPointerLeave: () => {
|
|
293
|
+
leave();
|
|
294
|
+
setPill((p) => ({ ...p, on: false }));
|
|
264
295
|
},
|
|
265
|
-
|
|
266
|
-
children: [
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
296
|
+
onPointerEnter: stay,
|
|
297
|
+
children: /* @__PURE__ */ jsxs("ul", { className: "relative flex items-center gap-0.5", children: [
|
|
298
|
+
/* @__PURE__ */ jsx("li", { "aria-hidden": true, className: "pointer-events-none absolute left-0 top-0", children: /* @__PURE__ */ jsx(
|
|
299
|
+
"span",
|
|
300
|
+
{
|
|
301
|
+
className: cx(
|
|
302
|
+
"block h-8 rounded-md bg-paper-2",
|
|
303
|
+
// perf-ok: width follows the hovered link. An absolute 32px box, so nothing else lays out.
|
|
304
|
+
pill.glide ? "transition-[transform,width,opacity] duration-300" : "transition-opacity duration-200",
|
|
305
|
+
EASE,
|
|
306
|
+
pill.on || open !== null ? "opacity-100" : "opacity-0"
|
|
307
|
+
),
|
|
308
|
+
style: { width: pill.w, transform: `translateX(${pill.x}px)` }
|
|
309
|
+
}
|
|
310
|
+
) }),
|
|
311
|
+
items.map((it, i) => /* @__PURE__ */ jsx("li", { children: it.menu ? /* @__PURE__ */ jsxs(
|
|
312
|
+
"button",
|
|
313
|
+
{
|
|
314
|
+
ref: (el) => {
|
|
315
|
+
triggers.current[i] = el;
|
|
316
|
+
},
|
|
317
|
+
type: "button",
|
|
318
|
+
"aria-expanded": open === i,
|
|
319
|
+
"aria-controls": panelId,
|
|
320
|
+
onPointerEnter: (e) => {
|
|
321
|
+
glideTo(e.currentTarget, e);
|
|
322
|
+
if (e.pointerType === "mouse") enter(i);
|
|
323
|
+
},
|
|
324
|
+
onClick: () => {
|
|
325
|
+
if (open !== i) return show(i);
|
|
326
|
+
if (performance.now() - hoverAt.current > 400) show(null);
|
|
327
|
+
},
|
|
328
|
+
onKeyDown: (e) => {
|
|
329
|
+
if (e.key === "ArrowDown" || (e.key === "Enter" || e.key === " ") && open !== i) {
|
|
330
|
+
e.preventDefault();
|
|
331
|
+
if (open === i) return content.current?.querySelector("[data-kit-nav-link]")?.focus();
|
|
332
|
+
focusPanel.current = true;
|
|
333
|
+
show(i);
|
|
334
|
+
} else if (e.key === "ArrowRight" || e.key === "ArrowLeft") {
|
|
335
|
+
e.preventDefault();
|
|
336
|
+
const step = e.key === "ArrowRight" ? 1 : -1;
|
|
337
|
+
const next = (i + step + items.length) % items.length;
|
|
338
|
+
root.current?.querySelectorAll("nav[aria-label=Main] li:not([aria-hidden]) > *")[next]?.focus();
|
|
339
|
+
if (open !== null && items[next].menu) show(next);
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
className: cx(trigger, "pr-2"),
|
|
343
|
+
children: [
|
|
344
|
+
it.label,
|
|
345
|
+
/* @__PURE__ */ jsx(Chevron, { className: cx("text-mute transition-transform duration-300", EASE, open === i ? "-rotate-90" : "rotate-90") })
|
|
346
|
+
]
|
|
347
|
+
}
|
|
348
|
+
) : /* @__PURE__ */ jsx(
|
|
349
|
+
"a",
|
|
350
|
+
{
|
|
351
|
+
href: it.href,
|
|
352
|
+
"aria-current": current !== null && it.href === current ? "location" : void 0,
|
|
353
|
+
className: cx(
|
|
354
|
+
trigger,
|
|
355
|
+
"aria-[current=location]:text-ink",
|
|
356
|
+
// A small brand dot under the section on screen, with aria-current and a darker label.
|
|
357
|
+
"after:absolute after:bottom-0 after:left-1/2 after:h-1 after:w-1 after:-translate-x-1/2 after:rounded-full after:bg-brand after:opacity-0 after:transition-opacity after:duration-300 aria-[current=location]:after:opacity-100"
|
|
358
|
+
),
|
|
359
|
+
onPointerEnter: (e) => {
|
|
360
|
+
glideTo(e.currentTarget, e);
|
|
361
|
+
if (openRef.current !== null) show(null);
|
|
362
|
+
},
|
|
363
|
+
children: it.label
|
|
364
|
+
}
|
|
365
|
+
) }, it.label))
|
|
366
|
+
] })
|
|
270
367
|
}
|
|
271
|
-
)
|
|
368
|
+
),
|
|
272
369
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-1 items-center justify-end gap-1.5", children: [
|
|
273
370
|
docs && /* @__PURE__ */ jsx(
|
|
274
371
|
"div",
|
|
@@ -289,7 +386,7 @@ function Navbar({ brand, brandHref = "/", items, docs, cta, scrollRoot, classNam
|
|
|
289
386
|
type: "button",
|
|
290
387
|
"aria-label": sheet ? "Close menu" : "Open menu",
|
|
291
388
|
"aria-expanded": sheet,
|
|
292
|
-
"aria-controls":
|
|
389
|
+
"aria-controls": sheetId,
|
|
293
390
|
onClick: () => setSheet((v) => !v),
|
|
294
391
|
className: "relative flex h-8 w-8 items-center justify-center rounded-md outline-none transition-colors hover:bg-paper-2 focus-visible:ring-2 focus-visible:ring-brand/50 @min-[560px]:hidden",
|
|
295
392
|
children: [
|
|
@@ -302,7 +399,8 @@ function Navbar({ brand, brandHref = "/", items, docs, cta, scrollRoot, classNam
|
|
|
302
399
|
/* @__PURE__ */ jsx(
|
|
303
400
|
"div",
|
|
304
401
|
{
|
|
305
|
-
id:
|
|
402
|
+
id: panelId,
|
|
403
|
+
inert: open === null,
|
|
306
404
|
onPointerEnter: stay,
|
|
307
405
|
onPointerLeave: leave,
|
|
308
406
|
className: cx(
|
|
@@ -343,7 +441,7 @@ function Navbar({ brand, brandHref = "/", items, docs, cta, scrollRoot, classNam
|
|
|
343
441
|
/* @__PURE__ */ jsxs(
|
|
344
442
|
"div",
|
|
345
443
|
{
|
|
346
|
-
id:
|
|
444
|
+
id: sheetId,
|
|
347
445
|
hidden: !sheet,
|
|
348
446
|
className: "kit-nav-motion absolute inset-x-0 top-full max-h-[calc(100svh-3.5rem)] overflow-y-auto overscroll-contain bg-paper px-3 pb-6 pt-2 @min-[560px]:hidden",
|
|
349
447
|
style: { animation: sheet ? "kit-nav-pop .4s cubic-bezier(.16,1,.3,1) both" : void 0 },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Button
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HSDMCZMX.js";
|
|
5
5
|
|
|
6
6
|
// components/kit/base/settings-panel.tsx
|
|
7
7
|
import { forwardRef, useEffect, useId, useImperativeHandle, useRef, useState } from "react";
|
|
@@ -32,6 +32,7 @@ function Toggle({ checked, onChange, label, hint }) {
|
|
|
32
32
|
"span",
|
|
33
33
|
{
|
|
34
34
|
className: cx(
|
|
35
|
+
// perf-ok: the thumb stretches a few px on press, a tiny element that only moves on interaction.
|
|
35
36
|
"absolute left-0.5 top-0.5 h-5 w-5 rounded-full bg-white shadow-[0_1px_3px_rgb(0_0_0/0.25)] transition-[transform,width] duration-300 group-active:w-6",
|
|
36
37
|
EASE,
|
|
37
38
|
checked ? "translate-x-4 group-active:translate-x-3" : "translate-x-0"
|
|
@@ -199,7 +200,7 @@ var SettingsPanel = forwardRef(function SettingsPanel2({ initial, onSave, langua
|
|
|
199
200
|
children: languages.map((l) => /* @__PURE__ */ jsx("option", { children: l }, l))
|
|
200
201
|
}
|
|
201
202
|
),
|
|
202
|
-
/* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
203
|
+
/* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: "pointer-events-none absolute right-3 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-mute", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "m6 9.5 6 6 6-6" }) })
|
|
203
204
|
] })
|
|
204
205
|
] })
|
|
205
206
|
] })
|
|
@@ -222,7 +223,7 @@ var SettingsPanel = forwardRef(function SettingsPanel2({ initial, onSave, langua
|
|
|
222
223
|
className: "pointer-events-auto flex items-center gap-2 rounded-[10px] bg-ink py-2 pl-4 pr-2 text-paper shadow-[0_12px_30px_-10px_rgb(0_0_0/0.5)]",
|
|
223
224
|
children: [
|
|
224
225
|
/* @__PURE__ */ jsx("span", { className: "flex min-w-0 flex-1 items-center gap-2 text-[13.5px]", "aria-live": "polite", children: status === "saved" ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
225
|
-
/* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
226
|
+
/* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: "h-4 w-4 shrink-0 text-paper", fill: "none", stroke: "currentColor", strokeWidth: "3", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "m5 12.5 4.5 4.5L19 7.5" }) }),
|
|
226
227
|
"Saved"
|
|
227
228
|
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
228
229
|
/* @__PURE__ */ jsx("span", { className: "h-1.5 w-1.5 shrink-0 rounded-full bg-brand" }),
|
|
@@ -214,9 +214,11 @@ function PresetDatePicker({ value, defaultValue, onChange, presets = PRESETS, la
|
|
|
214
214
|
open && "!shadow-[inset_0_0_0_1px_var(--brand),0_0_0_4px_color-mix(in_srgb,var(--brand)_30%,transparent)]"
|
|
215
215
|
),
|
|
216
216
|
children: [
|
|
217
|
-
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0
|
|
218
|
-
/* @__PURE__ */ jsx("rect", { x: "
|
|
219
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
217
|
+
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: cx("h-4 w-4 shrink-0", sel ? "text-brand" : "text-[color-mix(in_srgb,var(--paper)_50%,transparent)]"), fill: "none", stroke: "currentColor", strokeWidth: "2.25", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
218
|
+
/* @__PURE__ */ jsx("rect", { x: "4", y: "5.5", width: "16", height: "14.5", rx: "2" }),
|
|
219
|
+
/* @__PURE__ */ jsx("path", { d: "M4 10h16" }),
|
|
220
|
+
/* @__PURE__ */ jsx("path", { d: "M8.5 3.5v4" }),
|
|
221
|
+
/* @__PURE__ */ jsx("path", { d: "M15.5 3.5v4" })
|
|
220
222
|
] }),
|
|
221
223
|
/* @__PURE__ */ jsx("span", { className: "font-mono text-[10.5px] uppercase tracking-[0.08em] text-[color-mix(in_srgb,var(--paper)_50%,transparent)]", children: label }),
|
|
222
224
|
/* @__PURE__ */ jsxs("span", { className: "text-[13.5px] font-medium tabular-nums tracking-[-0.01em]", children: [
|
|
@@ -224,7 +226,7 @@ function PresetDatePicker({ value, defaultValue, onChange, presets = PRESETS, la
|
|
|
224
226
|
/* @__PURE__ */ jsx("span", { className: "sr-only", children: text })
|
|
225
227
|
] }),
|
|
226
228
|
relText && /* @__PURE__ */ jsx("span", { className: "hidden text-[12px] text-[color-mix(in_srgb,var(--paper)_50%,transparent)] sm:inline", children: relText }),
|
|
227
|
-
/* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
229
|
+
/* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: cx("h-3.5 w-3.5 shrink-0 text-[color-mix(in_srgb,var(--paper)_50%,transparent)] transition-transform duration-300", open && "rotate-180"), fill: "none", stroke: "currentColor", strokeWidth: "2.7", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "m6 9.5 6 6 6-6" }) })
|
|
228
230
|
]
|
|
229
231
|
}
|
|
230
232
|
),
|
|
@@ -258,12 +260,12 @@ function PresetDatePicker({ value, defaultValue, onChange, presets = PRESETS, la
|
|
|
258
260
|
onClick: () => commit(d, true),
|
|
259
261
|
className: cx(
|
|
260
262
|
"group/p flex h-[30px] w-full items-center gap-2.5 whitespace-nowrap rounded-[8px] px-2.5 text-left text-[13px] outline-none transition-colors duration-150 focus-visible:ring-2 focus-visible:ring-brand/70",
|
|
261
|
-
on ? "bg-brand text-
|
|
263
|
+
on ? "bg-brand text-on-brand" : "text-[color-mix(in_srgb,var(--paper)_82%,transparent)] hover:bg-[color-mix(in_srgb,var(--paper)_8%,transparent)] hover:text-paper focus-visible:bg-[color-mix(in_srgb,var(--paper)_8%,transparent)]"
|
|
262
264
|
),
|
|
263
265
|
children: [
|
|
264
266
|
/* @__PURE__ */ jsx("span", { className: "flex-1", children: p.label }),
|
|
265
|
-
/* @__PURE__ */ jsx("span", { className: cx("hidden font-mono text-[10.5px] tabular-nums @min-[400px]:inline", on ? "text-
|
|
266
|
-
/* @__PURE__ */ jsx("kbd", { className: cx("hidden h-4 min-w-4 items-center justify-center rounded-[4px] px-1 font-mono text-[9.5px] @min-[400px]:flex", on ? "bg-
|
|
267
|
+
/* @__PURE__ */ jsx("span", { className: cx("hidden font-mono text-[10.5px] tabular-nums @min-[400px]:inline", on ? "text-on-brand/75" : "text-[color-mix(in_srgb,var(--paper)_42%,transparent)]"), children: d ? hintFmt.format(d) : "\u2014" }),
|
|
268
|
+
/* @__PURE__ */ jsx("kbd", { className: cx("hidden h-4 min-w-4 items-center justify-center rounded-[4px] px-1 font-mono text-[9.5px] @min-[400px]:flex", on ? "bg-on-brand/20 text-on-brand" : "bg-[color-mix(in_srgb,var(--paper)_8%,transparent)] text-[color-mix(in_srgb,var(--paper)_50%,transparent)]"), children: i + 1 })
|
|
267
269
|
]
|
|
268
270
|
}
|
|
269
271
|
) }, p.label);
|
|
@@ -281,7 +283,7 @@ function PresetDatePicker({ value, defaultValue, onChange, presets = PRESETS, la
|
|
|
281
283
|
flip(d);
|
|
282
284
|
},
|
|
283
285
|
className: "flex h-7 w-7 items-center justify-center rounded-[7px] text-[color-mix(in_srgb,var(--paper)_70%,transparent)] outline-none transition-[background-color,transform] duration-150 hover:bg-[color-mix(in_srgb,var(--paper)_10%,transparent)] hover:text-paper focus-visible:ring-2 focus-visible:ring-brand/70 active:scale-90",
|
|
284
|
-
children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
286
|
+
children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: "h-3.5 w-3.5", fill: "none", stroke: "currentColor", strokeWidth: "2.7", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: d === 1 ? "M9.5 6l6 6-6 6" : "M14.5 6l-6 6 6 6" }) })
|
|
285
287
|
},
|
|
286
288
|
d
|
|
287
289
|
)) })
|
|
@@ -312,12 +314,12 @@ function PresetDatePicker({ value, defaultValue, onChange, presets = PRESETS, la
|
|
|
312
314
|
onFocus: () => !isFocus && setFocus(d),
|
|
313
315
|
className: cx(
|
|
314
316
|
"relative flex h-7 w-8 items-center justify-center rounded-[7px] text-[12.5px] tabular-nums outline-none transition-colors duration-150 focus-visible:ring-2 focus-visible:ring-brand/70",
|
|
315
|
-
on ? "font-medium text-
|
|
317
|
+
on ? "font-medium text-on-brand" : inMonth ? "text-paper hover:bg-[color-mix(in_srgb,var(--paper)_10%,transparent)]" : "text-[color-mix(in_srgb,var(--paper)_32%,transparent)] hover:bg-[color-mix(in_srgb,var(--paper)_8%,transparent)]"
|
|
316
318
|
),
|
|
317
319
|
children: [
|
|
318
320
|
on && /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "absolute inset-0 rounded-[7px] bg-brand shadow-[0_0_18px_-2px_color-mix(in_srgb,var(--brand)_75%,transparent)]", style: { animation: `aui051-dot .42s ${EASE} both` } }),
|
|
319
321
|
/* @__PURE__ */ jsx("span", { className: "relative", children: d.getDate() }),
|
|
320
|
-
isToday && /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: cx("absolute bottom-1 left-1/2 h-[3px] w-[3px] -translate-x-1/2 rounded-full", on ? "bg-
|
|
322
|
+
isToday && /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: cx("absolute bottom-1 left-1/2 h-[3px] w-[3px] -translate-x-1/2 rounded-full", on ? "bg-on-brand" : "bg-brand") })
|
|
321
323
|
]
|
|
322
324
|
}
|
|
323
325
|
) }, key(d));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Avatar
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3OCWR4L3.js";
|
|
5
5
|
|
|
6
6
|
// components/kit/sidebar.tsx
|
|
7
7
|
import { useEffect, useLayoutEffect, useRef, useState } from "react";
|
|
@@ -11,7 +11,7 @@ var EASE = "ease-[cubic-bezier(.16,1,.3,1)]";
|
|
|
11
11
|
var RING = "shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent)]";
|
|
12
12
|
var HOVER = "hover:bg-[color-mix(in_srgb,var(--ink)_4%,transparent)]";
|
|
13
13
|
var ON = "bg-[color-mix(in_srgb,var(--ink)_6%,transparent)]";
|
|
14
|
-
var Icon = ({ d, className = "" }) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
14
|
+
var Icon = ({ d, className = "" }) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: cx("h-4 w-4", className), fill: "none", stroke: "currentColor", strokeWidth: "2.25", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d }) });
|
|
15
15
|
function Logo({ w, size = "sm" }) {
|
|
16
16
|
return /* @__PURE__ */ jsx(
|
|
17
17
|
"span",
|
|
@@ -179,6 +179,7 @@ function Sidebar({
|
|
|
179
179
|
"aria-label": "Sidebar",
|
|
180
180
|
"data-collapsed": collapsed || void 0,
|
|
181
181
|
className: cx(
|
|
182
|
+
// perf-ok: the width glide is deliberate. It runs once per click, and the page beside the sidebar has to follow it; a transform would leave a gap or overlap the content.
|
|
182
183
|
"relative flex h-full shrink-0 flex-col bg-paper-2 px-3 py-3 shadow-[inset_-1px_0_0_color-mix(in_srgb,var(--ink)_8%,transparent)] transition-[width] duration-500",
|
|
183
184
|
EASE,
|
|
184
185
|
collapsed ? "w-16" : "w-[248px]",
|
|
@@ -205,7 +206,7 @@ function Sidebar({
|
|
|
205
206
|
HOVER
|
|
206
207
|
),
|
|
207
208
|
children: [
|
|
208
|
-
/* @__PURE__ */ jsx(Icon, { d: "
|
|
209
|
+
/* @__PURE__ */ jsx(Icon, { d: "M5.5 4.5h13a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2h-13a2 2 0 0 1-2-2v-11a2 2 0 0 1 2-2ZM9.5 4.5v15M15.5 10l-2 2 2 2", className: cx("transition-transform duration-500", EASE, collapsed && "-scale-x-100") }),
|
|
209
210
|
collapsed && /* @__PURE__ */ jsx(Tip, { children: "Expand" })
|
|
210
211
|
]
|
|
211
212
|
}
|
|
@@ -263,7 +264,7 @@ function Sidebar({
|
|
|
263
264
|
promo.onDismiss?.();
|
|
264
265
|
},
|
|
265
266
|
className: "absolute right-2 top-2 z-10 flex h-7 w-7 items-center justify-center rounded-md text-mute outline-none transition-colors hover:bg-paper-2 hover:text-ink focus-visible:ring-2 focus-visible:ring-brand/50",
|
|
266
|
-
children: /* @__PURE__ */ jsx(Icon, { d: "
|
|
267
|
+
children: /* @__PURE__ */ jsx(Icon, { d: "M6 6l12 12M18 6 6 18", className: "h-3.5 w-3.5" })
|
|
267
268
|
}
|
|
268
269
|
)
|
|
269
270
|
]
|
|
@@ -288,7 +289,7 @@ function Sidebar({
|
|
|
288
289
|
)
|
|
289
290
|
}
|
|
290
291
|
),
|
|
291
|
-
/* @__PURE__ */ jsx("span", { className: "relative flex w-10 shrink-0 justify-center", children: /* @__PURE__ */ jsx("span", { className: "flex h-5 w-5 items-center justify-center rounded-full bg-ink text-paper [&_svg]:h-3 [&_svg]:w-3", children: cta.icon ?? /* @__PURE__ */ jsx(Icon, { d: "
|
|
292
|
+
/* @__PURE__ */ jsx("span", { className: "relative flex w-10 shrink-0 justify-center", children: /* @__PURE__ */ jsx("span", { className: "flex h-5 w-5 items-center justify-center rounded-full bg-ink text-paper [&_svg]:h-3 [&_svg]:w-3", children: cta.icon ?? /* @__PURE__ */ jsx(Icon, { d: "M13.5 3 5.5 13.5h6L10.5 21l8-10.5h-6Z" }) }) }),
|
|
292
293
|
/* @__PURE__ */ jsx(Label, { hidden: collapsed, className: "relative", children: /* @__PURE__ */ jsx("span", { className: "block text-center", children: cta.label }) }),
|
|
293
294
|
!collapsed && /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "w-10 shrink-0" }),
|
|
294
295
|
collapsed && /* @__PURE__ */ jsx(Tip, { children: cta.label })
|
|
@@ -318,7 +319,7 @@ function Sidebar({
|
|
|
318
319
|
/* @__PURE__ */ jsx(
|
|
319
320
|
Icon,
|
|
320
321
|
{
|
|
321
|
-
d: "
|
|
322
|
+
d: "M8 9l4-4 4 4M8 15l4 4 4-4",
|
|
322
323
|
className: cx("mr-2 shrink-0 text-mute transition-opacity duration-300", collapsed ? "opacity-0" : "opacity-100")
|
|
323
324
|
}
|
|
324
325
|
),
|
|
@@ -358,7 +359,7 @@ function Sidebar({
|
|
|
358
359
|
/* @__PURE__ */ jsx("span", { className: "truncate text-[13.5px] text-ink", children: w.name }),
|
|
359
360
|
w.plan && /* @__PURE__ */ jsx("span", { className: "truncate text-[11.5px] text-mute", children: w.plan })
|
|
360
361
|
] }),
|
|
361
|
-
on && /* @__PURE__ */ jsx(Icon, { d: "
|
|
362
|
+
on && /* @__PURE__ */ jsx(Icon, { d: "M5 12.5l4.5 4.5L19 7.5", className: "shrink-0 text-brand" })
|
|
362
363
|
]
|
|
363
364
|
},
|
|
364
365
|
w.id
|
|
@@ -58,7 +58,11 @@ function Meter({ label, value = 0, max, segments, format = (n) => n.toLocaleStri
|
|
|
58
58
|
] })
|
|
59
59
|
] }),
|
|
60
60
|
warn ? /* @__PURE__ */ jsxs("p", { className: "asta-meter-a flex animate-[asta-meter-fade_.4s_cubic-bezier(.16,1,.3,1)_both] items-center gap-1.5 font-medium text-ink", children: [
|
|
61
|
-
/* @__PURE__ */
|
|
61
|
+
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: "h-3.5 w-3.5", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
62
|
+
/* @__PURE__ */ jsx("path", { d: "M10.3 4.6 3 17.5A2 2 0 0 0 4.7 20.5h14.6a2 2 0 0 0 1.7-3L13.7 4.6a2 2 0 0 0-3.4 0Z" }),
|
|
63
|
+
/* @__PURE__ */ jsx("path", { d: "M12 9.5v4" }),
|
|
64
|
+
/* @__PURE__ */ jsx("path", { d: "M12 17h.01" })
|
|
65
|
+
] }),
|
|
62
66
|
warning
|
|
63
67
|
] }, "warn") : /* @__PURE__ */ jsxs("p", { className: "tabular-nums text-mute", children: [
|
|
64
68
|
Math.round(share * 100),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Button
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HSDMCZMX.js";
|
|
5
5
|
|
|
6
6
|
// components/kit/base/onboarding.tsx
|
|
7
7
|
import { useId, useRef, useState } from "react";
|
|
@@ -9,7 +9,7 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
9
9
|
var cx = (...c) => c.filter(Boolean).join(" ");
|
|
10
10
|
var EASE = "ease-[cubic-bezier(.16,1,.3,1)]";
|
|
11
11
|
var CURVE = "cubic-bezier(.16,1,.3,1)";
|
|
12
|
-
var Check = ({ className = "" }) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
12
|
+
var Check = ({ className = "" }) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className, fill: "none", stroke: "currentColor", strokeWidth: "3", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "m5 12.5 4.5 4.5L19 7.5" }) });
|
|
13
13
|
function Mark({ done, current }) {
|
|
14
14
|
return /* @__PURE__ */ jsxs("span", { className: "relative flex h-5 w-5 shrink-0 items-center justify-center", "aria-hidden": true, children: [
|
|
15
15
|
/* @__PURE__ */ jsx(
|
|
@@ -27,7 +27,7 @@ function Mark({ done, current }) {
|
|
|
27
27
|
"span",
|
|
28
28
|
{
|
|
29
29
|
className: cx(
|
|
30
|
-
"absolute inset-0 flex items-center justify-center rounded-full bg-brand text-
|
|
30
|
+
"absolute inset-0 flex items-center justify-center rounded-full bg-brand text-on-brand transition-[opacity,transform] duration-500",
|
|
31
31
|
EASE,
|
|
32
32
|
done ? "scale-100 opacity-100" : "scale-50 opacity-0"
|
|
33
33
|
),
|
|
@@ -81,7 +81,7 @@ function Onboarding({ title = "Get set up", subtitle, steps, defaultCompleted =
|
|
|
81
81
|
@media (prefers-reduced-motion: reduce) { .kit-ob, .kit-ob * { animation: none !important; transition-duration: 0s !important; } }
|
|
82
82
|
` }),
|
|
83
83
|
finished ? /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center px-8 py-12 text-center", style: { animation: `kit-ob-in .5s ${CURVE} both` }, children: [
|
|
84
|
-
/* @__PURE__ */ jsx("span", { className: "flex h-12 w-12 items-center justify-center rounded-full bg-brand text-
|
|
84
|
+
/* @__PURE__ */ jsx("span", { className: "flex h-12 w-12 items-center justify-center rounded-full bg-brand text-on-brand", style: { animation: `kit-ob-pop .6s ${CURVE} .1s both` }, children: /* @__PURE__ */ jsx(Check, { className: "h-6 w-6" }) }),
|
|
85
85
|
/* @__PURE__ */ jsx("h3", { className: "mt-5 text-[18px] font-medium tracking-[-0.02em] text-ink", children: "You are all set" }),
|
|
86
86
|
/* @__PURE__ */ jsx("p", { className: "mt-1.5 max-w-[30ch] text-[13.5px] leading-relaxed text-mute", children: "Every step is done. You can come back to this list from Settings." }),
|
|
87
87
|
/* @__PURE__ */ jsxs("div", { className: "mt-6 flex gap-2", children: [
|
|
@@ -135,14 +135,15 @@ function Onboarding({ title = "Get set up", subtitle, steps, defaultCompleted =
|
|
|
135
135
|
/* @__PURE__ */ jsx(
|
|
136
136
|
"svg",
|
|
137
137
|
{
|
|
138
|
-
viewBox: "0 0
|
|
138
|
+
viewBox: "0 0 24 24",
|
|
139
139
|
className: cx("h-3.5 w-3.5 shrink-0 text-mute transition-transform duration-300", EASE, isOpen && "rotate-180"),
|
|
140
140
|
fill: "none",
|
|
141
141
|
stroke: "currentColor",
|
|
142
|
-
strokeWidth: "
|
|
142
|
+
strokeWidth: "2.55",
|
|
143
143
|
strokeLinecap: "round",
|
|
144
|
+
strokeLinejoin: "round",
|
|
144
145
|
"aria-hidden": true,
|
|
145
|
-
children: /* @__PURE__ */ jsx("path", { d: "
|
|
146
|
+
children: /* @__PURE__ */ jsx("path", { d: "m6 9.5 6 6 6-6" })
|
|
146
147
|
}
|
|
147
148
|
)
|
|
148
149
|
]
|
|
@@ -50,7 +50,7 @@ function Slider({
|
|
|
50
50
|
return /* @__PURE__ */ jsx(
|
|
51
51
|
"span",
|
|
52
52
|
{
|
|
53
|
-
className: cx("absolute top-1/2 h-1 w-1 -translate-x-1/2 -translate-y-1/2 rounded-full transition-colors", at <= k ? "bg-
|
|
53
|
+
className: cx("absolute top-1/2 h-1 w-1 -translate-x-1/2 -translate-y-1/2 rounded-full transition-colors", at <= k ? "bg-on-brand/80" : "bg-[color-mix(in_srgb,var(--ink)_28%,transparent)]"),
|
|
54
54
|
style: { left: `${at * 100}%` }
|
|
55
55
|
},
|
|
56
56
|
i
|