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,231 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// components/kit/variants/pricing-aui-024.tsx
|
|
4
|
+
import { useCallback, useEffect, useLayoutEffect, useRef, useState } from "react";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
var cx = (...c) => c.filter(Boolean).join(" ");
|
|
7
|
+
var TIERS = [
|
|
8
|
+
{ id: "hobby", name: "Hobby", description: "1 project, community support", price: 0 },
|
|
9
|
+
{ id: "pro", name: "Pro", description: "10 projects, analytics, custom domain", price: 19, tag: "Popular" },
|
|
10
|
+
{ id: "team", name: "Team", description: "Unlimited projects, roles, 10 seats", price: 49 },
|
|
11
|
+
{ id: "scale", name: "Scale", description: "SSO, audit log, 99.9% uptime SLA", price: 149 }
|
|
12
|
+
];
|
|
13
|
+
var EASE = "ease-[cubic-bezier(.16,1,.3,1)]";
|
|
14
|
+
var CSS = `
|
|
15
|
+
@keyframes aui-tiers-rise { from { opacity: 0; transform: translateY(10px) } }
|
|
16
|
+
.aui-tiers-rise { animation: aui-tiers-rise .6s cubic-bezier(.16,1,.3,1) both }
|
|
17
|
+
@media (prefers-reduced-motion: reduce) { .aui-tiers-rise { animation: none } .aui-tiers-move { transition: none !important } }
|
|
18
|
+
`;
|
|
19
|
+
function RollChar({ c, delay }) {
|
|
20
|
+
if (!/\d/.test(c)) return /* @__PURE__ */ jsx("span", { className: "inline-block", children: c });
|
|
21
|
+
return /* @__PURE__ */ jsx("span", { className: "relative inline-block h-[1em] w-[0.6em] overflow-hidden", children: /* @__PURE__ */ jsx(
|
|
22
|
+
"span",
|
|
23
|
+
{
|
|
24
|
+
className: cx("aui-tiers-move absolute inset-x-0 top-0 flex flex-col transition-transform duration-700", EASE),
|
|
25
|
+
style: { transform: `translateY(${-Number(c) * 10}%)`, transitionDelay: `${delay}ms` },
|
|
26
|
+
children: Array.from({ length: 10 }, (_, n) => /* @__PURE__ */ jsx("span", { className: "block h-[1em] text-center leading-[1em]", children: n }, n))
|
|
27
|
+
}
|
|
28
|
+
) });
|
|
29
|
+
}
|
|
30
|
+
function Roll({ text }) {
|
|
31
|
+
const chars = text.split("");
|
|
32
|
+
return /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "inline-flex tabular-nums", children: chars.map((c, i) => /* @__PURE__ */ jsx(RollChar, { c, delay: (chars.length - 1 - i) * 60 }, chars.length - i)) });
|
|
33
|
+
}
|
|
34
|
+
function Level({ level, on }) {
|
|
35
|
+
return /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "flex h-4 items-end gap-[2px]", children: [0, 1, 2, 3].map((i) => /* @__PURE__ */ jsx(
|
|
36
|
+
"span",
|
|
37
|
+
{
|
|
38
|
+
className: cx("block w-[3px] rounded-[1px] transition-colors duration-500", i < level ? on ? "bg-brand" : "bg-ink" : "bg-ink/15"),
|
|
39
|
+
style: { height: `${40 + i * 20}%`, transitionDelay: on ? `${i * 50}ms` : "0ms" }
|
|
40
|
+
},
|
|
41
|
+
i
|
|
42
|
+
)) });
|
|
43
|
+
}
|
|
44
|
+
function PricingTiers({
|
|
45
|
+
tiers = TIERS,
|
|
46
|
+
title = "Choose a plan",
|
|
47
|
+
subtitle = "Astabyte \xB7 12 members",
|
|
48
|
+
initials = "NS",
|
|
49
|
+
currency = "$",
|
|
50
|
+
period = "/ mo",
|
|
51
|
+
defaultValue,
|
|
52
|
+
onChange,
|
|
53
|
+
onContinue,
|
|
54
|
+
ctaLabel = "Continue",
|
|
55
|
+
hint = false,
|
|
56
|
+
className
|
|
57
|
+
}) {
|
|
58
|
+
const [value, setValue] = useState(defaultValue ?? tiers[1]?.id ?? tiers[0]?.id ?? "");
|
|
59
|
+
const list = useRef(null);
|
|
60
|
+
const rows = useRef({});
|
|
61
|
+
const touched = useRef(false);
|
|
62
|
+
const [ring, setRing] = useState({ y: 0, h: 0, ready: false });
|
|
63
|
+
const [armed, setArmed] = useState(false);
|
|
64
|
+
const measure = useCallback(() => {
|
|
65
|
+
const el = rows.current[value];
|
|
66
|
+
if (el) setRing({ y: el.offsetTop, h: el.offsetHeight, ready: true });
|
|
67
|
+
}, [value]);
|
|
68
|
+
useLayoutEffect(() => {
|
|
69
|
+
measure();
|
|
70
|
+
}, [measure]);
|
|
71
|
+
useLayoutEffect(() => {
|
|
72
|
+
const el = list.current;
|
|
73
|
+
if (!el || typeof ResizeObserver === "undefined") return;
|
|
74
|
+
const ro = new ResizeObserver(() => measure());
|
|
75
|
+
ro.observe(el);
|
|
76
|
+
return () => ro.disconnect();
|
|
77
|
+
}, [measure]);
|
|
78
|
+
useEffect(() => {
|
|
79
|
+
const t = setTimeout(() => setArmed(true), 50);
|
|
80
|
+
return () => clearTimeout(t);
|
|
81
|
+
}, []);
|
|
82
|
+
useEffect(() => {
|
|
83
|
+
if (!hint || window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;
|
|
84
|
+
const start = tiers.findIndex((t) => t.id === (defaultValue ?? tiers[1]?.id));
|
|
85
|
+
const next = tiers[(start + 1) % tiers.length]?.id;
|
|
86
|
+
const back = tiers[start]?.id;
|
|
87
|
+
if (!next || !back) return;
|
|
88
|
+
const a = setTimeout(() => !touched.current && setValue(next), 1300);
|
|
89
|
+
const b = setTimeout(() => !touched.current && setValue(back), 2300);
|
|
90
|
+
return () => {
|
|
91
|
+
clearTimeout(a);
|
|
92
|
+
clearTimeout(b);
|
|
93
|
+
};
|
|
94
|
+
}, [hint, tiers, defaultValue]);
|
|
95
|
+
function choose(id, focus = false) {
|
|
96
|
+
touched.current = true;
|
|
97
|
+
setValue(id);
|
|
98
|
+
onChange?.(id);
|
|
99
|
+
if (focus) rows.current[id]?.focus();
|
|
100
|
+
}
|
|
101
|
+
function onKey(e, i) {
|
|
102
|
+
const n = tiers.length;
|
|
103
|
+
let j = -1;
|
|
104
|
+
if (e.key === "ArrowDown" || e.key === "ArrowRight") j = (i + 1) % n;
|
|
105
|
+
else if (e.key === "ArrowUp" || e.key === "ArrowLeft") j = (i - 1 + n) % n;
|
|
106
|
+
else if (e.key === "Home") j = 0;
|
|
107
|
+
else if (e.key === "End") j = n - 1;
|
|
108
|
+
if (j < 0) return;
|
|
109
|
+
e.preventDefault();
|
|
110
|
+
const t = tiers[j];
|
|
111
|
+
if (t) choose(t.id, true);
|
|
112
|
+
}
|
|
113
|
+
const index = Math.max(0, tiers.findIndex((t) => t.id === value));
|
|
114
|
+
const current = tiers[index];
|
|
115
|
+
const rise = (n) => ({ animationDelay: `${80 + n * 55}ms` });
|
|
116
|
+
return /* @__PURE__ */ jsxs(
|
|
117
|
+
"div",
|
|
118
|
+
{
|
|
119
|
+
className: cx(
|
|
120
|
+
"w-full max-w-[460px] rounded-[16px] bg-paper p-2 text-ink shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent),0_1px_2px_rgb(0_0_0/0.04),0_24px_48px_-24px_rgb(0_0_0/0.35)]",
|
|
121
|
+
className
|
|
122
|
+
),
|
|
123
|
+
children: [
|
|
124
|
+
/* @__PURE__ */ jsxs("div", { className: "aui-tiers-rise flex items-center gap-3 px-4 pb-4 pt-4", style: rise(0), children: [
|
|
125
|
+
initials && /* @__PURE__ */ jsx("span", { className: "grid h-9 w-9 shrink-0 place-items-center rounded-full bg-ink text-[12px] font-semibold tracking-[0.02em] text-paper", children: initials }),
|
|
126
|
+
/* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
|
|
127
|
+
/* @__PURE__ */ jsx("h3", { className: "text-[20px] font-medium leading-tight tracking-[-0.02em]", children: title }),
|
|
128
|
+
subtitle && /* @__PURE__ */ jsx("p", { className: "mt-0.5 truncate text-[13px] text-mute", children: subtitle })
|
|
129
|
+
] })
|
|
130
|
+
] }),
|
|
131
|
+
/* @__PURE__ */ jsxs("div", { ref: list, role: "radiogroup", "aria-label": title, className: "relative flex flex-col gap-1", children: [
|
|
132
|
+
/* @__PURE__ */ jsx(
|
|
133
|
+
"span",
|
|
134
|
+
{
|
|
135
|
+
"aria-hidden": true,
|
|
136
|
+
className: cx(
|
|
137
|
+
"aui-tiers-move pointer-events-none absolute inset-x-0 top-0 rounded-[11px] shadow-[inset_0_0_0_1.5px_var(--brand),0_10px_24px_-14px_var(--brand)]",
|
|
138
|
+
armed && "transition-transform duration-[600ms]",
|
|
139
|
+
EASE,
|
|
140
|
+
ring.ready ? "opacity-100" : "opacity-0"
|
|
141
|
+
),
|
|
142
|
+
style: { transform: `translateY(${ring.y}px)`, height: ring.h, background: "color-mix(in srgb, var(--brand) 5%, var(--paper))" }
|
|
143
|
+
}
|
|
144
|
+
),
|
|
145
|
+
tiers.map((t, i) => {
|
|
146
|
+
const on = t.id === value;
|
|
147
|
+
return /* @__PURE__ */ jsxs(
|
|
148
|
+
"button",
|
|
149
|
+
{
|
|
150
|
+
ref: (el) => {
|
|
151
|
+
rows.current[t.id] = el;
|
|
152
|
+
},
|
|
153
|
+
type: "button",
|
|
154
|
+
role: "radio",
|
|
155
|
+
"aria-checked": on,
|
|
156
|
+
tabIndex: on ? 0 : -1,
|
|
157
|
+
onClick: () => choose(t.id),
|
|
158
|
+
onKeyDown: (e) => onKey(e, i),
|
|
159
|
+
className: cx(
|
|
160
|
+
"aui-tiers-rise group relative flex w-full items-center gap-3.5 rounded-[11px] px-4 py-3.5 text-left outline-none transition-[background-color,transform] duration-300 active:scale-[.99] focus-visible:ring-2 focus-visible:ring-brand/40 focus-visible:ring-offset-2 focus-visible:ring-offset-paper",
|
|
161
|
+
EASE,
|
|
162
|
+
!on && "hover:bg-ink/[0.03]"
|
|
163
|
+
),
|
|
164
|
+
style: rise(1 + i),
|
|
165
|
+
children: [
|
|
166
|
+
/* @__PURE__ */ jsx(Level, { level: Math.min(4, i + 1), on }),
|
|
167
|
+
/* @__PURE__ */ jsxs("span", { className: "min-w-0 flex-1", children: [
|
|
168
|
+
/* @__PURE__ */ jsxs("span", { className: "flex items-center gap-2 text-[14.5px] font-medium tracking-[-0.01em]", children: [
|
|
169
|
+
t.name,
|
|
170
|
+
t.tag && /* @__PURE__ */ jsx("span", { className: "rounded-[4px] bg-brand px-1.5 text-[10.5px] font-medium leading-[18px] text-white", children: t.tag })
|
|
171
|
+
] }),
|
|
172
|
+
/* @__PURE__ */ jsx("span", { className: "mt-0.5 block truncate text-[13px] text-mute", children: t.description })
|
|
173
|
+
] }),
|
|
174
|
+
/* @__PURE__ */ jsxs("span", { className: cx("shrink-0 text-right transition-transform duration-500", EASE, on ? "-translate-x-0.5" : "translate-x-0"), children: [
|
|
175
|
+
/* @__PURE__ */ jsx("span", { className: "text-[16px] font-medium tracking-[-0.03em] tabular-nums", children: t.price === 0 ? "Free" : `${currency}${t.price}` }),
|
|
176
|
+
t.price > 0 && /* @__PURE__ */ jsx("span", { className: "ml-1 text-[12px] text-mute", children: period })
|
|
177
|
+
] })
|
|
178
|
+
]
|
|
179
|
+
},
|
|
180
|
+
t.id
|
|
181
|
+
);
|
|
182
|
+
})
|
|
183
|
+
] }),
|
|
184
|
+
/* @__PURE__ */ jsxs("div", { className: "aui-tiers-rise mt-2 flex items-center justify-between gap-4 rounded-[12px] bg-ink px-4 py-3.5 text-paper", style: rise(2 + tiers.length), children: [
|
|
185
|
+
/* @__PURE__ */ jsxs("div", { className: "min-w-0", "aria-live": "polite", children: [
|
|
186
|
+
/* @__PURE__ */ jsx("p", { className: "font-mono text-[10.5px] uppercase tracking-[0.08em] text-paper/50", children: "Due today" }),
|
|
187
|
+
/* @__PURE__ */ jsxs("p", { className: "mt-1 flex items-start font-medium leading-none tracking-[-0.04em]", children: [
|
|
188
|
+
/* @__PURE__ */ jsx("span", { className: "mr-0.5 mt-0.5 text-[14px] text-paper/70", children: currency }),
|
|
189
|
+
/* @__PURE__ */ jsx("span", { className: "text-[28px]", children: /* @__PURE__ */ jsx(Roll, { text: String(current?.price ?? 0) }) }),
|
|
190
|
+
/* @__PURE__ */ jsxs("span", { className: "sr-only", children: [
|
|
191
|
+
current?.name,
|
|
192
|
+
", ",
|
|
193
|
+
currency,
|
|
194
|
+
current?.price,
|
|
195
|
+
" ",
|
|
196
|
+
period
|
|
197
|
+
] }),
|
|
198
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "ml-2 self-end pb-0.5 text-[12px] font-normal tracking-normal text-paper/50", children: /* @__PURE__ */ jsxs("span", { className: "aui-tiers-rise inline-block", children: [
|
|
199
|
+
current?.name,
|
|
200
|
+
" ",
|
|
201
|
+
period
|
|
202
|
+
] }, current?.id) })
|
|
203
|
+
] })
|
|
204
|
+
] }),
|
|
205
|
+
/* @__PURE__ */ jsxs(
|
|
206
|
+
"button",
|
|
207
|
+
{
|
|
208
|
+
type: "button",
|
|
209
|
+
onClick: () => current && onContinue?.(current.id),
|
|
210
|
+
className: cx(
|
|
211
|
+
"group inline-flex h-10 shrink-0 items-center justify-center gap-1.5 rounded-[8px] bg-brand px-4 text-[13.5px] font-medium text-white shadow-[0_10px_24px_-12px_var(--brand)] outline-none transition-transform duration-300 hover:-translate-y-px active:translate-y-0 active:scale-[.97] focus-visible:ring-2 focus-visible:ring-brand/60 focus-visible:ring-offset-2 focus-visible:ring-offset-ink",
|
|
212
|
+
EASE
|
|
213
|
+
),
|
|
214
|
+
children: [
|
|
215
|
+
ctaLabel,
|
|
216
|
+
/* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: cx("h-3.5 w-3.5 transition-transform duration-300 group-hover:translate-x-0.5", EASE), fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "M3 8h10M9 4l4 4-4 4" }) })
|
|
217
|
+
]
|
|
218
|
+
}
|
|
219
|
+
)
|
|
220
|
+
] }),
|
|
221
|
+
/* @__PURE__ */ jsx("style", { href: "asta-pricing-aui-024", precedence: "asta", children: CSS })
|
|
222
|
+
]
|
|
223
|
+
}
|
|
224
|
+
);
|
|
225
|
+
}
|
|
226
|
+
var pricing_aui_024_default = PricingTiers;
|
|
227
|
+
|
|
228
|
+
export {
|
|
229
|
+
PricingTiers,
|
|
230
|
+
pricing_aui_024_default
|
|
231
|
+
};
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// components/kit/variants/footer-aui-028.tsx
|
|
4
|
+
import { useId, useRef, useState } from "react";
|
|
5
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
var cx = (...c) => c.filter(Boolean).join(" ");
|
|
7
|
+
var EASE = "ease-[cubic-bezier(.16,1,.3,1)]";
|
|
8
|
+
var ring = "outline-none focus-visible:ring-2 focus-visible:ring-brand/50 focus-visible:ring-offset-2 focus-visible:ring-offset-paper";
|
|
9
|
+
var step = (i) => ({ "--i": i });
|
|
10
|
+
var DEFAULT_COLUMNS = [
|
|
11
|
+
{
|
|
12
|
+
heading: "Product",
|
|
13
|
+
links: [
|
|
14
|
+
{ label: "Dashboard", href: "#" },
|
|
15
|
+
{ label: "Edge functions", href: "#" },
|
|
16
|
+
{ label: "Pricing", href: "#" },
|
|
17
|
+
{ label: "Enterprise", href: "#" }
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
heading: "Developers",
|
|
22
|
+
links: [
|
|
23
|
+
{ label: "Docs", href: "#" },
|
|
24
|
+
{ label: "API reference", href: "#" },
|
|
25
|
+
{ label: "SDKs", href: "#" },
|
|
26
|
+
{ label: "Changelog", href: "#" }
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
heading: "Company",
|
|
31
|
+
links: [
|
|
32
|
+
{ label: "About", href: "#" },
|
|
33
|
+
{ label: "Security", href: "#" },
|
|
34
|
+
{ label: "Careers", href: "#" },
|
|
35
|
+
{ label: "Contact", href: "#" }
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
];
|
|
39
|
+
var DEFAULT_UPTIME = Array.from({ length: 45 }, (_, i) => i === 11 ? 0.991 : i === 29 ? 0.997 : 1);
|
|
40
|
+
var DEFAULT_LANGUAGES = [
|
|
41
|
+
{ value: "en", label: "English" },
|
|
42
|
+
{ value: "de", label: "Deutsch" },
|
|
43
|
+
{ value: "fr", label: "Fran\xE7ais" },
|
|
44
|
+
{ value: "ja", label: "\u65E5\u672C\u8A9E" },
|
|
45
|
+
{ value: "id", label: "Bahasa Indonesia" }
|
|
46
|
+
];
|
|
47
|
+
var CSS = `
|
|
48
|
+
@keyframes aui-f28-rise { from { opacity: 0; transform: translateY(12px) } }
|
|
49
|
+
@keyframes aui-f28-bar { from { opacity: 0; transform: scaleY(.15) } }
|
|
50
|
+
@keyframes aui-f28-ping { 0% { opacity: .55; transform: scale(1) } 80%, 100% { opacity: 0; transform: scale(2.8) } }
|
|
51
|
+
@keyframes aui-f28-beat { 0%, 100% { opacity: 1; transform: scale(1) } 50% { opacity: .7; transform: scale(.8) } }
|
|
52
|
+
@keyframes aui-f28-fly { 0% { transform: none } 45% { opacity: 0; transform: translateY(-130%) } 46% { opacity: 0; transform: translateY(130%) } 100% { opacity: 1; transform: none } }
|
|
53
|
+
.aui-f28-in { animation: aui-f28-rise .65s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--i, 0) * 55ms) }
|
|
54
|
+
.aui-f28-bar { transform-origin: bottom; animation: aui-f28-bar .6s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(300ms + var(--i, 0) * 14ms) }
|
|
55
|
+
.aui-f28-ping { animation: aui-f28-ping 2s cubic-bezier(.16,1,.3,1) infinite }
|
|
56
|
+
.aui-f28-beat { animation: aui-f28-beat 2s cubic-bezier(.16,1,.3,1) infinite }
|
|
57
|
+
.aui-f28-fly { animation: aui-f28-fly .7s cubic-bezier(.16,1,.3,1) }
|
|
58
|
+
@media (prefers-reduced-motion: reduce) {
|
|
59
|
+
.aui-f28-in, .aui-f28-bar, .aui-f28-beat, .aui-f28-fly { animation: none }
|
|
60
|
+
.aui-f28-ping { animation: none; opacity: 0 }
|
|
61
|
+
}
|
|
62
|
+
`;
|
|
63
|
+
function Mark() {
|
|
64
|
+
return /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-2 text-[15px] font-semibold tracking-[-0.03em] text-ink", children: [
|
|
65
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "grid h-7 w-7 place-items-center rounded-[8px] bg-ink text-paper", children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "h-3.5 w-3.5", fill: "none", stroke: "currentColor", strokeWidth: "1.9", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsx("path", { d: "M2.5 10.5 6 7l2.5 2.5L13.5 4.5" }) }) }),
|
|
66
|
+
"Astabyte"
|
|
67
|
+
] });
|
|
68
|
+
}
|
|
69
|
+
function scrollParent(el) {
|
|
70
|
+
for (let n = el?.parentElement; n; n = n.parentElement) {
|
|
71
|
+
const o = getComputedStyle(n).overflowY;
|
|
72
|
+
if ((o === "auto" || o === "scroll") && n.scrollHeight > n.clientHeight) return n;
|
|
73
|
+
}
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
var dayLabel = (daysAgo) => {
|
|
77
|
+
const d = /* @__PURE__ */ new Date();
|
|
78
|
+
d.setDate(d.getDate() - daysAgo);
|
|
79
|
+
return d.toLocaleDateString("en", { month: "short", day: "numeric" });
|
|
80
|
+
};
|
|
81
|
+
function StatusFooter({
|
|
82
|
+
brand = /* @__PURE__ */ jsx(Mark, {}),
|
|
83
|
+
tagline = "Deploy, observe and scale from one quiet dashboard.",
|
|
84
|
+
columns = DEFAULT_COLUMNS,
|
|
85
|
+
status = { label: "All systems normal", href: "#", live: true },
|
|
86
|
+
uptime = DEFAULT_UPTIME,
|
|
87
|
+
languages = DEFAULT_LANGUAGES,
|
|
88
|
+
language,
|
|
89
|
+
onLanguageChange,
|
|
90
|
+
onBackToTop,
|
|
91
|
+
legal,
|
|
92
|
+
className
|
|
93
|
+
}) {
|
|
94
|
+
const root = useRef(null);
|
|
95
|
+
const [own, setOwn] = useState(languages[0]?.value ?? "");
|
|
96
|
+
const [hover, setHover] = useState(null);
|
|
97
|
+
const [fly, setFly] = useState(0);
|
|
98
|
+
const langId = useId();
|
|
99
|
+
const lang = language ?? own;
|
|
100
|
+
const live = status.live ?? true;
|
|
101
|
+
const avg = uptime.length ? uptime.reduce((a, b) => a + b, 0) / uptime.length * 100 : 100;
|
|
102
|
+
const toTop = () => {
|
|
103
|
+
setFly((n) => n + 1);
|
|
104
|
+
if (onBackToTop) return onBackToTop();
|
|
105
|
+
const behavior = window.matchMedia("(prefers-reduced-motion: reduce)").matches ? "auto" : "smooth";
|
|
106
|
+
const box = scrollParent(root.current);
|
|
107
|
+
if (box) box.scrollTo({ top: 0, behavior });
|
|
108
|
+
else window.scrollTo({ top: 0, behavior });
|
|
109
|
+
};
|
|
110
|
+
const pill = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
111
|
+
/* @__PURE__ */ jsxs("span", { "aria-hidden": true, className: "relative flex h-2 w-2", children: [
|
|
112
|
+
live && /* @__PURE__ */ jsx("span", { className: "aui-f28-ping absolute inset-0 rounded-full bg-brand" }),
|
|
113
|
+
/* @__PURE__ */ jsx("span", { className: cx("relative h-2 w-2 rounded-full", live ? "aui-f28-beat bg-brand" : "bg-ink") })
|
|
114
|
+
] }),
|
|
115
|
+
status.label,
|
|
116
|
+
status.href && /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", "aria-hidden": true, className: cx("h-3 w-3 text-mute transition-transform duration-300 group-hover/st:translate-x-0.5", EASE), fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsx("path", { d: "m6 4 4 4-4 4" }) })
|
|
117
|
+
] });
|
|
118
|
+
const pillClass = cx("group/st inline-flex items-center gap-2 rounded-[6px] text-[13px] font-medium text-ink", ring);
|
|
119
|
+
const shown = hover ?? null;
|
|
120
|
+
return /* @__PURE__ */ jsxs("footer", { ref: root, className: cx("@container w-full bg-paper px-6 pb-6 pt-12 @min-[720px]:px-10", className), children: [
|
|
121
|
+
/* @__PURE__ */ jsxs("div", { className: "grid gap-10 @min-[640px]:grid-cols-[minmax(0,1fr)_minmax(0,1.3fr)] @min-[640px]:gap-10", children: [
|
|
122
|
+
/* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-col items-start", children: [
|
|
123
|
+
/* @__PURE__ */ jsx("div", { className: "aui-f28-in", style: step(0), children: brand }),
|
|
124
|
+
/* @__PURE__ */ jsx("p", { className: "aui-f28-in mt-4 max-w-[30ch] text-[14px] leading-relaxed text-mute", style: step(1), children: tagline }),
|
|
125
|
+
/* @__PURE__ */ jsxs(
|
|
126
|
+
"div",
|
|
127
|
+
{
|
|
128
|
+
className: "aui-f28-in mt-6 w-full max-w-[340px] rounded-[12px] bg-paper p-4 shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent),0_1px_2px_rgb(0_0_0/0.04),0_14px_32px_-20px_rgb(0_0_0/0.25)]",
|
|
129
|
+
style: step(2),
|
|
130
|
+
children: [
|
|
131
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-3", children: [
|
|
132
|
+
status.href ? /* @__PURE__ */ jsx("a", { href: status.href, className: pillClass, children: pill }) : /* @__PURE__ */ jsx("span", { role: "status", className: pillClass, children: pill }),
|
|
133
|
+
/* @__PURE__ */ jsxs("span", { className: "font-mono text-[11px] tabular-nums text-mute", children: [
|
|
134
|
+
avg.toFixed(2),
|
|
135
|
+
"%"
|
|
136
|
+
] })
|
|
137
|
+
] }),
|
|
138
|
+
/* @__PURE__ */ jsxs("div", { className: "relative mt-4", onPointerLeave: () => setHover(null), children: [
|
|
139
|
+
/* @__PURE__ */ jsx("div", { "aria-hidden": true, className: "flex h-7 items-end gap-[2px]", children: uptime.map((v, i) => /* @__PURE__ */ jsx(
|
|
140
|
+
"span",
|
|
141
|
+
{
|
|
142
|
+
onPointerEnter: () => setHover(i),
|
|
143
|
+
className: cx(
|
|
144
|
+
"aui-f28-bar h-full flex-1 rounded-[2px] transition-opacity duration-200",
|
|
145
|
+
v >= 1 ? "bg-brand" : "bg-ink/35",
|
|
146
|
+
shown !== null && shown !== i && "opacity-40"
|
|
147
|
+
),
|
|
148
|
+
style: step(i)
|
|
149
|
+
},
|
|
150
|
+
i
|
|
151
|
+
)) }),
|
|
152
|
+
/* @__PURE__ */ jsxs("p", { className: "sr-only", children: [
|
|
153
|
+
avg.toFixed(2),
|
|
154
|
+
"% uptime over the last ",
|
|
155
|
+
uptime.length,
|
|
156
|
+
" days"
|
|
157
|
+
] }),
|
|
158
|
+
/* @__PURE__ */ jsxs("div", { "aria-hidden": true, className: "mt-2 flex justify-between font-mono text-[10.5px] text-mute", children: [
|
|
159
|
+
/* @__PURE__ */ jsxs("span", { className: cx("transition-opacity duration-200", shown !== null && "opacity-0"), children: [
|
|
160
|
+
uptime.length,
|
|
161
|
+
" days ago"
|
|
162
|
+
] }),
|
|
163
|
+
/* @__PURE__ */ jsx(
|
|
164
|
+
"span",
|
|
165
|
+
{
|
|
166
|
+
className: cx(
|
|
167
|
+
"absolute left-1/2 -translate-x-1/2 text-ink transition-[opacity,transform] duration-300",
|
|
168
|
+
EASE,
|
|
169
|
+
shown !== null ? "translate-y-0 opacity-100" : "translate-y-1 opacity-0"
|
|
170
|
+
),
|
|
171
|
+
children: shown !== null && `${dayLabel(uptime.length - 1 - shown)} \xB7 ${uptime[shown] >= 1 ? "No incidents" : `${(uptime[shown] * 100).toFixed(1)}% up`}`
|
|
172
|
+
}
|
|
173
|
+
),
|
|
174
|
+
/* @__PURE__ */ jsx("span", { className: cx("transition-opacity duration-200", shown !== null && "opacity-0"), children: "Today" })
|
|
175
|
+
] })
|
|
176
|
+
] })
|
|
177
|
+
]
|
|
178
|
+
}
|
|
179
|
+
)
|
|
180
|
+
] }),
|
|
181
|
+
/* @__PURE__ */ jsx("nav", { "aria-label": "Footer", className: "grid grid-cols-2 gap-x-6 gap-y-8 @min-[460px]:grid-cols-3", children: columns.map((c, ci) => /* @__PURE__ */ jsxs("div", { className: "aui-f28-in", style: step(2 + ci), children: [
|
|
182
|
+
/* @__PURE__ */ jsx("p", { className: "font-mono text-[11px] uppercase tracking-[0.08em] text-mute", children: c.heading }),
|
|
183
|
+
/* @__PURE__ */ jsx("ul", { className: "mt-4 flex flex-col gap-2.5", children: c.links.map((l) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx("a", { href: l.href, className: cx("inline-block rounded-[4px] text-[13.5px] text-ink-2 transition-[color,transform] duration-300 hover:translate-x-0.5 hover:text-ink motion-reduce:hover:translate-x-0", EASE, ring), children: l.label }) }, l.label)) })
|
|
184
|
+
] }, c.heading)) })
|
|
185
|
+
] }),
|
|
186
|
+
/* @__PURE__ */ jsxs("div", { className: "aui-f28-in mt-12 flex flex-col-reverse gap-4 @min-[600px]:flex-row @min-[600px]:items-center @min-[600px]:justify-between", style: step(6), children: [
|
|
187
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-x-5 gap-y-1.5 text-[12px] text-mute", children: legal ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
188
|
+
/* @__PURE__ */ jsxs("span", { children: [
|
|
189
|
+
"\xA9 ",
|
|
190
|
+
(/* @__PURE__ */ new Date()).getFullYear(),
|
|
191
|
+
" Astabyte"
|
|
192
|
+
] }),
|
|
193
|
+
/* @__PURE__ */ jsx("a", { href: "#", className: cx("rounded-[4px] transition-colors hover:text-ink", ring), children: "Privacy" }),
|
|
194
|
+
/* @__PURE__ */ jsx("a", { href: "#", className: cx("rounded-[4px] transition-colors hover:text-ink", ring), children: "Terms" }),
|
|
195
|
+
/* @__PURE__ */ jsx("a", { href: "#", className: cx("rounded-[4px] transition-colors hover:text-ink", ring), children: "DPA" })
|
|
196
|
+
] }) }),
|
|
197
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
198
|
+
/* @__PURE__ */ jsxs("div", { className: "relative min-w-0 flex-1 @min-[600px]:flex-none", children: [
|
|
199
|
+
/* @__PURE__ */ jsx("label", { htmlFor: langId, className: "sr-only", children: "Language" }),
|
|
200
|
+
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0 16 16", "aria-hidden": true, className: "pointer-events-none absolute left-2.5 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-mute", fill: "none", stroke: "currentColor", strokeWidth: "1.4", children: [
|
|
201
|
+
/* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "5.8" }),
|
|
202
|
+
/* @__PURE__ */ jsx("path", { d: "M2.2 8h11.6M8 2.2c1.7 1.6 2.5 3.5 2.5 5.8S9.7 12.2 8 13.8M8 2.2C6.3 3.8 5.5 5.7 5.5 8s.8 4.2 2.5 5.8" })
|
|
203
|
+
] }),
|
|
204
|
+
/* @__PURE__ */ jsx(
|
|
205
|
+
"select",
|
|
206
|
+
{
|
|
207
|
+
id: langId,
|
|
208
|
+
value: lang,
|
|
209
|
+
onChange: (e) => {
|
|
210
|
+
setOwn(e.target.value);
|
|
211
|
+
onLanguageChange?.(e.target.value);
|
|
212
|
+
},
|
|
213
|
+
className: cx("h-9 w-full cursor-pointer appearance-none rounded-[8px] bg-paper-2 pl-8 pr-8 text-[12.5px] text-ink transition-shadow duration-300 hover:shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_14%,transparent)]", ring),
|
|
214
|
+
children: languages.map((l) => /* @__PURE__ */ jsx("option", { value: l.value, children: l.label }, l.value))
|
|
215
|
+
}
|
|
216
|
+
),
|
|
217
|
+
/* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", "aria-hidden": true, className: "pointer-events-none absolute right-2.5 top-1/2 h-3 w-3 -translate-y-1/2 text-mute", fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsx("path", { d: "m4 6 4 4 4-4" }) })
|
|
218
|
+
] }),
|
|
219
|
+
/* @__PURE__ */ jsxs(
|
|
220
|
+
"button",
|
|
221
|
+
{
|
|
222
|
+
type: "button",
|
|
223
|
+
onClick: toTop,
|
|
224
|
+
className: cx(
|
|
225
|
+
"group/top inline-flex h-9 shrink-0 items-center whitespace-nowrap gap-2 rounded-[8px] bg-ink pl-3 pr-3.5 text-[12.5px] font-medium text-paper transition-transform duration-300 hover:-translate-y-px active:scale-[.96] motion-reduce:transition-none",
|
|
226
|
+
EASE,
|
|
227
|
+
ring
|
|
228
|
+
),
|
|
229
|
+
children: [
|
|
230
|
+
/* @__PURE__ */ jsx("span", { className: "relative grid h-3.5 w-3.5 place-items-center overflow-hidden", children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", "aria-hidden": true, className: cx("h-3.5 w-3.5", fly > 0 && "aui-f28-fly"), fill: "none", stroke: "currentColor", strokeWidth: "1.9", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsx("path", { d: "M8 13V3M4 7l4-4 4 4" }) }, fly) }),
|
|
231
|
+
"Back to top"
|
|
232
|
+
]
|
|
233
|
+
}
|
|
234
|
+
)
|
|
235
|
+
] })
|
|
236
|
+
] }),
|
|
237
|
+
/* @__PURE__ */ jsx("style", { href: "asta-footer-aui-028", precedence: "asta", children: CSS })
|
|
238
|
+
] });
|
|
239
|
+
}
|
|
240
|
+
var footer_aui_028_default = StatusFooter;
|
|
241
|
+
|
|
242
|
+
export {
|
|
243
|
+
StatusFooter,
|
|
244
|
+
footer_aui_028_default
|
|
245
|
+
};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// components/kit/pagination.tsx
|
|
4
|
+
import { useLayoutEffect, useRef, useState } from "react";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
var cx = (...c) => c.filter(Boolean).join(" ");
|
|
7
|
+
function pageRange(page, count, siblings = 1, boundaries = 1) {
|
|
8
|
+
const total = boundaries * 2 + siblings * 2 + 3;
|
|
9
|
+
const range = (a, b) => Array.from({ length: Math.max(0, b - a + 1) }, (_, i) => a + i);
|
|
10
|
+
if (count <= total) return range(1, count);
|
|
11
|
+
const left = Math.max(page - siblings, boundaries + 2);
|
|
12
|
+
const right = Math.min(page + siblings, count - boundaries - 1);
|
|
13
|
+
const showStart = left > boundaries + 2;
|
|
14
|
+
const showEnd = right < count - boundaries - 1;
|
|
15
|
+
const head = range(1, boundaries);
|
|
16
|
+
const tail = range(count - boundaries + 1, count);
|
|
17
|
+
if (!showStart) return [...range(1, total - boundaries - 1), "end-gap", ...tail];
|
|
18
|
+
if (!showEnd) return [...head, "start-gap", ...range(count - (total - boundaries - 2), count)];
|
|
19
|
+
return [...head, "start-gap", ...range(left, right), "end-gap", ...tail];
|
|
20
|
+
}
|
|
21
|
+
var Arrow = ({ dir }) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "h-4 w-4", fill: "none", stroke: "currentColor", strokeWidth: "1.6", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: dir === 1 ? "m6 3.5 4.5 4.5L6 12.5" : "M10 3.5 5.5 8l4.5 4.5" }) });
|
|
22
|
+
function Pagination({ count, page, defaultPage = 1, onPageChange, siblings = 1, boundaries = 1, size = "md", label = "Pagination", className }) {
|
|
23
|
+
const [inner, setInner] = useState(defaultPage);
|
|
24
|
+
const pages = Math.max(1, count);
|
|
25
|
+
const current = Math.min(pages, Math.max(1, page ?? inner));
|
|
26
|
+
const list = useRef(null);
|
|
27
|
+
const marker = useRef(null);
|
|
28
|
+
const placed = useRef(false);
|
|
29
|
+
const go = (n) => {
|
|
30
|
+
const next = Math.min(pages, Math.max(1, n));
|
|
31
|
+
if (next === current) return;
|
|
32
|
+
if (page === void 0) setInner(next);
|
|
33
|
+
onPageChange?.(next);
|
|
34
|
+
};
|
|
35
|
+
const slots = pageRange(current, pages, siblings, boundaries);
|
|
36
|
+
const place = (animate) => {
|
|
37
|
+
const btn2 = list.current?.querySelector("[aria-current=page]");
|
|
38
|
+
const m = marker.current;
|
|
39
|
+
if (!btn2 || !m) return;
|
|
40
|
+
m.style.transition = animate && placed.current ? "" : "none";
|
|
41
|
+
m.style.width = `${btn2.offsetWidth}px`;
|
|
42
|
+
m.style.transform = `translateX(${btn2.offsetLeft}px)`;
|
|
43
|
+
m.style.opacity = "1";
|
|
44
|
+
placed.current = true;
|
|
45
|
+
};
|
|
46
|
+
const placeRef = useRef(place);
|
|
47
|
+
useLayoutEffect(() => {
|
|
48
|
+
placeRef.current = place;
|
|
49
|
+
place(true);
|
|
50
|
+
});
|
|
51
|
+
useLayoutEffect(() => {
|
|
52
|
+
let first = true;
|
|
53
|
+
const ro = new ResizeObserver(() => {
|
|
54
|
+
if (first) first = false;
|
|
55
|
+
else placeRef.current(false);
|
|
56
|
+
});
|
|
57
|
+
if (list.current) ro.observe(list.current);
|
|
58
|
+
return () => ro.disconnect();
|
|
59
|
+
}, []);
|
|
60
|
+
const h = size === "md" ? "h-9 min-w-9 text-[13.5px]" : "h-8 min-w-8 text-[13px]";
|
|
61
|
+
const btn = cx("relative flex items-center justify-center rounded-lg px-2 tabular-nums outline-none transition-colors duration-200 focus-visible:ring-2 focus-visible:ring-brand/50", h);
|
|
62
|
+
return /* @__PURE__ */ jsxs(
|
|
63
|
+
"nav",
|
|
64
|
+
{
|
|
65
|
+
"aria-label": label,
|
|
66
|
+
className: cx("flex items-center gap-1", className),
|
|
67
|
+
onKeyDown: (e) => {
|
|
68
|
+
if (e.key === "ArrowLeft") go(current - 1);
|
|
69
|
+
else if (e.key === "ArrowRight") go(current + 1);
|
|
70
|
+
else return;
|
|
71
|
+
e.preventDefault();
|
|
72
|
+
requestAnimationFrame(() => list.current?.querySelector("[aria-current=page]")?.focus());
|
|
73
|
+
},
|
|
74
|
+
children: [
|
|
75
|
+
/* @__PURE__ */ jsx("button", { type: "button", onClick: () => go(current - 1), disabled: current === 1, "aria-label": "Previous page", className: cx(btn, "text-ink-2 hover:bg-paper-2 hover:text-ink disabled:pointer-events-none disabled:opacity-35"), children: /* @__PURE__ */ jsx(Arrow, { dir: -1 }) }),
|
|
76
|
+
/* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
77
|
+
/* @__PURE__ */ jsx(
|
|
78
|
+
"span",
|
|
79
|
+
{
|
|
80
|
+
ref: marker,
|
|
81
|
+
"aria-hidden": true,
|
|
82
|
+
className: cx("pointer-events-none absolute left-0 top-0 rounded-lg bg-[color-mix(in_srgb,var(--brand)_11%,transparent)] opacity-0 transition-transform duration-[420ms] ease-[cubic-bezier(.16,1,.3,1)] motion-reduce:!transition-none", size === "md" ? "h-9" : "h-8")
|
|
83
|
+
}
|
|
84
|
+
),
|
|
85
|
+
/* @__PURE__ */ jsx("ul", { ref: list, className: "flex items-center gap-1", children: slots.map(
|
|
86
|
+
(s) => typeof s === "number" ? /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
87
|
+
"button",
|
|
88
|
+
{
|
|
89
|
+
type: "button",
|
|
90
|
+
onClick: () => go(s),
|
|
91
|
+
"aria-current": s === current ? "page" : void 0,
|
|
92
|
+
"aria-label": `Page ${s}`,
|
|
93
|
+
className: cx(btn, s === current ? "font-medium text-brand" : "text-ink-2 hover:bg-paper-2 hover:text-ink"),
|
|
94
|
+
children: s
|
|
95
|
+
}
|
|
96
|
+
) }, s) : /* @__PURE__ */ jsx("li", { "aria-hidden": true, className: cx("flex items-center justify-center text-mute", h), children: "\u2026" }, s)
|
|
97
|
+
) })
|
|
98
|
+
] }),
|
|
99
|
+
/* @__PURE__ */ jsx("button", { type: "button", onClick: () => go(current + 1), disabled: current === pages, "aria-label": "Next page", className: cx(btn, "text-ink-2 hover:bg-paper-2 hover:text-ink disabled:pointer-events-none disabled:opacity-35"), children: /* @__PURE__ */ jsx(Arrow, { dir: 1 }) })
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
var pagination_default = Pagination;
|
|
105
|
+
|
|
106
|
+
export {
|
|
107
|
+
pageRange,
|
|
108
|
+
Pagination,
|
|
109
|
+
pagination_default
|
|
110
|
+
};
|