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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Avatar
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3OCWR4L3.js";
|
|
5
5
|
|
|
6
6
|
// components/kit/kanban.tsx
|
|
7
7
|
import { useEffect, useId, useLayoutEffect, useRef, useState } from "react";
|
|
@@ -10,6 +10,16 @@ var cx = (...c) => c.filter(Boolean).join(" ");
|
|
|
10
10
|
var EASE = "ease-[cubic-bezier(.16,1,.3,1)]";
|
|
11
11
|
var CURVE = "cubic-bezier(.16,1,.3,1)";
|
|
12
12
|
var GAP = 8;
|
|
13
|
+
function upperBound(a, v) {
|
|
14
|
+
let lo = 0;
|
|
15
|
+
let hi = a.length;
|
|
16
|
+
while (lo < hi) {
|
|
17
|
+
const mid = lo + hi >> 1;
|
|
18
|
+
if (a[mid] <= v) lo = mid + 1;
|
|
19
|
+
else hi = mid;
|
|
20
|
+
}
|
|
21
|
+
return lo;
|
|
22
|
+
}
|
|
13
23
|
var reduced = () => typeof window !== "undefined" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
14
24
|
function place(cards, card, col, index) {
|
|
15
25
|
const rest = cards.filter((c) => c.id !== card.id);
|
|
@@ -62,10 +72,43 @@ function Kanban({ columns, defaultCards, onChange, className }) {
|
|
|
62
72
|
const press = useRef(null);
|
|
63
73
|
const flip = useRef(null);
|
|
64
74
|
const refocus = useRef(null);
|
|
75
|
+
const floating = useRef(null);
|
|
76
|
+
const pos = useRef({ x: 0, y: 0 });
|
|
77
|
+
const board = useRef({ left: 0, top: 0 });
|
|
78
|
+
const frame = useRef(0);
|
|
79
|
+
const landing = useRef(void 0);
|
|
65
80
|
const pickedRef = useRef(picked);
|
|
66
81
|
useEffect(() => {
|
|
67
82
|
pickedRef.current = picked;
|
|
68
83
|
}, [picked]);
|
|
84
|
+
useEffect(
|
|
85
|
+
() => () => {
|
|
86
|
+
clearTimeout(landing.current);
|
|
87
|
+
cancelAnimationFrame(frame.current);
|
|
88
|
+
},
|
|
89
|
+
[]
|
|
90
|
+
);
|
|
91
|
+
const paint = () => {
|
|
92
|
+
frame.current = 0;
|
|
93
|
+
const el = floating.current;
|
|
94
|
+
if (!el) return;
|
|
95
|
+
el.style.setProperty("--kx", `${pos.current.x}px`);
|
|
96
|
+
el.style.setProperty("--ky", `${pos.current.y}px`);
|
|
97
|
+
};
|
|
98
|
+
const dragId = drag?.id;
|
|
99
|
+
const dropping = drag?.dropping;
|
|
100
|
+
useLayoutEffect(() => {
|
|
101
|
+
if (dragId) paint();
|
|
102
|
+
}, [dragId, dropping]);
|
|
103
|
+
useEffect(() => {
|
|
104
|
+
if (!dragId) return;
|
|
105
|
+
const onScroll = () => {
|
|
106
|
+
const r = root.current?.getBoundingClientRect();
|
|
107
|
+
if (r) board.current = { left: r.left, top: r.top };
|
|
108
|
+
};
|
|
109
|
+
window.addEventListener("scroll", onScroll, { capture: true, passive: true });
|
|
110
|
+
return () => window.removeEventListener("scroll", onScroll, { capture: true });
|
|
111
|
+
}, [dragId]);
|
|
69
112
|
const inCol = (list, col) => list.filter((c) => c.column === col);
|
|
70
113
|
const titleOf = (col) => columns.find((c) => c.id === col)?.title ?? col;
|
|
71
114
|
const where = (list, id) => {
|
|
@@ -91,20 +134,23 @@ function Kanban({ columns, defaultCards, onChange, className }) {
|
|
|
91
134
|
if (id && document.activeElement !== els.current.get(id)) els.current.get(id)?.focus();
|
|
92
135
|
}, [cards, picked]);
|
|
93
136
|
const start = (e, card) => {
|
|
94
|
-
const
|
|
137
|
+
const b = root.current.getBoundingClientRect();
|
|
138
|
+
board.current = { left: b.left, top: b.top };
|
|
139
|
+
const r = els.current.get(card.id).getBoundingClientRect();
|
|
140
|
+
const D = r.height + GAP;
|
|
95
141
|
const geo = columns.map((c) => {
|
|
96
|
-
const
|
|
142
|
+
const lr = lists.current.get(c.id).getBoundingClientRect();
|
|
97
143
|
const ids = inCol(cards, c.id).map((k) => k.id);
|
|
98
144
|
const box = Object.fromEntries(ids.map((id) => [id, { top: els.current.get(id).offsetTop, h: els.current.get(id).offsetHeight }]));
|
|
99
|
-
|
|
145
|
+
const src = c.id === card.column ? ids.indexOf(card.id) : -1;
|
|
146
|
+
const mids = ids.flatMap((id, i) => i === src ? [] : [box[id].top + (src >= 0 && i > src ? -D : 0) + box[id].h / 2]);
|
|
147
|
+
return { id: c.id, left: lr.left - b.left, right: lr.right - b.left, top: lr.top - b.top, ids, box, mids };
|
|
100
148
|
});
|
|
101
|
-
const r = els.current.get(card.id).getBoundingClientRect();
|
|
102
149
|
const index = geo.find((g) => g.id === card.column).ids.indexOf(card.id);
|
|
150
|
+
pos.current = { x: r.left - b.left, y: r.top - b.top };
|
|
103
151
|
setDrag({
|
|
104
152
|
id: card.id,
|
|
105
153
|
from: card.column,
|
|
106
|
-
x: r.left - board.left,
|
|
107
|
-
y: r.top - board.top,
|
|
108
154
|
w: r.width,
|
|
109
155
|
h: r.height,
|
|
110
156
|
ox: e.clientX - r.left,
|
|
@@ -113,25 +159,28 @@ function Kanban({ columns, defaultCards, onChange, className }) {
|
|
|
113
159
|
geo
|
|
114
160
|
});
|
|
115
161
|
};
|
|
116
|
-
const
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
const closing = { ...d, target: { col: "", index: 0 } };
|
|
124
|
-
const compact = g.ids.filter((id) => id !== d.id);
|
|
125
|
-
let index = compact.length;
|
|
126
|
-
for (let i = 0; i < compact.length; i++) {
|
|
127
|
-
const b = g.box[compact[i]];
|
|
128
|
-
const top = b.top + shiftOf(closing, g, compact[i]);
|
|
129
|
-
if (cy < top + b.h / 2) {
|
|
130
|
-
index = i;
|
|
131
|
-
break;
|
|
132
|
-
}
|
|
162
|
+
const columnAt = (geo, px) => {
|
|
163
|
+
let lo = 0;
|
|
164
|
+
let hi = geo.length - 1;
|
|
165
|
+
while (lo < hi) {
|
|
166
|
+
const mid = lo + hi >> 1;
|
|
167
|
+
if (geo[mid].right < px) lo = mid + 1;
|
|
168
|
+
else hi = mid;
|
|
133
169
|
}
|
|
134
|
-
|
|
170
|
+
const g = geo[lo];
|
|
171
|
+
if (px >= g.left || lo === 0) return g;
|
|
172
|
+
const p = geo[lo - 1];
|
|
173
|
+
return Math.abs((p.left + p.right) / 2 - px) < Math.abs((g.left + g.right) / 2 - px) ? p : g;
|
|
174
|
+
};
|
|
175
|
+
const move = (e, d) => {
|
|
176
|
+
const x = e.clientX - board.current.left - d.ox;
|
|
177
|
+
const y = e.clientY - board.current.top - d.oy;
|
|
178
|
+
pos.current = { x, y };
|
|
179
|
+
if (!frame.current) frame.current = requestAnimationFrame(paint);
|
|
180
|
+
const g = columnAt(d.geo, e.clientX - board.current.left);
|
|
181
|
+
const index = upperBound(g.mids, y + d.h / 2 - g.top);
|
|
182
|
+
if (g.id === d.target.col && index === d.target.index) return;
|
|
183
|
+
setDrag((cur) => cur && cur.id === d.id && !cur.dropping ? { ...cur, target: { col: g.id, index } } : cur);
|
|
135
184
|
};
|
|
136
185
|
const commit = (d) => {
|
|
137
186
|
const card = cards.find((c) => c.id === d.id);
|
|
@@ -144,8 +193,12 @@ function Kanban({ columns, defaultCards, onChange, className }) {
|
|
|
144
193
|
const drop = (d) => {
|
|
145
194
|
if (reduced()) return commit(d);
|
|
146
195
|
const g = d.geo.find((c) => c.id === d.target.col);
|
|
147
|
-
|
|
148
|
-
|
|
196
|
+
cancelAnimationFrame(frame.current);
|
|
197
|
+
frame.current = 0;
|
|
198
|
+
pos.current = { x: g.left, y: g.top + gapTop(d, g) };
|
|
199
|
+
setDrag({ ...d, dropping: true });
|
|
200
|
+
clearTimeout(landing.current);
|
|
201
|
+
landing.current = setTimeout(() => commit(d), 260);
|
|
149
202
|
};
|
|
150
203
|
const cancelPick = (focus) => {
|
|
151
204
|
const p = pickedRef.current;
|
|
@@ -227,11 +280,16 @@ function Kanban({ columns, defaultCards, onChange, className }) {
|
|
|
227
280
|
const dragged = drag ? cards.find((c) => c.id === drag.id) : void 0;
|
|
228
281
|
return /* @__PURE__ */ jsxs("div", { className: cx("w-full overflow-x-auto", className), children: [
|
|
229
282
|
/* @__PURE__ */ jsx("style", { href: "asta-kanban", precedence: "asta", children: `
|
|
230
|
-
@keyframes kit-kb-lift { to { transform: rotate(1.5deg) scale(1.03);
|
|
231
|
-
@keyframes kit-kb-land { from { transform: rotate(1.5deg) scale(1.03);
|
|
283
|
+
@keyframes kit-kb-lift { to { transform: rotate(1.5deg) scale(1.03); } }
|
|
284
|
+
@keyframes kit-kb-land { from { transform: rotate(1.5deg) scale(1.03); } }
|
|
232
285
|
@keyframes kit-kb-fade { from { opacity: 0; } }
|
|
286
|
+
@keyframes kit-kb-out { to { opacity: 0; } }
|
|
233
287
|
@keyframes kit-kb-count { from { opacity: 0; transform: translateY(4px); } }
|
|
234
|
-
|
|
288
|
+
.kit-kb-float { position: relative; animation: kit-kb-lift .22s ${CURVE} both; }
|
|
289
|
+
.kit-kb-float::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: 0 18px 36px -14px rgb(0 0 0 / .28); animation: kit-kb-fade .22s ${CURVE} both; }
|
|
290
|
+
.kit-kb-float[data-dropping] { animation: kit-kb-land .26s ${CURVE} both; }
|
|
291
|
+
.kit-kb-float[data-dropping]::after { animation: kit-kb-out .26s ${CURVE} both; }
|
|
292
|
+
@media (prefers-reduced-motion: reduce) { .kit-kb, .kit-kb * { animation: none !important; transition-duration: 0s !important; } .kit-kb-float::after { opacity: 0; } }
|
|
235
293
|
` }),
|
|
236
294
|
/* @__PURE__ */ jsx("p", { id: hintId, className: "sr-only", children: "Press Space to pick up a card. Use the arrow keys to move it, Space to drop, Escape to cancel." }),
|
|
237
295
|
/* @__PURE__ */ jsx("p", { className: "sr-only", "aria-live": "polite", children: msg }),
|
|
@@ -311,21 +369,15 @@ function Kanban({ columns, defaultCards, onChange, className }) {
|
|
|
311
369
|
drag && dragged && /* @__PURE__ */ jsx(
|
|
312
370
|
"div",
|
|
313
371
|
{
|
|
372
|
+
ref: floating,
|
|
314
373
|
"aria-hidden": true,
|
|
315
374
|
className: "pointer-events-none absolute left-0 top-0 z-30",
|
|
316
375
|
style: {
|
|
317
376
|
width: drag.w,
|
|
318
|
-
transform:
|
|
377
|
+
transform: "translate3d(var(--kx, 0px), var(--ky, 0px), 0)",
|
|
319
378
|
transition: drag.dropping ? `transform .26s ${CURVE}` : "none"
|
|
320
379
|
},
|
|
321
|
-
children: /* @__PURE__ */ jsx(
|
|
322
|
-
"div",
|
|
323
|
-
{
|
|
324
|
-
className: cx(cardCls, "cursor-grabbing"),
|
|
325
|
-
style: { animation: drag.dropping ? `kit-kb-land .26s ${CURVE} both` : `kit-kb-lift .22s ${CURVE} both` },
|
|
326
|
-
children: /* @__PURE__ */ jsx(CardBody, { card: dragged })
|
|
327
|
-
}
|
|
328
|
-
)
|
|
380
|
+
children: /* @__PURE__ */ jsx("div", { className: cx(cardCls, "kit-kb-float cursor-grabbing"), "data-dropping": drag.dropping || void 0, children: /* @__PURE__ */ jsx(CardBody, { card: dragged }) })
|
|
329
381
|
}
|
|
330
382
|
)
|
|
331
383
|
] })
|
|
@@ -24,7 +24,7 @@ function Check({ state, onToggle, label }) {
|
|
|
24
24
|
on || mixed ? "bg-brand shadow-[inset_0_1px_0_rgb(255_255_255/0.2),0_1px_2px_rgb(0_0_0/0.2)]" : "bg-paper shadow-[inset_0_0_0_1.5px_color-mix(in_srgb,var(--ink)_22%,transparent)] hover:shadow-[inset_0_0_0_1.5px_color-mix(in_srgb,var(--ink)_40%,transparent)]"
|
|
25
25
|
),
|
|
26
26
|
children: [
|
|
27
|
-
/* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "col-start-1 row-start-1 h-3 w-3 text-
|
|
27
|
+
/* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "col-start-1 row-start-1 h-3 w-3 text-on-brand", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx(
|
|
28
28
|
"path",
|
|
29
29
|
{
|
|
30
30
|
d: "M3.5 8.5l3 3 6-7",
|
|
@@ -34,7 +34,7 @@ function Check({ state, onToggle, label }) {
|
|
|
34
34
|
style: { strokeDashoffset: on ? 0 : 1, transitionDuration: on ? "380ms" : "120ms" }
|
|
35
35
|
}
|
|
36
36
|
) }),
|
|
37
|
-
/* @__PURE__ */ jsx("span", { "aria-hidden": true, className: cx("col-start-1 row-start-1 h-[2.2px] w-2 rounded-full bg-
|
|
37
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": true, className: cx("col-start-1 row-start-1 h-[2.2px] w-2 rounded-full bg-on-brand transition-transform duration-300 ease-[cubic-bezier(.16,1,.3,1)]", mixed ? "scale-x-100" : "scale-x-0") })
|
|
38
38
|
]
|
|
39
39
|
}
|
|
40
40
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
buttonClass
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5ZQ6PMJT.js";
|
|
5
5
|
|
|
6
6
|
// components/kit/dropdown-menu.tsx
|
|
7
7
|
import { DropdownMenu as Menu } from "radix-ui";
|
|
@@ -53,7 +53,7 @@ function DropdownMenu({ children, groups, align = "start", variant = "outline",
|
|
|
53
53
|
className: cx(
|
|
54
54
|
"group/item flex h-9 w-full cursor-pointer select-none items-center gap-2.5 rounded-[10px] px-2.5 text-[13.5px] outline-none transition-colors duration-150",
|
|
55
55
|
"data-[disabled]:cursor-not-allowed data-[disabled]:opacity-40",
|
|
56
|
-
it.danger ? "text-
|
|
56
|
+
it.danger ? "text-ink data-[highlighted]:bg-paper-2" : "text-ink data-[highlighted]:bg-paper-2"
|
|
57
57
|
),
|
|
58
58
|
children: [
|
|
59
59
|
it.icon && /* @__PURE__ */ jsx("span", { className: cx("inline-flex h-4 w-4 shrink-0 [&_svg]:h-4 [&_svg]:w-4", !it.danger && "text-mute group-data-[highlighted]/item:text-ink"), children: it.icon }),
|
|
@@ -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/footer.tsx
|
|
7
|
-
import { useRef, 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 EASE = "ease-[cubic-bezier(.16,1,.3,1)]";
|
|
@@ -41,7 +41,7 @@ function Newsletter({ onSubscribe }) {
|
|
|
41
41
|
"flex h-11 items-center gap-1 rounded-[10px] bg-paper/10 p-1 pl-4 shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--paper)_14%,transparent)] transition-[opacity,transform,box-shadow] duration-500 focus-within:shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--paper)_45%,transparent)]",
|
|
42
42
|
EASE,
|
|
43
43
|
state === "done" && "pointer-events-none -translate-y-2 opacity-0",
|
|
44
|
-
state === "error" && "shadow-[
|
|
44
|
+
state === "error" && "shadow-[inset_0_0_0_1.5px_var(--paper)]"
|
|
45
45
|
),
|
|
46
46
|
children: [
|
|
47
47
|
/* @__PURE__ */ jsx("label", { htmlFor: "kit-footer-email", className: "sr-only", children: "Email address" }),
|
|
@@ -82,36 +82,99 @@ function Newsletter({ onSubscribe }) {
|
|
|
82
82
|
),
|
|
83
83
|
"aria-hidden": state !== "done",
|
|
84
84
|
children: [
|
|
85
|
-
/* @__PURE__ */ jsx("span", { className: "flex h-6 w-6 items-center justify-center rounded-full bg-brand text-
|
|
85
|
+
/* @__PURE__ */ jsx("span", { className: "flex h-6 w-6 items-center justify-center rounded-full bg-brand text-on-brand", children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "h-3.5 w-3.5", fill: "none", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "m3.5 8.5 3 3 6-7", strokeDasharray: "16", style: { strokeDashoffset: state === "done" ? 0 : 16, transition: "stroke-dashoffset .5s .2s" } }) }) }),
|
|
86
86
|
"You're in. First letter lands next week."
|
|
87
87
|
]
|
|
88
88
|
}
|
|
89
89
|
),
|
|
90
|
-
/* @__PURE__ */ jsx("p", { id: "kit-footer-msg", role: "status", className: "mt-2 h-4 text-[12px] text-
|
|
90
|
+
/* @__PURE__ */ jsx("p", { id: "kit-footer-msg", role: "status", className: "mt-2 h-4 text-[12px] text-paper", children: state === "error" ? msg : "" })
|
|
91
91
|
] });
|
|
92
92
|
}
|
|
93
|
+
function lowerBound(a, v) {
|
|
94
|
+
let lo = 0;
|
|
95
|
+
let hi = a.length;
|
|
96
|
+
while (lo < hi) {
|
|
97
|
+
const mid = lo + hi >> 1;
|
|
98
|
+
if (a[mid] < v) lo = mid + 1;
|
|
99
|
+
else hi = mid;
|
|
100
|
+
}
|
|
101
|
+
return lo;
|
|
102
|
+
}
|
|
93
103
|
function Wordmark({ text }) {
|
|
94
104
|
const box = useRef(null);
|
|
95
|
-
const
|
|
105
|
+
const cache = useRef(null);
|
|
106
|
+
const live = useRef([0, 0]);
|
|
107
|
+
const px = useRef(null);
|
|
108
|
+
const raf = useRef(0);
|
|
109
|
+
const measure = () => {
|
|
96
110
|
const el = box.current;
|
|
97
|
-
if (!el
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
111
|
+
if (!el) return null;
|
|
112
|
+
const left = el.getBoundingClientRect().left;
|
|
113
|
+
const els = [...el.querySelectorAll("span[data-l]")];
|
|
114
|
+
const c = [];
|
|
115
|
+
const w = [];
|
|
116
|
+
let reach = 0;
|
|
117
|
+
for (const s of els) {
|
|
104
118
|
const r = s.getBoundingClientRect();
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
119
|
+
c.push(r.left - left + r.width / 2);
|
|
120
|
+
w.push(r.width);
|
|
121
|
+
reach = Math.max(reach, r.width * 2.5);
|
|
122
|
+
}
|
|
123
|
+
return cache.current = { els, c, w, reach, left, still: window.matchMedia("(prefers-reduced-motion: reduce)").matches };
|
|
124
|
+
};
|
|
125
|
+
const flush = () => {
|
|
126
|
+
raf.current = 0;
|
|
127
|
+
const d = cache.current;
|
|
128
|
+
if (!d) return;
|
|
129
|
+
const x = px.current === null ? null : px.current - d.left;
|
|
130
|
+
const [a0, b0] = live.current;
|
|
131
|
+
let a = 0;
|
|
132
|
+
let b = 0;
|
|
133
|
+
if (x !== null && !d.still) {
|
|
134
|
+
a = lowerBound(d.c, x - d.reach);
|
|
135
|
+
b = lowerBound(d.c, x + d.reach);
|
|
108
136
|
}
|
|
137
|
+
for (let i = a0; i < b0; i++) {
|
|
138
|
+
if (i >= a && i < b) continue;
|
|
139
|
+
d.els[i].style.transform = "";
|
|
140
|
+
d.els[i].style.opacity = "";
|
|
141
|
+
}
|
|
142
|
+
for (let i = a; i < b; i++) {
|
|
143
|
+
const k = Math.max(0, 1 - Math.abs(x - d.c[i]) / (d.w[i] * 2.5));
|
|
144
|
+
d.els[i].style.transform = `translateY(${-k * 14}%)`;
|
|
145
|
+
d.els[i].style.opacity = String(0.22 + k * 0.78);
|
|
146
|
+
}
|
|
147
|
+
live.current = [a, b];
|
|
109
148
|
};
|
|
149
|
+
const move = (x) => {
|
|
150
|
+
if (!cache.current) measure();
|
|
151
|
+
px.current = x;
|
|
152
|
+
if (!raf.current) raf.current = requestAnimationFrame(flush);
|
|
153
|
+
};
|
|
154
|
+
useEffect(() => {
|
|
155
|
+
const el = box.current;
|
|
156
|
+
if (!el) return;
|
|
157
|
+
cache.current = null;
|
|
158
|
+
live.current = [0, 0];
|
|
159
|
+
const ro = new ResizeObserver(() => {
|
|
160
|
+
cache.current = null;
|
|
161
|
+
});
|
|
162
|
+
ro.observe(el);
|
|
163
|
+
return () => {
|
|
164
|
+
ro.disconnect();
|
|
165
|
+
cancelAnimationFrame(raf.current);
|
|
166
|
+
raf.current = 0;
|
|
167
|
+
};
|
|
168
|
+
}, [text]);
|
|
110
169
|
return /* @__PURE__ */ jsx(
|
|
111
170
|
"div",
|
|
112
171
|
{
|
|
113
172
|
ref: box,
|
|
114
173
|
"aria-hidden": true,
|
|
174
|
+
onPointerEnter: (e) => {
|
|
175
|
+
measure();
|
|
176
|
+
move(e.clientX);
|
|
177
|
+
},
|
|
115
178
|
onPointerMove: (e) => move(e.clientX),
|
|
116
179
|
onPointerLeave: () => move(null),
|
|
117
180
|
className: "-mb-[0.18em] mt-6 flex select-none justify-center overflow-hidden pt-[0.1em] text-[clamp(3rem,19.5cqw,13rem)] font-semibold leading-[0.9] tracking-[-0.06em]",
|
|
@@ -110,7 +110,7 @@ function StepSlider({ steps = STEPS, value, defaultValue = 3, onValueChange, lab
|
|
|
110
110
|
/* @__PURE__ */ jsx("div", { className: "relative h-2 w-full overflow-hidden rounded-full bg-[color-mix(in_srgb,var(--ink)_9%,transparent)]", children: /* @__PURE__ */ jsx("div", { className: "absolute inset-y-0", style: { left: HALF, right: HALF, transform: `translateX(${k * 100}%)`, transition: motion }, children: /* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 right-full w-[4000px] bg-brand" }) }) }),
|
|
111
111
|
/* @__PURE__ */ jsx("div", { "aria-hidden": true, className: "pointer-events-none absolute inset-y-0", style: { left: HALF, right: HALF }, children: steps.map((s, i) => /* @__PURE__ */ jsxs("span", { className: "absolute top-1/2 h-1 w-1 -translate-x-1/2 -translate-y-1/2 rounded-full", style: { left: `${i / last * 100}%` }, children: [
|
|
112
112
|
/* @__PURE__ */ jsx("span", { className: "absolute inset-0 rounded-full bg-[color-mix(in_srgb,var(--ink)_28%,transparent)]" }),
|
|
113
|
-
/* @__PURE__ */ jsx("span", { className: "absolute inset-0 rounded-full bg-
|
|
113
|
+
/* @__PURE__ */ jsx("span", { className: "absolute inset-0 rounded-full bg-on-brand transition-opacity duration-200", style: { opacity: i <= p ? 0.9 : 0 } })
|
|
114
114
|
] }, s.label)) }),
|
|
115
115
|
/* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute inset-y-0", style: { left: HALF, right: HALF, transform: `translateX(${k * 100}%)`, transition: motion }, children: /* @__PURE__ */ jsxs(
|
|
116
116
|
"div",
|
|
@@ -9,13 +9,21 @@ function GravityPills() {
|
|
|
9
9
|
useEffect(() => {
|
|
10
10
|
const cv = ref.current;
|
|
11
11
|
const css = getComputedStyle(cv);
|
|
12
|
-
const SIG = css.getPropertyValue("--color-signal").trim() ||
|
|
13
|
-
const ON = css.getPropertyValue("--color-on-signal").trim() || "
|
|
12
|
+
const SIG = css.getPropertyValue("--color-signal").trim() || css.color;
|
|
13
|
+
const ON = css.getPropertyValue("--color-on-signal").trim() || css.getPropertyValue("--color-paper").trim() || "transparent";
|
|
14
|
+
const INK = css.getPropertyValue("--color-ink").trim() || css.color;
|
|
15
|
+
const DISC = css.getPropertyValue("--color-paper-2").trim() || "transparent";
|
|
16
|
+
const LINE = css.getPropertyValue("--color-line").trim() || css.color;
|
|
14
17
|
const ctx = cv.getContext("2d");
|
|
15
18
|
let w = 0;
|
|
16
19
|
let h = 0;
|
|
17
20
|
let dpr = 1;
|
|
18
21
|
let raf = 0;
|
|
22
|
+
let seen = true;
|
|
23
|
+
let frame = 0;
|
|
24
|
+
let snap = [];
|
|
25
|
+
let asleep = false;
|
|
26
|
+
const still = matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
19
27
|
let bodies = [];
|
|
20
28
|
let grab = null;
|
|
21
29
|
const reset = () => {
|
|
@@ -37,6 +45,8 @@ function GravityPills() {
|
|
|
37
45
|
cv.width = Math.round(w * dpr);
|
|
38
46
|
cv.height = Math.round(h * dpr);
|
|
39
47
|
if (!bodies.length) reset();
|
|
48
|
+
paint();
|
|
49
|
+
kick();
|
|
40
50
|
};
|
|
41
51
|
const step = () => {
|
|
42
52
|
for (const b of bodies) {
|
|
@@ -99,8 +109,15 @@ function GravityPills() {
|
|
|
99
109
|
}
|
|
100
110
|
}
|
|
101
111
|
};
|
|
102
|
-
const
|
|
103
|
-
|
|
112
|
+
const rested = () => {
|
|
113
|
+
if (++frame % 30) return asleep;
|
|
114
|
+
let moved = snap.length === bodies.length * 2 ? 0 : Infinity;
|
|
115
|
+
for (let i = 0; i < bodies.length && moved < 0.5; i++) moved = Math.max(moved, Math.abs(bodies[i].x - snap[2 * i]), Math.abs(bodies[i].y - snap[2 * i + 1]));
|
|
116
|
+
snap = bodies.flatMap((b) => [b.x, b.y]);
|
|
117
|
+
asleep = moved < 0.5;
|
|
118
|
+
return asleep;
|
|
119
|
+
};
|
|
120
|
+
const paint = () => {
|
|
104
121
|
ctx.setTransform(dpr, 0, 0, dpr, 0, 0);
|
|
105
122
|
ctx.clearRect(0, 0, w, h);
|
|
106
123
|
ctx.textAlign = "center";
|
|
@@ -108,26 +125,50 @@ function GravityPills() {
|
|
|
108
125
|
for (const b of bodies) {
|
|
109
126
|
ctx.beginPath();
|
|
110
127
|
ctx.arc(b.x, b.y, b.r, 0, Math.PI * 2);
|
|
111
|
-
ctx.fillStyle = b.hot ? SIG : grab?.b === b ?
|
|
128
|
+
ctx.fillStyle = b.hot ? SIG : grab?.b === b ? INK : DISC;
|
|
112
129
|
ctx.fill();
|
|
113
|
-
ctx.strokeStyle = b.hot ? SIG :
|
|
130
|
+
ctx.strokeStyle = b.hot ? SIG : LINE;
|
|
114
131
|
ctx.stroke();
|
|
115
|
-
ctx.fillStyle = b.hot || grab?.b === b ? ON :
|
|
132
|
+
ctx.fillStyle = b.hot || grab?.b === b ? ON : INK;
|
|
116
133
|
ctx.font = `500 ${Math.round(b.r * 0.42)}px ui-sans-serif, system-ui`;
|
|
117
134
|
ctx.fillText(b.word, b.x, b.y + 1);
|
|
118
135
|
}
|
|
119
|
-
raf = requestAnimationFrame(draw);
|
|
120
136
|
};
|
|
121
|
-
const
|
|
122
|
-
|
|
123
|
-
|
|
137
|
+
const settle = () => {
|
|
138
|
+
for (let n = 0; n < 1200; n++) {
|
|
139
|
+
step();
|
|
140
|
+
if (rested()) break;
|
|
141
|
+
}
|
|
142
|
+
asleep = true;
|
|
143
|
+
};
|
|
144
|
+
const draw = () => {
|
|
145
|
+
raf = 0;
|
|
146
|
+
if (still && !grab) {
|
|
147
|
+
settle();
|
|
148
|
+
paint();
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
step();
|
|
152
|
+
paint();
|
|
153
|
+
if (grab || !rested()) wake();
|
|
154
|
+
};
|
|
155
|
+
const wake = () => {
|
|
156
|
+
if (!raf && seen && !document.hidden) raf = requestAnimationFrame(draw);
|
|
157
|
+
};
|
|
158
|
+
const kick = () => {
|
|
159
|
+
frame = 0;
|
|
160
|
+
snap = [];
|
|
161
|
+
asleep = false;
|
|
162
|
+
wake();
|
|
124
163
|
};
|
|
164
|
+
const pos = (e) => ({ x: e.offsetX, y: e.offsetY });
|
|
125
165
|
const down = (e) => {
|
|
126
166
|
const p = pos(e);
|
|
127
167
|
const b = [...bodies].reverse().find((b2) => Math.hypot(b2.x - p.x, b2.y - p.y) < b2.r);
|
|
128
168
|
if (!b) return;
|
|
129
169
|
cv.setPointerCapture(e.pointerId);
|
|
130
170
|
grab = { b, ox: b.x - p.x, oy: b.y - p.y, px: p.x, py: p.y };
|
|
171
|
+
kick();
|
|
131
172
|
};
|
|
132
173
|
const move = (e) => {
|
|
133
174
|
if (!grab) return;
|
|
@@ -141,12 +182,26 @@ function GravityPills() {
|
|
|
141
182
|
};
|
|
142
183
|
const up = () => {
|
|
143
184
|
grab = null;
|
|
185
|
+
kick();
|
|
186
|
+
};
|
|
187
|
+
const dbl = () => {
|
|
188
|
+
reset();
|
|
189
|
+
kick();
|
|
190
|
+
};
|
|
191
|
+
const sync = () => {
|
|
192
|
+
cancelAnimationFrame(raf);
|
|
193
|
+
raf = 0;
|
|
194
|
+
wake();
|
|
144
195
|
};
|
|
145
|
-
const dbl = () => reset();
|
|
146
196
|
size();
|
|
147
197
|
const ro = new ResizeObserver(size);
|
|
148
198
|
ro.observe(cv);
|
|
149
|
-
|
|
199
|
+
const io = new IntersectionObserver(([e]) => {
|
|
200
|
+
seen = e.isIntersecting;
|
|
201
|
+
sync();
|
|
202
|
+
});
|
|
203
|
+
io.observe(cv);
|
|
204
|
+
document.addEventListener("visibilitychange", sync);
|
|
150
205
|
cv.addEventListener("pointerdown", down);
|
|
151
206
|
cv.addEventListener("pointermove", move);
|
|
152
207
|
cv.addEventListener("pointerup", up);
|
|
@@ -155,6 +210,8 @@ function GravityPills() {
|
|
|
155
210
|
return () => {
|
|
156
211
|
cancelAnimationFrame(raf);
|
|
157
212
|
ro.disconnect();
|
|
213
|
+
io.disconnect();
|
|
214
|
+
document.removeEventListener("visibilitychange", sync);
|
|
158
215
|
cv.removeEventListener("pointerdown", down);
|
|
159
216
|
cv.removeEventListener("pointermove", move);
|
|
160
217
|
cv.removeEventListener("pointerup", up);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Button
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5ZQ6PMJT.js";
|
|
5
5
|
|
|
6
6
|
// components/kit/settings-panel.tsx
|
|
7
7
|
import { forwardRef, useEffect, useId, useImperativeHandle, useRef, useState } from "react";
|
|
@@ -32,6 +32,7 @@ function Toggle({ checked, onChange, label, hint }) {
|
|
|
32
32
|
"span",
|
|
33
33
|
{
|
|
34
34
|
className: cx(
|
|
35
|
+
// perf-ok: the thumb stretches a few px on press, a tiny element that only moves on interaction.
|
|
35
36
|
"absolute left-0.5 top-0.5 h-5 w-5 rounded-full bg-white shadow-[0_1px_3px_rgb(0_0_0/0.25)] transition-[transform,width] duration-300 group-active:w-6",
|
|
36
37
|
EASE,
|
|
37
38
|
checked ? "translate-x-4 group-active:translate-x-3" : "translate-x-0"
|
|
@@ -222,7 +223,7 @@ var SettingsPanel = forwardRef(function SettingsPanel2({ initial, onSave, langua
|
|
|
222
223
|
className: "pointer-events-auto flex items-center gap-2 rounded-[10px] bg-ink py-2 pl-4 pr-2 text-paper shadow-[0_12px_30px_-10px_rgb(0_0_0/0.5)]",
|
|
223
224
|
children: [
|
|
224
225
|
/* @__PURE__ */ jsx("span", { className: "flex min-w-0 flex-1 items-center gap-2 text-[13.5px]", "aria-live": "polite", children: status === "saved" ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
225
|
-
/* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "h-4 w-4 shrink-0 text-
|
|
226
|
+
/* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "h-4 w-4 shrink-0 text-paper", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "M3.5 8.5l3 3 6-7" }) }),
|
|
226
227
|
"Saved"
|
|
227
228
|
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
228
229
|
/* @__PURE__ */ jsx("span", { className: "h-1.5 w-1.5 shrink-0 rounded-full bg-brand" }),
|
|
@@ -90,7 +90,7 @@ function Dot({ on }) {
|
|
|
90
90
|
"span",
|
|
91
91
|
{
|
|
92
92
|
className: cx(
|
|
93
|
-
"h-1.5 w-1.5 rounded-full bg-
|
|
93
|
+
"h-1.5 w-1.5 rounded-full bg-on-brand transition-transform duration-300 ease-[cubic-bezier(.34,1.8,.64,1)] motion-reduce:transition-none",
|
|
94
94
|
on ? "scale-100" : "scale-0"
|
|
95
95
|
// perf-ok: 6px radio dot, not a surface
|
|
96
96
|
)
|
|
@@ -74,7 +74,7 @@ function Tabs({ tabs, value, defaultValue, onChange, variant = "underline", labe
|
|
|
74
74
|
),
|
|
75
75
|
children: [
|
|
76
76
|
t.label,
|
|
77
|
-
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-[active]/tab:bg-brand group-data-[active]/tab:text-
|
|
77
|
+
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-[active]/tab:bg-brand group-data-[active]/tab:text-on-brand", children: t.count })
|
|
78
78
|
]
|
|
79
79
|
},
|
|
80
80
|
t.value
|
|
@@ -82,7 +82,7 @@ function Tabs({ tabs, value, defaultValue, onChange, variant = "underline", labe
|
|
|
82
82
|
]
|
|
83
83
|
}
|
|
84
84
|
),
|
|
85
|
-
/* @__PURE__ */ jsx("style", { href: "asta-base-tabs", precedence: "asta", children: `@keyframes kit-tab-in { from { opacity: 0; transform: translateY(6px)
|
|
85
|
+
/* @__PURE__ */ jsx("style", { href: "asta-base-tabs", precedence: "asta", children: `@keyframes kit-tab-in { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }` }),
|
|
86
86
|
tabs.map((t) => /* @__PURE__ */ jsx(T.Panel, { 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))
|
|
87
87
|
]
|
|
88
88
|
}
|
|
@@ -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/NotificationStack.tsx
|
|
4
8
|
import { useEffect, useRef, useState } from "react";
|
|
@@ -26,22 +30,19 @@ function NotificationStack() {
|
|
|
26
30
|
]);
|
|
27
31
|
const [hover, setHover] = useState(false);
|
|
28
32
|
const [open, setOpen] = useState(false);
|
|
29
|
-
const [
|
|
33
|
+
const [held, takeOverDemo] = useTakeOver(8e3);
|
|
34
|
+
const root = useRef(null);
|
|
35
|
+
const visible = useInView(root);
|
|
36
|
+
const paused = held || !visible;
|
|
30
37
|
const [drag, setDrag] = useState(null);
|
|
31
38
|
const seq = useRef(3);
|
|
32
39
|
const list = useRef([]);
|
|
33
40
|
const start = useRef(null);
|
|
34
|
-
const idle = useRef(null);
|
|
35
41
|
const timers = useRef(/* @__PURE__ */ new Set());
|
|
36
42
|
const still = () => window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
37
|
-
const takeOver =
|
|
38
|
-
setPaused(true);
|
|
39
|
-
if (idle.current) clearTimeout(idle.current);
|
|
40
|
-
idle.current = setTimeout(() => setPaused(false), 8e3);
|
|
41
|
-
};
|
|
43
|
+
const takeOver = takeOverDemo;
|
|
42
44
|
useEffect(
|
|
43
45
|
() => () => {
|
|
44
|
-
if (idle.current) clearTimeout(idle.current);
|
|
45
46
|
timers.current.forEach(clearTimeout);
|
|
46
47
|
},
|
|
47
48
|
[]
|
|
@@ -103,7 +104,7 @@ function NotificationStack() {
|
|
|
103
104
|
if (Math.abs(dx) > SWIPE) dismiss(s.id, dx > 0 ? 1 : -1);
|
|
104
105
|
else if (!s.moved && e.pointerType !== "mouse") setOpen((o) => !o);
|
|
105
106
|
};
|
|
106
|
-
return /* @__PURE__ */ jsxs("div", { className: "flex h-full w-full items-center justify-center px-5 pb-5 pt-11", style: { containerType: "size" }, children: [
|
|
107
|
+
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: [
|
|
107
108
|
/* @__PURE__ */ jsx("style", { href: "asta-notificationstack", precedence: "asta", children: `
|
|
108
109
|
@keyframes lab-ns-in { from { transform: translateY(-10px) scale(.97); opacity: 0 } to { transform: none; opacity: 1 } }
|
|
109
110
|
@keyframes lab-ns-pop { 0% { transform: scale(.6) } 60% { transform: scale(1.12) } 100% { transform: scale(1) } }
|