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/dist/billing.js
CHANGED
package/dist/booking-slots.js
CHANGED
package/dist/button.js
CHANGED
package/dist/candlestick.js
CHANGED
package/dist/card-checkout.js
CHANGED
package/dist/cart-drawer.js
CHANGED
package/dist/change-ledger.js
CHANGED
package/dist/chat-thread.js
CHANGED
package/dist/checkbox-aui-052.js
CHANGED
package/dist/checkbox-aui-053.js
CHANGED
package/dist/checkbox-aui-054.js
CHANGED
package/dist/checkbox.js
CHANGED
package/dist/checkout.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Checkout,
|
|
4
4
|
checkout_default
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-H7OVE6OB.js";
|
|
6
6
|
import "./chunk-AMVX4DDT.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-5ZQ6PMJT.js";
|
|
8
|
+
import "./chunk-G3FPQ3XG.js";
|
|
9
9
|
export {
|
|
10
10
|
Checkout,
|
|
11
11
|
checkout_default as default
|
|
@@ -17,8 +17,8 @@ var SWATCHES = [
|
|
|
17
17
|
{ value: "ink", name: "Ink", color: "var(--ink)", on: "var(--paper)" },
|
|
18
18
|
{ value: "graphite", name: "Graphite", color: mix("ink", 62, "paper"), on: "var(--paper)" },
|
|
19
19
|
{ value: "fog", name: "Fog", color: mix("ink", 9, "paper"), on: "var(--ink)" },
|
|
20
|
-
{ value: "cobalt", name: "Cobalt", color: "var(--brand)", on: "
|
|
21
|
-
{ value: "midnight", name: "Midnight", color: mix("brand", 45, "ink"), on: "
|
|
20
|
+
{ value: "cobalt", name: "Cobalt", color: "var(--brand)", on: "var(--on-brand)" },
|
|
21
|
+
{ value: "midnight", name: "Midnight", color: mix("brand", 45, "ink"), on: "var(--on-brand)" },
|
|
22
22
|
{ value: "ice", name: "Ice", color: mix("brand", 16, "paper"), on: "var(--brand)" }
|
|
23
23
|
];
|
|
24
24
|
function SwatchRadio({ swatches = SWATCHES, value, defaultValue = "cobalt", onChange, title = "App icon", description = "How Astabyte looks on your dock and home screen.", mark = "A", name, className }) {
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
useInView
|
|
4
|
+
} from "./chunk-FS2PZKJY.js";
|
|
2
5
|
|
|
3
6
|
// components/lab/blocks/PriceChart.tsx
|
|
4
7
|
import { useEffect, useRef, useState } from "react";
|
|
@@ -52,7 +55,11 @@ function PriceChart() {
|
|
|
52
55
|
const crossDot = useRef(null);
|
|
53
56
|
const tip = useRef(null);
|
|
54
57
|
const tipText = useRef(null);
|
|
58
|
+
const visible = useInView(box);
|
|
55
59
|
const live = useRef({
|
|
60
|
+
rect: null,
|
|
61
|
+
wake: () => {
|
|
62
|
+
},
|
|
56
63
|
data: [],
|
|
57
64
|
next: 0,
|
|
58
65
|
head: 0,
|
|
@@ -68,9 +75,20 @@ function PriceChart() {
|
|
|
68
75
|
useEffect(() => {
|
|
69
76
|
const el = box.current;
|
|
70
77
|
if (!el) return;
|
|
71
|
-
const
|
|
78
|
+
const L = live.current;
|
|
79
|
+
const forget = () => {
|
|
80
|
+
L.rect = null;
|
|
81
|
+
};
|
|
82
|
+
const ro = new ResizeObserver(([e]) => {
|
|
83
|
+
forget();
|
|
84
|
+
setSize({ w: e.contentRect.width, h: e.contentRect.height });
|
|
85
|
+
});
|
|
72
86
|
ro.observe(el);
|
|
73
|
-
|
|
87
|
+
window.addEventListener("scroll", forget, { capture: true, passive: true });
|
|
88
|
+
return () => {
|
|
89
|
+
ro.disconnect();
|
|
90
|
+
window.removeEventListener("scroll", forget, { capture: true });
|
|
91
|
+
};
|
|
74
92
|
}, []);
|
|
75
93
|
useEffect(() => {
|
|
76
94
|
const L = live.current;
|
|
@@ -80,6 +98,10 @@ function PriceChart() {
|
|
|
80
98
|
L.lo = Math.min(...data);
|
|
81
99
|
L.hi = Math.max(...data);
|
|
82
100
|
L.t0 = performance.now();
|
|
101
|
+
}, []);
|
|
102
|
+
useEffect(() => {
|
|
103
|
+
if (!visible) return;
|
|
104
|
+
const L = live.current;
|
|
83
105
|
const id = setInterval(() => {
|
|
84
106
|
if (document.hidden) return;
|
|
85
107
|
L.m = L.m * 0.6 + (Math.random() - 0.47) * 2.6;
|
|
@@ -88,16 +110,18 @@ function PriceChart() {
|
|
|
88
110
|
L.next = v;
|
|
89
111
|
L.t0 = performance.now();
|
|
90
112
|
setData([...L.data.slice(1), L.head, v]);
|
|
113
|
+
L.wake();
|
|
91
114
|
}, TICK);
|
|
92
115
|
return () => clearInterval(id);
|
|
93
|
-
}, []);
|
|
116
|
+
}, [visible]);
|
|
94
117
|
useEffect(() => {
|
|
95
118
|
const L = live.current;
|
|
96
119
|
const { w: w2, h: h2 } = size;
|
|
97
|
-
if (!w2 || !h2) return;
|
|
120
|
+
if (!w2 || !h2 || !visible) return;
|
|
98
121
|
const still = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
99
122
|
L.last = performance.now();
|
|
100
123
|
const step = (now) => {
|
|
124
|
+
L.raf = 0;
|
|
101
125
|
const dt = Math.min(64, now - L.last);
|
|
102
126
|
L.last = now;
|
|
103
127
|
const k = (tau) => still ? 1 : 1 - Math.exp(-dt / tau);
|
|
@@ -132,8 +156,14 @@ function PriceChart() {
|
|
|
132
156
|
if (tag.current) tag.current.textContent = L.head.toFixed(2);
|
|
133
157
|
if (L.hoverX !== null) {
|
|
134
158
|
L.hx += (Math.min(endX, Math.max(0, L.hoverX)) - L.hx) * k(70);
|
|
135
|
-
let
|
|
136
|
-
|
|
159
|
+
let a = 0;
|
|
160
|
+
let b = xs.length - 2;
|
|
161
|
+
while (a < b) {
|
|
162
|
+
const mid = a + b + 1 >> 1;
|
|
163
|
+
if (xs[mid] < L.hx) a = mid;
|
|
164
|
+
else b = mid - 1;
|
|
165
|
+
}
|
|
166
|
+
const j = a;
|
|
137
167
|
const t = Math.max(0, Math.min(1, (L.hx - xs[j]) / Math.max(1e-3, xs[j + 1] - xs[j])));
|
|
138
168
|
const v = pts[j] + (pts[j + 1] - pts[j]) * t;
|
|
139
169
|
crossLine.current?.setAttribute("x1", L.hx.toFixed(2));
|
|
@@ -143,11 +173,19 @@ function PriceChart() {
|
|
|
143
173
|
if (tip.current) tip.current.style.transform = `translate3d(${Math.min(Math.max(8, L.hx - 60), w2 - 132)}px,0,0)`;
|
|
144
174
|
if (tipText.current) tipText.current.textContent = `${v.toFixed(2)} ${Math.max(0, Math.round((endX - L.hx) / dx))}s ago`;
|
|
145
175
|
}
|
|
146
|
-
L.raf = requestAnimationFrame(step);
|
|
176
|
+
if (!still) L.raf = requestAnimationFrame(step);
|
|
177
|
+
};
|
|
178
|
+
L.wake = () => {
|
|
179
|
+
if (!L.raf) L.raf = requestAnimationFrame(step);
|
|
180
|
+
};
|
|
181
|
+
L.wake();
|
|
182
|
+
return () => {
|
|
183
|
+
cancelAnimationFrame(L.raf);
|
|
184
|
+
L.raf = 0;
|
|
185
|
+
L.wake = () => {
|
|
186
|
+
};
|
|
147
187
|
};
|
|
148
|
-
|
|
149
|
-
return () => cancelAnimationFrame(L.raf);
|
|
150
|
-
}, [size]);
|
|
188
|
+
}, [size, visible]);
|
|
151
189
|
const price = data[data.length - 1];
|
|
152
190
|
const open = data[0];
|
|
153
191
|
const up = price >= open;
|
|
@@ -157,10 +195,11 @@ function PriceChart() {
|
|
|
157
195
|
const { w, h } = size;
|
|
158
196
|
const point = (clientX) => {
|
|
159
197
|
const L = live.current;
|
|
160
|
-
const r = box.current.getBoundingClientRect();
|
|
198
|
+
const r = L.rect ?? (L.rect = box.current.getBoundingClientRect());
|
|
161
199
|
const x = clientX - r.left;
|
|
162
200
|
if (L.hoverX === null) L.hx = x;
|
|
163
201
|
L.hoverX = x;
|
|
202
|
+
L.wake();
|
|
164
203
|
setHovering(true);
|
|
165
204
|
};
|
|
166
205
|
const leave = () => {
|
|
@@ -173,6 +212,7 @@ function PriceChart() {
|
|
|
173
212
|
const x = (L.hoverX ?? (N - 1) * dx) + dir * dx;
|
|
174
213
|
if (L.hoverX === null) L.hx = x;
|
|
175
214
|
L.hoverX = Math.max(0, Math.min((N - 1) * dx, x));
|
|
215
|
+
L.wake();
|
|
176
216
|
setHovering(true);
|
|
177
217
|
};
|
|
178
218
|
return /* @__PURE__ */ jsxs("div", { className: "relative flex h-full w-full flex-col p-5 sm:p-6", children: [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Button
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HSDMCZMX.js";
|
|
5
5
|
|
|
6
6
|
// components/kit/base/sign-in.tsx
|
|
7
7
|
import { useEffect, useId, useRef, useState } from "react";
|
|
@@ -55,7 +55,7 @@ function Field({ label, type, value, onChange, onBlur, error, shake, name, autoC
|
|
|
55
55
|
className: cx(
|
|
56
56
|
"h-10 w-full rounded-lg bg-paper px-3 text-[16px] sm:text-[14px] text-ink outline-none transition-shadow duration-200 placeholder:text-mute",
|
|
57
57
|
!!end && "pr-11",
|
|
58
|
-
error ? "shadow-[
|
|
58
|
+
error ? "shadow-[inset_0_0_0_1.5px_var(--ink)] focus-visible:ring-2 focus-visible:ring-ink/30" : `${RING} focus-visible:ring-2 focus-visible:ring-brand/50`
|
|
59
59
|
)
|
|
60
60
|
}
|
|
61
61
|
),
|
|
@@ -66,7 +66,7 @@ function Field({ label, type, value, onChange, onBlur, error, shake, name, autoC
|
|
|
66
66
|
{
|
|
67
67
|
id: `${id}-err`,
|
|
68
68
|
role: error ? "alert" : void 0,
|
|
69
|
-
className: cx("grid text-[12.5px] text-
|
|
69
|
+
className: cx("grid text-[12.5px] text-ink transition-[grid-template-rows,opacity] duration-300", EASE, error ? "grid-rows-[1fr] opacity-100" : "grid-rows-[0fr] opacity-0"),
|
|
70
70
|
children: /* @__PURE__ */ jsx("span", { className: "overflow-hidden", children: error })
|
|
71
71
|
}
|
|
72
72
|
)
|
|
@@ -120,7 +120,7 @@ function SignInCard({ title = "Welcome back", subtitle = "Sign in to continue to
|
|
|
120
120
|
return /* @__PURE__ */ jsxs("div", { className: cx("kit-signin relative w-full max-w-[380px] overflow-hidden rounded-xl bg-paper p-6 sm:p-7", "shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent),0_1px_2px_rgb(0_0_0/0.04),0_18px_40px_-20px_rgb(0_0_0/0.25)]", className), children: [
|
|
121
121
|
/* @__PURE__ */ jsx("style", { href: "asta-sign-in", precedence: "asta", children: CSS }),
|
|
122
122
|
state === "done" ? /* @__PURE__ */ jsxs("div", { className: "flex min-h-[380px] flex-col items-center justify-center text-center", style: { animation: "kit-signin-pop .5s cubic-bezier(.16,1,.3,1) both" }, role: "status", children: [
|
|
123
|
-
/* @__PURE__ */ jsx("span", { className: "flex h-14 w-14 items-center justify-center rounded-full bg-
|
|
123
|
+
/* @__PURE__ */ jsx("span", { className: "flex h-14 w-14 items-center justify-center rounded-full bg-brand text-on-brand", children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: "h-7 w-7", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "M5 12.5l4.5 4.5L19 7.5", strokeDasharray: "24", style: { animation: "kit-signin-draw .5s .15s cubic-bezier(.16,1,.3,1) both" } }) }) }),
|
|
124
124
|
/* @__PURE__ */ jsx("h3", { className: "mt-5 text-[20px] font-medium tracking-[-0.02em] text-ink", children: "You're in" }),
|
|
125
125
|
/* @__PURE__ */ jsxs("p", { className: "mt-1.5 max-w-[26ch] text-[14px] leading-snug text-mute", children: [
|
|
126
126
|
"Signed in as ",
|
|
@@ -195,7 +195,7 @@ function SignInCard({ title = "Welcome back", subtitle = "Sign in to continue to
|
|
|
195
195
|
] }),
|
|
196
196
|
/* @__PURE__ */ jsx("a", { href: "#", onClick: (e) => e.preventDefault(), className: "text-brand outline-none hover:underline focus-visible:underline", children: "Forgot password?" })
|
|
197
197
|
] }),
|
|
198
|
-
formError && /* @__PURE__ */ jsx("p", { role: "alert", className: "mt-4 rounded-lg bg-
|
|
198
|
+
formError && /* @__PURE__ */ jsx("p", { role: "alert", className: "mt-4 rounded-lg bg-paper-2 px-3 py-2 text-[13px] text-ink", children: formError }),
|
|
199
199
|
/* @__PURE__ */ jsx(Button, { type: "submit", variant: "solid", size: "md", loading: state === "loading", className: "mt-5 w-full", children: "Sign in" }),
|
|
200
200
|
/* @__PURE__ */ jsxs("p", { className: "mt-4 text-center text-[13px] text-mute", children: [
|
|
201
201
|
"New here?",
|
|
@@ -48,10 +48,16 @@ function FallbackChain() {
|
|
|
48
48
|
}, []);
|
|
49
49
|
useEffect(() => {
|
|
50
50
|
if (!visible) return;
|
|
51
|
-
const t =
|
|
51
|
+
const t = /* @__PURE__ */ new Set();
|
|
52
52
|
let tick;
|
|
53
53
|
let alive = true;
|
|
54
|
-
const later = (at2, f) =>
|
|
54
|
+
const later = (at2, f) => {
|
|
55
|
+
const id = setTimeout(() => {
|
|
56
|
+
t.delete(id);
|
|
57
|
+
if (alive) f();
|
|
58
|
+
}, at2);
|
|
59
|
+
t.add(id);
|
|
60
|
+
};
|
|
55
61
|
const fails = plan.current;
|
|
56
62
|
const set = (i, s) => setStatus((v) => v.map((x, k) => k === i ? s : x));
|
|
57
63
|
const clock = (scale) => {
|
|
@@ -47,7 +47,10 @@ function Progress({ value, label, showValue, className }) {
|
|
|
47
47
|
className: "kit-spinner relative h-1.5 w-full overflow-hidden rounded-full bg-[color-mix(in_srgb,var(--ink)_9%,transparent)]",
|
|
48
48
|
children: [
|
|
49
49
|
/* @__PURE__ */ jsx("style", { href: "asta-spinner-2", precedence: "asta", children: KEYFRAMES }),
|
|
50
|
-
v === void 0 ? /* @__PURE__ */ jsx("span", { className: "absolute inset-y-0 left-0 w-[40%] rounded-full bg-brand", style: { animation: "kit-indet 1.3s cubic-bezier(.65,0,.35,1) infinite" } }) :
|
|
50
|
+
v === void 0 ? /* @__PURE__ */ jsx("span", { className: "absolute inset-y-0 left-0 w-[40%] rounded-full bg-brand", style: { animation: "kit-indet 1.3s cubic-bezier(.65,0,.35,1) infinite" } }) : (
|
|
51
|
+
// perf-ok: a thin progress bar, width updates only when the value changes.
|
|
52
|
+
/* @__PURE__ */ jsx("span", { className: "absolute inset-y-0 left-0 rounded-full bg-brand transition-[width] duration-700 ease-[cubic-bezier(.16,1,.3,1)]", style: { width: `${v}%` } })
|
|
53
|
+
)
|
|
51
54
|
]
|
|
52
55
|
}
|
|
53
56
|
)
|
|
@@ -13,14 +13,14 @@ var SIZE = {
|
|
|
13
13
|
};
|
|
14
14
|
var PAPER = "var(--paper)";
|
|
15
15
|
var STATUS = {
|
|
16
|
-
online: "
|
|
17
|
-
away: `radial-gradient(closest-side at 30% 30%, ${PAPER} 92%,
|
|
18
|
-
busy: `linear-gradient(${PAPER}, ${PAPER}) center / 60% 20% no-repeat,
|
|
16
|
+
online: "var(--brand)",
|
|
17
|
+
away: `radial-gradient(closest-side at 30% 30%, ${PAPER} 92%, var(--ink-2) 100%)`,
|
|
18
|
+
busy: `linear-gradient(${PAPER}, ${PAPER}) center / 60% 20% no-repeat, var(--ink)`,
|
|
19
19
|
offline: `radial-gradient(closest-side, ${PAPER} 48%, var(--mute) 56%)`
|
|
20
20
|
};
|
|
21
21
|
var FILLS = [
|
|
22
22
|
"bg-ink text-paper",
|
|
23
|
-
"bg-brand text-
|
|
23
|
+
"bg-brand text-on-brand",
|
|
24
24
|
"bg-paper-2 text-ink shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_14%,transparent)]",
|
|
25
25
|
"bg-[color-mix(in_srgb,var(--brand)_14%,var(--paper))] text-brand",
|
|
26
26
|
"bg-[color-mix(in_srgb,var(--ink)_70%,var(--paper))] text-paper"
|
|
@@ -46,6 +46,8 @@ function Avatar({ name, src, size = "md", status, shape = "circle", className })
|
|
|
46
46
|
)
|
|
47
47
|
] });
|
|
48
48
|
}
|
|
49
|
+
var FAN_ONLY = "group-hover/av:[transform:translateX(calc(var(--av-i)*14px))]";
|
|
50
|
+
var FAN = `-ml-2.5 ${FAN_ONLY}`;
|
|
49
51
|
function AvatarGroup({ people, max = 4, size = "md", children }) {
|
|
50
52
|
const shown = people.slice(0, max);
|
|
51
53
|
const rest = people.length - shown.length;
|
|
@@ -56,9 +58,10 @@ function AvatarGroup({ people, max = 4, size = "md", children }) {
|
|
|
56
58
|
{
|
|
57
59
|
title: p.name,
|
|
58
60
|
className: cx(
|
|
59
|
-
"relative rounded-full shadow-[0_0_0_2px_var(--paper)] transition-[
|
|
60
|
-
i > 0 &&
|
|
61
|
+
"relative rounded-full shadow-[0_0_0_2px_var(--paper)] transition-[transform] duration-500 ease-[cubic-bezier(.16,1,.3,1)] hover:z-10 hover:-translate-y-1",
|
|
62
|
+
i > 0 && FAN
|
|
61
63
|
),
|
|
64
|
+
style: i > 0 ? { "--av-i": i } : void 0,
|
|
62
65
|
children: /* @__PURE__ */ jsx(Avatar, { name: p.name, src: p.src, size })
|
|
63
66
|
},
|
|
64
67
|
p.name
|
|
@@ -67,17 +70,19 @@ function AvatarGroup({ people, max = 4, size = "md", children }) {
|
|
|
67
70
|
"span",
|
|
68
71
|
{
|
|
69
72
|
className: cx(
|
|
70
|
-
"relative
|
|
73
|
+
"relative inline-flex items-center justify-center rounded-full bg-paper-2 font-medium tabular-nums text-ink-2 shadow-[0_0_0_2px_var(--paper)] transition-[transform] duration-500 ease-[cubic-bezier(.16,1,.3,1)]",
|
|
74
|
+
FAN,
|
|
71
75
|
s.box,
|
|
72
76
|
s.text
|
|
73
77
|
),
|
|
78
|
+
style: { "--av-i": shown.length },
|
|
74
79
|
children: [
|
|
75
80
|
"+",
|
|
76
81
|
rest
|
|
77
82
|
]
|
|
78
83
|
}
|
|
79
84
|
),
|
|
80
|
-
children
|
|
85
|
+
children && /* @__PURE__ */ jsx("span", { className: cx("inline-flex items-center transition-[transform] duration-500 ease-[cubic-bezier(.16,1,.3,1)]", FAN_ONLY), style: { "--av-i": shown.length - 1 + (rest > 0 ? 1 : 0) }, children })
|
|
81
86
|
] });
|
|
82
87
|
}
|
|
83
88
|
var avatar_default = Avatar;
|
|
@@ -79,7 +79,7 @@ function Drawer({ open, onOpenChange, side = "right", title, description, childr
|
|
|
79
79
|
const onDragStart = (e) => {
|
|
80
80
|
if (!canDrag || e.button !== 0 || !open) return;
|
|
81
81
|
e.currentTarget.setPointerCapture(e.pointerId);
|
|
82
|
-
drag.current = { y: e.clientY, t: e.timeStamp, dy: 0, v: 0 };
|
|
82
|
+
drag.current = { y: e.clientY, t: e.timeStamp, dy: 0, v: 0, h: panel.current?.offsetHeight || 1 };
|
|
83
83
|
panel.current?.getAnimations().forEach((a) => a.cancel());
|
|
84
84
|
};
|
|
85
85
|
const onDragMove = (e) => {
|
|
@@ -92,14 +92,14 @@ function Drawer({ open, onOpenChange, side = "right", title, description, childr
|
|
|
92
92
|
d.t = e.timeStamp;
|
|
93
93
|
d.dy = dy;
|
|
94
94
|
p.style.transform = `translateY(${dy}px)`;
|
|
95
|
-
if (overlay.current) overlay.current.style.opacity = String(Math.max(0, 1 - Math.max(0, dy) /
|
|
95
|
+
if (overlay.current) overlay.current.style.opacity = String(Math.max(0, 1 - Math.max(0, dy) / d.h));
|
|
96
96
|
};
|
|
97
97
|
const onDragEnd = () => {
|
|
98
98
|
const d = drag.current;
|
|
99
99
|
const p = panel.current;
|
|
100
100
|
drag.current = null;
|
|
101
101
|
if (!d || !p) return;
|
|
102
|
-
if (d.dy >
|
|
102
|
+
if (d.dy > d.h * 0.3 || d.v > 0.6) return onOpenChange(false);
|
|
103
103
|
const from = p.style.transform;
|
|
104
104
|
p.style.transform = "";
|
|
105
105
|
if (overlay.current) overlay.current.style.opacity = "";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Button
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HSDMCZMX.js";
|
|
5
5
|
|
|
6
6
|
// components/kit/base/invoice.tsx
|
|
7
|
-
import { useState } from "react";
|
|
7
|
+
import { useEffect, useRef, useState } from "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
var cx = (...c) => c.filter(Boolean).join(" ");
|
|
10
10
|
var KEYFRAMES = `@keyframes asta-invoice-in { from { opacity: 0; transform: translateY(4px) } }
|
|
@@ -21,6 +21,11 @@ function Invoice({ number, issued, due, from, to, items, taxRate = 0, discount =
|
|
|
21
21
|
const [state, setState] = useState(status);
|
|
22
22
|
const [paying, setPaying] = useState(false);
|
|
23
23
|
const [paidOn, setPaidOn] = useState(null);
|
|
24
|
+
const [error, setError] = useState(null);
|
|
25
|
+
const errorEl = useRef(null);
|
|
26
|
+
useEffect(() => {
|
|
27
|
+
if (error) errorEl.current?.focus();
|
|
28
|
+
}, [error]);
|
|
24
29
|
const money = (n) => new Intl.NumberFormat(locale, { style: "currency", currency }).format(n);
|
|
25
30
|
const subtotal = items.reduce((a, it) => a + it.quantity * it.unitPrice, 0);
|
|
26
31
|
const taxed = Math.max(0, subtotal - discount);
|
|
@@ -31,10 +36,14 @@ function Invoice({ number, issued, due, from, to, items, taxRate = 0, discount =
|
|
|
31
36
|
const pay = async () => {
|
|
32
37
|
if (!onPay || paying) return;
|
|
33
38
|
setPaying(true);
|
|
39
|
+
setError(null);
|
|
34
40
|
try {
|
|
35
41
|
await onPay();
|
|
36
42
|
setPaidOn((/* @__PURE__ */ new Date()).toLocaleDateString(locale, { month: "short", day: "numeric", year: "numeric" }));
|
|
37
43
|
setState("paid");
|
|
44
|
+
} catch (e) {
|
|
45
|
+
const why = e instanceof Error && e.message ? ` ${e.message.replace(/\.?$/, ".")}` : "";
|
|
46
|
+
setError(`The payment didn't go through.${why} Check your payment details and try again.`);
|
|
38
47
|
} finally {
|
|
39
48
|
setPaying(false);
|
|
40
49
|
}
|
|
@@ -151,6 +160,10 @@ function Invoice({ number, issued, due, from, to, items, taxRate = 0, discount =
|
|
|
151
160
|
] })
|
|
152
161
|
] })
|
|
153
162
|
] }),
|
|
163
|
+
error && !paid && /* @__PURE__ */ jsxs("p", { ref: errorEl, role: "alert", tabIndex: -1, className: "-mt-3 flex items-start gap-1.5 text-[12.5px] font-medium text-ink outline-none @min-[560px]:justify-end", children: [
|
|
164
|
+
/* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "mt-px h-3.5 w-3.5 shrink-0", fill: "none", stroke: "currentColor", strokeWidth: "1.6", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "M8 2.5 14 13H2zM8 6.5v3M8 11.2h.01" }) }),
|
|
165
|
+
error
|
|
166
|
+
] }),
|
|
154
167
|
/* @__PURE__ */ jsx("p", { className: "sr-only", "aria-live": "polite", children: paid && paidOn ? `Invoice ${number} paid on ${paidOn}.` : "" })
|
|
155
168
|
] })
|
|
156
169
|
]
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Avatar
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3OCWR4L3.js";
|
|
5
5
|
import {
|
|
6
6
|
Button
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5ZQ6PMJT.js";
|
|
8
8
|
|
|
9
9
|
// components/kit/inbox.tsx
|
|
10
10
|
import { useEffect, useLayoutEffect, useRef, useState } from "react";
|
|
@@ -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/TokenSwap.tsx
|
|
4
8
|
import { useEffect, useRef, useState } from "react";
|
|
@@ -48,22 +52,19 @@ function TokenSwap() {
|
|
|
48
52
|
const [delta, setDelta] = useState(0);
|
|
49
53
|
const [secs, setSecs] = useState(REFRESH);
|
|
50
54
|
const [status, setStatus] = useState("idle");
|
|
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 timers = useRef(/* @__PURE__ */ new Set());
|
|
54
60
|
const view = useRef({ amt, from, rate });
|
|
55
61
|
useEffect(() => {
|
|
56
62
|
view.current = { amt, from, rate };
|
|
57
63
|
}, [amt, from, rate]);
|
|
58
64
|
const still = () => window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
59
|
-
const takeOver =
|
|
60
|
-
setPaused(true);
|
|
61
|
-
if (idle.current) clearTimeout(idle.current);
|
|
62
|
-
idle.current = setTimeout(() => setPaused(false), 8e3);
|
|
63
|
-
};
|
|
65
|
+
const takeOver = takeOverDemo;
|
|
64
66
|
useEffect(
|
|
65
67
|
() => () => {
|
|
66
|
-
if (idle.current) clearTimeout(idle.current);
|
|
67
68
|
timers.current.forEach(clearTimeout);
|
|
68
69
|
},
|
|
69
70
|
[]
|
|
@@ -92,20 +93,20 @@ function TokenSwap() {
|
|
|
92
93
|
later(fast ? 0 : 1200, () => setStatus("done"));
|
|
93
94
|
later(fast ? 1600 : 2900, () => setStatus("idle"));
|
|
94
95
|
};
|
|
96
|
+
const clock = useRef({ n: 0, left: REFRESH });
|
|
95
97
|
useEffect(() => {
|
|
96
|
-
if (still()) return;
|
|
97
|
-
|
|
98
|
-
let left = REFRESH;
|
|
98
|
+
if (still() || !visible) return;
|
|
99
|
+
const c = clock.current;
|
|
99
100
|
const id = setInterval(() => {
|
|
100
|
-
left = left > 1 ? left - 1 : REFRESH;
|
|
101
|
-
setSecs(left);
|
|
102
|
-
if (left !== REFRESH) return;
|
|
103
|
-
const d = DRIFT[n++ % DRIFT.length];
|
|
101
|
+
c.left = c.left > 1 ? c.left - 1 : REFRESH;
|
|
102
|
+
setSecs(c.left);
|
|
103
|
+
if (c.left !== REFRESH) return;
|
|
104
|
+
const d = DRIFT[c.n++ % DRIFT.length];
|
|
104
105
|
setDelta(d);
|
|
105
106
|
setRate((r) => Math.round(r * (1 + d) * 1e4) / 1e4);
|
|
106
107
|
}, 1e3);
|
|
107
108
|
return () => clearInterval(id);
|
|
108
|
-
}, []);
|
|
109
|
+
}, [visible]);
|
|
109
110
|
useEffect(() => {
|
|
110
111
|
if (paused || still()) return;
|
|
111
112
|
const t = /* @__PURE__ */ new Set();
|
|
@@ -136,7 +137,7 @@ function TokenSwap() {
|
|
|
136
137
|
const busy = status !== "idle";
|
|
137
138
|
const pay = TOKENS[from];
|
|
138
139
|
const get = TOKENS[1 - from];
|
|
139
|
-
return /* @__PURE__ */ jsxs("div", { className: "flex h-full w-full items-center justify-center px-5 pb-5 pt-11", style: { containerType: "size" }, children: [
|
|
140
|
+
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: [
|
|
140
141
|
/* @__PURE__ */ jsx("style", { href: "asta-tokenswap", precedence: "asta", children: `
|
|
141
142
|
@container (max-height: 330px) { .lab-sw-rate { display: none } }
|
|
142
143
|
@keyframes lab-sw-spin { to { transform: rotate(360deg) } }
|
|
@@ -265,7 +265,7 @@ function ScrubInput({ label, title, value, defaultValue = 0, onChange, min = -In
|
|
|
265
265
|
)
|
|
266
266
|
}
|
|
267
267
|
),
|
|
268
|
-
scrub !== null && scrub !== 1 ? /* @__PURE__ */ jsxs("span", { "aria-hidden": true, className: "mr-1.5 shrink-0 rounded-[4px] bg-brand px-1 text-[10.5px] font-medium leading-4 tabular-nums text-
|
|
268
|
+
scrub !== null && scrub !== 1 ? /* @__PURE__ */ jsxs("span", { "aria-hidden": true, className: "mr-1.5 shrink-0 rounded-[4px] bg-brand px-1 text-[10.5px] font-medium leading-4 tabular-nums text-on-brand", children: [
|
|
269
269
|
"\xD7",
|
|
270
270
|
scrub
|
|
271
271
|
] }) : unit && /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "shrink-0 pr-2 text-[11.5px] text-mute", children: unit }),
|
|
@@ -72,7 +72,7 @@ function Tabs({ tabs, value, defaultValue, onChange, variant = "underline", labe
|
|
|
72
72
|
),
|
|
73
73
|
children: [
|
|
74
74
|
t.label,
|
|
75
|
-
t.count !== void 0 && /* @__PURE__ */ jsx("span", { className: "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 group-data-[state=active]/tab:bg-brand group-data-[state=active]/tab:text-
|
|
75
|
+
t.count !== void 0 && /* @__PURE__ */ jsx("span", { className: "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 group-data-[state=active]/tab:bg-brand group-data-[state=active]/tab:text-on-brand", children: t.count })
|
|
76
76
|
]
|
|
77
77
|
},
|
|
78
78
|
t.value
|
|
@@ -80,7 +80,7 @@ function Tabs({ tabs, value, defaultValue, onChange, variant = "underline", labe
|
|
|
80
80
|
]
|
|
81
81
|
}
|
|
82
82
|
),
|
|
83
|
-
/* @__PURE__ */ jsx("style", { href: "asta-tabs", precedence: "asta", children: `@keyframes kit-tab-in { from { opacity: 0; transform: translateY(6px)
|
|
83
|
+
/* @__PURE__ */ jsx("style", { href: "asta-tabs", precedence: "asta", children: `@keyframes kit-tab-in { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }` }),
|
|
84
84
|
tabs.map((t) => /* @__PURE__ */ jsx(T.Content, { value: t.value, className: "pt-5 outline-none animate-[kit-tab-in_.45s_cubic-bezier(.16,1,.3,1)_both] motion-reduce:!animate-none", children: t.content }, t.value))
|
|
85
85
|
]
|
|
86
86
|
}
|