asta-ui 0.2.1 → 0.4.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/dist/accordion.js +1 -1
- package/dist/ai-chat.d.ts +2 -0
- package/dist/ai-chat.js +9 -0
- package/dist/alert.d.ts +2 -0
- package/dist/alert.js +9 -0
- package/dist/announcement-bar.d.ts +2 -0
- package/dist/announcement-bar.js +9 -0
- package/dist/avatar-group.d.ts +2 -0
- package/dist/avatar-group.js +10 -0
- package/dist/avatar.js +3 -1
- package/dist/base/ai-chat.d.ts +2 -0
- package/dist/base/ai-chat.js +9 -0
- package/dist/base/alert.d.ts +2 -0
- package/dist/base/alert.js +9 -0
- package/dist/base/announcement-bar.d.ts +2 -0
- package/dist/base/announcement-bar.js +9 -0
- package/dist/base/avatar-group.d.ts +2 -0
- package/dist/base/avatar-group.js +10 -0
- package/dist/base/avatar.js +3 -1
- package/dist/base/booking-slots.d.ts +2 -0
- package/dist/base/booking-slots.js +7 -0
- package/dist/base/breadcrumb.d.ts +2 -0
- package/dist/base/breadcrumb.js +9 -0
- package/dist/base/card-checkout.js +1 -1
- package/dist/base/carousel.d.ts +2 -0
- package/dist/base/carousel.js +9 -0
- package/dist/base/chat-thread.d.ts +2 -0
- package/dist/base/chat-thread.js +7 -0
- package/dist/base/checkout.d.ts +2 -0
- package/dist/base/checkout.js +12 -0
- package/dist/base/color-picker.d.ts +2 -0
- package/dist/base/color-picker.js +9 -0
- package/dist/base/combobox.d.ts +2 -0
- package/dist/base/combobox.js +9 -0
- package/dist/base/comments.d.ts +2 -0
- package/dist/base/comments.js +11 -0
- package/dist/base/context-menu.d.ts +2 -0
- package/dist/base/context-menu.js +9 -0
- package/dist/base/copy-button.d.ts +2 -0
- package/dist/base/copy-button.js +9 -0
- package/dist/base/data-table.d.ts +2 -0
- package/dist/base/data-table.js +9 -0
- package/dist/base/date-picker.d.ts +2 -0
- package/dist/base/date-picker.js +9 -0
- package/dist/base/drawer.d.ts +2 -0
- package/dist/base/drawer.js +9 -0
- package/dist/base/empty-state.d.ts +2 -0
- package/dist/base/empty-state.js +10 -0
- package/dist/base/event-calendar.d.ts +2 -0
- package/dist/base/event-calendar.js +9 -0
- package/dist/base/file-upload.d.ts +2 -0
- package/dist/base/file-upload.js +11 -0
- package/dist/base/footer-aui-025.d.ts +2 -0
- package/dist/base/footer-aui-025.js +9 -0
- package/dist/base/footer-aui-026.d.ts +2 -0
- package/dist/base/footer-aui-026.js +9 -0
- package/dist/base/footer-aui-027.d.ts +2 -0
- package/dist/base/footer-aui-027.js +9 -0
- package/dist/base/footer-aui-028.d.ts +2 -0
- package/dist/base/footer-aui-028.js +9 -0
- package/dist/base/hover-card.d.ts +2 -0
- package/dist/base/hover-card.js +9 -0
- package/dist/base/image-compare.d.ts +2 -0
- package/dist/base/image-compare.js +9 -0
- package/dist/base/inline-edit.d.ts +2 -0
- package/dist/base/inline-edit.js +9 -0
- package/dist/base/kanban.d.ts +2 -0
- package/dist/base/kanban.js +10 -0
- package/dist/base/navbar-aui-009.d.ts +2 -0
- package/dist/base/navbar-aui-009.js +9 -0
- package/dist/base/navbar-aui-010.d.ts +2 -0
- package/dist/base/navbar-aui-010.js +9 -0
- package/dist/base/navbar-aui-011.d.ts +2 -0
- package/dist/base/navbar-aui-011.js +9 -0
- package/dist/base/navbar-aui-012.d.ts +2 -0
- package/dist/base/navbar-aui-012.js +9 -0
- package/dist/base/navbar-aui-013.d.ts +2 -0
- package/dist/base/navbar-aui-013.js +9 -0
- package/dist/base/navbar-aui-014.d.ts +2 -0
- package/dist/base/navbar-aui-014.js +9 -0
- package/dist/base/notification-center.d.ts +2 -0
- package/dist/base/notification-center.js +11 -0
- package/dist/base/notification-stack.d.ts +2 -0
- package/dist/base/notification-stack.js +7 -0
- package/dist/base/now-playing.d.ts +2 -0
- package/dist/base/now-playing.js +7 -0
- package/dist/base/onboarding.d.ts +2 -0
- package/dist/base/onboarding.js +10 -0
- package/dist/base/otp-input.d.ts +2 -0
- package/dist/base/otp-input.js +9 -0
- package/dist/base/pagination.d.ts +2 -0
- package/dist/base/pagination.js +11 -0
- package/dist/base/password-input.d.ts +2 -0
- package/dist/base/password-input.js +13 -0
- package/dist/base/payment-received.d.ts +2 -0
- package/dist/base/payment-received.js +7 -0
- package/dist/base/plan-switcher.d.ts +2 -0
- package/dist/base/plan-switcher.js +7 -0
- package/dist/base/popover.d.ts +2 -0
- package/dist/base/popover.js +9 -0
- package/dist/base/pricing-aui-021.d.ts +2 -0
- package/dist/base/pricing-aui-021.js +9 -0
- package/dist/base/pricing-aui-022.d.ts +2 -0
- package/dist/base/pricing-aui-022.js +9 -0
- package/dist/base/pricing-aui-023.d.ts +2 -0
- package/dist/base/pricing-aui-023.js +9 -0
- package/dist/base/pricing-aui-024.d.ts +2 -0
- package/dist/base/pricing-aui-024.js +9 -0
- package/dist/base/progress.d.ts +2 -0
- package/dist/base/progress.js +11 -0
- package/dist/base/range-slider.d.ts +2 -0
- package/dist/base/range-slider.js +9 -0
- package/dist/base/rating.d.ts +2 -0
- package/dist/base/rating.js +9 -0
- package/dist/base/seat-picker.d.ts +2 -0
- package/dist/base/seat-picker.js +7 -0
- package/dist/base/shipment-tracker.d.ts +2 -0
- package/dist/base/shipment-tracker.js +7 -0
- package/dist/base/sidebar.d.ts +2 -0
- package/dist/base/sidebar.js +10 -0
- package/dist/base/sign-in-aui-015.d.ts +2 -0
- package/dist/base/sign-in-aui-015.js +9 -0
- package/dist/base/sign-in-aui-016.d.ts +2 -0
- package/dist/base/sign-in-aui-016.js +9 -0
- package/dist/base/sign-in-aui-017.d.ts +2 -0
- package/dist/base/sign-in-aui-017.js +9 -0
- package/dist/base/sign-in-aui-018.d.ts +2 -0
- package/dist/base/sign-in-aui-018.js +9 -0
- package/dist/base/sign-in-aui-019.d.ts +2 -0
- package/dist/base/sign-in-aui-019.js +9 -0
- package/dist/base/sign-in-aui-020.d.ts +2 -0
- package/dist/base/sign-in-aui-020.js +9 -0
- package/dist/base/spinner.js +1 -1
- package/dist/base/stat-card.d.ts +2 -0
- package/dist/base/stat-card.js +9 -0
- package/dist/base/stepper.d.ts +2 -0
- package/dist/base/stepper.js +9 -0
- package/dist/base/team-members.d.ts +2 -0
- package/dist/base/team-members.js +12 -0
- package/dist/base/timeline.d.ts +2 -0
- package/dist/base/timeline.js +9 -0
- package/dist/base/toggle-group.d.ts +2 -0
- package/dist/base/toggle-group.js +9 -0
- package/dist/base/token-swap.d.ts +2 -0
- package/dist/base/token-swap.js +7 -0
- package/dist/base/tree-view.d.ts +2 -0
- package/dist/base/tree-view.js +9 -0
- package/dist/base/wishlist.d.ts +2 -0
- package/dist/base/wishlist.js +7 -0
- package/dist/base.js +371 -47
- package/dist/booking-slots.d.ts +2 -0
- package/dist/booking-slots.js +7 -0
- package/dist/breadcrumb.d.ts +2 -0
- package/dist/breadcrumb.js +9 -0
- package/dist/card-checkout.js +1 -1
- package/dist/carousel.d.ts +2 -0
- package/dist/carousel.js +9 -0
- package/dist/chat-thread.d.ts +2 -0
- package/dist/chat-thread.js +7 -0
- package/dist/checkout.d.ts +2 -0
- package/dist/checkout.js +12 -0
- package/dist/{chunk-VGBP42IZ.js → chunk-2LZM435Z.js} +3 -2
- package/dist/chunk-2SQQFICY.js +493 -0
- package/dist/chunk-33N6SZB5.js +186 -0
- package/dist/chunk-3KS5EN3Q.js +134 -0
- package/dist/chunk-3RMCFFW2.js +228 -0
- package/dist/chunk-45VUWOHQ.js +299 -0
- package/dist/chunk-4FR6KJOJ.js +91 -0
- package/dist/chunk-4GF7WTR3.js +230 -0
- package/dist/chunk-4XM6DKEO.js +164 -0
- package/dist/chunk-57PESBSZ.js +97 -0
- package/dist/chunk-5TSQZY34.js +246 -0
- package/dist/chunk-5U4H2CXC.js +308 -0
- package/dist/chunk-5WGDQ62P.js +122 -0
- package/dist/chunk-6B6NTRMC.js +293 -0
- package/dist/chunk-6HPSPZTF.js +232 -0
- package/dist/chunk-6NNHSXFD.js +539 -0
- package/dist/chunk-6VQTFRSP.js +435 -0
- package/dist/chunk-72UKXOMW.js +150 -0
- package/dist/chunk-746WX2DF.js +480 -0
- package/dist/chunk-7GKCX4IE.js +636 -0
- package/dist/chunk-7JNO265Q.js +431 -0
- package/dist/chunk-7SNVRPED.js +223 -0
- package/dist/chunk-AYSC7AIC.js +322 -0
- package/dist/chunk-B5F775GP.js +339 -0
- package/dist/chunk-B5OESWCR.js +339 -0
- package/dist/chunk-BGVAXPHD.js +305 -0
- package/dist/chunk-CA7YQ5BJ.js +271 -0
- package/dist/chunk-DRX3KRNL.js +191 -0
- package/dist/chunk-EAUUUVUR.js +123 -0
- package/dist/chunk-EXX6YSUX.js +340 -0
- package/dist/chunk-F526V5BA.js +254 -0
- package/dist/chunk-F7LAUVDJ.js +97 -0
- package/dist/chunk-FDHU3RWR.js +213 -0
- package/dist/chunk-FJGGXXTT.js +109 -0
- package/dist/chunk-FKHNK5VC.js +172 -0
- package/dist/chunk-FY6BRODJ.js +230 -0
- package/dist/chunk-GDTSCUHY.js +234 -0
- package/dist/chunk-H7D6G3GQ.js +290 -0
- package/dist/chunk-HB7DFNZP.js +109 -0
- package/dist/{chunk-H5C7HOQJ.js → chunk-HNO6EUGJ.js} +3 -2
- package/dist/chunk-HPVPHWDM.js +197 -0
- package/dist/chunk-I5NZSWDW.js +431 -0
- package/dist/chunk-IMBCYI3F.js +114 -0
- package/dist/chunk-IS2VTYDA.js +235 -0
- package/dist/chunk-ISZ7O2Q6.js +245 -0
- package/dist/chunk-JAQKJBVJ.js +170 -0
- package/dist/chunk-KYFZ5TTK.js +271 -0
- package/dist/chunk-LBXIMJFU.js +170 -0
- package/dist/chunk-LPTY5WXM.js +231 -0
- package/dist/chunk-MDI73RL6.js +245 -0
- package/dist/chunk-MSBN2O66.js +110 -0
- package/dist/chunk-MUDW65ZT.js +220 -0
- package/dist/chunk-NB7X26PY.js +388 -0
- package/dist/chunk-NIYIT2QU.js +118 -0
- package/dist/chunk-NZRQL3SA.js +201 -0
- package/dist/chunk-OFYGJUKP.js +278 -0
- package/dist/{chunk-NDBLIYMX.js → chunk-OKCSTMX3.js} +2 -2
- package/dist/chunk-P37H477M.js +236 -0
- package/dist/chunk-QSLS3ENY.js +469 -0
- package/dist/chunk-RBTX7TVA.js +170 -0
- package/dist/chunk-RFVKRVTD.js +172 -0
- package/dist/chunk-RIWKIBEP.js +271 -0
- package/dist/chunk-RRHQBGRO.js +327 -0
- package/dist/chunk-RSUZHZCG.js +230 -0
- package/dist/chunk-S2DJLW6B.js +322 -0
- package/dist/chunk-SDL3JXFN.js +97 -0
- package/dist/chunk-SDOWCCM2.js +271 -0
- package/dist/chunk-SPKSRH6G.js +283 -0
- package/dist/chunk-TLODJONC.js +120 -0
- package/dist/chunk-TXRLBMFL.js +191 -0
- package/dist/{chunk-2OGTIQVU.js → chunk-UEOEWP7L.js} +1 -1
- package/dist/chunk-UTGEGGSE.js +309 -0
- package/dist/chunk-UWQ26LYZ.js +133 -0
- package/dist/chunk-V3SPSN3A.js +308 -0
- package/dist/chunk-W57O4RLL.js +435 -0
- package/dist/chunk-WNPMHOXE.js +136 -0
- package/dist/chunk-WO36QUH3.js +188 -0
- package/dist/chunk-WTNNS7AX.js +362 -0
- package/dist/{chunk-AS6RA64I.js → chunk-XTP6ITUJ.js} +3 -1
- package/dist/chunk-YLAL6ICI.js +142 -0
- package/dist/chunk-ZGMBQZDV.js +250 -0
- package/dist/chunk-ZKMEKSJZ.js +133 -0
- package/dist/color-picker.d.ts +2 -0
- package/dist/color-picker.js +9 -0
- package/dist/combobox.d.ts +2 -0
- package/dist/combobox.js +9 -0
- package/dist/comments.d.ts +2 -0
- package/dist/comments.js +11 -0
- package/dist/context-menu.d.ts +2 -0
- package/dist/context-menu.js +9 -0
- package/dist/copy-button.d.ts +2 -0
- package/dist/copy-button.js +9 -0
- package/dist/data-table.d.ts +2 -0
- package/dist/data-table.js +9 -0
- package/dist/date-picker.d.ts +2 -0
- package/dist/date-picker.js +9 -0
- package/dist/drawer.d.ts +2 -0
- package/dist/drawer.js +9 -0
- package/dist/empty-state.d.ts +2 -0
- package/dist/empty-state.js +10 -0
- package/dist/event-calendar.d.ts +2 -0
- package/dist/event-calendar.js +9 -0
- package/dist/file-upload.d.ts +2 -0
- package/dist/file-upload.js +11 -0
- package/dist/footer-aui-025.d.ts +2 -0
- package/dist/footer-aui-025.js +9 -0
- package/dist/footer-aui-026.d.ts +2 -0
- package/dist/footer-aui-026.js +9 -0
- package/dist/footer-aui-027.d.ts +2 -0
- package/dist/footer-aui-027.js +9 -0
- package/dist/footer-aui-028.d.ts +2 -0
- package/dist/footer-aui-028.js +9 -0
- package/dist/hover-card.d.ts +2 -0
- package/dist/hover-card.js +9 -0
- package/dist/image-compare.d.ts +2 -0
- package/dist/image-compare.js +9 -0
- package/dist/index.js +372 -48
- package/dist/inline-edit.d.ts +2 -0
- package/dist/inline-edit.js +9 -0
- package/dist/kanban.d.ts +2 -0
- package/dist/kanban.js +10 -0
- package/dist/navbar-aui-009.d.ts +2 -0
- package/dist/navbar-aui-009.js +9 -0
- package/dist/navbar-aui-010.d.ts +2 -0
- package/dist/navbar-aui-010.js +9 -0
- package/dist/navbar-aui-011.d.ts +2 -0
- package/dist/navbar-aui-011.js +9 -0
- package/dist/navbar-aui-012.d.ts +2 -0
- package/dist/navbar-aui-012.js +9 -0
- package/dist/navbar-aui-013.d.ts +2 -0
- package/dist/navbar-aui-013.js +9 -0
- package/dist/navbar-aui-014.d.ts +2 -0
- package/dist/navbar-aui-014.js +9 -0
- package/dist/notification-center.d.ts +2 -0
- package/dist/notification-center.js +11 -0
- package/dist/notification-stack.d.ts +2 -0
- package/dist/notification-stack.js +7 -0
- package/dist/now-playing.d.ts +2 -0
- package/dist/now-playing.js +7 -0
- package/dist/onboarding.d.ts +2 -0
- package/dist/onboarding.js +10 -0
- package/dist/otp-input.d.ts +2 -0
- package/dist/otp-input.js +9 -0
- package/dist/pagination.d.ts +2 -0
- package/dist/pagination.js +11 -0
- package/dist/password-input.d.ts +2 -0
- package/dist/password-input.js +13 -0
- package/dist/payment-received.d.ts +2 -0
- package/dist/payment-received.js +7 -0
- package/dist/plan-switcher.d.ts +2 -0
- package/dist/plan-switcher.js +7 -0
- package/dist/popover.d.ts +2 -0
- package/dist/popover.js +9 -0
- package/dist/pricing-aui-021.d.ts +2 -0
- package/dist/pricing-aui-021.js +9 -0
- package/dist/pricing-aui-022.d.ts +2 -0
- package/dist/pricing-aui-022.js +9 -0
- package/dist/pricing-aui-023.d.ts +2 -0
- package/dist/pricing-aui-023.js +9 -0
- package/dist/pricing-aui-024.d.ts +2 -0
- package/dist/pricing-aui-024.js +9 -0
- package/dist/progress.d.ts +2 -0
- package/dist/progress.js +11 -0
- package/dist/range-slider.d.ts +2 -0
- package/dist/range-slider.js +9 -0
- package/dist/rating.d.ts +2 -0
- package/dist/rating.js +9 -0
- package/dist/seat-picker.d.ts +2 -0
- package/dist/seat-picker.js +7 -0
- package/dist/shipment-tracker.d.ts +2 -0
- package/dist/shipment-tracker.js +7 -0
- package/dist/sidebar.d.ts +2 -0
- package/dist/sidebar.js +10 -0
- package/dist/sign-in-aui-015.d.ts +2 -0
- package/dist/sign-in-aui-015.js +9 -0
- package/dist/sign-in-aui-016.d.ts +2 -0
- package/dist/sign-in-aui-016.js +9 -0
- package/dist/sign-in-aui-017.d.ts +2 -0
- package/dist/sign-in-aui-017.js +9 -0
- package/dist/sign-in-aui-018.d.ts +2 -0
- package/dist/sign-in-aui-018.js +9 -0
- package/dist/sign-in-aui-019.d.ts +2 -0
- package/dist/sign-in-aui-019.js +9 -0
- package/dist/sign-in-aui-020.d.ts +2 -0
- package/dist/sign-in-aui-020.js +9 -0
- package/dist/spinner.js +1 -1
- package/dist/stat-card.d.ts +2 -0
- package/dist/stat-card.js +9 -0
- package/dist/stepper.d.ts +2 -0
- package/dist/stepper.js +9 -0
- package/dist/team-members.d.ts +2 -0
- package/dist/team-members.js +12 -0
- package/dist/timeline.d.ts +2 -0
- package/dist/timeline.js +9 -0
- package/dist/toggle-group.d.ts +2 -0
- package/dist/toggle-group.js +9 -0
- package/dist/token-swap.d.ts +2 -0
- package/dist/token-swap.js +7 -0
- package/dist/tree-view.d.ts +2 -0
- package/dist/tree-view.js +9 -0
- package/dist/types/components/kit/ai-chat.d.ts +37 -0
- package/dist/types/components/kit/alert.d.ts +27 -0
- package/dist/types/components/kit/announcement-bar.d.ts +36 -0
- package/dist/types/components/kit/avatar-group.d.ts +22 -0
- package/dist/types/components/kit/avatar.d.ts +2 -0
- package/dist/types/components/kit/base/avatar-group.d.ts +22 -0
- package/dist/types/components/kit/base/avatar.d.ts +2 -0
- package/dist/types/components/kit/base/checkout.d.ts +68 -0
- package/dist/types/components/kit/base/comments.d.ts +30 -0
- package/dist/types/components/kit/base/empty-state.d.ts +29 -0
- package/dist/types/components/kit/base/kanban.d.ts +26 -0
- package/dist/types/components/kit/base/notification-center.d.ts +34 -0
- package/dist/types/components/kit/base/onboarding.d.ts +28 -0
- package/dist/types/components/kit/base/sidebar.d.ts +43 -0
- package/dist/types/components/kit/base/team-members.d.ts +46 -0
- package/dist/types/components/kit/breadcrumb.d.ts +29 -0
- package/dist/types/components/kit/carousel.d.ts +21 -0
- package/dist/types/components/kit/checkout.d.ts +68 -0
- package/dist/types/components/kit/color-picker.d.ts +28 -0
- package/dist/types/components/kit/combobox.d.ts +40 -0
- package/dist/types/components/kit/comments.d.ts +30 -0
- package/dist/types/components/kit/context-menu.d.ts +37 -0
- package/dist/types/components/kit/copy-button.d.ts +20 -0
- package/dist/types/components/kit/data-table.d.ts +47 -0
- package/dist/types/components/kit/date-picker.d.ts +40 -0
- package/dist/types/components/kit/drawer.d.ts +26 -0
- package/dist/types/components/kit/empty-state.d.ts +29 -0
- package/dist/types/components/kit/event-calendar.d.ts +34 -0
- package/dist/types/components/kit/file-upload.d.ts +37 -0
- package/dist/types/components/kit/hover-card.d.ts +31 -0
- package/dist/types/components/kit/image-compare.d.ts +29 -0
- package/dist/types/components/kit/inline-edit.d.ts +26 -0
- package/dist/types/components/kit/kanban.d.ts +26 -0
- package/dist/types/components/kit/notification-center.d.ts +34 -0
- package/dist/types/components/kit/onboarding.d.ts +28 -0
- package/dist/types/components/kit/otp-input.d.ts +28 -0
- package/dist/types/components/kit/pagination.d.ts +25 -0
- package/dist/types/components/kit/password-input.d.ts +32 -0
- package/dist/types/components/kit/popover.d.ts +40 -0
- package/dist/types/components/kit/progress.d.ts +37 -0
- package/dist/types/components/kit/range-slider.d.ts +27 -0
- package/dist/types/components/kit/rating.d.ts +23 -0
- package/dist/types/components/kit/sidebar.d.ts +43 -0
- package/dist/types/components/kit/stat-card.d.ts +24 -0
- package/dist/types/components/kit/stepper.d.ts +36 -0
- package/dist/types/components/kit/team-members.d.ts +46 -0
- package/dist/types/components/kit/timeline.d.ts +24 -0
- package/dist/types/components/kit/toggle-group.d.ts +42 -0
- package/dist/types/components/kit/tree-view.d.ts +31 -0
- package/dist/types/components/kit/variants/footer-aui-025.d.ts +22 -0
- package/dist/types/components/kit/variants/footer-aui-026.d.ts +21 -0
- package/dist/types/components/kit/variants/footer-aui-027.d.ts +36 -0
- package/dist/types/components/kit/variants/footer-aui-028.d.ts +34 -0
- package/dist/types/components/kit/variants/navbar-aui-009.d.ts +62 -0
- package/dist/types/components/kit/variants/navbar-aui-010.d.ts +30 -0
- package/dist/types/components/kit/variants/navbar-aui-011.d.ts +65 -0
- package/dist/types/components/kit/variants/navbar-aui-012.d.ts +50 -0
- package/dist/types/components/kit/variants/navbar-aui-013.d.ts +70 -0
- package/dist/types/components/kit/variants/navbar-aui-014.d.ts +31 -0
- package/dist/types/components/kit/variants/pricing-aui-021.d.ts +30 -0
- package/dist/types/components/kit/variants/pricing-aui-022.d.ts +34 -0
- package/dist/types/components/kit/variants/pricing-aui-023.d.ts +26 -0
- package/dist/types/components/kit/variants/pricing-aui-024.d.ts +29 -0
- package/dist/types/components/kit/variants/sign-in-aui-015.d.ts +21 -0
- package/dist/types/components/kit/variants/sign-in-aui-016.d.ts +28 -0
- package/dist/types/components/kit/variants/sign-in-aui-017.d.ts +21 -0
- package/dist/types/components/kit/variants/sign-in-aui-018.d.ts +22 -0
- package/dist/types/components/kit/variants/sign-in-aui-019.d.ts +22 -0
- package/dist/types/components/kit/variants/sign-in-aui-020.d.ts +27 -0
- package/dist/types/components/lab/blocks/BookingSlots.d.ts +2 -0
- package/dist/types/components/lab/blocks/ChatThread.d.ts +2 -0
- package/dist/types/components/lab/blocks/NotificationStack.d.ts +2 -0
- package/dist/types/components/lab/blocks/NowPlaying.d.ts +2 -0
- package/dist/types/components/lab/blocks/PaymentReceived.d.ts +2 -0
- package/dist/types/components/lab/blocks/PlanSwitcher.d.ts +2 -0
- package/dist/types/components/lab/blocks/SeatPicker.d.ts +2 -0
- package/dist/types/components/lab/blocks/ShipmentTracker.d.ts +2 -0
- package/dist/types/components/lab/blocks/TokenSwap.d.ts +2 -0
- package/dist/types/components/lab/blocks/Wishlist.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/ai-chat.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/alert.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/announcement-bar.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/avatar-group.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/ai-chat.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/alert.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/announcement-bar.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/avatar-group.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/booking-slots.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/breadcrumb.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/carousel.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/chat-thread.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/checkout.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/color-picker.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/combobox.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/comments.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/context-menu.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/copy-button.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/data-table.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/date-picker.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/drawer.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/empty-state.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/event-calendar.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/file-upload.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/footer-aui-025.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/footer-aui-026.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/footer-aui-027.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/footer-aui-028.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/hover-card.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/image-compare.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/inline-edit.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/kanban.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/navbar-aui-009.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/navbar-aui-010.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/navbar-aui-011.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/navbar-aui-012.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/navbar-aui-013.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/navbar-aui-014.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/notification-center.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/notification-stack.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/now-playing.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/onboarding.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/otp-input.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/pagination.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/password-input.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/payment-received.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/plan-switcher.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/popover.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/pricing-aui-021.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/pricing-aui-022.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/pricing-aui-023.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/pricing-aui-024.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/progress.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/range-slider.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/rating.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/seat-picker.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/shipment-tracker.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/sidebar.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/sign-in-aui-015.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/sign-in-aui-016.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/sign-in-aui-017.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/sign-in-aui-018.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/sign-in-aui-019.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/sign-in-aui-020.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/stat-card.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/stepper.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/team-members.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/timeline.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/toggle-group.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/token-swap.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/tree-view.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/wishlist.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base.d.ts +127 -1
- package/dist/types/packages/asta-ui/src/booking-slots.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/breadcrumb.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/carousel.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/chat-thread.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/checkout.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/color-picker.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/combobox.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/comments.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/context-menu.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/copy-button.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/data-table.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/date-picker.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/drawer.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/empty-state.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/event-calendar.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/file-upload.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/footer-aui-025.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/footer-aui-026.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/footer-aui-027.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/footer-aui-028.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/hover-card.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/image-compare.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/index.d.ts +127 -1
- package/dist/types/packages/asta-ui/src/inline-edit.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/kanban.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/navbar-aui-009.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/navbar-aui-010.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/navbar-aui-011.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/navbar-aui-012.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/navbar-aui-013.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/navbar-aui-014.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/notification-center.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/notification-stack.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/now-playing.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/onboarding.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/otp-input.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/pagination.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/password-input.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/payment-received.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/plan-switcher.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/popover.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/pricing-aui-021.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/pricing-aui-022.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/pricing-aui-023.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/pricing-aui-024.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/progress.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/range-slider.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/rating.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/seat-picker.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/shipment-tracker.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/sidebar.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/sign-in-aui-015.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/sign-in-aui-016.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/sign-in-aui-017.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/sign-in-aui-018.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/sign-in-aui-019.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/sign-in-aui-020.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/stat-card.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/stepper.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/team-members.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/timeline.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/toggle-group.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/token-swap.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/tree-view.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/wishlist.d.ts +2 -0
- package/dist/wishlist.d.ts +2 -0
- package/dist/wishlist.js +7 -0
- package/package.json +1 -1
|
@@ -0,0 +1,539 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// components/kit/variants/navbar-aui-009.tsx
|
|
4
|
+
import { Fragment, useCallback, useEffect, useId, useLayoutEffect, useRef, useState } from "react";
|
|
5
|
+
import { Fragment as Fragment2, jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
var cx = (...c) => c.filter(Boolean).join(" ");
|
|
7
|
+
var EASE = "cubic-bezier(.16,1,.3,1)";
|
|
8
|
+
var TW_EASE = "ease-[cubic-bezier(.16,1,.3,1)]";
|
|
9
|
+
var FOCUS = "outline-none focus-visible:ring-2 focus-visible:ring-brand/50";
|
|
10
|
+
var HAIR = "shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent)]";
|
|
11
|
+
var HATCH = "bg-[repeating-linear-gradient(135deg,color-mix(in_srgb,var(--ink)_4%,transparent)_0_1px,transparent_1px_7px)]";
|
|
12
|
+
var CSS = `
|
|
13
|
+
@keyframes aui-009-rise { from { opacity: 0; transform: translateY(6px); } }
|
|
14
|
+
@keyframes aui-009-vp-in { from { opacity: 0; transform: translateY(-4px) scale(.96); } }
|
|
15
|
+
@keyframes aui-009-vp-out { to { opacity: 0; transform: translateY(-4px) scale(.96); } }
|
|
16
|
+
@keyframes aui-009-from-l { from { opacity: 0; transform: translateX(-28px); } }
|
|
17
|
+
@keyframes aui-009-from-r { from { opacity: 0; transform: translateX(28px); } }
|
|
18
|
+
@keyframes aui-009-to-l { to { opacity: 0; transform: translateX(-28px); } }
|
|
19
|
+
@keyframes aui-009-to-r { to { opacity: 0; transform: translateX(28px); } }
|
|
20
|
+
@keyframes aui-009-drop { from { opacity: 0; transform: translateY(-6px); } }
|
|
21
|
+
.aui-009-in { animation: aui-009-rise .55s ${EASE} both; animation-delay: calc(var(--i, 0) * 50ms); }
|
|
22
|
+
.aui-009-vp { transform-origin: top center; }
|
|
23
|
+
.aui-009-vp[data-state=open] { animation: aui-009-vp-in .26s ${EASE}; }
|
|
24
|
+
.aui-009-vp[data-state=closed] { animation: aui-009-vp-out .16s ease-in forwards; }
|
|
25
|
+
.aui-009-c[data-motion=from-start] { animation: aui-009-from-l .3s ${EASE}; }
|
|
26
|
+
.aui-009-c[data-motion=from-end] { animation: aui-009-from-r .3s ${EASE}; }
|
|
27
|
+
.aui-009-c[data-motion=to-start] { animation: aui-009-to-l .3s ${EASE} forwards; }
|
|
28
|
+
.aui-009-c[data-motion=to-end] { animation: aui-009-to-r .3s ${EASE} forwards; }
|
|
29
|
+
.aui-009-t { animation: aui-009-rise .45s ${EASE} both; animation-delay: calc(40ms + var(--i, 0) * 40ms); }
|
|
30
|
+
.aui-009-sheet { animation: aui-009-drop .4s ${EASE} both; }
|
|
31
|
+
@media (prefers-reduced-motion: reduce) { .aui-009-m, .aui-009-m * { animation: none !important; transition-duration: 0s !important; } .aui-009-vp[data-state=closed] { visibility: hidden; } }
|
|
32
|
+
`;
|
|
33
|
+
var at = (n) => ({ "--i": n });
|
|
34
|
+
var reduced = () => typeof window !== "undefined" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
35
|
+
var PATHS = {
|
|
36
|
+
map: "M2.5 4.5 6 3l4 1.5L13.5 3v8.5L10 13l-4-1.5-3.5 1.5ZM6 3v8.5M10 4.5V13",
|
|
37
|
+
check: "M3 8.5 6.5 12 13 4.5",
|
|
38
|
+
chart: "M3 13V8M6.5 13V4M10 13V9.5M13.5 13V6",
|
|
39
|
+
bolt: "M9 2 4 9h4l-1 5 5-7H8Z",
|
|
40
|
+
plug: "M6 2.5v3M10 2.5v3M4.5 5.5h7v2a3.5 3.5 0 0 1-7 0ZM8 11v2.5",
|
|
41
|
+
book: "M3 3.5h4a1.5 1.5 0 0 1 1.5 1.5v8A1.5 1.5 0 0 0 7 11.5H3ZM13 3.5H9.5A1.5 1.5 0 0 0 8 5v8a1.5 1.5 0 0 1 1.5-1.5H13Z",
|
|
42
|
+
grid: "M3 3h4v4H3ZM9 3h4v4H9ZM3 9h4v4H3ZM9 9h4v4H9Z",
|
|
43
|
+
play: "M5 3.5v9l7-4.5Z",
|
|
44
|
+
users: "M6 7a2.25 2.25 0 1 0 0-4.5A2.25 2.25 0 0 0 6 7ZM2 13c.4-2.2 2-3.5 4-3.5s3.6 1.3 4 3.5M11 3a2 2 0 0 1 0 4M12 9.6c1.2.4 1.9 1.6 2 3.4",
|
|
45
|
+
spark: "M8 2v3M8 11v3M2 8h3M11 8h3M4 4l2 2M10 10l2 2M12 4l-2 2M6 10l-2 2",
|
|
46
|
+
mail: "M2.5 4h11v8h-11ZM2.5 4.5 8 9l5.5-4.5"
|
|
47
|
+
};
|
|
48
|
+
function Glyph({ name }) {
|
|
49
|
+
return /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "h-3.5 w-3.5", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: PATHS[name] }) });
|
|
50
|
+
}
|
|
51
|
+
var Badge = ({ icon, size = "h-6 w-6" }) => /* @__PURE__ */ jsx("span", { className: cx("grid shrink-0 place-items-center rounded-[7px] bg-paper text-brand shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent),0_2px_7px_rgb(0_0_0/0.05)]", size), children: /* @__PURE__ */ jsx(Glyph, { name: icon }) });
|
|
52
|
+
var Chevron = ({ className = "" }) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: cx("h-3.5 w-3.5", className), fill: "none", stroke: "currentColor", strokeWidth: "1.7", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "m6 4 4 4-4 4" }) });
|
|
53
|
+
var Logo = () => /* @__PURE__ */ jsxs(Fragment2, { children: [
|
|
54
|
+
/* @__PURE__ */ jsx("span", { className: "grid h-6 w-6 place-items-center rounded-[7px] bg-ink text-paper", children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "h-3 w-3", fill: "none", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "M4 12.5 8 3.5l4 9M5.6 9.2h4.8" }) }) }),
|
|
55
|
+
"Astabyte"
|
|
56
|
+
] });
|
|
57
|
+
var ITEMS = [
|
|
58
|
+
{
|
|
59
|
+
label: "Product",
|
|
60
|
+
menu: {
|
|
61
|
+
type: "products",
|
|
62
|
+
products: [
|
|
63
|
+
{ title: "Roadmaps", description: "Plan the quarter in one view and share it with a link.", href: "#", icon: "map", preview: "roadmap" },
|
|
64
|
+
{ title: "Issues", description: "Triage, assign and close work from the keyboard.", href: "#", icon: "check", preview: "issues" }
|
|
65
|
+
],
|
|
66
|
+
features: [
|
|
67
|
+
{ title: "Insights", description: "Cycle time and scope, live.", href: "#", icon: "chart" },
|
|
68
|
+
{ title: "Automations", description: "Rules that move work for you.", href: "#", icon: "bolt" },
|
|
69
|
+
{ title: "Integrations", description: "Git, Slack, Figma and 40 more.", href: "#", icon: "plug" }
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
label: "Resources",
|
|
75
|
+
menu: {
|
|
76
|
+
type: "columns",
|
|
77
|
+
columns: [
|
|
78
|
+
{
|
|
79
|
+
heading: "Learn",
|
|
80
|
+
items: [
|
|
81
|
+
{ title: "Guides", description: "From first project to scale", href: "#", icon: "book" },
|
|
82
|
+
{ title: "Templates", description: "40 ready-made roadmaps", href: "#", icon: "grid" },
|
|
83
|
+
{ title: "Webinars", description: "Live every second Tuesday", href: "#", icon: "play" }
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
heading: "Company",
|
|
88
|
+
items: [
|
|
89
|
+
{ title: "Customers", description: "How teams plan with us", href: "#", icon: "users" },
|
|
90
|
+
{ title: "Changelog", description: "Shipped this week", href: "#", icon: "spark" },
|
|
91
|
+
{ title: "Contact", description: "Talk to a person", href: "#", icon: "mail" }
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
],
|
|
95
|
+
cta: { title: "Your first roadmap in five minutes", description: "Free for teams up to ten.", label: "Start free", href: "#" }
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
{ label: "Customers", href: "#" },
|
|
99
|
+
{ label: "Pricing", href: "#" }
|
|
100
|
+
];
|
|
101
|
+
function Peek({ kind }) {
|
|
102
|
+
const tone = "bg-[color-mix(in_srgb,var(--ink)_22%,transparent)] transition-colors duration-500 group-hover/t:bg-brand";
|
|
103
|
+
return /* @__PURE__ */ jsx(
|
|
104
|
+
"div",
|
|
105
|
+
{
|
|
106
|
+
"aria-hidden": true,
|
|
107
|
+
className: cx(
|
|
108
|
+
"absolute -bottom-px -right-px w-[58%] rounded-tl-[10px] bg-paper p-2.5 shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent),0_0_0_4px_var(--paper-2)] transition-transform duration-500 group-hover/t:-translate-x-1 group-hover/t:-translate-y-1",
|
|
109
|
+
TW_EASE
|
|
110
|
+
),
|
|
111
|
+
children: kind === "roadmap" ? /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
|
|
112
|
+
/* @__PURE__ */ jsxs("div", { className: "flex justify-between font-mono text-[8.5px] uppercase tracking-[0.08em] text-mute", children: [
|
|
113
|
+
/* @__PURE__ */ jsx("span", { children: "Jul" }),
|
|
114
|
+
/* @__PURE__ */ jsx("span", { children: "Aug" }),
|
|
115
|
+
/* @__PURE__ */ jsx("span", { children: "Sep" })
|
|
116
|
+
] }),
|
|
117
|
+
[
|
|
118
|
+
[0, 50, "Billing"],
|
|
119
|
+
[26, 52, "Mobile"],
|
|
120
|
+
[54, 44, "Search"]
|
|
121
|
+
].map(([l, w, t], i) => /* @__PURE__ */ jsx("span", { className: cx("flex h-3.5 items-center rounded-[4px] px-1.5 text-[8.5px] font-medium text-paper", tone), style: { marginLeft: `${l}%`, width: `${w}%`, transitionDelay: `${i * 60}ms` }, children: t }, t))
|
|
122
|
+
] }) : /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-1.5", children: ["Fix invoice rounding", "Dark mode for charts", "SSO for Enterprise"].map((t, i) => /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5 text-[9.5px] text-ink-2", children: [
|
|
123
|
+
/* @__PURE__ */ jsx("span", { className: cx("h-2 w-2 shrink-0 rounded-full", tone), style: { transitionDelay: `${i * 60}ms` } }),
|
|
124
|
+
/* @__PURE__ */ jsx("span", { className: "truncate", children: t }),
|
|
125
|
+
/* @__PURE__ */ jsxs("span", { className: "ml-auto font-mono text-[8.5px] text-mute", children: [
|
|
126
|
+
"NW-",
|
|
127
|
+
214 + i
|
|
128
|
+
] })
|
|
129
|
+
] }, t)) })
|
|
130
|
+
}
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
var tile = cx(
|
|
134
|
+
"group/t relative flex flex-col gap-1.5 overflow-hidden rounded-[6px] p-3.5 transition-[opacity,box-shadow] duration-300",
|
|
135
|
+
"shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_7%,transparent)] hover:shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_15%,transparent)]",
|
|
136
|
+
"group-has-[a:hover]/m:opacity-65 hover:!opacity-100",
|
|
137
|
+
FOCUS
|
|
138
|
+
);
|
|
139
|
+
var Tint = ({ dir = "b" }) => /* @__PURE__ */ jsx(
|
|
140
|
+
"span",
|
|
141
|
+
{
|
|
142
|
+
"aria-hidden": true,
|
|
143
|
+
className: cx(
|
|
144
|
+
"pointer-events-none absolute inset-0 from-transparent from-40% to-[color-mix(in_srgb,var(--brand)_8%,transparent)] opacity-0 transition-opacity duration-500 group-hover/t:opacity-100",
|
|
145
|
+
dir === "b" ? "bg-linear-to-b" : "bg-linear-to-r"
|
|
146
|
+
)
|
|
147
|
+
}
|
|
148
|
+
);
|
|
149
|
+
var Nudge = () => /* @__PURE__ */ jsx(Chevron, { className: cx("-translate-x-0.5 text-mute transition-[translate,color] duration-300 group-hover/t:translate-x-0 group-hover/t:text-ink", TW_EASE) });
|
|
150
|
+
function Panel({ menu }) {
|
|
151
|
+
if (menu.type === "products")
|
|
152
|
+
return /* @__PURE__ */ jsxs("div", { className: "group/m flex w-[min(660px,calc(100cqw-24px))] flex-col gap-2 p-2", children: [
|
|
153
|
+
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-2 gap-2", children: menu.products.map((p, n) => /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("a", { href: p.href, style: at(n), className: cx(tile, HATCH, "aui-009-t h-[164px]"), children: [
|
|
154
|
+
/* @__PURE__ */ jsx(Tint, {}),
|
|
155
|
+
/* @__PURE__ */ jsxs("span", { className: "relative flex items-center gap-2 text-[14px] font-medium tracking-[-0.01em] text-ink", children: [
|
|
156
|
+
p.icon && /* @__PURE__ */ jsx(Badge, { icon: p.icon }),
|
|
157
|
+
p.title,
|
|
158
|
+
/* @__PURE__ */ jsx(Nudge, {})
|
|
159
|
+
] }),
|
|
160
|
+
p.description && /* @__PURE__ */ jsx("span", { className: "relative max-w-[30ch] text-[12.5px] leading-snug text-mute", children: p.description }),
|
|
161
|
+
/* @__PURE__ */ jsx(Peek, { kind: p.preview })
|
|
162
|
+
] }) }, p.title)) }),
|
|
163
|
+
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-3 gap-2", children: menu.features.map((f, n) => /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("a", { href: f.href, style: at(n + 2), className: cx(tile, "aui-009-t"), children: [
|
|
164
|
+
/* @__PURE__ */ jsx(Tint, { dir: "r" }),
|
|
165
|
+
/* @__PURE__ */ jsxs("span", { className: "relative flex items-center gap-2 text-[13.5px] font-medium text-ink", children: [
|
|
166
|
+
f.icon && /* @__PURE__ */ jsx(Badge, { icon: f.icon }),
|
|
167
|
+
f.title,
|
|
168
|
+
/* @__PURE__ */ jsx(Nudge, {})
|
|
169
|
+
] }),
|
|
170
|
+
f.description && /* @__PURE__ */ jsx("span", { className: "relative text-[12px] leading-snug text-mute", children: f.description })
|
|
171
|
+
] }) }, f.title)) })
|
|
172
|
+
] });
|
|
173
|
+
return /* @__PURE__ */ jsxs("div", { className: "group/m grid w-[min(640px,calc(100cqw-24px))] grid-cols-[1fr_1fr_190px] items-stretch gap-2 p-2", children: [
|
|
174
|
+
menu.columns.map((c, ci) => /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-col gap-0.5 pt-1.5", children: [
|
|
175
|
+
/* @__PURE__ */ jsx("span", { className: "mb-1 px-2.5 font-mono text-[10.5px] uppercase tracking-[0.08em] text-mute", children: c.heading }),
|
|
176
|
+
c.items.map((it, n) => /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(
|
|
177
|
+
"a",
|
|
178
|
+
{
|
|
179
|
+
href: it.href,
|
|
180
|
+
style: at(ci * 3 + n),
|
|
181
|
+
className: cx(
|
|
182
|
+
"aui-009-t group/t flex items-center gap-2.5 rounded-[8px] px-2.5 py-2 transition-[background-color,opacity] duration-200 hover:bg-paper-2 group-has-[a:hover]/m:opacity-65 hover:!opacity-100",
|
|
183
|
+
FOCUS
|
|
184
|
+
),
|
|
185
|
+
children: [
|
|
186
|
+
it.icon && /* @__PURE__ */ jsx(Badge, { icon: it.icon, size: "h-7 w-7" }),
|
|
187
|
+
/* @__PURE__ */ jsxs("span", { className: "flex min-w-0 flex-col", children: [
|
|
188
|
+
/* @__PURE__ */ jsx("span", { className: "text-[13.5px] font-medium leading-tight text-ink", children: it.title }),
|
|
189
|
+
it.description && /* @__PURE__ */ jsx("span", { className: "truncate text-[12px] leading-snug text-mute", children: it.description })
|
|
190
|
+
] })
|
|
191
|
+
]
|
|
192
|
+
}
|
|
193
|
+
) }, it.title))
|
|
194
|
+
] }, c.heading)),
|
|
195
|
+
/* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(
|
|
196
|
+
"a",
|
|
197
|
+
{
|
|
198
|
+
href: menu.cta.href,
|
|
199
|
+
style: at(6),
|
|
200
|
+
className: cx(
|
|
201
|
+
"aui-009-t group/t relative flex min-h-[188px] flex-col justify-between overflow-hidden rounded-[6px] bg-ink p-4 text-paper transition-opacity duration-300 group-has-[a:hover]/m:opacity-75 hover:!opacity-100",
|
|
202
|
+
FOCUS
|
|
203
|
+
),
|
|
204
|
+
children: [
|
|
205
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": true, className: cx("absolute -right-14 -top-14 h-44 w-44 rounded-full bg-[radial-gradient(closest-side,color-mix(in_srgb,var(--brand)_75%,transparent),transparent)] transition-transform duration-700 group-hover/t:scale-125", TW_EASE) }),
|
|
206
|
+
/* @__PURE__ */ jsx("span", { className: "relative h-2 w-2 rounded-full bg-brand" }),
|
|
207
|
+
/* @__PURE__ */ jsxs("span", { className: "relative", children: [
|
|
208
|
+
/* @__PURE__ */ jsx("span", { className: "block text-[15px] font-medium leading-tight tracking-[-0.02em]", children: menu.cta.title }),
|
|
209
|
+
/* @__PURE__ */ jsx("span", { className: "mt-1 block text-[12.5px] text-paper/60", children: menu.cta.description }),
|
|
210
|
+
/* @__PURE__ */ jsxs("span", { className: "mt-3 flex items-center gap-1 text-[13px] font-medium", children: [
|
|
211
|
+
menu.cta.label,
|
|
212
|
+
/* @__PURE__ */ jsx(Chevron, { className: cx("transition-transform duration-300 group-hover/t:translate-x-0.5", TW_EASE) })
|
|
213
|
+
] })
|
|
214
|
+
] })
|
|
215
|
+
]
|
|
216
|
+
}
|
|
217
|
+
) })
|
|
218
|
+
] });
|
|
219
|
+
}
|
|
220
|
+
var flat = (m) => m.type === "products" ? [...m.products, ...m.features] : m.columns.flatMap((c) => c.items);
|
|
221
|
+
function useMega(labels, root, openOnMount, delay = 700) {
|
|
222
|
+
const [m, setM] = useState({ value: "", last: "", dir: "" });
|
|
223
|
+
const timer = useRef(void 0);
|
|
224
|
+
const hoverAt = useRef(0);
|
|
225
|
+
const current = useRef("");
|
|
226
|
+
const wasOpen = useRef(false);
|
|
227
|
+
const panelRef = useRef(null);
|
|
228
|
+
const innerRef = useRef(null);
|
|
229
|
+
const triggers = useRef(/* @__PURE__ */ new Map());
|
|
230
|
+
const open = (v) => {
|
|
231
|
+
clearTimeout(timer.current);
|
|
232
|
+
setM((p) => p.value === v ? p : { value: v, last: v, dir: p.value ? labels.indexOf(v) > labels.indexOf(p.value) ? "from-end" : "from-start" : "" });
|
|
233
|
+
};
|
|
234
|
+
const close = useCallback((focus = false) => {
|
|
235
|
+
clearTimeout(timer.current);
|
|
236
|
+
if (focus) triggers.current.get(current.current)?.focus();
|
|
237
|
+
setM((p) => p.value ? { ...p, value: "", dir: "" } : p);
|
|
238
|
+
}, []);
|
|
239
|
+
const later = () => {
|
|
240
|
+
clearTimeout(timer.current);
|
|
241
|
+
timer.current = setTimeout(() => close(), 150);
|
|
242
|
+
};
|
|
243
|
+
const cancel = () => clearTimeout(timer.current);
|
|
244
|
+
useEffect(() => {
|
|
245
|
+
current.current = m.value;
|
|
246
|
+
if (!m.value) return;
|
|
247
|
+
const down = (e) => !root.current?.contains(e.target) && close();
|
|
248
|
+
const key = (e) => e.key === "Escape" && close(true);
|
|
249
|
+
const focus = (e) => !root.current?.contains(e.target) && close();
|
|
250
|
+
document.addEventListener("pointerdown", down);
|
|
251
|
+
document.addEventListener("keydown", key);
|
|
252
|
+
document.addEventListener("focusin", focus);
|
|
253
|
+
return () => {
|
|
254
|
+
document.removeEventListener("pointerdown", down);
|
|
255
|
+
document.removeEventListener("keydown", key);
|
|
256
|
+
document.removeEventListener("focusin", focus);
|
|
257
|
+
};
|
|
258
|
+
}, [m.value, root, close]);
|
|
259
|
+
useEffect(() => () => clearTimeout(timer.current), []);
|
|
260
|
+
useEffect(() => {
|
|
261
|
+
if (!openOnMount) return;
|
|
262
|
+
const t = setTimeout(() => setM({ value: openOnMount, last: openOnMount, dir: "" }), delay);
|
|
263
|
+
return () => clearTimeout(t);
|
|
264
|
+
}, [openOnMount, delay]);
|
|
265
|
+
useLayoutEffect(() => {
|
|
266
|
+
const box = panelRef.current;
|
|
267
|
+
const el = innerRef.current?.firstElementChild;
|
|
268
|
+
if (!box || !el || !m.value) {
|
|
269
|
+
wasOpen.current = false;
|
|
270
|
+
return;
|
|
271
|
+
}
|
|
272
|
+
const fit = (instant) => {
|
|
273
|
+
if (instant) box.style.transition = "none";
|
|
274
|
+
box.style.width = `${el.offsetWidth}px`;
|
|
275
|
+
box.style.height = `${el.offsetHeight}px`;
|
|
276
|
+
if (instant) {
|
|
277
|
+
void box.offsetWidth;
|
|
278
|
+
box.style.transition = "";
|
|
279
|
+
}
|
|
280
|
+
};
|
|
281
|
+
fit(!wasOpen.current);
|
|
282
|
+
wasOpen.current = true;
|
|
283
|
+
const ro = new ResizeObserver(() => fit(true));
|
|
284
|
+
ro.observe(el);
|
|
285
|
+
return () => ro.disconnect();
|
|
286
|
+
}, [m.value]);
|
|
287
|
+
const register = (label) => (el) => {
|
|
288
|
+
if (el) triggers.current.set(label, el);
|
|
289
|
+
else triggers.current.delete(label);
|
|
290
|
+
};
|
|
291
|
+
const enter = (label, mouse) => {
|
|
292
|
+
if (!mouse) return;
|
|
293
|
+
if (current.current !== label) hoverAt.current = Date.now();
|
|
294
|
+
open(label);
|
|
295
|
+
};
|
|
296
|
+
const click = (label) => m.value === label && Date.now() - hoverAt.current > 400 ? close() : open(label);
|
|
297
|
+
const focusFirst = () => requestAnimationFrame(() => panelRef.current?.querySelector("a")?.focus());
|
|
298
|
+
const triggerKeys = (label, e) => {
|
|
299
|
+
if (e.key === "ArrowDown" || e.key === "Tab" && !e.shiftKey && m.value === label) {
|
|
300
|
+
e.preventDefault();
|
|
301
|
+
open(label);
|
|
302
|
+
focusFirst();
|
|
303
|
+
}
|
|
304
|
+
};
|
|
305
|
+
const panelKeys = (e) => {
|
|
306
|
+
const first = panelRef.current?.querySelector("a");
|
|
307
|
+
if (e.key === "Tab" && e.shiftKey && e.target === first) {
|
|
308
|
+
e.preventDefault();
|
|
309
|
+
triggers.current.get(current.current)?.focus();
|
|
310
|
+
}
|
|
311
|
+
};
|
|
312
|
+
const ended = (e) => {
|
|
313
|
+
if (e.target === e.currentTarget) setM((p) => p.value ? p : { ...p, last: "" });
|
|
314
|
+
};
|
|
315
|
+
return { m, panelRef, innerRef, close, later, cancel, register, enter, click, triggerKeys, panelKeys, ended };
|
|
316
|
+
}
|
|
317
|
+
function MinimalNavbar({
|
|
318
|
+
brand = /* @__PURE__ */ jsx(Logo, {}),
|
|
319
|
+
brandHref = "/",
|
|
320
|
+
items = ITEMS,
|
|
321
|
+
active = 2,
|
|
322
|
+
secondary = { label: "Sign in", href: "#" },
|
|
323
|
+
cta = { label: "Start free", href: "#" },
|
|
324
|
+
openOnMount,
|
|
325
|
+
className
|
|
326
|
+
}) {
|
|
327
|
+
const [hover, setHover] = useState(null);
|
|
328
|
+
const [sheet, setSheet] = useState(false);
|
|
329
|
+
const [section, setSection] = useState(null);
|
|
330
|
+
const root = useRef(null);
|
|
331
|
+
const { panelRef: megaPanel, innerRef: megaInner, ...mega } = useMega(items.map((x) => x.label), root, openOnMount, 700);
|
|
332
|
+
const value = mega.m.value;
|
|
333
|
+
const lastMenu = items.find((x) => x.label === mega.m.last)?.menu;
|
|
334
|
+
const row = useRef(null);
|
|
335
|
+
const mark = useRef(null);
|
|
336
|
+
const burger = useRef(null);
|
|
337
|
+
const anim = useRef(null);
|
|
338
|
+
const openIndex = items.findIndex((it) => it.label === value);
|
|
339
|
+
const target = hover ?? (openIndex >= 0 ? openIndex : active);
|
|
340
|
+
const targetRef = useRef(target);
|
|
341
|
+
const id = useId();
|
|
342
|
+
const place = useCallback((animate) => {
|
|
343
|
+
const r = row.current;
|
|
344
|
+
const el = mark.current;
|
|
345
|
+
if (!r || !el) return;
|
|
346
|
+
const a = r.querySelectorAll("[data-glide]")[targetRef.current];
|
|
347
|
+
if (!a || a.offsetWidth === 0) {
|
|
348
|
+
el.style.opacity = "0";
|
|
349
|
+
return;
|
|
350
|
+
}
|
|
351
|
+
const rr = r.getBoundingClientRect();
|
|
352
|
+
const ar = a.getBoundingClientRect();
|
|
353
|
+
const to = { x: ar.left - rr.left + 10, w: ar.width - 20 };
|
|
354
|
+
let from = null;
|
|
355
|
+
if (el.style.opacity === "1") {
|
|
356
|
+
const m = el.getBoundingClientRect();
|
|
357
|
+
from = { x: m.left - rr.left, w: m.width };
|
|
358
|
+
}
|
|
359
|
+
anim.current?.cancel();
|
|
360
|
+
el.style.width = `${to.w}px`;
|
|
361
|
+
el.style.transform = `translateX(${to.x}px)`;
|
|
362
|
+
el.style.opacity = "1";
|
|
363
|
+
if (!animate || !from || from.w === 0 || reduced() || Math.abs(from.x - to.x) < 1) return;
|
|
364
|
+
const t = (b) => `translateX(${b.x}px) scaleX(${b.w / to.w})`;
|
|
365
|
+
const left = Math.min(from.x, to.x);
|
|
366
|
+
const span = Math.max(from.x + from.w, to.x + to.w) - left;
|
|
367
|
+
anim.current = el.animate([{ transform: t(from) }, { transform: t({ x: left, w: span }), offset: 0.42 }, { transform: t(to) }], { duration: 600, easing: EASE });
|
|
368
|
+
}, []);
|
|
369
|
+
useLayoutEffect(() => {
|
|
370
|
+
targetRef.current = target;
|
|
371
|
+
place(true);
|
|
372
|
+
}, [target, place]);
|
|
373
|
+
useEffect(() => {
|
|
374
|
+
const r = row.current;
|
|
375
|
+
if (!r) return;
|
|
376
|
+
const ro = new ResizeObserver(() => place(false));
|
|
377
|
+
ro.observe(r);
|
|
378
|
+
return () => ro.disconnect();
|
|
379
|
+
}, [place]);
|
|
380
|
+
useEffect(() => () => anim.current?.cancel(), []);
|
|
381
|
+
const close = useCallback((focus) => {
|
|
382
|
+
setSheet(false);
|
|
383
|
+
if (focus) burger.current?.focus();
|
|
384
|
+
}, []);
|
|
385
|
+
useEffect(() => {
|
|
386
|
+
if (!sheet) return;
|
|
387
|
+
const down = (e) => !root.current?.contains(e.target) && close(false);
|
|
388
|
+
const key = (e) => e.key === "Escape" && close(true);
|
|
389
|
+
document.addEventListener("pointerdown", down);
|
|
390
|
+
document.addEventListener("keydown", key);
|
|
391
|
+
return () => {
|
|
392
|
+
document.removeEventListener("pointerdown", down);
|
|
393
|
+
document.removeEventListener("keydown", key);
|
|
394
|
+
};
|
|
395
|
+
}, [sheet, close]);
|
|
396
|
+
const pill = cx(
|
|
397
|
+
"group/p flex h-8 items-center gap-1 rounded-lg px-2.5 text-[14px] font-medium text-ink/70 transition-colors duration-200 hover:bg-paper-2 hover:text-ink aria-expanded:bg-paper-2 aria-expanded:text-ink",
|
|
398
|
+
FOCUS
|
|
399
|
+
);
|
|
400
|
+
return /* @__PURE__ */ jsxs("header", { ref: root, className: cx("aui-009-m @container sticky top-0 z-30 w-full bg-paper shadow-[0_1px_0_color-mix(in_srgb,var(--ink)_9%,transparent)]", className), children: [
|
|
401
|
+
/* @__PURE__ */ jsx("style", { href: "asta-navbar-aui-009", precedence: "asta", children: CSS }),
|
|
402
|
+
/* @__PURE__ */ jsxs("div", { ref: row, className: "relative mx-auto flex h-14 max-w-[1120px] items-center px-4", children: [
|
|
403
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-1 items-center", children: /* @__PURE__ */ jsx("a", { href: brandHref, style: at(0), className: cx("aui-009-in flex items-center gap-2 rounded-md text-[15px] font-semibold tracking-[-0.02em] text-ink", FOCUS), children: brand }) }),
|
|
404
|
+
/* @__PURE__ */ jsx("nav", { "aria-label": "Main", className: "hidden @min-[640px]:block", children: /* @__PURE__ */ jsx("ul", { className: "flex items-center gap-px", onPointerLeave: () => setHover(null), children: items.map((it, n) => /* @__PURE__ */ jsx("li", { className: "aui-009-in", style: at(n + 1), onPointerEnter: () => setHover(n), children: it.menu ? /* @__PURE__ */ jsx(Fragment2, { children: /* @__PURE__ */ jsxs(
|
|
405
|
+
"button",
|
|
406
|
+
{
|
|
407
|
+
ref: mega.register(it.label),
|
|
408
|
+
type: "button",
|
|
409
|
+
"aria-expanded": value === it.label,
|
|
410
|
+
"aria-controls": `${id}-m${n}`,
|
|
411
|
+
onPointerEnter: (e) => mega.enter(it.label, e.pointerType === "mouse"),
|
|
412
|
+
onPointerLeave: (e) => e.pointerType === "mouse" && mega.later(),
|
|
413
|
+
onClick: () => mega.click(it.label),
|
|
414
|
+
onKeyDown: (e) => mega.triggerKeys(it.label, e),
|
|
415
|
+
"data-glide": true,
|
|
416
|
+
className: cx(pill, "pr-2"),
|
|
417
|
+
children: [
|
|
418
|
+
it.label,
|
|
419
|
+
/* @__PURE__ */ jsx(Chevron, { className: cx("rotate-90 text-mute transition-transform duration-300 group-aria-expanded/p:-rotate-90", TW_EASE) })
|
|
420
|
+
]
|
|
421
|
+
}
|
|
422
|
+
) }) : /* @__PURE__ */ jsx("a", { href: it.href, "data-glide": true, "aria-current": n === active ? "page" : void 0, className: cx(pill, n === active && "text-ink"), children: it.label }) }, it.label)) }) }),
|
|
423
|
+
/* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute inset-x-0 top-full z-40 hidden justify-center pt-1.5 @min-[640px]:flex", children: mega.m.last && /* @__PURE__ */ jsx(
|
|
424
|
+
"div",
|
|
425
|
+
{
|
|
426
|
+
ref: megaPanel,
|
|
427
|
+
"data-state": value ? "open" : "closed",
|
|
428
|
+
onPointerEnter: mega.cancel,
|
|
429
|
+
onPointerLeave: (e) => e.pointerType === "mouse" && mega.later(),
|
|
430
|
+
onClick: (e) => e.target.closest("a") && mega.close(),
|
|
431
|
+
onKeyDown: mega.panelKeys,
|
|
432
|
+
onAnimationEnd: mega.ended,
|
|
433
|
+
className: cx(
|
|
434
|
+
"aui-009-vp pointer-events-auto relative overflow-hidden rounded-[8px] bg-paper shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_9%,transparent),0_16px_36px_-12px_rgb(0_0_0/0.22)]",
|
|
435
|
+
"transition-[width,height] duration-300 data-[state=closed]:pointer-events-none",
|
|
436
|
+
TW_EASE
|
|
437
|
+
),
|
|
438
|
+
children: /* @__PURE__ */ jsx("div", { ref: megaInner, id: `${id}-m${items.findIndex((x) => x.label === mega.m.last)}`, "data-motion": mega.m.dir || void 0, className: "aui-009-c absolute left-0 top-0", children: lastMenu && /* @__PURE__ */ jsx(Panel, { menu: lastMenu }) }, mega.m.last)
|
|
439
|
+
}
|
|
440
|
+
) }),
|
|
441
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-1 items-center justify-end gap-1.5", children: [
|
|
442
|
+
/* @__PURE__ */ jsx(
|
|
443
|
+
"a",
|
|
444
|
+
{
|
|
445
|
+
href: secondary.href,
|
|
446
|
+
style: at(items.length + 1),
|
|
447
|
+
className: cx("aui-009-in hidden h-8 items-center rounded-lg px-3 text-[13px] font-medium text-ink/70 transition-colors hover:bg-paper-2 hover:text-ink @min-[760px]:inline-flex", FOCUS),
|
|
448
|
+
children: secondary.label
|
|
449
|
+
}
|
|
450
|
+
),
|
|
451
|
+
/* @__PURE__ */ jsxs(
|
|
452
|
+
"a",
|
|
453
|
+
{
|
|
454
|
+
href: cta.href,
|
|
455
|
+
style: at(items.length + 2),
|
|
456
|
+
className: cx(
|
|
457
|
+
"aui-009-in group/cta inline-flex h-8 items-center gap-1 rounded-lg bg-ink pl-3 pr-2.5 text-[13px] font-medium text-paper transition-transform duration-300 hover:-translate-y-px active:translate-y-0 active:scale-[.97] focus-visible:ring-offset-2 focus-visible:ring-offset-paper",
|
|
458
|
+
TW_EASE,
|
|
459
|
+
FOCUS
|
|
460
|
+
),
|
|
461
|
+
children: [
|
|
462
|
+
cta.label,
|
|
463
|
+
/* @__PURE__ */ jsx(Chevron, { className: cx("transition-transform duration-300 group-hover/cta:translate-x-0.5", TW_EASE) })
|
|
464
|
+
]
|
|
465
|
+
}
|
|
466
|
+
),
|
|
467
|
+
/* @__PURE__ */ jsxs(
|
|
468
|
+
"button",
|
|
469
|
+
{
|
|
470
|
+
ref: burger,
|
|
471
|
+
type: "button",
|
|
472
|
+
"aria-label": sheet ? "Close menu" : "Open menu",
|
|
473
|
+
"aria-expanded": sheet,
|
|
474
|
+
"aria-controls": id,
|
|
475
|
+
onClick: () => setSheet((v) => !v),
|
|
476
|
+
className: cx("relative flex h-8 w-8 items-center justify-center rounded-lg transition-colors hover:bg-paper-2 @min-[640px]:hidden", FOCUS),
|
|
477
|
+
children: [
|
|
478
|
+
/* @__PURE__ */ jsx("span", { className: cx("absolute h-[1.5px] w-4 rounded-full bg-ink transition-transform duration-500", TW_EASE, sheet ? "rotate-45" : "-translate-y-[3.5px]") }),
|
|
479
|
+
/* @__PURE__ */ jsx("span", { className: cx("absolute h-[1.5px] w-4 rounded-full bg-ink transition-transform duration-500", TW_EASE, sheet ? "-rotate-45" : "translate-y-[3.5px]") })
|
|
480
|
+
]
|
|
481
|
+
}
|
|
482
|
+
)
|
|
483
|
+
] }),
|
|
484
|
+
/* @__PURE__ */ jsx("span", { ref: mark, "aria-hidden": true, style: { opacity: 0 }, className: "pointer-events-none absolute -bottom-px left-0 hidden h-[2px] origin-left rounded-full bg-ink transition-opacity duration-300 @min-[640px]:block" })
|
|
485
|
+
] }),
|
|
486
|
+
sheet && /* @__PURE__ */ jsxs("nav", { id, "aria-label": "Main", className: "aui-009-sheet absolute inset-x-0 top-full max-h-[70vh] overflow-y-auto bg-paper pb-4 shadow-[0_24px_40px_-24px_rgb(0_0_0/0.3)] @min-[640px]:hidden", children: [
|
|
487
|
+
items.map(
|
|
488
|
+
(it, n) => it.menu ? /* @__PURE__ */ jsxs("div", { className: "aui-009-in shadow-[0_1px_0_color-mix(in_srgb,var(--ink)_7%,transparent)]", style: at(n), children: [
|
|
489
|
+
/* @__PURE__ */ jsxs(
|
|
490
|
+
"button",
|
|
491
|
+
{
|
|
492
|
+
type: "button",
|
|
493
|
+
"aria-expanded": section === it.label,
|
|
494
|
+
onClick: () => setSection((s) => s === it.label ? null : it.label),
|
|
495
|
+
className: cx("flex h-12 w-full items-center justify-between px-4 text-[16px] font-medium text-ink", FOCUS),
|
|
496
|
+
children: [
|
|
497
|
+
it.label,
|
|
498
|
+
/* @__PURE__ */ jsx(Chevron, { className: cx("text-mute transition-transform duration-300", TW_EASE, section === it.label ? "-rotate-90" : "rotate-90") })
|
|
499
|
+
]
|
|
500
|
+
}
|
|
501
|
+
),
|
|
502
|
+
/* @__PURE__ */ jsx("div", { className: cx("grid transition-[grid-template-rows] duration-500", TW_EASE, section === it.label ? "grid-rows-[1fr]" : "grid-rows-[0fr]"), children: /* @__PURE__ */ jsxs("ul", { className: "overflow-hidden px-2", inert: section !== it.label || void 0, children: [
|
|
503
|
+
flat(it.menu).map((t) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs("a", { href: t.href, onClick: () => close(false), className: cx("flex items-center gap-3 rounded-[8px] px-2 py-2 hover:bg-paper-2", FOCUS), children: [
|
|
504
|
+
t.icon && /* @__PURE__ */ jsx(Badge, { icon: t.icon, size: "h-7 w-7" }),
|
|
505
|
+
/* @__PURE__ */ jsxs("span", { className: "flex flex-col", children: [
|
|
506
|
+
/* @__PURE__ */ jsx("span", { className: "text-[14px] font-medium text-ink", children: t.title }),
|
|
507
|
+
t.description && /* @__PURE__ */ jsx("span", { className: "text-[12px] text-mute", children: t.description })
|
|
508
|
+
] })
|
|
509
|
+
] }) }, t.title)),
|
|
510
|
+
/* @__PURE__ */ jsx("li", { "aria-hidden": true, className: "h-2" })
|
|
511
|
+
] }) })
|
|
512
|
+
] }, it.label) : /* @__PURE__ */ jsxs(
|
|
513
|
+
"a",
|
|
514
|
+
{
|
|
515
|
+
href: it.href,
|
|
516
|
+
onClick: () => close(false),
|
|
517
|
+
style: at(n),
|
|
518
|
+
className: cx("aui-009-in flex h-12 items-center justify-between px-4 text-[16px] font-medium text-ink shadow-[0_1px_0_color-mix(in_srgb,var(--ink)_7%,transparent)]", FOCUS),
|
|
519
|
+
children: [
|
|
520
|
+
it.label,
|
|
521
|
+
n === active && /* @__PURE__ */ jsx("span", { className: "h-1.5 w-1.5 rounded-full bg-brand" })
|
|
522
|
+
]
|
|
523
|
+
},
|
|
524
|
+
it.label
|
|
525
|
+
)
|
|
526
|
+
),
|
|
527
|
+
/* @__PURE__ */ jsxs("div", { className: "aui-009-in mt-4 grid grid-cols-2 gap-2 px-4", style: at(items.length), children: [
|
|
528
|
+
/* @__PURE__ */ jsx("a", { href: secondary.href, className: cx("flex h-10 items-center justify-center rounded-lg text-[14px] font-medium text-ink", HAIR, FOCUS), children: secondary.label }),
|
|
529
|
+
/* @__PURE__ */ jsx("a", { href: cta.href, className: cx("flex h-10 items-center justify-center rounded-lg bg-ink text-[14px] font-medium text-paper", FOCUS), children: cta.label })
|
|
530
|
+
] })
|
|
531
|
+
] })
|
|
532
|
+
] });
|
|
533
|
+
}
|
|
534
|
+
var navbar_aui_009_default = MinimalNavbar;
|
|
535
|
+
|
|
536
|
+
export {
|
|
537
|
+
MinimalNavbar,
|
|
538
|
+
navbar_aui_009_default
|
|
539
|
+
};
|