asta-ui 0.9.7 → 0.9.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/asta-ui.mjs +43 -7
- package/css/asta.css +2 -2
- package/css/asta.js +192 -45
- package/css/components.css +92 -81
- package/css/runtime/agent.js +31 -10
- package/css/runtime/assist.js +0 -1
- package/css/runtime/blocks.js +15 -3
- package/css/runtime/core.js +3 -3
- package/css/runtime/forms.js +2 -2
- package/css/runtime/modules.js +30 -9
- package/css/runtime/overlays.js +110 -16
- package/css/src/assist.css +4 -4
- package/css/src/blocks.css +12 -12
- package/css/src/controls.css +3 -3
- package/css/src/core.css +23 -23
- package/css/src/data.css +10 -10
- package/css/src/display.css +5 -5
- package/css/src/forms.css +3 -3
- package/css/src/overlays.css +32 -21
- package/css/tokens.css +3 -0
- package/dist/accordion.js +1 -1
- package/dist/add-to-cart.js +2 -1
- package/dist/agent-plan.js +1 -1
- package/dist/agent-team.js +1 -1
- package/dist/ai-chat.js +1 -1
- package/dist/alert.js +1 -1
- package/dist/announcement-bar.js +1 -1
- package/dist/api-keys.js +2 -2
- package/dist/autonomy-dial.js +2 -1
- package/dist/avatar-group.js +2 -2
- package/dist/avatar.js +1 -1
- package/dist/badge.js +1 -1
- package/dist/base/accordion.js +1 -1
- package/dist/base/add-to-cart.js +2 -1
- package/dist/base/agent-plan.js +1 -1
- package/dist/base/agent-team.js +1 -1
- package/dist/base/ai-chat.js +1 -1
- package/dist/base/alert.js +1 -1
- package/dist/base/announcement-bar.js +1 -1
- package/dist/base/api-keys.js +2 -2
- package/dist/base/autonomy-dial.js +2 -1
- package/dist/base/avatar-group.js +2 -2
- package/dist/base/avatar.js +1 -1
- package/dist/base/badge.js +1 -1
- package/dist/base/billing.js +3 -3
- package/dist/base/booking-slots.js +2 -1
- package/dist/base/breadcrumb.js +1 -1
- package/dist/base/button-aui-064.d.ts +2 -0
- package/dist/base/button-aui-064.js +11 -0
- package/dist/base/button-aui-065.d.ts +2 -0
- package/dist/base/button-aui-065.js +9 -0
- package/dist/base/button-aui-066.d.ts +2 -0
- package/dist/base/button-aui-066.js +11 -0
- package/dist/base/button-aui-067.d.ts +2 -0
- package/dist/base/button-aui-067.js +9 -0
- package/dist/base/button-aui-068.d.ts +2 -0
- package/dist/base/button-aui-068.js +9 -0
- package/dist/base/button.js +1 -1
- package/dist/base/candlestick.js +1 -1
- package/dist/base/card-checkout.js +2 -1
- package/dist/base/carousel.js +1 -1
- package/dist/base/cart-drawer.js +2 -1
- package/dist/base/change-ledger.js +2 -1
- package/dist/base/chart-card.js +1 -1
- package/dist/base/chat-thread.js +2 -1
- package/dist/base/checkbox-aui-052.js +1 -1
- package/dist/base/checkbox-aui-053.js +1 -1
- package/dist/base/checkbox-aui-054.js +1 -1
- package/dist/base/checkbox.js +1 -1
- package/dist/base/checkout.js +3 -4
- package/dist/base/citations.js +1 -1
- package/dist/base/combobox-aui-046.js +1 -1
- package/dist/base/combobox-aui-047.js +1 -1
- package/dist/base/combobox.js +1 -1
- package/dist/base/command-palette.js +1 -1
- package/dist/base/comments.js +3 -3
- package/dist/base/context-menu.js +1 -1
- package/dist/base/context-meter.js +2 -2
- package/dist/base/cookie-consent.js +2 -2
- package/dist/base/copy-button.js +1 -1
- package/dist/base/data-table.js +1 -1
- package/dist/base/date-picker-aui-050.js +1 -1
- package/dist/base/date-picker-aui-051.js +1 -1
- package/dist/base/date-picker.js +1 -1
- package/dist/base/dialog.js +1 -1
- package/dist/base/drawer.js +1 -1
- package/dist/base/dropdown-menu.js +2 -2
- package/dist/base/elastic-string.js +2 -1
- package/dist/base/empty-state.js +2 -2
- package/dist/base/event-calendar.js +1 -1
- package/dist/base/fallback-chain.js +1 -1
- package/dist/base/field.js +1 -1
- package/dist/base/file-card.js +1 -1
- package/dist/base/file-manager.js +7 -7
- package/dist/base/file-upload.js +1 -1
- package/dist/base/flash-sale.js +1 -1
- package/dist/base/footer-aui-026.js +1 -1
- package/dist/base/footer-aui-027.js +1 -1
- package/dist/base/footer-aui-028.js +1 -1
- package/dist/base/footer.js +2 -2
- package/dist/base/gravity-pills.js +1 -1
- package/dist/base/hold-to-confirm.js +1 -1
- package/dist/base/image-compare.js +1 -1
- package/dist/base/inbox.js +3 -3
- package/dist/base/ink-trail.js +2 -1
- package/dist/base/inline-edit.js +1 -1
- package/dist/base/input-aui-029.js +1 -1
- package/dist/base/input-aui-030.js +1 -1
- package/dist/base/input-aui-031.js +1 -1
- package/dist/base/input-aui-032.js +1 -1
- package/dist/base/input-aui-033.js +1 -1
- package/dist/base/input.js +1 -1
- package/dist/base/invoice.js +2 -2
- package/dist/base/kanban.js +2 -2
- package/dist/base/menubar.js +1 -1
- package/dist/base/meter.js +1 -1
- package/dist/base/model-picker.js +1 -1
- package/dist/base/motion-button.js +1 -1
- package/dist/base/navbar-aui-009.js +1 -1
- package/dist/base/navbar-aui-010.js +1 -1
- package/dist/base/navbar-aui-011.js +1 -1
- package/dist/base/navbar-aui-012.js +1 -1
- package/dist/base/navbar-aui-013.js +1 -1
- package/dist/base/navbar-aui-014.js +1 -1
- package/dist/base/navbar.js +2 -2
- package/dist/base/needle-field.js +1 -1
- package/dist/base/notification-center.js +3 -3
- package/dist/base/notification-stack.js +2 -1
- package/dist/base/now-playing.js +2 -1
- package/dist/base/number-input.js +1 -1
- package/dist/base/onboarding.js +2 -2
- package/dist/base/otp-input-aui-041.js +1 -1
- package/dist/base/otp-input-aui-042.js +1 -1
- package/dist/base/pagination.js +1 -1
- package/dist/base/password-input-aui-040.js +1 -1
- package/dist/base/password-input.js +1 -1
- package/dist/base/pay-methods.js +2 -1
- package/dist/base/payment-received.js +2 -1
- package/dist/base/payment-status.js +2 -1
- package/dist/base/phone-input.js +1 -1
- package/dist/base/pixel-reveal.js +1 -1
- package/dist/base/plan-switcher.js +2 -1
- package/dist/base/popover.js +1 -1
- package/dist/base/price-alert.js +1 -1
- package/dist/base/price-chart.js +2 -1
- package/dist/base/pricing-aui-021.js +1 -1
- package/dist/base/pricing-aui-022.js +1 -1
- package/dist/base/pricing-aui-023.js +1 -1
- package/dist/base/pricing-aui-024.js +1 -1
- package/dist/base/pricing.js +2 -2
- package/dist/base/prompt-composer.js +1 -1
- package/dist/base/properties-panel.js +1 -1
- package/dist/base/radio-group-aui-055.js +1 -1
- package/dist/base/radio-group-aui-056.js +1 -1
- package/dist/base/radio-group-aui-057.js +1 -1
- package/dist/base/radio-group.js +1 -1
- package/dist/base/range-slider.js +1 -1
- package/dist/base/rating.js +1 -1
- package/dist/base/scramble-text.js +1 -1
- package/dist/base/scrub-input.js +1 -1
- package/dist/base/seat-picker.js +2 -1
- package/dist/base/segmented-control.js +1 -1
- package/dist/base/select-aui-043.js +1 -1
- package/dist/base/select-aui-044.js +1 -1
- package/dist/base/select-aui-045.js +1 -1
- package/dist/base/select.js +1 -1
- package/dist/base/settings-panel.js +2 -2
- package/dist/base/shipment-tracker.js +2 -1
- package/dist/base/sidebar.js +2 -2
- package/dist/base/sign-in-aui-015.js +1 -1
- package/dist/base/sign-in-aui-016.js +1 -1
- package/dist/base/sign-in-aui-017.js +1 -1
- package/dist/base/sign-in-aui-018.js +1 -1
- package/dist/base/sign-in-aui-019.js +1 -1
- package/dist/base/sign-in-aui-020.js +1 -1
- package/dist/base/sign-in.js +2 -2
- package/dist/base/skeleton.js +1 -1
- package/dist/base/slider-aui-062.js +1 -1
- package/dist/base/slider-aui-063.js +1 -1
- package/dist/base/slider.js +1 -1
- package/dist/base/snap-grid.js +1 -1
- package/dist/base/sortable-list.js +1 -1
- package/dist/base/spinner.js +1 -1
- package/dist/base/split-bill.js +1 -1
- package/dist/base/split-flap.js +2 -1
- package/dist/base/stat-card.js +1 -1
- package/dist/base/stepper.js +1 -1
- package/dist/base/switch-aui-058.js +1 -1
- package/dist/base/switch-aui-059.js +1 -1
- package/dist/base/switch-aui-060.js +1 -1
- package/dist/base/tabs.js +1 -1
- package/dist/base/tag-input-aui-048.js +1 -1
- package/dist/base/tag-input-aui-049.js +1 -1
- package/dist/base/tag-input.js +1 -1
- package/dist/base/team-members.js +4 -4
- package/dist/base/testimonials.js +2 -2
- package/dist/base/textarea-aui-002.js +1 -1
- package/dist/base/textarea-aui-003.js +1 -1
- package/dist/base/textarea-aui-005.js +1 -1
- package/dist/base/textarea-aui-006.js +1 -1
- package/dist/base/textarea-aui-007.js +1 -1
- package/dist/base/textarea-aui-008.js +1 -1
- package/dist/base/textarea-aui-036.js +1 -1
- package/dist/base/textarea-aui-037.js +1 -1
- package/dist/base/textarea-aui-038.js +1 -1
- package/dist/base/textarea.js +1 -1
- package/dist/base/thinking.js +1 -1
- package/dist/base/toast.js +1 -1
- package/dist/base/token-swap.js +2 -1
- package/dist/base/tool-approval.js +1 -1
- package/dist/base/tool-dock.js +1 -1
- package/dist/base/trace-waterfall.js +1 -1
- package/dist/base/trade-ticket.js +2 -1
- package/dist/base/tree-view.js +1 -1
- package/dist/base/variant-picker.js +2 -1
- package/dist/base/watchlist.js +1 -1
- package/dist/base/wishlist.js +2 -1
- package/dist/base/workspace-switcher.js +1 -1
- package/dist/base.js +227 -192
- package/dist/billing.js +3 -3
- package/dist/booking-slots.js +2 -1
- package/dist/breadcrumb.js +1 -1
- package/dist/button-aui-064.d.ts +2 -0
- package/dist/button-aui-064.js +11 -0
- package/dist/button-aui-065.d.ts +2 -0
- package/dist/button-aui-065.js +9 -0
- package/dist/button-aui-066.d.ts +2 -0
- package/dist/button-aui-066.js +11 -0
- package/dist/button-aui-067.d.ts +2 -0
- package/dist/button-aui-067.js +9 -0
- package/dist/button-aui-068.d.ts +2 -0
- package/dist/button-aui-068.js +9 -0
- package/dist/button.js +1 -1
- package/dist/candlestick.js +1 -1
- package/dist/card-checkout.js +2 -1
- package/dist/carousel.js +1 -1
- package/dist/cart-drawer.js +2 -1
- package/dist/change-ledger.js +2 -1
- package/dist/chart-card.js +1 -1
- package/dist/chat-thread.js +2 -1
- package/dist/checkbox-aui-052.js +1 -1
- package/dist/checkbox-aui-053.js +1 -1
- package/dist/checkbox-aui-054.js +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/checkout.js +3 -4
- package/dist/{chunk-2F5CE6ZB.js → chunk-27W3F7NE.js} +7 -6
- package/dist/{chunk-TLODJONC.js → chunk-2DA4SEGX.js} +3 -3
- package/dist/{chunk-EKPTPTKK.js → chunk-2DECQKLI.js} +2 -2
- package/dist/chunk-2GLBURQR.js +85 -0
- package/dist/{chunk-YRPLUNP4.js → chunk-2H25OHYS.js} +18 -14
- package/dist/{chunk-VTTXURIB.js → chunk-32GWAA4A.js} +4 -3
- package/dist/{chunk-QASSYLQQ.js → chunk-3AJ4EBSV.js} +6 -5
- package/dist/{chunk-H4NFBYKY.js → chunk-3G2L5A4O.js} +8 -2
- package/dist/{chunk-OKCSTMX3.js → chunk-3LJ72YR4.js} +4 -1
- package/dist/{chunk-LOHFV5JF.js → chunk-3MH5O4HX.js} +7 -7
- package/dist/{chunk-ECGJ6D5D.js → chunk-3N7SRANH.js} +9 -5
- package/dist/{chunk-6RA7LJ3K.js → chunk-3OCWR4L3.js} +13 -8
- package/dist/{chunk-57PESBSZ.js → chunk-3PSV752Q.js} +1 -1
- package/dist/{chunk-QJXVIEB5.js → chunk-3QC5SYGC.js} +5 -5
- package/dist/{chunk-UJYZZSII.js → chunk-4ATDGYSC.js} +13 -9
- package/dist/{chunk-3UQIYJTI.js → chunk-4EX6JZ7C.js} +11 -4
- package/dist/{chunk-XYQI4ZYV.js → chunk-4GWJFDSU.js} +1 -1
- package/dist/{chunk-5OHHGQV6.js → chunk-4IPMVLH7.js} +4 -4
- package/dist/{chunk-JLCSRNI2.js → chunk-4MBIQUM2.js} +7 -7
- package/dist/{chunk-NIYIT2QU.js → chunk-4N2KNDOB.js} +3 -3
- package/dist/{chunk-SDOWCCM2.js → chunk-4P6EPSHA.js} +12 -7
- package/dist/{chunk-MDB4RFMV.js → chunk-4YF2XZY5.js} +6 -6
- package/dist/{chunk-7MBTBYTJ.js → chunk-56PRVZWW.js} +6 -6
- package/dist/{chunk-YJAZHJY3.js → chunk-56VKEODT.js} +1 -1
- package/dist/{chunk-3RMCFFW2.js → chunk-5CAZEFDX.js} +8 -8
- package/dist/{chunk-5DLY6FGD.js → chunk-5EYHX66O.js} +18 -9
- package/dist/{chunk-NZRQL3SA.js → chunk-5JLFPVXB.js} +6 -3
- package/dist/{chunk-UOOGRGEC.js → chunk-5SK7NMOG.js} +2 -1
- package/dist/{chunk-W5M3EHJL.js → chunk-5UARATD2.js} +12 -9
- package/dist/{chunk-Z2DF2YL5.js → chunk-5WVRC4BW.js} +1 -1
- package/dist/{chunk-ZWBJUJTR.js → chunk-5ZQ6PMJT.js} +2 -2
- package/dist/{chunk-6MPEI6V5.js → chunk-67BNR73B.js} +5 -5
- package/dist/{chunk-EN6XBXW5.js → chunk-6ZGHPBHD.js} +3 -2
- package/dist/{chunk-C2G5BUEG.js → chunk-74WYX24P.js} +23 -14
- package/dist/{chunk-PZ2ZUHC3.js → chunk-76NMSRFH.js} +19 -6
- package/dist/{chunk-FLCT7THQ.js → chunk-7AN76PIT.js} +2 -2
- package/dist/chunk-7DQJUZFY.js +139 -0
- package/dist/{chunk-77RFV2MG.js → chunk-7GUFM5QQ.js} +16 -11
- package/dist/{chunk-5RPJPL2V.js → chunk-7HI4HJFN.js} +62 -26
- package/dist/{chunk-IVCHYE55.js → chunk-7IOMROVG.js} +13 -8
- package/dist/{chunk-DU3CZ3K7.js → chunk-7RECQQQP.js} +19 -5
- package/dist/{chunk-UX6CWJT7.js → chunk-7TCU6IJX.js} +1 -1
- package/dist/{chunk-N3X4T5OR.js → chunk-A4CMX7CD.js} +26 -17
- package/dist/{chunk-ITGWD7ZY.js → chunk-A7TELQOW.js} +3 -3
- package/dist/{chunk-RQNXELUL.js → chunk-AAE4SLAV.js} +5 -2
- package/dist/{chunk-LDTCIVDX.js → chunk-AF2WLL3H.js} +2 -2
- package/dist/{chunk-YNPG4WOS.js → chunk-AIUW7VNA.js} +8 -5
- package/dist/{chunk-U6N7CZYN.js → chunk-AM63372L.js} +3 -3
- package/dist/{chunk-OBU2UOYI.js → chunk-B2GAISZU.js} +2 -3
- package/dist/{chunk-JX7V6EFT.js → chunk-B2SLXW63.js} +19 -15
- package/dist/{chunk-ZZ25XSK2.js → chunk-B3WWWKHW.js} +2 -1
- package/dist/{chunk-FFRJW5O7.js → chunk-B6KIW23F.js} +6 -5
- package/dist/{chunk-2LM3VHNO.js → chunk-BBILYMCF.js} +8 -4
- package/dist/{chunk-BIYNJDPD.js → chunk-BLZYUAE7.js} +6 -3
- package/dist/{chunk-CSTI5CTF.js → chunk-BNODQM6D.js} +14 -8
- package/dist/{chunk-TMOEFAXQ.js → chunk-BQL7HJSV.js} +27 -4
- package/dist/{chunk-FOJRZASV.js → chunk-BWAOBM2E.js} +32 -8
- package/dist/chunk-C5NGITT4.js +90 -0
- package/dist/{chunk-W2S6JDBM.js → chunk-CGMVTIMW.js} +13 -13
- package/dist/{chunk-DWA62IYV.js → chunk-CZKYSTF5.js} +7 -4
- package/dist/{chunk-EXX6YSUX.js → chunk-D3GC3QHM.js} +8 -6
- package/dist/{chunk-LKRE4HLZ.js → chunk-DAWISPMI.js} +84 -39
- package/dist/{chunk-SCQ6A4ZG.js → chunk-DSMKE64O.js} +10 -3
- package/dist/{chunk-OXLBH4QM.js → chunk-DXFIPXJJ.js} +6 -3
- package/dist/{chunk-RFVKRVTD.js → chunk-DY5Z45NW.js} +7 -4
- package/dist/{chunk-MAKFUH34.js → chunk-E6HAVXWS.js} +32 -18
- package/dist/{chunk-CZCZB5YP.js → chunk-E7Q7EP4K.js} +1 -1
- package/dist/{chunk-4YNUJFTL.js → chunk-EHBCXGBF.js} +7 -7
- package/dist/{chunk-Y4JOW2UW.js → chunk-EQVJUIF4.js} +14 -10
- package/dist/{chunk-PIXHOFUT.js → chunk-ET4NNKVK.js} +18 -11
- package/dist/{chunk-R3LWG23K.js → chunk-FC54ZZOS.js} +9 -14
- package/dist/{chunk-NPVUFQGC.js → chunk-FDI2X6DY.js} +1 -1
- package/dist/{chunk-F4CWSZXK.js → chunk-FEQPNCG7.js} +9 -6
- package/dist/{chunk-JNNMKFEQ.js → chunk-FGN7KDKD.js} +1 -1
- package/dist/{chunk-KEMMI76V.js → chunk-FJNJ2TLR.js} +2 -3
- package/dist/{chunk-Q5A5OTLI.js → chunk-FOHY7LPU.js} +1 -1
- package/dist/chunk-FS2PZKJY.js +43 -0
- package/dist/{chunk-BEV2X4YL.js → chunk-FZ3GCVH2.js} +53 -12
- package/dist/{chunk-D6LGKFZH.js → chunk-G23AGEY4.js} +1 -1
- package/dist/{chunk-SUWA7DM6.js → chunk-GPGIY2ZG.js} +8 -7
- package/dist/{chunk-EAHHWF3V.js → chunk-GQZPSVLB.js} +144 -46
- package/dist/{chunk-ZUH7XRX7.js → chunk-GTRJUSVK.js} +4 -3
- package/dist/{chunk-BV5HEXB5.js → chunk-GU5KNBTL.js} +12 -10
- package/dist/{chunk-FT66LAUZ.js → chunk-GUZHEEYG.js} +8 -7
- package/dist/{chunk-LS6CFF6X.js → chunk-GX4ZHNG7.js} +5 -1
- package/dist/{chunk-JAQKJBVJ.js → chunk-H3LVWLBS.js} +8 -7
- package/dist/{chunk-7UMBKY3H.js → chunk-H46UXFHV.js} +1 -1
- package/dist/{chunk-B4XRAVHL.js → chunk-HBKB2GXI.js} +32 -18
- package/dist/{chunk-DD2TBHSJ.js → chunk-HJ2FWSSM.js} +9 -9
- package/dist/{chunk-IS2VTYDA.js → chunk-HJD3NQST.js} +6 -3
- package/dist/{chunk-XNL5BLUR.js → chunk-HJMROSE4.js} +26 -14
- package/dist/{chunk-UXRTPEH7.js → chunk-HRQUTQSW.js} +9 -7
- package/dist/{chunk-WSL4JGEA.js → chunk-HSDMCZMX.js} +2 -2
- package/dist/{chunk-WO36QUH3.js → chunk-IDEK35SZ.js} +4 -1
- package/dist/{chunk-QYI7LQBQ.js → chunk-ITC5UU7V.js} +1 -1
- package/dist/{chunk-MPH64VG7.js → chunk-IUOKOPNY.js} +7 -6
- package/dist/{chunk-PAXDHYBX.js → chunk-IVTOFG7I.js} +79 -16
- package/dist/{chunk-MSBN2O66.js → chunk-J65FSZ6X.js} +1 -1
- package/dist/{chunk-YPFZXGPT.js → chunk-JZJWB5CQ.js} +18 -9
- package/dist/{chunk-TL32C2SQ.js → chunk-K3ASWIQF.js} +8 -2
- package/dist/{chunk-UTGEGGSE.js → chunk-K3SP537A.js} +12 -11
- package/dist/{chunk-ANL6VX4X.js → chunk-K5QMUHOG.js} +13 -10
- package/dist/{chunk-DNROUJ62.js → chunk-KCASF2IV.js} +17 -12
- package/dist/{chunk-FQ4YUKAE.js → chunk-KE33WVT2.js} +6 -6
- package/dist/{chunk-5N2G462S.js → chunk-KEPRNTOF.js} +8 -8
- package/dist/{chunk-JF4BKHFK.js → chunk-KKDIIZQG.js} +14 -8
- package/dist/{chunk-ZKMEKSJZ.js → chunk-KSNSN42X.js} +9 -4
- package/dist/{chunk-MUDW65ZT.js → chunk-KSZLBV3P.js} +36 -10
- package/dist/{chunk-HVFB44HO.js → chunk-KUK3UZ7M.js} +11 -8
- package/dist/{chunk-5GGS6VP5.js → chunk-L4G2YUXT.js} +1 -2
- package/dist/{chunk-NVLYF4UL.js → chunk-L7SG34PT.js} +69 -27
- package/dist/{chunk-SPKSRH6G.js → chunk-LGGGLQAD.js} +10 -9
- package/dist/{chunk-CDQNLDO6.js → chunk-LLI33GKW.js} +4 -4
- package/dist/{chunk-QWOO4V7N.js → chunk-LO4TYPLL.js} +8 -2
- package/dist/{chunk-DWPGFNNF.js → chunk-LUDI3KWR.js} +144 -46
- package/dist/{chunk-TXC6CCSA.js → chunk-M32LPQKJ.js} +2 -2
- package/dist/{chunk-OFYGJUKP.js → chunk-M4NEGTL3.js} +5 -2
- package/dist/{chunk-4SLC3EK6.js → chunk-M6UUAF25.js} +79 -16
- package/dist/{chunk-N6FMS47F.js → chunk-MEIRPHQO.js} +26 -21
- package/dist/{chunk-YVGC7QT7.js → chunk-MG6TUMH7.js} +5 -5
- package/dist/{chunk-W6YVDJHX.js → chunk-MQYV5MKH.js} +11 -7
- package/dist/{chunk-OIIMYSVT.js → chunk-MTI7DQ4F.js} +7 -7
- package/dist/{chunk-D4AYULMF.js → chunk-MUURQUEM.js} +8 -8
- package/dist/chunk-MVGUQ36E.js +75 -0
- package/dist/{chunk-D2JJSUXI.js → chunk-MXHFJ3XF.js} +6 -3
- package/dist/{chunk-IATF2OTU.js → chunk-MYPRORYG.js} +14 -5
- package/dist/{chunk-PZJYDIJI.js → chunk-N3MCZYXP.js} +1 -1
- package/dist/{chunk-B7MVYR7C.js → chunk-NBNAXWLN.js} +10 -6
- package/dist/{chunk-KEMC4RIF.js → chunk-NNAJQJSC.js} +6 -3
- package/dist/{chunk-KFPGQ5RT.js → chunk-O2CID2IT.js} +11 -11
- package/dist/{chunk-ISZ7O2Q6.js → chunk-O6GCB7HD.js} +10 -9
- package/dist/{chunk-EG7NXGDD.js → chunk-OFUEFWOK.js} +19 -6
- package/dist/{chunk-ZQV2GAWY.js → chunk-OJNEZ5AY.js} +10 -9
- package/dist/{chunk-DPLH3EGO.js → chunk-OOK5CF2D.js} +91 -39
- package/dist/{chunk-TAAAYFBT.js → chunk-OR6R6OXI.js} +3 -3
- package/dist/{chunk-FBIGYEFN.js → chunk-OSM5E2YR.js} +6 -6
- package/dist/{chunk-37JQA6PI.js → chunk-PHI4NQLJ.js} +1 -1
- package/dist/{chunk-XKA3LTJZ.js → chunk-Q2QV62WV.js} +14 -8
- package/dist/{chunk-2PPF4GK5.js → chunk-QEV4RIZR.js} +60 -30
- package/dist/{chunk-44DNL43W.js → chunk-QHDDNBEI.js} +11 -11
- package/dist/{chunk-RSUZHZCG.js → chunk-QKAFDPXO.js} +12 -11
- package/dist/{chunk-O626XQW2.js → chunk-QKMSLSS6.js} +27 -4
- package/dist/{chunk-VS3GQ4JR.js → chunk-QLIA6OT4.js} +7 -5
- package/dist/{chunk-3PQTSFOS.js → chunk-QMH6X4OV.js} +1 -1
- package/dist/{chunk-FIPWA5KL.js → chunk-QRU57VKP.js} +27 -9
- package/dist/{chunk-ANZANDQM.js → chunk-QSGSKHZL.js} +5 -5
- package/dist/{chunk-LBXIMJFU.js → chunk-QSQFJRFC.js} +5 -6
- package/dist/chunk-QVKVPYNA.js +41 -0
- package/dist/{chunk-5TMFFW3Y.js → chunk-QYMPXHK5.js} +4 -1
- package/dist/{chunk-EAUUUVUR.js → chunk-QZPBZONY.js} +8 -7
- package/dist/chunk-RDV5ETG2.js +105 -0
- package/dist/{chunk-CBJUY4WE.js → chunk-RJ6FURDA.js} +5 -5
- package/dist/{chunk-24O5V2PQ.js → chunk-RJWEBYP2.js} +12 -3
- package/dist/{chunk-DUGKLVQJ.js → chunk-RKCW27UM.js} +0 -1
- package/dist/{chunk-WNPMHOXE.js → chunk-RQ673YJJ.js} +1 -1
- package/dist/{chunk-6322OCI4.js → chunk-RVVYQ6J5.js} +20 -9
- package/dist/{chunk-P37H477M.js → chunk-S4Q2HPP5.js} +8 -5
- package/dist/chunk-SDBQOVMA.js +53 -0
- package/dist/{chunk-3ZFF6VC5.js → chunk-SK6M4GOD.js} +11 -10
- package/dist/{chunk-SR4NYQWO.js → chunk-SL6HYI6T.js} +9 -3
- package/dist/{chunk-AMVX4DDT.js → chunk-STEGNOAK.js} +7 -7
- package/dist/{chunk-BG2W2KVE.js → chunk-T2GLXMC7.js} +10 -3
- package/dist/{chunk-H4URFOQC.js → chunk-TAN5UNTZ.js} +36 -5
- package/dist/{chunk-7RCBOTWL.js → chunk-TCCKCLEZ.js} +9 -14
- package/dist/{chunk-LPTY5WXM.js → chunk-TLPJA7QP.js} +6 -3
- package/dist/{chunk-XUZH4Y52.js → chunk-TN3ATHN7.js} +23 -22
- package/dist/{chunk-45KDL3JM.js → chunk-TOGS33KA.js} +11 -8
- package/dist/{chunk-YF3XSH54.js → chunk-TQKGGJ4W.js} +9 -3
- package/dist/{chunk-OH5VAD27.js → chunk-TXHOOVX7.js} +35 -17
- package/dist/{chunk-X4JYOCFA.js → chunk-UHNZ3I66.js} +20 -18
- package/dist/{chunk-VUDTGRS3.js → chunk-UHW53LWK.js} +1 -2
- package/dist/{chunk-45IXJ7W7.js → chunk-UINHBFRO.js} +12 -10
- package/dist/{chunk-F526V5BA.js → chunk-UNE53KA2.js} +6 -3
- package/dist/{chunk-4WCMPLE3.js → chunk-UQWPG5BH.js} +9 -5
- package/dist/{chunk-RBTX7TVA.js → chunk-URXTC4RD.js} +8 -7
- package/dist/{chunk-VWYX5IRP.js → chunk-USBGON3T.js} +38 -16
- package/dist/{chunk-FK2LKLRN.js → chunk-VDSYL3LA.js} +0 -1
- package/dist/{chunk-ADZI4ROA.js → chunk-VDUU5243.js} +1 -0
- package/dist/{chunk-JRD6FENH.js → chunk-VTZDMX2U.js} +18 -9
- package/dist/{chunk-F7LAUVDJ.js → chunk-VYFSYD3Z.js} +5 -2
- package/dist/{chunk-WRB66XD3.js → chunk-VYO4JJVI.js} +3 -1
- package/dist/{chunk-25RCKHWV.js → chunk-W3AUNR4J.js} +4 -3
- package/dist/{chunk-FT7WZV3D.js → chunk-W42RQZ2S.js} +17 -5
- package/dist/{chunk-E4MX3E3B.js → chunk-W723JZDF.js} +22 -7
- package/dist/{chunk-U7VX6A6K.js → chunk-WA4HAXEF.js} +40 -15
- package/dist/{chunk-ZGMBQZDV.js → chunk-WGHJKPVG.js} +29 -16
- package/dist/{chunk-UBTYMAKF.js → chunk-WIX5IGDH.js} +5 -8
- package/dist/{chunk-4GF7WTR3.js → chunk-WSN6SDBH.js} +1 -1
- package/dist/{chunk-FDE3S2YK.js → chunk-WSYMYSW3.js} +5 -5
- package/dist/{chunk-JWBGI7FN.js → chunk-WVXAVILO.js} +91 -39
- package/dist/{chunk-VNUX5LOC.js → chunk-WYFRNK6S.js} +9 -9
- package/dist/{chunk-2PQIPQGO.js → chunk-XDIWPIKO.js} +14 -10
- package/dist/{chunk-JE2MAZGR.js → chunk-XILRY6LB.js} +1 -1
- package/dist/{chunk-EOZDJA7Z.js → chunk-XKJ3KMMO.js} +13 -8
- package/dist/{chunk-Z5GNX2S3.js → chunk-XN2OBKPK.js} +1 -1
- package/dist/{chunk-SDL3JXFN.js → chunk-XSNQN67K.js} +1 -1
- package/dist/{chunk-BKHH2CJA.js → chunk-XWQNDAL5.js} +2 -2
- package/dist/{chunk-V7JUJQNR.js → chunk-XXOJGQF6.js} +1 -2
- package/dist/{chunk-ZE7BT2K4.js → chunk-Y3QA2RIG.js} +70 -13
- package/dist/{chunk-PIE76JKF.js → chunk-Y5NPX36Y.js} +35 -17
- package/dist/{chunk-JVTDNOHQ.js → chunk-YGRYE53G.js} +8 -8
- package/dist/{chunk-IDXERBKL.js → chunk-YSUGZLB5.js} +7 -3
- package/dist/{chunk-RGVRHFKY.js → chunk-YTQSVOA7.js} +5 -3
- package/dist/{chunk-UZF7SCRT.js → chunk-YV5WZJGS.js} +15 -11
- package/dist/{chunk-PSTMF66E.js → chunk-YVRTO4XC.js} +9 -6
- package/dist/{chunk-6HPSPZTF.js → chunk-YXEAYRUY.js} +10 -9
- package/dist/{chunk-GBOJUMMY.js → chunk-YXFUOERB.js} +6 -6
- package/dist/{chunk-DWZT455C.js → chunk-Z3PHHGUZ.js} +9 -9
- package/dist/{chunk-RXOVKEYG.js → chunk-Z77R5OHW.js} +3 -3
- package/dist/{chunk-G7WTEBMX.js → chunk-ZGJUXBLD.js} +11 -7
- package/dist/{chunk-IF6CWIUB.js → chunk-ZIC4VJ2T.js} +1 -1
- package/dist/{chunk-X2VID7XY.js → chunk-ZIL4N5BT.js} +2 -2
- package/dist/{chunk-FXXR3FM3.js → chunk-ZLIFMMAH.js} +10 -7
- package/dist/{chunk-72UKXOMW.js → chunk-ZMP7XCON.js} +22 -7
- package/dist/{chunk-UC55XR76.js → chunk-ZYZHLWFL.js} +8 -2
- package/dist/citations.js +1 -1
- package/dist/combobox-aui-046.js +1 -1
- package/dist/combobox-aui-047.js +1 -1
- package/dist/combobox.js +1 -1
- package/dist/command-palette.js +1 -1
- package/dist/comments.js +3 -3
- package/dist/context-menu.js +1 -1
- package/dist/context-meter.js +2 -2
- package/dist/cookie-consent.js +2 -2
- package/dist/copy-button.js +1 -1
- package/dist/data-table.js +1 -1
- package/dist/date-picker-aui-050.js +1 -1
- package/dist/date-picker-aui-051.js +1 -1
- package/dist/date-picker.js +1 -1
- package/dist/dialog.js +1 -1
- package/dist/drawer.js +1 -1
- package/dist/dropdown-menu.js +2 -2
- package/dist/elastic-string.js +2 -1
- package/dist/empty-state.js +2 -2
- package/dist/event-calendar.js +1 -1
- package/dist/fallback-chain.js +1 -1
- package/dist/field.js +1 -1
- package/dist/file-card.js +1 -1
- package/dist/file-manager.js +7 -7
- package/dist/file-upload.js +1 -1
- package/dist/flash-sale.js +1 -1
- package/dist/footer-aui-026.js +1 -1
- package/dist/footer-aui-027.js +1 -1
- package/dist/footer-aui-028.js +1 -1
- package/dist/footer.js +2 -2
- package/dist/gravity-pills.js +1 -1
- package/dist/hold-to-confirm.js +1 -1
- package/dist/image-compare.js +1 -1
- package/dist/inbox.js +3 -3
- package/dist/index.js +228 -193
- package/dist/ink-trail.js +2 -1
- package/dist/inline-edit.js +1 -1
- package/dist/input-aui-029.js +1 -1
- package/dist/input-aui-030.js +1 -1
- package/dist/input-aui-031.js +1 -1
- package/dist/input-aui-032.js +1 -1
- package/dist/input-aui-033.js +1 -1
- package/dist/input.js +1 -1
- package/dist/invoice.js +2 -2
- package/dist/kanban.js +2 -2
- package/dist/menubar.js +1 -1
- package/dist/meter.js +1 -1
- package/dist/model-picker.js +1 -1
- package/dist/motion-button.js +1 -1
- package/dist/navbar-aui-009.js +1 -1
- package/dist/navbar-aui-010.js +1 -1
- package/dist/navbar-aui-011.js +1 -1
- package/dist/navbar-aui-012.js +1 -1
- package/dist/navbar-aui-013.js +1 -1
- package/dist/navbar-aui-014.js +1 -1
- package/dist/navbar.js +2 -2
- package/dist/needle-field.js +1 -1
- package/dist/notification-center.js +3 -3
- package/dist/notification-stack.js +2 -1
- package/dist/now-playing.js +2 -1
- package/dist/number-input.js +1 -1
- package/dist/onboarding.js +2 -2
- package/dist/otp-input-aui-041.js +1 -1
- package/dist/otp-input-aui-042.js +1 -1
- package/dist/pagination.js +1 -1
- package/dist/password-input-aui-040.js +1 -1
- package/dist/password-input.js +1 -1
- package/dist/pay-methods.js +2 -1
- package/dist/payment-received.js +2 -1
- package/dist/payment-status.js +2 -1
- package/dist/phone-input.js +1 -1
- package/dist/pixel-reveal.js +1 -1
- package/dist/plan-switcher.js +2 -1
- package/dist/popover.js +1 -1
- package/dist/price-alert.js +1 -1
- package/dist/price-chart.js +2 -1
- package/dist/pricing-aui-021.js +1 -1
- package/dist/pricing-aui-022.js +1 -1
- package/dist/pricing-aui-023.js +1 -1
- package/dist/pricing-aui-024.js +1 -1
- package/dist/pricing.js +2 -2
- package/dist/prompt-composer.js +1 -1
- package/dist/properties-panel.js +1 -1
- package/dist/radio-group-aui-055.js +1 -1
- package/dist/radio-group-aui-056.js +1 -1
- package/dist/radio-group-aui-057.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/range-slider.js +1 -1
- package/dist/rating.js +1 -1
- package/dist/scramble-text.js +1 -1
- package/dist/scrub-input.js +1 -1
- package/dist/seat-picker.js +2 -1
- package/dist/segmented-control.js +1 -1
- package/dist/select-aui-043.js +1 -1
- package/dist/select-aui-044.js +1 -1
- package/dist/select-aui-045.js +1 -1
- package/dist/select.js +1 -1
- package/dist/settings-panel.js +2 -2
- package/dist/shipment-tracker.js +2 -1
- package/dist/sidebar.js +2 -2
- package/dist/sign-in-aui-015.js +1 -1
- package/dist/sign-in-aui-016.js +1 -1
- package/dist/sign-in-aui-017.js +1 -1
- package/dist/sign-in-aui-018.js +1 -1
- package/dist/sign-in-aui-019.js +1 -1
- package/dist/sign-in-aui-020.js +1 -1
- package/dist/sign-in.js +2 -2
- package/dist/skeleton.js +1 -1
- package/dist/slider-aui-062.js +1 -1
- package/dist/slider-aui-063.js +1 -1
- package/dist/slider.js +1 -1
- package/dist/snap-grid.js +1 -1
- package/dist/sortable-list.js +1 -1
- package/dist/spinner.js +1 -1
- package/dist/split-bill.js +1 -1
- package/dist/split-flap.js +2 -1
- package/dist/stat-card.js +1 -1
- package/dist/stepper.js +1 -1
- package/dist/styles.css +3 -0
- package/dist/switch-aui-058.js +1 -1
- package/dist/switch-aui-059.js +1 -1
- package/dist/switch-aui-060.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tag-input-aui-048.js +1 -1
- package/dist/tag-input-aui-049.js +1 -1
- package/dist/tag-input.js +1 -1
- package/dist/team-members.js +4 -4
- package/dist/testimonials.js +2 -2
- package/dist/textarea-aui-002.js +1 -1
- package/dist/textarea-aui-003.js +1 -1
- package/dist/textarea-aui-005.js +1 -1
- package/dist/textarea-aui-006.js +1 -1
- package/dist/textarea-aui-007.js +1 -1
- package/dist/textarea-aui-008.js +1 -1
- package/dist/textarea-aui-036.js +1 -1
- package/dist/textarea-aui-037.js +1 -1
- package/dist/textarea-aui-038.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/thinking.js +1 -1
- package/dist/toast.js +1 -1
- package/dist/token-swap.js +2 -1
- package/dist/tool-approval.js +1 -1
- package/dist/tool-dock.js +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/trace-waterfall.js +1 -1
- package/dist/trade-ticket.js +2 -1
- package/dist/tree-view.js +1 -1
- package/dist/types/components/kit/accordion.d.ts +4 -3
- package/dist/types/components/kit/api-keys.d.ts +1 -1
- package/dist/types/components/kit/base/navbar.d.ts +2 -0
- package/dist/types/components/kit/base/pricing.d.ts +4 -1
- package/dist/types/components/kit/navbar.d.ts +2 -0
- package/dist/types/components/kit/pricing.d.ts +4 -1
- package/dist/types/components/kit/variants/button-aui-064.d.ts +21 -0
- package/dist/types/components/kit/variants/button-aui-065.d.ts +26 -0
- package/dist/types/components/kit/variants/button-aui-066.d.ts +19 -0
- package/dist/types/components/kit/variants/button-aui-067.d.ts +23 -0
- package/dist/types/components/kit/variants/button-aui-068.d.ts +28 -0
- package/dist/types/components/lab/lab-hooks.d.ts +12 -0
- package/dist/types/packages/asta-ui/src/base/accordion.d.ts +2 -2
- package/dist/types/packages/asta-ui/src/base/button-aui-064.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/button-aui-065.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/button-aui-066.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/button-aui-067.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/button-aui-068.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base.d.ts +12 -2
- package/dist/types/packages/asta-ui/src/button-aui-064.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/button-aui-065.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/button-aui-066.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/button-aui-067.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/button-aui-068.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/index.d.ts +10 -0
- package/dist/variant-picker.js +2 -1
- package/dist/watchlist.js +1 -1
- package/dist/wishlist.js +2 -1
- package/dist/workspace-switcher.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-2Z5Z4YYZ.js +0 -57
- package/dist/chunk-B7V4ZTKI.js +0 -53
- package/dist/chunk-XTP6ITUJ.js +0 -55
- package/dist/types/components/kit/base/accordion.d.ts +0 -19
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
Select
|
|
4
|
-
} from "./chunk-AMVX4DDT.js";
|
|
5
2
|
import {
|
|
6
3
|
Button
|
|
7
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5ZQ6PMJT.js";
|
|
8
5
|
import {
|
|
9
6
|
Input
|
|
10
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YV5WZJGS.js";
|
|
11
8
|
|
|
12
9
|
// components/kit/checkout.tsx
|
|
13
10
|
import { useEffect, useId, useMemo, useRef, useState } from "react";
|
|
@@ -104,9 +101,10 @@ function Labeled({ id, label, error, children, className }) {
|
|
|
104
101
|
/* @__PURE__ */ jsx("label", { htmlFor: id, className: "mb-1.5 block text-[12.5px] text-ink-2", children: label }),
|
|
105
102
|
children,
|
|
106
103
|
error && /* @__PURE__ */ jsxs("p", { id: `${id}-err`, className: "mt-1.5 flex items-center gap-1.5 text-[12px] text-ink-2", style: { animation: `kit-co-up .3s ${CURVE}` }, children: [
|
|
107
|
-
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0
|
|
108
|
-
/* @__PURE__ */ jsx("circle", { cx: "
|
|
109
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
104
|
+
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: "h-3.5 w-3.5 shrink-0", fill: "none", stroke: "currentColor", strokeWidth: "2.25", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
105
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "8.5" }),
|
|
106
|
+
/* @__PURE__ */ jsx("path", { d: "M12 7.5v5" }),
|
|
107
|
+
/* @__PURE__ */ jsx("path", { d: "M12 16h.01" })
|
|
110
108
|
] }),
|
|
111
109
|
error
|
|
112
110
|
] })
|
|
@@ -114,17 +112,21 @@ function Labeled({ id, label, error, children, className }) {
|
|
|
114
112
|
}
|
|
115
113
|
var INVALID = "!shadow-[inset_0_0_0_1.5px_var(--ink)]";
|
|
116
114
|
function CardGlyph() {
|
|
117
|
-
return /* @__PURE__ */ jsxs("svg", { viewBox: "0 0
|
|
118
|
-
/* @__PURE__ */ jsx("rect", { x: "
|
|
119
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
115
|
+
return /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: "h-3.5 w-5", fill: "none", stroke: "currentColor", strokeWidth: "2.23", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
116
|
+
/* @__PURE__ */ jsx("rect", { x: "3", y: "5.5", width: "18", height: "13", rx: "2" }),
|
|
117
|
+
/* @__PURE__ */ jsx("path", { d: "M3 10h18" }),
|
|
118
|
+
/* @__PURE__ */ jsx("path", { d: "M6.5 15h3" })
|
|
120
119
|
] });
|
|
121
120
|
}
|
|
122
121
|
function Stepper({ name, qty, onChange, disabled }) {
|
|
123
122
|
const btn = "grid h-6 w-6 place-items-center rounded-md text-ink-2 outline-none transition-colors duration-200 hover:bg-paper hover:text-ink focus-visible:ring-2 focus-visible:ring-brand/50 disabled:opacity-35 disabled:hover:bg-transparent";
|
|
124
123
|
return /* @__PURE__ */ jsxs("div", { className: "inline-flex items-center gap-1", role: "group", "aria-label": `Quantity of ${name}`, children: [
|
|
125
|
-
/* @__PURE__ */ jsx("button", { type: "button", className: btn, "aria-label": "Fewer", disabled: disabled || qty <= 1, onClick: () => onChange(qty - 1), children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
124
|
+
/* @__PURE__ */ jsx("button", { type: "button", className: btn, "aria-label": "Fewer", disabled: disabled || qty <= 1, onClick: () => onChange(qty - 1), children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: "h-3 w-3", stroke: "currentColor", strokeWidth: "3.2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "M5 12h14" }) }) }),
|
|
126
125
|
/* @__PURE__ */ jsx("span", { className: "w-5 text-center text-[12.5px] tabular-nums text-ink", "aria-live": "polite", children: qty }),
|
|
127
|
-
/* @__PURE__ */ jsx("button", { type: "button", className: btn, "aria-label": "More", disabled: disabled || qty >= 99, onClick: () => onChange(qty + 1), children: /* @__PURE__ */
|
|
126
|
+
/* @__PURE__ */ jsx("button", { type: "button", className: btn, "aria-label": "More", disabled: disabled || qty >= 99, onClick: () => onChange(qty + 1), children: /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: "h-3 w-3", stroke: "currentColor", strokeWidth: "3.2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
127
|
+
/* @__PURE__ */ jsx("path", { d: "M12 5v14" }),
|
|
128
|
+
/* @__PURE__ */ jsx("path", { d: "M5 12h14" })
|
|
129
|
+
] }) })
|
|
128
130
|
] });
|
|
129
131
|
}
|
|
130
132
|
function Checkout({
|
|
@@ -259,7 +261,7 @@ function Checkout({
|
|
|
259
261
|
return /* @__PURE__ */ jsxs("div", { className: cx("kit-co grid w-full gap-8 md:grid-cols-[minmax(0,1fr)_340px] md:gap-10", className), children: [
|
|
260
262
|
/* @__PURE__ */ jsx("style", { href: "asta-checkout", precedence: "asta", children: KEYFRAMES }),
|
|
261
263
|
/* @__PURE__ */ jsx("div", { className: "min-w-0", children: state === "done" ? /* @__PURE__ */ jsxs("div", { className: "flex h-full min-h-[420px] flex-col items-start justify-center", role: "status", style: { animation: `kit-co-up .5s ${CURVE}` }, children: [
|
|
262
|
-
/* @__PURE__ */ jsx("span", { className: "grid h-12 w-12 place-items-center rounded-full bg-brand text-
|
|
264
|
+
/* @__PURE__ */ jsx("span", { className: "grid h-12 w-12 place-items-center rounded-full bg-brand text-on-brand", style: { animation: `kit-co-pop .55s ${CURVE} .1s both` }, children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: "h-5 w-5", fill: "none", stroke: "currentColor", strokeWidth: "3", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "m5 12.5 4.5 4.5L19 7.5" }) }) }),
|
|
263
265
|
/* @__PURE__ */ jsx("h3", { className: "mt-6 text-[24px] font-medium tracking-[-0.03em] text-ink", children: "Payment received" }),
|
|
264
266
|
/* @__PURE__ */ jsxs("p", { className: "mt-2 max-w-[360px] text-[14px] leading-relaxed text-mute", children: [
|
|
265
267
|
"We charged ",
|
|
@@ -289,10 +291,22 @@ function Checkout({
|
|
|
289
291
|
/* @__PURE__ */ jsx(Labeled, { id: id("city"), label: "City", error: shown("city"), children: input("city", { autoComplete: "address-level2" }) }),
|
|
290
292
|
/* @__PURE__ */ jsx(Labeled, { id: id("postal"), label: "Postal code", error: shown("postal"), children: input("postal", { autoComplete: "postal-code", autoCapitalize: "characters" }) })
|
|
291
293
|
] }),
|
|
292
|
-
/* @__PURE__ */ jsxs("div", { children: [
|
|
293
|
-
/* @__PURE__ */ jsx(
|
|
294
|
-
|
|
295
|
-
|
|
294
|
+
/* @__PURE__ */ jsx(Labeled, { id: id("country"), label: "Country", children: /* @__PURE__ */ jsxs("div", { className: cx("relative", locked && "pointer-events-none opacity-50"), children: [
|
|
295
|
+
/* @__PURE__ */ jsx(
|
|
296
|
+
"select",
|
|
297
|
+
{
|
|
298
|
+
id: id("country"),
|
|
299
|
+
name: "country",
|
|
300
|
+
autoComplete: "country",
|
|
301
|
+
value: d.country,
|
|
302
|
+
onChange: (e) => set("country", e.target.value),
|
|
303
|
+
disabled: locked,
|
|
304
|
+
className: "h-10 w-full appearance-none rounded-lg bg-paper pl-3 pr-9 text-[16px] text-ink outline-none transition-shadow duration-200 shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_14%,transparent)] hover:shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_24%,transparent)] focus-visible:!shadow-[inset_0_0_0_1px_var(--brand),0_0_0_4px_color-mix(in_srgb,var(--brand)_16%,transparent)] sm:text-[14px]",
|
|
305
|
+
children: countries.map((c) => /* @__PURE__ */ jsx("option", { value: c.value, children: c.label }, c.value))
|
|
306
|
+
}
|
|
307
|
+
),
|
|
308
|
+
/* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "pointer-events-none absolute right-3 top-1/2 h-4 w-4 -translate-y-1/2 text-mute", fill: "none", stroke: "currentColor", strokeWidth: "1.6", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "m4 6 4 4 4-4" }) })
|
|
309
|
+
] }) }),
|
|
296
310
|
/* @__PURE__ */ jsx("div", { role: "radiogroup", "aria-label": "Shipping speed", className: "mt-1 grid gap-2 sm:grid-cols-2", children: shippingOptions.map((s) => {
|
|
297
311
|
const on = s.id === d.shipping;
|
|
298
312
|
return /* @__PURE__ */ jsxs(
|
|
@@ -19,14 +19,14 @@ function passwordStrength(value, rules = DEFAULT_PASSWORD_RULES) {
|
|
|
19
19
|
return { score, max: rules.length, passed, word, strong: score === rules.length };
|
|
20
20
|
}
|
|
21
21
|
function Eye({ hidden }) {
|
|
22
|
-
return /* @__PURE__ */ jsxs("svg", { viewBox: "0 0
|
|
23
|
-
/* @__PURE__ */ jsx("path", { d: "M2.5
|
|
22
|
+
return /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: "h-[18px] w-[18px]", fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
23
|
+
/* @__PURE__ */ jsx("path", { d: "M2.5 12c3-5.5 16-5.5 19 0-3 5.5-16 5.5-19 0Z" }),
|
|
24
24
|
/* @__PURE__ */ jsx(
|
|
25
25
|
"circle",
|
|
26
26
|
{
|
|
27
|
-
cx: "
|
|
28
|
-
cy: "
|
|
29
|
-
r: "2.
|
|
27
|
+
cx: "12",
|
|
28
|
+
cy: "12",
|
|
29
|
+
r: "2.75",
|
|
30
30
|
className: "origin-center transition-transform duration-300 ease-[cubic-bezier(.16,1,.3,1)] [transform-box:fill-box] motion-reduce:transition-none",
|
|
31
31
|
style: { transform: hidden ? "scale(.55)" : "scale(1)" }
|
|
32
32
|
}
|
|
@@ -34,7 +34,7 @@ function Eye({ hidden }) {
|
|
|
34
34
|
/* @__PURE__ */ jsx(
|
|
35
35
|
"path",
|
|
36
36
|
{
|
|
37
|
-
d: "
|
|
37
|
+
d: "m4.5 4.5 15 15",
|
|
38
38
|
pathLength: 1,
|
|
39
39
|
strokeDasharray: 1,
|
|
40
40
|
strokeDashoffset: hidden ? 0 : 1,
|
|
@@ -49,12 +49,12 @@ function Tick({ on }) {
|
|
|
49
49
|
{
|
|
50
50
|
className: cx(
|
|
51
51
|
"relative flex h-4 w-4 shrink-0 items-center justify-center rounded-full transition-[background-color,box-shadow] duration-300",
|
|
52
|
-
on ? "bg-brand text-
|
|
52
|
+
on ? "bg-brand text-on-brand" : "shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_20%,transparent)]"
|
|
53
53
|
),
|
|
54
|
-
children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
54
|
+
children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: "h-2.5 w-2.5", fill: "none", stroke: "currentColor", strokeWidth: "3.6", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx(
|
|
55
55
|
"path",
|
|
56
56
|
{
|
|
57
|
-
d: "
|
|
57
|
+
d: "m5 12.5 4.5 4.5L19 7.5",
|
|
58
58
|
pathLength: 1,
|
|
59
59
|
strokeDasharray: 1,
|
|
60
60
|
strokeDashoffset: on ? 0 : 1,
|
|
@@ -7,10 +7,13 @@ var cx = (...c) => c.filter(Boolean).join(" ");
|
|
|
7
7
|
var KEYFRAMES = `@keyframes asta-tree-in { from { opacity: 0; transform: translateY(-4px) } }`;
|
|
8
8
|
var isFolder = (n) => n.children !== void 0;
|
|
9
9
|
function FolderIcon({ open }) {
|
|
10
|
-
return /* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
10
|
+
return /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.25", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: open ? /* @__PURE__ */ jsx("path", { d: "M4 18V6.5A1.5 1.5 0 0 1 5.5 5h3.75l2 2.5H17A1.5 1.5 0 0 1 18.5 9v1.5M4 18l2.4-6.4a1.5 1.5 0 0 1 1.4-1.1h12a1 1 0 0 1 .95 1.3L18.8 18a1.5 1.5 0 0 1-1.4 1H5a1 1 0 0 1-1-1Z" }) : /* @__PURE__ */ jsx("path", { d: "M3.5 7A1.5 1.5 0 0 1 5 5.5h4.5l2 2.5H19a1.5 1.5 0 0 1 1.5 1.5v8A1.5 1.5 0 0 1 19 19H5a1.5 1.5 0 0 1-1.5-1.5Z" }) });
|
|
11
11
|
}
|
|
12
12
|
function FileIcon() {
|
|
13
|
-
return /* @__PURE__ */
|
|
13
|
+
return /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.25", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
14
|
+
/* @__PURE__ */ jsx("path", { d: "M6 3.5h8l4.5 4.5v12.5H6Z" }),
|
|
15
|
+
/* @__PURE__ */ jsx("path", { d: "M14 3.5V8h4.5" })
|
|
16
|
+
] });
|
|
14
17
|
}
|
|
15
18
|
function TreeView({ nodes, selected, defaultSelected = null, onSelect, expanded, defaultExpanded = [], onExpandedChange, label, className }) {
|
|
16
19
|
const [innerSel, setInnerSel] = useState(defaultSelected);
|
|
@@ -207,7 +210,7 @@ function TreeView({ nodes, selected, defaultSelected = null, onSelect, expanded,
|
|
|
207
210
|
toggle(n.id);
|
|
208
211
|
},
|
|
209
212
|
className: "grid h-4 w-4 shrink-0 place-items-center text-mute",
|
|
210
|
-
children: folder && /* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
213
|
+
children: folder && /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: cx("h-3 w-3 transition-transform duration-300 ease-[cubic-bezier(.16,1,.3,1)] motion-reduce:transition-none", open && "rotate-90"), fill: "none", stroke: "currentColor", strokeWidth: "2.7", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsx("path", { d: "m9.5 6 6 6-6 6" }) })
|
|
211
214
|
}
|
|
212
215
|
),
|
|
213
216
|
/* @__PURE__ */ jsx("span", { className: cx("inline-flex h-4 w-4 shrink-0 transition-colors [&_svg]:h-4 [&_svg]:w-4", isSel ? "text-brand" : "text-mute group-hover/row:text-ink-2"), children: n.icon ?? (folder ? /* @__PURE__ */ jsx(FolderIcon, { open }) : /* @__PURE__ */ jsx(FileIcon, {})) }),
|
|
@@ -8,7 +8,10 @@ var EASE = "ease-[cubic-bezier(.16,1,.3,1)]";
|
|
|
8
8
|
var BASE = "group/mb relative inline-flex h-11 shrink-0 select-none items-center justify-center gap-2 whitespace-nowrap rounded-[10px] px-5 text-[14px] font-medium tracking-[-0.01em] outline-none transition-[transform,background-color,color,box-shadow] duration-300 active:scale-[0.97] focus-visible:ring-2 focus-visible:ring-brand/50 focus-visible:ring-offset-2 focus-visible:ring-offset-paper disabled:pointer-events-none disabled:opacity-45";
|
|
9
9
|
var RING = "shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_14%,transparent)]";
|
|
10
10
|
var LIFT = "shadow-[inset_0_1px_0_rgb(255_255_255/0.18),0_1px_2px_rgb(0_0_0/0.16),0_6px_14px_-8px_rgb(0_0_0/0.45)]";
|
|
11
|
-
var ArrowIcon = ({ className = "" }) => /* @__PURE__ */
|
|
11
|
+
var ArrowIcon = ({ className = "" }) => /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: cx("h-4 w-4", className), fill: "none", stroke: "currentColor", strokeWidth: "2.55", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
12
|
+
/* @__PURE__ */ jsx("path", { d: "M4 12h15" }),
|
|
13
|
+
/* @__PURE__ */ jsx("path", { d: "m13 6 6 6-6 6" })
|
|
14
|
+
] });
|
|
12
15
|
var Styles = () => /* @__PURE__ */ jsx("style", { href: "asta-motion-button", precedence: "asta", children: `
|
|
13
16
|
@keyframes kit-beam { to { transform: rotate(1turn) } }
|
|
14
17
|
@keyframes kit-shine { from { transform: translateX(-120%) skewX(-20deg) } to { transform: translateX(340%) skewX(-20deg) } }
|
|
@@ -81,13 +84,14 @@ function ArrowButton({ children, className, ...rest }) {
|
|
|
81
84
|
{
|
|
82
85
|
"aria-hidden": true,
|
|
83
86
|
className: cx(
|
|
87
|
+
// perf-ok: the fill grows inside one button; nothing outside it reflows.
|
|
84
88
|
"absolute right-1.5 top-1.5 h-8 w-8 rounded-[7px] bg-brand transition-[width] duration-500 group-hover/mb:w-[calc(100%-12px)] group-focus-visible/mb:w-[calc(100%-12px)]",
|
|
85
89
|
EASE
|
|
86
90
|
)
|
|
87
91
|
}
|
|
88
92
|
),
|
|
89
|
-
/* @__PURE__ */ jsx("span", { className: cx("relative transition-[transform,color] duration-500 group-hover/mb:translate-x-1 group-hover/mb:text-
|
|
90
|
-
/* @__PURE__ */ jsxs("span", { className: "relative ml-2 grid h-8 w-8 place-items-center overflow-hidden text-
|
|
93
|
+
/* @__PURE__ */ jsx("span", { className: cx("relative transition-[transform,color] duration-500 group-hover/mb:translate-x-1 group-hover/mb:text-on-brand group-focus-visible/mb:text-on-brand", EASE), children }),
|
|
94
|
+
/* @__PURE__ */ jsxs("span", { className: "relative ml-2 grid h-8 w-8 place-items-center overflow-hidden text-on-brand", children: [
|
|
91
95
|
/* @__PURE__ */ jsx(ArrowIcon, { className: cx("col-start-1 row-start-1 transition-transform duration-500 group-hover/mb:translate-x-6", EASE) }),
|
|
92
96
|
/* @__PURE__ */ jsx(ArrowIcon, { className: cx("col-start-1 row-start-1 -translate-x-6 transition-transform duration-500 group-hover/mb:translate-x-0", EASE) })
|
|
93
97
|
] })
|
|
@@ -102,7 +106,7 @@ function ShineButton({ children, className, ...rest }) {
|
|
|
102
106
|
...rest,
|
|
103
107
|
onPointerEnter: () => setK((v) => v + 1),
|
|
104
108
|
onFocus: () => setK((v) => v + 1),
|
|
105
|
-
className: cx(BASE, "kit-motion overflow-hidden bg-brand text-
|
|
109
|
+
className: cx(BASE, "kit-motion overflow-hidden bg-brand text-on-brand", LIFT, className),
|
|
106
110
|
children: [
|
|
107
111
|
/* @__PURE__ */ jsx(Styles, {}),
|
|
108
112
|
/* @__PURE__ */ jsx(
|
|
@@ -183,19 +187,21 @@ function CopyButton({ value, children = "Copy", className, ...rest }) {
|
|
|
183
187
|
/* @__PURE__ */ jsxs(
|
|
184
188
|
"svg",
|
|
185
189
|
{
|
|
186
|
-
viewBox: "0 0
|
|
190
|
+
viewBox: "0 0 24 24",
|
|
187
191
|
className: cx("col-start-1 row-start-1 h-4 w-4 transition-[transform,opacity] duration-300", EASE, done ? "scale-50 opacity-0" : "scale-100 opacity-100"),
|
|
188
192
|
fill: "none",
|
|
189
193
|
stroke: "currentColor",
|
|
190
|
-
strokeWidth: "
|
|
194
|
+
strokeWidth: "2.25",
|
|
195
|
+
strokeLinecap: "round",
|
|
196
|
+
strokeLinejoin: "round",
|
|
191
197
|
"aria-hidden": true,
|
|
192
198
|
children: [
|
|
193
|
-
/* @__PURE__ */ jsx("rect", { x: "5", y: "5", width: "
|
|
194
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
199
|
+
/* @__PURE__ */ jsx("rect", { x: "8.5", y: "8.5", width: "11", height: "11", rx: "2" }),
|
|
200
|
+
/* @__PURE__ */ jsx("path", { d: "M15.5 8.5V6.5a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h2" })
|
|
195
201
|
]
|
|
196
202
|
}
|
|
197
203
|
),
|
|
198
|
-
done && /* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
204
|
+
done && /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: "col-start-1 row-start-1 h-4 w-4 text-brand", style: { animation: "kit-pop .45s cubic-bezier(.16,1,.3,1) both" }, fill: "none", stroke: "currentColor", strokeWidth: "3", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "m5 12.5 4.5 4.5L19 7.5" }) })
|
|
199
205
|
] }),
|
|
200
206
|
/* @__PURE__ */ jsx("span", { className: "relative block h-[1.25em] overflow-hidden leading-[1.25]", children: /* @__PURE__ */ jsxs("span", { className: cx("flex flex-col transition-transform duration-500", EASE, done && "-translate-y-1/2"), children: [
|
|
201
207
|
/* @__PURE__ */ jsx("span", { children }),
|
|
@@ -242,8 +248,8 @@ function ConfirmButton({
|
|
|
242
248
|
className: cx(
|
|
243
249
|
BASE,
|
|
244
250
|
"kit-motion overflow-hidden",
|
|
245
|
-
stage === "idle" && cx("bg-paper text-
|
|
246
|
-
stage === "ask" && cx("bg-
|
|
251
|
+
stage === "idle" && cx("bg-paper text-ink", RING),
|
|
252
|
+
stage === "ask" && cx("bg-ink text-paper", LIFT),
|
|
247
253
|
stage === "done" && cx("bg-paper-2 text-ink-2"),
|
|
248
254
|
className
|
|
249
255
|
),
|
|
@@ -253,15 +259,21 @@ function ConfirmButton({
|
|
|
253
259
|
"span",
|
|
254
260
|
{
|
|
255
261
|
"aria-hidden": true,
|
|
256
|
-
className: "absolute inset-x-0 bottom-0 h-[3px] origin-left bg-
|
|
262
|
+
className: "absolute inset-x-0 bottom-0 h-[3px] origin-left bg-paper/60",
|
|
257
263
|
style: { animation: `kit-confirm ${timeout}ms linear both` }
|
|
258
264
|
}
|
|
259
265
|
),
|
|
260
266
|
/* @__PURE__ */ jsx("span", { className: "relative inline-flex items-center gap-2", style: { animation: "kit-pop .4s cubic-bezier(.16,1,.3,1) both" }, children: stage === "done" ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
261
|
-
/* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
267
|
+
/* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: "h-4 w-4", fill: "none", stroke: "currentColor", strokeWidth: "3", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "m5 12.5 4.5 4.5L19 7.5" }) }),
|
|
262
268
|
doneLabel
|
|
263
269
|
] }) : stage === "ask" ? confirmLabel : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
264
|
-
/* @__PURE__ */
|
|
270
|
+
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: "h-4 w-4", fill: "none", stroke: "currentColor", strokeWidth: "2.25", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
271
|
+
/* @__PURE__ */ jsx("path", { d: "M4 7h16" }),
|
|
272
|
+
/* @__PURE__ */ jsx("path", { d: "M9.5 7V4.5h5V7" }),
|
|
273
|
+
/* @__PURE__ */ jsx("path", { d: "m6 7 1 13h10l1-13" }),
|
|
274
|
+
/* @__PURE__ */ jsx("path", { d: "M10 11v5.5" }),
|
|
275
|
+
/* @__PURE__ */ jsx("path", { d: "M14 11v5.5" })
|
|
276
|
+
] }),
|
|
265
277
|
children
|
|
266
278
|
] }) }, stage)
|
|
267
279
|
]
|
|
@@ -4,8 +4,13 @@
|
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
var cx = (...c) => c.filter(Boolean).join(" ");
|
|
6
6
|
var SHIMMER = `
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
.kit-skel::after {
|
|
8
|
+
content: ""; position: absolute; inset-block: 0; left: 0; width: 250%; pointer-events: none;
|
|
9
|
+
background-image: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--paper) 70%, transparent) 50%, transparent 70%);
|
|
10
|
+
animation: kit-shimmer 1.6s cubic-bezier(.16,1,.3,1) infinite;
|
|
11
|
+
}
|
|
12
|
+
@keyframes kit-shimmer { from { transform: translateX(-90%) } to { transform: translateX(30%) } }
|
|
13
|
+
@media (prefers-reduced-motion: reduce) { .kit-skel::after { animation: none !important } }
|
|
9
14
|
`;
|
|
10
15
|
function Skeleton({ shape = "line", width, height, className }) {
|
|
11
16
|
return /* @__PURE__ */ jsx(
|
|
@@ -13,7 +18,7 @@ function Skeleton({ shape = "line", width, height, className }) {
|
|
|
13
18
|
{
|
|
14
19
|
"aria-hidden": true,
|
|
15
20
|
className: cx(
|
|
16
|
-
"kit-skel block",
|
|
21
|
+
"kit-skel relative block overflow-hidden",
|
|
17
22
|
shape === "line" && "h-3 rounded-full",
|
|
18
23
|
shape === "circle" && "aspect-square shrink-0 self-start rounded-full",
|
|
19
24
|
shape === "block" && "rounded-[10px]",
|
|
@@ -22,10 +27,7 @@ function Skeleton({ shape = "line", width, height, className }) {
|
|
|
22
27
|
style: {
|
|
23
28
|
width,
|
|
24
29
|
height: height ?? (shape === "circle" ? width : void 0),
|
|
25
|
-
backgroundColor: "color-mix(in srgb, var(--ink) 7%, transparent)"
|
|
26
|
-
backgroundImage: "linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--paper) 70%, transparent) 50%, transparent 70%)",
|
|
27
|
-
backgroundSize: "250% 100%",
|
|
28
|
-
animation: "kit-shimmer 1.6s cubic-bezier(.4,0,.2,1) infinite"
|
|
30
|
+
backgroundColor: "color-mix(in srgb, var(--ink) 7%, transparent)"
|
|
29
31
|
},
|
|
30
32
|
children: /* @__PURE__ */ jsx("style", { href: "asta-skeleton", precedence: "asta", children: SHIMMER })
|
|
31
33
|
}
|
|
@@ -9,8 +9,8 @@ var BASE = "group/btn relative inline-flex shrink-0 select-none items-center [&_
|
|
|
9
9
|
var LIFT = "shadow-[inset_0_1px_0_rgb(255_255_255/0.18),0_1px_2px_rgb(0_0_0/0.16),0_6px_14px_-8px_rgb(0_0_0/0.45)]";
|
|
10
10
|
var VARIANT = {
|
|
11
11
|
solid: `bg-ink text-paper ${LIFT} hover:bg-[color-mix(in_srgb,var(--ink)_84%,var(--paper))]`,
|
|
12
|
-
accent: `bg-brand text-
|
|
13
|
-
danger: `bg-
|
|
12
|
+
accent: `bg-brand text-on-brand ${LIFT} hover:bg-[color-mix(in_srgb,var(--brand)_88%,black)]`,
|
|
13
|
+
danger: `bg-ink text-paper ${LIFT} hover:bg-[color-mix(in_srgb,var(--ink)_86%,var(--paper))]`,
|
|
14
14
|
outline: "bg-paper text-ink shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_14%,transparent),0_1px_2px_rgb(0_0_0/0.05)] hover:bg-paper-2 hover:shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_24%,transparent),0_1px_2px_rgb(0_0_0/0.05)]",
|
|
15
15
|
soft: "bg-paper-2 text-ink hover:bg-[color-mix(in_srgb,var(--ink)_8%,var(--paper-2))]",
|
|
16
16
|
ghost: "text-ink-2 hover:bg-paper-2 hover:text-ink",
|
|
@@ -50,8 +50,9 @@ function RangeSlider({
|
|
|
50
50
|
onValueChange?.(next);
|
|
51
51
|
return next;
|
|
52
52
|
};
|
|
53
|
+
const rect = useRef(null);
|
|
53
54
|
const fromX = (x) => {
|
|
54
|
-
const r =
|
|
55
|
+
const r = rect.current;
|
|
55
56
|
if (!r || !r.width) return min;
|
|
56
57
|
return min + Math.min(1, Math.max(0, (x - r.left) / r.width)) * span;
|
|
57
58
|
};
|
|
@@ -59,6 +60,8 @@ function RangeSlider({
|
|
|
59
60
|
const onDown = (e) => {
|
|
60
61
|
if (disabled || e.button !== 0) return;
|
|
61
62
|
e.preventDefault();
|
|
63
|
+
const tr = track.current?.getBoundingClientRect();
|
|
64
|
+
rect.current = tr ? { left: tr.left, width: tr.width } : null;
|
|
62
65
|
const v = fromX(e.clientX);
|
|
63
66
|
const [a, b] = latest.current;
|
|
64
67
|
const tie = a === b;
|
|
@@ -143,7 +143,7 @@ function PillSelect({ options = FREQ, value, defaultValue, onChange, label = "Fr
|
|
|
143
143
|
/* @__PURE__ */ jsx("span", { className: "inline-block", style: { animation: prev ? `aui044-in .5s ${EASE} both` : void 0 }, children: text }, current),
|
|
144
144
|
prev && /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "absolute left-0 top-0 inline-block", style: { animation: `aui044-out .45s ${EASE} both` }, children: prev }, `out-${current}`)
|
|
145
145
|
] }),
|
|
146
|
-
/* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
146
|
+
/* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: cx("h-[0.55em] w-[0.55em] shrink-0 self-center opacity-70 transition-transform duration-300", open && "rotate-180"), fill: "none", stroke: "currentColor", strokeWidth: "4", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "m6 9.5 6 6 6-6" }) })
|
|
147
147
|
]
|
|
148
148
|
}
|
|
149
149
|
),
|
|
@@ -30,22 +30,23 @@ function Field({ label, hint, error, required, aside, className, children }) {
|
|
|
30
30
|
/* @__PURE__ */ jsxs("div", { className: "flex items-baseline justify-between gap-3", children: [
|
|
31
31
|
/* @__PURE__ */ jsxs("label", { htmlFor: inputId, className: "text-[13px] font-medium tracking-[-0.01em] text-ink", children: [
|
|
32
32
|
label,
|
|
33
|
-
required && /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "ml-0.5 text-
|
|
33
|
+
required && /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "ml-0.5 text-ink", children: "*" })
|
|
34
34
|
] }),
|
|
35
35
|
aside && /* @__PURE__ */ jsx("span", { className: "text-[12px] tabular-nums text-mute", children: aside })
|
|
36
36
|
] }),
|
|
37
37
|
/* @__PURE__ */ jsx("div", { ref: wrap, children: input }),
|
|
38
|
-
/* @__PURE__ */ jsx("div", { className: "grid text-[12.5px] leading-snug", children: error ? /* @__PURE__ */ jsxs("p", { id: `${id}-error`, role: "alert", className: "flex items-start gap-1.5 text-
|
|
39
|
-
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0
|
|
40
|
-
/* @__PURE__ */ jsx("circle", { cx: "
|
|
41
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
38
|
+
/* @__PURE__ */ jsx("div", { className: "grid text-[12.5px] leading-snug", children: error ? /* @__PURE__ */ jsxs("p", { id: `${id}-error`, role: "alert", className: "flex items-start gap-1.5 text-ink animate-[kit-field-in_.3s_cubic-bezier(.16,1,.3,1)_both]", children: [
|
|
39
|
+
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: "mt-px h-3.5 w-3.5 shrink-0", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
40
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "8.5" }),
|
|
41
|
+
/* @__PURE__ */ jsx("path", { d: "M12 7.5v5" }),
|
|
42
|
+
/* @__PURE__ */ jsx("path", { d: "M12 16h.01" })
|
|
42
43
|
] }),
|
|
43
44
|
error
|
|
44
45
|
] }) : hint ? /* @__PURE__ */ jsx("p", { id: `${id}-hint`, className: "text-mute", children: hint }) : null }),
|
|
45
46
|
/* @__PURE__ */ jsx("style", { href: "asta-field", precedence: "asta", children: `@keyframes kit-field-in { from { opacity: 0; transform: translateY(-3px) } to { opacity: 1; transform: none } }` })
|
|
46
47
|
] });
|
|
47
48
|
}
|
|
48
|
-
var fieldInputClass = "h-10 w-full rounded-lg bg-paper px-3 text-[16px] sm:text-[14px] text-ink outline-none placeholder:text-mute shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_14%,transparent)] transition-shadow duration-200 hover:shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_24%,transparent)] focus:shadow-[inset_0_0_0_1px_var(--brand),0_0_0_3px_color-mix(in_srgb,var(--brand)_18%,transparent)] aria-[invalid=true]:shadow-[
|
|
49
|
+
var fieldInputClass = "h-10 w-full rounded-lg bg-paper px-3 text-[16px] sm:text-[14px] text-ink outline-none placeholder:text-mute shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_14%,transparent)] transition-shadow duration-200 hover:shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_24%,transparent)] focus:shadow-[inset_0_0_0_1px_var(--brand),0_0_0_3px_color-mix(in_srgb,var(--brand)_18%,transparent)] aria-[invalid=true]:shadow-[inset_0_0_0_1.5px_var(--ink),0_0_0_3px_color-mix(in_srgb,var(--ink)_12%,transparent)]";
|
|
49
50
|
var field_default = Field;
|
|
50
51
|
|
|
51
52
|
export {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Button
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5ZQ6PMJT.js";
|
|
5
5
|
|
|
6
6
|
// components/kit/footer.tsx
|
|
7
|
-
import { useRef, useState } from "react";
|
|
7
|
+
import { useEffect, useRef, useState } from "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
var cx = (...c) => c.filter(Boolean).join(" ");
|
|
10
10
|
var EASE = "ease-[cubic-bezier(.16,1,.3,1)]";
|
|
@@ -41,7 +41,7 @@ function Newsletter({ onSubscribe }) {
|
|
|
41
41
|
"flex h-11 items-center gap-1 rounded-[10px] bg-paper/10 p-1 pl-4 shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--paper)_14%,transparent)] transition-[opacity,transform,box-shadow] duration-500 focus-within:shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--paper)_45%,transparent)]",
|
|
42
42
|
EASE,
|
|
43
43
|
state === "done" && "pointer-events-none -translate-y-2 opacity-0",
|
|
44
|
-
state === "error" && "shadow-[
|
|
44
|
+
state === "error" && "shadow-[inset_0_0_0_1.5px_var(--paper)]"
|
|
45
45
|
),
|
|
46
46
|
children: [
|
|
47
47
|
/* @__PURE__ */ jsx("label", { htmlFor: "kit-footer-email", className: "sr-only", children: "Email address" }),
|
|
@@ -82,36 +82,99 @@ function Newsletter({ onSubscribe }) {
|
|
|
82
82
|
),
|
|
83
83
|
"aria-hidden": state !== "done",
|
|
84
84
|
children: [
|
|
85
|
-
/* @__PURE__ */ jsx("span", { className: "flex h-6 w-6 items-center justify-center rounded-full bg-brand text-
|
|
85
|
+
/* @__PURE__ */ jsx("span", { className: "flex h-6 w-6 items-center justify-center rounded-full bg-brand text-on-brand", children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: "h-3.5 w-3.5", fill: "none", stroke: "currentColor", strokeWidth: "3.3", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "m5 12.5 4.5 4.5L19 7.5", strokeDasharray: "20", style: { strokeDashoffset: state === "done" ? 0 : 20, transition: "stroke-dashoffset .5s .2s" } }) }) }),
|
|
86
86
|
"You're in. First letter lands next week."
|
|
87
87
|
]
|
|
88
88
|
}
|
|
89
89
|
),
|
|
90
|
-
/* @__PURE__ */ jsx("p", { id: "kit-footer-msg", role: "status", className: "mt-2 h-4 text-[12px] text-
|
|
90
|
+
/* @__PURE__ */ jsx("p", { id: "kit-footer-msg", role: "status", className: "mt-2 h-4 text-[12px] text-paper", children: state === "error" ? msg : "" })
|
|
91
91
|
] });
|
|
92
92
|
}
|
|
93
|
+
function lowerBound(a, v) {
|
|
94
|
+
let lo = 0;
|
|
95
|
+
let hi = a.length;
|
|
96
|
+
while (lo < hi) {
|
|
97
|
+
const mid = lo + hi >> 1;
|
|
98
|
+
if (a[mid] < v) lo = mid + 1;
|
|
99
|
+
else hi = mid;
|
|
100
|
+
}
|
|
101
|
+
return lo;
|
|
102
|
+
}
|
|
93
103
|
function Wordmark({ text }) {
|
|
94
104
|
const box = useRef(null);
|
|
95
|
-
const
|
|
105
|
+
const cache = useRef(null);
|
|
106
|
+
const live = useRef([0, 0]);
|
|
107
|
+
const px = useRef(null);
|
|
108
|
+
const raf = useRef(0);
|
|
109
|
+
const measure = () => {
|
|
96
110
|
const el = box.current;
|
|
97
|
-
if (!el
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
111
|
+
if (!el) return null;
|
|
112
|
+
const left = el.getBoundingClientRect().left;
|
|
113
|
+
const els = [...el.querySelectorAll("span[data-l]")];
|
|
114
|
+
const c = [];
|
|
115
|
+
const w = [];
|
|
116
|
+
let reach = 0;
|
|
117
|
+
for (const s of els) {
|
|
104
118
|
const r = s.getBoundingClientRect();
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
119
|
+
c.push(r.left - left + r.width / 2);
|
|
120
|
+
w.push(r.width);
|
|
121
|
+
reach = Math.max(reach, r.width * 2.5);
|
|
122
|
+
}
|
|
123
|
+
return cache.current = { els, c, w, reach, left, still: window.matchMedia("(prefers-reduced-motion: reduce)").matches };
|
|
124
|
+
};
|
|
125
|
+
const flush = () => {
|
|
126
|
+
raf.current = 0;
|
|
127
|
+
const d = cache.current;
|
|
128
|
+
if (!d) return;
|
|
129
|
+
const x = px.current === null ? null : px.current - d.left;
|
|
130
|
+
const [a0, b0] = live.current;
|
|
131
|
+
let a = 0;
|
|
132
|
+
let b = 0;
|
|
133
|
+
if (x !== null && !d.still) {
|
|
134
|
+
a = lowerBound(d.c, x - d.reach);
|
|
135
|
+
b = lowerBound(d.c, x + d.reach);
|
|
108
136
|
}
|
|
137
|
+
for (let i = a0; i < b0; i++) {
|
|
138
|
+
if (i >= a && i < b) continue;
|
|
139
|
+
d.els[i].style.transform = "";
|
|
140
|
+
d.els[i].style.opacity = "";
|
|
141
|
+
}
|
|
142
|
+
for (let i = a; i < b; i++) {
|
|
143
|
+
const k = Math.max(0, 1 - Math.abs(x - d.c[i]) / (d.w[i] * 2.5));
|
|
144
|
+
d.els[i].style.transform = `translateY(${-k * 14}%)`;
|
|
145
|
+
d.els[i].style.opacity = String(0.22 + k * 0.78);
|
|
146
|
+
}
|
|
147
|
+
live.current = [a, b];
|
|
109
148
|
};
|
|
149
|
+
const move = (x) => {
|
|
150
|
+
if (!cache.current) measure();
|
|
151
|
+
px.current = x;
|
|
152
|
+
if (!raf.current) raf.current = requestAnimationFrame(flush);
|
|
153
|
+
};
|
|
154
|
+
useEffect(() => {
|
|
155
|
+
const el = box.current;
|
|
156
|
+
if (!el) return;
|
|
157
|
+
cache.current = null;
|
|
158
|
+
live.current = [0, 0];
|
|
159
|
+
const ro = new ResizeObserver(() => {
|
|
160
|
+
cache.current = null;
|
|
161
|
+
});
|
|
162
|
+
ro.observe(el);
|
|
163
|
+
return () => {
|
|
164
|
+
ro.disconnect();
|
|
165
|
+
cancelAnimationFrame(raf.current);
|
|
166
|
+
raf.current = 0;
|
|
167
|
+
};
|
|
168
|
+
}, [text]);
|
|
110
169
|
return /* @__PURE__ */ jsx(
|
|
111
170
|
"div",
|
|
112
171
|
{
|
|
113
172
|
ref: box,
|
|
114
173
|
"aria-hidden": true,
|
|
174
|
+
onPointerEnter: (e) => {
|
|
175
|
+
measure();
|
|
176
|
+
move(e.clientX);
|
|
177
|
+
},
|
|
115
178
|
onPointerMove: (e) => move(e.clientX),
|
|
116
179
|
onPointerLeave: () => move(null),
|
|
117
180
|
className: "-mb-[0.18em] mt-6 flex select-none justify-center overflow-hidden pt-[0.1em] text-[clamp(3rem,19.5cqw,13rem)] font-semibold leading-[0.9] tracking-[-0.06em]",
|
|
@@ -18,7 +18,7 @@ function pageRange(page, count, siblings = 1, boundaries = 1) {
|
|
|
18
18
|
if (!showEnd) return [...head, "start-gap", ...range(count - (total - boundaries - 2), count)];
|
|
19
19
|
return [...head, "start-gap", ...range(left, right), "end-gap", ...tail];
|
|
20
20
|
}
|
|
21
|
-
var Arrow = ({ dir }) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
21
|
+
var Arrow = ({ dir }) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: "h-4 w-4", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: dir === 1 ? "M9.5 6l6 6-6 6" : "M14.5 6l-6 6 6 6" }) });
|
|
22
22
|
function Pagination({ count, page, defaultPage = 1, onPageChange, siblings = 1, boundaries = 1, size = "md", label = "Pagination", className }) {
|
|
23
23
|
const [inner, setInner] = useState(defaultPage);
|
|
24
24
|
const pages = Math.max(1, count);
|