asta-ui 0.9.7 → 0.9.8
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/css/asta.css +2 -2
- package/css/asta.js +175 -45
- package/css/components.css +76 -76
- 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 +93 -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 +16 -16
- package/css/tokens.css +3 -0
- 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 +1 -1
- 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/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 +1 -1
- 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 +2 -2
- package/dist/base/booking-slots.js +2 -1
- 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/cart-drawer.js +2 -1
- package/dist/base/change-ledger.js +2 -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 -3
- 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/comments.js +3 -3
- package/dist/base/context-meter.js +2 -2
- package/dist/base/cookie-consent.js +2 -2
- 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-manager.js +2 -2
- 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.js +2 -2
- package/dist/base/gravity-pills.js +1 -1
- package/dist/base/hold-to-confirm.js +1 -1
- package/dist/base/inbox.js +3 -3
- package/dist/base/ink-trail.js +2 -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/model-picker.js +1 -1
- package/dist/base/motion-button.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-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/onboarding.js +2 -2
- package/dist/base/otp-input-aui-042.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/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/radio-group-aui-055.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/scramble-text.js +1 -1
- package/dist/base/scrub-input.js +1 -1
- package/dist/base/seat-picker.js +2 -1
- package/dist/base/select-aui-043.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.js +2 -2
- package/dist/base/skeleton.js +1 -1
- package/dist/base/slider-aui-062.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/stepper.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.js +1 -1
- package/dist/base/team-members.js +3 -3
- package/dist/base/testimonials.js +2 -2
- package/dist/base/textarea-aui-002.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-037.js +1 -1
- package/dist/base/textarea.js +1 -1
- package/dist/base/toast.js +1 -1
- package/dist/base/token-swap.js +2 -1
- package/dist/base/tool-dock.js +1 -1
- package/dist/base/trade-ticket.js +2 -1
- package/dist/base/variant-picker.js +2 -1
- package/dist/base/wishlist.js +2 -1
- package/dist/base/workspace-switcher.js +1 -1
- package/dist/base.js +125 -124
- package/dist/billing.js +2 -2
- package/dist/booking-slots.js +2 -1
- package/dist/button.js +1 -1
- package/dist/candlestick.js +1 -1
- package/dist/card-checkout.js +2 -1
- package/dist/cart-drawer.js +2 -1
- package/dist/change-ledger.js +2 -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 -3
- package/dist/{chunk-EKPTPTKK.js → chunk-2DECQKLI.js} +2 -2
- package/dist/{chunk-BEV2X4YL.js → chunk-2RB5T6WP.js} +51 -11
- package/dist/{chunk-VNUX5LOC.js → chunk-2SOX7WUL.js} +5 -5
- package/dist/{chunk-H4NFBYKY.js → chunk-3G2L5A4O.js} +8 -2
- package/dist/{chunk-OKCSTMX3.js → chunk-3LJ72YR4.js} +4 -1
- package/dist/{chunk-6RA7LJ3K.js → chunk-3OCWR4L3.js} +13 -8
- package/dist/{chunk-RFVKRVTD.js → chunk-3PLPK7QK.js} +3 -3
- package/dist/{chunk-TMOEFAXQ.js → chunk-3PLQKAD7.js} +15 -2
- package/dist/{chunk-57PESBSZ.js → chunk-3PSV752Q.js} +1 -1
- package/dist/{chunk-5N2G462S.js → chunk-3XHG7P5T.js} +2 -2
- package/dist/{chunk-X4JYOCFA.js → chunk-4CIRS3OI.js} +18 -17
- package/dist/{chunk-XYQI4ZYV.js → chunk-4GWJFDSU.js} +1 -1
- package/dist/{chunk-KEMMI76V.js → chunk-4RBIAKO6.js} +2 -2
- package/dist/{chunk-YJAZHJY3.js → chunk-56VKEODT.js} +1 -1
- package/dist/{chunk-3RMCFFW2.js → chunk-5CAZEFDX.js} +8 -8
- package/dist/{chunk-JVTDNOHQ.js → chunk-5OSKT7O3.js} +2 -2
- package/dist/{chunk-ZWBJUJTR.js → chunk-5ZQ6PMJT.js} +2 -2
- package/dist/{chunk-YPFZXGPT.js → chunk-5ZTFP7P6.js} +1 -1
- package/dist/{chunk-P37H477M.js → chunk-633N6IVU.js} +3 -3
- package/dist/{chunk-EXX6YSUX.js → chunk-64UK5LOT.js} +2 -2
- package/dist/{chunk-TLODJONC.js → chunk-66MJ6EEU.js} +1 -1
- package/dist/{chunk-HVFB44HO.js → chunk-6D4LHBWD.js} +2 -2
- package/dist/{chunk-D4AYULMF.js → chunk-6NR46VEH.js} +2 -2
- package/dist/{chunk-BIYNJDPD.js → chunk-6OZZ24UL.js} +2 -2
- package/dist/{chunk-EN6XBXW5.js → chunk-6ZGHPBHD.js} +3 -2
- package/dist/{chunk-C2G5BUEG.js → chunk-74WYX24P.js} +23 -14
- package/dist/{chunk-FQ4YUKAE.js → chunk-765WRI6C.js} +3 -3
- package/dist/{chunk-5RPJPL2V.js → chunk-7HI4HJFN.js} +62 -26
- package/dist/{chunk-IVCHYE55.js → chunk-7IOMROVG.js} +13 -8
- package/dist/{chunk-ECGJ6D5D.js → chunk-7PHSPBJK.js} +1 -1
- package/dist/{chunk-O626XQW2.js → chunk-ALDX2G5E.js} +15 -2
- package/dist/{chunk-2PPF4GK5.js → chunk-ALRSHXXA.js} +58 -29
- package/dist/{chunk-FT7WZV3D.js → chunk-AMFNY7IA.js} +13 -4
- package/dist/{chunk-LKRE4HLZ.js → chunk-AQV7BK73.js} +73 -34
- package/dist/{chunk-ZZ25XSK2.js → chunk-B3WWWKHW.js} +2 -1
- package/dist/{chunk-OFYGJUKP.js → chunk-BT77ALVB.js} +1 -1
- package/dist/{chunk-FOJRZASV.js → chunk-BWAOBM2E.js} +32 -8
- package/dist/{chunk-TXC6CCSA.js → chunk-BWYPKOG3.js} +1 -1
- package/dist/{chunk-F4CWSZXK.js → chunk-BXNC35OZ.js} +1 -1
- package/dist/{chunk-5DLY6FGD.js → chunk-CMOI7V4H.js} +1 -1
- package/dist/{chunk-5OHHGQV6.js → chunk-CRGCVJLS.js} +3 -3
- package/dist/{chunk-BV5HEXB5.js → chunk-CTWW5QOS.js} +5 -5
- package/dist/{chunk-ANL6VX4X.js → chunk-DEAQSJ4Z.js} +1 -1
- package/dist/{chunk-DWPGFNNF.js → chunk-DITROAPF.js} +32 -14
- package/dist/{chunk-EAHHWF3V.js → chunk-DSLKU6QJ.js} +32 -14
- package/dist/{chunk-ZGMBQZDV.js → chunk-DUXOV6MO.js} +28 -15
- package/dist/{chunk-DWZT455C.js → chunk-DZU5SMC3.js} +5 -5
- package/dist/{chunk-VUDTGRS3.js → chunk-EWSQCTIB.js} +1 -1
- package/dist/{chunk-FFRJW5O7.js → chunk-FA4A2EGP.js} +2 -2
- package/dist/{chunk-NZRQL3SA.js → chunk-FAHOYAQH.js} +1 -1
- package/dist/{chunk-NPVUFQGC.js → chunk-FDI2X6DY.js} +1 -1
- package/dist/{chunk-JNNMKFEQ.js → chunk-FGN7KDKD.js} +1 -1
- package/dist/{chunk-Q5A5OTLI.js → chunk-FOHY7LPU.js} +1 -1
- package/dist/{chunk-CBJUY4WE.js → chunk-FPOH7ETA.js} +1 -1
- package/dist/chunk-FS2PZKJY.js +43 -0
- package/dist/{chunk-XKA3LTJZ.js → chunk-FW45BTSS.js} +2 -2
- package/dist/{chunk-UZF7SCRT.js → chunk-G3FPQ3XG.js} +4 -4
- package/dist/{chunk-TAAAYFBT.js → chunk-GTS6MKPD.js} +2 -2
- package/dist/{chunk-7UMBKY3H.js → chunk-H46UXFHV.js} +1 -1
- package/dist/{chunk-B4XRAVHL.js → chunk-H7OVE6OB.js} +3 -3
- package/dist/{chunk-7RCBOTWL.js → chunk-HKOPYHLZ.js} +15 -8
- package/dist/{chunk-UXRTPEH7.js → chunk-HRQUTQSW.js} +9 -7
- package/dist/{chunk-WSL4JGEA.js → chunk-HSDMCZMX.js} +2 -2
- package/dist/{chunk-72UKXOMW.js → chunk-IBJA4ZM5.js} +14 -5
- package/dist/{chunk-F526V5BA.js → chunk-ID5GN2VU.js} +2 -2
- package/dist/{chunk-WO36QUH3.js → chunk-IDEK35SZ.js} +4 -1
- package/dist/{chunk-W5M3EHJL.js → chunk-IU4OH5MB.js} +3 -3
- package/dist/{chunk-SR4NYQWO.js → chunk-IVR3ZIXB.js} +1 -1
- package/dist/{chunk-PSTMF66E.js → chunk-JGZHWQGV.js} +5 -5
- package/dist/{chunk-2LM3VHNO.js → chunk-JJ473HJ2.js} +2 -1
- package/dist/{chunk-PZ2ZUHC3.js → chunk-JQX5KR7O.js} +15 -5
- package/dist/{chunk-TL32C2SQ.js → chunk-K3ASWIQF.js} +8 -2
- package/dist/{chunk-UTGEGGSE.js → chunk-K3SP537A.js} +12 -11
- package/dist/{chunk-SCQ6A4ZG.js → chunk-KATSSAVI.js} +8 -2
- package/dist/{chunk-MUDW65ZT.js → chunk-KCORGXZI.js} +32 -9
- package/dist/{chunk-LDTCIVDX.js → chunk-L67VH7II.js} +1 -1
- package/dist/{chunk-SPKSRH6G.js → chunk-LGGGLQAD.js} +10 -9
- package/dist/{chunk-IDXERBKL.js → chunk-LQR5OD3Z.js} +3 -2
- package/dist/{chunk-F7LAUVDJ.js → chunk-M362TW4G.js} +1 -1
- package/dist/{chunk-DNROUJ62.js → chunk-MBMY2VYS.js} +11 -6
- package/dist/{chunk-N6FMS47F.js → chunk-MEIRPHQO.js} +26 -21
- package/dist/{chunk-DU3CZ3K7.js → chunk-MIDBYG4B.js} +17 -4
- package/dist/{chunk-OH5VAD27.js → chunk-MKCLD2HJ.js} +1 -1
- package/dist/{chunk-FLCT7THQ.js → chunk-MNWZP3S2.js} +1 -1
- package/dist/{chunk-OXLBH4QM.js → chunk-MT3VMDV4.js} +1 -1
- package/dist/chunk-MVGUQ36E.js +75 -0
- package/dist/{chunk-RQNXELUL.js → chunk-MXRBXBE3.js} +1 -1
- package/dist/{chunk-IATF2OTU.js → chunk-MYPRORYG.js} +14 -5
- package/dist/{chunk-V7JUJQNR.js → chunk-N7XJO5Q4.js} +1 -1
- package/dist/{chunk-ISZ7O2Q6.js → chunk-O6GCB7HD.js} +10 -9
- package/dist/{chunk-EG7NXGDD.js → chunk-OFUEFWOK.js} +19 -6
- package/dist/{chunk-ZUH7XRX7.js → chunk-OFWUA5BO.js} +3 -2
- package/dist/{chunk-ZQV2GAWY.js → chunk-OJNEZ5AY.js} +10 -9
- package/dist/{chunk-DPLH3EGO.js → chunk-OOK5CF2D.js} +91 -39
- package/dist/{chunk-BG2W2KVE.js → chunk-ORZVPZQP.js} +8 -2
- package/dist/{chunk-RBTX7TVA.js → chunk-OSZXWKKH.js} +3 -3
- package/dist/{chunk-DWA62IYV.js → chunk-OUGWYBWG.js} +3 -3
- package/dist/{chunk-QJXVIEB5.js → chunk-P3XPSBST.js} +2 -2
- package/dist/{chunk-37JQA6PI.js → chunk-PHI4NQLJ.js} +1 -1
- package/dist/{chunk-KEMC4RIF.js → chunk-PLQ6CYRC.js} +1 -1
- package/dist/{chunk-JF4BKHFK.js → chunk-PNN2M3V3.js} +2 -2
- package/dist/{chunk-45KDL3JM.js → chunk-PZA44CGX.js} +1 -1
- package/dist/{chunk-SUWA7DM6.js → chunk-Q3KZWQWK.js} +2 -1
- package/dist/{chunk-DD2TBHSJ.js → chunk-Q6IUIKAE.js} +1 -1
- package/dist/{chunk-JAQKJBVJ.js → chunk-QEHCINJG.js} +3 -3
- package/dist/{chunk-EOZDJA7Z.js → chunk-QJ7QZWXJ.js} +1 -1
- package/dist/{chunk-RSUZHZCG.js → chunk-QKAFDPXO.js} +12 -11
- 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-W6YVDJHX.js → chunk-RAEOJYMR.js} +2 -2
- package/dist/{chunk-XNL5BLUR.js → chunk-RJZ37JRF.js} +8 -7
- package/dist/{chunk-NVLYF4UL.js → chunk-RPOV3WAK.js} +55 -13
- package/dist/{chunk-WNPMHOXE.js → chunk-RQ673YJJ.js} +1 -1
- package/dist/{chunk-6322OCI4.js → chunk-RVVYQ6J5.js} +20 -9
- package/dist/{chunk-MDB4RFMV.js → chunk-SDUD2HI2.js} +3 -3
- package/dist/{chunk-3ZFF6VC5.js → chunk-SK6M4GOD.js} +11 -10
- package/dist/{chunk-H4URFOQC.js → chunk-TAN5UNTZ.js} +36 -5
- package/dist/{chunk-FT66LAUZ.js → chunk-UACKIMP4.js} +2 -1
- package/dist/{chunk-45IXJ7W7.js → chunk-UINHBFRO.js} +12 -10
- package/dist/{chunk-VWYX5IRP.js → chunk-USBGON3T.js} +38 -16
- package/dist/{chunk-U6N7CZYN.js → chunk-V4O44BPH.js} +2 -2
- package/dist/{chunk-ADZI4ROA.js → chunk-VDUU5243.js} +1 -0
- package/dist/{chunk-7MBTBYTJ.js → chunk-VDWLZWAT.js} +3 -3
- package/dist/{chunk-CSTI5CTF.js → chunk-VEKYE733.js} +1 -1
- package/dist/{chunk-MAKFUH34.js → chunk-VI6565XF.js} +3 -3
- package/dist/{chunk-PAXDHYBX.js → chunk-VIFKQE2H.js} +79 -16
- package/dist/{chunk-JRD6FENH.js → chunk-VTZDMX2U.js} +18 -9
- package/dist/{chunk-WRB66XD3.js → chunk-VYO4JJVI.js} +3 -1
- package/dist/{chunk-E4MX3E3B.js → chunk-W723JZDF.js} +22 -7
- package/dist/{chunk-U7VX6A6K.js → chunk-WA4HAXEF.js} +40 -15
- package/dist/{chunk-LPTY5WXM.js → chunk-WBRRSZW4.js} +2 -2
- package/dist/{chunk-44DNL43W.js → chunk-WDOI4U7K.js} +1 -1
- package/dist/{chunk-UBTYMAKF.js → chunk-WIX5IGDH.js} +5 -8
- package/dist/{chunk-MPH64VG7.js → chunk-WOMLNEGP.js} +3 -3
- package/dist/{chunk-JWBGI7FN.js → chunk-WVXAVILO.js} +91 -39
- package/dist/{chunk-YRPLUNP4.js → chunk-X4M6RXNL.js} +2 -2
- package/dist/{chunk-FDE3S2YK.js → chunk-XCKKECIR.js} +2 -2
- package/dist/{chunk-4SLC3EK6.js → chunk-XGNTNUAT.js} +79 -16
- package/dist/{chunk-Z5GNX2S3.js → chunk-XN2OBKPK.js} +1 -1
- package/dist/{chunk-SDL3JXFN.js → chunk-XSNQN67K.js} +1 -1
- package/dist/{chunk-ZE7BT2K4.js → chunk-Y3QA2RIG.js} +70 -13
- package/dist/{chunk-25RCKHWV.js → chunk-YDKATODA.js} +3 -2
- package/dist/{chunk-5GGS6VP5.js → chunk-YUOEZYRP.js} +1 -1
- package/dist/{chunk-OBU2UOYI.js → chunk-YV3D4CPO.js} +2 -2
- package/dist/{chunk-6HPSPZTF.js → chunk-YXEAYRUY.js} +10 -9
- package/dist/{chunk-R3LWG23K.js → chunk-Z5TG7ZGD.js} +15 -8
- package/dist/{chunk-ITGWD7ZY.js → chunk-ZH5A4YKQ.js} +2 -2
- package/dist/{chunk-QASSYLQQ.js → chunk-ZJLQDN5R.js} +2 -2
- package/dist/{chunk-CZCZB5YP.js → chunk-ZK4DK2SS.js} +1 -1
- package/dist/{chunk-24O5V2PQ.js → chunk-ZMCNI37U.js} +1 -1
- package/dist/{chunk-BKHH2CJA.js → chunk-ZNH7MSLM.js} +1 -1
- package/dist/{chunk-PIE76JKF.js → chunk-ZO25PAJA.js} +1 -1
- package/dist/{chunk-RGVRHFKY.js → chunk-ZXHMJKJY.js} +4 -2
- 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/comments.js +3 -3
- package/dist/context-meter.js +2 -2
- package/dist/cookie-consent.js +2 -2
- 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-manager.js +2 -2
- 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.js +2 -2
- package/dist/gravity-pills.js +1 -1
- package/dist/hold-to-confirm.js +1 -1
- package/dist/inbox.js +3 -3
- package/dist/index.js +126 -125
- package/dist/ink-trail.js +2 -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/model-picker.js +1 -1
- package/dist/motion-button.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-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/onboarding.js +2 -2
- package/dist/otp-input-aui-042.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/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/radio-group-aui-055.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/scramble-text.js +1 -1
- package/dist/scrub-input.js +1 -1
- package/dist/seat-picker.js +2 -1
- package/dist/select-aui-043.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.js +2 -2
- package/dist/skeleton.js +1 -1
- package/dist/slider-aui-062.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/stepper.js +1 -1
- package/dist/styles.css +3 -0
- package/dist/tabs.js +1 -1
- package/dist/tag-input-aui-048.js +1 -1
- package/dist/tag-input.js +1 -1
- package/dist/team-members.js +3 -3
- package/dist/testimonials.js +2 -2
- package/dist/textarea-aui-002.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-037.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/toast.js +1 -1
- package/dist/token-swap.js +2 -1
- package/dist/tool-dock.js +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/trade-ticket.js +2 -1
- package/dist/types/components/kit/api-keys.d.ts +1 -1
- package/dist/types/components/lab/lab-hooks.d.ts +12 -0
- package/dist/variant-picker.js +2 -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/css/runtime/blocks.js
CHANGED
|
@@ -433,6 +433,7 @@
|
|
|
433
433
|
if (!baseline.has(form)) return;
|
|
434
434
|
const on = serial(form) !== baseline.get(form);
|
|
435
435
|
form.toggleAttribute("data-dirty", on);
|
|
436
|
+
guard();
|
|
436
437
|
if (on) {
|
|
437
438
|
form.removeAttribute("data-saved");
|
|
438
439
|
clearTimeout(form._astaT);
|
|
@@ -468,18 +469,29 @@
|
|
|
468
469
|
}
|
|
469
470
|
baseline.set(f, serial(f));
|
|
470
471
|
f.removeAttribute("data-dirty");
|
|
472
|
+
guard();
|
|
471
473
|
f.setAttribute("data-saved", "");
|
|
472
474
|
barButtons(f, false);
|
|
473
475
|
clearTimeout(f._astaT);
|
|
474
476
|
f._astaT = setTimeout(() => f.removeAttribute("data-saved"), 1400);
|
|
475
477
|
});
|
|
476
|
-
|
|
478
|
+
// beforeunload is attached only while a settings form has unsaved changes: a page holding the listener can't
|
|
479
|
+
// go into the back/forward cache.
|
|
480
|
+
function onLeave(e) {
|
|
477
481
|
const f = document.querySelector("[data-asta-settings][data-dirty]");
|
|
478
482
|
if (f) {
|
|
479
483
|
shake(f.querySelector("[data-asta-settings-bar] > *"));
|
|
480
484
|
e.preventDefault();
|
|
481
|
-
}
|
|
482
|
-
}
|
|
485
|
+
} else guard();
|
|
486
|
+
}
|
|
487
|
+
let guarding = false;
|
|
488
|
+
function guard() {
|
|
489
|
+
const on = !!document.querySelector("[data-asta-settings][data-dirty]");
|
|
490
|
+
if (on === guarding) return;
|
|
491
|
+
guarding = on;
|
|
492
|
+
if (on) addEventListener("beforeunload", onLeave);
|
|
493
|
+
else removeEventListener("beforeunload", onLeave);
|
|
494
|
+
}
|
|
483
495
|
|
|
484
496
|
/* ---------- Boot and htmx ---------- */
|
|
485
497
|
|
package/css/runtime/core.js
CHANGED
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
/* ---------- Toast ---------- */
|
|
71
71
|
|
|
72
72
|
const TONE = {
|
|
73
|
-
success: { color: "
|
|
74
|
-
error: { color: "
|
|
73
|
+
success: { color: "var(--brand)", on: "var(--on-brand)", path: "M4.5 8.5l2.2 2.2L11.5 5.5" },
|
|
74
|
+
error: { color: "var(--ink)", on: "var(--paper)", path: "M8 4.5v4M8 11h.01" },
|
|
75
75
|
};
|
|
76
76
|
const esc = (s) => String(s ?? "").replace(/[&<>"']/g, (c) => `&#${c.charCodeAt(0)};`);
|
|
77
77
|
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
: `<button type="button" data-asta-toast-close aria-label="Dismiss" class="flex h-6 w-6 shrink-0 items-center justify-center rounded-full text-mute outline-none transition-colors hover:bg-paper-2 hover:text-ink focus-visible:ring-2 focus-visible:ring-brand/50"><svg viewBox="0 0 16 16" class="h-3 w-3" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" aria-hidden="true"><path d="m4.5 4.5 7 7M11.5 4.5l-7 7"/></svg></button>`;
|
|
160
160
|
li.innerHTML = `<div class="flex items-start gap-3 p-3.5 pr-3 transition-opacity">${
|
|
161
161
|
tone
|
|
162
|
-
? `<span class="mt-px flex h-5 w-5 shrink-0 items-center justify-center rounded-full
|
|
162
|
+
? `<span class="mt-px flex h-5 w-5 shrink-0 items-center justify-center rounded-full" style="background:${tone.color};color:${tone.on}"><svg viewBox="0 0 16 16" class="h-3 w-3" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="${tone.path}"/></svg></span>`
|
|
163
163
|
: ""
|
|
164
164
|
}<div class="min-w-0 flex-1"><p class="text-[13.5px] font-medium leading-5 tracking-[-0.01em] text-ink">${esc(t.title)}</p>${
|
|
165
165
|
t.description ? `<p class="mt-0.5 text-[12.5px] leading-snug text-mute">${esc(t.description)}</p>` : ""
|
package/css/runtime/forms.js
CHANGED
|
@@ -421,7 +421,7 @@
|
|
|
421
421
|
const full = n >= max;
|
|
422
422
|
const count = root.querySelector("[data-asta-tags-count]");
|
|
423
423
|
count.textContent = `${n}/${max}`;
|
|
424
|
-
count.classList.toggle("text-
|
|
424
|
+
count.classList.toggle("text-ink", full);
|
|
425
425
|
count.classList.toggle("text-mute", !full);
|
|
426
426
|
input.disabled = full && !input.value;
|
|
427
427
|
input.placeholder = full ? "Limit reached" : n ? "" : root.dataset.placeholder || "";
|
|
@@ -1006,7 +1006,7 @@
|
|
|
1006
1006
|
cell.setAttribute("aria-selected", String(picked || inBand));
|
|
1007
1007
|
const inMonth = d.getMonth() === s.view.getMonth();
|
|
1008
1008
|
b.classList.toggle("font-medium", picked);
|
|
1009
|
-
b.classList.toggle("text-
|
|
1009
|
+
b.classList.toggle("text-on-brand", picked);
|
|
1010
1010
|
b.classList.toggle("text-ink", !picked && inMonth);
|
|
1011
1011
|
b.classList.toggle("text-mute", !picked && !inMonth);
|
|
1012
1012
|
b.classList.toggle("hover:bg-paper-2", !picked);
|
package/css/runtime/modules.js
CHANGED
|
@@ -23,7 +23,24 @@
|
|
|
23
23
|
const pad = (n) => String(n).padStart(2, "0");
|
|
24
24
|
const seen = new WeakSet();
|
|
25
25
|
const onScreen = new Set();
|
|
26
|
-
|
|
26
|
+
// The timer only runs while a countdown is on screen and the tab is visible. Countdowns are picked up at boot
|
|
27
|
+
// and after every htmx swap, so a tick paints the visible ones and never queries the document.
|
|
28
|
+
let timer = 0;
|
|
29
|
+
const stop = () => {
|
|
30
|
+
clearInterval(timer);
|
|
31
|
+
timer = 0;
|
|
32
|
+
};
|
|
33
|
+
const start = () => {
|
|
34
|
+
if (!timer && onScreen.size && !document.hidden) timer = setInterval(tick, 1000);
|
|
35
|
+
};
|
|
36
|
+
const io =
|
|
37
|
+
"IntersectionObserver" in window
|
|
38
|
+
? new IntersectionObserver((es) => {
|
|
39
|
+
es.forEach((e) => onScreen[e.isIntersecting ? "add" : "delete"](e.target));
|
|
40
|
+
if (onScreen.size) start();
|
|
41
|
+
else stop();
|
|
42
|
+
})
|
|
43
|
+
: null;
|
|
27
44
|
function paint(cd) {
|
|
28
45
|
const end = Date.parse(cd.getAttribute("data-asta-countdown"));
|
|
29
46
|
if (Number.isNaN(end)) return;
|
|
@@ -44,6 +61,14 @@
|
|
|
44
61
|
fire(cd, "asta:countdown-done");
|
|
45
62
|
}
|
|
46
63
|
}
|
|
64
|
+
function tick() {
|
|
65
|
+
onScreen.forEach((cd) => {
|
|
66
|
+
if (cd.isConnected) return paint(cd);
|
|
67
|
+
onScreen.delete(cd);
|
|
68
|
+
io?.unobserve(cd);
|
|
69
|
+
});
|
|
70
|
+
if (!onScreen.size) stop();
|
|
71
|
+
}
|
|
47
72
|
function scan() {
|
|
48
73
|
document.querySelectorAll("[data-asta-countdown]").forEach((cd) => {
|
|
49
74
|
if (!seen.has(cd)) {
|
|
@@ -53,19 +78,15 @@
|
|
|
53
78
|
paint(cd);
|
|
54
79
|
}
|
|
55
80
|
});
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
onScreen.delete(cd);
|
|
59
|
-
io?.unobserve(cd);
|
|
60
|
-
});
|
|
81
|
+
tick();
|
|
82
|
+
start();
|
|
61
83
|
}
|
|
62
|
-
let timer = 0;
|
|
63
84
|
const run = () => {
|
|
64
|
-
|
|
65
|
-
if (!document.hidden) timer = setInterval(scan, 1000);
|
|
85
|
+
stop();
|
|
66
86
|
scan();
|
|
67
87
|
};
|
|
68
88
|
document.addEventListener("visibilitychange", run);
|
|
89
|
+
document.addEventListener("htmx:afterSettle", scan);
|
|
69
90
|
if (document.readyState === "loading") document.addEventListener("DOMContentLoaded", run, { once: true });
|
|
70
91
|
else run();
|
|
71
92
|
|
package/css/runtime/overlays.js
CHANGED
|
@@ -924,9 +924,25 @@
|
|
|
924
924
|
if ((root._astaOpen ?? null) !== null && next?.matches("[data-asta-nav-trigger]")) navShow(root, Number(next.dataset.astaNavTrigger));
|
|
925
925
|
}
|
|
926
926
|
});
|
|
927
|
-
|
|
927
|
+
// Navbars are collected once (boot, and after every htmx swap). A scroll event only schedules one frame, and
|
|
928
|
+
// that frame touches the DOM only when the scrolled state actually flips.
|
|
929
|
+
let navRoots = [];
|
|
930
|
+
let navOn = null;
|
|
931
|
+
let navFrame = 0;
|
|
932
|
+
const navApply = () => {
|
|
933
|
+
navFrame = 0;
|
|
928
934
|
const on = scrollY > 40;
|
|
929
|
-
|
|
935
|
+
if (on === navOn) return;
|
|
936
|
+
navOn = on;
|
|
937
|
+
for (const root of navRoots) root.toggleAttribute("data-scrolled", on);
|
|
938
|
+
};
|
|
939
|
+
const navCollect = () => {
|
|
940
|
+
navRoots = [...document.querySelectorAll("[data-asta-navbar]")];
|
|
941
|
+
navOn = null;
|
|
942
|
+
navApply();
|
|
943
|
+
};
|
|
944
|
+
const navScrolled = () => {
|
|
945
|
+
if (!navFrame) navFrame = requestAnimationFrame(navApply);
|
|
930
946
|
};
|
|
931
947
|
addEventListener("scroll", navScrolled, { passive: true });
|
|
932
948
|
|
|
@@ -1232,6 +1248,64 @@
|
|
|
1232
1248
|
|
|
1233
1249
|
/* ---------- Wordmark: letters near the pointer lift ---------- */
|
|
1234
1250
|
|
|
1251
|
+
// Letter centres are measured when the pointer enters (and again after the box resizes). A move is then a
|
|
1252
|
+
// binary search for the letters in reach plus a few transform writes, batched into one frame per box.
|
|
1253
|
+
const wmBoxes = new Set();
|
|
1254
|
+
const wmRO = new ResizeObserver((entries) => {
|
|
1255
|
+
for (const en of entries) if (en.target._astaWm) en.target._astaWm.stale = true;
|
|
1256
|
+
});
|
|
1257
|
+
const lowerBound = (a, v) => {
|
|
1258
|
+
let lo = 0;
|
|
1259
|
+
let hi = a.length;
|
|
1260
|
+
while (lo < hi) {
|
|
1261
|
+
const mid = (lo + hi) >> 1;
|
|
1262
|
+
if (a[mid] < v) lo = mid + 1;
|
|
1263
|
+
else hi = mid;
|
|
1264
|
+
}
|
|
1265
|
+
return lo;
|
|
1266
|
+
};
|
|
1267
|
+
function wmMeasure(box) {
|
|
1268
|
+
if (!wmBoxes.has(box)) {
|
|
1269
|
+
wmBoxes.add(box);
|
|
1270
|
+
wmRO.observe(box);
|
|
1271
|
+
}
|
|
1272
|
+
const els = [...box.querySelectorAll("span[data-l]")];
|
|
1273
|
+
const c = [];
|
|
1274
|
+
const w = [];
|
|
1275
|
+
let reach = 0;
|
|
1276
|
+
// offsetLeft ignores the current lift, so letters don't chase their own offset.
|
|
1277
|
+
for (const s of els) {
|
|
1278
|
+
const sw = s.offsetWidth;
|
|
1279
|
+
c.push(s.offsetLeft + sw / 2);
|
|
1280
|
+
w.push(sw);
|
|
1281
|
+
reach = Math.max(reach, sw * 2.5);
|
|
1282
|
+
}
|
|
1283
|
+
const prev = box._astaWm;
|
|
1284
|
+
box._astaWm = { els, c, w, reach, left: box.getBoundingClientRect().left, still: reduce(), a: prev?.a ?? 0, b: prev?.b ?? 0, x: null, f: 0, stale: false };
|
|
1285
|
+
return box._astaWm;
|
|
1286
|
+
}
|
|
1287
|
+
function wmFlush(box) {
|
|
1288
|
+
const d = box._astaWm;
|
|
1289
|
+
if (!d) return;
|
|
1290
|
+
d.f = 0;
|
|
1291
|
+
const x = d.x === null || d.still ? null : d.x - d.left;
|
|
1292
|
+
const a = x === null ? 0 : lowerBound(d.c, x - d.reach);
|
|
1293
|
+
const b = x === null ? 0 : lowerBound(d.c, x + d.reach);
|
|
1294
|
+
for (let i = d.a; i < Math.min(d.b, d.els.length); i++) if (i < a || i >= b) d.els[i].style.transform = "";
|
|
1295
|
+
for (let i = a; i < b; i++) d.els[i].style.transform = `translateY(${-Math.max(0, 1 - Math.abs(x - d.c[i]) / (d.w[i] * 2.5)) * 14}%)`;
|
|
1296
|
+
d.a = a;
|
|
1297
|
+
d.b = b;
|
|
1298
|
+
}
|
|
1299
|
+
function wordmark(box, x) {
|
|
1300
|
+
const d = !box._astaWm || box._astaWm.stale ? wmMeasure(box) : box._astaWm;
|
|
1301
|
+
d.x = x;
|
|
1302
|
+
if (!d.f) d.f = requestAnimationFrame(() => wmFlush(box));
|
|
1303
|
+
}
|
|
1304
|
+
document.addEventListener("pointerover", (e) => {
|
|
1305
|
+
const box = elOf(e.target)?.closest("[data-asta-wordmark]");
|
|
1306
|
+
// Entering from outside: measure fresh (the page may have scrolled since the last hover).
|
|
1307
|
+
if (box && !box.contains(elOf(e.relatedTarget)) && box._astaWm) box._astaWm.stale = true;
|
|
1308
|
+
});
|
|
1235
1309
|
document.addEventListener("pointermove", (e) => {
|
|
1236
1310
|
const box = elOf(e.target)?.closest("[data-asta-wordmark]");
|
|
1237
1311
|
if (box) wordmark(box, e.clientX);
|
|
@@ -1240,19 +1314,6 @@
|
|
|
1240
1314
|
const box = elOf(e.target)?.closest("[data-asta-wordmark]");
|
|
1241
1315
|
if (box && !box.contains(elOf(e.relatedTarget))) wordmark(box, null);
|
|
1242
1316
|
});
|
|
1243
|
-
function wordmark(box, x) {
|
|
1244
|
-
if (reduce()) return;
|
|
1245
|
-
for (const s of box.querySelectorAll("span[data-l]")) {
|
|
1246
|
-
if (x === null) {
|
|
1247
|
-
s.style.transform = "";
|
|
1248
|
-
continue;
|
|
1249
|
-
}
|
|
1250
|
-
// Measure without the current lift, so letters don't chase their own offset.
|
|
1251
|
-
const r = s.offsetLeft + s.offsetWidth / 2 + box.getBoundingClientRect().left;
|
|
1252
|
-
const k = Math.max(0, 1 - Math.abs(x - r) / (s.offsetWidth * 2.5));
|
|
1253
|
-
s.style.transform = `translateY(${-k * 14}%)`;
|
|
1254
|
-
}
|
|
1255
|
-
}
|
|
1256
1317
|
|
|
1257
1318
|
/* ---------- Boot and htmx ---------- */
|
|
1258
1319
|
|
|
@@ -1278,12 +1339,13 @@
|
|
|
1278
1339
|
}
|
|
1279
1340
|
const boot = () => {
|
|
1280
1341
|
scan(document);
|
|
1281
|
-
|
|
1342
|
+
navCollect();
|
|
1282
1343
|
};
|
|
1283
1344
|
if (document.readyState === "loading") document.addEventListener("DOMContentLoaded", boot);
|
|
1284
1345
|
else boot();
|
|
1285
1346
|
document.addEventListener("htmx:afterSettle", (e) => {
|
|
1286
1347
|
const t = elOf(e.detail?.elt) || document.body;
|
|
1348
|
+
navCollect();
|
|
1287
1349
|
// A server search answered: refresh its palette.
|
|
1288
1350
|
const cmd = t.closest?.("dialog[data-asta-command]");
|
|
1289
1351
|
if (cmd) return cmdRefresh(cmd);
|
|
@@ -1297,10 +1359,25 @@
|
|
|
1297
1359
|
else if (t.matches("[data-asta-tooldock]")) dockPlace(t, false);
|
|
1298
1360
|
}
|
|
1299
1361
|
});
|
|
1362
|
+
const watched = new Set();
|
|
1300
1363
|
const watch = () => {
|
|
1364
|
+
// Stop observing nodes an htmx swap removed, so they can be collected.
|
|
1365
|
+
for (const el of watched) {
|
|
1366
|
+
if (el.isConnected) continue;
|
|
1367
|
+
resized.unobserve(el);
|
|
1368
|
+
watched.delete(el);
|
|
1369
|
+
el._astaWatched = false;
|
|
1370
|
+
}
|
|
1371
|
+
for (const el of wmBoxes) {
|
|
1372
|
+
if (el.isConnected) continue;
|
|
1373
|
+
wmRO.unobserve(el);
|
|
1374
|
+
wmBoxes.delete(el);
|
|
1375
|
+
el._astaWm = null;
|
|
1376
|
+
}
|
|
1301
1377
|
for (const el of document.querySelectorAll("[data-asta-sidebar],[data-asta-tooldock]")) {
|
|
1302
1378
|
if (el._astaWatched) continue;
|
|
1303
1379
|
el._astaWatched = true;
|
|
1380
|
+
watched.add(el);
|
|
1304
1381
|
resized.observe(el);
|
|
1305
1382
|
}
|
|
1306
1383
|
};
|
package/css/src/assist.css
CHANGED
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
@apply text-ink;
|
|
91
91
|
}
|
|
92
92
|
.asta-model-picker-new {
|
|
93
|
-
@apply shrink-0 rounded-[5px] bg-brand px-1.5 text-[10px] font-semibold leading-[16px] text-
|
|
93
|
+
@apply shrink-0 rounded-[5px] bg-brand px-1.5 text-[10px] font-semibold leading-[16px] text-on-brand;
|
|
94
94
|
}
|
|
95
95
|
.asta-model-picker-hint {
|
|
96
96
|
@apply mt-0.5 block truncate text-[12px] text-mute;
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
.asta-citations-pill {
|
|
153
153
|
@apply mx-px inline-grid h-[18px] min-w-[18px] -translate-y-px cursor-pointer place-items-center rounded-[5px] bg-[color-mix(in_srgb,var(--ink)_8%,transparent)] px-1 align-middle text-[11px] font-semibold leading-none tabular-nums text-ink-2 outline-none;
|
|
154
154
|
@apply transition-[background-color,color,transform] duration-200 hover:bg-[color-mix(in_srgb,var(--ink)_14%,transparent)] hover:text-ink focus-visible:ring-2 focus-visible:ring-brand/50 active:scale-95;
|
|
155
|
-
@apply aria-expanded:bg-brand aria-expanded:text-
|
|
155
|
+
@apply aria-expanded:bg-brand aria-expanded:text-on-brand data-lit:bg-brand data-lit:text-on-brand;
|
|
156
156
|
}
|
|
157
157
|
.asta-citations-card {
|
|
158
158
|
@apply absolute bottom-full left-1/2 z-50 mb-2 block w-[304px] max-w-[calc(100vw-32px)] -translate-x-1/2 origin-bottom whitespace-normal rounded-xl bg-paper p-3.5 text-left leading-normal;
|
|
@@ -181,7 +181,7 @@
|
|
|
181
181
|
@apply grid h-[18px] w-[18px] shrink-0 place-items-center rounded-[5px] bg-ink text-[10px] font-semibold uppercase text-paper;
|
|
182
182
|
}
|
|
183
183
|
.asta-citations-tile-2 {
|
|
184
|
-
@apply bg-brand text-
|
|
184
|
+
@apply bg-brand text-on-brand;
|
|
185
185
|
}
|
|
186
186
|
.asta-citations-tile-3 {
|
|
187
187
|
@apply bg-paper-2 text-ink shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent)];
|
|
@@ -571,7 +571,7 @@
|
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
573
|
.asta-prompt-send {
|
|
574
|
-
@apply ml-auto grid h-8 w-8 shrink-0 cursor-pointer place-items-center rounded-lg bg-brand text-
|
|
574
|
+
@apply ml-auto grid h-8 w-8 shrink-0 cursor-pointer place-items-center rounded-lg bg-brand text-on-brand outline-none transition-[opacity,transform] duration-150 active:scale-95 disabled:cursor-default disabled:opacity-35;
|
|
575
575
|
@apply focus-visible:ring-2 focus-visible:ring-brand/50 focus-visible:ring-offset-2 focus-visible:ring-offset-paper;
|
|
576
576
|
& > svg {
|
|
577
577
|
@apply h-4 w-4;
|
package/css/src/blocks.css
CHANGED
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
@apply text-brand outline-none hover:underline focus-visible:underline;
|
|
50
50
|
}
|
|
51
51
|
.asta-sign-in-alert {
|
|
52
|
-
@apply mt-4 rounded-lg bg-
|
|
52
|
+
@apply mt-4 rounded-lg bg-paper-2 px-3 py-2 text-[13px] text-ink animate-[asta-field-in_.3s_cubic-bezier(.16,1,.3,1)_both];
|
|
53
53
|
}
|
|
54
54
|
.asta-sign-in-submit {
|
|
55
55
|
@apply mt-5 w-full;
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
@apply flex min-h-[380px] flex-col items-center justify-center text-center animate-[asta-blk-pop_.5s_cubic-bezier(.16,1,.3,1)_both] motion-reduce:animate-none;
|
|
77
77
|
}
|
|
78
78
|
.asta-sign-in-done-icon {
|
|
79
|
-
@apply flex h-14 w-14 items-center justify-center rounded-full bg-
|
|
79
|
+
@apply flex h-14 w-14 items-center justify-center rounded-full bg-brand text-on-brand;
|
|
80
80
|
& > svg {
|
|
81
81
|
@apply h-7 w-7 animate-[asta-blk-pop_.5s_.15s_cubic-bezier(.16,1,.3,1)_both] motion-reduce:animate-none;
|
|
82
82
|
}
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
@apply flex flex-col items-center px-8 py-12 text-center animate-[asta-rise_.5s_cubic-bezier(.16,1,.3,1)_both] motion-reduce:animate-none;
|
|
105
105
|
}
|
|
106
106
|
.asta-onboarding-done-icon {
|
|
107
|
-
@apply flex h-12 w-12 items-center justify-center rounded-full bg-brand text-
|
|
107
|
+
@apply flex h-12 w-12 items-center justify-center rounded-full bg-brand text-on-brand animate-[asta-blk-pop_.6s_.1s_cubic-bezier(.16,1,.3,1)_both] motion-reduce:animate-none;
|
|
108
108
|
& > svg {
|
|
109
109
|
@apply h-6 w-6;
|
|
110
110
|
}
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
.asta-onboarding-tick {
|
|
183
|
-
@apply absolute inset-0 flex scale-50 items-center justify-center rounded-full bg-brand text-
|
|
183
|
+
@apply absolute inset-0 flex scale-50 items-center justify-center rounded-full bg-brand text-on-brand opacity-0 transition-[opacity,transform] duration-500 ease-[cubic-bezier(.16,1,.3,1)];
|
|
184
184
|
& > svg {
|
|
185
185
|
@apply h-3 w-3;
|
|
186
186
|
}
|
|
@@ -195,7 +195,7 @@
|
|
|
195
195
|
@apply text-[13px] leading-relaxed text-mute;
|
|
196
196
|
}
|
|
197
197
|
.asta-onboarding-error {
|
|
198
|
-
@apply mt-2 text-[12.5px] text-
|
|
198
|
+
@apply mt-2 text-[12.5px] text-ink;
|
|
199
199
|
}
|
|
200
200
|
.asta-onboarding-actions {
|
|
201
201
|
@apply mt-3.5 flex items-center gap-2;
|
|
@@ -227,7 +227,7 @@
|
|
|
227
227
|
@apply hover:text-ink has-[:checked]:text-ink has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-brand/50;
|
|
228
228
|
}
|
|
229
229
|
.asta-plans-saving {
|
|
230
|
-
@apply rounded-[4px] bg-brand px-1.5 text-[10.5px] leading-[18px] text-
|
|
230
|
+
@apply rounded-[4px] bg-brand px-1.5 text-[10.5px] leading-[18px] text-on-brand;
|
|
231
231
|
}
|
|
232
232
|
.asta-plans-grid {
|
|
233
233
|
@apply grid w-full gap-3 @min-[540px]:grid-cols-3;
|
|
@@ -246,7 +246,7 @@
|
|
|
246
246
|
@apply text-[15px] font-medium tracking-[-0.01em];
|
|
247
247
|
}
|
|
248
248
|
.asta-plans-flag {
|
|
249
|
-
@apply rounded-[5px] bg-brand px-2 py-0.5 text-[11px] font-medium text-
|
|
249
|
+
@apply rounded-[5px] bg-brand px-2 py-0.5 text-[11px] font-medium text-on-brand;
|
|
250
250
|
}
|
|
251
251
|
.asta-plans-desc {
|
|
252
252
|
@apply mt-1 text-[12.5px] leading-snug text-mute;
|
|
@@ -431,7 +431,7 @@
|
|
|
431
431
|
@apply block max-h-36 min-h-[36px] flex-1 resize-none bg-transparent py-2 text-[16px] sm:text-[14px] leading-relaxed text-ink outline-none [field-sizing:content] placeholder:text-mute;
|
|
432
432
|
}
|
|
433
433
|
.asta-ai-chat-send {
|
|
434
|
-
@apply relative grid h-9 w-9 shrink-0 place-items-center rounded-lg bg-brand text-
|
|
434
|
+
@apply relative grid h-9 w-9 shrink-0 place-items-center rounded-lg bg-brand text-on-brand outline-none transition-[opacity,transform] duration-200 active:scale-95 disabled:opacity-35;
|
|
435
435
|
@apply focus-visible:ring-2 focus-visible:ring-brand/50 focus-visible:ring-offset-2 focus-visible:ring-offset-paper [&.htmx-request]:pointer-events-none;
|
|
436
436
|
& > svg {
|
|
437
437
|
@apply h-4 w-4 transition-opacity;
|
|
@@ -465,7 +465,7 @@
|
|
|
465
465
|
@apply flex h-full min-h-[420px] flex-col items-start justify-center animate-[asta-blk-in_.5s_cubic-bezier(.16,1,.3,1)];
|
|
466
466
|
}
|
|
467
467
|
.asta-checkout-done-icon {
|
|
468
|
-
@apply grid h-12 w-12 place-items-center rounded-full bg-brand text-
|
|
468
|
+
@apply grid h-12 w-12 place-items-center rounded-full bg-brand text-on-brand animate-[asta-blk-pop_.55s_.1s_cubic-bezier(.16,1,.3,1)_both];
|
|
469
469
|
& > svg {
|
|
470
470
|
@apply h-5 w-5;
|
|
471
471
|
}
|
|
@@ -520,7 +520,7 @@
|
|
|
520
520
|
@apply mt-3 text-center text-[12px] text-mute;
|
|
521
521
|
}
|
|
522
522
|
.asta-checkout-error {
|
|
523
|
-
@apply mt-3 text-center text-[12.5px] text-
|
|
523
|
+
@apply mt-3 text-center text-[12.5px] text-ink animate-[asta-field-in_.3s_cubic-bezier(.16,1,.3,1)_both];
|
|
524
524
|
}
|
|
525
525
|
.asta-checkout-summary {
|
|
526
526
|
@apply h-max rounded-[14px] bg-paper-2 p-5 md:sticky md:top-4;
|
|
@@ -739,7 +739,7 @@
|
|
|
739
739
|
.asta-settings-saved-msg {
|
|
740
740
|
@apply flex items-center gap-2;
|
|
741
741
|
& > svg {
|
|
742
|
-
@apply h-4 w-4 shrink-0 text-
|
|
742
|
+
@apply h-4 w-4 shrink-0 text-paper;
|
|
743
743
|
}
|
|
744
744
|
}
|
|
745
745
|
.asta-settings-unsaved-msg {
|
|
@@ -849,7 +849,7 @@
|
|
|
849
849
|
@apply mt-2 min-h-4 px-1 text-[12px] text-mute;
|
|
850
850
|
}
|
|
851
851
|
.asta-team-hint-error {
|
|
852
|
-
@apply text-
|
|
852
|
+
@apply text-ink;
|
|
853
853
|
}
|
|
854
854
|
.asta-team-heading {
|
|
855
855
|
@apply mb-1 mt-7 px-1 text-[12px] font-medium text-mute;
|
package/css/src/controls.css
CHANGED
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
}
|
|
53
53
|
/* The ×10 / ×0.1 badge; asta.js writes the text while a modifier is held. */
|
|
54
54
|
.asta-scrub-badge {
|
|
55
|
-
@apply mr-1.5 hidden shrink-0 rounded-[4px] bg-brand px-1 text-[10.5px] font-medium leading-4 tabular-nums text-
|
|
55
|
+
@apply mr-1.5 hidden shrink-0 rounded-[4px] bg-brand px-1 text-[10.5px] font-medium leading-4 tabular-nums text-on-brand;
|
|
56
56
|
}
|
|
57
57
|
.asta-scrub[data-scrubbing][data-mod] {
|
|
58
58
|
& > .asta-scrub-badge {
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
@apply checked:bg-brand checked:shadow-none focus-visible:ring-2 focus-visible:ring-brand/50 focus-visible:ring-offset-2 focus-visible:ring-offset-paper-2;
|
|
186
186
|
}
|
|
187
187
|
& > svg {
|
|
188
|
-
@apply pointer-events-none col-start-1 row-start-1 h-3 w-3 scale-50 text-
|
|
188
|
+
@apply pointer-events-none col-start-1 row-start-1 h-3 w-3 scale-50 text-on-brand opacity-0 transition-[opacity,transform] duration-300;
|
|
189
189
|
}
|
|
190
190
|
& > input:checked + svg {
|
|
191
191
|
@apply scale-100 opacity-100;
|
|
@@ -336,7 +336,7 @@
|
|
|
336
336
|
.asta-api-keys-reveal-title {
|
|
337
337
|
@apply flex flex-wrap items-center gap-2 text-[14px] font-medium;
|
|
338
338
|
& > span:last-child {
|
|
339
|
-
@apply rounded-[5px] bg-brand px-1.5 text-[11px] font-medium leading-5 text-
|
|
339
|
+
@apply rounded-[5px] bg-brand px-1.5 text-[11px] font-medium leading-5 text-on-brand;
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
.asta-api-keys-reveal-text {
|
package/css/src/core.css
CHANGED
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
@apply bg-ink text-paper shadow-[inset_0_1px_0_rgb(255_255_255/0.18),0_1px_2px_rgb(0_0_0/0.16),0_6px_14px_-8px_rgb(0_0_0/0.45)] hover:bg-[color-mix(in_srgb,var(--ink)_84%,var(--paper))];
|
|
15
15
|
}
|
|
16
16
|
.asta-btn-accent {
|
|
17
|
-
@apply bg-brand text-
|
|
17
|
+
@apply bg-brand text-on-brand hover:bg-[color-mix(in_srgb,var(--brand)_88%,black)];
|
|
18
18
|
}
|
|
19
19
|
.asta-btn-danger {
|
|
20
|
-
@apply bg-
|
|
20
|
+
@apply bg-ink text-paper hover:bg-[color-mix(in_srgb,var(--ink)_86%,var(--paper))];
|
|
21
21
|
}
|
|
22
22
|
.asta-btn-outline {
|
|
23
23
|
@apply bg-paper text-ink shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_14%,transparent),0_1px_2px_rgb(0_0_0/0.05)];
|
|
@@ -95,10 +95,10 @@
|
|
|
95
95
|
}
|
|
96
96
|
.asta-input-error,
|
|
97
97
|
.asta-input:has(> input[aria-invalid="true"]) {
|
|
98
|
-
@apply shadow-[
|
|
98
|
+
@apply shadow-[inset_0_0_0_1.5px_var(--ink)] hover:shadow-[inset_0_0_0_1.5px_var(--ink)] focus-within:!shadow-[inset_0_0_0_1.5px_var(--ink),0_0_0_4px_color-mix(in_srgb,var(--ink)_12%,transparent)];
|
|
99
99
|
}
|
|
100
100
|
.asta-input-success {
|
|
101
|
-
@apply shadow-[
|
|
101
|
+
@apply shadow-[inset_0_0_0_1px_var(--brand)] hover:shadow-[inset_0_0_0_1px_var(--brand)] focus-within:!shadow-[inset_0_0_0_1px_var(--brand),0_0_0_4px_color-mix(in_srgb,var(--brand)_16%,transparent)];
|
|
102
102
|
}
|
|
103
103
|
.asta-input-control {
|
|
104
104
|
@apply h-full min-w-0 flex-1 bg-transparent outline-none placeholder:text-mute [&::-webkit-search-cancel-button]:hidden;
|
|
@@ -114,9 +114,9 @@
|
|
|
114
114
|
}
|
|
115
115
|
/* The error or success icon at the end of the field. */
|
|
116
116
|
.asta-input-status {
|
|
117
|
-
@apply h-4 w-4 shrink-0 text-
|
|
117
|
+
@apply h-4 w-4 shrink-0 text-ink;
|
|
118
118
|
.asta-input-success > & {
|
|
119
|
-
@apply text-
|
|
119
|
+
@apply text-brand;
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
|
|
@@ -134,13 +134,13 @@
|
|
|
134
134
|
@apply text-[13px] font-medium tracking-[-0.01em] text-ink;
|
|
135
135
|
}
|
|
136
136
|
.asta-label-required {
|
|
137
|
-
@apply ml-0.5 text-
|
|
137
|
+
@apply ml-0.5 text-ink;
|
|
138
138
|
}
|
|
139
139
|
.asta-counter {
|
|
140
140
|
@apply text-[12px] tabular-nums text-mute;
|
|
141
141
|
}
|
|
142
142
|
.asta-error {
|
|
143
|
-
@apply flex items-start gap-1.5 text-[12.5px] leading-snug text-
|
|
143
|
+
@apply flex items-start gap-1.5 text-[12.5px] leading-snug text-ink animate-[asta-field-in_.3s_cubic-bezier(.16,1,.3,1)_both];
|
|
144
144
|
& > svg {
|
|
145
145
|
@apply mt-px h-3.5 w-3.5 shrink-0;
|
|
146
146
|
}
|
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
}
|
|
161
161
|
.asta-textarea-error,
|
|
162
162
|
.asta-textarea:has(> textarea[aria-invalid="true"]) {
|
|
163
|
-
@apply shadow-[
|
|
163
|
+
@apply shadow-[inset_0_0_0_1.5px_var(--ink)] hover:shadow-[inset_0_0_0_1.5px_var(--ink)] focus-within:!shadow-[inset_0_0_0_1.5px_var(--ink),0_0_0_4px_color-mix(in_srgb,var(--ink)_12%,transparent)];
|
|
164
164
|
}
|
|
165
165
|
.asta-textarea-control {
|
|
166
166
|
@apply block w-full resize-none bg-transparent px-3.5 py-3 text-[16px] sm:text-[14px] leading-[1.55] outline-none placeholder:text-mute disabled:cursor-not-allowed;
|
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
}
|
|
188
188
|
.asta-select-error > &,
|
|
189
189
|
&[aria-invalid="true"] {
|
|
190
|
-
@apply shadow-[
|
|
190
|
+
@apply shadow-[inset_0_0_0_1.5px_var(--ink)] hover:shadow-[inset_0_0_0_1.5px_var(--ink)] focus:!shadow-[inset_0_0_0_1.5px_var(--ink),0_0_0_3px_color-mix(in_srgb,var(--ink)_12%,transparent)];
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
193
|
.asta-select-icon {
|
|
@@ -227,13 +227,13 @@
|
|
|
227
227
|
@apply disabled:cursor-not-allowed disabled:opacity-45;
|
|
228
228
|
}
|
|
229
229
|
.asta-checkbox-check {
|
|
230
|
-
@apply pointer-events-none col-start-1 row-start-1 h-3 w-3 scale-50 text-
|
|
230
|
+
@apply pointer-events-none col-start-1 row-start-1 h-3 w-3 scale-50 text-on-brand opacity-0 transition-[opacity,scale] duration-300 ease-[cubic-bezier(.16,1,.3,1)] motion-reduce:transition-none;
|
|
231
231
|
input:checked ~ & {
|
|
232
232
|
@apply scale-100 opacity-100;
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
235
|
.asta-checkbox-dash {
|
|
236
|
-
@apply pointer-events-none col-start-1 row-start-1 h-[2.2px] w-2 scale-x-0 rounded-full bg-
|
|
236
|
+
@apply pointer-events-none col-start-1 row-start-1 h-[2.2px] w-2 scale-x-0 rounded-full bg-on-brand transition-[scale] duration-300 ease-[cubic-bezier(.16,1,.3,1)] motion-reduce:transition-none;
|
|
237
237
|
input[data-indeterminate] ~ & {
|
|
238
238
|
@apply scale-x-100;
|
|
239
239
|
}
|
|
@@ -290,7 +290,7 @@
|
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
292
|
.asta-radio-mark {
|
|
293
|
-
@apply pointer-events-none absolute inset-0 m-auto h-1.5 w-1.5 scale-0 rounded-full bg-
|
|
293
|
+
@apply pointer-events-none absolute inset-0 m-auto h-1.5 w-1.5 scale-0 rounded-full bg-on-brand transition-[scale] duration-300 ease-[cubic-bezier(.16,1,.3,1)] motion-reduce:transition-none;
|
|
294
294
|
input:checked ~ & {
|
|
295
295
|
@apply scale-100;
|
|
296
296
|
}
|
|
@@ -403,19 +403,19 @@
|
|
|
403
403
|
}
|
|
404
404
|
.asta-badge-accent {
|
|
405
405
|
--kit-badge: var(--brand);
|
|
406
|
-
--kit-badge-on:
|
|
406
|
+
--kit-badge-on: var(--on-brand);
|
|
407
407
|
}
|
|
408
408
|
.asta-badge-success {
|
|
409
|
-
--kit-badge:
|
|
410
|
-
--kit-badge-on:
|
|
409
|
+
--kit-badge: var(--brand);
|
|
410
|
+
--kit-badge-on: var(--on-brand);
|
|
411
411
|
}
|
|
412
412
|
.asta-badge-warning {
|
|
413
|
-
--kit-badge:
|
|
414
|
-
--kit-badge-on:
|
|
413
|
+
--kit-badge: var(--ink-2);
|
|
414
|
+
--kit-badge-on: var(--paper);
|
|
415
415
|
}
|
|
416
416
|
.asta-badge-danger {
|
|
417
|
-
--kit-badge:
|
|
418
|
-
--kit-badge-on:
|
|
417
|
+
--kit-badge: var(--ink);
|
|
418
|
+
--kit-badge-on: var(--paper);
|
|
419
419
|
}
|
|
420
420
|
.asta-badge-solid {
|
|
421
421
|
@apply bg-[var(--kit-badge)] text-[var(--kit-badge-on)];
|
|
@@ -451,7 +451,7 @@
|
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
453
|
.asta-count {
|
|
454
|
-
@apply inline-flex h-[18px] min-w-[18px] animate-[asta-pop_.4s_cubic-bezier(.16,1,.3,1)] items-center justify-center rounded-[5px] bg-
|
|
454
|
+
@apply inline-flex h-[18px] min-w-[18px] animate-[asta-pop_.4s_cubic-bezier(.16,1,.3,1)] items-center justify-center rounded-[5px] bg-ink px-1 text-[10.5px] font-semibold tabular-nums leading-none text-white shadow-[0_0_0_2px_var(--paper)] motion-reduce:animate-none;
|
|
455
455
|
}
|
|
456
456
|
|
|
457
457
|
/* ---- Dialog ----
|
|
@@ -521,7 +521,7 @@
|
|
|
521
521
|
@apply text-ink hover:bg-paper-2 focus:bg-paper-2;
|
|
522
522
|
}
|
|
523
523
|
.asta-menu-item-danger {
|
|
524
|
-
@apply text-
|
|
524
|
+
@apply text-ink hover:bg-paper-2 focus:bg-paper-2;
|
|
525
525
|
}
|
|
526
526
|
.asta-menu-item-icon {
|
|
527
527
|
@apply inline-flex h-4 w-4 shrink-0 text-mute [&_svg]:h-4 [&_svg]:w-4;
|
|
@@ -574,7 +574,7 @@
|
|
|
574
574
|
.asta-tab-count {
|
|
575
575
|
@apply rounded-[5px] bg-[color-mix(in_srgb,var(--ink)_7%,transparent)] px-1.5 text-[11px] leading-[18px] tabular-nums text-mute transition-colors duration-300;
|
|
576
576
|
.asta-tab[aria-selected="true"] > & {
|
|
577
|
-
@apply bg-brand text-
|
|
577
|
+
@apply bg-brand text-on-brand;
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
580
|
.asta-tabs-panel {
|