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
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-EAUUUVUR.js";
|
|
5
5
|
|
|
6
6
|
// components/kit/api-keys.tsx
|
|
7
|
-
import { useEffect, useId, useRef, useState } from "react";
|
|
7
|
+
import { useEffect, useId, useRef, useState, useSyncExternalStore } from "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
var cx = (...c) => c.filter(Boolean).join(" ");
|
|
10
10
|
var CURVE = "cubic-bezier(.16,1,.3,1)";
|
|
@@ -47,6 +47,10 @@ var Icon = ({ d, className = "h-4 w-4" }) => /* @__PURE__ */ jsx("svg", { viewBo
|
|
|
47
47
|
var KEY = "M10.5 2.5a3 3 0 1 1-2.6 4.5L3 11.9V13.5h1.6v-1.2h1.2v-1.2H7l1.1-1.1A3 3 0 0 1 10.5 2.5ZM11 5h.01";
|
|
48
48
|
var PLUS = "M8 3.5v9M3.5 8h9";
|
|
49
49
|
var WARN = "M8 2.5 14 13H2zM8 6.5v3M8 11.2h.01";
|
|
50
|
+
var firstSeen = null;
|
|
51
|
+
var noop = () => () => {
|
|
52
|
+
};
|
|
53
|
+
var clientNow = () => firstSeen ?? (firstSeen = Date.now());
|
|
50
54
|
function Status({ k, now }) {
|
|
51
55
|
const left = k.expires ? k.expires.getTime() - now.getTime() : Infinity;
|
|
52
56
|
return /* @__PURE__ */ jsxs("span", { className: cx("inline-flex items-center gap-1.5 whitespace-nowrap", left <= 0 ? "text-mute" : "text-ink"), children: [
|
|
@@ -101,7 +105,7 @@ function ApiKeys({
|
|
|
101
105
|
className
|
|
102
106
|
}) {
|
|
103
107
|
const [keys, setKeys] = useState(defaultKeys);
|
|
104
|
-
const
|
|
108
|
+
const seen = useSyncExternalStore(noop, clientNow, () => null);
|
|
105
109
|
const [open, setOpen] = useState(false);
|
|
106
110
|
const [busy, setBusy] = useState(false);
|
|
107
111
|
const [formError, setFormError] = useState({});
|
|
@@ -115,7 +119,8 @@ function ApiKeys({
|
|
|
115
119
|
const root = useRef(null);
|
|
116
120
|
const timers = useRef(/* @__PURE__ */ new Map());
|
|
117
121
|
const id = useId();
|
|
118
|
-
const
|
|
122
|
+
const ready = !!nowProp || seen !== null;
|
|
123
|
+
const clock = nowProp ?? new Date(seen ?? 0);
|
|
119
124
|
useEffect(() => {
|
|
120
125
|
const all = timers.current;
|
|
121
126
|
return () => all.forEach(clearTimeout);
|
|
@@ -267,7 +272,7 @@ function ApiKeys({
|
|
|
267
272
|
className: "peer col-start-1 row-start-1 h-[18px] w-[18px] cursor-pointer appearance-none rounded-[6px] bg-paper shadow-[inset_0_0_0_1.5px_color-mix(in_srgb,var(--ink)_22%,transparent)] outline-none transition-[background-color,box-shadow] duration-200 checked:bg-brand checked:shadow-none focus-visible:ring-2 focus-visible:ring-brand/50 focus-visible:ring-offset-2 focus-visible:ring-offset-paper-2"
|
|
268
273
|
}
|
|
269
274
|
),
|
|
270
|
-
/* @__PURE__ */ jsx(Icon, { d: "m4 8.5 2.5 2.5 5.5-6", className: "pointer-events-none col-start-1 row-start-1 h-3 w-3 scale-50 text-
|
|
275
|
+
/* @__PURE__ */ jsx(Icon, { d: "m4 8.5 2.5 2.5 5.5-6", className: "pointer-events-none col-start-1 row-start-1 h-3 w-3 scale-50 text-on-brand opacity-0 transition-[opacity,transform] duration-300 peer-checked:scale-100 peer-checked:opacity-100" })
|
|
271
276
|
] }),
|
|
272
277
|
/* @__PURE__ */ jsxs("span", { className: "min-w-0", children: [
|
|
273
278
|
/* @__PURE__ */ jsx("span", { className: "block text-[13.5px] leading-[18px] text-ink", children: s.label }),
|
|
@@ -315,14 +320,14 @@ function ApiKeys({
|
|
|
315
320
|
/* @__PURE__ */ jsx(Icon, { d: PLUS, className: "h-3.5 w-3.5" }),
|
|
316
321
|
"Create your first key"
|
|
317
322
|
] })
|
|
318
|
-
] }) : /* @__PURE__ */ jsx("ul", { "aria-label": title, className: "flex flex-col gap-2 @2xl:gap-0.5", children: keys.map((k) => {
|
|
323
|
+
] }) : /* @__PURE__ */ jsx("ul", { "aria-label": title, className: cx("flex flex-col gap-2 @2xl:gap-0.5", !ready && "invisible"), children: keys.map((k) => {
|
|
319
324
|
const expired = !!k.expires && k.expires.getTime() <= clock.getTime();
|
|
320
325
|
const warn = reveal?.warned && !reveal.copied;
|
|
321
326
|
if (reveal?.id === k.id)
|
|
322
327
|
return /* @__PURE__ */ jsxs("li", { className: "rounded-[12px] bg-[color-mix(in_srgb,var(--brand)_6%,var(--paper))] p-4 shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--brand)_35%,transparent)] sm:p-5", style: { animation: `kit-ak-in .4s ${CURVE}` }, children: [
|
|
323
328
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
324
329
|
/* @__PURE__ */ jsx("p", { className: "min-w-0 break-words text-[14px] font-medium", children: k.name }),
|
|
325
|
-
/* @__PURE__ */ jsx("span", { className: "rounded-[5px] bg-brand px-1.5 text-[11px] font-medium leading-5 text-
|
|
330
|
+
/* @__PURE__ */ jsx("span", { className: "rounded-[5px] bg-brand px-1.5 text-[11px] font-medium leading-5 text-on-brand", children: "New" })
|
|
326
331
|
] }),
|
|
327
332
|
/* @__PURE__ */ jsx("p", { className: "mt-1 text-[12.5px] text-ink-2", children: "Copy this key and store it somewhere safe, like a secrets manager." }),
|
|
328
333
|
/* @__PURE__ */ jsxs("div", { className: "mt-3 flex flex-col gap-2 @min-[480px]:flex-row", children: [
|
|
@@ -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/AddToCart.tsx
|
|
4
8
|
import { useEffect, useRef, useState } from "react";
|
|
@@ -19,11 +23,12 @@ function AddToCart({
|
|
|
19
23
|
} = {}) {
|
|
20
24
|
const [count, setCount] = useState(0);
|
|
21
25
|
const [pressed, setPressed] = useState(false);
|
|
22
|
-
const [
|
|
26
|
+
const [held, takeOverDemo] = useTakeOver(8e3);
|
|
23
27
|
const root = useRef(null);
|
|
28
|
+
const visible = useInView(root);
|
|
29
|
+
const paused = held || !visible;
|
|
24
30
|
const from = useRef(null);
|
|
25
31
|
const cart = useRef(null);
|
|
26
|
-
const idle = useRef(null);
|
|
27
32
|
const badge = useRef(null);
|
|
28
33
|
const bump = () => {
|
|
29
34
|
cart.current?.animate(
|
|
@@ -90,29 +95,29 @@ function AddToCart({
|
|
|
90
95
|
};
|
|
91
96
|
};
|
|
92
97
|
const add = () => fly(() => setCount((c) => c + 1));
|
|
93
|
-
const takeOver =
|
|
94
|
-
setPaused(true);
|
|
95
|
-
if (idle.current) clearTimeout(idle.current);
|
|
96
|
-
idle.current = setTimeout(() => setPaused(false), 8e3);
|
|
97
|
-
};
|
|
98
|
-
useEffect(() => () => void (idle.current && clearTimeout(idle.current)), []);
|
|
98
|
+
const takeOver = takeOverDemo;
|
|
99
99
|
useEffect(() => {
|
|
100
100
|
if (paused) return;
|
|
101
|
-
const t =
|
|
101
|
+
const t = /* @__PURE__ */ new Set();
|
|
102
102
|
let alive = true;
|
|
103
|
+
const later = (ms, f) => {
|
|
104
|
+
const id = setTimeout(() => {
|
|
105
|
+
t.delete(id);
|
|
106
|
+
if (alive) f();
|
|
107
|
+
}, ms);
|
|
108
|
+
t.add(id);
|
|
109
|
+
};
|
|
103
110
|
const run = () => {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
);
|
|
111
|
-
|
|
112
|
-
t.push(setTimeout(() => setCount(0), 5600));
|
|
113
|
-
t.push(setTimeout(() => alive && run(), 6400));
|
|
111
|
+
later(1100, () => setPressed(true));
|
|
112
|
+
later(1280, () => {
|
|
113
|
+
setPressed(false);
|
|
114
|
+
add();
|
|
115
|
+
});
|
|
116
|
+
later(3200, add);
|
|
117
|
+
later(5600, () => setCount(0));
|
|
118
|
+
later(6400, run);
|
|
114
119
|
};
|
|
115
|
-
|
|
120
|
+
later(0, () => setCount(0));
|
|
116
121
|
run();
|
|
117
122
|
return () => {
|
|
118
123
|
alive = false;
|
|
@@ -148,7 +153,7 @@ function AddToCart({
|
|
|
148
153
|
}
|
|
149
154
|
),
|
|
150
155
|
/* @__PURE__ */ jsx("div", { className: "flex h-full w-full items-center justify-center px-5 pt-10", children: /* @__PURE__ */ jsxs("div", { className: "flex w-full max-w-[460px] items-center gap-[5cqw]", children: [
|
|
151
|
-
/* @__PURE__ */ jsxs("div", { className: `relative shrink-0 overflow-hidden rounded-[12px] bg-
|
|
156
|
+
/* @__PURE__ */ jsxs("div", { className: `relative shrink-0 overflow-hidden rounded-[12px] bg-paper-2 ${RING}`, style: { width: "min(38cqw, 62cqh)", aspectRatio: "1" }, children: [
|
|
152
157
|
/* @__PURE__ */ jsx("img", { src: image, alt: imageAlt, width: 480, height: 480, loading: "lazy", decoding: "async", draggable: false, className: "absolute inset-0 h-full w-full object-cover grayscale" }),
|
|
153
158
|
/* @__PURE__ */ jsx("span", { className: "absolute bottom-2.5 left-3 font-mono text-[10px] uppercase tracking-wider text-black/45", children: "N\xBA 04" })
|
|
154
159
|
] }),
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
useInView
|
|
4
|
+
} from "./chunk-FS2PZKJY.js";
|
|
2
5
|
|
|
3
6
|
// components/lab/blocks/PaymentReceived.tsx
|
|
4
7
|
import { useEffect, useRef, useState } from "react";
|
|
@@ -54,12 +57,21 @@ function PaymentReceived() {
|
|
|
54
57
|
const [instant, setInstant] = useState(false);
|
|
55
58
|
const [paused, setPaused] = useState(false);
|
|
56
59
|
const k = useRef(0);
|
|
60
|
+
const root = useRef(null);
|
|
61
|
+
const visible = useInView(root);
|
|
62
|
+
const resting = paused || !visible;
|
|
57
63
|
useEffect(() => {
|
|
58
|
-
if (
|
|
64
|
+
if (resting) return;
|
|
59
65
|
const still = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
60
|
-
const t =
|
|
66
|
+
const t = /* @__PURE__ */ new Set();
|
|
61
67
|
let alive = true;
|
|
62
|
-
const later = (ms, f) =>
|
|
68
|
+
const later = (ms, f) => {
|
|
69
|
+
const id = setTimeout(() => {
|
|
70
|
+
t.delete(id);
|
|
71
|
+
if (alive) f();
|
|
72
|
+
}, ms);
|
|
73
|
+
t.add(id);
|
|
74
|
+
};
|
|
63
75
|
const cycle = () => {
|
|
64
76
|
if (k.current >= INCOMING.length) {
|
|
65
77
|
setFade(true);
|
|
@@ -92,7 +104,7 @@ function PaymentReceived() {
|
|
|
92
104
|
setHot(false);
|
|
93
105
|
setFade(false);
|
|
94
106
|
};
|
|
95
|
-
}, [
|
|
107
|
+
}, [resting]);
|
|
96
108
|
const got = INCOMING.slice(0, applied);
|
|
97
109
|
const sum = got.reduce((a, b) => a + b.amount, 0);
|
|
98
110
|
const toasts = INCOMING.slice(Math.max(0, shown - 3), shown).reverse();
|
|
@@ -112,6 +124,7 @@ function PaymentReceived() {
|
|
|
112
124
|
return /* @__PURE__ */ jsxs(
|
|
113
125
|
"div",
|
|
114
126
|
{
|
|
127
|
+
ref: root,
|
|
115
128
|
role: "group",
|
|
116
129
|
tabIndex: 0,
|
|
117
130
|
"aria-label": `Merchant balance ${money(BASE + sum)}. ${paused ? "Paused" : "Live"}. Press space to ${paused ? "resume" : "pause"}`,
|
|
@@ -9,7 +9,7 @@ var KEYFRAMES = `@keyframes asta-ws-in { from { opacity: 0; transform: translate
|
|
|
9
9
|
function Logo({ ws, size }) {
|
|
10
10
|
const box = size === "sm" ? "h-6 w-6 rounded-[6px] text-[11.5px]" : "h-8 w-8 rounded-[8px] text-[13px]";
|
|
11
11
|
if (ws.logo) return /* @__PURE__ */ jsx("img", { src: ws.logo, alt: "", width: 32, height: 32, loading: "lazy", className: cx(box, "shrink-0 object-cover") });
|
|
12
|
-
return /* @__PURE__ */ jsx("span", { className: cx(box, "grid shrink-0 place-items-center bg-brand font-semibold text-
|
|
12
|
+
return /* @__PURE__ */ jsx("span", { className: cx(box, "grid shrink-0 place-items-center bg-brand font-semibold text-on-brand"), children: ws.name.slice(0, 1).toUpperCase() });
|
|
13
13
|
}
|
|
14
14
|
var Check = () => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: "h-4 w-4 text-brand", fill: "none", stroke: "currentColor", strokeWidth: 2.2, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "m5 12.5 4.5 4.5L19 7.5" }) });
|
|
15
15
|
function WorkspaceSwitcher({ workspaces, value, defaultValue, onChange, onCreate, createLabel = "New workspace", account, footer, className }) {
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
useInView
|
|
4
|
+
} from "./chunk-FS2PZKJY.js";
|
|
5
|
+
|
|
6
|
+
// components/lab/blocks/SplitFlap.tsx
|
|
7
|
+
import { useEffect, useLayoutEffect, useRef, useState } from "react";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
var CHARS = " ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-";
|
|
10
|
+
var WORDS = ["ASTABYTE", "LAB-2026", "SHIPPING", "JAKARTA ", "ON TIME "];
|
|
11
|
+
var EASE = "cubic-bezier(.16,1,.3,1)";
|
|
12
|
+
var motionQuery = null;
|
|
13
|
+
var reducedMotion = () => {
|
|
14
|
+
if (typeof matchMedia === "undefined") return false;
|
|
15
|
+
motionQuery ?? (motionQuery = matchMedia("(prefers-reduced-motion: reduce)"));
|
|
16
|
+
return motionQuery.matches;
|
|
17
|
+
};
|
|
18
|
+
function Flap({ c }) {
|
|
19
|
+
const ref = useRef(null);
|
|
20
|
+
useLayoutEffect(() => {
|
|
21
|
+
if (reducedMotion()) return;
|
|
22
|
+
ref.current?.animate([{ transform: "rotateX(-80deg)", opacity: 0.4 }, { transform: "rotateX(0)", opacity: 1 }], { duration: 120, easing: EASE });
|
|
23
|
+
}, [c]);
|
|
24
|
+
return /* @__PURE__ */ jsxs("span", { className: "relative grid h-12 w-8 place-items-center overflow-hidden bg-paper-2 font-mono text-[22px] font-medium text-ink sm:h-14 sm:w-9", children: [
|
|
25
|
+
/* @__PURE__ */ jsx("span", { ref, className: "block", children: c === " " ? " " : c }),
|
|
26
|
+
/* @__PURE__ */ jsx("span", { className: "absolute inset-x-0 top-1/2 h-px bg-paper" })
|
|
27
|
+
] });
|
|
28
|
+
}
|
|
29
|
+
function SplitFlap() {
|
|
30
|
+
const [cells, setCells] = useState(WORDS[0].split(""));
|
|
31
|
+
const root = useRef(null);
|
|
32
|
+
const visible = useInView(root);
|
|
33
|
+
const word = useRef(0);
|
|
34
|
+
const timer = useRef(void 0);
|
|
35
|
+
const go = () => {
|
|
36
|
+
word.current = (word.current + 1) % WORDS.length;
|
|
37
|
+
const target = WORDS[word.current].split("");
|
|
38
|
+
clearInterval(timer.current);
|
|
39
|
+
if (reducedMotion()) {
|
|
40
|
+
setCells(target);
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
timer.current = setInterval(() => {
|
|
44
|
+
setCells((cur) => {
|
|
45
|
+
let moving = false;
|
|
46
|
+
const next = cur.map((c, i) => {
|
|
47
|
+
if (c === target[i]) return c;
|
|
48
|
+
moving = true;
|
|
49
|
+
return CHARS[(CHARS.indexOf(c) + 1) % CHARS.length];
|
|
50
|
+
});
|
|
51
|
+
if (!moving) {
|
|
52
|
+
clearInterval(timer.current);
|
|
53
|
+
return cur;
|
|
54
|
+
}
|
|
55
|
+
return next;
|
|
56
|
+
});
|
|
57
|
+
}, 45);
|
|
58
|
+
};
|
|
59
|
+
useEffect(() => {
|
|
60
|
+
if (!visible) return;
|
|
61
|
+
const auto = setInterval(go, 4200);
|
|
62
|
+
return () => {
|
|
63
|
+
clearInterval(auto);
|
|
64
|
+
clearInterval(timer.current);
|
|
65
|
+
};
|
|
66
|
+
}, [visible]);
|
|
67
|
+
return /* @__PURE__ */ jsxs("div", { ref: root, className: "flex h-full w-full flex-col items-center justify-center gap-5 p-4", children: [
|
|
68
|
+
/* @__PURE__ */ jsx("button", { type: "button", onClick: go, "aria-label": "Next word", className: "flex gap-[3px] [perspective:400px]", children: cells.map((c, i) => /* @__PURE__ */ jsx(Flap, { c }, i)) }),
|
|
69
|
+
/* @__PURE__ */ jsx("span", { className: "font-mono text-[11px] uppercase tracking-[0.08em] text-mute", children: "Click to flip" })
|
|
70
|
+
] });
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export {
|
|
74
|
+
SplitFlap
|
|
75
|
+
};
|
|
@@ -181,7 +181,7 @@ function VerifyOtp({
|
|
|
181
181
|
),
|
|
182
182
|
done && /* @__PURE__ */ jsxs("span", { className: "absolute inset-0 grid place-items-center", "aria-hidden": true, children: [
|
|
183
183
|
/* @__PURE__ */ jsx("span", { className: "absolute h-14 w-14 rounded-full bg-brand", style: { animation: `aui042-ring 1s ${EASE} .35s both` } }),
|
|
184
|
-
/* @__PURE__ */ jsx("span", { className: "relative grid h-14 w-14 place-items-center rounded-full bg-brand text-
|
|
184
|
+
/* @__PURE__ */ jsx("span", { className: "relative grid h-14 w-14 place-items-center rounded-full bg-brand text-on-brand", style: { animation: `aui042-badge .55s ${EASE} .2s both` }, children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: "h-6 w-6", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsx("path", { d: "M5 12.5l4.5 4.5L19 7.5" }) }) })
|
|
185
185
|
] }),
|
|
186
186
|
/* @__PURE__ */ jsx(
|
|
187
187
|
"input",
|
|
@@ -84,14 +84,23 @@ function Popover({ trigger, children, open, defaultOpen = false, onOpenChange, s
|
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
86
|
place();
|
|
87
|
-
|
|
87
|
+
let frame = 0;
|
|
88
|
+
const schedule = () => {
|
|
89
|
+
if (!frame)
|
|
90
|
+
frame = requestAnimationFrame(() => {
|
|
91
|
+
frame = 0;
|
|
92
|
+
place();
|
|
93
|
+
});
|
|
94
|
+
};
|
|
95
|
+
const ro = new ResizeObserver(schedule);
|
|
88
96
|
ro.observe(panel.current);
|
|
89
|
-
window.addEventListener("resize",
|
|
90
|
-
window.addEventListener("scroll",
|
|
97
|
+
window.addEventListener("resize", schedule);
|
|
98
|
+
window.addEventListener("scroll", schedule, { capture: true, passive: true });
|
|
91
99
|
return () => {
|
|
100
|
+
cancelAnimationFrame(frame);
|
|
92
101
|
ro.disconnect();
|
|
93
|
-
window.removeEventListener("resize",
|
|
94
|
-
window.removeEventListener("scroll",
|
|
102
|
+
window.removeEventListener("resize", schedule);
|
|
103
|
+
window.removeEventListener("scroll", schedule, true);
|
|
95
104
|
};
|
|
96
105
|
}, [present, anchor, side, align, offset]);
|
|
97
106
|
useEffect(() => {
|
|
@@ -91,7 +91,7 @@ function Dot({ on }) {
|
|
|
91
91
|
"span",
|
|
92
92
|
{
|
|
93
93
|
className: cx(
|
|
94
|
-
"h-1.5 w-1.5 rounded-full bg-
|
|
94
|
+
"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",
|
|
95
95
|
on ? "scale-100" : "scale-0"
|
|
96
96
|
// perf-ok: 6px radio dot, not a surface
|
|
97
97
|
)
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
useInView,
|
|
4
|
+
useTakeOver
|
|
5
|
+
} from "./chunk-FS2PZKJY.js";
|
|
2
6
|
|
|
3
7
|
// components/lab/blocks/PlanSwitcher.tsx
|
|
4
8
|
import { useEffect, useRef, useState } from "react";
|
|
@@ -48,15 +52,12 @@ function Roll({ value }) {
|
|
|
48
52
|
var Check = () => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "h-[62%] w-[62%]", fill: "none", stroke: "currentColor", strokeWidth: "2.6", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "M3.5 8.5l3 3 6-7" }) });
|
|
49
53
|
function PlanSwitcher() {
|
|
50
54
|
const [s, setS] = useState({ sel: 1, yearly: false, stamp: 0, born: FEATURES.map(() => -1) });
|
|
51
|
-
const [
|
|
52
|
-
const
|
|
55
|
+
const [held, takeOverDemo] = useTakeOver(8e3);
|
|
56
|
+
const root = useRef(null);
|
|
57
|
+
const visible = useInView(root);
|
|
58
|
+
const paused = held || !visible;
|
|
53
59
|
const radios = useRef([]);
|
|
54
|
-
const takeOver =
|
|
55
|
-
setPaused(true);
|
|
56
|
-
if (idle.current) clearTimeout(idle.current);
|
|
57
|
-
idle.current = setTimeout(() => setPaused(false), 8e3);
|
|
58
|
-
};
|
|
59
|
-
useEffect(() => () => void (idle.current && clearTimeout(idle.current)), []);
|
|
60
|
+
const takeOver = takeOverDemo;
|
|
60
61
|
useEffect(() => {
|
|
61
62
|
if (paused || window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;
|
|
62
63
|
let i = 0;
|
|
@@ -85,7 +86,7 @@ function PlanSwitcher() {
|
|
|
85
86
|
const plan = PLANS[s.sel];
|
|
86
87
|
const price = s.yearly ? plan.year : plan.month;
|
|
87
88
|
const save = (plan.month - plan.year) * 12;
|
|
88
|
-
return /* @__PURE__ */ jsxs("div", { className: "flex h-full w-full items-center justify-center px-5 pb-5 pt-11", style: { containerType: "size" }, children: [
|
|
89
|
+
return /* @__PURE__ */ jsxs("div", { ref: root, className: "flex h-full w-full items-center justify-center px-5 pb-5 pt-11", style: { containerType: "size" }, children: [
|
|
89
90
|
/* @__PURE__ */ jsx("style", { href: "asta-planswitcher", precedence: "asta", children: `
|
|
90
91
|
.lab-pl-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: min(6cqw, 32px); align-items: center }
|
|
91
92
|
.lab-pl-note { display: none }
|
|
@@ -10,22 +10,24 @@ function HoldToConfirm() {
|
|
|
10
10
|
const [done, setDone] = useState(false);
|
|
11
11
|
const [shake, setShake] = useState(0);
|
|
12
12
|
const raf = useRef(0);
|
|
13
|
+
const reset = useRef(void 0);
|
|
13
14
|
const holding = useRef(false);
|
|
14
15
|
const progress = useRef(0);
|
|
15
16
|
const loop = (dir) => {
|
|
17
|
+
const still = matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
16
18
|
let last = performance.now();
|
|
17
19
|
const step = (t) => {
|
|
18
20
|
const dt = t - last;
|
|
19
21
|
last = t;
|
|
20
22
|
progress.current = Math.max(0, Math.min(1, progress.current + (dir === 1 ? dt / DURATION : -dt / 380)));
|
|
21
23
|
setP(progress.current);
|
|
22
|
-
setShake(dir === 1 ? Math.sin(t / 22) * progress.current ** 2 * 1.8 : 0);
|
|
24
|
+
setShake(dir === 1 && !still ? Math.sin(t / 22) * progress.current ** 2 * 1.8 : 0);
|
|
23
25
|
if (dir === 1 && progress.current >= 1) {
|
|
24
26
|
holding.current = false;
|
|
25
27
|
setDone(true);
|
|
26
28
|
setShake(0);
|
|
27
29
|
navigator.vibrate?.(24);
|
|
28
|
-
setTimeout(() => {
|
|
30
|
+
reset.current = setTimeout(() => {
|
|
29
31
|
setDone(false);
|
|
30
32
|
progress.current = 0;
|
|
31
33
|
setP(0);
|
|
@@ -48,7 +50,15 @@ function HoldToConfirm() {
|
|
|
48
50
|
holding.current = false;
|
|
49
51
|
loop(-1);
|
|
50
52
|
};
|
|
51
|
-
useEffect(() =>
|
|
53
|
+
useEffect(() => {
|
|
54
|
+
const hide = () => document.hidden && release();
|
|
55
|
+
document.addEventListener("visibilitychange", hide);
|
|
56
|
+
return () => {
|
|
57
|
+
document.removeEventListener("visibilitychange", hide);
|
|
58
|
+
cancelAnimationFrame(raf.current);
|
|
59
|
+
clearTimeout(reset.current);
|
|
60
|
+
};
|
|
61
|
+
}, []);
|
|
52
62
|
const label = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
53
63
|
done ? /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: "h-[18px] w-[18px]", fill: "none", stroke: "currentColor", strokeWidth: "2.4", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "M5 12.5l4.5 4.5L19 7.5", strokeDasharray: "24", className: "animate-[hold-draw_.5s_cubic-bezier(.16,1,.3,1)_both]" }) }) : /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: "h-[18px] w-[18px]", fill: "none", stroke: "currentColor", strokeWidth: "1.8", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "M4 7h16M10 11v6M14 11v6M6 7l1 12h10l1-12M9 7V4h6v3" }) }),
|
|
54
64
|
done ? "Deleted" : p > 0.02 ? "Keep holding" : "Hold to delete"
|
|
@@ -90,13 +100,16 @@ function HoldToConfirm() {
|
|
|
90
100
|
]
|
|
91
101
|
}
|
|
92
102
|
),
|
|
93
|
-
/* @__PURE__ */ jsx("div", { className: "flex gap-[3px]", "aria-hidden": true, children: Array.from({ length: TICKS }, (_, i) => {
|
|
103
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-start gap-[3px]", "aria-hidden": true, children: Array.from({ length: TICKS }, (_, i) => {
|
|
94
104
|
const lit = p * TICKS > i;
|
|
105
|
+
const major = i % 6 === 5;
|
|
106
|
+
const full = major ? 14 : 10;
|
|
107
|
+
const h = lit ? full : major ? 10 : 6;
|
|
95
108
|
return /* @__PURE__ */ jsx(
|
|
96
109
|
"span",
|
|
97
110
|
{
|
|
98
|
-
className: "w-[3px] transition-[
|
|
99
|
-
style: { height:
|
|
111
|
+
className: "w-[3px] origin-top transition-[transform,background-color] duration-150 motion-reduce:transition-none",
|
|
112
|
+
style: { height: full, transform: `scaleY(${h / full})`, background: lit ? "var(--signal)" : "color-mix(in srgb, var(--ink) 18%, transparent)" }
|
|
100
113
|
},
|
|
101
114
|
i
|
|
102
115
|
);
|
|
@@ -1,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/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" }),
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
useInView,
|
|
4
|
+
useTakeOver
|
|
5
|
+
} from "./chunk-FS2PZKJY.js";
|
|
2
6
|
|
|
3
7
|
// components/lab/blocks/VariantPicker.tsx
|
|
4
8
|
import { useEffect, useRef, useState } from "react";
|
|
@@ -50,8 +54,10 @@ function VariantPicker() {
|
|
|
50
54
|
const [prev, setPrev] = useState(0);
|
|
51
55
|
const [size, setSize] = useState(1);
|
|
52
56
|
const [tick, setTick] = useState(0);
|
|
53
|
-
const [
|
|
54
|
-
const
|
|
57
|
+
const [held, takeOverDemo] = useTakeOver(8e3);
|
|
58
|
+
const root = useRef(null);
|
|
59
|
+
const visible = useInView(root);
|
|
60
|
+
const paused = held || !visible;
|
|
55
61
|
const sw = useRef([]);
|
|
56
62
|
const pick = (i) => {
|
|
57
63
|
if (i === cur) return;
|
|
@@ -59,12 +65,7 @@ function VariantPicker() {
|
|
|
59
65
|
setCur(i);
|
|
60
66
|
setTick((t) => t + 1);
|
|
61
67
|
};
|
|
62
|
-
const takeOver =
|
|
63
|
-
setPaused(true);
|
|
64
|
-
if (idle.current) clearTimeout(idle.current);
|
|
65
|
-
idle.current = setTimeout(() => setPaused(false), 8e3);
|
|
66
|
-
};
|
|
67
|
-
useEffect(() => () => void (idle.current && clearTimeout(idle.current)), []);
|
|
68
|
+
const takeOver = takeOverDemo;
|
|
68
69
|
useEffect(() => {
|
|
69
70
|
if (paused) return;
|
|
70
71
|
let n = 0;
|
|
@@ -83,7 +84,7 @@ function VariantPicker() {
|
|
|
83
84
|
}, [paused]);
|
|
84
85
|
const f = FINISHES[cur];
|
|
85
86
|
const p = FINISHES[prev];
|
|
86
|
-
return /* @__PURE__ */ jsxs("div", { className: "flex h-full w-full flex-col items-center justify-center gap-[5cqh] px-5 pt-8", style: { containerType: "size" }, children: [
|
|
87
|
+
return /* @__PURE__ */ jsxs("div", { ref: root, className: "flex h-full w-full flex-col items-center justify-center gap-[5cqh] px-5 pt-8", style: { containerType: "size" }, children: [
|
|
87
88
|
/* @__PURE__ */ jsx("style", { href: "asta-variantpicker", precedence: "asta", children: `
|
|
88
89
|
@keyframes lab-vp-sweep { from { -webkit-mask-position: 100% 0; mask-position: 100% 0 } to { -webkit-mask-position: 0 0; mask-position: 0 0 } }
|
|
89
90
|
.lab-vp-sweep { -webkit-mask-image: linear-gradient(90deg, #000 38%, transparent 62%); mask-image: linear-gradient(90deg, #000 38%, transparent 62%); -webkit-mask-size: 300% 100%; mask-size: 300% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; will-change: mask-position }
|