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
|
@@ -113,7 +113,7 @@ function StatusFooter({
|
|
|
113
113
|
/* @__PURE__ */ jsx("span", { className: cx("relative h-2 w-2 rounded-full", live ? "aui-f28-beat bg-brand" : "bg-ink") })
|
|
114
114
|
] }),
|
|
115
115
|
status.label,
|
|
116
|
-
status.href && /* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
116
|
+
status.href && /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", "aria-hidden": true, className: cx("h-3 w-3 text-mute transition-transform duration-300 group-hover/st:translate-x-0.5", EASE), fill: "none", stroke: "currentColor", strokeWidth: "2.7", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsx("path", { d: "m9.5 6 6 6-6 6" }) })
|
|
117
117
|
] });
|
|
118
118
|
const pillClass = cx("group/st inline-flex items-center gap-2 rounded-[6px] text-[13px] font-medium text-ink", ring);
|
|
119
119
|
const shown = hover ?? null;
|
|
@@ -199,9 +199,10 @@ function StatusFooter({
|
|
|
199
199
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
200
200
|
/* @__PURE__ */ jsxs("div", { className: "relative min-w-0 flex-1 @min-[600px]:flex-none", children: [
|
|
201
201
|
/* @__PURE__ */ jsx("label", { htmlFor: langId, className: "sr-only", children: "Language" }),
|
|
202
|
-
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0
|
|
203
|
-
/* @__PURE__ */ jsx("circle", { cx: "
|
|
204
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
202
|
+
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", "aria-hidden": true, className: "pointer-events-none absolute left-2.5 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-mute", fill: "none", stroke: "currentColor", strokeWidth: "2.1", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
203
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "8.5" }),
|
|
204
|
+
/* @__PURE__ */ jsx("path", { d: "M3.5 12h17" }),
|
|
205
|
+
/* @__PURE__ */ jsx("path", { d: "M12 3.5c2.5 2.6 3.5 5.5 3.5 8.5s-1 5.9-3.5 8.5C9.5 17.9 8.5 15 8.5 12s1-5.9 3.5-8.5Z" })
|
|
205
206
|
] }),
|
|
206
207
|
/* @__PURE__ */ jsx(
|
|
207
208
|
"select",
|
|
@@ -217,7 +218,7 @@ function StatusFooter({
|
|
|
217
218
|
children: languages.map((l) => /* @__PURE__ */ jsx("option", { value: l.value, children: l.label }, l.value))
|
|
218
219
|
}
|
|
219
220
|
),
|
|
220
|
-
/* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
221
|
+
/* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", "aria-hidden": true, className: "pointer-events-none absolute right-2.5 top-1/2 h-3 w-3 -translate-y-1/2 text-mute", fill: "none", stroke: "currentColor", strokeWidth: "2.7", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsx("path", { d: "m6 9.5 6 6 6-6" }) })
|
|
221
222
|
] }),
|
|
222
223
|
/* @__PURE__ */ jsxs(
|
|
223
224
|
"button",
|
|
@@ -230,7 +231,10 @@ function StatusFooter({
|
|
|
230
231
|
ring
|
|
231
232
|
),
|
|
232
233
|
children: [
|
|
233
|
-
/* @__PURE__ */ jsx("span", { className: "relative grid h-3.5 w-3.5 place-items-center overflow-hidden", children: /* @__PURE__ */
|
|
234
|
+
/* @__PURE__ */ jsx("span", { className: "relative grid h-3.5 w-3.5 place-items-center overflow-hidden", children: /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", "aria-hidden": true, className: cx("h-3.5 w-3.5", fly > 0 && "aui-f28-fly"), fill: "none", stroke: "currentColor", strokeWidth: "2.85", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
235
|
+
/* @__PURE__ */ jsx("path", { d: "M12 20V5" }),
|
|
236
|
+
/* @__PURE__ */ jsx("path", { d: "m6 11 6-6 6 6" })
|
|
237
|
+
] }, fly) }),
|
|
234
238
|
"Back to top"
|
|
235
239
|
]
|
|
236
240
|
}
|
|
@@ -123,13 +123,16 @@ function CtaFooter({
|
|
|
123
123
|
{
|
|
124
124
|
href: primary.href,
|
|
125
125
|
className: cx(
|
|
126
|
-
"group/cta inline-flex h-10 items-center gap-2 rounded-[8px] bg-brand px-4 text-[13.5px] font-medium text-
|
|
126
|
+
"group/cta inline-flex h-10 items-center gap-2 rounded-[8px] bg-brand px-4 text-[13.5px] font-medium text-on-brand shadow-[0_1px_2px_rgb(0_0_0/0.1),0_10px_24px_-10px_color-mix(in_srgb,var(--brand)_80%,transparent)] transition-transform duration-300 hover:-translate-y-px active:scale-[.97] motion-reduce:transition-none",
|
|
127
127
|
EASE,
|
|
128
128
|
ring
|
|
129
129
|
),
|
|
130
130
|
children: [
|
|
131
131
|
primary.label,
|
|
132
|
-
/* @__PURE__ */
|
|
132
|
+
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", "aria-hidden": true, className: cx("h-3.5 w-3.5 transition-transform duration-300 group-hover/cta:translate-x-0.5 motion-reduce:transition-none", EASE), fill: "none", stroke: "currentColor", strokeWidth: "2.7", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
133
|
+
/* @__PURE__ */ jsx("path", { d: "M4 12h15" }),
|
|
134
|
+
/* @__PURE__ */ jsx("path", { d: "m13 6 6 6-6 6" })
|
|
135
|
+
] })
|
|
133
136
|
]
|
|
134
137
|
}
|
|
135
138
|
),
|
|
@@ -168,7 +171,7 @@ function CtaFooter({
|
|
|
168
171
|
children: languages.map((l) => /* @__PURE__ */ jsx("option", { value: l.value, children: l.label }, l.value))
|
|
169
172
|
}
|
|
170
173
|
),
|
|
171
|
-
/* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
174
|
+
/* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", "aria-hidden": true, className: "pointer-events-none absolute right-2.5 top-1/2 h-3 w-3 -translate-y-1/2 text-mute", fill: "none", stroke: "currentColor", strokeWidth: "2.7", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsx("path", { d: "m6 9.5 6 6 6-6" }) })
|
|
172
175
|
] })
|
|
173
176
|
] })
|
|
174
177
|
] })
|
|
@@ -10,18 +10,18 @@ var KEYFRAMES = `@keyframes asta-ta-in { from { opacity: 0; transform: translate
|
|
|
10
10
|
@keyframes asta-ta-menu { from { opacity: 0; transform: translateY(-4px) scale(.96) } }
|
|
11
11
|
@keyframes asta-ta-spin { to { transform: rotate(360deg) } }
|
|
12
12
|
@media (prefers-reduced-motion: reduce) { .asta-ta-a, .asta-ta-a * { animation: none !important; transition-duration: 0s !important } }`;
|
|
13
|
-
var svg = { viewBox: "0 0
|
|
13
|
+
var svg = { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2.25, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true };
|
|
14
14
|
var KIND = {
|
|
15
|
-
sql: /* @__PURE__ */ jsx("path", { d: "
|
|
16
|
-
shell: /* @__PURE__ */ jsx("path", { d: "
|
|
17
|
-
file: /* @__PURE__ */ jsx("path", { d: "
|
|
18
|
-
web: /* @__PURE__ */ jsx("path", { d: "
|
|
19
|
-
mail: /* @__PURE__ */ jsx("path", { d: "
|
|
15
|
+
sql: /* @__PURE__ */ jsx("path", { d: "M5 6a7 2.5 0 1 0 14 0a7 2.5 0 1 0-14 0M5 6v12c0 1.4 3.1 2.5 7 2.5s7-1.1 7-2.5V6M5 12c0 1.4 3.1 2.5 7 2.5s7-1.1 7-2.5" }),
|
|
16
|
+
shell: /* @__PURE__ */ jsx("path", { d: "M5.5 4.5h13a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2h-13a2 2 0 0 1-2-2v-11a2 2 0 0 1 2-2ZM7.5 9.5l3 2.5-3 2.5M12.5 15h4" }),
|
|
17
|
+
file: /* @__PURE__ */ jsx("path", { d: "M6 3.5h8l4.5 4.5v12.5H6ZM14 3.5V8h4.5M9 13h6M9 16.5h4" }),
|
|
18
|
+
web: /* @__PURE__ */ jsx("path", { d: "M3.5 12a8.5 8.5 0 1 0 17 0a8.5 8.5 0 1 0-17 0M3.5 12h17M12 3.5c2.5 2.6 3.5 5.5 3.5 8.5s-1 5.9-3.5 8.5C9.5 17.9 8.5 15 8.5 12s1-5.9 3.5-8.5Z" }),
|
|
19
|
+
mail: /* @__PURE__ */ jsx("path", { d: "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" })
|
|
20
20
|
};
|
|
21
21
|
var RISK = {
|
|
22
|
-
read: { word: "Read only", icon: /* @__PURE__ */ jsx("path", { d: "
|
|
23
|
-
write: { word: "Changes data", icon: /* @__PURE__ */ jsx("path", { d: "
|
|
24
|
-
destructive: { word: "Can't be undone", icon: /* @__PURE__ */ jsx("path", { d: "
|
|
22
|
+
read: { word: "Read only", icon: /* @__PURE__ */ jsx("path", { d: "M2.5 12c3-5.5 16-5.5 19 0-3 5.5-16 5.5-19 0ZM9.25 12a2.75 2.75 0 1 0 5.5 0a2.75 2.75 0 1 0-5.5 0" }) },
|
|
23
|
+
write: { word: "Changes data", icon: /* @__PURE__ */ jsx("path", { d: "M4.5 19.5 5 16 15.5 5.5a2.1 2.1 0 0 1 3 3L8 19ZM13.5 7.5l3 3" }) },
|
|
24
|
+
destructive: { word: "Can't be undone", icon: /* @__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 0ZM12 9.5v4M12 17h.01" }) }
|
|
25
25
|
};
|
|
26
26
|
var fmt = (ms) => ms < 1e3 ? `${Math.max(1, Math.round(ms / 100)) / 10}s` : `${(ms / 1e3).toFixed(1)}s`;
|
|
27
27
|
function Kbd({ children }) {
|
|
@@ -185,7 +185,7 @@ function Card({ call, index, count, onDecide }) {
|
|
|
185
185
|
"aria-controls": menu ? menuId : void 0,
|
|
186
186
|
onClick: () => setMenu(!menu),
|
|
187
187
|
className: "grid h-8 w-7 place-items-center rounded-r-md bg-ink text-paper shadow-[inset_1px_0_0_color-mix(in_srgb,var(--paper)_22%,transparent)] outline-none transition-[background-color,transform] duration-150 hover:bg-[color-mix(in_srgb,var(--ink)_86%,var(--paper))] active:scale-[0.97] focus-visible:ring-2 focus-visible:ring-brand/50 focus-visible:ring-offset-2 focus-visible:ring-offset-paper",
|
|
188
|
-
children: /* @__PURE__ */ jsx("svg", { ...svg, strokeWidth:
|
|
188
|
+
children: /* @__PURE__ */ jsx("svg", { ...svg, strokeWidth: 2.55, className: cx("h-3.5 w-3.5 transition-transform duration-300", menu && "rotate-180"), style: { transitionTimingFunction: CURVE }, children: /* @__PURE__ */ jsx("path", { d: "M6 9.5l6 6 6-6" }) })
|
|
189
189
|
}
|
|
190
190
|
),
|
|
191
191
|
menu && /* @__PURE__ */ jsx(
|
|
@@ -234,7 +234,7 @@ function Receipt({ call, r }) {
|
|
|
234
234
|
/* @__PURE__ */ jsx("span", { className: cx("grid h-4 w-4 shrink-0 place-items-center", denied || r.state === "error" ? "text-ink" : "text-brand"), children: r.state === "running" ? /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 16 16", className: "h-3.5 w-3.5 animate-[asta-ta-spin_.8s_linear_infinite]", fill: "none", "aria-hidden": true, children: [
|
|
235
235
|
/* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "6", stroke: "currentColor", strokeOpacity: ".2", strokeWidth: "2" }),
|
|
236
236
|
/* @__PURE__ */ jsx("path", { d: "M14 8a6 6 0 0 0-6-6", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" })
|
|
237
|
-
] }) : /* @__PURE__ */ jsx("svg", { ...svg, strokeWidth:
|
|
237
|
+
] }) : /* @__PURE__ */ jsx("svg", { ...svg, strokeWidth: 2.7, className: "h-3.5 w-3.5", children: denied ? /* @__PURE__ */ jsx("path", { d: "M3.5 12a8.5 8.5 0 1 0 17 0a8.5 8.5 0 1 0-17 0M6 6l12 12" }) : r.state === "error" ? /* @__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 0ZM12 9.5v4M12 17h.01" }) : /* @__PURE__ */ jsx("path", { d: "M5 12.5l4.5 4.5L19 7.5" }) }) }),
|
|
238
238
|
/* @__PURE__ */ jsx("span", { className: "font-medium text-ink", children: word }),
|
|
239
239
|
/* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "text-mute", children: "\xB7" }),
|
|
240
240
|
/* @__PURE__ */ jsx("span", { className: "min-w-0 truncate font-mono text-[12px] text-ink-2", children: call.tool }),
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
useInView,
|
|
4
|
+
useTakeOver
|
|
5
|
+
} from "./chunk-FS2PZKJY.js";
|
|
2
6
|
|
|
3
7
|
// components/lab/blocks/PlanSwitcher.tsx
|
|
4
8
|
import { useEffect, useRef, useState } from "react";
|
|
@@ -48,15 +52,12 @@ function Roll({ value }) {
|
|
|
48
52
|
var Check = () => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "h-[62%] w-[62%]", fill: "none", stroke: "currentColor", strokeWidth: "2.6", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "M3.5 8.5l3 3 6-7" }) });
|
|
49
53
|
function PlanSwitcher() {
|
|
50
54
|
const [s, setS] = useState({ sel: 1, yearly: false, stamp: 0, born: FEATURES.map(() => -1) });
|
|
51
|
-
const [
|
|
52
|
-
const
|
|
55
|
+
const [held, takeOverDemo] = useTakeOver(8e3);
|
|
56
|
+
const root = useRef(null);
|
|
57
|
+
const visible = useInView(root);
|
|
58
|
+
const paused = held || !visible;
|
|
53
59
|
const radios = useRef([]);
|
|
54
|
-
const takeOver =
|
|
55
|
-
setPaused(true);
|
|
56
|
-
if (idle.current) clearTimeout(idle.current);
|
|
57
|
-
idle.current = setTimeout(() => setPaused(false), 8e3);
|
|
58
|
-
};
|
|
59
|
-
useEffect(() => () => void (idle.current && clearTimeout(idle.current)), []);
|
|
60
|
+
const takeOver = takeOverDemo;
|
|
60
61
|
useEffect(() => {
|
|
61
62
|
if (paused || window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;
|
|
62
63
|
let i = 0;
|
|
@@ -85,7 +86,7 @@ function PlanSwitcher() {
|
|
|
85
86
|
const plan = PLANS[s.sel];
|
|
86
87
|
const price = s.yearly ? plan.year : plan.month;
|
|
87
88
|
const save = (plan.month - plan.year) * 12;
|
|
88
|
-
return /* @__PURE__ */ jsxs("div", { className: "flex h-full w-full items-center justify-center px-5 pb-5 pt-11", style: { containerType: "size" }, children: [
|
|
89
|
+
return /* @__PURE__ */ jsxs("div", { ref: root, className: "flex h-full w-full items-center justify-center px-5 pb-5 pt-11", style: { containerType: "size" }, children: [
|
|
89
90
|
/* @__PURE__ */ jsx("style", { href: "asta-planswitcher", precedence: "asta", children: `
|
|
90
91
|
.lab-pl-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: min(6cqw, 32px); align-items: center }
|
|
91
92
|
.lab-pl-note { display: none }
|
|
@@ -10,22 +10,24 @@ function HoldToConfirm() {
|
|
|
10
10
|
const [done, setDone] = useState(false);
|
|
11
11
|
const [shake, setShake] = useState(0);
|
|
12
12
|
const raf = useRef(0);
|
|
13
|
+
const reset = useRef(void 0);
|
|
13
14
|
const holding = useRef(false);
|
|
14
15
|
const progress = useRef(0);
|
|
15
16
|
const loop = (dir) => {
|
|
17
|
+
const still = matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
16
18
|
let last = performance.now();
|
|
17
19
|
const step = (t) => {
|
|
18
20
|
const dt = t - last;
|
|
19
21
|
last = t;
|
|
20
22
|
progress.current = Math.max(0, Math.min(1, progress.current + (dir === 1 ? dt / DURATION : -dt / 380)));
|
|
21
23
|
setP(progress.current);
|
|
22
|
-
setShake(dir === 1 ? Math.sin(t / 22) * progress.current ** 2 * 1.8 : 0);
|
|
24
|
+
setShake(dir === 1 && !still ? Math.sin(t / 22) * progress.current ** 2 * 1.8 : 0);
|
|
23
25
|
if (dir === 1 && progress.current >= 1) {
|
|
24
26
|
holding.current = false;
|
|
25
27
|
setDone(true);
|
|
26
28
|
setShake(0);
|
|
27
29
|
navigator.vibrate?.(24);
|
|
28
|
-
setTimeout(() => {
|
|
30
|
+
reset.current = setTimeout(() => {
|
|
29
31
|
setDone(false);
|
|
30
32
|
progress.current = 0;
|
|
31
33
|
setP(0);
|
|
@@ -48,7 +50,15 @@ function HoldToConfirm() {
|
|
|
48
50
|
holding.current = false;
|
|
49
51
|
loop(-1);
|
|
50
52
|
};
|
|
51
|
-
useEffect(() =>
|
|
53
|
+
useEffect(() => {
|
|
54
|
+
const hide = () => document.hidden && release();
|
|
55
|
+
document.addEventListener("visibilitychange", hide);
|
|
56
|
+
return () => {
|
|
57
|
+
document.removeEventListener("visibilitychange", hide);
|
|
58
|
+
cancelAnimationFrame(raf.current);
|
|
59
|
+
clearTimeout(reset.current);
|
|
60
|
+
};
|
|
61
|
+
}, []);
|
|
52
62
|
const label = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
53
63
|
done ? /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: "h-[18px] w-[18px]", fill: "none", stroke: "currentColor", strokeWidth: "2.4", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "M5 12.5l4.5 4.5L19 7.5", strokeDasharray: "24", className: "animate-[hold-draw_.5s_cubic-bezier(.16,1,.3,1)_both]" }) }) : /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: "h-[18px] w-[18px]", fill: "none", stroke: "currentColor", strokeWidth: "1.8", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "M4 7h16M10 11v6M14 11v6M6 7l1 12h10l1-12M9 7V4h6v3" }) }),
|
|
54
64
|
done ? "Deleted" : p > 0.02 ? "Keep holding" : "Hold to delete"
|
|
@@ -90,13 +100,16 @@ function HoldToConfirm() {
|
|
|
90
100
|
]
|
|
91
101
|
}
|
|
92
102
|
),
|
|
93
|
-
/* @__PURE__ */ jsx("div", { className: "flex gap-[3px]", "aria-hidden": true, children: Array.from({ length: TICKS }, (_, i) => {
|
|
103
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-start gap-[3px]", "aria-hidden": true, children: Array.from({ length: TICKS }, (_, i) => {
|
|
94
104
|
const lit = p * TICKS > i;
|
|
105
|
+
const major = i % 6 === 5;
|
|
106
|
+
const full = major ? 14 : 10;
|
|
107
|
+
const h = lit ? full : major ? 10 : 6;
|
|
95
108
|
return /* @__PURE__ */ jsx(
|
|
96
109
|
"span",
|
|
97
110
|
{
|
|
98
|
-
className: "w-[3px] transition-[
|
|
99
|
-
style: { height:
|
|
111
|
+
className: "w-[3px] origin-top transition-[transform,background-color] duration-150 motion-reduce:transition-none",
|
|
112
|
+
style: { height: full, transform: `scaleY(${h / full})`, background: lit ? "var(--signal)" : "color-mix(in srgb, var(--ink) 18%, transparent)" }
|
|
100
113
|
},
|
|
101
114
|
i
|
|
102
115
|
);
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
useInView,
|
|
4
|
+
useTakeOver
|
|
5
|
+
} from "./chunk-FS2PZKJY.js";
|
|
2
6
|
|
|
3
7
|
// components/lab/blocks/VariantPicker.tsx
|
|
4
8
|
import { useEffect, useRef, useState } from "react";
|
|
@@ -50,8 +54,10 @@ function VariantPicker() {
|
|
|
50
54
|
const [prev, setPrev] = useState(0);
|
|
51
55
|
const [size, setSize] = useState(1);
|
|
52
56
|
const [tick, setTick] = useState(0);
|
|
53
|
-
const [
|
|
54
|
-
const
|
|
57
|
+
const [held, takeOverDemo] = useTakeOver(8e3);
|
|
58
|
+
const root = useRef(null);
|
|
59
|
+
const visible = useInView(root);
|
|
60
|
+
const paused = held || !visible;
|
|
55
61
|
const sw = useRef([]);
|
|
56
62
|
const pick = (i) => {
|
|
57
63
|
if (i === cur) return;
|
|
@@ -59,12 +65,7 @@ function VariantPicker() {
|
|
|
59
65
|
setCur(i);
|
|
60
66
|
setTick((t) => t + 1);
|
|
61
67
|
};
|
|
62
|
-
const takeOver =
|
|
63
|
-
setPaused(true);
|
|
64
|
-
if (idle.current) clearTimeout(idle.current);
|
|
65
|
-
idle.current = setTimeout(() => setPaused(false), 8e3);
|
|
66
|
-
};
|
|
67
|
-
useEffect(() => () => void (idle.current && clearTimeout(idle.current)), []);
|
|
68
|
+
const takeOver = takeOverDemo;
|
|
68
69
|
useEffect(() => {
|
|
69
70
|
if (paused) return;
|
|
70
71
|
let n = 0;
|
|
@@ -83,7 +84,7 @@ function VariantPicker() {
|
|
|
83
84
|
}, [paused]);
|
|
84
85
|
const f = FINISHES[cur];
|
|
85
86
|
const p = FINISHES[prev];
|
|
86
|
-
return /* @__PURE__ */ jsxs("div", { className: "flex h-full w-full flex-col items-center justify-center gap-[5cqh] px-5 pt-8", style: { containerType: "size" }, children: [
|
|
87
|
+
return /* @__PURE__ */ jsxs("div", { ref: root, className: "flex h-full w-full flex-col items-center justify-center gap-[5cqh] px-5 pt-8", style: { containerType: "size" }, children: [
|
|
87
88
|
/* @__PURE__ */ jsx("style", { href: "asta-variantpicker", precedence: "asta", children: `
|
|
88
89
|
@keyframes lab-vp-sweep { from { -webkit-mask-position: 100% 0; mask-position: 100% 0 } to { -webkit-mask-position: 0 0; mask-position: 0 0 } }
|
|
89
90
|
.lab-vp-sweep { -webkit-mask-image: linear-gradient(90deg, #000 38%, transparent 62%); mask-image: linear-gradient(90deg, #000 38%, transparent 62%); -webkit-mask-size: 300% 100%; mask-size: 300% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; will-change: mask-position }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Avatar
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7IOMROVG.js";
|
|
5
5
|
|
|
6
6
|
// components/kit/base/kanban.tsx
|
|
7
7
|
import { useEffect, useId, useLayoutEffect, useRef, useState } from "react";
|
|
@@ -10,6 +10,16 @@ var cx = (...c) => c.filter(Boolean).join(" ");
|
|
|
10
10
|
var EASE = "ease-[cubic-bezier(.16,1,.3,1)]";
|
|
11
11
|
var CURVE = "cubic-bezier(.16,1,.3,1)";
|
|
12
12
|
var GAP = 8;
|
|
13
|
+
function upperBound(a, v) {
|
|
14
|
+
let lo = 0;
|
|
15
|
+
let hi = a.length;
|
|
16
|
+
while (lo < hi) {
|
|
17
|
+
const mid = lo + hi >> 1;
|
|
18
|
+
if (a[mid] <= v) lo = mid + 1;
|
|
19
|
+
else hi = mid;
|
|
20
|
+
}
|
|
21
|
+
return lo;
|
|
22
|
+
}
|
|
13
23
|
var reduced = () => typeof window !== "undefined" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
14
24
|
function place(cards, card, col, index) {
|
|
15
25
|
const rest = cards.filter((c) => c.id !== card.id);
|
|
@@ -62,10 +72,43 @@ function Kanban({ columns, defaultCards, onChange, className }) {
|
|
|
62
72
|
const press = useRef(null);
|
|
63
73
|
const flip = useRef(null);
|
|
64
74
|
const refocus = useRef(null);
|
|
75
|
+
const floating = useRef(null);
|
|
76
|
+
const pos = useRef({ x: 0, y: 0 });
|
|
77
|
+
const board = useRef({ left: 0, top: 0 });
|
|
78
|
+
const frame = useRef(0);
|
|
79
|
+
const landing = useRef(void 0);
|
|
65
80
|
const pickedRef = useRef(picked);
|
|
66
81
|
useEffect(() => {
|
|
67
82
|
pickedRef.current = picked;
|
|
68
83
|
}, [picked]);
|
|
84
|
+
useEffect(
|
|
85
|
+
() => () => {
|
|
86
|
+
clearTimeout(landing.current);
|
|
87
|
+
cancelAnimationFrame(frame.current);
|
|
88
|
+
},
|
|
89
|
+
[]
|
|
90
|
+
);
|
|
91
|
+
const paint = () => {
|
|
92
|
+
frame.current = 0;
|
|
93
|
+
const el = floating.current;
|
|
94
|
+
if (!el) return;
|
|
95
|
+
el.style.setProperty("--kx", `${pos.current.x}px`);
|
|
96
|
+
el.style.setProperty("--ky", `${pos.current.y}px`);
|
|
97
|
+
};
|
|
98
|
+
const dragId = drag?.id;
|
|
99
|
+
const dropping = drag?.dropping;
|
|
100
|
+
useLayoutEffect(() => {
|
|
101
|
+
if (dragId) paint();
|
|
102
|
+
}, [dragId, dropping]);
|
|
103
|
+
useEffect(() => {
|
|
104
|
+
if (!dragId) return;
|
|
105
|
+
const onScroll = () => {
|
|
106
|
+
const r = root.current?.getBoundingClientRect();
|
|
107
|
+
if (r) board.current = { left: r.left, top: r.top };
|
|
108
|
+
};
|
|
109
|
+
window.addEventListener("scroll", onScroll, { capture: true, passive: true });
|
|
110
|
+
return () => window.removeEventListener("scroll", onScroll, { capture: true });
|
|
111
|
+
}, [dragId]);
|
|
69
112
|
const inCol = (list, col) => list.filter((c) => c.column === col);
|
|
70
113
|
const titleOf = (col) => columns.find((c) => c.id === col)?.title ?? col;
|
|
71
114
|
const where = (list, id) => {
|
|
@@ -91,20 +134,23 @@ function Kanban({ columns, defaultCards, onChange, className }) {
|
|
|
91
134
|
if (id && document.activeElement !== els.current.get(id)) els.current.get(id)?.focus();
|
|
92
135
|
}, [cards, picked]);
|
|
93
136
|
const start = (e, card) => {
|
|
94
|
-
const
|
|
137
|
+
const b = root.current.getBoundingClientRect();
|
|
138
|
+
board.current = { left: b.left, top: b.top };
|
|
139
|
+
const r = els.current.get(card.id).getBoundingClientRect();
|
|
140
|
+
const D = r.height + GAP;
|
|
95
141
|
const geo = columns.map((c) => {
|
|
96
|
-
const
|
|
142
|
+
const lr = lists.current.get(c.id).getBoundingClientRect();
|
|
97
143
|
const ids = inCol(cards, c.id).map((k) => k.id);
|
|
98
144
|
const box = Object.fromEntries(ids.map((id) => [id, { top: els.current.get(id).offsetTop, h: els.current.get(id).offsetHeight }]));
|
|
99
|
-
|
|
145
|
+
const src = c.id === card.column ? ids.indexOf(card.id) : -1;
|
|
146
|
+
const mids = ids.flatMap((id, i) => i === src ? [] : [box[id].top + (src >= 0 && i > src ? -D : 0) + box[id].h / 2]);
|
|
147
|
+
return { id: c.id, left: lr.left - b.left, right: lr.right - b.left, top: lr.top - b.top, ids, box, mids };
|
|
100
148
|
});
|
|
101
|
-
const r = els.current.get(card.id).getBoundingClientRect();
|
|
102
149
|
const index = geo.find((g) => g.id === card.column).ids.indexOf(card.id);
|
|
150
|
+
pos.current = { x: r.left - b.left, y: r.top - b.top };
|
|
103
151
|
setDrag({
|
|
104
152
|
id: card.id,
|
|
105
153
|
from: card.column,
|
|
106
|
-
x: r.left - board.left,
|
|
107
|
-
y: r.top - board.top,
|
|
108
154
|
w: r.width,
|
|
109
155
|
h: r.height,
|
|
110
156
|
ox: e.clientX - r.left,
|
|
@@ -113,25 +159,28 @@ function Kanban({ columns, defaultCards, onChange, className }) {
|
|
|
113
159
|
geo
|
|
114
160
|
});
|
|
115
161
|
};
|
|
116
|
-
const
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
const closing = { ...d, target: { col: "", index: 0 } };
|
|
124
|
-
const compact = g.ids.filter((id) => id !== d.id);
|
|
125
|
-
let index = compact.length;
|
|
126
|
-
for (let i = 0; i < compact.length; i++) {
|
|
127
|
-
const b = g.box[compact[i]];
|
|
128
|
-
const top = b.top + shiftOf(closing, g, compact[i]);
|
|
129
|
-
if (cy < top + b.h / 2) {
|
|
130
|
-
index = i;
|
|
131
|
-
break;
|
|
132
|
-
}
|
|
162
|
+
const columnAt = (geo, px) => {
|
|
163
|
+
let lo = 0;
|
|
164
|
+
let hi = geo.length - 1;
|
|
165
|
+
while (lo < hi) {
|
|
166
|
+
const mid = lo + hi >> 1;
|
|
167
|
+
if (geo[mid].right < px) lo = mid + 1;
|
|
168
|
+
else hi = mid;
|
|
133
169
|
}
|
|
134
|
-
|
|
170
|
+
const g = geo[lo];
|
|
171
|
+
if (px >= g.left || lo === 0) return g;
|
|
172
|
+
const p = geo[lo - 1];
|
|
173
|
+
return Math.abs((p.left + p.right) / 2 - px) < Math.abs((g.left + g.right) / 2 - px) ? p : g;
|
|
174
|
+
};
|
|
175
|
+
const move = (e, d) => {
|
|
176
|
+
const x = e.clientX - board.current.left - d.ox;
|
|
177
|
+
const y = e.clientY - board.current.top - d.oy;
|
|
178
|
+
pos.current = { x, y };
|
|
179
|
+
if (!frame.current) frame.current = requestAnimationFrame(paint);
|
|
180
|
+
const g = columnAt(d.geo, e.clientX - board.current.left);
|
|
181
|
+
const index = upperBound(g.mids, y + d.h / 2 - g.top);
|
|
182
|
+
if (g.id === d.target.col && index === d.target.index) return;
|
|
183
|
+
setDrag((cur) => cur && cur.id === d.id && !cur.dropping ? { ...cur, target: { col: g.id, index } } : cur);
|
|
135
184
|
};
|
|
136
185
|
const commit = (d) => {
|
|
137
186
|
const card = cards.find((c) => c.id === d.id);
|
|
@@ -144,8 +193,12 @@ function Kanban({ columns, defaultCards, onChange, className }) {
|
|
|
144
193
|
const drop = (d) => {
|
|
145
194
|
if (reduced()) return commit(d);
|
|
146
195
|
const g = d.geo.find((c) => c.id === d.target.col);
|
|
147
|
-
|
|
148
|
-
|
|
196
|
+
cancelAnimationFrame(frame.current);
|
|
197
|
+
frame.current = 0;
|
|
198
|
+
pos.current = { x: g.left, y: g.top + gapTop(d, g) };
|
|
199
|
+
setDrag({ ...d, dropping: true });
|
|
200
|
+
clearTimeout(landing.current);
|
|
201
|
+
landing.current = setTimeout(() => commit(d), 260);
|
|
149
202
|
};
|
|
150
203
|
const cancelPick = (focus) => {
|
|
151
204
|
const p = pickedRef.current;
|
|
@@ -227,11 +280,16 @@ function Kanban({ columns, defaultCards, onChange, className }) {
|
|
|
227
280
|
const dragged = drag ? cards.find((c) => c.id === drag.id) : void 0;
|
|
228
281
|
return /* @__PURE__ */ jsxs("div", { className: cx("w-full overflow-x-auto", className), children: [
|
|
229
282
|
/* @__PURE__ */ jsx("style", { href: "asta-kanban", precedence: "asta", children: `
|
|
230
|
-
@keyframes kit-kb-lift { to { transform: rotate(1.5deg) scale(1.03);
|
|
231
|
-
@keyframes kit-kb-land { from { transform: rotate(1.5deg) scale(1.03);
|
|
283
|
+
@keyframes kit-kb-lift { to { transform: rotate(1.5deg) scale(1.03); } }
|
|
284
|
+
@keyframes kit-kb-land { from { transform: rotate(1.5deg) scale(1.03); } }
|
|
232
285
|
@keyframes kit-kb-fade { from { opacity: 0; } }
|
|
286
|
+
@keyframes kit-kb-out { to { opacity: 0; } }
|
|
233
287
|
@keyframes kit-kb-count { from { opacity: 0; transform: translateY(4px); } }
|
|
234
|
-
|
|
288
|
+
.kit-kb-float { position: relative; animation: kit-kb-lift .22s ${CURVE} both; }
|
|
289
|
+
.kit-kb-float::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: 0 18px 36px -14px rgb(0 0 0 / .28); animation: kit-kb-fade .22s ${CURVE} both; }
|
|
290
|
+
.kit-kb-float[data-dropping] { animation: kit-kb-land .26s ${CURVE} both; }
|
|
291
|
+
.kit-kb-float[data-dropping]::after { animation: kit-kb-out .26s ${CURVE} both; }
|
|
292
|
+
@media (prefers-reduced-motion: reduce) { .kit-kb, .kit-kb * { animation: none !important; transition-duration: 0s !important; } .kit-kb-float::after { opacity: 0; } }
|
|
235
293
|
` }),
|
|
236
294
|
/* @__PURE__ */ jsx("p", { id: hintId, className: "sr-only", children: "Press Space to pick up a card. Use the arrow keys to move it, Space to drop, Escape to cancel." }),
|
|
237
295
|
/* @__PURE__ */ jsx("p", { className: "sr-only", "aria-live": "polite", children: msg }),
|
|
@@ -311,21 +369,15 @@ function Kanban({ columns, defaultCards, onChange, className }) {
|
|
|
311
369
|
drag && dragged && /* @__PURE__ */ jsx(
|
|
312
370
|
"div",
|
|
313
371
|
{
|
|
372
|
+
ref: floating,
|
|
314
373
|
"aria-hidden": true,
|
|
315
374
|
className: "pointer-events-none absolute left-0 top-0 z-30",
|
|
316
375
|
style: {
|
|
317
376
|
width: drag.w,
|
|
318
|
-
transform:
|
|
377
|
+
transform: "translate3d(var(--kx, 0px), var(--ky, 0px), 0)",
|
|
319
378
|
transition: drag.dropping ? `transform .26s ${CURVE}` : "none"
|
|
320
379
|
},
|
|
321
|
-
children: /* @__PURE__ */ jsx(
|
|
322
|
-
"div",
|
|
323
|
-
{
|
|
324
|
-
className: cx(cardCls, "cursor-grabbing"),
|
|
325
|
-
style: { animation: drag.dropping ? `kit-kb-land .26s ${CURVE} both` : `kit-kb-lift .22s ${CURVE} both` },
|
|
326
|
-
children: /* @__PURE__ */ jsx(CardBody, { card: dragged })
|
|
327
|
-
}
|
|
328
|
-
)
|
|
380
|
+
children: /* @__PURE__ */ jsx("div", { className: cx(cardCls, "kit-kb-float cursor-grabbing"), "data-dropping": drag.dropping || void 0, children: /* @__PURE__ */ jsx(CardBody, { card: dragged }) })
|
|
329
381
|
}
|
|
330
382
|
)
|
|
331
383
|
] })
|
|
@@ -31,10 +31,10 @@ function Checkbox({ checked, defaultChecked = false, onCheckedChange, disabled,
|
|
|
31
31
|
on || mixed ? "bg-brand shadow-[inset_0_1px_0_rgb(255_255_255/0.2),0_1px_2px_rgb(0_0_0/0.2)]" : "bg-paper shadow-[inset_0_0_0_1.5px_color-mix(in_srgb,var(--ink)_22%,transparent)] hover:shadow-[inset_0_0_0_1.5px_color-mix(in_srgb,var(--ink)_40%,transparent)]"
|
|
32
32
|
),
|
|
33
33
|
children: [
|
|
34
|
-
/* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
34
|
+
/* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: "col-start-1 row-start-1 h-3 w-3 text-on-brand", fill: "none", stroke: "currentColor", strokeWidth: "3.6", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx(
|
|
35
35
|
"path",
|
|
36
36
|
{
|
|
37
|
-
d: "
|
|
37
|
+
d: "m5 12.5 4.5 4.5L19 7.5",
|
|
38
38
|
pathLength: 1,
|
|
39
39
|
strokeDasharray: "1",
|
|
40
40
|
className: "transition-[stroke-dashoffset] ease-[cubic-bezier(.16,1,.3,1)] motion-reduce:transition-none",
|
|
@@ -45,7 +45,7 @@ function Checkbox({ checked, defaultChecked = false, onCheckedChange, disabled,
|
|
|
45
45
|
"span",
|
|
46
46
|
{
|
|
47
47
|
"aria-hidden": true,
|
|
48
|
-
className: cx("col-start-1 row-start-1 h-[2.2px] w-2 rounded-full bg-
|
|
48
|
+
className: cx("col-start-1 row-start-1 h-[2.2px] w-2 rounded-full bg-on-brand transition-transform duration-300 ease-[cubic-bezier(.16,1,.3,1)]", mixed ? "scale-x-100" : "scale-x-0")
|
|
49
49
|
}
|
|
50
50
|
)
|
|
51
51
|
]
|
|
@@ -27,7 +27,7 @@ function Mark({ text, q }) {
|
|
|
27
27
|
text.slice(i + q.length)
|
|
28
28
|
] });
|
|
29
29
|
}
|
|
30
|
-
var Icon = ({ d, className }) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
30
|
+
var Icon = ({ d, className }) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: cx("h-4 w-4 shrink-0", className), fill: "none", stroke: "currentColor", strokeWidth: "2.25", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: d });
|
|
31
31
|
function SearchField({
|
|
32
32
|
placeholder = "Search Astabyte\u2026",
|
|
33
33
|
recent: recentProp = RECENT,
|
|
@@ -125,10 +125,10 @@ function SearchField({
|
|
|
125
125
|
children: [
|
|
126
126
|
item.kind === "recent" ? /* @__PURE__ */ jsx(Icon, { d: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
127
127
|
/* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "5.75" }),
|
|
128
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
128
|
+
/* @__PURE__ */ jsx("path", { d: "M12 7.5v4.5l3 1.875" })
|
|
129
129
|
] }), className: "text-mute" }) : /* @__PURE__ */ jsx(Icon, { d: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
130
130
|
/* @__PURE__ */ jsx("rect", { x: "2.25", y: "2.25", width: "11.5", height: "11.5", rx: "2.5" }),
|
|
131
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
131
|
+
/* @__PURE__ */ jsx("path", { d: "M4 12h15M13 6l6 6-6 6" })
|
|
132
132
|
] }), className: "text-mute" }),
|
|
133
133
|
/* @__PURE__ */ jsx("span", { className: "min-w-0 flex-1 truncate", children: /* @__PURE__ */ jsx(Mark, { text: item.label, q: q.trim() }) }),
|
|
134
134
|
item.kind === "recent" ? /* @__PURE__ */ jsx(
|
|
@@ -142,13 +142,13 @@ function SearchField({
|
|
|
142
142
|
setRecent((r) => r.filter((x) => x !== item.label));
|
|
143
143
|
},
|
|
144
144
|
className: "grid h-6 w-6 place-items-center rounded-[6px] text-mute opacity-0 transition-opacity duration-200 hover:text-[var(--aui030-fg)] group-hover/r:opacity-100",
|
|
145
|
-
children: /* @__PURE__ */ jsx(Icon, { d: /* @__PURE__ */ jsx("path", { d: "
|
|
145
|
+
children: /* @__PURE__ */ jsx(Icon, { d: /* @__PURE__ */ jsx("path", { d: "M6 6l12 12M18 6 6 18" }), className: "h-3 w-3" })
|
|
146
146
|
}
|
|
147
147
|
) : /* @__PURE__ */ jsx("span", { className: "text-[12px] text-mute", children: item.meta }),
|
|
148
148
|
/* @__PURE__ */ jsx(
|
|
149
149
|
Icon,
|
|
150
150
|
{
|
|
151
|
-
d: /* @__PURE__ */ jsx("path", { d: "
|
|
151
|
+
d: /* @__PURE__ */ jsx("path", { d: "M4 12h15M13 6l6 6-6 6" }),
|
|
152
152
|
className: cx("h-3.5 w-3.5 transition-[transform,opacity] duration-300", i === idx ? "translate-x-0 opacity-100" : "-translate-x-1 opacity-0")
|
|
153
153
|
}
|
|
154
154
|
)
|
|
@@ -237,7 +237,7 @@ function SearchField({
|
|
|
237
237
|
q ? "rotate-0 scale-100 opacity-100" : "pointer-events-none -rotate-90 scale-50 opacity-0"
|
|
238
238
|
),
|
|
239
239
|
style: { transitionTimingFunction: EASE },
|
|
240
|
-
children: /* @__PURE__ */ jsx(Icon, { d: /* @__PURE__ */ jsx("path", { d: "
|
|
240
|
+
children: /* @__PURE__ */ jsx(Icon, { d: /* @__PURE__ */ jsx("path", { d: "M6 6l12 12M18 6 6 18" }), className: "h-3 w-3" })
|
|
241
241
|
}
|
|
242
242
|
)
|
|
243
243
|
] })
|
|
@@ -52,7 +52,7 @@ function Slider({
|
|
|
52
52
|
return /* @__PURE__ */ jsx(
|
|
53
53
|
"span",
|
|
54
54
|
{
|
|
55
|
-
className: cx("absolute top-1/2 h-1 w-1 -translate-x-1/2 -translate-y-1/2 rounded-full transition-colors", at <= k ? "bg-
|
|
55
|
+
className: cx("absolute top-1/2 h-1 w-1 -translate-x-1/2 -translate-y-1/2 rounded-full transition-colors", at <= k ? "bg-on-brand/80" : "bg-[color-mix(in_srgb,var(--ink)_28%,transparent)]"),
|
|
56
56
|
style: { left: `${at * 100}%` }
|
|
57
57
|
},
|
|
58
58
|
i
|