asta-ui 0.9.6 → 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-2EBWWZPS.js → chunk-DITROAPF.js} +68 -21
- package/dist/{chunk-CACW5LH3.js → chunk-DSLKU6QJ.js} +68 -21
- 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-Q3KZWQWK.js +389 -0
- 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-UACKIMP4.js +389 -0
- 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/kit/base/navbar.d.ts +4 -1
- package/dist/types/components/kit/base/sidebar.d.ts +29 -7
- package/dist/types/components/kit/navbar.d.ts +4 -1
- package/dist/types/components/kit/sidebar.d.ts +29 -7
- package/dist/types/components/lab/lab-hooks.d.ts +12 -0
- package/dist/types/packages/asta-ui/src/base.d.ts +1 -1
- package/dist/types/packages/asta-ui/src/index.d.ts +1 -1
- package/dist/variant-picker.js +2 -1
- package/dist/wishlist.js +2 -1
- package/dist/workspace-switcher.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-2Z5Z4YYZ.js +0 -57
- package/dist/chunk-MVE7RJJ6.js +0 -322
- package/dist/chunk-TBMUSER2.js +0 -322
|
@@ -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/navbar.tsx
|
|
7
|
-
import { useCallback, useEffect, useLayoutEffect, useRef, useState } from "react";
|
|
7
|
+
import { useCallback, useEffect, useId, useLayoutEffect, useRef, useState } from "react";
|
|
8
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
var cx = (...c) => c.filter(Boolean).join(" ");
|
|
10
10
|
var RING = "shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_12%,transparent)]";
|
|
@@ -63,7 +63,26 @@ function Tile({ tile, big }) {
|
|
|
63
63
|
}
|
|
64
64
|
);
|
|
65
65
|
}
|
|
66
|
+
function List({ links }) {
|
|
67
|
+
return /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-0.5 p-1.5", children: links.map((l) => /* @__PURE__ */ jsxs(
|
|
68
|
+
"a",
|
|
69
|
+
{
|
|
70
|
+
href: l.href,
|
|
71
|
+
"data-kit-nav-link": true,
|
|
72
|
+
className: "group/item flex items-start gap-3 rounded-lg px-2.5 py-2 outline-none transition-colors duration-150 hover:bg-paper-2 focus-visible:bg-paper-2",
|
|
73
|
+
children: [
|
|
74
|
+
l.icon && /* @__PURE__ */ jsx("span", { className: cx("mt-px flex h-7 w-7 shrink-0 items-center justify-center rounded-md bg-paper text-mute transition-colors duration-150 group-hover/item:text-ink [&_svg]:h-3.5 [&_svg]:w-3.5", RING), children: l.icon }),
|
|
75
|
+
/* @__PURE__ */ jsxs("span", { className: "flex min-w-0 flex-col", children: [
|
|
76
|
+
/* @__PURE__ */ jsx("span", { className: "text-[13.5px] font-medium text-ink", children: l.title }),
|
|
77
|
+
l.description && /* @__PURE__ */ jsx("span", { className: "text-[12px] leading-snug text-mute", children: l.description })
|
|
78
|
+
] })
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
l.title
|
|
82
|
+
)) });
|
|
83
|
+
}
|
|
66
84
|
function Panel({ menu }) {
|
|
85
|
+
if (menu.list) return /* @__PURE__ */ jsx(List, { links: menu.list });
|
|
67
86
|
const tiles = menu.tiles ?? [];
|
|
68
87
|
const big = tiles.some((t) => t.preview);
|
|
69
88
|
return /* @__PURE__ */ jsxs("div", { className: "group/menu flex flex-col gap-2 p-2", children: [
|
|
@@ -93,12 +112,12 @@ function Panel({ menu }) {
|
|
|
93
112
|
{
|
|
94
113
|
href: menu.feature.href,
|
|
95
114
|
"data-kit-nav-link": true,
|
|
96
|
-
className: "group/feat relative flex min-h-[200px] flex-col justify-end overflow-hidden rounded-[10px] bg-brand p-4 text-
|
|
115
|
+
className: "group/feat relative flex min-h-[200px] flex-col justify-end overflow-hidden rounded-[10px] bg-brand p-4 text-on-brand outline-none transition-opacity duration-300 group-has-[a:hover]/menu:opacity-70 hover:!opacity-100 focus-visible:ring-2 focus-visible:ring-brand/50 focus-visible:ring-offset-2 focus-visible:ring-offset-paper",
|
|
97
116
|
children: [
|
|
98
|
-
/* @__PURE__ */ jsx("span", { "aria-hidden": true, className: cx("absolute -right-10 -top-10 h-40 w-40 rounded-full bg-
|
|
99
|
-
/* @__PURE__ */ jsx("span", { "aria-hidden": true, className: cx("absolute -right-2 top-12 h-20 w-20 rounded-full bg-
|
|
117
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": true, className: cx("absolute -right-10 -top-10 h-40 w-40 rounded-full bg-on-brand/15 transition-transform duration-700 group-hover/feat:scale-125", EASE) }),
|
|
118
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": true, className: cx("absolute -right-2 top-12 h-20 w-20 rounded-full bg-on-brand/10 transition-transform duration-700 group-hover/feat:-translate-x-3", EASE) }),
|
|
100
119
|
/* @__PURE__ */ jsx("span", { className: "relative text-[15px] font-medium tracking-[-0.01em]", children: menu.feature.title }),
|
|
101
|
-
/* @__PURE__ */ jsx("span", { className: "relative mt-1 text-[12.5px] leading-snug text-
|
|
120
|
+
/* @__PURE__ */ jsx("span", { className: "relative mt-1 text-[12.5px] leading-snug text-on-brand/80", children: menu.feature.description }),
|
|
102
121
|
/* @__PURE__ */ jsxs("span", { className: "relative mt-3 flex items-center gap-1 text-[13px] font-medium", children: [
|
|
103
122
|
menu.feature.cta,
|
|
104
123
|
/* @__PURE__ */ jsx(Chevron, { className: cx("transition-transform duration-300 group-hover/feat:translate-x-0.5", EASE) })
|
|
@@ -109,13 +128,19 @@ function Panel({ menu }) {
|
|
|
109
128
|
] })
|
|
110
129
|
] });
|
|
111
130
|
}
|
|
112
|
-
var flat = (m) => [
|
|
131
|
+
var flat = (m) => [
|
|
132
|
+
...m.list ?? [],
|
|
133
|
+
...m.tiles ?? [],
|
|
134
|
+
...m.columns?.flatMap((c) => c.links) ?? [],
|
|
135
|
+
...m.feature ? [{ title: m.feature.title, description: m.feature.description, href: m.feature.href }] : []
|
|
136
|
+
];
|
|
113
137
|
function Navbar({ brand, brandHref = "/", items, docs, cta, scrollRoot, className }) {
|
|
114
138
|
const [open, setOpen] = useState(null);
|
|
115
139
|
const [dir, setDir] = useState(1);
|
|
116
140
|
const [last, setLast] = useState(null);
|
|
117
141
|
const [slide, setSlide] = useState(false);
|
|
118
142
|
const [size, setSize] = useState({ w: 0, h: 0 });
|
|
143
|
+
const [anchor, setAnchor] = useState({ left: 0, bar: 0 });
|
|
119
144
|
const [scrolled, setScrolled] = useState(false);
|
|
120
145
|
const [sheet, setSheet] = useState(false);
|
|
121
146
|
const [section, setSection] = useState(null);
|
|
@@ -124,6 +149,10 @@ function Navbar({ brand, brandHref = "/", items, docs, cta, scrollRoot, classNam
|
|
|
124
149
|
const triggers = useRef([]);
|
|
125
150
|
const timer = useRef(void 0);
|
|
126
151
|
const focusPanel = useRef(false);
|
|
152
|
+
const hoverAt = useRef(0);
|
|
153
|
+
const uid = useId();
|
|
154
|
+
const panelId = `${uid}-panel`;
|
|
155
|
+
const sheetId = `${uid}-sheet`;
|
|
127
156
|
const openRef = useRef(null);
|
|
128
157
|
const shown = open ?? last;
|
|
129
158
|
useEffect(() => {
|
|
@@ -135,17 +164,26 @@ function Navbar({ brand, brandHref = "/", items, docs, cta, scrollRoot, classNam
|
|
|
135
164
|
const moving = i !== null && cur !== null && i !== cur;
|
|
136
165
|
if (moving) setDir(i > cur ? 1 : -1);
|
|
137
166
|
setSlide(moving);
|
|
138
|
-
if (i !== null)
|
|
167
|
+
if (i !== null) {
|
|
168
|
+
setLast(i);
|
|
169
|
+
const t = triggers.current[i];
|
|
170
|
+
const bar = t?.closest("[data-kit-nav-bar]");
|
|
171
|
+
if (t && bar) setAnchor({ left: t.getBoundingClientRect().left - bar.getBoundingClientRect().left, bar: bar.offsetWidth });
|
|
172
|
+
}
|
|
139
173
|
setOpen(i);
|
|
140
174
|
}, []);
|
|
141
175
|
const enter = (i) => {
|
|
142
176
|
clearTimeout(timer.current);
|
|
143
|
-
|
|
144
|
-
|
|
177
|
+
const go = () => {
|
|
178
|
+
hoverAt.current = performance.now();
|
|
179
|
+
show(i);
|
|
180
|
+
};
|
|
181
|
+
if (openRef.current === null) timer.current = setTimeout(go, 80);
|
|
182
|
+
else go();
|
|
145
183
|
};
|
|
146
184
|
const leave = () => {
|
|
147
185
|
clearTimeout(timer.current);
|
|
148
|
-
timer.current = setTimeout(() => show(null),
|
|
186
|
+
timer.current = setTimeout(() => show(null), 150);
|
|
149
187
|
};
|
|
150
188
|
const stay = () => clearTimeout(timer.current);
|
|
151
189
|
useLayoutEffect(() => {
|
|
@@ -194,6 +232,7 @@ function Navbar({ brand, brandHref = "/", items, docs, cta, scrollRoot, classNam
|
|
|
194
232
|
}, [show]);
|
|
195
233
|
useEffect(() => () => clearTimeout(timer.current), []);
|
|
196
234
|
const menu = shown !== null ? items[shown]?.menu : void 0;
|
|
235
|
+
const panelX = menu?.list ? Math.max(12, Math.min(anchor.left - 6, anchor.bar - size.w - 12)) : (anchor.bar - size.w) / 2;
|
|
197
236
|
const trigger = "flex h-8 items-center gap-1 rounded-md px-2.5 text-[13.5px] font-medium text-ink-2 outline-none transition-colors duration-200 hover:bg-paper-2 hover:text-ink focus-visible:ring-2 focus-visible:ring-brand/50 aria-expanded:bg-paper-2 aria-expanded:text-ink";
|
|
198
237
|
return /* @__PURE__ */ jsxs(
|
|
199
238
|
"header",
|
|
@@ -206,11 +245,11 @@ function Navbar({ brand, brandHref = "/", items, docs, cta, scrollRoot, classNam
|
|
|
206
245
|
),
|
|
207
246
|
children: [
|
|
208
247
|
/* @__PURE__ */ jsx("style", { href: "asta-navbar", precedence: "asta", children: `
|
|
209
|
-
@keyframes kit-nav-in { from { opacity: 0; transform: translateX(calc(var(--kit-dir) *
|
|
248
|
+
@keyframes kit-nav-in { from { opacity: 0; transform: translateX(calc(var(--kit-dir) * 14px)); } to { opacity: 1; transform: none; } }
|
|
210
249
|
@keyframes kit-nav-pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
|
|
211
250
|
@media (prefers-reduced-motion: reduce) { .kit-nav-motion, .kit-nav-motion * { animation: none !important; transition-duration: 0s !important; } }
|
|
212
251
|
` }),
|
|
213
|
-
/* @__PURE__ */ jsxs("div", { className: "kit-nav-motion relative flex h-14 items-center gap-3 px-4", children: [
|
|
252
|
+
/* @__PURE__ */ jsxs("div", { "data-kit-nav-bar": true, className: "kit-nav-motion relative flex h-14 items-center gap-3 px-4", children: [
|
|
214
253
|
/* @__PURE__ */ jsx("a", { href: brandHref, className: "flex flex-1 items-center gap-2 text-[15px] font-semibold tracking-[-0.02em] text-ink outline-none focus-visible:ring-2 focus-visible:ring-brand/50 rounded-md", children: brand }),
|
|
215
254
|
/* @__PURE__ */ jsx("nav", { "aria-label": "Main", className: "hidden @min-[560px]:block", onPointerLeave: leave, onPointerEnter: stay, children: /* @__PURE__ */ jsx("ul", { className: "flex items-center gap-0.5", children: items.map((it, i) => /* @__PURE__ */ jsx("li", { children: it.menu ? /* @__PURE__ */ jsxs(
|
|
216
255
|
"button",
|
|
@@ -220,12 +259,16 @@ function Navbar({ brand, brandHref = "/", items, docs, cta, scrollRoot, classNam
|
|
|
220
259
|
},
|
|
221
260
|
type: "button",
|
|
222
261
|
"aria-expanded": open === i,
|
|
223
|
-
"aria-controls":
|
|
262
|
+
"aria-controls": panelId,
|
|
224
263
|
onPointerEnter: (e) => e.pointerType === "mouse" && enter(i),
|
|
225
|
-
onClick: () =>
|
|
264
|
+
onClick: () => {
|
|
265
|
+
if (open !== i) return show(i);
|
|
266
|
+
if (performance.now() - hoverAt.current > 400) show(null);
|
|
267
|
+
},
|
|
226
268
|
onKeyDown: (e) => {
|
|
227
269
|
if (e.key === "ArrowDown" || (e.key === "Enter" || e.key === " ") && open !== i) {
|
|
228
270
|
e.preventDefault();
|
|
271
|
+
if (open === i) return content.current?.querySelector("[data-kit-nav-link]")?.focus();
|
|
229
272
|
focusPanel.current = true;
|
|
230
273
|
show(i);
|
|
231
274
|
} else if (e.key === "ArrowRight" || e.key === "ArrowLeft") {
|
|
@@ -263,7 +306,7 @@ function Navbar({ brand, brandHref = "/", items, docs, cta, scrollRoot, classNam
|
|
|
263
306
|
type: "button",
|
|
264
307
|
"aria-label": sheet ? "Close menu" : "Open menu",
|
|
265
308
|
"aria-expanded": sheet,
|
|
266
|
-
"aria-controls":
|
|
309
|
+
"aria-controls": sheetId,
|
|
267
310
|
onClick: () => setSheet((v) => !v),
|
|
268
311
|
className: "relative flex h-8 w-8 items-center justify-center rounded-md outline-none transition-colors hover:bg-paper-2 focus-visible:ring-2 focus-visible:ring-brand/50 @min-[560px]:hidden",
|
|
269
312
|
children: [
|
|
@@ -276,13 +319,17 @@ function Navbar({ brand, brandHref = "/", items, docs, cta, scrollRoot, classNam
|
|
|
276
319
|
/* @__PURE__ */ jsx(
|
|
277
320
|
"div",
|
|
278
321
|
{
|
|
279
|
-
id:
|
|
322
|
+
id: panelId,
|
|
323
|
+
inert: open === null,
|
|
280
324
|
onPointerEnter: stay,
|
|
281
325
|
onPointerLeave: leave,
|
|
282
326
|
className: cx(
|
|
283
|
-
"absolute left-
|
|
327
|
+
"absolute left-0 top-[calc(100%-2px)] hidden @min-[560px]:block",
|
|
328
|
+
size.w > 0 && "transition-transform duration-300",
|
|
329
|
+
EASE,
|
|
284
330
|
open === null && "pointer-events-none"
|
|
285
331
|
),
|
|
332
|
+
style: { transform: `translateX(${Math.round(panelX)}px)` },
|
|
286
333
|
children: /* @__PURE__ */ jsx(
|
|
287
334
|
"div",
|
|
288
335
|
{
|
|
@@ -299,8 +346,8 @@ function Navbar({ brand, brandHref = "/", items, docs, cta, scrollRoot, classNam
|
|
|
299
346
|
className: "w-max",
|
|
300
347
|
style: {
|
|
301
348
|
"--kit-dir": dir,
|
|
302
|
-
width: `min(${menu.width ?? 560}px, calc(100cqw - 24px))`,
|
|
303
|
-
animation: slide ? "kit-nav-in .
|
|
349
|
+
width: `min(${menu.width ?? (menu.list ? 300 : 560)}px, calc(100cqw - 24px))`,
|
|
350
|
+
animation: slide ? "kit-nav-in .28s cubic-bezier(.16,1,.3,1) both" : void 0
|
|
304
351
|
},
|
|
305
352
|
children: /* @__PURE__ */ jsx(Panel, { menu })
|
|
306
353
|
},
|
|
@@ -314,7 +361,7 @@ function Navbar({ brand, brandHref = "/", items, docs, cta, scrollRoot, classNam
|
|
|
314
361
|
/* @__PURE__ */ jsxs(
|
|
315
362
|
"div",
|
|
316
363
|
{
|
|
317
|
-
id:
|
|
364
|
+
id: sheetId,
|
|
318
365
|
hidden: !sheet,
|
|
319
366
|
className: "kit-nav-motion absolute inset-x-0 top-full max-h-[calc(100svh-3.5rem)] overflow-y-auto overscroll-contain bg-paper px-3 pb-6 pt-2 @min-[560px]:hidden",
|
|
320
367
|
style: { animation: sheet ? "kit-nav-pop .4s cubic-bezier(.16,1,.3,1) both" : void 0 },
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Button
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5ZQ6PMJT.js";
|
|
5
5
|
|
|
6
6
|
// components/kit/navbar.tsx
|
|
7
|
-
import { useCallback, useEffect, useLayoutEffect, useRef, useState } from "react";
|
|
7
|
+
import { useCallback, useEffect, useId, useLayoutEffect, useRef, useState } from "react";
|
|
8
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
var cx = (...c) => c.filter(Boolean).join(" ");
|
|
10
10
|
var RING = "shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_12%,transparent)]";
|
|
@@ -63,7 +63,26 @@ function Tile({ tile, big }) {
|
|
|
63
63
|
}
|
|
64
64
|
);
|
|
65
65
|
}
|
|
66
|
+
function List({ links }) {
|
|
67
|
+
return /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-0.5 p-1.5", children: links.map((l) => /* @__PURE__ */ jsxs(
|
|
68
|
+
"a",
|
|
69
|
+
{
|
|
70
|
+
href: l.href,
|
|
71
|
+
"data-kit-nav-link": true,
|
|
72
|
+
className: "group/item flex items-start gap-3 rounded-lg px-2.5 py-2 outline-none transition-colors duration-150 hover:bg-paper-2 focus-visible:bg-paper-2",
|
|
73
|
+
children: [
|
|
74
|
+
l.icon && /* @__PURE__ */ jsx("span", { className: cx("mt-px flex h-7 w-7 shrink-0 items-center justify-center rounded-md bg-paper text-mute transition-colors duration-150 group-hover/item:text-ink [&_svg]:h-3.5 [&_svg]:w-3.5", RING), children: l.icon }),
|
|
75
|
+
/* @__PURE__ */ jsxs("span", { className: "flex min-w-0 flex-col", children: [
|
|
76
|
+
/* @__PURE__ */ jsx("span", { className: "text-[13.5px] font-medium text-ink", children: l.title }),
|
|
77
|
+
l.description && /* @__PURE__ */ jsx("span", { className: "text-[12px] leading-snug text-mute", children: l.description })
|
|
78
|
+
] })
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
l.title
|
|
82
|
+
)) });
|
|
83
|
+
}
|
|
66
84
|
function Panel({ menu }) {
|
|
85
|
+
if (menu.list) return /* @__PURE__ */ jsx(List, { links: menu.list });
|
|
67
86
|
const tiles = menu.tiles ?? [];
|
|
68
87
|
const big = tiles.some((t) => t.preview);
|
|
69
88
|
return /* @__PURE__ */ jsxs("div", { className: "group/menu flex flex-col gap-2 p-2", children: [
|
|
@@ -93,12 +112,12 @@ function Panel({ menu }) {
|
|
|
93
112
|
{
|
|
94
113
|
href: menu.feature.href,
|
|
95
114
|
"data-kit-nav-link": true,
|
|
96
|
-
className: "group/feat relative flex min-h-[200px] flex-col justify-end overflow-hidden rounded-[10px] bg-brand p-4 text-
|
|
115
|
+
className: "group/feat relative flex min-h-[200px] flex-col justify-end overflow-hidden rounded-[10px] bg-brand p-4 text-on-brand outline-none transition-opacity duration-300 group-has-[a:hover]/menu:opacity-70 hover:!opacity-100 focus-visible:ring-2 focus-visible:ring-brand/50 focus-visible:ring-offset-2 focus-visible:ring-offset-paper",
|
|
97
116
|
children: [
|
|
98
|
-
/* @__PURE__ */ jsx("span", { "aria-hidden": true, className: cx("absolute -right-10 -top-10 h-40 w-40 rounded-full bg-
|
|
99
|
-
/* @__PURE__ */ jsx("span", { "aria-hidden": true, className: cx("absolute -right-2 top-12 h-20 w-20 rounded-full bg-
|
|
117
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": true, className: cx("absolute -right-10 -top-10 h-40 w-40 rounded-full bg-on-brand/15 transition-transform duration-700 group-hover/feat:scale-125", EASE) }),
|
|
118
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": true, className: cx("absolute -right-2 top-12 h-20 w-20 rounded-full bg-on-brand/10 transition-transform duration-700 group-hover/feat:-translate-x-3", EASE) }),
|
|
100
119
|
/* @__PURE__ */ jsx("span", { className: "relative text-[15px] font-medium tracking-[-0.01em]", children: menu.feature.title }),
|
|
101
|
-
/* @__PURE__ */ jsx("span", { className: "relative mt-1 text-[12.5px] leading-snug text-
|
|
120
|
+
/* @__PURE__ */ jsx("span", { className: "relative mt-1 text-[12.5px] leading-snug text-on-brand/80", children: menu.feature.description }),
|
|
102
121
|
/* @__PURE__ */ jsxs("span", { className: "relative mt-3 flex items-center gap-1 text-[13px] font-medium", children: [
|
|
103
122
|
menu.feature.cta,
|
|
104
123
|
/* @__PURE__ */ jsx(Chevron, { className: cx("transition-transform duration-300 group-hover/feat:translate-x-0.5", EASE) })
|
|
@@ -109,13 +128,19 @@ function Panel({ menu }) {
|
|
|
109
128
|
] })
|
|
110
129
|
] });
|
|
111
130
|
}
|
|
112
|
-
var flat = (m) => [
|
|
131
|
+
var flat = (m) => [
|
|
132
|
+
...m.list ?? [],
|
|
133
|
+
...m.tiles ?? [],
|
|
134
|
+
...m.columns?.flatMap((c) => c.links) ?? [],
|
|
135
|
+
...m.feature ? [{ title: m.feature.title, description: m.feature.description, href: m.feature.href }] : []
|
|
136
|
+
];
|
|
113
137
|
function Navbar({ brand, brandHref = "/", items, docs, cta, scrollRoot, className }) {
|
|
114
138
|
const [open, setOpen] = useState(null);
|
|
115
139
|
const [dir, setDir] = useState(1);
|
|
116
140
|
const [last, setLast] = useState(null);
|
|
117
141
|
const [slide, setSlide] = useState(false);
|
|
118
142
|
const [size, setSize] = useState({ w: 0, h: 0 });
|
|
143
|
+
const [anchor, setAnchor] = useState({ left: 0, bar: 0 });
|
|
119
144
|
const [scrolled, setScrolled] = useState(false);
|
|
120
145
|
const [sheet, setSheet] = useState(false);
|
|
121
146
|
const [section, setSection] = useState(null);
|
|
@@ -124,6 +149,10 @@ function Navbar({ brand, brandHref = "/", items, docs, cta, scrollRoot, classNam
|
|
|
124
149
|
const triggers = useRef([]);
|
|
125
150
|
const timer = useRef(void 0);
|
|
126
151
|
const focusPanel = useRef(false);
|
|
152
|
+
const hoverAt = useRef(0);
|
|
153
|
+
const uid = useId();
|
|
154
|
+
const panelId = `${uid}-panel`;
|
|
155
|
+
const sheetId = `${uid}-sheet`;
|
|
127
156
|
const openRef = useRef(null);
|
|
128
157
|
const shown = open ?? last;
|
|
129
158
|
useEffect(() => {
|
|
@@ -135,17 +164,26 @@ function Navbar({ brand, brandHref = "/", items, docs, cta, scrollRoot, classNam
|
|
|
135
164
|
const moving = i !== null && cur !== null && i !== cur;
|
|
136
165
|
if (moving) setDir(i > cur ? 1 : -1);
|
|
137
166
|
setSlide(moving);
|
|
138
|
-
if (i !== null)
|
|
167
|
+
if (i !== null) {
|
|
168
|
+
setLast(i);
|
|
169
|
+
const t = triggers.current[i];
|
|
170
|
+
const bar = t?.closest("[data-kit-nav-bar]");
|
|
171
|
+
if (t && bar) setAnchor({ left: t.getBoundingClientRect().left - bar.getBoundingClientRect().left, bar: bar.offsetWidth });
|
|
172
|
+
}
|
|
139
173
|
setOpen(i);
|
|
140
174
|
}, []);
|
|
141
175
|
const enter = (i) => {
|
|
142
176
|
clearTimeout(timer.current);
|
|
143
|
-
|
|
144
|
-
|
|
177
|
+
const go = () => {
|
|
178
|
+
hoverAt.current = performance.now();
|
|
179
|
+
show(i);
|
|
180
|
+
};
|
|
181
|
+
if (openRef.current === null) timer.current = setTimeout(go, 80);
|
|
182
|
+
else go();
|
|
145
183
|
};
|
|
146
184
|
const leave = () => {
|
|
147
185
|
clearTimeout(timer.current);
|
|
148
|
-
timer.current = setTimeout(() => show(null),
|
|
186
|
+
timer.current = setTimeout(() => show(null), 150);
|
|
149
187
|
};
|
|
150
188
|
const stay = () => clearTimeout(timer.current);
|
|
151
189
|
useLayoutEffect(() => {
|
|
@@ -194,6 +232,7 @@ function Navbar({ brand, brandHref = "/", items, docs, cta, scrollRoot, classNam
|
|
|
194
232
|
}, [show]);
|
|
195
233
|
useEffect(() => () => clearTimeout(timer.current), []);
|
|
196
234
|
const menu = shown !== null ? items[shown]?.menu : void 0;
|
|
235
|
+
const panelX = menu?.list ? Math.max(12, Math.min(anchor.left - 6, anchor.bar - size.w - 12)) : (anchor.bar - size.w) / 2;
|
|
197
236
|
const trigger = "flex h-8 items-center gap-1 rounded-md px-2.5 text-[13.5px] font-medium text-ink-2 outline-none transition-colors duration-200 hover:bg-paper-2 hover:text-ink focus-visible:ring-2 focus-visible:ring-brand/50 aria-expanded:bg-paper-2 aria-expanded:text-ink";
|
|
198
237
|
return /* @__PURE__ */ jsxs(
|
|
199
238
|
"header",
|
|
@@ -206,11 +245,11 @@ function Navbar({ brand, brandHref = "/", items, docs, cta, scrollRoot, classNam
|
|
|
206
245
|
),
|
|
207
246
|
children: [
|
|
208
247
|
/* @__PURE__ */ jsx("style", { href: "asta-navbar", precedence: "asta", children: `
|
|
209
|
-
@keyframes kit-nav-in { from { opacity: 0; transform: translateX(calc(var(--kit-dir) *
|
|
248
|
+
@keyframes kit-nav-in { from { opacity: 0; transform: translateX(calc(var(--kit-dir) * 14px)); } to { opacity: 1; transform: none; } }
|
|
210
249
|
@keyframes kit-nav-pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
|
|
211
250
|
@media (prefers-reduced-motion: reduce) { .kit-nav-motion, .kit-nav-motion * { animation: none !important; transition-duration: 0s !important; } }
|
|
212
251
|
` }),
|
|
213
|
-
/* @__PURE__ */ jsxs("div", { className: "kit-nav-motion relative flex h-14 items-center gap-3 px-4", children: [
|
|
252
|
+
/* @__PURE__ */ jsxs("div", { "data-kit-nav-bar": true, className: "kit-nav-motion relative flex h-14 items-center gap-3 px-4", children: [
|
|
214
253
|
/* @__PURE__ */ jsx("a", { href: brandHref, className: "flex flex-1 items-center gap-2 text-[15px] font-semibold tracking-[-0.02em] text-ink outline-none focus-visible:ring-2 focus-visible:ring-brand/50 rounded-md", children: brand }),
|
|
215
254
|
/* @__PURE__ */ jsx("nav", { "aria-label": "Main", className: "hidden @min-[560px]:block", onPointerLeave: leave, onPointerEnter: stay, children: /* @__PURE__ */ jsx("ul", { className: "flex items-center gap-0.5", children: items.map((it, i) => /* @__PURE__ */ jsx("li", { children: it.menu ? /* @__PURE__ */ jsxs(
|
|
216
255
|
"button",
|
|
@@ -220,12 +259,16 @@ function Navbar({ brand, brandHref = "/", items, docs, cta, scrollRoot, classNam
|
|
|
220
259
|
},
|
|
221
260
|
type: "button",
|
|
222
261
|
"aria-expanded": open === i,
|
|
223
|
-
"aria-controls":
|
|
262
|
+
"aria-controls": panelId,
|
|
224
263
|
onPointerEnter: (e) => e.pointerType === "mouse" && enter(i),
|
|
225
|
-
onClick: () =>
|
|
264
|
+
onClick: () => {
|
|
265
|
+
if (open !== i) return show(i);
|
|
266
|
+
if (performance.now() - hoverAt.current > 400) show(null);
|
|
267
|
+
},
|
|
226
268
|
onKeyDown: (e) => {
|
|
227
269
|
if (e.key === "ArrowDown" || (e.key === "Enter" || e.key === " ") && open !== i) {
|
|
228
270
|
e.preventDefault();
|
|
271
|
+
if (open === i) return content.current?.querySelector("[data-kit-nav-link]")?.focus();
|
|
229
272
|
focusPanel.current = true;
|
|
230
273
|
show(i);
|
|
231
274
|
} else if (e.key === "ArrowRight" || e.key === "ArrowLeft") {
|
|
@@ -263,7 +306,7 @@ function Navbar({ brand, brandHref = "/", items, docs, cta, scrollRoot, classNam
|
|
|
263
306
|
type: "button",
|
|
264
307
|
"aria-label": sheet ? "Close menu" : "Open menu",
|
|
265
308
|
"aria-expanded": sheet,
|
|
266
|
-
"aria-controls":
|
|
309
|
+
"aria-controls": sheetId,
|
|
267
310
|
onClick: () => setSheet((v) => !v),
|
|
268
311
|
className: "relative flex h-8 w-8 items-center justify-center rounded-md outline-none transition-colors hover:bg-paper-2 focus-visible:ring-2 focus-visible:ring-brand/50 @min-[560px]:hidden",
|
|
269
312
|
children: [
|
|
@@ -276,13 +319,17 @@ function Navbar({ brand, brandHref = "/", items, docs, cta, scrollRoot, classNam
|
|
|
276
319
|
/* @__PURE__ */ jsx(
|
|
277
320
|
"div",
|
|
278
321
|
{
|
|
279
|
-
id:
|
|
322
|
+
id: panelId,
|
|
323
|
+
inert: open === null,
|
|
280
324
|
onPointerEnter: stay,
|
|
281
325
|
onPointerLeave: leave,
|
|
282
326
|
className: cx(
|
|
283
|
-
"absolute left-
|
|
327
|
+
"absolute left-0 top-[calc(100%-2px)] hidden @min-[560px]:block",
|
|
328
|
+
size.w > 0 && "transition-transform duration-300",
|
|
329
|
+
EASE,
|
|
284
330
|
open === null && "pointer-events-none"
|
|
285
331
|
),
|
|
332
|
+
style: { transform: `translateX(${Math.round(panelX)}px)` },
|
|
286
333
|
children: /* @__PURE__ */ jsx(
|
|
287
334
|
"div",
|
|
288
335
|
{
|
|
@@ -299,8 +346,8 @@ function Navbar({ brand, brandHref = "/", items, docs, cta, scrollRoot, classNam
|
|
|
299
346
|
className: "w-max",
|
|
300
347
|
style: {
|
|
301
348
|
"--kit-dir": dir,
|
|
302
|
-
width: `min(${menu.width ?? 560}px, calc(100cqw - 24px))`,
|
|
303
|
-
animation: slide ? "kit-nav-in .
|
|
349
|
+
width: `min(${menu.width ?? (menu.list ? 300 : 560)}px, calc(100cqw - 24px))`,
|
|
350
|
+
animation: slide ? "kit-nav-in .28s cubic-bezier(.16,1,.3,1) both" : void 0
|
|
304
351
|
},
|
|
305
352
|
children: /* @__PURE__ */ jsx(Panel, { menu })
|
|
306
353
|
},
|
|
@@ -314,7 +361,7 @@ function Navbar({ brand, brandHref = "/", items, docs, cta, scrollRoot, classNam
|
|
|
314
361
|
/* @__PURE__ */ jsxs(
|
|
315
362
|
"div",
|
|
316
363
|
{
|
|
317
|
-
id:
|
|
364
|
+
id: sheetId,
|
|
318
365
|
hidden: !sheet,
|
|
319
366
|
className: "kit-nav-motion absolute inset-x-0 top-full max-h-[calc(100svh-3.5rem)] overflow-y-auto overscroll-contain bg-paper px-3 pb-6 pt-2 @min-[560px]:hidden",
|
|
320
367
|
style: { animation: sheet ? "kit-nav-pop .4s cubic-bezier(.16,1,.3,1) both" : void 0 },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
// components/kit/event-calendar.tsx
|
|
4
|
-
import { useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
4
|
+
import { useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
5
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
var cx = (...c) => c.filter(Boolean).join(" ");
|
|
7
7
|
var CURVE = "cubic-bezier(.16,1,.3,1)";
|
|
@@ -27,25 +27,38 @@ var minutesOf = (e) => {
|
|
|
27
27
|
if (ap === "a" && h === 12) h = 0;
|
|
28
28
|
return h * 60 + Number(m[2] ?? 0);
|
|
29
29
|
};
|
|
30
|
+
var noop = () => () => {
|
|
31
|
+
};
|
|
32
|
+
var todayStamp = () => day0(/* @__PURE__ */ new Date()).getTime();
|
|
33
|
+
var PLACEHOLDER = new Date(2e3, 0, 1);
|
|
30
34
|
function Arrow({ dir }) {
|
|
31
35
|
return /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "h-4 w-4", fill: "none", stroke: "currentColor", strokeWidth: "1.6", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: dir === 1 ? "m6 3.5 4.5 4.5L6 12.5" : "m10 3.5L5.5 8l4.5 4.5" }) });
|
|
32
36
|
}
|
|
33
37
|
var navBtn = "grid h-8 w-8 place-items-center rounded-md text-ink-2 outline-none transition-colors duration-200 hover:bg-paper-2 hover:text-ink focus-visible:ring-2 focus-visible:ring-brand/50";
|
|
34
38
|
function EventCalendar({ events, selected, defaultSelected, onSelect, today: todayProp, locale, weekStartsOn = 1, onEventClick, className }) {
|
|
35
|
-
const
|
|
39
|
+
const stamp = useSyncExternalStore(noop, todayStamp, () => null);
|
|
40
|
+
const now = stamp === null ? null : new Date(stamp);
|
|
36
41
|
const today = todayProp ? day0(todayProp) : now;
|
|
37
|
-
const [inner, setInner] = useState(() =>
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
42
|
+
const [inner, setInner] = useState(() => {
|
|
43
|
+
const d = defaultSelected ?? todayProp;
|
|
44
|
+
return d ? day0(d) : null;
|
|
45
|
+
});
|
|
46
|
+
const known = selected ? day0(selected) : inner ?? today;
|
|
47
|
+
const ready = known !== null;
|
|
48
|
+
const sel = known ?? PLACEHOLDER;
|
|
49
|
+
const [viewState, setView] = useState(() => known ? month0(known) : null);
|
|
50
|
+
const view = viewState ?? month0(sel);
|
|
51
|
+
const [focusState, setFocusDay] = useState(null);
|
|
52
|
+
const focusDay = focusState ?? sel;
|
|
41
53
|
const [dir, setDir] = useState(0);
|
|
42
54
|
const grid = useRef(null);
|
|
43
55
|
const wantFocus = useRef(false);
|
|
44
|
-
const [seen, setSeen] = useState(keyOf(sel));
|
|
45
|
-
if (seen !== keyOf(sel)) {
|
|
56
|
+
const [seen, setSeen] = useState(ready ? keyOf(sel) : "");
|
|
57
|
+
if (ready && seen !== keyOf(sel)) {
|
|
46
58
|
setSeen(keyOf(sel));
|
|
47
59
|
setFocusDay(sel);
|
|
48
|
-
if (!
|
|
60
|
+
if (!viewState) setView(month0(sel));
|
|
61
|
+
else if (!sameMonth(sel, viewState)) {
|
|
49
62
|
setDir(sel > view ? 1 : -1);
|
|
50
63
|
setView(month0(sel));
|
|
51
64
|
}
|
|
@@ -79,7 +92,7 @@ function EventCalendar({ events, selected, defaultSelected, onSelect, today: tod
|
|
|
79
92
|
}, [focusDay, view]);
|
|
80
93
|
const goMonth = (n) => {
|
|
81
94
|
setDir(n > 0 ? 1 : -1);
|
|
82
|
-
setView(
|
|
95
|
+
setView(addMonths(view, n));
|
|
83
96
|
};
|
|
84
97
|
const pick = (d, focus = true) => {
|
|
85
98
|
if (selected === void 0) setInner(d);
|
|
@@ -121,7 +134,7 @@ function EventCalendar({ events, selected, defaultSelected, onSelect, today: tod
|
|
|
121
134
|
};
|
|
122
135
|
const dayEvents = byDay.get(keyOf(sel)) ?? [];
|
|
123
136
|
const rows = Array.from({ length: 6 }, (_, r) => days.slice(r * 7, r * 7 + 7));
|
|
124
|
-
return /* @__PURE__ */ jsxs("div", { className: cx("kit-ec grid w-full gap-6 md:grid-cols-[minmax(0,1fr)_240px]", className), children: [
|
|
137
|
+
return /* @__PURE__ */ jsxs("div", { className: cx("kit-ec grid w-full gap-6 md:grid-cols-[minmax(0,1fr)_240px]", !ready && "invisible", className), "aria-hidden": !ready || void 0, children: [
|
|
125
138
|
/* @__PURE__ */ jsx("style", { href: "asta-event-calendar", precedence: "asta", children: KEYFRAMES }),
|
|
126
139
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
|
|
127
140
|
/* @__PURE__ */ jsxs("header", { className: "mb-4 flex items-center gap-2", children: [
|
|
@@ -130,7 +143,7 @@ function EventCalendar({ events, selected, defaultSelected, onSelect, today: tod
|
|
|
130
143
|
"button",
|
|
131
144
|
{
|
|
132
145
|
type: "button",
|
|
133
|
-
onClick: () => pick(today, false),
|
|
146
|
+
onClick: () => today && pick(today, false),
|
|
134
147
|
className: "h-8 rounded-md px-3 text-[13px] text-ink-2 outline-none transition-colors duration-200 hover:bg-paper-2 hover:text-ink focus-visible:ring-2 focus-visible:ring-brand/50",
|
|
135
148
|
children: "Today"
|
|
136
149
|
}
|
|
@@ -151,7 +164,7 @@ function EventCalendar({ events, selected, defaultSelected, onSelect, today: tod
|
|
|
151
164
|
const k = keyOf(d);
|
|
152
165
|
const list = byDay.get(k) ?? [];
|
|
153
166
|
const out = !sameMonth(d, view);
|
|
154
|
-
const isToday = k === keyOf(today);
|
|
167
|
+
const isToday = !!today && k === keyOf(today);
|
|
155
168
|
const isSel = k === keyOf(sel);
|
|
156
169
|
const label = `${fmt.long.format(d)}${isToday ? ", today" : ""}, ${list.length ? `${list.length} event${list.length > 1 ? "s" : ""}` : "no events"}`;
|
|
157
170
|
return /* @__PURE__ */ jsxs(
|
|
@@ -179,7 +192,7 @@ function EventCalendar({ events, selected, defaultSelected, onSelect, today: tod
|
|
|
179
192
|
{
|
|
180
193
|
className: cx(
|
|
181
194
|
"grid h-6 w-6 place-items-center rounded-full text-[12.5px] tabular-nums transition-colors duration-200",
|
|
182
|
-
isToday ? "bg-brand font-medium text-
|
|
195
|
+
isToday ? "bg-brand font-medium text-on-brand" : out ? "text-mute/60" : "text-ink"
|
|
183
196
|
),
|
|
184
197
|
children: d.getDate()
|
|
185
198
|
}
|
|
@@ -215,7 +228,7 @@ function EventCalendar({ events, selected, defaultSelected, onSelect, today: tod
|
|
|
215
228
|
) })
|
|
216
229
|
] }),
|
|
217
230
|
/* @__PURE__ */ jsx("aside", { "aria-label": "Selected day", className: "min-w-0 md:pt-12", children: /* @__PURE__ */ jsxs("div", { style: { animation: `kit-ec-up .4s ${CURVE}` }, children: [
|
|
218
|
-
/* @__PURE__ */ jsx("p", { className: "text-[12px] font-medium text-mute", children: keyOf(sel) === keyOf(today) ? "Today" : "Selected" }),
|
|
231
|
+
/* @__PURE__ */ jsx("p", { className: "text-[12px] font-medium text-mute", children: today && keyOf(sel) === keyOf(today) ? "Today" : "Selected" }),
|
|
219
232
|
/* @__PURE__ */ jsx("h4", { className: "mt-1 text-[15px] font-medium tracking-[-0.01em] text-ink", children: fmt.head.format(sel) }),
|
|
220
233
|
dayEvents.length ? /* @__PURE__ */ jsx("ul", { className: "mt-4 flex flex-col gap-1", children: dayEvents.map((ev, i) => {
|
|
221
234
|
const body = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -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/sign-in.tsx
|
|
7
7
|
import { useEffect, useId, useRef, useState } from "react";
|
|
@@ -55,7 +55,7 @@ function Field({ label, type, value, onChange, onBlur, error, shake, name, autoC
|
|
|
55
55
|
className: cx(
|
|
56
56
|
"h-10 w-full rounded-lg bg-paper px-3 text-[16px] sm:text-[14px] text-ink outline-none transition-shadow duration-200 placeholder:text-mute",
|
|
57
57
|
!!end && "pr-11",
|
|
58
|
-
error ? "shadow-[
|
|
58
|
+
error ? "shadow-[inset_0_0_0_1.5px_var(--ink)] focus-visible:ring-2 focus-visible:ring-ink/30" : `${RING} focus-visible:ring-2 focus-visible:ring-brand/50`
|
|
59
59
|
)
|
|
60
60
|
}
|
|
61
61
|
),
|
|
@@ -66,7 +66,7 @@ function Field({ label, type, value, onChange, onBlur, error, shake, name, autoC
|
|
|
66
66
|
{
|
|
67
67
|
id: `${id}-err`,
|
|
68
68
|
role: error ? "alert" : void 0,
|
|
69
|
-
className: cx("grid text-[12.5px] text-
|
|
69
|
+
className: cx("grid text-[12.5px] text-ink transition-[grid-template-rows,opacity] duration-300", EASE, error ? "grid-rows-[1fr] opacity-100" : "grid-rows-[0fr] opacity-0"),
|
|
70
70
|
children: /* @__PURE__ */ jsx("span", { className: "overflow-hidden", children: error })
|
|
71
71
|
}
|
|
72
72
|
)
|
|
@@ -120,7 +120,7 @@ function SignInCard({ title = "Welcome back", subtitle = "Sign in to continue to
|
|
|
120
120
|
return /* @__PURE__ */ jsxs("div", { className: cx("kit-signin relative w-full max-w-[380px] overflow-hidden rounded-xl bg-paper p-6 sm:p-7", "shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent),0_1px_2px_rgb(0_0_0/0.04),0_18px_40px_-20px_rgb(0_0_0/0.25)]", className), children: [
|
|
121
121
|
/* @__PURE__ */ jsx("style", { href: "asta-sign-in", precedence: "asta", children: CSS }),
|
|
122
122
|
state === "done" ? /* @__PURE__ */ jsxs("div", { className: "flex min-h-[380px] flex-col items-center justify-center text-center", style: { animation: "kit-signin-pop .5s cubic-bezier(.16,1,.3,1) both" }, role: "status", children: [
|
|
123
|
-
/* @__PURE__ */ jsx("span", { className: "flex h-14 w-14 items-center justify-center rounded-full bg-
|
|
123
|
+
/* @__PURE__ */ jsx("span", { className: "flex h-14 w-14 items-center justify-center rounded-full bg-brand text-on-brand", children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: "h-7 w-7", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "M5 12.5l4.5 4.5L19 7.5", strokeDasharray: "24", style: { animation: "kit-signin-draw .5s .15s cubic-bezier(.16,1,.3,1) both" } }) }) }),
|
|
124
124
|
/* @__PURE__ */ jsx("h3", { className: "mt-5 text-[20px] font-medium tracking-[-0.02em] text-ink", children: "You're in" }),
|
|
125
125
|
/* @__PURE__ */ jsxs("p", { className: "mt-1.5 max-w-[26ch] text-[14px] leading-snug text-mute", children: [
|
|
126
126
|
"Signed in as ",
|
|
@@ -195,7 +195,7 @@ function SignInCard({ title = "Welcome back", subtitle = "Sign in to continue to
|
|
|
195
195
|
] }),
|
|
196
196
|
/* @__PURE__ */ jsx("a", { href: "#", onClick: (e) => e.preventDefault(), className: "text-brand outline-none hover:underline focus-visible:underline", children: "Forgot password?" })
|
|
197
197
|
] }),
|
|
198
|
-
formError && /* @__PURE__ */ jsx("p", { role: "alert", className: "mt-4 rounded-lg bg-
|
|
198
|
+
formError && /* @__PURE__ */ jsx("p", { role: "alert", className: "mt-4 rounded-lg bg-paper-2 px-3 py-2 text-[13px] text-ink", children: formError }),
|
|
199
199
|
/* @__PURE__ */ jsx(Button, { type: "submit", variant: "solid", size: "md", loading: state === "loading", className: "mt-5 w-full", children: "Sign in" }),
|
|
200
200
|
/* @__PURE__ */ jsxs("p", { className: "mt-4 text-center text-[13px] text-mute", children: [
|
|
201
201
|
"New here?",
|
|
@@ -105,7 +105,7 @@ function ToolDock({ tools, value, defaultValue, onChange, hotkeys = true, toolti
|
|
|
105
105
|
className: cx(
|
|
106
106
|
"relative grid h-9 w-9 cursor-pointer place-items-center rounded-[8px] outline-none transition-colors duration-150",
|
|
107
107
|
"focus-visible:shadow-[0_0_0_2px_var(--paper),0_0_0_4px_var(--brand)] disabled:cursor-not-allowed disabled:opacity-35",
|
|
108
|
-
current === t.id ? "text-
|
|
108
|
+
current === t.id ? "text-on-brand" : "text-ink-2 hover:bg-[color-mix(in_srgb,var(--ink)_7%,transparent)] hover:text-ink"
|
|
109
109
|
),
|
|
110
110
|
children: /* @__PURE__ */ jsx("span", { className: "h-[18px] w-[18px] [&>svg]:h-full [&>svg]:w-full", children: t.icon })
|
|
111
111
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Avatar
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7IOMROVG.js";
|
|
5
5
|
import {
|
|
6
6
|
Button
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HSDMCZMX.js";
|
|
8
8
|
|
|
9
9
|
// components/kit/base/comments.tsx
|
|
10
10
|
import { useId, useRef, useState } from "react";
|
|
@@ -171,7 +171,7 @@ function SinglePlan({
|
|
|
171
171
|
{
|
|
172
172
|
href: cta.href,
|
|
173
173
|
className: cx(
|
|
174
|
-
"aui-splan-rise group mt-6 flex h-11 w-full items-center justify-center gap-2 rounded-[9px] bg-brand text-[14px] font-medium text-
|
|
174
|
+
"aui-splan-rise group mt-6 flex h-11 w-full items-center justify-center gap-2 rounded-[9px] bg-brand text-[14px] font-medium text-on-brand shadow-[0_10px_24px_-12px_var(--brand)] outline-none transition-[transform,box-shadow] duration-300 hover:-translate-y-px hover:shadow-[0_14px_28px_-12px_var(--brand)] active:translate-y-0 active:scale-[.985] focus-visible:ring-2 focus-visible:ring-brand/50 focus-visible:ring-offset-2 focus-visible:ring-offset-paper",
|
|
175
175
|
EASE
|
|
176
176
|
),
|
|
177
177
|
style: rise(4),
|
|
@@ -24,7 +24,7 @@ function Tooltip({ content, side = "top", delay = 500, shortcut, children, class
|
|
|
24
24
|
else timer.current = setTimeout(() => setOpen(true), delay);
|
|
25
25
|
};
|
|
26
26
|
return /* @__PURE__ */ jsx(Tip.Provider, { delayDuration: 0, skipDelayDuration: 0, children: /* @__PURE__ */ jsxs(Tip.Root, { open, onOpenChange, children: [
|
|
27
|
-
/* @__PURE__ */ jsx("style", { href: "
|
|
27
|
+
/* @__PURE__ */ jsx("style", { href: "asta-tooltip", precedence: "asta", children: KEYFRAMES }),
|
|
28
28
|
/* @__PURE__ */ jsx(Tip.Trigger, { ...SLOT, onPointerLeave: cancel, onBlur: cancel, onPointerDown: cancel, children: isValidElement(children) ? children : /* @__PURE__ */ jsx("span", { className: "inline-flex", children }) }),
|
|
29
29
|
/* @__PURE__ */ jsx(Tip.Portal, { children: /* @__PURE__ */ jsxs(
|
|
30
30
|
Tip.Content,
|