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
|
@@ -40,9 +40,10 @@ function useShake(active, key) {
|
|
|
40
40
|
return ref;
|
|
41
41
|
}
|
|
42
42
|
var ErrorText = ({ id, children }) => /* @__PURE__ */ jsxs("p", { id, role: "alert", className: "flex items-center gap-1.5 text-[12.5px] text-ink", style: { animation: `aui020-in .3s ${EASE} both` }, children: [
|
|
43
|
-
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0
|
|
44
|
-
/* @__PURE__ */ jsx("circle", { cx: "
|
|
45
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
43
|
+
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: "h-3.5 w-3.5 shrink-0", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
44
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "8.5" }),
|
|
45
|
+
/* @__PURE__ */ jsx("path", { d: "M12 7.5v5" }),
|
|
46
|
+
/* @__PURE__ */ jsx("path", { d: "M12 16h.01" })
|
|
46
47
|
] }),
|
|
47
48
|
children
|
|
48
49
|
] });
|
|
@@ -94,9 +95,9 @@ function LiveAvatar({ name }) {
|
|
|
94
95
|
letters.length ? "bg-brand text-paper" : "bg-paper-2 text-mute"
|
|
95
96
|
),
|
|
96
97
|
"aria-hidden": true,
|
|
97
|
-
children: letters.length ? letters.map((l, i) => /* @__PURE__ */ jsx("span", { className: "inline-block", style: { animation: `aui020-letter .35s ${EASE} both` }, children: l }, `${i}-${l}`)) : /* @__PURE__ */ jsxs("svg", { viewBox: "0 0
|
|
98
|
-
/* @__PURE__ */ jsx("circle", { cx: "
|
|
99
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
98
|
+
children: letters.length ? letters.map((l, i) => /* @__PURE__ */ jsx("span", { className: "inline-block", style: { animation: `aui020-letter .35s ${EASE} both` }, children: l }, `${i}-${l}`)) : /* @__PURE__ */ jsxs("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, children: [
|
|
99
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "8.5", r: "3.75" }),
|
|
100
|
+
/* @__PURE__ */ jsx("path", { d: "M5 20a7 7 0 0 1 14 0" })
|
|
100
101
|
] })
|
|
101
102
|
}
|
|
102
103
|
);
|
|
@@ -260,10 +261,10 @@ function SignUpCard({
|
|
|
260
261
|
"aria-label": reveal ? "Hide password" : "Show password",
|
|
261
262
|
"aria-pressed": reveal,
|
|
262
263
|
className: "flex h-9 w-9 items-center justify-center rounded-[8px] text-mute outline-none transition-colors hover:bg-paper-2 hover:text-ink focus-visible:ring-2 focus-visible:ring-brand/50",
|
|
263
|
-
children: /* @__PURE__ */ jsxs("svg", { viewBox: "0 0
|
|
264
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
265
|
-
/* @__PURE__ */ jsx("circle", { cx: "
|
|
266
|
-
!reveal && /* @__PURE__ */ jsx("path", { d: "
|
|
264
|
+
children: /* @__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: [
|
|
265
|
+
/* @__PURE__ */ jsx("path", { d: "M2.5 12c3-5.5 16-5.5 19 0-3 5.5-16 5.5-19 0Z" }),
|
|
266
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "2.75" }),
|
|
267
|
+
!reveal && /* @__PURE__ */ jsx("path", { d: "m4.5 4.5 15 15" })
|
|
267
268
|
] })
|
|
268
269
|
}
|
|
269
270
|
),
|
|
@@ -295,7 +296,7 @@ function SignUpCard({
|
|
|
295
296
|
{
|
|
296
297
|
className: "absolute inset-0 flex items-center justify-center rounded-full bg-ink text-paper transition-[transform,opacity] duration-300",
|
|
297
298
|
style: { transform: `scale(${passed[i] ? 1 : 0.3})`, opacity: passed[i] ? 1 : 0, transitionTimingFunction: EASE },
|
|
298
|
-
children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
299
|
+
children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: "h-2.5 w-2.5", fill: "none", stroke: "currentColor", strokeWidth: "4", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsx("path", { d: "m5 12.5 4.5 4.5L19 7.5" }) })
|
|
299
300
|
}
|
|
300
301
|
) }),
|
|
301
302
|
r.label,
|
|
@@ -329,16 +330,16 @@ function SignUpCard({
|
|
|
329
330
|
/* @__PURE__ */ jsx(
|
|
330
331
|
"svg",
|
|
331
332
|
{
|
|
332
|
-
viewBox: "0 0
|
|
333
|
+
viewBox: "0 0 24 24",
|
|
333
334
|
className: "pointer-events-none absolute inset-0 m-auto h-3 w-3 scale-50 text-paper opacity-0 transition-[transform,opacity] duration-300 peer-checked:scale-100 peer-checked:opacity-100",
|
|
334
335
|
style: { transitionTimingFunction: EASE },
|
|
335
336
|
fill: "none",
|
|
336
337
|
stroke: "currentColor",
|
|
337
|
-
strokeWidth: "
|
|
338
|
+
strokeWidth: "4",
|
|
338
339
|
strokeLinecap: "round",
|
|
339
340
|
strokeLinejoin: "round",
|
|
340
341
|
"aria-hidden": true,
|
|
341
|
-
children: /* @__PURE__ */ jsx("path", { d: "
|
|
342
|
+
children: /* @__PURE__ */ jsx("path", { d: "m5 12.5 4.5 4.5L19 7.5" })
|
|
342
343
|
}
|
|
343
344
|
)
|
|
344
345
|
] }),
|
|
@@ -369,7 +370,10 @@ function SignUpCard({
|
|
|
369
370
|
children: [
|
|
370
371
|
state === "loading" && /* @__PURE__ */ jsx(Spinner, {}),
|
|
371
372
|
state === "loading" ? "Creating your account" : "Create account",
|
|
372
|
-
state !== "loading" && /* @__PURE__ */
|
|
373
|
+
state !== "loading" && /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: "h-3.5 w-3.5 transition-transform duration-300 group-hover:translate-x-0.5", style: { transitionTimingFunction: EASE }, fill: "none", stroke: "currentColor", strokeWidth: "2.55", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
374
|
+
/* @__PURE__ */ jsx("path", { d: "M4 12h15" }),
|
|
375
|
+
/* @__PURE__ */ jsx("path", { d: "m13 6 6 6-6 6" })
|
|
376
|
+
] })
|
|
373
377
|
]
|
|
374
378
|
}
|
|
375
379
|
) }),
|
|
@@ -90,7 +90,7 @@ function PromptBox({ models, defaultModel, placeholder = "Ask anything\u2026", m
|
|
|
90
90
|
)) }) }) }) })
|
|
91
91
|
] }),
|
|
92
92
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
93
|
-
/* @__PURE__ */ jsxs("span", { className: cx("text-[11.5px] tabular-nums transition-colors duration-300", over ? "text-
|
|
93
|
+
/* @__PURE__ */ jsxs("span", { className: cx("text-[11.5px] tabular-nums transition-colors duration-300", over ? "text-ink" : "text-mute"), "aria-live": "polite", children: [
|
|
94
94
|
tokens.toLocaleString(),
|
|
95
95
|
" / ",
|
|
96
96
|
maxTokens.toLocaleString(),
|
|
@@ -103,6 +103,7 @@ function PromptBox({ models, defaultModel, placeholder = "Ask anything\u2026", m
|
|
|
103
103
|
onClick: submit,
|
|
104
104
|
disabled: !busy && !ready,
|
|
105
105
|
className: cx(
|
|
106
|
+
// perf-ok: the fill grows inside one button; nothing outside it reflows.
|
|
106
107
|
"relative flex h-8 items-center gap-1.5 overflow-hidden rounded-full px-3.5 text-[13px] font-medium transition-[background-color,color,transform,width] duration-300 ease-[cubic-bezier(.16,1,.3,1)] active:scale-95 motion-reduce:transition-none",
|
|
107
108
|
busy ? "bg-paper-2 text-ink" : ready ? "bg-ink text-paper" : "bg-paper-2 text-mute"
|
|
108
109
|
),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Avatar
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7IOMROVG.js";
|
|
5
5
|
import {
|
|
6
6
|
Button
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HSDMCZMX.js";
|
|
8
8
|
|
|
9
9
|
// components/kit/base/comments.tsx
|
|
10
10
|
import { useId, useRef, useState } from "react";
|
|
@@ -81,15 +81,16 @@ function Like({ count, liked, pop, onToggle }) {
|
|
|
81
81
|
/* @__PURE__ */ jsx(
|
|
82
82
|
"svg",
|
|
83
83
|
{
|
|
84
|
-
viewBox: "0 0
|
|
84
|
+
viewBox: "0 0 24 24",
|
|
85
85
|
className: "h-3.5 w-3.5",
|
|
86
86
|
fill: liked ? "currentColor" : "none",
|
|
87
87
|
stroke: "currentColor",
|
|
88
|
-
strokeWidth: "
|
|
88
|
+
strokeWidth: "2.25",
|
|
89
|
+
strokeLinecap: "round",
|
|
89
90
|
strokeLinejoin: "round",
|
|
90
91
|
"aria-hidden": true,
|
|
91
92
|
style: pop && liked ? { animation: `kit-cm-pop .45s ${CURVE}` } : void 0,
|
|
92
|
-
children: /* @__PURE__ */ jsx("path", { d: "
|
|
93
|
+
children: /* @__PURE__ */ jsx("path", { d: "M12 19.5s-7.5-4.4-7.5-10A4.2 4.2 0 0 1 12 7a4.2 4.2 0 0 1 7.5 2.5c0 5.6-7.5 10-7.5 10Z" })
|
|
93
94
|
},
|
|
94
95
|
liked ? "on" : "off"
|
|
95
96
|
),
|
|
@@ -70,7 +70,7 @@ function PromptBox({ models, defaultModel, placeholder = "Ask anything\u2026", m
|
|
|
70
70
|
children: [
|
|
71
71
|
/* @__PURE__ */ jsx("span", { className: "h-2 w-2 rounded-full bg-brand", "aria-hidden": true }),
|
|
72
72
|
current?.label,
|
|
73
|
-
/* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
73
|
+
/* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: "h-3 w-3 text-mute transition-transform duration-300 ease-[cubic-bezier(.16,1,.3,1)] group-data-[state=open]/m:rotate-180", fill: "none", stroke: "currentColor", strokeWidth: "2.7", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "m6 9.5 6 6 6-6" }) })
|
|
74
74
|
]
|
|
75
75
|
}
|
|
76
76
|
),
|
|
@@ -91,7 +91,7 @@ function PromptBox({ models, defaultModel, placeholder = "Ask anything\u2026", m
|
|
|
91
91
|
/* @__PURE__ */ jsx("span", { className: "block text-[13px] text-ink", children: m.label }),
|
|
92
92
|
m.detail && /* @__PURE__ */ jsx("span", { className: "block text-[11.5px] text-mute", children: m.detail })
|
|
93
93
|
] }),
|
|
94
|
-
/* @__PURE__ */ jsx(Menu.ItemIndicator, { children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
94
|
+
/* @__PURE__ */ jsx(Menu.ItemIndicator, { children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: "h-3.5 w-3.5 text-brand", 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" }) }) })
|
|
95
95
|
]
|
|
96
96
|
},
|
|
97
97
|
m.id
|
|
@@ -100,7 +100,7 @@ function PromptBox({ models, defaultModel, placeholder = "Ask anything\u2026", m
|
|
|
100
100
|
) })
|
|
101
101
|
] }),
|
|
102
102
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
103
|
-
/* @__PURE__ */ jsxs("span", { className: cx("text-[11.5px] tabular-nums transition-colors duration-300", over ? "text-
|
|
103
|
+
/* @__PURE__ */ jsxs("span", { className: cx("text-[11.5px] tabular-nums transition-colors duration-300", over ? "text-ink" : "text-mute"), "aria-live": "polite", children: [
|
|
104
104
|
tokens.toLocaleString(),
|
|
105
105
|
" / ",
|
|
106
106
|
maxTokens.toLocaleString(),
|
|
@@ -113,6 +113,7 @@ function PromptBox({ models, defaultModel, placeholder = "Ask anything\u2026", m
|
|
|
113
113
|
onClick: submit,
|
|
114
114
|
disabled: !busy && !ready,
|
|
115
115
|
className: cx(
|
|
116
|
+
// perf-ok: the fill grows inside one button; nothing outside it reflows.
|
|
116
117
|
"relative flex h-8 items-center gap-1.5 overflow-hidden rounded-full px-3.5 text-[13px] font-medium transition-[background-color,color,transform,width] duration-300 ease-[cubic-bezier(.16,1,.3,1)] active:scale-95 motion-reduce:transition-none",
|
|
117
118
|
busy ? "bg-paper-2 text-ink" : ready ? "bg-ink text-paper" : "bg-paper-2 text-mute"
|
|
118
119
|
),
|
|
@@ -124,7 +125,10 @@ function PromptBox({ models, defaultModel, placeholder = "Ask anything\u2026", m
|
|
|
124
125
|
"Stop"
|
|
125
126
|
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
126
127
|
"Generate",
|
|
127
|
-
/* @__PURE__ */
|
|
128
|
+
/* @__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: [
|
|
129
|
+
/* @__PURE__ */ jsx("path", { d: "M4 12h15" }),
|
|
130
|
+
/* @__PURE__ */ jsx("path", { d: "m13 6 6 6-6 6" })
|
|
131
|
+
] })
|
|
128
132
|
] })
|
|
129
133
|
}
|
|
130
134
|
)
|
|
@@ -99,7 +99,7 @@ function PlanRadio({ plans = PLANS, value, defaultValue = "team", onChange, seat
|
|
|
99
99
|
/* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "pointer-events-none absolute inset-0 rounded-[12px] bg-paper-2 opacity-0 transition-opacity duration-300 group-hover/plan:opacity-60" }),
|
|
100
100
|
/* @__PURE__ */ jsxs("span", { "aria-hidden": true, className: "relative grid h-[18px] w-[18px] shrink-0 place-items-center rounded-full shadow-[inset_0_0_0_1.5px_color-mix(in_srgb,var(--ink)_24%,transparent)]", children: [
|
|
101
101
|
/* @__PURE__ */ jsx("span", { className: "absolute inset-0 rounded-full bg-brand transition-[transform,opacity] duration-300", style: { opacity: on ? 1 : 0, transform: on ? "scale(1)" : "scale(0.5)", transitionTimingFunction: SPRING } }),
|
|
102
|
-
/* @__PURE__ */ jsx("span", { className: "relative h-1.5 w-1.5 rounded-full bg-
|
|
102
|
+
/* @__PURE__ */ jsx("span", { className: "relative h-1.5 w-1.5 rounded-full bg-on-brand transition-transform duration-300", style: { transform: on ? "scale(1)" : "scale(0)", transitionTimingFunction: SPRING, transitionDelay: on ? "80ms" : "0ms" } })
|
|
103
103
|
] }),
|
|
104
104
|
/* @__PURE__ */ jsxs("span", { className: "relative min-w-0 flex-1", children: [
|
|
105
105
|
/* @__PURE__ */ jsxs("span", { className: "flex items-center gap-2", children: [
|
|
@@ -134,14 +134,17 @@ function PlanRadio({ plans = PLANS, value, defaultValue = "team", onChange, seat
|
|
|
134
134
|
{
|
|
135
135
|
type: "button",
|
|
136
136
|
onClick: () => onContinue?.(plan.value),
|
|
137
|
-
className: "group/cta relative inline-flex h-10 items-center gap-1.5 rounded-[8px] bg-brand pl-4 pr-3.5 text-[13.5px] font-medium text-
|
|
137
|
+
className: "group/cta relative inline-flex h-10 items-center gap-1.5 rounded-[8px] bg-brand pl-4 pr-3.5 text-[13.5px] font-medium text-on-brand shadow-[inset_0_1px_0_rgb(255_255_255/0.2),0_6px_16px_-8px_var(--brand)] outline-none transition-transform duration-200 active:scale-[0.97] focus-visible:ring-2 focus-visible:ring-brand/50 focus-visible:ring-offset-2 focus-visible:ring-offset-paper",
|
|
138
138
|
children: [
|
|
139
139
|
/* @__PURE__ */ jsx("span", { children: "Continue with" }),
|
|
140
140
|
/* @__PURE__ */ jsxs("span", { className: "relative block h-5 overflow-hidden", "aria-live": "polite", children: [
|
|
141
141
|
/* @__PURE__ */ jsx("span", { className: "invisible block h-5 leading-5", children: plans.reduce((a, p) => p.name.length > a.length ? p.name : a, "") }),
|
|
142
142
|
/* @__PURE__ */ jsx("span", { className: "absolute inset-x-0 top-0 flex flex-col transition-transform duration-500", style: { transform: `translateY(${-index * 20}px)`, transitionTimingFunction: EASE }, children: plans.map((p, i) => /* @__PURE__ */ jsx("span", { "aria-hidden": i !== index, className: "block h-5 text-left leading-5", children: p.name }, p.value)) })
|
|
143
143
|
] }),
|
|
144
|
-
/* @__PURE__ */
|
|
144
|
+
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: "h-3.5 w-3.5 transition-transform duration-300 group-hover/cta:translate-x-0.5", fill: "none", stroke: "currentColor", strokeWidth: "2.7", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
145
|
+
/* @__PURE__ */ jsx("path", { d: "M4 12h15" }),
|
|
146
|
+
/* @__PURE__ */ jsx("path", { d: "m13 6 6 6-6 6" })
|
|
147
|
+
] })
|
|
145
148
|
]
|
|
146
149
|
}
|
|
147
150
|
)
|
|
@@ -43,14 +43,20 @@ var RESULTS = [
|
|
|
43
43
|
var isMac = () => typeof navigator === "undefined" || /Mac|iPhone|iPad/.test(navigator.platform);
|
|
44
44
|
var at = (n) => ({ "--i": n });
|
|
45
45
|
var initials = (name) => name.split(/\s+/).map((p) => p[0]).slice(0, 2).join("").toUpperCase();
|
|
46
|
-
var Chevrons = () => /* @__PURE__ */
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
/* @__PURE__ */ jsx("circle", { cx: "7", cy: "7", r: "4.5" }),
|
|
50
|
-
/* @__PURE__ */ jsx("path", { d: "m10.5 10.5 3 3" })
|
|
46
|
+
var Chevrons = () => /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: "h-3.5 w-3.5 text-mute", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
47
|
+
/* @__PURE__ */ jsx("path", { d: "m8 9 4-4 4 4" }),
|
|
48
|
+
/* @__PURE__ */ jsx("path", { d: "m8 15 4 4 4-4" })
|
|
51
49
|
] });
|
|
52
|
-
var
|
|
53
|
-
var
|
|
50
|
+
var Check = () => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: "ml-auto h-3.5 w-3.5 text-brand", fill: "none", stroke: "currentColor", strokeWidth: "2.85", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "m5 12.5 4.5 4.5L19 7.5" }) });
|
|
51
|
+
var SearchIcon = () => /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: "h-4 w-4 shrink-0", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
52
|
+
/* @__PURE__ */ jsx("circle", { cx: "10.5", cy: "10.5", r: "6" }),
|
|
53
|
+
/* @__PURE__ */ jsx("path", { d: "m15 15 5 5" })
|
|
54
|
+
] });
|
|
55
|
+
var Bell = () => /* @__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: [
|
|
56
|
+
/* @__PURE__ */ jsx("path", { d: "M6.5 10a5.5 5.5 0 0 1 11 0v3.5l1.5 3h-14l1.5-3Z" }),
|
|
57
|
+
/* @__PURE__ */ jsx("path", { d: "M10 19.5a2 2 0 0 0 4 0" })
|
|
58
|
+
] });
|
|
59
|
+
var GroupIcon = ({ group }) => /* @__PURE__ */ jsx("span", { className: cx("grid h-7 w-7 shrink-0 place-items-center rounded-[7px] bg-paper text-ink-2", RING), children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: "h-3.5 w-3.5", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: group === "People" ? /* @__PURE__ */ jsx("path", { d: "M8.25 8.5a3.75 3.75 0 1 0 7.5 0a3.75 3.75 0 1 0-7.5 0M5 20a7 7 0 0 1 14 0" }) : group === "Actions" ? /* @__PURE__ */ jsx("path", { d: "M12 5v14M5 12h14" }) : /* @__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" }) }) });
|
|
54
60
|
function Mark({ name, size = "h-6 w-6 text-[11px]" }) {
|
|
55
61
|
return /* @__PURE__ */ jsx("span", { className: cx("grid shrink-0 place-items-center rounded-[6px] bg-ink font-semibold text-paper", size), children: name[0]?.toUpperCase() });
|
|
56
62
|
}
|
|
@@ -449,7 +455,7 @@ function AppNavbar({
|
|
|
449
455
|
children: [
|
|
450
456
|
/* @__PURE__ */ jsx(Bell, {}),
|
|
451
457
|
"Notifications",
|
|
452
|
-
unread > 0 && /* @__PURE__ */ jsxs("span", { className: "ml-auto rounded-full bg-brand px-2 py-0.5 text-[11.5px] font-medium text-
|
|
458
|
+
unread > 0 && /* @__PURE__ */ jsxs("span", { className: "ml-auto rounded-full bg-brand px-2 py-0.5 text-[11.5px] font-medium text-on-brand", children: [
|
|
453
459
|
unread,
|
|
454
460
|
" new"
|
|
455
461
|
] })
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Button
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HSDMCZMX.js";
|
|
5
5
|
|
|
6
6
|
// components/kit/base/invoice.tsx
|
|
7
|
-
import { useState } from "react";
|
|
7
|
+
import { useEffect, useMemo, 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 KEYFRAMES = `@keyframes asta-invoice-in { from { opacity: 0; transform: translateY(4px) } }
|
|
@@ -21,7 +21,15 @@ function Invoice({ number, issued, due, from, to, items, taxRate = 0, discount =
|
|
|
21
21
|
const [state, setState] = useState(status);
|
|
22
22
|
const [paying, setPaying] = useState(false);
|
|
23
23
|
const [paidOn, setPaidOn] = useState(null);
|
|
24
|
-
const
|
|
24
|
+
const [error, setError] = useState(null);
|
|
25
|
+
const errorEl = useRef(null);
|
|
26
|
+
useEffect(() => {
|
|
27
|
+
if (error) errorEl.current?.focus();
|
|
28
|
+
}, [error]);
|
|
29
|
+
const money = useMemo(() => {
|
|
30
|
+
const f = new Intl.NumberFormat(locale, { style: "currency", currency });
|
|
31
|
+
return (n) => f.format(n);
|
|
32
|
+
}, [locale, currency]);
|
|
25
33
|
const subtotal = items.reduce((a, it) => a + it.quantity * it.unitPrice, 0);
|
|
26
34
|
const taxed = Math.max(0, subtotal - discount);
|
|
27
35
|
const tax = Math.round(taxed * taxRate * 100) / 100;
|
|
@@ -31,10 +39,14 @@ function Invoice({ number, issued, due, from, to, items, taxRate = 0, discount =
|
|
|
31
39
|
const pay = async () => {
|
|
32
40
|
if (!onPay || paying) return;
|
|
33
41
|
setPaying(true);
|
|
42
|
+
setError(null);
|
|
34
43
|
try {
|
|
35
44
|
await onPay();
|
|
36
45
|
setPaidOn((/* @__PURE__ */ new Date()).toLocaleDateString(locale, { month: "short", day: "numeric", year: "numeric" }));
|
|
37
46
|
setState("paid");
|
|
47
|
+
} catch (e) {
|
|
48
|
+
const why = e instanceof Error && e.message ? ` ${e.message.replace(/\.?$/, ".")}` : "";
|
|
49
|
+
setError(`The payment didn't go through.${why} Check your payment details and try again.`);
|
|
38
50
|
} finally {
|
|
39
51
|
setPaying(false);
|
|
40
52
|
}
|
|
@@ -53,7 +65,10 @@ function Invoice({ number, issued, due, from, to, items, taxRate = 0, discount =
|
|
|
53
65
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
54
66
|
/* @__PURE__ */ jsx("h2", { className: "text-[20px] font-medium tracking-[-0.03em]", children: "Invoice" }),
|
|
55
67
|
/* @__PURE__ */ jsxs("span", { className: cx("asta-invoice-a inline-flex h-6 animate-[asta-invoice-pop_.45s_cubic-bezier(.16,1,.3,1)_both] items-center gap-1 rounded-md px-2 text-[11.5px] font-medium", s.cls), children: [
|
|
56
|
-
paid ? /* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
68
|
+
paid ? /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: "h-3 w-3", 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", pathLength: 1, strokeDasharray: 1, className: "asta-invoice-a animate-[asta-invoice-draw_.5s_cubic-bezier(.16,1,.3,1)_.15s_both]" }) }) : state === "overdue" ? /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: "h-3 w-3", fill: "none", stroke: "currentColor", strokeWidth: "2.7", strokeLinecap: "round", "aria-hidden": true, children: [
|
|
69
|
+
/* @__PURE__ */ jsx("path", { d: "M12 7.5v5" }),
|
|
70
|
+
/* @__PURE__ */ jsx("path", { d: "M12 16h.01" })
|
|
71
|
+
] }) : null,
|
|
57
72
|
s.label
|
|
58
73
|
] }, state)
|
|
59
74
|
] }),
|
|
@@ -151,6 +166,14 @@ function Invoice({ number, issued, due, from, to, items, taxRate = 0, discount =
|
|
|
151
166
|
] })
|
|
152
167
|
] })
|
|
153
168
|
] }),
|
|
169
|
+
error && !paid && /* @__PURE__ */ jsxs("p", { ref: errorEl, role: "alert", tabIndex: -1, className: "-mt-3 flex items-start gap-1.5 text-[12.5px] font-medium text-ink outline-none @min-[560px]:justify-end", children: [
|
|
170
|
+
/* @__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: [
|
|
171
|
+
/* @__PURE__ */ jsx("path", { d: "M10.3 4.6 3 17.5A2 2 0 0 0 4.7 20.5h14.6a2 2 0 0 0 1.7-3L13.7 4.6a2 2 0 0 0-3.4 0Z" }),
|
|
172
|
+
/* @__PURE__ */ jsx("path", { d: "M12 9.5v4" }),
|
|
173
|
+
/* @__PURE__ */ jsx("path", { d: "M12 17h.01" })
|
|
174
|
+
] }),
|
|
175
|
+
error
|
|
176
|
+
] }),
|
|
154
177
|
/* @__PURE__ */ jsx("p", { className: "sr-only", "aria-live": "polite", children: paid && paidOn ? `Invoice ${number} paid on ${paidOn}.` : "" })
|
|
155
178
|
] })
|
|
156
179
|
]
|
|
@@ -29,7 +29,7 @@ function Candlestick() {
|
|
|
29
29
|
const canvas = useRef(null);
|
|
30
30
|
const wrap = useRef(null);
|
|
31
31
|
const [ohlc, setOhlc] = useState(null);
|
|
32
|
-
const S = useRef({ data: seed(), born: 0, lo: 0, hi: 0, hx: -1, hy: -1, raf: 0, last: 0, prev: 0, target: 0, onScreen: true });
|
|
32
|
+
const S = useRef({ data: seed(), born: 0, lo: 0, hi: 0, hx: -1, hy: -1, raf: 0, last: 0, prev: 0, target: 0, onScreen: true, rect: null });
|
|
33
33
|
useEffect(() => {
|
|
34
34
|
const cv = canvas.current;
|
|
35
35
|
const el = wrap.current;
|
|
@@ -51,16 +51,37 @@ function Candlestick() {
|
|
|
51
51
|
ctx.setTransform(dpr, 0, 0, dpr, 0, 0);
|
|
52
52
|
const cs = getComputedStyle(el);
|
|
53
53
|
colors = { ink: cs.getPropertyValue("--color-ink").trim() || colors.ink, mute: cs.getPropertyValue("--color-mute").trim() || colors.mute, paper: cs.getPropertyValue("--color-paper").trim() || colors.paper, accent: cs.getPropertyValue("--color-brand").trim() || colors.accent };
|
|
54
|
+
st.rect = r;
|
|
55
|
+
wake();
|
|
56
|
+
};
|
|
57
|
+
const wake = () => {
|
|
58
|
+
if (st.raf || !st.onScreen || document.hidden || !w) return;
|
|
59
|
+
st.prev = 0;
|
|
60
|
+
st.raf = requestAnimationFrame(draw);
|
|
61
|
+
};
|
|
62
|
+
const sync = () => {
|
|
63
|
+
cancelAnimationFrame(st.raf);
|
|
64
|
+
st.raf = 0;
|
|
65
|
+
wake();
|
|
66
|
+
};
|
|
67
|
+
const forget = () => {
|
|
68
|
+
st.rect = null;
|
|
54
69
|
};
|
|
55
70
|
const ro = new ResizeObserver(resize);
|
|
56
71
|
ro.observe(el);
|
|
57
|
-
const io = new IntersectionObserver(([e]) =>
|
|
72
|
+
const io = new IntersectionObserver(([e]) => {
|
|
73
|
+
st.onScreen = e.isIntersecting;
|
|
74
|
+
sync();
|
|
75
|
+
});
|
|
58
76
|
io.observe(el);
|
|
59
|
-
|
|
77
|
+
document.addEventListener("visibilitychange", sync);
|
|
78
|
+
window.addEventListener("scroll", forget, { capture: true, passive: true });
|
|
60
79
|
st.born = performance.now();
|
|
61
|
-
|
|
62
|
-
|
|
80
|
+
resize();
|
|
81
|
+
function draw(now) {
|
|
82
|
+
st.raf = 0;
|
|
63
83
|
if (!st.onScreen || document.hidden || !w) return;
|
|
84
|
+
st.raf = requestAnimationFrame(draw);
|
|
64
85
|
const d = st.data;
|
|
65
86
|
const dt = Math.min(64, now - (st.prev || now));
|
|
66
87
|
st.prev = now;
|
|
@@ -173,16 +194,19 @@ function Candlestick() {
|
|
|
173
194
|
const c = vis[Math.max(0, Math.min(vis.length - 1, i))];
|
|
174
195
|
if (c) setOhlc((o) => o === c ? o : c);
|
|
175
196
|
}
|
|
176
|
-
}
|
|
177
|
-
st.raf = requestAnimationFrame(draw);
|
|
197
|
+
}
|
|
178
198
|
return () => {
|
|
179
199
|
cancelAnimationFrame(st.raf);
|
|
200
|
+
st.raf = 0;
|
|
180
201
|
ro.disconnect();
|
|
181
202
|
io.disconnect();
|
|
203
|
+
document.removeEventListener("visibilitychange", sync);
|
|
204
|
+
window.removeEventListener("scroll", forget, { capture: true });
|
|
182
205
|
};
|
|
183
206
|
}, []);
|
|
184
207
|
const move = (e) => {
|
|
185
|
-
|
|
208
|
+
var _a;
|
|
209
|
+
const r = (_a = S.current).rect ?? (_a.rect = wrap.current.getBoundingClientRect());
|
|
186
210
|
S.current.hx = e.clientX - r.left;
|
|
187
211
|
S.current.hy = e.clientY - r.top;
|
|
188
212
|
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// components/kit/variants/button-aui-067.tsx
|
|
4
|
+
import { useEffect, useRef, useState } from "react";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
var cx = (...c) => c.filter(Boolean).join(" ");
|
|
7
|
+
var CSS = `
|
|
8
|
+
.aui067 [data-layer] { grid-area: 1 / 1; opacity: 0; transform: translateY(7px); transition: opacity .18s cubic-bezier(.16,1,.3,1), transform .26s cubic-bezier(.16,1,.3,1) }
|
|
9
|
+
.aui067[data-phase=idle] [data-layer=idle], .aui067[data-phase=working] [data-layer=working], .aui067[data-phase=done] [data-layer=done], .aui067[data-phase=failed] [data-layer=failed] { opacity: 1; transform: none }
|
|
10
|
+
.aui067 [data-fill] { opacity: 0; transition: opacity .2s cubic-bezier(.16,1,.3,1) }
|
|
11
|
+
.aui067[data-phase=done] [data-fill=done] { opacity: 1 }
|
|
12
|
+
.aui067-spin { animation: aui067-spin .8s linear infinite }
|
|
13
|
+
.aui067[data-phase=done] .aui067-tick { animation: aui067-tick .36s cubic-bezier(.16,1,.3,1) .05s both }
|
|
14
|
+
@keyframes aui067-spin { to { transform: rotate(360deg) } }
|
|
15
|
+
@keyframes aui067-tick { from { stroke-dashoffset: 14 } to { stroke-dashoffset: 0 } }
|
|
16
|
+
@media (prefers-reduced-motion: reduce) { .aui067 [data-layer] { transform: none !important; transition: opacity .12s } .aui067-spin { animation-duration: 2.4s } .aui067-tick { animation: none !important } }
|
|
17
|
+
`;
|
|
18
|
+
var Spinner = () => /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 16 16", fill: "none", "aria-hidden": true, className: "aui067-spin", children: [
|
|
19
|
+
/* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "6", stroke: "currentColor", strokeOpacity: ".25", strokeWidth: "2" }),
|
|
20
|
+
/* @__PURE__ */ jsx("path", { d: "M14 8a6 6 0 0 0-6-6", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" })
|
|
21
|
+
] });
|
|
22
|
+
var Tick = () => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", fill: "none", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { className: "aui067-tick", d: "m3.5 8.5 3 3 6-7", stroke: "currentColor", strokeWidth: "1.9", strokeLinecap: "round", strokeLinejoin: "round", strokeDasharray: "14" }) });
|
|
23
|
+
var Retry = () => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: "1.7", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "M13 8a5 5 0 1 1-1.5-3.5M13 2.5V5h-2.5" }) });
|
|
24
|
+
function StatusButton({ action, children, working = "Working\u2026", done = "Done", failed = "Failed. Retry", icon, resetAfter = 1800, onPhaseChange, disabled, className }) {
|
|
25
|
+
const [phase, setPhase] = useState("idle");
|
|
26
|
+
const timer = useRef(void 0);
|
|
27
|
+
const alive = useRef(true);
|
|
28
|
+
useEffect(() => {
|
|
29
|
+
alive.current = true;
|
|
30
|
+
return () => {
|
|
31
|
+
alive.current = false;
|
|
32
|
+
clearTimeout(timer.current);
|
|
33
|
+
};
|
|
34
|
+
}, []);
|
|
35
|
+
const set = (p) => {
|
|
36
|
+
if (!alive.current) return;
|
|
37
|
+
setPhase(p);
|
|
38
|
+
onPhaseChange?.(p);
|
|
39
|
+
};
|
|
40
|
+
const run = async () => {
|
|
41
|
+
if (phase === "working") return;
|
|
42
|
+
clearTimeout(timer.current);
|
|
43
|
+
set("working");
|
|
44
|
+
try {
|
|
45
|
+
await action();
|
|
46
|
+
set("done");
|
|
47
|
+
timer.current = setTimeout(() => set("idle"), resetAfter);
|
|
48
|
+
} catch {
|
|
49
|
+
set("failed");
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
const layer = (p, node, mark) => /* @__PURE__ */ jsxs("span", { "data-layer": p, "aria-hidden": phase !== p, className: "inline-flex items-center justify-center gap-2", children: [
|
|
53
|
+
mark,
|
|
54
|
+
node
|
|
55
|
+
] });
|
|
56
|
+
return /* @__PURE__ */ jsxs(
|
|
57
|
+
"button",
|
|
58
|
+
{
|
|
59
|
+
type: "button",
|
|
60
|
+
"data-phase": phase,
|
|
61
|
+
disabled,
|
|
62
|
+
"aria-disabled": phase === "working" || void 0,
|
|
63
|
+
onClick: run,
|
|
64
|
+
className: cx(
|
|
65
|
+
"aui067 relative isolate inline-grid h-9 select-none place-items-center overflow-hidden whitespace-nowrap rounded-[8px] px-3.5 text-[13.5px] font-medium outline-none transition-[color,transform] duration-150 ease-[cubic-bezier(.16,1,.3,1)] active:scale-[0.98] motion-reduce:active:scale-100 disabled:pointer-events-none disabled:opacity-50 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-brand [&_svg]:size-4 [&_svg]:shrink-0",
|
|
66
|
+
"bg-[linear-gradient(180deg,color-mix(in_srgb,var(--ink)_72%,var(--paper))_0%,var(--ink)_60%)] text-paper shadow-[inset_0_1px_0_rgb(255_255_255/0.18),0_0_0_1px_var(--ink),0_2px_4px_-1px_rgb(0_0_0/0.3)]",
|
|
67
|
+
phase === "working" && "cursor-progress",
|
|
68
|
+
phase === "done" && "text-on-brand",
|
|
69
|
+
phase === "failed" && "!text-ink",
|
|
70
|
+
className
|
|
71
|
+
),
|
|
72
|
+
children: [
|
|
73
|
+
/* @__PURE__ */ jsx("style", { href: "asta-button-aui-067", precedence: "asta", children: CSS }),
|
|
74
|
+
/* @__PURE__ */ jsx("span", { "data-fill": "done", "aria-hidden": true, className: "absolute inset-0 -z-10 bg-[linear-gradient(180deg,color-mix(in_srgb,var(--brand)_78%,white)_0%,var(--brand)_55%,color-mix(in_srgb,var(--brand)_86%,black)_100%)]" }),
|
|
75
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": true, className: cx("absolute inset-0 -z-10 bg-paper shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_22%,transparent)] transition-opacity duration-200", phase === "failed" ? "opacity-100" : "opacity-0") }),
|
|
76
|
+
layer("idle", children, icon),
|
|
77
|
+
layer("working", working, /* @__PURE__ */ jsx(Spinner, {})),
|
|
78
|
+
layer("done", done, /* @__PURE__ */ jsx(Tick, {})),
|
|
79
|
+
layer("failed", failed, /* @__PURE__ */ jsx(Retry, {})),
|
|
80
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", "aria-live": "polite", children: phase === "working" ? working : phase === "done" ? done : phase === "failed" ? failed : "" })
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
var button_aui_067_default = StatusButton;
|
|
86
|
+
|
|
87
|
+
export {
|
|
88
|
+
StatusButton,
|
|
89
|
+
button_aui_067_default
|
|
90
|
+
};
|
|
@@ -33,23 +33,23 @@ var CSS = `
|
|
|
33
33
|
var at = (n) => ({ "--i": n });
|
|
34
34
|
var reduced = () => typeof window !== "undefined" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
35
35
|
var PATHS = {
|
|
36
|
-
map: "
|
|
37
|
-
check: "
|
|
38
|
-
chart: "
|
|
39
|
-
bolt: "
|
|
40
|
-
plug: "
|
|
41
|
-
book: "
|
|
42
|
-
grid: "
|
|
43
|
-
play: "
|
|
44
|
-
users: "M6
|
|
45
|
-
spark: "
|
|
46
|
-
mail: "
|
|
36
|
+
map: "M3.5 6.5 9 4.5l6 2 5.5-2v13L15 19.5l-6-2-5.5 2ZM9 4.5v13M15 6.5v13",
|
|
37
|
+
check: "M5 12.5l4.5 4.5L19 7.5",
|
|
38
|
+
chart: "M4 20h16M7 16.5v-4M12 16.5V7M17 16.5v-7",
|
|
39
|
+
bolt: "M13.5 3 5.5 13.5h6L10.5 21l8-10.5h-6Z",
|
|
40
|
+
plug: "M9 3.5v4M15 3.5v4M6.5 7.5h11V11a5.5 5.5 0 0 1-11 0ZM12 16.5v4",
|
|
41
|
+
book: "M12 6.5c-1.8-1.3-4.5-2-8.5-2v13c4 0 6.7.7 8.5 2 1.8-1.3 4.5-2 8.5-2v-13c-4 0-6.7.7-8.5 2ZM12 6.5v13",
|
|
42
|
+
grid: "M5.5 4h3.5a1.5 1.5 0 0 1 1.5 1.5v3.5a1.5 1.5 0 0 1-1.5 1.5h-3.5a1.5 1.5 0 0 1-1.5-1.5v-3.5a1.5 1.5 0 0 1 1.5-1.5ZM15 4h3.5a1.5 1.5 0 0 1 1.5 1.5v3.5a1.5 1.5 0 0 1-1.5 1.5h-3.5a1.5 1.5 0 0 1-1.5-1.5v-3.5a1.5 1.5 0 0 1 1.5-1.5ZM5.5 13.5h3.5a1.5 1.5 0 0 1 1.5 1.5v3.5a1.5 1.5 0 0 1-1.5 1.5h-3.5a1.5 1.5 0 0 1-1.5-1.5v-3.5a1.5 1.5 0 0 1 1.5-1.5ZM15 13.5h3.5a1.5 1.5 0 0 1 1.5 1.5v3.5a1.5 1.5 0 0 1-1.5 1.5h-3.5a1.5 1.5 0 0 1-1.5-1.5v-3.5a1.5 1.5 0 0 1 1.5-1.5Z",
|
|
43
|
+
play: "M7.5 5v14l11-7Z",
|
|
44
|
+
users: "M6 8.5a3.5 3.5 0 1 0 7 0a3.5 3.5 0 1 0-7 0M3.5 19.5a6 6 0 0 1 12 0M15.5 5.2a3.5 3.5 0 0 1 0 6.6M17.5 14a6 6 0 0 1 3 5.5",
|
|
45
|
+
spark: "M12 3.5v3M12 17.5v3M6 6l2.1 2.1M15.9 15.9l2.1 2.1M3.5 12h3M17.5 12h3M6 18l2.1-2.1M15.9 8.1 18 6",
|
|
46
|
+
mail: "M5.5 5.5h13a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-13a2 2 0 0 1-2-2v-9a2 2 0 0 1 2-2ZM4 7l8 6 8-6"
|
|
47
47
|
};
|
|
48
48
|
function Glyph({ name }) {
|
|
49
|
-
return /* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
49
|
+
return /* @__PURE__ */ jsx("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, children: /* @__PURE__ */ jsx("path", { d: PATHS[name] }) });
|
|
50
50
|
}
|
|
51
51
|
var Badge = ({ icon, size = "h-6 w-6" }) => /* @__PURE__ */ jsx("span", { className: cx("grid shrink-0 place-items-center rounded-[7px] bg-paper text-brand shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent),0_2px_7px_rgb(0_0_0/0.05)]", size), children: /* @__PURE__ */ jsx(Glyph, { name: icon }) });
|
|
52
|
-
var Chevron = ({ className = "" }) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
52
|
+
var Chevron = ({ className = "" }) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: cx("h-3.5 w-3.5", className), fill: "none", stroke: "currentColor", strokeWidth: "2.55", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "m9.5 6 6 6-6 6" }) });
|
|
53
53
|
var Logo = () => /* @__PURE__ */ jsxs(Fragment2, { children: [
|
|
54
54
|
/* @__PURE__ */ jsx("span", { className: "grid h-6 w-6 place-items-center rounded-[7px] bg-ink text-paper", children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "h-3 w-3", fill: "none", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "M4 12.5 8 3.5l4 9M5.6 9.2h4.8" }) }) }),
|
|
55
55
|
"Astabyte"
|
|
@@ -41,7 +41,7 @@ function TagInput({ value, defaultValue = [], onChange, max = 8, placeholder = "
|
|
|
41
41
|
return /* @__PURE__ */ jsxs("div", { className: cx("w-full", className), children: [
|
|
42
42
|
/* @__PURE__ */ jsxs("div", { className: "mb-2 flex items-baseline justify-between", children: [
|
|
43
43
|
/* @__PURE__ */ jsx("label", { htmlFor: id, className: "text-[13px] font-medium text-ink", children: label }),
|
|
44
|
-
/* @__PURE__ */ jsxs("span", { className: cx("font-mono text-[11px] tabular-nums transition-colors", full ? "text-
|
|
44
|
+
/* @__PURE__ */ jsxs("span", { className: cx("font-mono text-[11px] tabular-nums transition-colors", full ? "text-ink" : "text-mute"), "aria-live": "polite", children: [
|
|
45
45
|
tags.length,
|
|
46
46
|
"/",
|
|
47
47
|
max
|
|
@@ -71,7 +71,7 @@ function TagInput({ value, defaultValue = [], onChange, max = 8, placeholder = "
|
|
|
71
71
|
"data-kit-tag": true,
|
|
72
72
|
className: cx(
|
|
73
73
|
"flex h-8 items-center gap-1 rounded-md pl-3 pr-1 text-[13px] transition-colors duration-200",
|
|
74
|
-
last && armed ? "bg-
|
|
74
|
+
last && armed ? "bg-ink text-paper" : "bg-paper-2 text-ink"
|
|
75
75
|
),
|
|
76
76
|
style: { animation: shaking ? "kit-tag-shake .4s ease" : "kit-tag-in .35s cubic-bezier(.16,1,.3,1)" },
|
|
77
77
|
children: [
|
|
@@ -87,9 +87,12 @@ function TagInput({ value, defaultValue = [], onChange, max = 8, placeholder = "
|
|
|
87
87
|
"aria-label": `Remove ${t}`,
|
|
88
88
|
className: cx(
|
|
89
89
|
"flex h-6 w-6 items-center justify-center rounded-[5px] outline-none transition-colors focus-visible:ring-2 focus-visible:ring-brand/50",
|
|
90
|
-
last && armed ? "hover:bg-
|
|
90
|
+
last && armed ? "hover:bg-paper/20" : "text-mute hover:bg-[color-mix(in_srgb,var(--ink)_8%,transparent)] hover:text-ink"
|
|
91
91
|
),
|
|
92
|
-
children: /* @__PURE__ */
|
|
92
|
+
children: /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: "h-3 w-3", fill: "none", stroke: "currentColor", strokeWidth: "2.7", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
93
|
+
/* @__PURE__ */ jsx("path", { d: "m6 6 12 12" }),
|
|
94
|
+
/* @__PURE__ */ jsx("path", { d: "M18 6 6 18" })
|
|
95
|
+
] })
|
|
93
96
|
}
|
|
94
97
|
)
|
|
95
98
|
]
|