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
|
@@ -19,13 +19,15 @@ var sameDay = (a, b) => !!a && !!b && day0(a).getTime() === day0(b).getTime();
|
|
|
19
19
|
var key = (d) => `${d.getFullYear()}-${String(d.getMonth() + 1).padStart(2, "0")}-${String(d.getDate()).padStart(2, "0")}`;
|
|
20
20
|
var clamp = (d, min, max) => min && d < day0(min) ? day0(min) : max && d > day0(max) ? day0(max) : d;
|
|
21
21
|
function CalendarIcon() {
|
|
22
|
-
return /* @__PURE__ */ jsxs("svg", { viewBox: "0 0
|
|
23
|
-
/* @__PURE__ */ jsx("rect", { x: "
|
|
24
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
22
|
+
return /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: "h-4 w-4 shrink-0 text-mute", fill: "none", stroke: "currentColor", strokeWidth: "2.25", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
23
|
+
/* @__PURE__ */ jsx("rect", { x: "4", y: "5.5", width: "16", height: "14.5", rx: "2" }),
|
|
24
|
+
/* @__PURE__ */ jsx("path", { d: "M4 10h16" }),
|
|
25
|
+
/* @__PURE__ */ jsx("path", { d: "M8.5 3.5v4" }),
|
|
26
|
+
/* @__PURE__ */ jsx("path", { d: "M15.5 3.5v4" })
|
|
25
27
|
] });
|
|
26
28
|
}
|
|
27
29
|
function Arrow({ dir }) {
|
|
28
|
-
return /* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
30
|
+
return /* @__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" }) });
|
|
29
31
|
}
|
|
30
32
|
function DatePicker(props) {
|
|
31
33
|
const { locale = "en-US", weekStartsOn = 0, min, max, placeholder, label, name, disabled, size = "md", className } = props;
|
|
@@ -283,7 +285,7 @@ function DatePicker(props) {
|
|
|
283
285
|
className: cx(
|
|
284
286
|
"relative mx-auto flex h-9 w-9 items-center justify-center rounded-lg text-[13px] tabular-nums outline-none transition-colors duration-150",
|
|
285
287
|
"focus-visible:ring-2 focus-visible:ring-brand/50 disabled:cursor-not-allowed disabled:opacity-30",
|
|
286
|
-
picked ? "font-medium text-
|
|
288
|
+
picked ? "font-medium text-on-brand" : inMonth ? "text-ink hover:bg-paper-2" : "text-mute hover:bg-paper-2"
|
|
287
289
|
),
|
|
288
290
|
children: [
|
|
289
291
|
picked && /* @__PURE__ */ jsx(
|
|
@@ -295,7 +297,7 @@ function DatePicker(props) {
|
|
|
295
297
|
key(d)
|
|
296
298
|
),
|
|
297
299
|
/* @__PURE__ */ jsx("span", { className: "relative", children: d.getDate() }),
|
|
298
|
-
isToday && /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: cx("absolute bottom-1 left-1/2 h-1 w-1 -translate-x-1/2 rounded-full", picked ? "bg-
|
|
300
|
+
isToday && /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: cx("absolute bottom-1 left-1/2 h-1 w-1 -translate-x-1/2 rounded-full", picked ? "bg-on-brand" : "bg-brand") })
|
|
299
301
|
]
|
|
300
302
|
}
|
|
301
303
|
)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
// components/kit/ai-chat.tsx
|
|
4
|
-
import { useEffect, useId, useLayoutEffect, useRef, useState } from "react";
|
|
4
|
+
import { memo, useCallback, useEffect, useId, useLayoutEffect, useRef, useState } from "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { createElement } from "react";
|
|
7
7
|
var cx = (...c) => c.filter(Boolean).join(" ");
|
|
@@ -14,9 +14,9 @@ var KEYFRAMES = `@keyframes kit-ac-tok { from { opacity: 0 } }
|
|
|
14
14
|
var seq = 0;
|
|
15
15
|
var uid = () => `m${Date.now().toString(36)}${(seq++).toString(36)}`;
|
|
16
16
|
function Mark() {
|
|
17
|
-
return /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "grid h-7 w-7 shrink-0 place-items-center rounded-lg bg-[color-mix(in_srgb,var(--brand)_10%,transparent)] text-brand", children: /* @__PURE__ */ jsxs("svg", { viewBox: "0 0
|
|
18
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
19
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
17
|
+
return /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "grid h-7 w-7 shrink-0 place-items-center rounded-lg bg-[color-mix(in_srgb,var(--brand)_10%,transparent)] text-brand", children: /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: "h-3.5 w-3.5", fill: "currentColor", children: [
|
|
18
|
+
/* @__PURE__ */ jsx("path", { d: "M12 3.5c.7 4.6 2.4 6.3 7 7-4.6.7-6.3 2.4-7 7-.7-4.6-2.4-6.3-7-7 4.6-.7 6.3-2.4 7-7Z" }),
|
|
19
|
+
/* @__PURE__ */ jsx("path", { d: "M19 16.5c.25 1.6.9 2.25 2.5 2.5-1.6.25-2.25.9-2.5 2.5-.25-1.6-.9-2.25-2.5-2.5 1.6-.25 2.25-.9 2.5-2.5Z", opacity: ".55" })
|
|
20
20
|
] }) });
|
|
21
21
|
}
|
|
22
22
|
function IconButton({ label, onClick, children }) {
|
|
@@ -32,7 +32,38 @@ function IconButton({ label, onClick, children }) {
|
|
|
32
32
|
}
|
|
33
33
|
);
|
|
34
34
|
}
|
|
35
|
-
var svg = { viewBox: "0 0
|
|
35
|
+
var svg = { viewBox: "0 0 24 24", className: "h-3.5 w-3.5", fill: "none", stroke: "currentColor", strokeWidth: 2.25, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true };
|
|
36
|
+
var Batch = memo(function Batch2({ tokens }) {
|
|
37
|
+
return tokens.map((t, i) => /* @__PURE__ */ jsx("span", { style: { animation: `kit-ac-tok .5s ${CURVE}` }, children: t }, i));
|
|
38
|
+
});
|
|
39
|
+
var Message = memo(function Message2({ m, live, waiting, parts, isLast, copied, onCopy, onRegenerate }) {
|
|
40
|
+
if (m.role === "user") {
|
|
41
|
+
return /* @__PURE__ */ jsx("li", { className: "flex justify-end", style: { animation: `kit-ac-in .4s ${CURVE}` }, children: /* @__PURE__ */ jsx("p", { className: "max-w-[80%] whitespace-pre-wrap rounded-xl bg-paper-2 px-3.5 py-2.5 text-[14px] leading-relaxed text-ink", children: m.content }) });
|
|
42
|
+
}
|
|
43
|
+
return /* @__PURE__ */ jsxs("li", { className: "group flex gap-3", children: [
|
|
44
|
+
/* @__PURE__ */ jsx(Mark, {}),
|
|
45
|
+
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1 pt-0.5", children: [
|
|
46
|
+
live && waiting ? /* @__PURE__ */ jsx("span", { role: "img", className: "inline-flex h-6 items-center gap-1", "aria-label": "Thinking", children: [0, 1, 2].map((i) => /* @__PURE__ */ jsx("span", { className: "h-1.5 w-1.5 rounded-full bg-mute", style: { animation: `kit-ac-dot 1.1s ${CURVE} ${i * 140}ms infinite` } }, i)) }) : /* @__PURE__ */ jsx("p", { className: "whitespace-pre-wrap text-[14px] leading-relaxed text-ink", children: parts && parts.length ? parts.map((b, i) => /* @__PURE__ */ jsx(Batch, { tokens: b }, i)) : m.content }),
|
|
47
|
+
!live && (m.stopped || m.failed) && /* @__PURE__ */ jsx("p", { className: "mt-1.5 text-[12.5px] text-mute", children: m.failed ? "Something went wrong. Try again." : "Stopped." }),
|
|
48
|
+
!live && /* @__PURE__ */ jsxs(
|
|
49
|
+
"div",
|
|
50
|
+
{
|
|
51
|
+
className: cx(
|
|
52
|
+
"mt-1.5 -ml-1.5 flex items-center gap-0.5 transition-opacity duration-300",
|
|
53
|
+
isLast ? "opacity-100" : "opacity-0 group-hover:opacity-100 focus-within:opacity-100"
|
|
54
|
+
),
|
|
55
|
+
children: [
|
|
56
|
+
m.content && /* @__PURE__ */ jsx(IconButton, { label: copied ? "Copied" : "Copy", onClick: () => onCopy(m), children: copied ? /* @__PURE__ */ createElement("svg", { ...svg, key: "ok", style: { animation: `kit-ac-pop .3s ${CURVE}` } }, /* @__PURE__ */ jsx("path", { d: "m5 12.5 4.5 4.5L19 7.5" })) : /* @__PURE__ */ createElement("svg", { ...svg, key: "copy" }, /* @__PURE__ */ jsx("rect", { x: "8.5", y: "8.5", width: "11", height: "11", rx: "2" }), /* @__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" })) }),
|
|
57
|
+
isLast && /* @__PURE__ */ jsx(IconButton, { label: "Regenerate", onClick: onRegenerate, children: /* @__PURE__ */ jsxs("svg", { ...svg, children: [
|
|
58
|
+
/* @__PURE__ */ jsx("path", { d: "M19.5 12a7.5 7.5 0 1 1-2.2-5.3" }),
|
|
59
|
+
/* @__PURE__ */ jsx("path", { d: "M19.5 4.5v3.5H16" })
|
|
60
|
+
] }) })
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
)
|
|
64
|
+
] })
|
|
65
|
+
] });
|
|
66
|
+
});
|
|
36
67
|
function AiChat({
|
|
37
68
|
onSend,
|
|
38
69
|
defaultMessages = [],
|
|
@@ -56,6 +87,7 @@ function AiChat({
|
|
|
56
87
|
const area = useRef(null);
|
|
57
88
|
const pinned = useRef(true);
|
|
58
89
|
const copyTimer = useRef(void 0);
|
|
90
|
+
const pending = useRef({ id: "", tokens: [], frame: 0, text: "" });
|
|
59
91
|
const notify = useRef(onMessagesChange);
|
|
60
92
|
useEffect(() => {
|
|
61
93
|
notify.current = onMessagesChange;
|
|
@@ -65,9 +97,21 @@ function AiChat({
|
|
|
65
97
|
ctrl.current?.abort();
|
|
66
98
|
ctrl.current = null;
|
|
67
99
|
clearTimeout(copyTimer.current);
|
|
100
|
+
cancelAnimationFrame(pending.current.frame);
|
|
68
101
|
},
|
|
69
102
|
[]
|
|
70
103
|
);
|
|
104
|
+
const flush = () => {
|
|
105
|
+
const p = pending.current;
|
|
106
|
+
cancelAnimationFrame(p.frame);
|
|
107
|
+
p.frame = 0;
|
|
108
|
+
if (!p.tokens.length) return;
|
|
109
|
+
const batch = p.tokens;
|
|
110
|
+
const id = p.id;
|
|
111
|
+
p.tokens = [];
|
|
112
|
+
setWaiting(false);
|
|
113
|
+
setChunks((all) => ({ ...all, [id]: [...all[id] ?? [], batch] }));
|
|
114
|
+
};
|
|
71
115
|
useLayoutEffect(() => {
|
|
72
116
|
const el = list.current;
|
|
73
117
|
if (el && pinned.current) el.scrollTop = el.scrollHeight;
|
|
@@ -90,11 +134,15 @@ function AiChat({
|
|
|
90
134
|
setWaiting(true);
|
|
91
135
|
setChunks({ [id]: [] });
|
|
92
136
|
setStatus("Assistant is replying.");
|
|
137
|
+
cancelAnimationFrame(pending.current.frame);
|
|
138
|
+
pending.current = { id, tokens: [], frame: 0, text: "" };
|
|
93
139
|
const push = (t) => {
|
|
94
|
-
if (!t) return;
|
|
140
|
+
if (!t || ctrl.current !== c) return;
|
|
95
141
|
reply += t;
|
|
96
|
-
|
|
97
|
-
|
|
142
|
+
const p = pending.current;
|
|
143
|
+
p.text = reply;
|
|
144
|
+
p.tokens.push(t);
|
|
145
|
+
if (!p.frame) p.frame = requestAnimationFrame(flush);
|
|
98
146
|
};
|
|
99
147
|
try {
|
|
100
148
|
const out = onSend({ prompt, messages: history, signal: c.signal });
|
|
@@ -112,6 +160,7 @@ function AiChat({
|
|
|
112
160
|
}
|
|
113
161
|
if (ctrl.current !== c) return;
|
|
114
162
|
ctrl.current = null;
|
|
163
|
+
flush();
|
|
115
164
|
const msg = { id, role: "assistant", content: reply, ...failed && { failed: true } };
|
|
116
165
|
commit([...history, msg]);
|
|
117
166
|
setStreaming(null);
|
|
@@ -131,7 +180,8 @@ function AiChat({
|
|
|
131
180
|
c.abort();
|
|
132
181
|
ctrl.current = null;
|
|
133
182
|
const id = streaming;
|
|
134
|
-
|
|
183
|
+
flush();
|
|
184
|
+
const reply = pending.current.id === id ? pending.current.text : "";
|
|
135
185
|
commit([...messages, { id, role: "assistant", content: reply, stopped: true }]);
|
|
136
186
|
setStreaming(null);
|
|
137
187
|
setWaiting(false);
|
|
@@ -154,6 +204,12 @@ function AiChat({
|
|
|
154
204
|
setStatus("Couldn't copy.");
|
|
155
205
|
}
|
|
156
206
|
};
|
|
207
|
+
const actions = useRef({ copy, regenerate });
|
|
208
|
+
useLayoutEffect(() => {
|
|
209
|
+
actions.current = { copy, regenerate };
|
|
210
|
+
});
|
|
211
|
+
const onCopy = useCallback((m) => actions.current.copy(m), []);
|
|
212
|
+
const onRegenerate = useCallback(() => actions.current.regenerate(), []);
|
|
157
213
|
const shown = streaming ? [...messages, { id: streaming, role: "assistant", content: "" }] : messages;
|
|
158
214
|
const empty = shown.length === 0;
|
|
159
215
|
const lastId = shown[shown.length - 1]?.id;
|
|
@@ -197,34 +253,20 @@ function AiChat({
|
|
|
197
253
|
},
|
|
198
254
|
s
|
|
199
255
|
)) })
|
|
200
|
-
] }) : /* @__PURE__ */ jsx("ol", { className: "flex flex-col gap-6 py-2", children: shown.map((m) =>
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
{
|
|
215
|
-
className: cx(
|
|
216
|
-
"mt-1.5 -ml-1.5 flex items-center gap-0.5 transition-opacity duration-300",
|
|
217
|
-
isLast ? "opacity-100" : "opacity-0 group-hover:opacity-100 focus-within:opacity-100"
|
|
218
|
-
),
|
|
219
|
-
children: [
|
|
220
|
-
m.content && /* @__PURE__ */ jsx(IconButton, { label: copied === m.id ? "Copied" : "Copy", onClick: () => copy(m), children: copied === m.id ? /* @__PURE__ */ createElement("svg", { ...svg, key: "ok", style: { animation: `kit-ac-pop .3s ${CURVE}` } }, /* @__PURE__ */ jsx("path", { d: "m3.5 8.5 3 3 6-7" })) : /* @__PURE__ */ createElement("svg", { ...svg, key: "copy" }, /* @__PURE__ */ jsx("rect", { x: "5.5", y: "5.5", width: "8", height: "8", rx: "1.8" }), /* @__PURE__ */ jsx("path", { d: "M10.5 5.5V4a1.5 1.5 0 0 0-1.5-1.5H4A1.5 1.5 0 0 0 2.5 4v5A1.5 1.5 0 0 0 4 10.5h1.5" })) }),
|
|
221
|
-
isLast && /* @__PURE__ */ jsx(IconButton, { label: "Regenerate", onClick: regenerate, children: /* @__PURE__ */ jsx("svg", { ...svg, children: /* @__PURE__ */ jsx("path", { d: "M13 8a5 5 0 1 1-1.5-3.6M13 2.5v2.5h-2.5" }) }) })
|
|
222
|
-
]
|
|
223
|
-
}
|
|
224
|
-
)
|
|
225
|
-
] })
|
|
226
|
-
] }, m.id);
|
|
227
|
-
}) })
|
|
256
|
+
] }) : /* @__PURE__ */ jsx("ol", { className: "flex flex-col gap-6 py-2", children: shown.map((m) => /* @__PURE__ */ jsx(
|
|
257
|
+
Message,
|
|
258
|
+
{
|
|
259
|
+
m,
|
|
260
|
+
live: m.id === streaming,
|
|
261
|
+
waiting: m.id === streaming && waiting,
|
|
262
|
+
parts: chunks[m.id],
|
|
263
|
+
isLast: m.id === lastId,
|
|
264
|
+
copied: copied === m.id,
|
|
265
|
+
onCopy,
|
|
266
|
+
onRegenerate
|
|
267
|
+
},
|
|
268
|
+
m.id
|
|
269
|
+
)) })
|
|
228
270
|
}
|
|
229
271
|
),
|
|
230
272
|
/* @__PURE__ */ jsxs(
|
|
@@ -278,9 +320,12 @@ function AiChat({
|
|
|
278
320
|
type: "submit",
|
|
279
321
|
"aria-label": "Send",
|
|
280
322
|
disabled: !text.trim(),
|
|
281
|
-
className: "grid h-9 w-9 shrink-0 place-items-center rounded-lg bg-brand text-
|
|
323
|
+
className: "grid h-9 w-9 shrink-0 place-items-center rounded-lg bg-brand text-on-brand outline-none transition-[opacity,transform] duration-200 active:scale-95 disabled:opacity-35 focus-visible:ring-2 focus-visible:ring-brand/50 focus-visible:ring-offset-2 focus-visible:ring-offset-paper",
|
|
282
324
|
style: { animation: `kit-ac-pop .3s ${CURVE}` },
|
|
283
|
-
children: /* @__PURE__ */
|
|
325
|
+
children: /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: "h-4 w-4", fill: "none", stroke: "currentColor", strokeWidth: "2.55", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
326
|
+
/* @__PURE__ */ jsx("path", { d: "M12 20V5" }),
|
|
327
|
+
/* @__PURE__ */ jsx("path", { d: "m6 11 6-6 6 6" })
|
|
328
|
+
] })
|
|
284
329
|
},
|
|
285
330
|
"send"
|
|
286
331
|
)
|
|
@@ -43,7 +43,8 @@ var PATH = [
|
|
|
43
43
|
2466.2
|
|
44
44
|
];
|
|
45
45
|
var FIRST = WINDOW;
|
|
46
|
-
var
|
|
46
|
+
var USD2 = new Intl.NumberFormat("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 });
|
|
47
|
+
var money = (n) => `$${USD2.format(n)}`;
|
|
47
48
|
function Roll({ value, instant }) {
|
|
48
49
|
const chars = value.split("");
|
|
49
50
|
return /* @__PURE__ */ jsx("span", { className: "inline-flex items-start leading-[1.1em] tabular-nums", "aria-label": value, children: chars.map((c, i) => {
|
|
@@ -91,9 +92,15 @@ function PriceAlert() {
|
|
|
91
92
|
}, []);
|
|
92
93
|
useEffect(() => {
|
|
93
94
|
if (paused) return;
|
|
94
|
-
const t =
|
|
95
|
+
const t = /* @__PURE__ */ new Set();
|
|
95
96
|
let alive = true;
|
|
96
|
-
const later = (ms, f) =>
|
|
97
|
+
const later = (ms, f) => {
|
|
98
|
+
const id = setTimeout(() => {
|
|
99
|
+
t.delete(id);
|
|
100
|
+
if (alive) f();
|
|
101
|
+
}, ms);
|
|
102
|
+
t.add(id);
|
|
103
|
+
};
|
|
97
104
|
const cycle = () => {
|
|
98
105
|
if (k.current >= PATH.length) {
|
|
99
106
|
setFade(true);
|
|
@@ -9,7 +9,7 @@ var KEYFRAMES = `@keyframes asta-ws-in { from { opacity: 0; transform: translate
|
|
|
9
9
|
function Logo({ ws, size }) {
|
|
10
10
|
const box = size === "sm" ? "h-6 w-6 rounded-[6px] text-[11.5px]" : "h-8 w-8 rounded-[8px] text-[13px]";
|
|
11
11
|
if (ws.logo) return /* @__PURE__ */ jsx("img", { src: ws.logo, alt: "", width: 32, height: 32, loading: "lazy", className: cx(box, "shrink-0 object-cover") });
|
|
12
|
-
return /* @__PURE__ */ jsx("span", { className: cx(box, "grid shrink-0 place-items-center bg-brand font-semibold text-
|
|
12
|
+
return /* @__PURE__ */ jsx("span", { className: cx(box, "grid shrink-0 place-items-center bg-brand font-semibold text-on-brand"), children: ws.name.slice(0, 1).toUpperCase() });
|
|
13
13
|
}
|
|
14
14
|
var Check = () => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: "h-4 w-4 text-brand", fill: "none", stroke: "currentColor", strokeWidth: 2.2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "m5 12.5 4.5 4.5L19 7.5" }) });
|
|
15
15
|
function WorkspaceSwitcher({ workspaces, value, defaultValue, onChange, onCreate, createLabel = "New workspace", account, footer, className }) {
|
|
@@ -85,7 +85,7 @@ function WorkspaceSwitcher({ workspaces, value, defaultValue, onChange, onCreate
|
|
|
85
85
|
/* @__PURE__ */ jsx(Logo, { ws: current, size: "sm" }),
|
|
86
86
|
/* @__PURE__ */ jsx("span", { className: "min-w-0 flex-1 truncate text-[13.5px] font-medium text-ink", children: current.name }),
|
|
87
87
|
current.plan && /* @__PURE__ */ jsx("span", { className: "shrink-0 rounded-[5px] bg-[color-mix(in_srgb,var(--brand)_12%,transparent)] px-1.5 py-0.5 text-[11px] font-medium text-brand", children: current.plan }),
|
|
88
|
-
/* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: cx("h-3.5 w-3.5 shrink-0 text-mute transition-transform duration-300 ease-[cubic-bezier(.16,1,.3,1)]", open && "rotate-180"), fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "m6 9 6 6 6-6" }) })
|
|
88
|
+
/* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: cx("h-3.5 w-3.5 shrink-0 text-mute transition-transform duration-300 ease-[cubic-bezier(.16,1,.3,1)]", open && "rotate-180"), fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "m6 9.5 6 6 6-6" }) })
|
|
89
89
|
]
|
|
90
90
|
}
|
|
91
91
|
),
|
|
@@ -147,7 +147,10 @@ function WorkspaceSwitcher({ workspaces, value, defaultValue, onChange, onCreate
|
|
|
147
147
|
onClick: () => choose(workspaces.length),
|
|
148
148
|
className: cx("mt-1 flex cursor-pointer items-center gap-2.5 rounded-[8px] px-2 py-1.5 text-[13px] text-ink-2 transition-colors duration-100", active === workspaces.length && "bg-[color-mix(in_srgb,var(--ink)_6%,transparent)] text-ink"),
|
|
149
149
|
children: [
|
|
150
|
-
/* @__PURE__ */ jsx("span", { className: "grid h-8 w-8 place-items-center rounded-[8px] shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_14%,transparent)]", children: /* @__PURE__ */
|
|
150
|
+
/* @__PURE__ */ jsx("span", { className: "grid h-8 w-8 place-items-center rounded-[8px] shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_14%,transparent)]", children: /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: "h-4 w-4", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
151
|
+
/* @__PURE__ */ jsx("path", { d: "M12 5v14" }),
|
|
152
|
+
/* @__PURE__ */ jsx("path", { d: "M5 12h14" })
|
|
153
|
+
] }) }),
|
|
151
154
|
createLabel
|
|
152
155
|
]
|
|
153
156
|
}
|
|
@@ -79,7 +79,7 @@ function Drawer({ open, onOpenChange, side = "right", title, description, childr
|
|
|
79
79
|
const onDragStart = (e) => {
|
|
80
80
|
if (!canDrag || e.button !== 0 || !open) return;
|
|
81
81
|
e.currentTarget.setPointerCapture(e.pointerId);
|
|
82
|
-
drag.current = { y: e.clientY, t: e.timeStamp, dy: 0, v: 0 };
|
|
82
|
+
drag.current = { y: e.clientY, t: e.timeStamp, dy: 0, v: 0, h: panel.current?.offsetHeight || 1 };
|
|
83
83
|
panel.current?.getAnimations().forEach((a) => a.cancel());
|
|
84
84
|
};
|
|
85
85
|
const onDragMove = (e) => {
|
|
@@ -92,14 +92,14 @@ function Drawer({ open, onOpenChange, side = "right", title, description, childr
|
|
|
92
92
|
d.t = e.timeStamp;
|
|
93
93
|
d.dy = dy;
|
|
94
94
|
p.style.transform = `translateY(${dy}px)`;
|
|
95
|
-
if (overlay.current) overlay.current.style.opacity = String(Math.max(0, 1 - Math.max(0, dy) /
|
|
95
|
+
if (overlay.current) overlay.current.style.opacity = String(Math.max(0, 1 - Math.max(0, dy) / d.h));
|
|
96
96
|
};
|
|
97
97
|
const onDragEnd = () => {
|
|
98
98
|
const d = drag.current;
|
|
99
99
|
const p = panel.current;
|
|
100
100
|
drag.current = null;
|
|
101
101
|
if (!d || !p) return;
|
|
102
|
-
if (d.dy >
|
|
102
|
+
if (d.dy > d.h * 0.3 || d.v > 0.6) return onOpenChange(false);
|
|
103
103
|
const from = p.style.transform;
|
|
104
104
|
p.style.transform = "";
|
|
105
105
|
if (overlay.current) overlay.current.style.opacity = "";
|
|
@@ -152,7 +152,10 @@ function Drawer({ open, onOpenChange, side = "right", title, description, childr
|
|
|
152
152
|
"aria-label": "Close",
|
|
153
153
|
onClick: () => onOpenChange(false),
|
|
154
154
|
className: "-mr-1.5 -mt-1 flex h-8 w-8 shrink-0 items-center justify-center rounded-lg text-mute outline-none transition-colors duration-200 hover:bg-paper-2 hover:text-ink focus-visible:ring-2 focus-visible:ring-brand/50",
|
|
155
|
-
children: /* @__PURE__ */
|
|
155
|
+
children: /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: "h-3.5 w-3.5", fill: "none", stroke: "currentColor", strokeWidth: "2.55", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
156
|
+
/* @__PURE__ */ jsx("path", { d: "m6 6 12 12" }),
|
|
157
|
+
/* @__PURE__ */ jsx("path", { d: "M18 6 6 18" })
|
|
158
|
+
] })
|
|
156
159
|
}
|
|
157
160
|
)
|
|
158
161
|
] }),
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
Select
|
|
4
|
-
} from "./chunk-JLCSRNI2.js";
|
|
5
2
|
import {
|
|
6
3
|
Button
|
|
7
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HSDMCZMX.js";
|
|
8
5
|
import {
|
|
9
6
|
Input
|
|
10
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YV5WZJGS.js";
|
|
11
8
|
|
|
12
9
|
// components/kit/base/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(
|
|
@@ -131,7 +131,7 @@ function Circle({ on }) {
|
|
|
131
131
|
return /* @__PURE__ */ jsxs("span", { "aria-hidden": true, className: "relative grid h-[18px] w-[18px] shrink-0 place-items-center", children: [
|
|
132
132
|
/* @__PURE__ */ jsx("span", { className: "absolute inset-0 rounded-full shadow-[inset_0_0_0_1.5px_color-mix(in_srgb,var(--ink)_24%,transparent)] transition-opacity duration-200 group-hover/task:shadow-[inset_0_0_0_1.5px_color-mix(in_srgb,var(--ink)_42%,transparent)]", style: { opacity: on ? 0 : 1 } }),
|
|
133
133
|
/* @__PURE__ */ jsx("span", { className: "absolute inset-0 rounded-full bg-brand transition-[transform,opacity] duration-500", style: { transform: on ? "scale(1)" : "scale(0.3)", opacity: on ? 1 : 0, transitionTimingFunction: SPRING } }),
|
|
134
|
-
/* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
134
|
+
/* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: "relative h-[11px] w-[11px] text-on-brand", fill: "none", stroke: "currentColor", strokeWidth: "3.9", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsx("path", { d: "m5 12.5 4.5 4.5L19 7.5", pathLength: 1, strokeDasharray: "1", className: "transition-[stroke-dashoffset]", style: { strokeDashoffset: on ? 0 : 1, transitionDuration: on ? "380ms" : "100ms", transitionDelay: on ? "100ms" : "0ms", transitionTimingFunction: EASE } }) })
|
|
135
135
|
] });
|
|
136
136
|
}
|
|
137
137
|
var checkbox_aui_053_default = TaskCheckbox;
|
|
@@ -19,12 +19,12 @@ function Speaker({ level }) {
|
|
|
19
19
|
const on = !muted && level > i * 33;
|
|
20
20
|
return { opacity: on ? 1 : 0, transform: on ? "scale(1)" : "scale(.6)", transformOrigin: "6px 10px", transition: `transform 360ms ${SPRING} ${i * 40}ms, opacity 240ms ${EASE} ${i * 40}ms` };
|
|
21
21
|
};
|
|
22
|
-
return /* @__PURE__ */ jsxs("svg", { viewBox: "0 0
|
|
23
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
24
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
25
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
26
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
27
|
-
/* @__PURE__ */ jsx("g", { style: { opacity: muted ? 1 : 0, transform: muted ? "scale(1)" : "scale(.4)", transformOrigin: "
|
|
22
|
+
return /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: "h-[18px] w-[18px]", fill: "none", stroke: "currentColor", strokeWidth: "1.92", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
23
|
+
/* @__PURE__ */ jsx("path", { d: "M4 9.5h3.5L12 5.5v13l-4.5-4H4Z", fill: "currentColor", fillOpacity: "0.12" }),
|
|
24
|
+
/* @__PURE__ */ jsx("path", { d: "M15.5 9a4 4 0 0 1 0 6", style: wave(0) }),
|
|
25
|
+
/* @__PURE__ */ jsx("path", { d: "M17.3 7.2a6.6 6.6 0 0 1 0 9.6", style: wave(1) }),
|
|
26
|
+
/* @__PURE__ */ jsx("path", { d: "M19.1 5.3a9.6 9.6 0 0 1 0 13.4", style: wave(2) }),
|
|
27
|
+
/* @__PURE__ */ jsx("g", { style: { opacity: muted ? 1 : 0, transform: muted ? "scale(1)" : "scale(.4)", transformOrigin: "18px 12px", transition: `transform 360ms ${SPRING}, opacity 200ms ${EASE}` }, children: /* @__PURE__ */ jsx("path", { d: "m15.5 9.5 5 5M20.5 9.5l-5 5" }) })
|
|
28
28
|
] });
|
|
29
29
|
}
|
|
30
30
|
function VolumeSlider({ value, defaultValue = 64, onValueChange, title = "Slow Tide", artist = "Mira Sol", art = "/lab/art/hoarfrost.webp", disabled, name, className }) {
|
|
@@ -98,7 +98,7 @@ function VolumeSlider({ value, defaultValue = 64, onValueChange, title = "Slow T
|
|
|
98
98
|
onClick: () => setPlaying((p) => !p),
|
|
99
99
|
className: "grid h-10 w-10 shrink-0 place-items-center rounded-full bg-ink text-paper outline-none transition-transform duration-200 hover:scale-105 active:scale-95 focus-visible:ring-2 focus-visible:ring-brand/50 focus-visible:ring-offset-2 focus-visible:ring-offset-paper",
|
|
100
100
|
style: rise(2),
|
|
101
|
-
children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
101
|
+
children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: "h-3.5 w-3.5", fill: "currentColor", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: playing ? /* @__PURE__ */ jsx("path", { d: "M8.5 5.5v13M15.5 5.5v13", strokeWidth: "3.75" }) : /* @__PURE__ */ jsx("path", { d: "M7.5 5v14l11-7Z" }) })
|
|
102
102
|
}
|
|
103
103
|
)
|
|
104
104
|
] }),
|
|
@@ -105,9 +105,9 @@ function CommandPalette({ open, onOpenChange, commands, groups, placeholder = "T
|
|
|
105
105
|
children: [
|
|
106
106
|
/* @__PURE__ */ jsx(D.Title, { className: "sr-only", children: "Command palette" }),
|
|
107
107
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2.5 px-4 shadow-[inset_0_-1px_0_color-mix(in_srgb,var(--ink)_8%,transparent)]", children: [
|
|
108
|
-
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0
|
|
109
|
-
/* @__PURE__ */ jsx("circle", { cx: "
|
|
110
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
108
|
+
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: "h-4 w-4 shrink-0 text-mute", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
109
|
+
/* @__PURE__ */ jsx("circle", { cx: "10.5", cy: "10.5", r: "6" }),
|
|
110
|
+
/* @__PURE__ */ jsx("path", { d: "m15 15 5 5", strokeLinecap: "round" })
|
|
111
111
|
] }),
|
|
112
112
|
/* @__PURE__ */ jsx(
|
|
113
113
|
"input",
|
|
@@ -168,18 +168,21 @@ function CommandPalette({ open, onOpenChange, commands, groups, placeholder = "T
|
|
|
168
168
|
),
|
|
169
169
|
/* @__PURE__ */ jsx("span", { className: "min-w-0 flex-1 truncate", children: /* @__PURE__ */ jsx(Highlight, { text: c.label, hits }) }),
|
|
170
170
|
c.shortcut && /* @__PURE__ */ jsx("kbd", { className: "font-sans text-[11.5px] text-mute", children: c.shortcut }),
|
|
171
|
-
on && /* @__PURE__ */
|
|
171
|
+
on && /* @__PURE__ */ jsxs(
|
|
172
172
|
"svg",
|
|
173
173
|
{
|
|
174
|
-
viewBox: "0 0
|
|
174
|
+
viewBox: "0 0 24 24",
|
|
175
175
|
className: "h-3.5 w-3.5 text-mute",
|
|
176
176
|
fill: "none",
|
|
177
177
|
stroke: "currentColor",
|
|
178
|
-
strokeWidth: "
|
|
178
|
+
strokeWidth: "2.4",
|
|
179
179
|
strokeLinecap: "round",
|
|
180
180
|
strokeLinejoin: "round",
|
|
181
181
|
"aria-hidden": true,
|
|
182
|
-
children:
|
|
182
|
+
children: [
|
|
183
|
+
/* @__PURE__ */ jsx("path", { d: "M19 5v6.5a2.5 2.5 0 0 1-2.5 2.5H5" }),
|
|
184
|
+
/* @__PURE__ */ jsx("path", { d: "m9 10-4 4 4 4" })
|
|
185
|
+
]
|
|
183
186
|
}
|
|
184
187
|
)
|
|
185
188
|
]
|
|
@@ -189,9 +192,10 @@ function CommandPalette({ open, onOpenChange, commands, groups, placeholder = "T
|
|
|
189
192
|
})
|
|
190
193
|
] }, s.group)),
|
|
191
194
|
flat.length === 0 && /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center px-4 py-10 text-center", role: "status", children: [
|
|
192
|
-
/* @__PURE__ */ jsx("span", { className: "flex h-10 w-10 items-center justify-center rounded-full bg-paper-2 text-mute", children: /* @__PURE__ */ jsxs("svg", { viewBox: "0 0
|
|
193
|
-
/* @__PURE__ */ jsx("circle", { cx: "
|
|
194
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
195
|
+
/* @__PURE__ */ jsx("span", { className: "flex h-10 w-10 items-center justify-center rounded-full bg-paper-2 text-mute", children: /* @__PURE__ */ jsxs("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: [
|
|
196
|
+
/* @__PURE__ */ jsx("circle", { cx: "10.5", cy: "10.5", r: "6" }),
|
|
197
|
+
/* @__PURE__ */ jsx("path", { d: "m15 15 5 5" }),
|
|
198
|
+
/* @__PURE__ */ jsx("path", { d: "M8 10.5h5" })
|
|
195
199
|
] }) }),
|
|
196
200
|
/* @__PURE__ */ jsxs("p", { className: "mt-3 text-[14px] text-ink", children: [
|
|
197
201
|
"No results for \u201C",
|