asta-ui 0.9.7 → 0.9.9
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/bin/asta-ui.mjs +43 -7
- package/css/asta.css +2 -2
- package/css/asta.js +192 -45
- package/css/components.css +92 -81
- 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 +110 -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 +32 -21
- package/css/tokens.css +3 -0
- package/dist/accordion.js +1 -1
- 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 +2 -2
- 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/accordion.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 +2 -2
- 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 +3 -3
- package/dist/base/booking-slots.js +2 -1
- package/dist/base/breadcrumb.js +1 -1
- package/dist/base/button-aui-064.d.ts +2 -0
- package/dist/base/button-aui-064.js +11 -0
- package/dist/base/button-aui-065.d.ts +2 -0
- package/dist/base/button-aui-065.js +9 -0
- package/dist/base/button-aui-066.d.ts +2 -0
- package/dist/base/button-aui-066.js +11 -0
- package/dist/base/button-aui-067.d.ts +2 -0
- package/dist/base/button-aui-067.js +9 -0
- package/dist/base/button-aui-068.d.ts +2 -0
- package/dist/base/button-aui-068.js +9 -0
- 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/carousel.js +1 -1
- package/dist/base/cart-drawer.js +2 -1
- package/dist/base/change-ledger.js +2 -1
- package/dist/base/chart-card.js +1 -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 -4
- 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/command-palette.js +1 -1
- package/dist/base/comments.js +3 -3
- package/dist/base/context-menu.js +1 -1
- package/dist/base/context-meter.js +2 -2
- package/dist/base/cookie-consent.js +2 -2
- package/dist/base/copy-button.js +1 -1
- 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-card.js +1 -1
- package/dist/base/file-manager.js +7 -7
- package/dist/base/file-upload.js +1 -1
- 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-aui-028.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/image-compare.js +1 -1
- package/dist/base/inbox.js +3 -3
- package/dist/base/ink-trail.js +2 -1
- package/dist/base/inline-edit.js +1 -1
- package/dist/base/input-aui-029.js +1 -1
- package/dist/base/input-aui-030.js +1 -1
- package/dist/base/input-aui-031.js +1 -1
- package/dist/base/input-aui-032.js +1 -1
- package/dist/base/input-aui-033.js +1 -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/meter.js +1 -1
- package/dist/base/model-picker.js +1 -1
- package/dist/base/motion-button.js +1 -1
- package/dist/base/navbar-aui-009.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-013.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/number-input.js +1 -1
- package/dist/base/onboarding.js +2 -2
- package/dist/base/otp-input-aui-041.js +1 -1
- package/dist/base/otp-input-aui-042.js +1 -1
- package/dist/base/pagination.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/phone-input.js +1 -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/properties-panel.js +1 -1
- package/dist/base/radio-group-aui-055.js +1 -1
- package/dist/base/radio-group-aui-056.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/rating.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/segmented-control.js +1 -1
- package/dist/base/select-aui-043.js +1 -1
- package/dist/base/select-aui-044.js +1 -1
- package/dist/base/select-aui-045.js +1 -1
- package/dist/base/select.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-aui-015.js +1 -1
- package/dist/base/sign-in-aui-016.js +1 -1
- package/dist/base/sign-in-aui-017.js +1 -1
- package/dist/base/sign-in-aui-018.js +1 -1
- package/dist/base/sign-in-aui-019.js +1 -1
- package/dist/base/sign-in-aui-020.js +1 -1
- 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-aui-063.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/stat-card.js +1 -1
- package/dist/base/stepper.js +1 -1
- package/dist/base/switch-aui-058.js +1 -1
- package/dist/base/switch-aui-059.js +1 -1
- package/dist/base/switch-aui-060.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-aui-049.js +1 -1
- package/dist/base/tag-input.js +1 -1
- package/dist/base/team-members.js +4 -4
- package/dist/base/testimonials.js +2 -2
- package/dist/base/textarea-aui-002.js +1 -1
- package/dist/base/textarea-aui-003.js +1 -1
- package/dist/base/textarea-aui-005.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-036.js +1 -1
- package/dist/base/textarea-aui-037.js +1 -1
- package/dist/base/textarea-aui-038.js +1 -1
- package/dist/base/textarea.js +1 -1
- package/dist/base/thinking.js +1 -1
- package/dist/base/toast.js +1 -1
- package/dist/base/token-swap.js +2 -1
- package/dist/base/tool-approval.js +1 -1
- package/dist/base/tool-dock.js +1 -1
- package/dist/base/trace-waterfall.js +1 -1
- package/dist/base/trade-ticket.js +2 -1
- package/dist/base/tree-view.js +1 -1
- package/dist/base/variant-picker.js +2 -1
- package/dist/base/watchlist.js +1 -1
- package/dist/base/wishlist.js +2 -1
- package/dist/base/workspace-switcher.js +1 -1
- package/dist/base.js +227 -192
- package/dist/billing.js +3 -3
- package/dist/booking-slots.js +2 -1
- package/dist/breadcrumb.js +1 -1
- package/dist/button-aui-064.d.ts +2 -0
- package/dist/button-aui-064.js +11 -0
- package/dist/button-aui-065.d.ts +2 -0
- package/dist/button-aui-065.js +9 -0
- package/dist/button-aui-066.d.ts +2 -0
- package/dist/button-aui-066.js +11 -0
- package/dist/button-aui-067.d.ts +2 -0
- package/dist/button-aui-067.js +9 -0
- package/dist/button-aui-068.d.ts +2 -0
- package/dist/button-aui-068.js +9 -0
- package/dist/button.js +1 -1
- package/dist/candlestick.js +1 -1
- package/dist/card-checkout.js +2 -1
- package/dist/carousel.js +1 -1
- package/dist/cart-drawer.js +2 -1
- package/dist/change-ledger.js +2 -1
- package/dist/chart-card.js +1 -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 -4
- package/dist/{chunk-2F5CE6ZB.js → chunk-27W3F7NE.js} +7 -6
- package/dist/{chunk-TLODJONC.js → chunk-2DA4SEGX.js} +3 -3
- package/dist/{chunk-EKPTPTKK.js → chunk-2DECQKLI.js} +2 -2
- package/dist/chunk-2GLBURQR.js +85 -0
- package/dist/{chunk-YRPLUNP4.js → chunk-2H25OHYS.js} +18 -14
- package/dist/{chunk-VTTXURIB.js → chunk-32GWAA4A.js} +4 -3
- package/dist/{chunk-QASSYLQQ.js → chunk-3AJ4EBSV.js} +6 -5
- package/dist/{chunk-H4NFBYKY.js → chunk-3G2L5A4O.js} +8 -2
- package/dist/{chunk-OKCSTMX3.js → chunk-3LJ72YR4.js} +4 -1
- package/dist/{chunk-LOHFV5JF.js → chunk-3MH5O4HX.js} +7 -7
- package/dist/{chunk-ECGJ6D5D.js → chunk-3N7SRANH.js} +9 -5
- package/dist/{chunk-6RA7LJ3K.js → chunk-3OCWR4L3.js} +13 -8
- package/dist/{chunk-57PESBSZ.js → chunk-3PSV752Q.js} +1 -1
- package/dist/{chunk-QJXVIEB5.js → chunk-3QC5SYGC.js} +5 -5
- package/dist/{chunk-UJYZZSII.js → chunk-4ATDGYSC.js} +13 -9
- package/dist/{chunk-3UQIYJTI.js → chunk-4EX6JZ7C.js} +11 -4
- package/dist/{chunk-XYQI4ZYV.js → chunk-4GWJFDSU.js} +1 -1
- package/dist/{chunk-5OHHGQV6.js → chunk-4IPMVLH7.js} +4 -4
- package/dist/{chunk-JLCSRNI2.js → chunk-4MBIQUM2.js} +7 -7
- package/dist/{chunk-NIYIT2QU.js → chunk-4N2KNDOB.js} +3 -3
- package/dist/{chunk-SDOWCCM2.js → chunk-4P6EPSHA.js} +12 -7
- package/dist/{chunk-MDB4RFMV.js → chunk-4YF2XZY5.js} +6 -6
- package/dist/{chunk-7MBTBYTJ.js → chunk-56PRVZWW.js} +6 -6
- package/dist/{chunk-YJAZHJY3.js → chunk-56VKEODT.js} +1 -1
- package/dist/{chunk-3RMCFFW2.js → chunk-5CAZEFDX.js} +8 -8
- package/dist/{chunk-5DLY6FGD.js → chunk-5EYHX66O.js} +18 -9
- package/dist/{chunk-NZRQL3SA.js → chunk-5JLFPVXB.js} +6 -3
- package/dist/{chunk-UOOGRGEC.js → chunk-5SK7NMOG.js} +2 -1
- package/dist/{chunk-W5M3EHJL.js → chunk-5UARATD2.js} +12 -9
- package/dist/{chunk-Z2DF2YL5.js → chunk-5WVRC4BW.js} +1 -1
- package/dist/{chunk-ZWBJUJTR.js → chunk-5ZQ6PMJT.js} +2 -2
- package/dist/{chunk-6MPEI6V5.js → chunk-67BNR73B.js} +5 -5
- package/dist/{chunk-EN6XBXW5.js → chunk-6ZGHPBHD.js} +3 -2
- package/dist/{chunk-C2G5BUEG.js → chunk-74WYX24P.js} +23 -14
- package/dist/{chunk-PZ2ZUHC3.js → chunk-76NMSRFH.js} +19 -6
- package/dist/{chunk-FLCT7THQ.js → chunk-7AN76PIT.js} +2 -2
- package/dist/chunk-7DQJUZFY.js +139 -0
- package/dist/{chunk-77RFV2MG.js → chunk-7GUFM5QQ.js} +16 -11
- package/dist/{chunk-5RPJPL2V.js → chunk-7HI4HJFN.js} +62 -26
- package/dist/{chunk-IVCHYE55.js → chunk-7IOMROVG.js} +13 -8
- package/dist/{chunk-DU3CZ3K7.js → chunk-7RECQQQP.js} +19 -5
- package/dist/{chunk-UX6CWJT7.js → chunk-7TCU6IJX.js} +1 -1
- package/dist/{chunk-N3X4T5OR.js → chunk-A4CMX7CD.js} +26 -17
- package/dist/{chunk-ITGWD7ZY.js → chunk-A7TELQOW.js} +3 -3
- package/dist/{chunk-RQNXELUL.js → chunk-AAE4SLAV.js} +5 -2
- package/dist/{chunk-LDTCIVDX.js → chunk-AF2WLL3H.js} +2 -2
- package/dist/{chunk-YNPG4WOS.js → chunk-AIUW7VNA.js} +8 -5
- package/dist/{chunk-U6N7CZYN.js → chunk-AM63372L.js} +3 -3
- package/dist/{chunk-OBU2UOYI.js → chunk-B2GAISZU.js} +2 -3
- package/dist/{chunk-JX7V6EFT.js → chunk-B2SLXW63.js} +19 -15
- package/dist/{chunk-ZZ25XSK2.js → chunk-B3WWWKHW.js} +2 -1
- package/dist/{chunk-FFRJW5O7.js → chunk-B6KIW23F.js} +6 -5
- package/dist/{chunk-2LM3VHNO.js → chunk-BBILYMCF.js} +8 -4
- package/dist/{chunk-BIYNJDPD.js → chunk-BLZYUAE7.js} +6 -3
- package/dist/{chunk-CSTI5CTF.js → chunk-BNODQM6D.js} +14 -8
- package/dist/{chunk-TMOEFAXQ.js → chunk-BQL7HJSV.js} +27 -4
- package/dist/{chunk-FOJRZASV.js → chunk-BWAOBM2E.js} +32 -8
- package/dist/chunk-C5NGITT4.js +90 -0
- package/dist/{chunk-W2S6JDBM.js → chunk-CGMVTIMW.js} +13 -13
- package/dist/{chunk-DWA62IYV.js → chunk-CZKYSTF5.js} +7 -4
- package/dist/{chunk-EXX6YSUX.js → chunk-D3GC3QHM.js} +8 -6
- package/dist/{chunk-LKRE4HLZ.js → chunk-DAWISPMI.js} +84 -39
- package/dist/{chunk-SCQ6A4ZG.js → chunk-DSMKE64O.js} +10 -3
- package/dist/{chunk-OXLBH4QM.js → chunk-DXFIPXJJ.js} +6 -3
- package/dist/{chunk-RFVKRVTD.js → chunk-DY5Z45NW.js} +7 -4
- package/dist/{chunk-MAKFUH34.js → chunk-E6HAVXWS.js} +32 -18
- package/dist/{chunk-CZCZB5YP.js → chunk-E7Q7EP4K.js} +1 -1
- package/dist/{chunk-4YNUJFTL.js → chunk-EHBCXGBF.js} +7 -7
- package/dist/{chunk-Y4JOW2UW.js → chunk-EQVJUIF4.js} +14 -10
- package/dist/{chunk-PIXHOFUT.js → chunk-ET4NNKVK.js} +18 -11
- package/dist/{chunk-R3LWG23K.js → chunk-FC54ZZOS.js} +9 -14
- package/dist/{chunk-NPVUFQGC.js → chunk-FDI2X6DY.js} +1 -1
- package/dist/{chunk-F4CWSZXK.js → chunk-FEQPNCG7.js} +9 -6
- package/dist/{chunk-JNNMKFEQ.js → chunk-FGN7KDKD.js} +1 -1
- package/dist/{chunk-KEMMI76V.js → chunk-FJNJ2TLR.js} +2 -3
- package/dist/{chunk-Q5A5OTLI.js → chunk-FOHY7LPU.js} +1 -1
- package/dist/chunk-FS2PZKJY.js +43 -0
- package/dist/{chunk-BEV2X4YL.js → chunk-FZ3GCVH2.js} +53 -12
- package/dist/{chunk-D6LGKFZH.js → chunk-G23AGEY4.js} +1 -1
- package/dist/{chunk-SUWA7DM6.js → chunk-GPGIY2ZG.js} +8 -7
- package/dist/{chunk-EAHHWF3V.js → chunk-GQZPSVLB.js} +144 -46
- package/dist/{chunk-ZUH7XRX7.js → chunk-GTRJUSVK.js} +4 -3
- package/dist/{chunk-BV5HEXB5.js → chunk-GU5KNBTL.js} +12 -10
- package/dist/{chunk-FT66LAUZ.js → chunk-GUZHEEYG.js} +8 -7
- package/dist/{chunk-LS6CFF6X.js → chunk-GX4ZHNG7.js} +5 -1
- package/dist/{chunk-JAQKJBVJ.js → chunk-H3LVWLBS.js} +8 -7
- package/dist/{chunk-7UMBKY3H.js → chunk-H46UXFHV.js} +1 -1
- package/dist/{chunk-B4XRAVHL.js → chunk-HBKB2GXI.js} +32 -18
- package/dist/{chunk-DD2TBHSJ.js → chunk-HJ2FWSSM.js} +9 -9
- package/dist/{chunk-IS2VTYDA.js → chunk-HJD3NQST.js} +6 -3
- package/dist/{chunk-XNL5BLUR.js → chunk-HJMROSE4.js} +26 -14
- package/dist/{chunk-UXRTPEH7.js → chunk-HRQUTQSW.js} +9 -7
- package/dist/{chunk-WSL4JGEA.js → chunk-HSDMCZMX.js} +2 -2
- package/dist/{chunk-WO36QUH3.js → chunk-IDEK35SZ.js} +4 -1
- package/dist/{chunk-QYI7LQBQ.js → chunk-ITC5UU7V.js} +1 -1
- package/dist/{chunk-MPH64VG7.js → chunk-IUOKOPNY.js} +7 -6
- package/dist/{chunk-PAXDHYBX.js → chunk-IVTOFG7I.js} +79 -16
- package/dist/{chunk-MSBN2O66.js → chunk-J65FSZ6X.js} +1 -1
- package/dist/{chunk-YPFZXGPT.js → chunk-JZJWB5CQ.js} +18 -9
- package/dist/{chunk-TL32C2SQ.js → chunk-K3ASWIQF.js} +8 -2
- package/dist/{chunk-UTGEGGSE.js → chunk-K3SP537A.js} +12 -11
- package/dist/{chunk-ANL6VX4X.js → chunk-K5QMUHOG.js} +13 -10
- package/dist/{chunk-DNROUJ62.js → chunk-KCASF2IV.js} +17 -12
- package/dist/{chunk-FQ4YUKAE.js → chunk-KE33WVT2.js} +6 -6
- package/dist/{chunk-5N2G462S.js → chunk-KEPRNTOF.js} +8 -8
- package/dist/{chunk-JF4BKHFK.js → chunk-KKDIIZQG.js} +14 -8
- package/dist/{chunk-ZKMEKSJZ.js → chunk-KSNSN42X.js} +9 -4
- package/dist/{chunk-MUDW65ZT.js → chunk-KSZLBV3P.js} +36 -10
- package/dist/{chunk-HVFB44HO.js → chunk-KUK3UZ7M.js} +11 -8
- package/dist/{chunk-5GGS6VP5.js → chunk-L4G2YUXT.js} +1 -2
- package/dist/{chunk-NVLYF4UL.js → chunk-L7SG34PT.js} +69 -27
- package/dist/{chunk-SPKSRH6G.js → chunk-LGGGLQAD.js} +10 -9
- package/dist/{chunk-CDQNLDO6.js → chunk-LLI33GKW.js} +4 -4
- package/dist/{chunk-QWOO4V7N.js → chunk-LO4TYPLL.js} +8 -2
- package/dist/{chunk-DWPGFNNF.js → chunk-LUDI3KWR.js} +144 -46
- package/dist/{chunk-TXC6CCSA.js → chunk-M32LPQKJ.js} +2 -2
- package/dist/{chunk-OFYGJUKP.js → chunk-M4NEGTL3.js} +5 -2
- package/dist/{chunk-4SLC3EK6.js → chunk-M6UUAF25.js} +79 -16
- package/dist/{chunk-N6FMS47F.js → chunk-MEIRPHQO.js} +26 -21
- package/dist/{chunk-YVGC7QT7.js → chunk-MG6TUMH7.js} +5 -5
- package/dist/{chunk-W6YVDJHX.js → chunk-MQYV5MKH.js} +11 -7
- package/dist/{chunk-OIIMYSVT.js → chunk-MTI7DQ4F.js} +7 -7
- package/dist/{chunk-D4AYULMF.js → chunk-MUURQUEM.js} +8 -8
- package/dist/chunk-MVGUQ36E.js +75 -0
- package/dist/{chunk-D2JJSUXI.js → chunk-MXHFJ3XF.js} +6 -3
- package/dist/{chunk-IATF2OTU.js → chunk-MYPRORYG.js} +14 -5
- package/dist/{chunk-PZJYDIJI.js → chunk-N3MCZYXP.js} +1 -1
- package/dist/{chunk-B7MVYR7C.js → chunk-NBNAXWLN.js} +10 -6
- package/dist/{chunk-KEMC4RIF.js → chunk-NNAJQJSC.js} +6 -3
- package/dist/{chunk-KFPGQ5RT.js → chunk-O2CID2IT.js} +11 -11
- package/dist/{chunk-ISZ7O2Q6.js → chunk-O6GCB7HD.js} +10 -9
- package/dist/{chunk-EG7NXGDD.js → chunk-OFUEFWOK.js} +19 -6
- package/dist/{chunk-ZQV2GAWY.js → chunk-OJNEZ5AY.js} +10 -9
- package/dist/{chunk-DPLH3EGO.js → chunk-OOK5CF2D.js} +91 -39
- package/dist/{chunk-TAAAYFBT.js → chunk-OR6R6OXI.js} +3 -3
- package/dist/{chunk-FBIGYEFN.js → chunk-OSM5E2YR.js} +6 -6
- package/dist/{chunk-37JQA6PI.js → chunk-PHI4NQLJ.js} +1 -1
- package/dist/{chunk-XKA3LTJZ.js → chunk-Q2QV62WV.js} +14 -8
- package/dist/{chunk-2PPF4GK5.js → chunk-QEV4RIZR.js} +60 -30
- package/dist/{chunk-44DNL43W.js → chunk-QHDDNBEI.js} +11 -11
- package/dist/{chunk-RSUZHZCG.js → chunk-QKAFDPXO.js} +12 -11
- package/dist/{chunk-O626XQW2.js → chunk-QKMSLSS6.js} +27 -4
- 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-ANZANDQM.js → chunk-QSGSKHZL.js} +5 -5
- package/dist/{chunk-LBXIMJFU.js → chunk-QSQFJRFC.js} +5 -6
- package/dist/chunk-QVKVPYNA.js +41 -0
- package/dist/{chunk-5TMFFW3Y.js → chunk-QYMPXHK5.js} +4 -1
- package/dist/{chunk-EAUUUVUR.js → chunk-QZPBZONY.js} +8 -7
- package/dist/chunk-RDV5ETG2.js +105 -0
- package/dist/{chunk-CBJUY4WE.js → chunk-RJ6FURDA.js} +5 -5
- package/dist/{chunk-24O5V2PQ.js → chunk-RJWEBYP2.js} +12 -3
- package/dist/{chunk-DUGKLVQJ.js → chunk-RKCW27UM.js} +0 -1
- package/dist/{chunk-WNPMHOXE.js → chunk-RQ673YJJ.js} +1 -1
- package/dist/{chunk-6322OCI4.js → chunk-RVVYQ6J5.js} +20 -9
- package/dist/{chunk-P37H477M.js → chunk-S4Q2HPP5.js} +8 -5
- package/dist/chunk-SDBQOVMA.js +53 -0
- package/dist/{chunk-3ZFF6VC5.js → chunk-SK6M4GOD.js} +11 -10
- package/dist/{chunk-SR4NYQWO.js → chunk-SL6HYI6T.js} +9 -3
- package/dist/{chunk-AMVX4DDT.js → chunk-STEGNOAK.js} +7 -7
- package/dist/{chunk-BG2W2KVE.js → chunk-T2GLXMC7.js} +10 -3
- package/dist/{chunk-H4URFOQC.js → chunk-TAN5UNTZ.js} +36 -5
- package/dist/{chunk-7RCBOTWL.js → chunk-TCCKCLEZ.js} +9 -14
- package/dist/{chunk-LPTY5WXM.js → chunk-TLPJA7QP.js} +6 -3
- package/dist/{chunk-XUZH4Y52.js → chunk-TN3ATHN7.js} +23 -22
- package/dist/{chunk-45KDL3JM.js → chunk-TOGS33KA.js} +11 -8
- package/dist/{chunk-YF3XSH54.js → chunk-TQKGGJ4W.js} +9 -3
- package/dist/{chunk-OH5VAD27.js → chunk-TXHOOVX7.js} +35 -17
- package/dist/{chunk-X4JYOCFA.js → chunk-UHNZ3I66.js} +20 -18
- package/dist/{chunk-VUDTGRS3.js → chunk-UHW53LWK.js} +1 -2
- package/dist/{chunk-45IXJ7W7.js → chunk-UINHBFRO.js} +12 -10
- package/dist/{chunk-F526V5BA.js → chunk-UNE53KA2.js} +6 -3
- package/dist/{chunk-4WCMPLE3.js → chunk-UQWPG5BH.js} +9 -5
- package/dist/{chunk-RBTX7TVA.js → chunk-URXTC4RD.js} +8 -7
- package/dist/{chunk-VWYX5IRP.js → chunk-USBGON3T.js} +38 -16
- package/dist/{chunk-FK2LKLRN.js → chunk-VDSYL3LA.js} +0 -1
- package/dist/{chunk-ADZI4ROA.js → chunk-VDUU5243.js} +1 -0
- package/dist/{chunk-JRD6FENH.js → chunk-VTZDMX2U.js} +18 -9
- package/dist/{chunk-F7LAUVDJ.js → chunk-VYFSYD3Z.js} +5 -2
- package/dist/{chunk-WRB66XD3.js → chunk-VYO4JJVI.js} +3 -1
- package/dist/{chunk-25RCKHWV.js → chunk-W3AUNR4J.js} +4 -3
- package/dist/{chunk-FT7WZV3D.js → chunk-W42RQZ2S.js} +17 -5
- package/dist/{chunk-E4MX3E3B.js → chunk-W723JZDF.js} +22 -7
- package/dist/{chunk-U7VX6A6K.js → chunk-WA4HAXEF.js} +40 -15
- package/dist/{chunk-ZGMBQZDV.js → chunk-WGHJKPVG.js} +29 -16
- package/dist/{chunk-UBTYMAKF.js → chunk-WIX5IGDH.js} +5 -8
- package/dist/{chunk-4GF7WTR3.js → chunk-WSN6SDBH.js} +1 -1
- package/dist/{chunk-FDE3S2YK.js → chunk-WSYMYSW3.js} +5 -5
- package/dist/{chunk-JWBGI7FN.js → chunk-WVXAVILO.js} +91 -39
- package/dist/{chunk-VNUX5LOC.js → chunk-WYFRNK6S.js} +9 -9
- package/dist/{chunk-2PQIPQGO.js → chunk-XDIWPIKO.js} +14 -10
- package/dist/{chunk-JE2MAZGR.js → chunk-XILRY6LB.js} +1 -1
- package/dist/{chunk-EOZDJA7Z.js → chunk-XKJ3KMMO.js} +13 -8
- package/dist/{chunk-Z5GNX2S3.js → chunk-XN2OBKPK.js} +1 -1
- package/dist/{chunk-SDL3JXFN.js → chunk-XSNQN67K.js} +1 -1
- package/dist/{chunk-BKHH2CJA.js → chunk-XWQNDAL5.js} +2 -2
- package/dist/{chunk-V7JUJQNR.js → chunk-XXOJGQF6.js} +1 -2
- package/dist/{chunk-ZE7BT2K4.js → chunk-Y3QA2RIG.js} +70 -13
- package/dist/{chunk-PIE76JKF.js → chunk-Y5NPX36Y.js} +35 -17
- package/dist/{chunk-JVTDNOHQ.js → chunk-YGRYE53G.js} +8 -8
- package/dist/{chunk-IDXERBKL.js → chunk-YSUGZLB5.js} +7 -3
- package/dist/{chunk-RGVRHFKY.js → chunk-YTQSVOA7.js} +5 -3
- package/dist/{chunk-UZF7SCRT.js → chunk-YV5WZJGS.js} +15 -11
- package/dist/{chunk-PSTMF66E.js → chunk-YVRTO4XC.js} +9 -6
- package/dist/{chunk-6HPSPZTF.js → chunk-YXEAYRUY.js} +10 -9
- package/dist/{chunk-GBOJUMMY.js → chunk-YXFUOERB.js} +6 -6
- package/dist/{chunk-DWZT455C.js → chunk-Z3PHHGUZ.js} +9 -9
- package/dist/{chunk-RXOVKEYG.js → chunk-Z77R5OHW.js} +3 -3
- package/dist/{chunk-G7WTEBMX.js → chunk-ZGJUXBLD.js} +11 -7
- package/dist/{chunk-IF6CWIUB.js → chunk-ZIC4VJ2T.js} +1 -1
- package/dist/{chunk-X2VID7XY.js → chunk-ZIL4N5BT.js} +2 -2
- package/dist/{chunk-FXXR3FM3.js → chunk-ZLIFMMAH.js} +10 -7
- package/dist/{chunk-72UKXOMW.js → chunk-ZMP7XCON.js} +22 -7
- 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/command-palette.js +1 -1
- package/dist/comments.js +3 -3
- package/dist/context-menu.js +1 -1
- package/dist/context-meter.js +2 -2
- package/dist/cookie-consent.js +2 -2
- package/dist/copy-button.js +1 -1
- 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-card.js +1 -1
- package/dist/file-manager.js +7 -7
- package/dist/file-upload.js +1 -1
- 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-aui-028.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/image-compare.js +1 -1
- package/dist/inbox.js +3 -3
- package/dist/index.js +228 -193
- package/dist/ink-trail.js +2 -1
- package/dist/inline-edit.js +1 -1
- package/dist/input-aui-029.js +1 -1
- package/dist/input-aui-030.js +1 -1
- package/dist/input-aui-031.js +1 -1
- package/dist/input-aui-032.js +1 -1
- package/dist/input-aui-033.js +1 -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/meter.js +1 -1
- package/dist/model-picker.js +1 -1
- package/dist/motion-button.js +1 -1
- package/dist/navbar-aui-009.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-013.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/number-input.js +1 -1
- package/dist/onboarding.js +2 -2
- package/dist/otp-input-aui-041.js +1 -1
- package/dist/otp-input-aui-042.js +1 -1
- package/dist/pagination.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/phone-input.js +1 -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/properties-panel.js +1 -1
- package/dist/radio-group-aui-055.js +1 -1
- package/dist/radio-group-aui-056.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/rating.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/segmented-control.js +1 -1
- package/dist/select-aui-043.js +1 -1
- package/dist/select-aui-044.js +1 -1
- package/dist/select-aui-045.js +1 -1
- package/dist/select.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-aui-015.js +1 -1
- package/dist/sign-in-aui-016.js +1 -1
- package/dist/sign-in-aui-017.js +1 -1
- package/dist/sign-in-aui-018.js +1 -1
- package/dist/sign-in-aui-019.js +1 -1
- package/dist/sign-in-aui-020.js +1 -1
- package/dist/sign-in.js +2 -2
- package/dist/skeleton.js +1 -1
- package/dist/slider-aui-062.js +1 -1
- package/dist/slider-aui-063.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/stat-card.js +1 -1
- package/dist/stepper.js +1 -1
- package/dist/styles.css +3 -0
- package/dist/switch-aui-058.js +1 -1
- package/dist/switch-aui-059.js +1 -1
- package/dist/switch-aui-060.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tag-input-aui-048.js +1 -1
- package/dist/tag-input-aui-049.js +1 -1
- package/dist/tag-input.js +1 -1
- package/dist/team-members.js +4 -4
- package/dist/testimonials.js +2 -2
- package/dist/textarea-aui-002.js +1 -1
- package/dist/textarea-aui-003.js +1 -1
- package/dist/textarea-aui-005.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-036.js +1 -1
- package/dist/textarea-aui-037.js +1 -1
- package/dist/textarea-aui-038.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/thinking.js +1 -1
- package/dist/toast.js +1 -1
- package/dist/token-swap.js +2 -1
- package/dist/tool-approval.js +1 -1
- package/dist/tool-dock.js +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/trace-waterfall.js +1 -1
- package/dist/trade-ticket.js +2 -1
- package/dist/tree-view.js +1 -1
- package/dist/types/components/kit/accordion.d.ts +4 -3
- package/dist/types/components/kit/api-keys.d.ts +1 -1
- package/dist/types/components/kit/base/navbar.d.ts +2 -0
- package/dist/types/components/kit/base/pricing.d.ts +4 -1
- package/dist/types/components/kit/navbar.d.ts +2 -0
- package/dist/types/components/kit/pricing.d.ts +4 -1
- package/dist/types/components/kit/variants/button-aui-064.d.ts +21 -0
- package/dist/types/components/kit/variants/button-aui-065.d.ts +26 -0
- package/dist/types/components/kit/variants/button-aui-066.d.ts +19 -0
- package/dist/types/components/kit/variants/button-aui-067.d.ts +23 -0
- package/dist/types/components/kit/variants/button-aui-068.d.ts +28 -0
- package/dist/types/components/lab/lab-hooks.d.ts +12 -0
- package/dist/types/packages/asta-ui/src/base/accordion.d.ts +2 -2
- package/dist/types/packages/asta-ui/src/base/button-aui-064.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/button-aui-065.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/button-aui-066.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/button-aui-067.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/button-aui-068.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base.d.ts +12 -2
- package/dist/types/packages/asta-ui/src/button-aui-064.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/button-aui-065.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/button-aui-066.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/button-aui-067.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/button-aui-068.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/index.d.ts +10 -0
- package/dist/variant-picker.js +2 -1
- package/dist/watchlist.js +1 -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-B7V4ZTKI.js +0 -53
- package/dist/chunk-XTP6ITUJ.js +0 -55
- package/dist/types/components/kit/base/accordion.d.ts +0 -19
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// components/kit/variants/button-aui-064.tsx
|
|
4
|
+
import { jsxs } from "react/jsx-runtime";
|
|
5
|
+
var cx = (...c) => c.filter(Boolean).join(" ");
|
|
6
|
+
var TONE = {
|
|
7
|
+
primary: "text-on-brand bg-[linear-gradient(180deg,color-mix(in_srgb,var(--brand)_78%,white)_0%,var(--brand)_55%,color-mix(in_srgb,var(--brand)_86%,black)_100%)] shadow-[inset_0_1px_0_rgb(255_255_255/0.28),inset_0_-1px_0_rgb(0_0_0/0.12),0_0_0_1px_color-mix(in_srgb,var(--brand)_78%,black),0_2px_4px_-1px_color-mix(in_srgb,var(--brand)_45%,transparent),0_6px_14px_-6px_color-mix(in_srgb,var(--brand)_50%,transparent)] hover:brightness-[1.06]",
|
|
8
|
+
dark: "text-paper bg-[linear-gradient(180deg,color-mix(in_srgb,var(--ink)_72%,var(--paper))_0%,var(--ink)_60%,var(--ink)_100%)] shadow-[inset_0_1px_0_rgb(255_255_255/0.18),0_0_0_1px_var(--ink),0_2px_4px_-1px_rgb(0_0_0/0.35),0_6px_14px_-6px_rgb(0_0_0/0.4)] hover:brightness-[1.12]",
|
|
9
|
+
outline: "text-ink bg-[linear-gradient(180deg,var(--paper)_0%,color-mix(in_srgb,var(--paper-2)_70%,var(--paper))_100%)] shadow-[inset_0_1px_0_rgb(255_255_255/0.5),0_0_0_1px_color-mix(in_srgb,var(--ink)_13%,transparent),0_1px_2px_color-mix(in_srgb,var(--ink)_6%,transparent),0_4px_10px_-6px_color-mix(in_srgb,var(--ink)_14%,transparent)] hover:brightness-[0.98]",
|
|
10
|
+
// For dark surfaces: a pale raised button with a deeper drop.
|
|
11
|
+
light: "text-ink bg-[linear-gradient(180deg,var(--paper)_0%,var(--paper-2)_100%)] shadow-[inset_0_1px_0_rgb(255_255_255/0.6),0_0_0_1px_rgb(0_0_0/0.25),0_6px_16px_-6px_rgb(0_0_0/0.5)] hover:brightness-[0.97]",
|
|
12
|
+
ghost: "text-ink-2 hover:bg-paper-2 hover:text-ink"
|
|
13
|
+
};
|
|
14
|
+
var SIZE = {
|
|
15
|
+
sm: "h-8 gap-1.5 rounded-[7px] px-3 text-[13px]",
|
|
16
|
+
md: "h-9 gap-2 rounded-[8px] px-3.5 text-[13.5px]",
|
|
17
|
+
lg: "h-11 gap-2 rounded-[9px] px-5 text-[15px]"
|
|
18
|
+
};
|
|
19
|
+
var ICON_ONLY = { sm: "w-8 px-0", md: "w-9 px-0", lg: "w-11 px-0" };
|
|
20
|
+
function raisedClass({ tone = "primary", size = "md", iconOnly = false } = {}) {
|
|
21
|
+
return cx(
|
|
22
|
+
"relative inline-flex select-none items-center justify-center whitespace-nowrap font-medium transition-[transform,color,background-color] duration-150 ease-[cubic-bezier(.16,1,.3,1)] active:scale-[0.98] motion-reduce:active:scale-100 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-brand [&_svg]:size-4 [&_svg]:shrink-0",
|
|
23
|
+
SIZE[size],
|
|
24
|
+
TONE[tone],
|
|
25
|
+
iconOnly && ICON_ONLY[size]
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
function RaisedButton({ tone, size, iconOnly, iconLeft, iconRight, className, children, type = "button", ...rest }) {
|
|
29
|
+
return /* @__PURE__ */ jsxs("button", { type, ...rest, className: cx(raisedClass({ tone, size, iconOnly }), className), children: [
|
|
30
|
+
iconLeft,
|
|
31
|
+
children,
|
|
32
|
+
iconRight
|
|
33
|
+
] });
|
|
34
|
+
}
|
|
35
|
+
var button_aui_064_default = RaisedButton;
|
|
36
|
+
|
|
37
|
+
export {
|
|
38
|
+
raisedClass,
|
|
39
|
+
RaisedButton,
|
|
40
|
+
button_aui_064_default
|
|
41
|
+
};
|
|
@@ -76,7 +76,10 @@ function SegmentRadio({ options = OPTIONS, value, defaultValue = "1w", onChange,
|
|
|
76
76
|
className: cx("mb-1 inline-flex h-6 items-center gap-1 rounded-[6px] px-2 text-[12px] font-medium tabular-nums", up ? "bg-[color-mix(in_srgb,var(--brand)_30%,transparent)] text-paper" : "bg-paper/10 text-paper/70"),
|
|
77
77
|
style: { animation: `aui056-fade .4s ${EASE} both` },
|
|
78
78
|
children: [
|
|
79
|
-
/* @__PURE__ */
|
|
79
|
+
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: "h-2.5 w-2.5", fill: "none", stroke: "currentColor", strokeWidth: "3.6", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, style: { transform: up ? "none" : "rotate(180deg)" }, children: [
|
|
80
|
+
/* @__PURE__ */ jsx("path", { d: "M12 20V5" }),
|
|
81
|
+
/* @__PURE__ */ jsx("path", { d: "m6 11 6-6 6 6" })
|
|
82
|
+
] }),
|
|
80
83
|
up ? "+" : "\u2212",
|
|
81
84
|
Math.abs(opt.change).toFixed(1),
|
|
82
85
|
"%"
|
|
@@ -69,32 +69,33 @@ function ClipboardButton({ value, label, copiedLabel = "Copied", timeout = 1600,
|
|
|
69
69
|
/* @__PURE__ */ jsxs(
|
|
70
70
|
"svg",
|
|
71
71
|
{
|
|
72
|
-
viewBox: "0 0
|
|
72
|
+
viewBox: "0 0 24 24",
|
|
73
73
|
className: cx("absolute inset-0 transition-[opacity,transform] duration-300 motion-reduce:transition-none", EASE, done ? "rotate-[-30deg] scale-50 opacity-0" : "scale-100 opacity-100"),
|
|
74
74
|
fill: "none",
|
|
75
75
|
stroke: "currentColor",
|
|
76
|
-
strokeWidth: "
|
|
76
|
+
strokeWidth: "2.25",
|
|
77
|
+
strokeLinecap: "round",
|
|
77
78
|
strokeLinejoin: "round",
|
|
78
79
|
children: [
|
|
79
|
-
/* @__PURE__ */ jsx("rect", { x: "5
|
|
80
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
80
|
+
/* @__PURE__ */ jsx("rect", { x: "8.5", y: "8.5", width: "11", height: "11", rx: "2" }),
|
|
81
|
+
/* @__PURE__ */ jsx("path", { d: "M15.5 8.5V6.5a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h2", strokeLinecap: "round" })
|
|
81
82
|
]
|
|
82
83
|
}
|
|
83
84
|
),
|
|
84
85
|
/* @__PURE__ */ jsx(
|
|
85
86
|
"svg",
|
|
86
87
|
{
|
|
87
|
-
viewBox: "0 0
|
|
88
|
+
viewBox: "0 0 24 24",
|
|
88
89
|
className: cx("absolute inset-0 text-brand transition-[opacity,transform] duration-300 motion-reduce:transition-none", EASE, done ? "scale-100 opacity-100" : "scale-75 opacity-0"),
|
|
89
90
|
fill: "none",
|
|
90
91
|
stroke: "currentColor",
|
|
91
|
-
strokeWidth: "
|
|
92
|
+
strokeWidth: "2.85",
|
|
92
93
|
strokeLinecap: "round",
|
|
93
94
|
strokeLinejoin: "round",
|
|
94
95
|
children: /* @__PURE__ */ jsx(
|
|
95
96
|
"path",
|
|
96
97
|
{
|
|
97
|
-
d: "
|
|
98
|
+
d: "m5 12.5 4.5 4.5L19 7.5",
|
|
98
99
|
pathLength: 1,
|
|
99
100
|
strokeDasharray: 1,
|
|
100
101
|
strokeDashoffset: done ? 0 : 1,
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// components/kit/variants/button-aui-068.tsx
|
|
4
|
+
import { useEffect, useRef, useState } from "react";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
var cx = (...c) => c.filter(Boolean).join(" ");
|
|
7
|
+
var CSS = `
|
|
8
|
+
.aui068-tip { opacity: 0; transform: translate(-50%, 3px) scale(.97); transition: opacity .12s cubic-bezier(.16,1,.3,1), transform .16s cubic-bezier(.16,1,.3,1); pointer-events: none }
|
|
9
|
+
.aui068[data-warm=true] .aui068-btn:hover .aui068-tip, .aui068-btn:focus-visible .aui068-tip { opacity: 1; transform: translate(-50%, 0) }
|
|
10
|
+
@media (prefers-reduced-motion: reduce) { .aui068-tip { transform: translate(-50%, 0) !important } }
|
|
11
|
+
@media (hover: none) { .aui068-tip { display: none } }
|
|
12
|
+
`;
|
|
13
|
+
function IconToolbar({ label, groups, pressed: pressedProp, defaultPressed = [], onPressedChange, onAction, className }) {
|
|
14
|
+
const [own, setOwn] = useState(defaultPressed);
|
|
15
|
+
const pressed = pressedProp ?? own;
|
|
16
|
+
const [active, setActive] = useState(0);
|
|
17
|
+
const [warm, setWarm] = useState(false);
|
|
18
|
+
const warmTimer = useRef(void 0);
|
|
19
|
+
const bar = useRef(null);
|
|
20
|
+
const flat = groups.flat();
|
|
21
|
+
useEffect(() => () => clearTimeout(warmTimer.current), []);
|
|
22
|
+
const buttons = () => [...bar.current?.querySelectorAll(".aui068-btn") ?? []];
|
|
23
|
+
const move = (to, dir) => {
|
|
24
|
+
const els = buttons();
|
|
25
|
+
let i = (to + els.length) % els.length;
|
|
26
|
+
for (let n = 0; n < els.length && els[i].disabled; n++) i = (i + dir + els.length) % els.length;
|
|
27
|
+
setActive(i);
|
|
28
|
+
els[i]?.focus();
|
|
29
|
+
};
|
|
30
|
+
const onKey = (e) => {
|
|
31
|
+
const keys = { ArrowRight: [active + 1, 1], ArrowLeft: [active - 1, -1], Home: [0, 1], End: [flat.length - 1, -1] };
|
|
32
|
+
if (!(e.key in keys)) return;
|
|
33
|
+
e.preventDefault();
|
|
34
|
+
move(...keys[e.key]);
|
|
35
|
+
};
|
|
36
|
+
const click = (it) => {
|
|
37
|
+
if (it.toggle) {
|
|
38
|
+
const next = pressed.includes(it.id) ? pressed.filter((p) => p !== it.id) : [...pressed, it.id];
|
|
39
|
+
if (pressedProp === void 0) setOwn(next);
|
|
40
|
+
onPressedChange?.(next);
|
|
41
|
+
}
|
|
42
|
+
onAction?.(it.id);
|
|
43
|
+
};
|
|
44
|
+
const starts = groups.map((_, gi) => groups.slice(0, gi).reduce((n, g) => n + g.length, 0));
|
|
45
|
+
return /* @__PURE__ */ jsxs(
|
|
46
|
+
"div",
|
|
47
|
+
{
|
|
48
|
+
ref: bar,
|
|
49
|
+
role: "toolbar",
|
|
50
|
+
"aria-label": label,
|
|
51
|
+
"data-warm": warm,
|
|
52
|
+
onKeyDown: onKey,
|
|
53
|
+
onPointerEnter: () => {
|
|
54
|
+
clearTimeout(warmTimer.current);
|
|
55
|
+
warmTimer.current = setTimeout(() => setWarm(true), 400);
|
|
56
|
+
},
|
|
57
|
+
onPointerLeave: () => {
|
|
58
|
+
clearTimeout(warmTimer.current);
|
|
59
|
+
setWarm(false);
|
|
60
|
+
},
|
|
61
|
+
className: cx(
|
|
62
|
+
"aui068 inline-flex max-w-full flex-wrap items-center gap-0.5 rounded-[10px] bg-[linear-gradient(180deg,var(--paper)_0%,color-mix(in_srgb,var(--paper-2)_70%,var(--paper))_100%)] p-1 shadow-[inset_0_1px_0_rgb(255_255_255/0.5),0_0_0_1px_color-mix(in_srgb,var(--ink)_12%,transparent),0_4px_10px_-6px_color-mix(in_srgb,var(--ink)_14%,transparent)]",
|
|
63
|
+
className
|
|
64
|
+
),
|
|
65
|
+
children: [
|
|
66
|
+
/* @__PURE__ */ jsx("style", { href: "asta-button-aui-068", precedence: "asta", children: CSS }),
|
|
67
|
+
groups.map((g, gi) => /* @__PURE__ */ jsxs("div", { className: "contents", children: [
|
|
68
|
+
gi > 0 && /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "mx-1 h-5 w-px bg-[color-mix(in_srgb,var(--ink)_12%,transparent)]" }),
|
|
69
|
+
g.map((it, k) => {
|
|
70
|
+
const i = starts[gi] + k;
|
|
71
|
+
const on = it.toggle ? pressed.includes(it.id) : void 0;
|
|
72
|
+
return /* @__PURE__ */ jsxs(
|
|
73
|
+
"button",
|
|
74
|
+
{
|
|
75
|
+
type: "button",
|
|
76
|
+
"aria-label": it.label,
|
|
77
|
+
"aria-pressed": on,
|
|
78
|
+
"aria-keyshortcuts": it.kbd?.replace("\u2318", "Meta+").replace("\u21E7", "Shift+"),
|
|
79
|
+
disabled: it.disabled,
|
|
80
|
+
tabIndex: i === active ? 0 : -1,
|
|
81
|
+
onFocus: () => setActive(i),
|
|
82
|
+
onClick: () => click(it),
|
|
83
|
+
className: "aui068-btn relative grid size-8 place-items-center rounded-[7px] text-ink-2 outline-none transition-[background-color,color,transform] duration-150 ease-[cubic-bezier(.16,1,.3,1)] hover:bg-[color-mix(in_srgb,var(--ink)_6%,transparent)] hover:text-ink active:scale-[0.94] motion-reduce:active:scale-100 aria-pressed:bg-ink aria-pressed:text-paper aria-pressed:shadow-[inset_0_1px_0_rgb(255_255_255/0.16)] disabled:pointer-events-none disabled:opacity-40 focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-brand max-sm:size-10 [&>svg]:size-4",
|
|
84
|
+
children: [
|
|
85
|
+
it.icon,
|
|
86
|
+
/* @__PURE__ */ jsxs("span", { role: "tooltip", className: "aui068-tip absolute bottom-[calc(100%+8px)] left-1/2 z-20 flex items-center gap-1.5 whitespace-nowrap rounded-[6px] bg-ink px-2 py-1 text-[12px] font-medium text-paper shadow-[0_6px_16px_-6px_rgb(0_0_0/0.4)]", children: [
|
|
87
|
+
it.label,
|
|
88
|
+
it.kbd && /* @__PURE__ */ jsx("kbd", { className: "font-sans text-[11px] text-paper/60", children: it.kbd })
|
|
89
|
+
] })
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
it.id
|
|
93
|
+
);
|
|
94
|
+
})
|
|
95
|
+
] }, gi))
|
|
96
|
+
]
|
|
97
|
+
}
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
var button_aui_068_default = IconToolbar;
|
|
101
|
+
|
|
102
|
+
export {
|
|
103
|
+
IconToolbar,
|
|
104
|
+
button_aui_068_default
|
|
105
|
+
};
|
|
@@ -19,10 +19,10 @@ var CHECKLIST_RULES = [
|
|
|
19
19
|
{ glyph: "#!", label: "a symbol", test: (v) => /[^A-Za-z0-9]/.test(v) }
|
|
20
20
|
];
|
|
21
21
|
function Eye({ open }) {
|
|
22
|
-
return /* @__PURE__ */ jsxs("svg", { viewBox: "0 0
|
|
23
|
-
/* @__PURE__ */ jsx("path", { d: "M2.5
|
|
24
|
-
/* @__PURE__ */ jsx("circle", { cx: "
|
|
25
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
22
|
+
return /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: "h-[18px] w-[18px]", fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
23
|
+
/* @__PURE__ */ jsx("path", { d: "M2.5 12c3-5.5 16-5.5 19 0-3 5.5-16 5.5-19 0Z" }),
|
|
24
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "2.75", className: "origin-center transition-transform duration-300 [transform-box:fill-box]", style: { transform: open ? "none" : "scale(0)", transitionTimingFunction: EASE } }),
|
|
25
|
+
/* @__PURE__ */ jsx("path", { d: "m4.5 4.5 15 15", className: "origin-center transition-[opacity,transform] duration-300 [transform-box:fill-box]", style: { opacity: open ? 0 : 1, transform: open ? "scale(.4)" : "none", transitionTimingFunction: EASE } })
|
|
26
26
|
] });
|
|
27
27
|
}
|
|
28
28
|
function ChecklistPassword({
|
|
@@ -103,7 +103,7 @@ function ChecklistPassword({
|
|
|
103
103
|
/* @__PURE__ */ jsx("span", { className: cx("text-[17px] font-semibold leading-none tracking-[-0.03em] transition-colors duration-300", passed[i] ? "text-brand" : "text-ink"), children: r.glyph }),
|
|
104
104
|
/* @__PURE__ */ jsx("span", { className: "truncate text-[11.5px] text-mute", children: r.label }),
|
|
105
105
|
/* @__PURE__ */ jsx("span", { className: "sr-only", children: passed[i] ? ", done" : ", not yet" }),
|
|
106
|
-
passed[i] && /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "absolute right-1.5 top-1.5 grid h-4 w-4 place-items-center rounded-full bg-brand text-
|
|
106
|
+
passed[i] && /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "absolute right-1.5 top-1.5 grid h-4 w-4 place-items-center rounded-full bg-brand text-on-brand", style: { animation: `aui040-tick .4s ${EASE} both` }, children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: "h-2.5 w-2.5", fill: "none", stroke: "currentColor", strokeWidth: "3.9", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsx("path", { d: "m5 12.5 4.5 4.5L19 7.5" }) }) })
|
|
107
107
|
]
|
|
108
108
|
},
|
|
109
109
|
r.label
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Popover
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MYPRORYG.js";
|
|
5
5
|
|
|
6
6
|
// components/kit/context-meter.tsx
|
|
7
7
|
import { useEffect, useRef, useState } from "react";
|
|
@@ -71,7 +71,11 @@ function Ring({ share, warn, className }) {
|
|
|
71
71
|
] });
|
|
72
72
|
}
|
|
73
73
|
function WarnIcon() {
|
|
74
|
-
return /* @__PURE__ */
|
|
74
|
+
return /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: "mt-px h-3.5 w-3.5 shrink-0", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
75
|
+
/* @__PURE__ */ jsx("path", { d: "M10.3 4.6 3 17.5A2 2 0 0 0 4.7 20.5h14.6a2 2 0 0 0 1.7-3L13.7 4.6a2 2 0 0 0-3.4 0Z" }),
|
|
76
|
+
/* @__PURE__ */ jsx("path", { d: "M12 9.5v4" }),
|
|
77
|
+
/* @__PURE__ */ jsx("path", { d: "M12 17h.01" })
|
|
78
|
+
] });
|
|
75
79
|
}
|
|
76
80
|
var sum = (s) => s.reduce((a, p) => a + Math.max(0, p.tokens), 0);
|
|
77
81
|
function ContextBreakdown({ segments, max, model, warnAt = 0.8, onCompact, className }) {
|
|
@@ -196,7 +200,12 @@ function ContextBreakdown({ segments, max, model, warnAt = 0.8, onCompact, class
|
|
|
196
200
|
busy ? /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 16 16", className: "h-3.5 w-3.5 animate-[asta-ctx-spin_.8s_linear_infinite]", fill: "none", "aria-hidden": true, children: [
|
|
197
201
|
/* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "6", stroke: "currentColor", strokeOpacity: ".2", strokeWidth: "2" }),
|
|
198
202
|
/* @__PURE__ */ jsx("path", { d: "M14 8a6 6 0 0 0-6-6", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" })
|
|
199
|
-
] }) : /* @__PURE__ */
|
|
203
|
+
] }) : /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: "h-3.5 w-3.5", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
204
|
+
/* @__PURE__ */ jsx("path", { d: "M14 5v5h5" }),
|
|
205
|
+
/* @__PURE__ */ jsx("path", { d: "m20 4-6 6" }),
|
|
206
|
+
/* @__PURE__ */ jsx("path", { d: "M10 19v-5H5" }),
|
|
207
|
+
/* @__PURE__ */ jsx("path", { d: "m4 20 6-6" })
|
|
208
|
+
] }),
|
|
200
209
|
busy ? "Compacting\u2026" : "Compact conversation"
|
|
201
210
|
]
|
|
202
211
|
}
|
|
@@ -18,7 +18,6 @@ function SegmentedControl({ segments, value, defaultValue, onChange, size = "md"
|
|
|
18
18
|
const el = refs.current[index];
|
|
19
19
|
if (el) setPill({ x: el.offsetLeft, w: el.offsetWidth });
|
|
20
20
|
};
|
|
21
|
-
measure();
|
|
22
21
|
const ro = new ResizeObserver(measure);
|
|
23
22
|
if (box.current) ro.observe(box.current);
|
|
24
23
|
return () => ro.disconnect();
|
|
@@ -40,7 +40,7 @@ var CSS = `
|
|
|
40
40
|
`;
|
|
41
41
|
function Mark() {
|
|
42
42
|
return /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-2.5 text-[17px] font-semibold tracking-[-0.03em] text-paper", children: [
|
|
43
|
-
/* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "grid h-9 w-9 place-items-center rounded-[10px] bg-brand text-
|
|
43
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "grid h-9 w-9 place-items-center rounded-[10px] bg-brand text-on-brand shadow-[0_8px_24px_-6px_color-mix(in_srgb,var(--brand)_70%,transparent)]", children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "h-4 w-4", fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinejoin: "round", children: /* @__PURE__ */ jsx("path", { d: "M8 2.5 13.5 13h-11L8 2.5Z" }) }) }),
|
|
44
44
|
"Astabyte"
|
|
45
45
|
] });
|
|
46
46
|
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
useInView
|
|
4
|
+
} from "./chunk-FS2PZKJY.js";
|
|
2
5
|
|
|
3
6
|
// components/lab/blocks/PayMethods.tsx
|
|
4
|
-
import { useEffect, useState } from "react";
|
|
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 QR_SECS = 300;
|
|
@@ -35,8 +38,10 @@ function Finder({ x, y }) {
|
|
|
35
38
|
/* @__PURE__ */ jsx("rect", { x: x + 2, y: y + 2, width: "3", height: "3" })
|
|
36
39
|
] });
|
|
37
40
|
}
|
|
38
|
-
|
|
39
|
-
|
|
41
|
+
var N = 17;
|
|
42
|
+
var qrCells = null;
|
|
43
|
+
function qr() {
|
|
44
|
+
if (qrCells) return qrCells;
|
|
40
45
|
const cells = [];
|
|
41
46
|
const finder = (x, y) => {
|
|
42
47
|
for (const [fx, fy] of [[0, 0], [N - 7, 0], [0, N - 7]]) {
|
|
@@ -49,8 +54,12 @@ function MiniQr() {
|
|
|
49
54
|
if (finder(x, y)) continue;
|
|
50
55
|
if ((x * 7 + y * 13 + x * y * 3) % 5 < 2) cells.push(/* @__PURE__ */ jsx("rect", { x, y, width: "1", height: "1" }, `${x}-${y}`));
|
|
51
56
|
}
|
|
57
|
+
qrCells = cells;
|
|
58
|
+
return cells;
|
|
59
|
+
}
|
|
60
|
+
function MiniQr() {
|
|
52
61
|
return /* @__PURE__ */ jsxs("svg", { viewBox: `0 0 ${N} ${N}`, className: "h-full w-full text-ink", fill: "currentColor", shapeRendering: "crispEdges", "aria-hidden": true, children: [
|
|
53
|
-
|
|
62
|
+
qr(),
|
|
54
63
|
/* @__PURE__ */ jsx(Finder, { x: 0, y: 0 }),
|
|
55
64
|
/* @__PURE__ */ jsx(Finder, { x: N - 7, y: 0 }),
|
|
56
65
|
/* @__PURE__ */ jsx(Finder, { x: 0, y: N - 7 })
|
|
@@ -60,8 +69,10 @@ function PayMethods() {
|
|
|
60
69
|
const [i, setI] = useState(0);
|
|
61
70
|
const [auto, setAuto] = useState(true);
|
|
62
71
|
const [secs, setSecs] = useState(QR_SECS);
|
|
72
|
+
const root = useRef(null);
|
|
73
|
+
const visible = useInView(root);
|
|
63
74
|
useEffect(() => {
|
|
64
|
-
if (!auto || window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;
|
|
75
|
+
if (!auto || !visible || window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;
|
|
65
76
|
const id = setInterval(() => {
|
|
66
77
|
setI((v) => {
|
|
67
78
|
const n = (v + 1) % METHODS.length;
|
|
@@ -70,12 +81,12 @@ function PayMethods() {
|
|
|
70
81
|
});
|
|
71
82
|
}, 2600);
|
|
72
83
|
return () => clearInterval(id);
|
|
73
|
-
}, [auto]);
|
|
84
|
+
}, [auto, visible]);
|
|
74
85
|
useEffect(() => {
|
|
75
|
-
if (i !== 3) return;
|
|
86
|
+
if (i !== 3 || !visible) return;
|
|
76
87
|
const id = setInterval(() => setSecs((s) => s > 0 ? s - 1 : QR_SECS), 1e3);
|
|
77
88
|
return () => clearInterval(id);
|
|
78
|
-
}, [i]);
|
|
89
|
+
}, [i, visible]);
|
|
79
90
|
const pick = (n) => {
|
|
80
91
|
setAuto(false);
|
|
81
92
|
if (n === 3 && i !== 3) setSecs(QR_SECS);
|
|
@@ -123,7 +134,7 @@ function PayMethods() {
|
|
|
123
134
|
] })
|
|
124
135
|
] }, "qr")
|
|
125
136
|
];
|
|
126
|
-
return /* @__PURE__ */ jsxs("div", { className: "flex h-full w-full flex-col items-center justify-center gap-6 px-6 pb-6 pt-12", style: { containerType: "size" }, children: [
|
|
137
|
+
return /* @__PURE__ */ jsxs("div", { ref: root, className: "flex h-full w-full flex-col items-center justify-center gap-6 px-6 pb-6 pt-12", style: { containerType: "size" }, children: [
|
|
127
138
|
/* @__PURE__ */ jsxs(
|
|
128
139
|
"div",
|
|
129
140
|
{
|
|
@@ -53,9 +53,9 @@ function Cell({ v, on }) {
|
|
|
53
53
|
className: cx(
|
|
54
54
|
"mx-auto grid h-5 w-5 place-items-center rounded-full transition-[background-color,color,transform] duration-500",
|
|
55
55
|
EASE,
|
|
56
|
-
on ? "scale-110 bg-brand text-
|
|
56
|
+
on ? "scale-110 bg-brand text-on-brand" : "bg-ink/[0.06] text-ink"
|
|
57
57
|
),
|
|
58
|
-
children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
58
|
+
children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: "h-3 w-3", fill: "none", stroke: "currentColor", strokeWidth: "3.3", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsx("path", { d: "m5 12.5 4.5 4.5L19 7.5" }) })
|
|
59
59
|
}
|
|
60
60
|
),
|
|
61
61
|
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Included" })
|
|
@@ -164,7 +164,7 @@ function PricingTable({ plans = PLANS, groups = GROUPS, currency = "$", maxHeigh
|
|
|
164
164
|
/* @__PURE__ */ jsxs("div", { className: "aui-ptable-rise flex flex-col", style: { animationDelay: `${80 + i * 60}ms` }, children: [
|
|
165
165
|
/* @__PURE__ */ jsxs("span", { className: "flex h-5 items-center gap-2 text-[14px] font-medium", children: [
|
|
166
166
|
p.name,
|
|
167
|
-
p.recommended && /* @__PURE__ */ jsx("span", { className: "rounded-[4px] bg-brand px-1.5 text-[10.5px] font-medium leading-[18px] text-
|
|
167
|
+
p.recommended && /* @__PURE__ */ jsx("span", { className: "rounded-[4px] bg-brand px-1.5 text-[10.5px] font-medium leading-[18px] text-on-brand", children: "Popular" })
|
|
168
168
|
] }),
|
|
169
169
|
/* @__PURE__ */ jsxs("span", { className: "mt-3 flex items-start font-medium leading-none tracking-[-0.04em]", children: [
|
|
170
170
|
/* @__PURE__ */ jsx("span", { className: "mr-0.5 mt-0.5 text-[15px]", children: currency }),
|
|
@@ -178,11 +178,14 @@ function PricingTable({ plans = PLANS, groups = GROUPS, currency = "$", maxHeigh
|
|
|
178
178
|
className: cx(
|
|
179
179
|
"group mt-4 inline-flex h-9 items-center whitespace-nowrap justify-center gap-1.5 rounded-[8px] px-3 text-[13px] font-medium outline-none transition-[background-color,color,box-shadow,transform] duration-500 hover:-translate-y-px active:translate-y-0 active:scale-[.98] focus-visible:ring-2 focus-visible:ring-brand/50 focus-visible:ring-offset-2 focus-visible:ring-offset-paper",
|
|
180
180
|
EASE,
|
|
181
|
-
on ? "bg-brand text-
|
|
181
|
+
on ? "bg-brand text-on-brand shadow-[0_8px_20px_-10px_var(--brand)]" : "bg-paper text-ink shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_14%,transparent)]"
|
|
182
182
|
),
|
|
183
183
|
children: [
|
|
184
184
|
p.cta.label,
|
|
185
|
-
/* @__PURE__ */
|
|
185
|
+
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: cx("h-3.5 w-3.5 transition-transform duration-300 group-hover:translate-x-0.5", EASE), fill: "none", stroke: "currentColor", strokeWidth: "2.7", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
186
|
+
/* @__PURE__ */ jsx("path", { d: "M4 12h15" }),
|
|
187
|
+
/* @__PURE__ */ jsx("path", { d: "m13 6 6 6-6 6" })
|
|
188
|
+
] })
|
|
186
189
|
]
|
|
187
190
|
}
|
|
188
191
|
)
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// components/kit/variants/button-aui-066.tsx
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
var cx = (...c) => c.filter(Boolean).join(" ");
|
|
6
|
+
function ButtonGroup({ label, size = "md", className, children, ...rest }) {
|
|
7
|
+
return /* @__PURE__ */ jsx(
|
|
8
|
+
"div",
|
|
9
|
+
{
|
|
10
|
+
role: "group",
|
|
11
|
+
"aria-label": label,
|
|
12
|
+
"data-size": size,
|
|
13
|
+
...rest,
|
|
14
|
+
className: cx(
|
|
15
|
+
"group/bg inline-flex rounded-[8px] bg-[linear-gradient(180deg,var(--paper)_0%,color-mix(in_srgb,var(--paper-2)_70%,var(--paper))_100%)] shadow-[inset_0_1px_0_rgb(255_255_255/0.5),0_0_0_1px_color-mix(in_srgb,var(--ink)_13%,transparent),0_1px_2px_color-mix(in_srgb,var(--ink)_6%,transparent),0_4px_10px_-6px_color-mix(in_srgb,var(--ink)_14%,transparent)]",
|
|
16
|
+
className
|
|
17
|
+
),
|
|
18
|
+
children
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
function GroupButton({ icon, iconOnly, pressed, className, children, type = "button", ...rest }) {
|
|
23
|
+
return /* @__PURE__ */ jsxs(
|
|
24
|
+
"button",
|
|
25
|
+
{
|
|
26
|
+
type,
|
|
27
|
+
"aria-pressed": pressed,
|
|
28
|
+
...rest,
|
|
29
|
+
className: cx(
|
|
30
|
+
"relative inline-flex items-center justify-center gap-2 whitespace-nowrap font-medium text-ink-2 outline-none transition-[background-color,color] duration-150",
|
|
31
|
+
"h-9 px-3 text-[13.5px] group-data-[size=sm]/bg:h-8 group-data-[size=sm]/bg:px-2.5 group-data-[size=sm]/bg:text-[13px]",
|
|
32
|
+
iconOnly && "w-9 px-0 group-data-[size=sm]/bg:w-8 group-data-[size=sm]/bg:px-0",
|
|
33
|
+
// A hairline between neighbours, drawn inside so the outline stays one piece.
|
|
34
|
+
"first:rounded-l-[8px] last:rounded-r-[8px] [&:not(:first-child)]:shadow-[inset_1px_0_0_color-mix(in_srgb,var(--ink)_11%,transparent)]",
|
|
35
|
+
"hover:bg-[color-mix(in_srgb,var(--ink)_5%,transparent)] hover:text-ink active:bg-[color-mix(in_srgb,var(--ink)_8%,transparent)]",
|
|
36
|
+
"aria-pressed:bg-[color-mix(in_srgb,var(--ink)_8%,transparent)] aria-pressed:text-ink",
|
|
37
|
+
"disabled:pointer-events-none disabled:opacity-45 focus-visible:z-10 focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-brand [&_svg]:size-4 [&_svg]:shrink-0",
|
|
38
|
+
className
|
|
39
|
+
),
|
|
40
|
+
children: [
|
|
41
|
+
icon,
|
|
42
|
+
children
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
var button_aui_066_default = ButtonGroup;
|
|
48
|
+
|
|
49
|
+
export {
|
|
50
|
+
ButtonGroup,
|
|
51
|
+
GroupButton,
|
|
52
|
+
button_aui_066_default
|
|
53
|
+
};
|
|
@@ -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/ChatThread.tsx
|
|
4
8
|
import { useEffect, useLayoutEffect, useRef, useState } from "react";
|
|
@@ -26,13 +30,15 @@ function ChatThread() {
|
|
|
26
30
|
const [draft, setDraft] = useState("");
|
|
27
31
|
const [fade, setFade] = useState(false);
|
|
28
32
|
const [instant, setInstant] = useState(false);
|
|
29
|
-
const [
|
|
33
|
+
const [held, takeOverDemo] = useTakeOver(9e3);
|
|
34
|
+
const root = useRef(null);
|
|
35
|
+
const visible = useInView(root);
|
|
36
|
+
const paused = held || !visible;
|
|
30
37
|
const nextId = useRef(3);
|
|
31
38
|
const pos = useRef(0);
|
|
32
39
|
const reply = useRef(0);
|
|
33
40
|
const list = useRef(null);
|
|
34
41
|
const tops = useRef(/* @__PURE__ */ new Map());
|
|
35
|
-
const idle = useRef(null);
|
|
36
42
|
const own = useRef([]);
|
|
37
43
|
const add = (m) => {
|
|
38
44
|
const id = nextId.current++;
|
|
@@ -52,15 +58,10 @@ function ChatThread() {
|
|
|
52
58
|
}
|
|
53
59
|
});
|
|
54
60
|
tops.current = next;
|
|
55
|
-
});
|
|
56
|
-
const takeOver =
|
|
57
|
-
setPaused(true);
|
|
58
|
-
if (idle.current) clearTimeout(idle.current);
|
|
59
|
-
idle.current = setTimeout(() => setPaused(false), 9e3);
|
|
60
|
-
};
|
|
61
|
+
}, [msgs, typing, read]);
|
|
62
|
+
const takeOver = takeOverDemo;
|
|
61
63
|
useEffect(
|
|
62
64
|
() => () => {
|
|
63
|
-
if (idle.current) clearTimeout(idle.current);
|
|
64
65
|
own.current.forEach(clearTimeout);
|
|
65
66
|
},
|
|
66
67
|
[]
|
|
@@ -135,7 +136,7 @@ function ChatThread() {
|
|
|
135
136
|
];
|
|
136
137
|
};
|
|
137
138
|
const lastMe = [...msgs].reverse().find((m) => m.me)?.id;
|
|
138
|
-
return /* @__PURE__ */ jsxs("div", { className: "flex h-full w-full items-center justify-center px-5 pb-5 pt-11", style: { containerType: "size" }, children: [
|
|
139
|
+
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: [
|
|
139
140
|
/* @__PURE__ */ jsx("style", { href: "asta-chatthread", precedence: "asta", children: `
|
|
140
141
|
@keyframes lab-ct-grow { from { transform: scale(.55); opacity: 0 } to { transform: none; opacity: 1 } }
|
|
141
142
|
@keyframes lab-ct-fly { from { transform: translateY(28px) scale(.97); opacity: 0 } to { transform: none; opacity: 1 } }
|
|
@@ -175,7 +175,10 @@ function CreatableCombobox({ options = LABELS, value, defaultValue = ["bug", "fr
|
|
|
175
175
|
onPointerDown: (e) => e.preventDefault(),
|
|
176
176
|
onClick: () => set(ids.filter((x) => x !== id)),
|
|
177
177
|
className: "flex h-6 w-6 items-center justify-center rounded-[5px] text-mute outline-none transition-colors hover:bg-[color-mix(in_srgb,var(--ink)_8%,transparent)] hover:text-ink",
|
|
178
|
-
children: /* @__PURE__ */
|
|
178
|
+
children: /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: "h-3 w-3", fill: "none", stroke: "currentColor", strokeWidth: "2.7", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
179
|
+
/* @__PURE__ */ jsx("path", { d: "m6 6 12 12" }),
|
|
180
|
+
/* @__PURE__ */ jsx("path", { d: "M18 6 6 18" })
|
|
181
|
+
] })
|
|
179
182
|
}
|
|
180
183
|
)
|
|
181
184
|
] }, id);
|
|
@@ -238,7 +241,10 @@ function CreatableCombobox({ options = LABELS, value, defaultValue = ["bug", "fr
|
|
|
238
241
|
onClick: create,
|
|
239
242
|
className: cx("mb-1 flex h-11 cursor-pointer select-none items-center gap-2.5 rounded-[8px] px-2.5 transition-colors duration-150", active === 0 ? "bg-[color-mix(in_srgb,var(--brand)_8%,transparent)]" : ""),
|
|
240
243
|
children: [
|
|
241
|
-
/* @__PURE__ */ jsx("span", { className: "flex h-6 w-6 items-center justify-center rounded-[6px] bg-brand text-
|
|
244
|
+
/* @__PURE__ */ jsx("span", { className: "flex h-6 w-6 items-center justify-center rounded-[6px] bg-brand text-on-brand", "aria-hidden": true, children: /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: "h-3.5 w-3.5", fill: "none", stroke: "currentColor", strokeWidth: "3", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
245
|
+
/* @__PURE__ */ jsx("path", { d: "M12 5v14" }),
|
|
246
|
+
/* @__PURE__ */ jsx("path", { d: "M5 12h14" })
|
|
247
|
+
] }) }),
|
|
242
248
|
/* @__PURE__ */ jsxs("span", { className: "min-w-0 flex-1 truncate text-[13.5px] text-ink-2", children: [
|
|
243
249
|
"Create",
|
|
244
250
|
" ",
|
|
@@ -285,7 +291,7 @@ function CreatableCombobox({ options = LABELS, value, defaultValue = ["bug", "fr
|
|
|
285
291
|
/* @__PURE__ */ jsx(Dot, { tint: l.tint }),
|
|
286
292
|
/* @__PURE__ */ jsx("span", { className: cx("min-w-0 flex-1 truncate text-[13.5px] text-ink", on && "font-medium"), children: l.name }),
|
|
287
293
|
l.count !== void 0 && /* @__PURE__ */ jsx("span", { className: "font-mono text-[11px] tabular-nums text-mute", children: l.count }),
|
|
288
|
-
/* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
294
|
+
/* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: cx("h-3.5 w-3.5 shrink-0 text-brand transition-[opacity,transform] duration-300", on ? "scale-100 opacity-100" : "scale-50 opacity-0"), fill: "none", stroke: "currentColor", strokeWidth: "3.3", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "m5 12.5 4.5 4.5L19 7.5" }) })
|
|
289
295
|
]
|
|
290
296
|
},
|
|
291
297
|
l.id
|
|
@@ -24,20 +24,20 @@ function Chevron() {
|
|
|
24
24
|
return /* @__PURE__ */ jsx(
|
|
25
25
|
"svg",
|
|
26
26
|
{
|
|
27
|
-
viewBox: "0 0
|
|
27
|
+
viewBox: "0 0 24 24",
|
|
28
28
|
className: "h-4 w-4 shrink-0 text-mute transition-transform duration-300 ease-[cubic-bezier(.16,1,.3,1)] group-data-[state=open]/sel:rotate-180",
|
|
29
29
|
fill: "none",
|
|
30
30
|
stroke: "currentColor",
|
|
31
|
-
strokeWidth: "
|
|
31
|
+
strokeWidth: "2.4",
|
|
32
32
|
strokeLinecap: "round",
|
|
33
33
|
strokeLinejoin: "round",
|
|
34
34
|
"aria-hidden": true,
|
|
35
|
-
children: /* @__PURE__ */ jsx("path", { d: "
|
|
35
|
+
children: /* @__PURE__ */ jsx("path", { d: "m6 9.5 6 6 6-6" })
|
|
36
36
|
}
|
|
37
37
|
);
|
|
38
38
|
}
|
|
39
39
|
function Check({ on }) {
|
|
40
|
-
return /* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
40
|
+
return /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: cx("h-4 w-4 shrink-0 text-brand transition-opacity", on ? "opacity-100" : "opacity-0"), fill: "none", stroke: "currentColor", strokeWidth: "3", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "m5 12.5 4.5 4.5L19 7.5" }) });
|
|
41
41
|
}
|
|
42
42
|
function Shown({ option, placeholder }) {
|
|
43
43
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -148,9 +148,9 @@ function SearchSelect({ options, value, defaultValue, onChange, placeholder = "S
|
|
|
148
148
|
children: [
|
|
149
149
|
/* @__PURE__ */ jsx("style", { href: "asta-select-2", precedence: "asta", children: KEYFRAMES }),
|
|
150
150
|
/* @__PURE__ */ jsxs("div", { className: "mb-1 flex items-center gap-2 rounded-lg bg-paper-2 px-2.5", children: [
|
|
151
|
-
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0
|
|
152
|
-
/* @__PURE__ */ jsx("circle", { cx: "
|
|
153
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
151
|
+
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: "h-3.5 w-3.5 shrink-0 text-mute", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
152
|
+
/* @__PURE__ */ jsx("circle", { cx: "10.5", cy: "10.5", r: "6" }),
|
|
153
|
+
/* @__PURE__ */ jsx("path", { d: "m15 15 5 5" })
|
|
154
154
|
] }),
|
|
155
155
|
/* @__PURE__ */ jsx(
|
|
156
156
|
"input",
|
|
@@ -14,7 +14,8 @@ var PEOPLE = [
|
|
|
14
14
|
{ name: "Yuki T.", tone: "bg-[color-mix(in_srgb,var(--brand)_16%,var(--paper))] text-brand" }
|
|
15
15
|
];
|
|
16
16
|
var LAST = 8;
|
|
17
|
-
var
|
|
17
|
+
var USD2 = new Intl.NumberFormat("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 });
|
|
18
|
+
var money = (n) => `$${USD2.format(n)}`;
|
|
18
19
|
var initials = (n) => n === "You" ? "Y" : n.replace(/[^A-Za-z ]/g, "").split(" ").map((w) => w[0]).join("");
|
|
19
20
|
function Roll({ value, instant }) {
|
|
20
21
|
const chars = value.split("");
|
|
@@ -63,9 +64,15 @@ function SplitBill() {
|
|
|
63
64
|
}, []);
|
|
64
65
|
useEffect(() => {
|
|
65
66
|
if (paused) return;
|
|
66
|
-
const t =
|
|
67
|
+
const t = /* @__PURE__ */ new Set();
|
|
67
68
|
let alive = true;
|
|
68
|
-
const later = (ms, f) =>
|
|
69
|
+
const later = (ms, f) => {
|
|
70
|
+
const id = setTimeout(() => {
|
|
71
|
+
t.delete(id);
|
|
72
|
+
if (alive) f();
|
|
73
|
+
}, ms);
|
|
74
|
+
t.add(id);
|
|
75
|
+
};
|
|
69
76
|
const cycle = () => {
|
|
70
77
|
if (k.current >= LAST) {
|
|
71
78
|
setFade(true);
|