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
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
Avatar
|
|
4
|
+
} from "./chunk-7IOMROVG.js";
|
|
5
|
+
|
|
6
|
+
// components/kit/base/sidebar.tsx
|
|
7
|
+
import { useEffect, useLayoutEffect, useRef, useState } from "react";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
var cx = (...c) => c.filter(Boolean).join(" ");
|
|
10
|
+
var EASE = "ease-[cubic-bezier(.16,1,.3,1)]";
|
|
11
|
+
var RING = "shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent)]";
|
|
12
|
+
var HOVER = "hover:bg-[color-mix(in_srgb,var(--ink)_4%,transparent)]";
|
|
13
|
+
var ON = "bg-[color-mix(in_srgb,var(--ink)_6%,transparent)]";
|
|
14
|
+
var Icon = ({ d, className = "" }) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: cx("h-4 w-4", className), fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d }) });
|
|
15
|
+
function Logo({ w, size = "sm" }) {
|
|
16
|
+
return /* @__PURE__ */ jsx(
|
|
17
|
+
"span",
|
|
18
|
+
{
|
|
19
|
+
"aria-hidden": true,
|
|
20
|
+
className: cx(
|
|
21
|
+
"flex shrink-0 items-center justify-center overflow-hidden bg-brand font-semibold text-paper [&>*]:h-full [&>*]:w-full",
|
|
22
|
+
size === "sm" ? "h-5 w-5 rounded-[5px] text-[11px]" : "h-7 w-7 rounded-[7px] text-[12.5px]"
|
|
23
|
+
),
|
|
24
|
+
children: w.logo ?? w.name.charAt(0)
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
function Label({ hidden, children, className }) {
|
|
29
|
+
return /* @__PURE__ */ jsx(
|
|
30
|
+
"span",
|
|
31
|
+
{
|
|
32
|
+
className: cx(
|
|
33
|
+
"min-w-0 flex-1 overflow-hidden whitespace-nowrap text-left transition-[opacity,transform] duration-300",
|
|
34
|
+
EASE,
|
|
35
|
+
hidden ? "pointer-events-none -translate-x-1 opacity-0" : "translate-x-0 opacity-100 delay-75",
|
|
36
|
+
className
|
|
37
|
+
),
|
|
38
|
+
children
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
function Tip({ children }) {
|
|
43
|
+
return /* @__PURE__ */ jsx(
|
|
44
|
+
"span",
|
|
45
|
+
{
|
|
46
|
+
"aria-hidden": true,
|
|
47
|
+
className: cx(
|
|
48
|
+
"pointer-events-none absolute left-[calc(100%+10px)] top-1/2 z-20 -translate-x-1 -translate-y-1/2 whitespace-nowrap rounded-md bg-ink px-2 py-1 text-[12px] text-paper opacity-0 transition-[opacity,translate] duration-200",
|
|
49
|
+
"group-hover/item:translate-x-0 group-hover/item:opacity-100 group-focus-visible/item:translate-x-0 group-focus-visible/item:opacity-100",
|
|
50
|
+
EASE
|
|
51
|
+
),
|
|
52
|
+
children
|
|
53
|
+
}
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
var itemCls = "group/item relative flex h-9 w-full items-center rounded-lg text-[14px] outline-none transition-colors duration-200 focus-visible:ring-2 focus-visible:ring-brand/50";
|
|
57
|
+
function Row({ it, on, collapsed, onClick, flat }) {
|
|
58
|
+
return /* @__PURE__ */ jsxs(
|
|
59
|
+
"button",
|
|
60
|
+
{
|
|
61
|
+
type: "button",
|
|
62
|
+
"data-sb-id": flat ? void 0 : it.id,
|
|
63
|
+
"aria-current": on ? "page" : void 0,
|
|
64
|
+
"aria-label": collapsed ? it.label : void 0,
|
|
65
|
+
onClick,
|
|
66
|
+
className: cx(itemCls, on ? cx("text-ink", flat && ON) : cx("text-ink-2 hover:text-ink", HOVER)),
|
|
67
|
+
children: [
|
|
68
|
+
/* @__PURE__ */ jsxs("span", { className: cx("relative flex w-10 shrink-0 justify-center transition-colors duration-200 [&_svg]:h-[18px] [&_svg]:w-[18px]", on ? "text-ink" : "text-mute group-hover/item:text-ink"), children: [
|
|
69
|
+
it.icon,
|
|
70
|
+
!!it.badge && /* @__PURE__ */ jsx(
|
|
71
|
+
"span",
|
|
72
|
+
{
|
|
73
|
+
className: cx(
|
|
74
|
+
"absolute right-2 top-0 h-1.5 w-1.5 rounded-full bg-brand shadow-[0_0_0_2px_var(--paper-2)] transition-[opacity,transform] duration-300",
|
|
75
|
+
EASE,
|
|
76
|
+
collapsed ? "scale-100 opacity-100" : "scale-50 opacity-0"
|
|
77
|
+
)
|
|
78
|
+
}
|
|
79
|
+
)
|
|
80
|
+
] }),
|
|
81
|
+
/* @__PURE__ */ jsx(Label, { hidden: collapsed, className: "relative", children: it.label }),
|
|
82
|
+
!!it.badge && /* @__PURE__ */ jsx(
|
|
83
|
+
"span",
|
|
84
|
+
{
|
|
85
|
+
className: cx(
|
|
86
|
+
"relative mr-2 rounded-md bg-[color-mix(in_srgb,var(--ink)_6%,transparent)] px-1.5 text-[11.5px] tabular-nums leading-5 text-mute transition-opacity duration-300",
|
|
87
|
+
collapsed ? "opacity-0" : "opacity-100"
|
|
88
|
+
),
|
|
89
|
+
children: it.badge
|
|
90
|
+
}
|
|
91
|
+
),
|
|
92
|
+
collapsed && /* @__PURE__ */ jsx(Tip, { children: it.label })
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
function Sidebar({
|
|
98
|
+
brand,
|
|
99
|
+
groups,
|
|
100
|
+
footer = [],
|
|
101
|
+
promo,
|
|
102
|
+
cta,
|
|
103
|
+
workspaces = [],
|
|
104
|
+
defaultWorkspace,
|
|
105
|
+
onWorkspaceChange,
|
|
106
|
+
active: activeProp,
|
|
107
|
+
defaultActive,
|
|
108
|
+
onNavigate,
|
|
109
|
+
collapsed: collapsedProp,
|
|
110
|
+
defaultCollapsed = false,
|
|
111
|
+
onCollapsedChange,
|
|
112
|
+
user,
|
|
113
|
+
className
|
|
114
|
+
}) {
|
|
115
|
+
const [activeState, setActive] = useState(defaultActive ?? groups[0]?.items[0]?.id ?? "");
|
|
116
|
+
const [collapsedState, setCollapsed] = useState(defaultCollapsed);
|
|
117
|
+
const [workspace, setWorkspace] = useState(defaultWorkspace ?? workspaces[0]?.id);
|
|
118
|
+
const [menu, setMenu] = useState(false);
|
|
119
|
+
const [promoOpen, setPromoOpen] = useState(true);
|
|
120
|
+
const active = activeProp ?? activeState;
|
|
121
|
+
const collapsed = collapsedProp ?? collapsedState;
|
|
122
|
+
const current = workspaces.find((w) => w.id === workspace) ?? workspaces[0];
|
|
123
|
+
const nav = useRef(null);
|
|
124
|
+
const indicator = useRef(null);
|
|
125
|
+
const placed = useRef(false);
|
|
126
|
+
const switcher = useRef(null);
|
|
127
|
+
const trigger = useRef(null);
|
|
128
|
+
useLayoutEffect(() => {
|
|
129
|
+
const ind = indicator.current;
|
|
130
|
+
const el = nav.current?.querySelector(`[data-sb-id="${CSS.escape(active)}"]`);
|
|
131
|
+
if (!ind) return;
|
|
132
|
+
if (!el) {
|
|
133
|
+
ind.style.opacity = "0";
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
if (!placed.current) ind.style.transition = "none";
|
|
137
|
+
ind.style.transform = `translateY(${el.offsetTop}px)`;
|
|
138
|
+
ind.style.opacity = "1";
|
|
139
|
+
if (!placed.current) {
|
|
140
|
+
void ind.offsetHeight;
|
|
141
|
+
ind.style.transition = "";
|
|
142
|
+
placed.current = true;
|
|
143
|
+
}
|
|
144
|
+
}, [active]);
|
|
145
|
+
useEffect(() => {
|
|
146
|
+
if (!menu) return;
|
|
147
|
+
switcher.current?.querySelector("[role=menuitemradio][aria-checked=true]")?.focus();
|
|
148
|
+
const down = (e) => {
|
|
149
|
+
if (!switcher.current?.contains(e.target)) setMenu(false);
|
|
150
|
+
};
|
|
151
|
+
document.addEventListener("pointerdown", down);
|
|
152
|
+
return () => document.removeEventListener("pointerdown", down);
|
|
153
|
+
}, [menu]);
|
|
154
|
+
const navigate = (id) => {
|
|
155
|
+
setActive(id);
|
|
156
|
+
onNavigate?.(id);
|
|
157
|
+
};
|
|
158
|
+
const toggle = () => {
|
|
159
|
+
setCollapsed(!collapsed);
|
|
160
|
+
onCollapsedChange?.(!collapsed);
|
|
161
|
+
};
|
|
162
|
+
const pick = (id) => {
|
|
163
|
+
setWorkspace(id);
|
|
164
|
+
onWorkspaceChange?.(id);
|
|
165
|
+
setMenu(false);
|
|
166
|
+
trigger.current?.focus();
|
|
167
|
+
};
|
|
168
|
+
const rove = (e, selector, root) => {
|
|
169
|
+
const els = [...root?.querySelectorAll(selector) ?? []];
|
|
170
|
+
const i = els.indexOf(document.activeElement);
|
|
171
|
+
const next = { ArrowDown: i + 1, ArrowUp: i - 1, Home: 0, End: els.length - 1 }[e.key];
|
|
172
|
+
if (next === void 0 || !els.length) return;
|
|
173
|
+
e.preventDefault();
|
|
174
|
+
els[(next + els.length) % els.length]?.focus();
|
|
175
|
+
};
|
|
176
|
+
return /* @__PURE__ */ jsxs(
|
|
177
|
+
"aside",
|
|
178
|
+
{
|
|
179
|
+
"aria-label": "Sidebar",
|
|
180
|
+
"data-collapsed": collapsed || void 0,
|
|
181
|
+
className: cx(
|
|
182
|
+
// perf-ok: the width glide is deliberate. It runs once per click, and the page beside the sidebar has to follow it; a transform would leave a gap or overlap the content.
|
|
183
|
+
"relative flex h-full shrink-0 flex-col bg-paper-2 px-3 py-3 shadow-[inset_-1px_0_0_color-mix(in_srgb,var(--ink)_8%,transparent)] transition-[width] duration-500",
|
|
184
|
+
EASE,
|
|
185
|
+
collapsed ? "w-16" : "w-[248px]",
|
|
186
|
+
className
|
|
187
|
+
),
|
|
188
|
+
children: [
|
|
189
|
+
/* @__PURE__ */ jsx("style", { href: "asta-sidebar", precedence: "asta", children: `
|
|
190
|
+
@keyframes kit-sb-pop { from { opacity: 0; transform: translateY(4px) scale(.98); } to { opacity: 1; transform: none; } }
|
|
191
|
+
@keyframes kit-sb-fade { from { opacity: 0; } to { opacity: 1; } }
|
|
192
|
+
@media (prefers-reduced-motion: reduce) { .kit-sb, .kit-sb * { animation: none !important; transition-duration: 0s !important; } }
|
|
193
|
+
` }),
|
|
194
|
+
/* @__PURE__ */ jsxs("div", { className: "kit-sb flex min-h-0 flex-1 flex-col", children: [
|
|
195
|
+
/* @__PURE__ */ jsxs("div", { className: "flex h-11 shrink-0 items-center", children: [
|
|
196
|
+
/* @__PURE__ */ jsx(Label, { hidden: collapsed, className: "pl-3 text-[19px] font-semibold tracking-[-0.03em] text-ink", children: brand ?? current?.name }),
|
|
197
|
+
/* @__PURE__ */ jsxs(
|
|
198
|
+
"button",
|
|
199
|
+
{
|
|
200
|
+
type: "button",
|
|
201
|
+
"aria-pressed": collapsed,
|
|
202
|
+
"aria-label": collapsed ? "Expand sidebar" : "Collapse sidebar",
|
|
203
|
+
onClick: toggle,
|
|
204
|
+
className: cx(
|
|
205
|
+
"group/item relative flex h-9 w-10 shrink-0 items-center justify-center rounded-lg text-mute outline-none transition-colors duration-200 hover:text-ink focus-visible:ring-2 focus-visible:ring-brand/50",
|
|
206
|
+
HOVER
|
|
207
|
+
),
|
|
208
|
+
children: [
|
|
209
|
+
/* @__PURE__ */ jsx(Icon, { d: "M2.5 3.5h11v9h-11zM6 3.5v9M10.5 6.5 9 8l1.5 1.5", className: cx("transition-transform duration-500", EASE, collapsed && "-scale-x-100") }),
|
|
210
|
+
collapsed && /* @__PURE__ */ jsx(Tip, { children: "Expand" })
|
|
211
|
+
]
|
|
212
|
+
}
|
|
213
|
+
)
|
|
214
|
+
] }),
|
|
215
|
+
/* @__PURE__ */ jsx(
|
|
216
|
+
"nav",
|
|
217
|
+
{
|
|
218
|
+
"aria-label": "Main",
|
|
219
|
+
className: cx("-mx-1 mt-3 min-h-0 flex-1 px-1 [scrollbar-width:none]", collapsed ? "overflow-visible" : "overflow-y-auto overscroll-contain [mask-image:linear-gradient(to_bottom,black_calc(100%-20px),transparent)]"),
|
|
220
|
+
onKeyDown: (e) => rove(e, "[data-sb-id]", nav.current),
|
|
221
|
+
children: /* @__PURE__ */ jsxs("div", { ref: nav, className: "relative pb-2", children: [
|
|
222
|
+
/* @__PURE__ */ jsx(
|
|
223
|
+
"span",
|
|
224
|
+
{
|
|
225
|
+
ref: indicator,
|
|
226
|
+
"aria-hidden": true,
|
|
227
|
+
className: cx("absolute inset-x-0 top-0 h-9 rounded-lg opacity-0 transition-[transform,opacity] duration-500", ON, EASE)
|
|
228
|
+
}
|
|
229
|
+
),
|
|
230
|
+
groups.map((g, gi) => /* @__PURE__ */ jsxs("div", { className: cx(gi > 0 && "mt-5"), children: [
|
|
231
|
+
g.label && /* @__PURE__ */ jsxs("div", { className: "relative flex h-8 items-center px-3", "aria-hidden": collapsed || void 0, children: [
|
|
232
|
+
/* @__PURE__ */ jsx("span", { className: cx("text-[13px] text-mute transition-opacity duration-300", collapsed ? "opacity-0" : "opacity-100"), children: g.label }),
|
|
233
|
+
/* @__PURE__ */ jsx(
|
|
234
|
+
"span",
|
|
235
|
+
{
|
|
236
|
+
className: cx(
|
|
237
|
+
"absolute left-1/2 h-px w-3 -translate-x-1/2 bg-[color-mix(in_srgb,var(--ink)_14%,transparent)] transition-opacity duration-300",
|
|
238
|
+
collapsed ? "opacity-100" : "opacity-0"
|
|
239
|
+
)
|
|
240
|
+
}
|
|
241
|
+
)
|
|
242
|
+
] }),
|
|
243
|
+
/* @__PURE__ */ jsx("ul", { className: "flex flex-col gap-0.5", children: g.items.map((it) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(Row, { it, on: it.id === active, collapsed, onClick: () => navigate(it.id) }) }, it.id)) })
|
|
244
|
+
] }, g.label ?? gi))
|
|
245
|
+
] })
|
|
246
|
+
}
|
|
247
|
+
),
|
|
248
|
+
promo && promoOpen && !collapsed && /* @__PURE__ */ jsxs(
|
|
249
|
+
"div",
|
|
250
|
+
{
|
|
251
|
+
className: cx("group/promo relative mt-3 min-w-[222px] shrink-0 rounded-xl bg-paper p-4", RING, promo.onClick && "transition-colors hover:bg-[color-mix(in_srgb,var(--ink)_2%,var(--paper))]"),
|
|
252
|
+
style: { animation: "kit-sb-fade .3s .25s cubic-bezier(.16,1,.3,1) both" },
|
|
253
|
+
children: [
|
|
254
|
+
promo.icon && /* @__PURE__ */ jsx("span", { className: "mb-3 flex h-8 w-8 items-center justify-center rounded-full bg-paper-2 text-mute [&_svg]:h-4 [&_svg]:w-4", children: promo.icon }),
|
|
255
|
+
promo.onClick ? /* @__PURE__ */ jsx("button", { type: "button", onClick: promo.onClick, className: "block text-left text-[14px] font-medium text-ink outline-none after:absolute after:inset-0 after:rounded-xl focus-visible:after:ring-2 focus-visible:after:ring-brand/50", children: promo.title }) : /* @__PURE__ */ jsx("p", { className: "text-[14px] font-medium text-ink", children: promo.title }),
|
|
256
|
+
promo.text && /* @__PURE__ */ jsx("p", { className: "mt-1 text-[13px] leading-snug text-mute", children: promo.text }),
|
|
257
|
+
promo.onDismiss && /* @__PURE__ */ jsx(
|
|
258
|
+
"button",
|
|
259
|
+
{
|
|
260
|
+
type: "button",
|
|
261
|
+
"aria-label": `Dismiss ${promo.title}`,
|
|
262
|
+
onClick: () => {
|
|
263
|
+
setPromoOpen(false);
|
|
264
|
+
promo.onDismiss?.();
|
|
265
|
+
},
|
|
266
|
+
className: "absolute right-2 top-2 z-10 flex h-7 w-7 items-center justify-center rounded-md text-mute outline-none transition-colors hover:bg-paper-2 hover:text-ink focus-visible:ring-2 focus-visible:ring-brand/50",
|
|
267
|
+
children: /* @__PURE__ */ jsx(Icon, { d: "M4.5 4.5l7 7M11.5 4.5l-7 7", className: "h-3.5 w-3.5" })
|
|
268
|
+
}
|
|
269
|
+
)
|
|
270
|
+
]
|
|
271
|
+
}
|
|
272
|
+
),
|
|
273
|
+
footer.length > 0 && /* @__PURE__ */ jsx("ul", { className: "mt-2 flex shrink-0 flex-col gap-0.5", children: footer.map((it) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(Row, { it, on: it.id === active, collapsed, onClick: () => navigate(it.id), flat: true }) }, it.id)) }),
|
|
274
|
+
cta && /* @__PURE__ */ jsxs(
|
|
275
|
+
"button",
|
|
276
|
+
{
|
|
277
|
+
type: "button",
|
|
278
|
+
onClick: cta.onClick,
|
|
279
|
+
"aria-label": collapsed ? cta.label : void 0,
|
|
280
|
+
className: cx(itemCls, "mt-2 h-10 shrink-0 overflow-visible bg-paper font-medium text-ink", RING, "hover:bg-[color-mix(in_srgb,var(--ink)_3%,var(--paper))]"),
|
|
281
|
+
children: [
|
|
282
|
+
/* @__PURE__ */ jsx(
|
|
283
|
+
"span",
|
|
284
|
+
{
|
|
285
|
+
"aria-hidden": true,
|
|
286
|
+
className: cx(
|
|
287
|
+
"pointer-events-none absolute inset-y-0 right-0 w-3/5 rounded-r-lg bg-[repeating-linear-gradient(-45deg,color-mix(in_srgb,var(--ink)_9%,transparent)_0_1px,transparent_1px_6px)] [mask-image:linear-gradient(to_right,transparent,black)] transition-opacity duration-300",
|
|
288
|
+
collapsed ? "opacity-0" : "opacity-100"
|
|
289
|
+
)
|
|
290
|
+
}
|
|
291
|
+
),
|
|
292
|
+
/* @__PURE__ */ jsx("span", { className: "relative flex w-10 shrink-0 justify-center", children: /* @__PURE__ */ jsx("span", { className: "flex h-5 w-5 items-center justify-center rounded-full bg-ink text-paper [&_svg]:h-3 [&_svg]:w-3", children: cta.icon ?? /* @__PURE__ */ jsx(Icon, { d: "M9 1.5 3.5 9H8l-1 5.5L12.5 7H8z" }) }) }),
|
|
293
|
+
/* @__PURE__ */ jsx(Label, { hidden: collapsed, className: "relative", children: /* @__PURE__ */ jsx("span", { className: "block text-center", children: cta.label }) }),
|
|
294
|
+
!collapsed && /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "w-10 shrink-0" }),
|
|
295
|
+
collapsed && /* @__PURE__ */ jsx(Tip, { children: cta.label })
|
|
296
|
+
]
|
|
297
|
+
}
|
|
298
|
+
),
|
|
299
|
+
current && /* @__PURE__ */ jsxs("div", { ref: switcher, className: "relative mt-2 shrink-0", children: [
|
|
300
|
+
/* @__PURE__ */ jsxs(
|
|
301
|
+
"button",
|
|
302
|
+
{
|
|
303
|
+
ref: trigger,
|
|
304
|
+
type: "button",
|
|
305
|
+
"aria-haspopup": "menu",
|
|
306
|
+
"aria-expanded": menu,
|
|
307
|
+
"aria-label": collapsed ? `Workspace: ${current.name}` : void 0,
|
|
308
|
+
onClick: () => setMenu((v) => !v),
|
|
309
|
+
onKeyDown: (e) => {
|
|
310
|
+
if (e.key === "ArrowUp" && !menu) {
|
|
311
|
+
e.preventDefault();
|
|
312
|
+
setMenu(true);
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
className: cx(itemCls, "h-10 text-ink", HOVER, "aria-expanded:bg-[color-mix(in_srgb,var(--ink)_5%,transparent)]"),
|
|
316
|
+
children: [
|
|
317
|
+
/* @__PURE__ */ jsx("span", { className: "flex w-10 shrink-0 justify-center", children: /* @__PURE__ */ jsx(Logo, { w: current }) }),
|
|
318
|
+
/* @__PURE__ */ jsx(Label, { hidden: collapsed, className: "truncate", children: current.name }),
|
|
319
|
+
/* @__PURE__ */ jsx(
|
|
320
|
+
Icon,
|
|
321
|
+
{
|
|
322
|
+
d: "m5.5 6 2.5-2.5L10.5 6M5.5 10l2.5 2.5 2.5-2.5",
|
|
323
|
+
className: cx("mr-2 shrink-0 text-mute transition-opacity duration-300", collapsed ? "opacity-0" : "opacity-100")
|
|
324
|
+
}
|
|
325
|
+
),
|
|
326
|
+
collapsed && /* @__PURE__ */ jsx(Tip, { children: current.name })
|
|
327
|
+
]
|
|
328
|
+
}
|
|
329
|
+
),
|
|
330
|
+
menu && /* @__PURE__ */ jsxs(
|
|
331
|
+
"div",
|
|
332
|
+
{
|
|
333
|
+
role: "menu",
|
|
334
|
+
"aria-label": "Switch workspace",
|
|
335
|
+
onKeyDown: (e) => {
|
|
336
|
+
if (e.key === "Escape" || e.key === "Tab") {
|
|
337
|
+
if (e.key === "Escape") e.preventDefault();
|
|
338
|
+
setMenu(false);
|
|
339
|
+
trigger.current?.focus();
|
|
340
|
+
} else rove(e, "[role=menuitemradio]", e.currentTarget);
|
|
341
|
+
},
|
|
342
|
+
className: "absolute bottom-[calc(100%+6px)] left-0 z-30 w-[232px] origin-bottom-left rounded-xl bg-paper p-1.5 shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent),0_16px_36px_-14px_rgb(0_0_0/0.3)]",
|
|
343
|
+
style: { animation: "kit-sb-pop .28s cubic-bezier(.16,1,.3,1) both" },
|
|
344
|
+
children: [
|
|
345
|
+
/* @__PURE__ */ jsx("p", { className: "px-2 pb-1.5 pt-1 text-[11.5px] text-mute", children: "Workspaces" }),
|
|
346
|
+
workspaces.map((w) => {
|
|
347
|
+
const on = w.id === current.id;
|
|
348
|
+
return /* @__PURE__ */ jsxs(
|
|
349
|
+
"button",
|
|
350
|
+
{
|
|
351
|
+
type: "button",
|
|
352
|
+
role: "menuitemradio",
|
|
353
|
+
"aria-checked": on,
|
|
354
|
+
onClick: () => pick(w.id),
|
|
355
|
+
className: "flex w-full items-center gap-2.5 rounded-lg px-2 py-1.5 text-left outline-none transition-colors hover:bg-paper-2 focus-visible:bg-paper-2",
|
|
356
|
+
children: [
|
|
357
|
+
/* @__PURE__ */ jsx(Logo, { w, size: "md" }),
|
|
358
|
+
/* @__PURE__ */ jsxs("span", { className: "flex min-w-0 flex-1 flex-col leading-tight", children: [
|
|
359
|
+
/* @__PURE__ */ jsx("span", { className: "truncate text-[13.5px] text-ink", children: w.name }),
|
|
360
|
+
w.plan && /* @__PURE__ */ jsx("span", { className: "truncate text-[11.5px] text-mute", children: w.plan })
|
|
361
|
+
] }),
|
|
362
|
+
on && /* @__PURE__ */ jsx(Icon, { d: "M3.5 8.5l3 3 6-7", className: "shrink-0 text-brand" })
|
|
363
|
+
]
|
|
364
|
+
},
|
|
365
|
+
w.id
|
|
366
|
+
);
|
|
367
|
+
})
|
|
368
|
+
]
|
|
369
|
+
}
|
|
370
|
+
)
|
|
371
|
+
] }),
|
|
372
|
+
user && /* @__PURE__ */ jsxs("div", { className: "mt-2 flex h-12 shrink-0 items-center rounded-lg", children: [
|
|
373
|
+
/* @__PURE__ */ jsx("span", { className: "flex w-10 shrink-0 justify-center", children: /* @__PURE__ */ jsx(Avatar, { name: user.name, src: user.src, size: "sm" }) }),
|
|
374
|
+
/* @__PURE__ */ jsxs(Label, { hidden: collapsed, className: "flex flex-col pl-1 leading-tight", children: [
|
|
375
|
+
/* @__PURE__ */ jsx("span", { className: "truncate text-[13px] font-medium text-ink", children: user.name }),
|
|
376
|
+
/* @__PURE__ */ jsx("span", { className: "truncate text-[11.5px] text-mute", children: user.email })
|
|
377
|
+
] })
|
|
378
|
+
] })
|
|
379
|
+
] })
|
|
380
|
+
]
|
|
381
|
+
}
|
|
382
|
+
);
|
|
383
|
+
}
|
|
384
|
+
var sidebar_default = Sidebar;
|
|
385
|
+
|
|
386
|
+
export {
|
|
387
|
+
Sidebar,
|
|
388
|
+
sidebar_default
|
|
389
|
+
};
|
|
@@ -49,7 +49,7 @@ function Tick({ on }) {
|
|
|
49
49
|
{
|
|
50
50
|
className: cx(
|
|
51
51
|
"relative flex h-4 w-4 shrink-0 items-center justify-center rounded-full transition-[background-color,box-shadow] duration-300",
|
|
52
|
-
on ? "bg-brand text-
|
|
52
|
+
on ? "bg-brand text-on-brand" : "shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_20%,transparent)]"
|
|
53
53
|
),
|
|
54
54
|
children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "h-2.5 w-2.5", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx(
|
|
55
55
|
"path",
|
|
@@ -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/onboarding.tsx
|
|
7
7
|
import { useId, useRef, useState } from "react";
|
|
@@ -27,7 +27,7 @@ function Mark({ done, current }) {
|
|
|
27
27
|
"span",
|
|
28
28
|
{
|
|
29
29
|
className: cx(
|
|
30
|
-
"absolute inset-0 flex items-center justify-center rounded-full bg-brand text-
|
|
30
|
+
"absolute inset-0 flex items-center justify-center rounded-full bg-brand text-on-brand transition-[opacity,transform] duration-500",
|
|
31
31
|
EASE,
|
|
32
32
|
done ? "scale-100 opacity-100" : "scale-50 opacity-0"
|
|
33
33
|
),
|
|
@@ -81,7 +81,7 @@ function Onboarding({ title = "Get set up", subtitle, steps, defaultCompleted =
|
|
|
81
81
|
@media (prefers-reduced-motion: reduce) { .kit-ob, .kit-ob * { animation: none !important; transition-duration: 0s !important; } }
|
|
82
82
|
` }),
|
|
83
83
|
finished ? /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center px-8 py-12 text-center", style: { animation: `kit-ob-in .5s ${CURVE} both` }, children: [
|
|
84
|
-
/* @__PURE__ */ jsx("span", { className: "flex h-12 w-12 items-center justify-center rounded-full bg-brand text-
|
|
84
|
+
/* @__PURE__ */ jsx("span", { className: "flex h-12 w-12 items-center justify-center rounded-full bg-brand text-on-brand", style: { animation: `kit-ob-pop .6s ${CURVE} .1s both` }, children: /* @__PURE__ */ jsx(Check, { className: "h-6 w-6" }) }),
|
|
85
85
|
/* @__PURE__ */ jsx("h3", { className: "mt-5 text-[18px] font-medium tracking-[-0.02em] text-ink", children: "You are all set" }),
|
|
86
86
|
/* @__PURE__ */ jsx("p", { className: "mt-1.5 max-w-[30ch] text-[13.5px] leading-relaxed text-mute", children: "Every step is done. You can come back to this list from Settings." }),
|
|
87
87
|
/* @__PURE__ */ jsxs("div", { className: "mt-6 flex gap-2", children: [
|
|
@@ -211,7 +211,7 @@ function ReviewTextarea({
|
|
|
211
211
|
},
|
|
212
212
|
className: cx(
|
|
213
213
|
"group inline-flex h-9 shrink-0 items-center gap-1.5 whitespace-nowrap rounded-[8px] px-4 text-[13.5px] font-medium outline-none transition-[background-color,color,transform] duration-300 active:scale-[.97] focus-visible:ring-2 focus-visible:ring-brand/50 focus-visible:ring-offset-2",
|
|
214
|
-
ready ? "bg-ink text-paper" : sent ? "bg-brand text-
|
|
214
|
+
ready ? "bg-ink text-paper" : sent ? "bg-brand text-on-brand" : "bg-paper-2 text-mute"
|
|
215
215
|
),
|
|
216
216
|
children: [
|
|
217
217
|
sent ? "Posted" : "Post review",
|
|
@@ -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/SeatPicker.tsx
|
|
4
8
|
import { useEffect, useRef, useState } from "react";
|
|
@@ -38,21 +42,18 @@ function SeatPicker() {
|
|
|
38
42
|
const [sel, setSel] = useState([]);
|
|
39
43
|
const [taken, setTaken] = useState(TAKEN);
|
|
40
44
|
const [focus, setFocus] = useState(SEATS.indexOf("D4"));
|
|
41
|
-
const [
|
|
45
|
+
const [held, takeOverDemo] = useTakeOver(8e3);
|
|
46
|
+
const root = useRef(null);
|
|
47
|
+
const visible = useInView(root);
|
|
48
|
+
const paused = held || !visible;
|
|
42
49
|
const selRef = useRef([]);
|
|
43
50
|
const btns = useRef([]);
|
|
44
|
-
const idle = useRef(null);
|
|
45
51
|
const toggle = (s) => {
|
|
46
52
|
const next = selRef.current.includes(s) ? selRef.current.filter((x) => x !== s) : [...selRef.current, s];
|
|
47
53
|
selRef.current = next;
|
|
48
54
|
setSel(next);
|
|
49
55
|
};
|
|
50
|
-
const takeOver =
|
|
51
|
-
setPaused(true);
|
|
52
|
-
if (idle.current) clearTimeout(idle.current);
|
|
53
|
-
idle.current = setTimeout(() => setPaused(false), 8e3);
|
|
54
|
-
};
|
|
55
|
-
useEffect(() => () => void (idle.current && clearTimeout(idle.current)), []);
|
|
56
|
+
const takeOver = takeOverDemo;
|
|
56
57
|
useEffect(() => {
|
|
57
58
|
if (paused || still()) return;
|
|
58
59
|
let n = 0;
|
|
@@ -74,7 +75,7 @@ function SeatPicker() {
|
|
|
74
75
|
return () => clearTimeout(id);
|
|
75
76
|
}, [paused]);
|
|
76
77
|
useEffect(() => {
|
|
77
|
-
if (still()) return;
|
|
78
|
+
if (still() || !visible) return;
|
|
78
79
|
const id = setInterval(() => {
|
|
79
80
|
const r = Math.random();
|
|
80
81
|
setTaken((t) => {
|
|
@@ -85,7 +86,7 @@ function SeatPicker() {
|
|
|
85
86
|
});
|
|
86
87
|
}, 3400);
|
|
87
88
|
return () => clearInterval(id);
|
|
88
|
-
}, []);
|
|
89
|
+
}, [visible]);
|
|
89
90
|
const pick = (s, i) => {
|
|
90
91
|
setFocus(i);
|
|
91
92
|
if (taken.includes(s)) return;
|
|
@@ -102,7 +103,7 @@ function SeatPicker() {
|
|
|
102
103
|
btns.current[n]?.focus();
|
|
103
104
|
};
|
|
104
105
|
const total = sel.length * PRICE;
|
|
105
|
-
return /* @__PURE__ */ jsxs("div", { className: "flex h-full w-full items-center justify-center px-5 pb-5 pt-11", style: { containerType: "size" }, children: [
|
|
106
|
+
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: [
|
|
106
107
|
/* @__PURE__ */ jsx("style", { href: "asta-seatpicker", precedence: "asta", children: `
|
|
107
108
|
.lab-sp-map { width: min(100%, 340px, calc(48cqh * 1.55)) }
|
|
108
109
|
.lab-sp-legend { display: none }
|
|
@@ -9,14 +9,16 @@ function SnapGrid() {
|
|
|
9
9
|
const [dragging, setDragging] = useState(false);
|
|
10
10
|
const area = useRef(null);
|
|
11
11
|
const off = useRef({ x: 0, y: 0 });
|
|
12
|
+
const box = useRef(null);
|
|
12
13
|
const down = (e) => {
|
|
13
14
|
e.currentTarget.setPointerCapture(e.pointerId);
|
|
15
|
+
box.current = area.current.getBoundingClientRect();
|
|
14
16
|
off.current = { x: e.clientX - pos.x, y: e.clientY - pos.y };
|
|
15
17
|
setDragging(true);
|
|
16
18
|
};
|
|
17
19
|
const move = (e) => {
|
|
18
20
|
if (!dragging) return;
|
|
19
|
-
const r = area.current.getBoundingClientRect();
|
|
21
|
+
const r = box.current ?? (box.current = area.current.getBoundingClientRect());
|
|
20
22
|
setPos({
|
|
21
23
|
x: Math.max(0, Math.min(r.width - CELL, e.clientX - off.current.x)),
|
|
22
24
|
y: Math.max(0, Math.min(r.height - CELL, e.clientY - off.current.y))
|
|
@@ -25,7 +27,7 @@ function SnapGrid() {
|
|
|
25
27
|
const up = () => {
|
|
26
28
|
if (!dragging) return;
|
|
27
29
|
setDragging(false);
|
|
28
|
-
const r = area.current.getBoundingClientRect();
|
|
30
|
+
const r = box.current ?? (box.current = area.current.getBoundingClientRect());
|
|
29
31
|
const maxX = Math.floor(r.width / CELL) - 1;
|
|
30
32
|
const maxY = Math.floor(r.height / CELL) - 1;
|
|
31
33
|
setPos((p) => ({
|
|
@@ -43,7 +45,7 @@ function SnapGrid() {
|
|
|
43
45
|
ref: area,
|
|
44
46
|
className: "relative h-[176px] w-[264px] border border-line",
|
|
45
47
|
style: {
|
|
46
|
-
backgroundImage: "linear-gradient(
|
|
48
|
+
backgroundImage: "linear-gradient(color-mix(in srgb, var(--ink) 8%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--ink) 8%, transparent) 1px, transparent 1px)",
|
|
47
49
|
backgroundSize: `${CELL}px ${CELL}px`,
|
|
48
50
|
backgroundPosition: "-1px -1px",
|
|
49
51
|
backgroundColor: "transparent",
|
|
@@ -65,8 +67,8 @@ function SnapGrid() {
|
|
|
65
67
|
onPointerMove: move,
|
|
66
68
|
onPointerUp: up,
|
|
67
69
|
onPointerCancel: up,
|
|
68
|
-
className: `absolute grid cursor-grab place-items-center bg-signal text-paper [touch-action:none] active:cursor-grabbing ${dragging ? "scale-110 shadow-[0_10px_30px_color-mix(in_srgb,var(--signal)_25%,transparent)]" : "transition-
|
|
69
|
-
style: {
|
|
70
|
+
className: `absolute left-0 top-0 grid cursor-grab place-items-center bg-signal text-paper [touch-action:none] active:cursor-grabbing ${dragging ? "scale-110 shadow-[0_10px_30px_color-mix(in_srgb,var(--signal)_25%,transparent)]" : "transition-transform duration-500 ease-[cubic-bezier(.5,1.8,.4,.8)]"}`,
|
|
71
|
+
style: { transform: `translate(${pos.x}px, ${pos.y}px)`, width: CELL, height: CELL },
|
|
70
72
|
children: /* @__PURE__ */ jsx("span", { className: "font-mono text-[11px] uppercase tracking-[0.08em]", children: "AB" })
|
|
71
73
|
}
|
|
72
74
|
)
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
useInView
|
|
4
|
+
} from "./chunk-FS2PZKJY.js";
|
|
2
5
|
|
|
3
6
|
// components/lab/blocks/CardCheckout.tsx
|
|
4
7
|
import { useEffect, useRef, useState } from "react";
|
|
5
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
9
|
var EASE = "cubic-bezier(.16,1,.3,1)";
|
|
7
10
|
var DEMO = { number: "4242424242424242", name: "ALEX MORGAN", exp: "1229", cvc: "123" };
|
|
8
|
-
var INK = "
|
|
11
|
+
var INK = "var(--ink)";
|
|
9
12
|
var sleep = (ms) => new Promise((r) => setTimeout(r, ms));
|
|
10
13
|
var DOODLES = [
|
|
11
14
|
{ d: "M9 22h14a5 5 0 0 0 .6-9.96A7 7 0 0 0 10.2 13 4.5 4.5 0 0 0 9 22Z M14 17l2 2 3-4", x: 33, y: 3, s: 15, r: -6 },
|
|
@@ -33,8 +36,22 @@ function CardCheckout() {
|
|
|
33
36
|
const [fade, setFade] = useState(false);
|
|
34
37
|
const [tilt, setTilt] = useState({ x: 0, y: 0 });
|
|
35
38
|
const input = useRef(null);
|
|
39
|
+
const root = useRef(null);
|
|
40
|
+
const visible = useInView(root);
|
|
41
|
+
const box = useRef(null);
|
|
36
42
|
useEffect(() => {
|
|
37
|
-
|
|
43
|
+
const forget = () => {
|
|
44
|
+
box.current = null;
|
|
45
|
+
};
|
|
46
|
+
window.addEventListener("scroll", forget, { capture: true, passive: true });
|
|
47
|
+
window.addEventListener("resize", forget);
|
|
48
|
+
return () => {
|
|
49
|
+
window.removeEventListener("scroll", forget, { capture: true });
|
|
50
|
+
window.removeEventListener("resize", forget);
|
|
51
|
+
};
|
|
52
|
+
}, []);
|
|
53
|
+
useEffect(() => {
|
|
54
|
+
if (user || !visible) return;
|
|
38
55
|
let dead = false;
|
|
39
56
|
const still = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
40
57
|
const run = async () => {
|
|
@@ -91,9 +108,9 @@ function CardCheckout() {
|
|
|
91
108
|
return () => {
|
|
92
109
|
dead = true;
|
|
93
110
|
};
|
|
94
|
-
}, [user]);
|
|
111
|
+
}, [user, visible]);
|
|
95
112
|
const onMove = (e) => {
|
|
96
|
-
const r = e.currentTarget.getBoundingClientRect();
|
|
113
|
+
const r = box.current ?? (box.current = e.currentTarget.getBoundingClientRect());
|
|
97
114
|
const px = (e.clientX - r.left) / r.width;
|
|
98
115
|
const py = (e.clientY - r.top) / r.height;
|
|
99
116
|
setTilt({ x: (0.5 - py) * 12, y: (px - 0.5) * 16 });
|
|
@@ -109,6 +126,7 @@ function CardCheckout() {
|
|
|
109
126
|
return /* @__PURE__ */ jsxs(
|
|
110
127
|
"div",
|
|
111
128
|
{
|
|
129
|
+
ref: root,
|
|
112
130
|
className: "flex h-full w-full flex-col items-center justify-center gap-6 px-6 pb-5 pt-12",
|
|
113
131
|
style: { containerType: "size" },
|
|
114
132
|
onPointerMove: onMove,
|
|
@@ -137,13 +155,13 @@ function CardCheckout() {
|
|
|
137
155
|
"div",
|
|
138
156
|
{
|
|
139
157
|
className: "absolute inset-0 overflow-hidden rounded-[6%/9.5%] text-left",
|
|
140
|
-
style: { containerType: "inline-size", background: "linear-gradient(160deg,
|
|
158
|
+
style: { containerType: "inline-size", background: "linear-gradient(160deg, var(--paper-2), color-mix(in srgb, var(--ink) 9%, var(--paper-2)))", boxShadow: shadow, color: INK },
|
|
141
159
|
children: [
|
|
142
|
-
/* @__PURE__ */ jsx("div", { className: "absolute inset-x-0 top-[11%] h-[18%] bg-[
|
|
160
|
+
/* @__PURE__ */ jsx("div", { className: "absolute inset-x-0 top-[11%] h-[18%] bg-[color-mix(in_srgb,var(--ink)_28%,var(--paper))]" }),
|
|
143
161
|
/* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: "absolute right-[8%] top-[38%] h-[7cqw] w-[7cqw] opacity-50", fill: "none", stroke: "currentColor", strokeWidth: "1.6", strokeLinecap: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "M8.5 7.5a6 6 0 0 1 0 9M12 5a9.5 9.5 0 0 1 0 14M5 10a2.5 2.5 0 0 1 0 4" }) }),
|
|
144
162
|
/* @__PURE__ */ jsxs("div", { className: "absolute left-[8%] top-[40%] flex items-center gap-[2.5cqw]", children: [
|
|
145
163
|
/* @__PURE__ */ jsx("div", { className: "h-[9cqw] w-[38cqw] rounded-[1cqw] bg-[repeating-linear-gradient(90deg,rgb(0_0_0/0.07)_0_5px,rgb(0_0_0/0.03)_5px_10px)]" }),
|
|
146
|
-
/* @__PURE__ */ jsx("div", { className: "grid h-[9cqw] w-[16cqw] place-items-center rounded-[1cqw] bg-
|
|
164
|
+
/* @__PURE__ */ jsx("div", { className: "grid h-[9cqw] w-[16cqw] place-items-center rounded-[1cqw] bg-paper font-mono text-[4.6cqw] tabular-nums shadow-[inset_0_0_0_1px_rgb(0_0_0/0.08)]", children: /* @__PURE__ */ jsx("span", { className: "flex", children: [0, 1, 2].map((i) => /* @__PURE__ */ jsx("span", { className: cvc[i] ? "lab-cc-in" : "opacity-25", children: cvc[i] ?? "\u2022" }, `${i}-${cvc[i] ?? "_"}`)) }) })
|
|
147
165
|
] }),
|
|
148
166
|
/* @__PURE__ */ jsx("div", { className: "absolute left-[8%] top-[60%] text-[2.6cqw] uppercase tracking-[0.14em] opacity-50", children: "CVC" }),
|
|
149
167
|
/* @__PURE__ */ jsxs("div", { className: "absolute bottom-[9%] right-[8%] text-right leading-none", children: [
|
|
@@ -157,11 +175,11 @@ function CardCheckout() {
|
|
|
157
175
|
"div",
|
|
158
176
|
{
|
|
159
177
|
className: "absolute inset-0 overflow-hidden rounded-[6%/9.5%] text-left",
|
|
160
|
-
style: { containerType: "inline-size", background: "linear-gradient(165deg,
|
|
178
|
+
style: { containerType: "inline-size", background: "linear-gradient(165deg, var(--paper), var(--paper-2))", boxShadow: shadow, color: INK },
|
|
161
179
|
children: [
|
|
162
180
|
/* @__PURE__ */ jsx("svg", { viewBox: "0 0 100 63", className: "pointer-events-none absolute inset-0 h-full w-full", fill: "none", stroke: INK, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: DOODLES.map((o, i) => /* @__PURE__ */ jsx("g", { transform: `translate(${o.x} ${o.y * 63 / 100}) rotate(${o.r} ${o.s / 2} ${o.s / 2}) scale(${o.s / 32})`, children: /* @__PURE__ */ jsx("path", { d: o.d, strokeWidth: 0.5 * (32 / o.s) }) }, i)) }),
|
|
163
181
|
/* @__PURE__ */ jsx("div", { className: "absolute right-[7%] top-[7%] text-[3.6cqw] tracking-[0.04em] text-black/55", children: "Astabyte" }),
|
|
164
|
-
/* @__PURE__ */ jsxs("div", { className: "absolute left-[8%] top-[34%] h-[11cqw] w-[15cqw] rounded-[2cqw] bg-gradient-to-br from-[
|
|
182
|
+
/* @__PURE__ */ jsxs("div", { className: "absolute left-[8%] top-[34%] h-[11cqw] w-[15cqw] rounded-[2cqw] bg-gradient-to-br from-[color-mix(in_srgb,var(--ink)_7%,var(--paper))] to-[color-mix(in_srgb,var(--ink)_20%,var(--paper))] shadow-[inset_0_0_0_1px_rgb(0_0_0/0.12)]", children: [
|
|
165
183
|
/* @__PURE__ */ jsx("span", { className: "absolute inset-x-[32%] inset-y-0 border-x border-black/15" }),
|
|
166
184
|
/* @__PURE__ */ jsx("span", { className: "absolute inset-x-0 top-1/2 border-t border-black/15" })
|
|
167
185
|
] }),
|