asta-ui 0.9.8 → 0.10.0
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 +18 -1
- package/css/components.css +21 -10
- package/css/runtime/overlays.js +17 -0
- package/css/src/core.css +5 -5
- package/css/src/overlays.css +16 -5
- package/dist/accordion.js +1 -1
- package/dist/agent-plan.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/badge.js +1 -1
- package/dist/base/accordion.js +1 -1
- package/dist/base/agent-plan.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/badge.js +1 -1
- package/dist/base/billing.js +3 -3
- 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/carousel.js +1 -1
- package/dist/base/chart-card.js +1 -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 +2 -2
- package/dist/base/context-menu.js +1 -1
- package/dist/base/context-meter.js +1 -1
- 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/empty-state.js +2 -2
- package/dist/base/event-calendar.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/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/image-compare.js +1 -1
- package/dist/base/inbox.js +2 -2
- 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/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/notification-center.js +1 -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/payment-received.js +1 -1
- package/dist/base/phone-input.js +1 -1
- package/dist/base/price-alert.js +1 -1
- package/dist/base/price-chart.js +1 -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.js +1 -1
- package/dist/base/rating.js +1 -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/sidebar.js +1 -1
- 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/slider-aui-063.js +1 -1
- package/dist/base/split-bill.js +1 -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 +3 -3
- package/dist/base/testimonials.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-007.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/thinking.js +1 -1
- package/dist/base/toast.js +1 -1
- package/dist/base/token-swap.js +1 -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 +1 -1
- package/dist/base/tree-view.js +1 -1
- package/dist/base/watchlist.js +1 -1
- package/dist/base/workspace-switcher.js +1 -1
- package/dist/base.js +187 -153
- package/dist/billing.js +3 -3
- 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/carousel.js +1 -1
- package/dist/chart-card.js +1 -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-5ZQ6PMJT.js → chunk-22ILG5VV.js} +2 -2
- package/dist/{chunk-2F5CE6ZB.js → chunk-27W3F7NE.js} +7 -6
- package/dist/{chunk-66MJ6EEU.js → chunk-2DA4SEGX.js} +2 -2
- package/dist/chunk-2GLBURQR.js +85 -0
- package/dist/{chunk-X4M6RXNL.js → chunk-2H25OHYS.js} +17 -13
- package/dist/{chunk-FA4A2EGP.js → chunk-2RUX5OTU.js} +5 -4
- package/dist/{chunk-3PLQKAD7.js → chunk-2U3WJCWO.js} +15 -5
- package/dist/{chunk-VTTXURIB.js → chunk-32GWAA4A.js} +4 -3
- package/dist/{chunk-3XHG7P5T.js → chunk-3F4MIHEK.js} +7 -7
- package/dist/{chunk-LOHFV5JF.js → chunk-3MH5O4HX.js} +7 -7
- package/dist/{chunk-7PHSPBJK.js → chunk-3N7SRANH.js} +8 -4
- package/dist/{chunk-UJYZZSII.js → chunk-4ATDGYSC.js} +13 -9
- package/dist/{chunk-3UQIYJTI.js → chunk-4EX6JZ7C.js} +11 -4
- package/dist/{chunk-CRGCVJLS.js → chunk-4IPMVLH7.js} +2 -2
- 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-SDUD2HI2.js → chunk-4YF2XZY5.js} +3 -3
- package/dist/{chunk-VDWLZWAT.js → chunk-56PRVZWW.js} +3 -3
- package/dist/{chunk-VI6565XF.js → chunk-5CD5RMFF.js} +32 -18
- package/dist/{chunk-FAHOYAQH.js → chunk-5JLFPVXB.js} +5 -2
- package/dist/{chunk-UOOGRGEC.js → chunk-5SK7NMOG.js} +2 -1
- package/dist/{chunk-IU4OH5MB.js → chunk-5UARATD2.js} +9 -6
- package/dist/{chunk-Z2DF2YL5.js → chunk-5WVRC4BW.js} +1 -1
- package/dist/{chunk-6MPEI6V5.js → chunk-67BNR73B.js} +5 -5
- package/dist/{chunk-JQX5KR7O.js → chunk-76NMSRFH.js} +4 -1
- package/dist/{chunk-MNWZP3S2.js → chunk-7AN76PIT.js} +1 -1
- package/dist/chunk-7DQJUZFY.js +139 -0
- package/dist/{chunk-3PSV752Q.js → chunk-7E5ZWVOH.js} +1 -1
- package/dist/{chunk-77RFV2MG.js → chunk-7GUFM5QQ.js} +16 -11
- package/dist/{chunk-MIDBYG4B.js → chunk-7RECQQQP.js} +2 -1
- package/dist/{chunk-UX6CWJT7.js → chunk-7TCU6IJX.js} +1 -1
- package/dist/{chunk-CMOI7V4H.js → chunk-7YF3BCAH.js} +18 -9
- package/dist/{chunk-N3X4T5OR.js → chunk-A4CMX7CD.js} +26 -17
- package/dist/{chunk-ZH5A4YKQ.js → chunk-A7TELQOW.js} +2 -2
- package/dist/{chunk-MXRBXBE3.js → chunk-AAE4SLAV.js} +4 -1
- package/dist/{chunk-YNPG4WOS.js → chunk-AIUW7VNA.js} +8 -5
- package/dist/{chunk-V4O44BPH.js → chunk-AM63372L.js} +1 -1
- package/dist/{chunk-YV3D4CPO.js → chunk-B2GAISZU.js} +0 -1
- package/dist/{chunk-JX7V6EFT.js → chunk-B2SLXW63.js} +19 -15
- package/dist/{chunk-JJ473HJ2.js → chunk-BBILYMCF.js} +6 -3
- package/dist/{chunk-6OZZ24UL.js → chunk-BLZYUAE7.js} +4 -1
- package/dist/{chunk-VEKYE733.js → chunk-BNODQM6D.js} +13 -7
- package/dist/{chunk-2SOX7WUL.js → chunk-BT7K6WI5.js} +5 -5
- package/dist/{chunk-ZO25PAJA.js → chunk-BTSLCG3J.js} +35 -17
- package/dist/chunk-C5NGITT4.js +90 -0
- package/dist/{chunk-W2S6JDBM.js → chunk-CGMVTIMW.js} +13 -13
- package/dist/{chunk-VIFKQE2H.js → chunk-CYU52LAD.js} +2 -2
- package/dist/{chunk-OUGWYBWG.js → chunk-CZKYSTF5.js} +4 -1
- package/dist/{chunk-64UK5LOT.js → chunk-D3GC3QHM.js} +6 -4
- package/dist/{chunk-AQV7BK73.js → chunk-DAWISPMI.js} +13 -7
- package/dist/{chunk-DITROAPF.js → chunk-DQNJLPQZ.js} +119 -39
- package/dist/{chunk-KATSSAVI.js → chunk-DSMKE64O.js} +2 -1
- package/dist/{chunk-HKOPYHLZ.js → chunk-DUAMPG7T.js} +8 -20
- package/dist/{chunk-MT3VMDV4.js → chunk-DXFIPXJJ.js} +5 -2
- package/dist/{chunk-3PLPK7QK.js → chunk-DY5Z45NW.js} +4 -1
- package/dist/{chunk-MKCLD2HJ.js → chunk-E4ZM7ZFL.js} +35 -17
- package/dist/{chunk-ZK4DK2SS.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-BXNC35OZ.js → chunk-FEQPNCG7.js} +9 -6
- package/dist/{chunk-4RBIAKO6.js → chunk-FJNJ2TLR.js} +0 -1
- package/dist/{chunk-2RB5T6WP.js → chunk-FZ3GCVH2.js} +2 -1
- package/dist/{chunk-D6LGKFZH.js → chunk-G23AGEY4.js} +1 -1
- package/dist/{chunk-Q3KZWQWK.js → chunk-GPGIY2ZG.js} +6 -6
- package/dist/{chunk-CTWW5QOS.js → chunk-GU5KNBTL.js} +7 -5
- package/dist/{chunk-UACKIMP4.js → chunk-GUZHEEYG.js} +6 -6
- package/dist/{chunk-LS6CFF6X.js → chunk-GX4ZHNG7.js} +5 -1
- package/dist/{chunk-DZU5SMC3.js → chunk-HGQK3XJB.js} +5 -5
- package/dist/{chunk-Q6IUIKAE.js → chunk-HJ2FWSSM.js} +8 -8
- package/dist/{chunk-IS2VTYDA.js → chunk-HJD3NQST.js} +6 -3
- package/dist/{chunk-RJZ37JRF.js → chunk-HJMROSE4.js} +19 -8
- package/dist/{chunk-P3XPSBST.js → chunk-HKNI3L5Q.js} +4 -4
- package/dist/{chunk-6NR46VEH.js → chunk-HON5QYW7.js} +7 -7
- package/dist/{chunk-OSZXWKKH.js → chunk-IS35SPLR.js} +6 -5
- package/dist/{chunk-QYI7LQBQ.js → chunk-ITC5UU7V.js} +1 -1
- package/dist/{chunk-WOMLNEGP.js → chunk-IUOKOPNY.js} +4 -3
- package/dist/{chunk-MSBN2O66.js → chunk-J65FSZ6X.js} +1 -1
- package/dist/{chunk-ZJLQDN5R.js → chunk-JIQIQ7IZ.js} +5 -4
- package/dist/{chunk-DSLKU6QJ.js → chunk-JZNZUL3S.js} +119 -39
- package/dist/{chunk-DEAQSJ4Z.js → chunk-K5QMUHOG.js} +12 -9
- package/dist/{chunk-MBMY2VYS.js → chunk-KCASF2IV.js} +7 -7
- package/dist/{chunk-765WRI6C.js → chunk-KE33WVT2.js} +3 -3
- package/dist/{chunk-ZNH7MSLM.js → chunk-KMYHXVOF.js} +2 -2
- package/dist/{chunk-ZKMEKSJZ.js → chunk-KSNSN42X.js} +9 -4
- package/dist/{chunk-KCORGXZI.js → chunk-KSZLBV3P.js} +4 -1
- package/dist/{chunk-6D4LHBWD.js → chunk-KUK3UZ7M.js} +10 -7
- package/dist/{chunk-PNN2M3V3.js → chunk-KY6XHDJY.js} +13 -7
- package/dist/{chunk-YUOEZYRP.js → chunk-L4G2YUXT.js} +0 -1
- package/dist/{chunk-RPOV3WAK.js → chunk-L7SG34PT.js} +14 -14
- package/dist/{chunk-5ZTFP7P6.js → chunk-LBUUCJQE.js} +18 -9
- package/dist/{chunk-CDQNLDO6.js → chunk-LLI33GKW.js} +4 -4
- package/dist/{chunk-QWOO4V7N.js → chunk-LO4TYPLL.js} +8 -2
- package/dist/{chunk-BWYPKOG3.js → chunk-M32LPQKJ.js} +1 -1
- package/dist/{chunk-BT77ALVB.js → chunk-M4NEGTL3.js} +4 -1
- package/dist/{chunk-YVGC7QT7.js → chunk-MG6TUMH7.js} +5 -5
- package/dist/{chunk-RAEOJYMR.js → chunk-MQYV5MKH.js} +9 -5
- package/dist/{chunk-OIIMYSVT.js → chunk-MTI7DQ4F.js} +7 -7
- package/dist/{chunk-D2JJSUXI.js → chunk-MXHFJ3XF.js} +6 -3
- package/dist/{chunk-PZJYDIJI.js → chunk-N3MCZYXP.js} +1 -1
- package/dist/{chunk-YDKATODA.js → chunk-N3ZDCARL.js} +3 -3
- package/dist/{chunk-B7MVYR7C.js → chunk-NBNAXWLN.js} +10 -6
- package/dist/{chunk-PLQ6CYRC.js → chunk-NNAJQJSC.js} +5 -2
- package/dist/{chunk-KFPGQ5RT.js → chunk-O2CID2IT.js} +11 -11
- package/dist/{chunk-GTS6MKPD.js → chunk-OR6R6OXI.js} +2 -2
- package/dist/{chunk-FBIGYEFN.js → chunk-OSM5E2YR.js} +6 -6
- package/dist/{chunk-QEHCINJG.js → chunk-PFKHMDTK.js} +6 -5
- package/dist/{chunk-ALRSHXXA.js → chunk-QEV4RIZR.js} +2 -1
- package/dist/{chunk-WDOI4U7K.js → chunk-QHDDNBEI.js} +10 -10
- package/dist/{chunk-XCKKECIR.js → chunk-QIZHAGI4.js} +4 -4
- package/dist/{chunk-H7OVE6OB.js → chunk-QJH5ZLJ7.js} +32 -18
- 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-L67VH7II.js → chunk-R74CPGM2.js} +2 -2
- package/dist/chunk-RDV5ETG2.js +105 -0
- package/dist/{chunk-FPOH7ETA.js → chunk-RJ6FURDA.js} +5 -5
- package/dist/{chunk-ZMCNI37U.js → chunk-RJWEBYP2.js} +11 -2
- package/dist/{chunk-DUGKLVQJ.js → chunk-RKCW27UM.js} +0 -1
- package/dist/{chunk-633N6IVU.js → chunk-S4Q2HPP5.js} +5 -2
- package/dist/chunk-SDBQOVMA.js +53 -0
- package/dist/{chunk-IVR3ZIXB.js → chunk-SL6HYI6T.js} +9 -3
- package/dist/{chunk-AMVX4DDT.js → chunk-STEGNOAK.js} +7 -7
- package/dist/{chunk-ORZVPZQP.js → chunk-T2GLXMC7.js} +2 -1
- package/dist/{chunk-FW45BTSS.js → chunk-TKXFGPCY.js} +13 -7
- package/dist/{chunk-WBRRSZW4.js → chunk-TLPJA7QP.js} +4 -1
- package/dist/{chunk-XUZH4Y52.js → chunk-TN3ATHN7.js} +23 -22
- package/dist/{chunk-PZA44CGX.js → chunk-TOGS33KA.js} +10 -7
- package/dist/{chunk-YF3XSH54.js → chunk-TQKGGJ4W.js} +9 -3
- package/dist/{chunk-OFWUA5BO.js → chunk-TSYFDGCR.js} +3 -3
- package/dist/{chunk-4CIRS3OI.js → chunk-UHNZ3I66.js} +2 -1
- package/dist/{chunk-EWSQCTIB.js → chunk-UHW53LWK.js} +0 -1
- package/dist/{chunk-ID5GN2VU.js → chunk-UNE53KA2.js} +4 -1
- package/dist/{chunk-4WCMPLE3.js → chunk-UQWPG5BH.js} +9 -5
- package/dist/{chunk-ALDX2G5E.js → chunk-V5SXW6U7.js} +15 -5
- package/dist/{chunk-FK2LKLRN.js → chunk-VDSYL3LA.js} +0 -1
- package/dist/{chunk-M362TW4G.js → chunk-VYFSYD3Z.js} +4 -1
- package/dist/{chunk-AMFNY7IA.js → chunk-W42RQZ2S.js} +7 -4
- package/dist/{chunk-HSDMCZMX.js → chunk-W5ZXNQUJ.js} +2 -2
- package/dist/{chunk-DUXOV6MO.js → chunk-WGHJKPVG.js} +1 -1
- package/dist/{chunk-Z5TG7ZGD.js → chunk-WQM3JDLU.js} +8 -20
- package/dist/{chunk-4GF7WTR3.js → chunk-WSN6SDBH.js} +1 -1
- package/dist/{chunk-2PQIPQGO.js → chunk-XDIWPIKO.js} +14 -10
- package/dist/{chunk-JE2MAZGR.js → chunk-XILRY6LB.js} +1 -1
- package/dist/{chunk-QJ7QZWXJ.js → chunk-XKJ3KMMO.js} +12 -7
- package/dist/{chunk-XGNTNUAT.js → chunk-XQQ2USYE.js} +2 -2
- package/dist/{chunk-N7XJO5Q4.js → chunk-XXOJGQF6.js} +0 -1
- package/dist/{chunk-XSNQN67K.js → chunk-YE6GLSZ4.js} +1 -1
- package/dist/{chunk-5OSKT7O3.js → chunk-YGRYE53G.js} +7 -7
- package/dist/{chunk-LQR5OD3Z.js → chunk-YSUGZLB5.js} +4 -1
- package/dist/{chunk-ZXHMJKJY.js → chunk-YTQSVOA7.js} +1 -1
- package/dist/{chunk-G3FPQ3XG.js → chunk-YV5WZJGS.js} +13 -9
- package/dist/{chunk-JGZHWQGV.js → chunk-YVRTO4XC.js} +4 -1
- package/dist/{chunk-GBOJUMMY.js → chunk-YXFUOERB.js} +6 -6
- 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-IBJA4ZM5.js → chunk-ZMP7XCON.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 +2 -2
- package/dist/context-menu.js +1 -1
- package/dist/context-meter.js +1 -1
- 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/empty-state.js +2 -2
- package/dist/event-calendar.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/footer-aui-027.js +1 -1
- package/dist/footer-aui-028.js +1 -1
- package/dist/footer.js +2 -2
- package/dist/image-compare.js +1 -1
- package/dist/inbox.js +2 -2
- package/dist/index.js +188 -154
- 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/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/notification-center.js +1 -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/payment-received.js +1 -1
- package/dist/phone-input.js +1 -1
- package/dist/price-alert.js +1 -1
- package/dist/price-chart.js +1 -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.js +1 -1
- package/dist/rating.js +1 -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/sidebar.js +1 -1
- 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/slider-aui-063.js +1 -1
- package/dist/split-bill.js +1 -1
- package/dist/stat-card.js +1 -1
- package/dist/stepper.js +1 -1
- 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 +3 -3
- package/dist/testimonials.js +1 -1
- package/dist/textarea-aui-003.js +1 -1
- package/dist/textarea-aui-005.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/thinking.js +1 -1
- package/dist/toast.js +1 -1
- package/dist/token-swap.js +1 -1
- package/dist/tool-approval.js +1 -1
- package/dist/tool-dock.js +1 -1
- package/dist/trace-waterfall.js +1 -1
- package/dist/trade-ticket.js +1 -1
- package/dist/tree-view.js +1 -1
- package/dist/types/components/kit/accordion.d.ts +4 -3
- 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/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/watchlist.js +1 -1
- package/dist/workspace-switcher.js +1 -1
- package/package.json +1 -1
- 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
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Meter
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-GX4ZHNG7.js";
|
|
5
5
|
import {
|
|
6
6
|
Button
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-22ILG5VV.js";
|
|
8
8
|
|
|
9
9
|
// components/kit/billing.tsx
|
|
10
|
-
import { useState } from "react";
|
|
10
|
+
import { useMemo, useState } from "react";
|
|
11
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
12
|
var cx = (...c) => c.filter(Boolean).join(" ");
|
|
13
13
|
var KEYFRAMES = `@keyframes asta-billing-roll { from { opacity: 0; transform: translateY(55%) } }
|
|
@@ -34,7 +34,11 @@ function Billing({ plans, currentPlan, renewsOn, daysLeft = 0, periodDays = 30,
|
|
|
34
34
|
const [pick, setPick] = useState(null);
|
|
35
35
|
const [saving, setSaving] = useState(false);
|
|
36
36
|
const [done, setDone] = useState(null);
|
|
37
|
-
const money = (
|
|
37
|
+
const money = useMemo(() => {
|
|
38
|
+
const whole = new Intl.NumberFormat(locale, { style: "currency", currency, minimumFractionDigits: 0 });
|
|
39
|
+
const cents = new Intl.NumberFormat(locale, { style: "currency", currency, minimumFractionDigits: 2 });
|
|
40
|
+
return (n) => (n % 1 ? cents : whole).format(n);
|
|
41
|
+
}, [locale, currency]);
|
|
38
42
|
const cur = plans.find((p) => p.id === current) ?? plans[0];
|
|
39
43
|
const next = pick ? plans.find((p) => p.id === pick) : void 0;
|
|
40
44
|
const share = periodDays ? daysLeft / periodDays : 0;
|
|
@@ -86,7 +90,7 @@ function Billing({ plans, currentPlan, renewsOn, daysLeft = 0, periodDays = 30,
|
|
|
86
90
|
] }),
|
|
87
91
|
p.blurb && /* @__PURE__ */ jsx("span", { className: "text-[12px] text-mute", children: p.blurb }),
|
|
88
92
|
p.features && /* @__PURE__ */ jsx("ul", { className: "mt-2 flex flex-col gap-1 text-[12px] text-ink-2", children: p.features.map((f) => /* @__PURE__ */ jsxs("li", { className: "flex gap-1.5", children: [
|
|
89
|
-
/* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
93
|
+
/* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: "mt-[3px] h-3 w-3 shrink-0 text-brand", 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" }) }),
|
|
90
94
|
f
|
|
91
95
|
] }, f)) })
|
|
92
96
|
]
|
|
@@ -125,9 +129,10 @@ function Billing({ plans, currentPlan, renewsOn, daysLeft = 0, periodDays = 30,
|
|
|
125
129
|
] }),
|
|
126
130
|
usage.length > 0 && /* @__PURE__ */ jsx(Group, { title: "Usage", hint: "This billing period. Limits reset on renewal.", children: /* @__PURE__ */ jsx("div", { className: "grid gap-3 @min-[560px]:grid-cols-2", children: usage.map((u) => /* @__PURE__ */ jsx("div", { className: "rounded-[12px] bg-paper-2 p-4", children: /* @__PURE__ */ jsx(Meter, { label: u.label, value: u.value, max: u.max, format: u.format, size: "sm" }) }, u.label)) }) }),
|
|
127
131
|
card && /* @__PURE__ */ jsx(Group, { title: "Payment method", hint: "Charged on each renewal.", children: /* @__PURE__ */ jsxs("div", { className: rowCls, children: [
|
|
128
|
-
/* @__PURE__ */ jsx("span", { className: "grid h-8 w-12 shrink-0 place-items-center rounded-md bg-ink text-paper", "aria-hidden": true, children: /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24
|
|
129
|
-
/* @__PURE__ */ jsx("rect", { x: "
|
|
130
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
132
|
+
/* @__PURE__ */ jsx("span", { className: "grid h-8 w-12 shrink-0 place-items-center rounded-md bg-ink text-paper", "aria-hidden": true, children: /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: "h-4 w-6", fill: "none", stroke: "currentColor", strokeWidth: "2.1", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
133
|
+
/* @__PURE__ */ jsx("rect", { x: "3", y: "5.5", width: "18", height: "13", rx: "2" }),
|
|
134
|
+
/* @__PURE__ */ jsx("path", { d: "M3 10h18" }),
|
|
135
|
+
/* @__PURE__ */ jsx("path", { d: "M6.5 15h3" })
|
|
131
136
|
] }) }),
|
|
132
137
|
/* @__PURE__ */ jsxs("span", { className: "min-w-0 flex-1", children: [
|
|
133
138
|
/* @__PURE__ */ jsxs("span", { className: "block text-[13.5px] font-medium", children: [
|
|
@@ -147,7 +152,11 @@ function Billing({ plans, currentPlan, renewsOn, daysLeft = 0, periodDays = 30,
|
|
|
147
152
|
/* @__PURE__ */ jsx("span", { className: "hidden min-w-0 flex-1 truncate font-mono text-[12px] text-mute @min-[480px]:block", children: inv.id }),
|
|
148
153
|
/* @__PURE__ */ jsx("span", { className: "ml-auto font-medium tabular-nums @min-[480px]:ml-0", children: money(inv.amount) }),
|
|
149
154
|
/* @__PURE__ */ jsx("span", { className: cx("w-[52px] shrink-0 text-right text-[12px]", inv.status === "paid" ? "text-mute" : inv.status === "due" ? "text-ink" : "font-medium text-ink"), children: inv.status === "paid" ? "Paid" : inv.status === "due" ? "Due" : "Failed" }),
|
|
150
|
-
inv.href ? /* @__PURE__ */ jsx("a", { href: inv.href, "aria-label": `Download ${inv.id}`, className: "grid h-7 w-7 shrink-0 place-items-center rounded-md text-mute outline-none transition-colors hover:bg-paper hover:text-ink focus-visible:ring-2 focus-visible:ring-brand/50", children: /* @__PURE__ */
|
|
155
|
+
inv.href ? /* @__PURE__ */ jsx("a", { href: inv.href, "aria-label": `Download ${inv.id}`, className: "grid h-7 w-7 shrink-0 place-items-center rounded-md text-mute outline-none transition-colors hover:bg-paper hover:text-ink focus-visible:ring-2 focus-visible:ring-brand/50", children: /* @__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: [
|
|
156
|
+
/* @__PURE__ */ jsx("path", { d: "M12 4v11" }),
|
|
157
|
+
/* @__PURE__ */ jsx("path", { d: "m7 10 5 5 5-5" }),
|
|
158
|
+
/* @__PURE__ */ jsx("path", { d: "M5 19.5h14" })
|
|
159
|
+
] }) }) : /* @__PURE__ */ jsx("span", { className: "w-7 shrink-0" })
|
|
151
160
|
] }, inv.id)) }) })
|
|
152
161
|
] })
|
|
153
162
|
] });
|
|
@@ -133,11 +133,11 @@ function ThemeSwitch({ theme, defaultTheme = "light", onThemeChange, person = "M
|
|
|
133
133
|
children: [
|
|
134
134
|
/* @__PURE__ */ jsx("span", { className: "absolute inset-0 rounded-full bg-white" }),
|
|
135
135
|
/* @__PURE__ */ jsx("span", { className: "absolute inset-0 rounded-full bg-[color-mix(in_srgb,var(--brand)_14%,white)] transition-opacity duration-500", style: { opacity: dark ? 1 : 0 } }),
|
|
136
|
-
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0
|
|
137
|
-
/* @__PURE__ */ jsx("circle", { cx: "
|
|
138
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
136
|
+
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: "absolute h-3.5 w-3.5 text-ink transition-[transform,opacity] duration-500", style: { opacity: dark ? 0 : 1, transform: dark ? "scale(.4) rotate(-90deg)" : "none", transitionTimingFunction: EASE }, fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
137
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "3.75" }),
|
|
138
|
+
/* @__PURE__ */ jsx("path", { d: "M12 3v2M12 19v2M3 12h2M19 12h2M5.6 5.6l1.4 1.4M17 17l1.4 1.4M5.6 18.4 7 17M17 7l1.4-1.4" })
|
|
139
139
|
] }),
|
|
140
|
-
/* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
140
|
+
/* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: "absolute h-3.5 w-3.5 text-brand transition-[transform,opacity] duration-500", style: { opacity: dark ? 1 : 0, transform: dark ? "none" : "scale(.4) rotate(90deg)", transitionTimingFunction: EASE }, fill: "currentColor", children: /* @__PURE__ */ jsx("path", { d: "M19.5 14.5A7.5 7.5 0 0 1 9.5 4.5a7.5 7.5 0 1 0 10 10Z" }) })
|
|
141
141
|
]
|
|
142
142
|
}
|
|
143
143
|
)
|
|
@@ -114,7 +114,10 @@ function SuggestTagInput({
|
|
|
114
114
|
},
|
|
115
115
|
"aria-label": `Remove ${tag}`,
|
|
116
116
|
className: "ml-0.5 flex h-6 w-6 items-center justify-center rounded-[5px] opacity-60 outline-none transition-[opacity,background-color] hover:bg-[color-mix(in_srgb,var(--paper)_14%,transparent)] hover:opacity-100 focus-visible:ring-2 focus-visible:ring-brand/60",
|
|
117
|
-
children: /* @__PURE__ */
|
|
117
|
+
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: [
|
|
118
|
+
/* @__PURE__ */ jsx("path", { d: "m6 6 12 12" }),
|
|
119
|
+
/* @__PURE__ */ jsx("path", { d: "M18 6 6 18" })
|
|
120
|
+
] })
|
|
118
121
|
}
|
|
119
122
|
)
|
|
120
123
|
]
|
|
@@ -182,7 +185,10 @@ function SuggestTagInput({
|
|
|
182
185
|
),
|
|
183
186
|
style: { animation: `aui049-sug .45s ${EASE} ${Math.min(i, 6) * 40}ms both` },
|
|
184
187
|
children: [
|
|
185
|
-
/* @__PURE__ */
|
|
188
|
+
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: "h-3 w-3 transition-transform duration-300 group-hover:rotate-90", fill: "none", stroke: "currentColor", strokeWidth: "2.7", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
189
|
+
/* @__PURE__ */ jsx("path", { d: "M12 5v14" }),
|
|
190
|
+
/* @__PURE__ */ jsx("path", { d: "M5 12h14" })
|
|
191
|
+
] }),
|
|
186
192
|
s
|
|
187
193
|
]
|
|
188
194
|
},
|
|
@@ -14,7 +14,7 @@ var KEYFRAMES = `@keyframes asta-tm-left { to { transform: translateX(-50%) } }
|
|
|
14
14
|
function Card({ t, className }) {
|
|
15
15
|
return /* @__PURE__ */ jsxs("figure", { className: cx("flex flex-col justify-between gap-5 rounded-[12px] bg-paper-2 p-5", className), children: [
|
|
16
16
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-3", children: [
|
|
17
|
-
t.rating ? /* @__PURE__ */ jsx("span", { className: "flex gap-0.5 text-brand", role: "img", "aria-label": `${t.rating} out of 5`, children: Array.from({ length: 5 }, (_, i) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
17
|
+
t.rating ? /* @__PURE__ */ jsx("span", { className: "flex gap-0.5 text-brand", role: "img", "aria-label": `${t.rating} out of 5`, children: Array.from({ length: 5 }, (_, i) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: cx("h-3.5 w-3.5", i >= t.rating && "opacity-25"), fill: "currentColor", stroke: "currentColor", strokeWidth: "1.75", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "m12 3.8 2.5 5.1 5.6.8-4 4 .9 5.6-5-2.7-5 2.7.9-5.6-4-4 5.6-.8Z" }) }, i)) }) : null,
|
|
18
18
|
/* @__PURE__ */ jsxs("blockquote", { className: "text-[14px] leading-relaxed text-ink", children: [
|
|
19
19
|
"\u201C",
|
|
20
20
|
t.quote,
|
|
@@ -260,7 +260,10 @@ function UsagePricing({
|
|
|
260
260
|
),
|
|
261
261
|
children: [
|
|
262
262
|
action.label,
|
|
263
|
-
/* @__PURE__ */
|
|
263
|
+
/* @__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: [
|
|
264
|
+
/* @__PURE__ */ jsx("path", { d: "M4 12h15" }),
|
|
265
|
+
/* @__PURE__ */ jsx("path", { d: "m13 6 6 6-6 6" })
|
|
266
|
+
] })
|
|
264
267
|
]
|
|
265
268
|
}
|
|
266
269
|
)
|
|
@@ -217,7 +217,7 @@ function GroupedSelect({ groups = ZONES, value, defaultValue, onChange, label =
|
|
|
217
217
|
] })
|
|
218
218
|
] }, current),
|
|
219
219
|
selInfo && /* @__PURE__ */ jsx("span", { className: "overflow-hidden font-mono text-[12.5px] tabular-nums text-ink-2", suppressHydrationWarning: true, children: /* @__PURE__ */ jsx("span", { className: "inline-block", style: { animation: `aui045-tick .5s ${EASE} both` }, children: selInfo.time }, selInfo.time) }),
|
|
220
|
-
/* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
220
|
+
/* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: cx("h-4 w-4 shrink-0 text-mute transition-transform duration-300", open && "rotate-180"), fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "m6 9.5 6 6 6-6" }) })
|
|
221
221
|
]
|
|
222
222
|
}
|
|
223
223
|
),
|
|
@@ -234,9 +234,9 @@ function GroupedSelect({ groups = ZONES, value, defaultValue, onChange, label =
|
|
|
234
234
|
onKeyDown: onKey,
|
|
235
235
|
children: [
|
|
236
236
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 px-3.5 py-1 shadow-[0_1px_0_color-mix(in_srgb,var(--ink)_7%,transparent)]", children: [
|
|
237
|
-
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0
|
|
238
|
-
/* @__PURE__ */ jsx("circle", { cx: "
|
|
239
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
237
|
+
/* @__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: [
|
|
238
|
+
/* @__PURE__ */ jsx("circle", { cx: "10.5", cy: "10.5", r: "6" }),
|
|
239
|
+
/* @__PURE__ */ jsx("path", { d: "m15 15 5 5" })
|
|
240
240
|
] }),
|
|
241
241
|
/* @__PURE__ */ jsx(
|
|
242
242
|
"input",
|
|
@@ -304,7 +304,7 @@ function GroupedSelect({ groups = ZONES, value, defaultValue, onChange, label =
|
|
|
304
304
|
" ",
|
|
305
305
|
info.offset.replace("GMT", "")
|
|
306
306
|
] }) : o.hint }),
|
|
307
|
-
/* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
307
|
+
/* @__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" }) })
|
|
308
308
|
]
|
|
309
309
|
},
|
|
310
310
|
o.value
|
|
@@ -33,7 +33,10 @@ var parse = (p) => {
|
|
|
33
33
|
out.push(p.slice(last));
|
|
34
34
|
return out;
|
|
35
35
|
};
|
|
36
|
-
var arrow = /* @__PURE__ */
|
|
36
|
+
var arrow = /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: "h-3 w-3", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
37
|
+
/* @__PURE__ */ jsx("path", { d: "M7 17 17 7" }),
|
|
38
|
+
/* @__PURE__ */ jsx("path", { d: "M9 7h8v8" })
|
|
39
|
+
] });
|
|
37
40
|
function Citations({ text, sources, loading, visible = 3, className }) {
|
|
38
41
|
const [card, setCard] = useState(null);
|
|
39
42
|
const [lit, setLit] = useState(null);
|
|
@@ -147,9 +150,10 @@ function Citations({ text, sources, loading, visible = 3, className }) {
|
|
|
147
150
|
/* @__PURE__ */ jsx("style", { href: "asta-citations", precedence: "asta", children: KEYFRAMES }),
|
|
148
151
|
/* @__PURE__ */ jsx("div", { className: "flex flex-col gap-3 text-[15px] leading-[1.7] text-ink", children: paragraphs.map((p, pi) => /* @__PURE__ */ jsx("p", { children: parse(p).map((part, k) => typeof part === "string" ? part : /* @__PURE__ */ jsx("span", { className: "whitespace-nowrap", children: part.map((n, j) => pill(n, `${pi}-${k}-${j}`)) }, k)) }, pi)) }),
|
|
149
152
|
sources.length === 0 ? /* @__PURE__ */ jsxs("p", { className: "flex items-center gap-2 text-[12.5px] text-mute", children: [
|
|
150
|
-
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0
|
|
151
|
-
/* @__PURE__ */ jsx("circle", { cx: "
|
|
152
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
153
|
+
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: "h-3.5 w-3.5", fill: "none", stroke: "currentColor", strokeWidth: "2.25", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
154
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "8.5" }),
|
|
155
|
+
/* @__PURE__ */ jsx("path", { d: "M12 7.5v5" }),
|
|
156
|
+
/* @__PURE__ */ jsx("path", { d: "M12 16h.01" })
|
|
153
157
|
] }),
|
|
154
158
|
"No sources were used for this answer. Check it before you rely on it."
|
|
155
159
|
] }) : /* @__PURE__ */ jsxs("section", { "aria-labelledby": `${uid}-h`, className: "flex flex-col gap-2.5", children: [
|
|
@@ -168,7 +172,7 @@ function Citations({ text, sources, loading, visible = 3, className }) {
|
|
|
168
172
|
className: "flex h-7 items-center gap-1 rounded-md px-2 text-[12.5px] font-medium text-ink-2 outline-none transition-colors duration-150 hover:bg-paper-2 hover:text-ink focus-visible:ring-2 focus-visible:ring-brand/50",
|
|
169
173
|
children: [
|
|
170
174
|
all ? "Show less" : `Show all ${sources.length}`,
|
|
171
|
-
/* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
175
|
+
/* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: cx("h-3.5 w-3.5 transition-transform duration-300 ease-[cubic-bezier(.16,1,.3,1)]", all && "rotate-180"), fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "m6 9.5 6 6 6-6" }) })
|
|
172
176
|
]
|
|
173
177
|
}
|
|
174
178
|
)
|
|
@@ -10,10 +10,10 @@ var KEYFRAMES = `@keyframes asta-tw-grow { from { transform: translateX(var(--x)
|
|
|
10
10
|
@media (prefers-reduced-motion: reduce) { .asta-tw, .asta-tw * { animation: none !important; transition-duration: 0s !important } }`;
|
|
11
11
|
var EASE = "cubic-bezier(.16,1,.3,1)";
|
|
12
12
|
var KINDS = {
|
|
13
|
-
agent: { label: "Agent", fill: "bg-[color-mix(in_srgb,var(--ink)_22%,var(--paper))]", path: "
|
|
14
|
-
llm: { label: "LLM call", fill: "bg-brand", path: "
|
|
15
|
-
tool: { label: "Tool call", fill: "bg-ink", path: "
|
|
16
|
-
retrieval: { label: "Retrieval", fill: "bg-[color-mix(in_srgb,var(--brand)_42%,var(--paper))]", path: "
|
|
13
|
+
agent: { label: "Agent", fill: "bg-[color-mix(in_srgb,var(--ink)_22%,var(--paper))]", path: "M7.5 8h9a3 3 0 0 1 3 3v5.5a3 3 0 0 1-3 3h-9a3 3 0 0 1-3-3v-5.5a3 3 0 0 1 3-3ZM12 8V5.5M10.75 4.25a1.25 1.25 0 1 0 2.5 0a1.25 1.25 0 1 0-2.5 0M9.5 12.5V14M14.5 12.5V14M2.5 12.5v3M21.5 12.5v3" },
|
|
14
|
+
llm: { label: "LLM call", fill: "bg-brand", path: "M12 3.5c.7 4.6 2.4 6.3 7 7-4.6.7-6.3 2.4-7 7-.7-4.6-2.4-6.3-7-7 4.6-.7 6.3-2.4 7-7ZM19 16.5c.25 1.6.9 2.25 2.5 2.5-1.6.25-2.25.9-2.5 2.5-.25-1.6-.9-2.25-2.5-2.5 1.6-.25 2.25-.9 2.5-2.5Z" },
|
|
15
|
+
tool: { label: "Tool call", fill: "bg-ink", path: "M13 9l-8.5 8.5a1.4 1.4 0 0 0 2 2L15 11M10.5 6.5 14 3l6.5 6.5L17 13Z" },
|
|
16
|
+
retrieval: { label: "Retrieval", fill: "bg-[color-mix(in_srgb,var(--brand)_42%,var(--paper))]", path: "M5 6a7 2.5 0 1 0 14 0a7 2.5 0 1 0-14 0M5 6v12c0 1.4 3.1 2.5 7 2.5s7-1.1 7-2.5V6M5 12c0 1.4 3.1 2.5 7 2.5s7-1.1 7-2.5" }
|
|
17
17
|
};
|
|
18
18
|
var STEPS = [10, 20, 50, 100, 200, 250, 500, 1e3, 2e3, 2500, 5e3, 1e4, 2e4, 3e4, 6e4];
|
|
19
19
|
var GRID = "grid grid-cols-[minmax(200px,1.3fr)_minmax(240px,2fr)_56px_68px_76px] sm:grid-cols-[minmax(232px,1.3fr)_minmax(240px,2fr)_56px_68px_76px] items-center gap-x-3";
|
|
@@ -22,9 +22,9 @@ var tick = (n) => n === 0 ? "0" : n < 1e3 ? `${n}ms` : `${+(n / 1e3).toFixed(1)}
|
|
|
22
22
|
var usd = (n) => `$${n < 0.01 ? n.toFixed(4) : n.toFixed(3)}`;
|
|
23
23
|
var num = (n) => n.toLocaleString("en-US");
|
|
24
24
|
function Glyph({ d, className }) {
|
|
25
|
-
return /* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
25
|
+
return /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: cx("h-3.5 w-3.5 shrink-0", className), fill: "none", stroke: "currentColor", strokeWidth: "2.25", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d }) });
|
|
26
26
|
}
|
|
27
|
-
var WARN = "
|
|
27
|
+
var WARN = "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 0ZM12 9.5v4M12 17h.01";
|
|
28
28
|
function Stat({ label, children }) {
|
|
29
29
|
return /* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
|
|
30
30
|
/* @__PURE__ */ jsx("dt", { className: "text-[11.5px] text-mute", children: label }),
|
|
@@ -303,7 +303,7 @@ function TraceWaterfall({ spans, title = "Agent run", live = false, startedAt, s
|
|
|
303
303
|
focusRow(current.id);
|
|
304
304
|
},
|
|
305
305
|
className: "grid h-7 w-7 shrink-0 place-items-center rounded-md text-mute outline-none transition-colors hover:bg-paper hover:text-ink focus-visible:ring-2 focus-visible:ring-brand/50",
|
|
306
|
-
children: /* @__PURE__ */ jsx(Glyph, { d: "
|
|
306
|
+
children: /* @__PURE__ */ jsx(Glyph, { d: "M6 6l12 12M18 6 6 18" })
|
|
307
307
|
}
|
|
308
308
|
)
|
|
309
309
|
] }),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
// components/kit/stat-card.tsx
|
|
4
|
-
import { useLayoutEffect, useRef } from "react";
|
|
4
|
+
import { useLayoutEffect, useMemo, useRef } from "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
var cx = (...c) => c.filter(Boolean).join(" ");
|
|
7
7
|
var KEYFRAMES = `@keyframes asta-stat-draw { from { stroke-dashoffset: 1 } }
|
|
@@ -31,7 +31,7 @@ function StatCard({ label, value, format, locale = "en-US", prefix = "", suffix
|
|
|
31
31
|
const shown = useRef(0);
|
|
32
32
|
const started = useRef(false);
|
|
33
33
|
const fmtKey = JSON.stringify(format ?? {});
|
|
34
|
-
const fmt = new Intl.NumberFormat(locale,
|
|
34
|
+
const fmt = useMemo(() => new Intl.NumberFormat(locale, JSON.parse(fmtKey)), [locale, fmtKey]);
|
|
35
35
|
const text = `${prefix}${fmt.format(value)}${suffix}`;
|
|
36
36
|
useLayoutEffect(() => {
|
|
37
37
|
const node = num.current?.firstChild;
|
|
@@ -118,7 +118,10 @@ function StatCard({ label, value, format, locale = "en-US", prefix = "", suffix
|
|
|
118
118
|
] }),
|
|
119
119
|
delta !== void 0 && /* @__PURE__ */ jsxs("p", { className: "flex items-center gap-1.5 text-[12.5px]", children: [
|
|
120
120
|
/* @__PURE__ */ jsxs("span", { className: cx("inline-flex items-center gap-0.5 font-medium tabular-nums", up ? "text-brand" : "text-mute"), children: [
|
|
121
|
-
/* @__PURE__ */
|
|
121
|
+
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: cx("h-3 w-3", !up && delta !== 0 && "rotate-180", delta === 0 && "hidden"), fill: "none", stroke: "currentColor", strokeWidth: "3.2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
122
|
+
/* @__PURE__ */ jsx("path", { d: "M12 20V5" }),
|
|
123
|
+
/* @__PURE__ */ jsx("path", { d: "m6 11 6-6 6 6" })
|
|
124
|
+
] }),
|
|
122
125
|
/* @__PURE__ */ jsx("span", { className: "sr-only", children: up ? "Up" : delta < 0 ? "Down" : "No change" }),
|
|
123
126
|
`${delta > 0 ? "+" : delta < 0 ? "\u2212" : ""}${Math.abs(delta).toFixed(1)}%`
|
|
124
127
|
] }),
|
|
@@ -7,7 +7,7 @@ var cx = (...c) => c.filter(Boolean).join(" ");
|
|
|
7
7
|
var KEYFRAMES = `@keyframes asta-file-star { 0% { transform: scale(.6) } 55% { transform: scale(1.25) } 100% { transform: scale(1) } }
|
|
8
8
|
@media (prefers-reduced-motion: reduce) { .asta-file-star { animation: none !important } }`;
|
|
9
9
|
function Star({ on }) {
|
|
10
|
-
return /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: cx("h-4 w-4", on && "asta-file-star animate-[asta-file-star_.42s_cubic-bezier(.16,1,.3,1)]"), fill: on ? "currentColor" : "none", stroke: "currentColor", strokeWidth: 1.7, strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "m12 3.
|
|
10
|
+
return /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: cx("h-4 w-4", on && "asta-file-star animate-[asta-file-star_.42s_cubic-bezier(.16,1,.3,1)]"), fill: on ? "currentColor" : "none", stroke: "currentColor", strokeWidth: 1.7, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "m12 3.8 2.5 5.1 5.6.8-4 4 .9 5.6-5-2.7-5 2.7.9-5.6-4-4 5.6-.8Z" }) });
|
|
11
11
|
}
|
|
12
12
|
function Thumb({ thumbnail, title }) {
|
|
13
13
|
if (typeof thumbnail === "string")
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Button
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-22ILG5VV.js";
|
|
5
5
|
|
|
6
6
|
// components/kit/settings-panel.tsx
|
|
7
7
|
import { forwardRef, useEffect, useId, useImperativeHandle, useRef, useState } from "react";
|
|
@@ -200,7 +200,7 @@ var SettingsPanel = forwardRef(function SettingsPanel2({ initial, onSave, langua
|
|
|
200
200
|
children: languages.map((l) => /* @__PURE__ */ jsx("option", { children: l }, l))
|
|
201
201
|
}
|
|
202
202
|
),
|
|
203
|
-
/* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
203
|
+
/* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: "pointer-events-none absolute right-3 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-mute", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "m6 9.5 6 6 6-6" }) })
|
|
204
204
|
] })
|
|
205
205
|
] })
|
|
206
206
|
] })
|
|
@@ -223,7 +223,7 @@ var SettingsPanel = forwardRef(function SettingsPanel2({ initial, onSave, langua
|
|
|
223
223
|
className: "pointer-events-auto flex items-center gap-2 rounded-[10px] bg-ink py-2 pl-4 pr-2 text-paper shadow-[0_12px_30px_-10px_rgb(0_0_0/0.5)]",
|
|
224
224
|
children: [
|
|
225
225
|
/* @__PURE__ */ jsx("span", { className: "flex min-w-0 flex-1 items-center gap-2 text-[13.5px]", "aria-live": "polite", children: status === "saved" ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
226
|
-
/* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
226
|
+
/* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: "h-4 w-4 shrink-0 text-paper", 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" }) }),
|
|
227
227
|
"Saved"
|
|
228
228
|
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
229
229
|
/* @__PURE__ */ jsx("span", { className: "h-1.5 w-1.5 shrink-0 rounded-full bg-brand" }),
|
|
@@ -113,7 +113,7 @@ function StatusFooter({
|
|
|
113
113
|
/* @__PURE__ */ jsx("span", { className: cx("relative h-2 w-2 rounded-full", live ? "aui-f28-beat bg-brand" : "bg-ink") })
|
|
114
114
|
] }),
|
|
115
115
|
status.label,
|
|
116
|
-
status.href && /* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
116
|
+
status.href && /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", "aria-hidden": true, className: cx("h-3 w-3 text-mute transition-transform duration-300 group-hover/st:translate-x-0.5", EASE), fill: "none", stroke: "currentColor", strokeWidth: "2.7", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsx("path", { d: "m9.5 6 6 6-6 6" }) })
|
|
117
117
|
] });
|
|
118
118
|
const pillClass = cx("group/st inline-flex items-center gap-2 rounded-[6px] text-[13px] font-medium text-ink", ring);
|
|
119
119
|
const shown = hover ?? null;
|
|
@@ -199,9 +199,10 @@ function StatusFooter({
|
|
|
199
199
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
200
200
|
/* @__PURE__ */ jsxs("div", { className: "relative min-w-0 flex-1 @min-[600px]:flex-none", children: [
|
|
201
201
|
/* @__PURE__ */ jsx("label", { htmlFor: langId, className: "sr-only", children: "Language" }),
|
|
202
|
-
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0
|
|
203
|
-
/* @__PURE__ */ jsx("circle", { cx: "
|
|
204
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
202
|
+
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", "aria-hidden": true, className: "pointer-events-none absolute left-2.5 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-mute", fill: "none", stroke: "currentColor", strokeWidth: "2.1", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
203
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "8.5" }),
|
|
204
|
+
/* @__PURE__ */ jsx("path", { d: "M3.5 12h17" }),
|
|
205
|
+
/* @__PURE__ */ jsx("path", { d: "M12 3.5c2.5 2.6 3.5 5.5 3.5 8.5s-1 5.9-3.5 8.5C9.5 17.9 8.5 15 8.5 12s1-5.9 3.5-8.5Z" })
|
|
205
206
|
] }),
|
|
206
207
|
/* @__PURE__ */ jsx(
|
|
207
208
|
"select",
|
|
@@ -217,7 +218,7 @@ function StatusFooter({
|
|
|
217
218
|
children: languages.map((l) => /* @__PURE__ */ jsx("option", { value: l.value, children: l.label }, l.value))
|
|
218
219
|
}
|
|
219
220
|
),
|
|
220
|
-
/* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
221
|
+
/* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", "aria-hidden": true, className: "pointer-events-none absolute right-2.5 top-1/2 h-3 w-3 -translate-y-1/2 text-mute", fill: "none", stroke: "currentColor", strokeWidth: "2.7", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsx("path", { d: "m6 9.5 6 6 6-6" }) })
|
|
221
222
|
] }),
|
|
222
223
|
/* @__PURE__ */ jsxs(
|
|
223
224
|
"button",
|
|
@@ -230,7 +231,10 @@ function StatusFooter({
|
|
|
230
231
|
ring
|
|
231
232
|
),
|
|
232
233
|
children: [
|
|
233
|
-
/* @__PURE__ */ jsx("span", { className: "relative grid h-3.5 w-3.5 place-items-center overflow-hidden", children: /* @__PURE__ */
|
|
234
|
+
/* @__PURE__ */ jsx("span", { className: "relative grid h-3.5 w-3.5 place-items-center overflow-hidden", children: /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", "aria-hidden": true, className: cx("h-3.5 w-3.5", fly > 0 && "aui-f28-fly"), fill: "none", stroke: "currentColor", strokeWidth: "2.85", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
235
|
+
/* @__PURE__ */ jsx("path", { d: "M12 20V5" }),
|
|
236
|
+
/* @__PURE__ */ jsx("path", { d: "m6 11 6-6 6 6" })
|
|
237
|
+
] }, fly) }),
|
|
234
238
|
"Back to top"
|
|
235
239
|
]
|
|
236
240
|
}
|
|
@@ -129,7 +129,10 @@ function CtaFooter({
|
|
|
129
129
|
),
|
|
130
130
|
children: [
|
|
131
131
|
primary.label,
|
|
132
|
-
/* @__PURE__ */
|
|
132
|
+
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", "aria-hidden": true, className: cx("h-3.5 w-3.5 transition-transform duration-300 group-hover/cta:translate-x-0.5 motion-reduce:transition-none", EASE), fill: "none", stroke: "currentColor", strokeWidth: "2.7", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
133
|
+
/* @__PURE__ */ jsx("path", { d: "M4 12h15" }),
|
|
134
|
+
/* @__PURE__ */ jsx("path", { d: "m13 6 6 6-6 6" })
|
|
135
|
+
] })
|
|
133
136
|
]
|
|
134
137
|
}
|
|
135
138
|
),
|
|
@@ -168,7 +171,7 @@ function CtaFooter({
|
|
|
168
171
|
children: languages.map((l) => /* @__PURE__ */ jsx("option", { value: l.value, children: l.label }, l.value))
|
|
169
172
|
}
|
|
170
173
|
),
|
|
171
|
-
/* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
174
|
+
/* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", "aria-hidden": true, className: "pointer-events-none absolute right-2.5 top-1/2 h-3 w-3 -translate-y-1/2 text-mute", fill: "none", stroke: "currentColor", strokeWidth: "2.7", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsx("path", { d: "m6 9.5 6 6 6-6" }) })
|
|
172
175
|
] })
|
|
173
176
|
] })
|
|
174
177
|
] })
|
|
@@ -10,18 +10,18 @@ var KEYFRAMES = `@keyframes asta-ta-in { from { opacity: 0; transform: translate
|
|
|
10
10
|
@keyframes asta-ta-menu { from { opacity: 0; transform: translateY(-4px) scale(.96) } }
|
|
11
11
|
@keyframes asta-ta-spin { to { transform: rotate(360deg) } }
|
|
12
12
|
@media (prefers-reduced-motion: reduce) { .asta-ta-a, .asta-ta-a * { animation: none !important; transition-duration: 0s !important } }`;
|
|
13
|
-
var svg = { viewBox: "0 0
|
|
13
|
+
var svg = { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2.25, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true };
|
|
14
14
|
var KIND = {
|
|
15
|
-
sql: /* @__PURE__ */ jsx("path", { d: "
|
|
16
|
-
shell: /* @__PURE__ */ jsx("path", { d: "
|
|
17
|
-
file: /* @__PURE__ */ jsx("path", { d: "
|
|
18
|
-
web: /* @__PURE__ */ jsx("path", { d: "
|
|
19
|
-
mail: /* @__PURE__ */ jsx("path", { d: "
|
|
15
|
+
sql: /* @__PURE__ */ jsx("path", { d: "M5 6a7 2.5 0 1 0 14 0a7 2.5 0 1 0-14 0M5 6v12c0 1.4 3.1 2.5 7 2.5s7-1.1 7-2.5V6M5 12c0 1.4 3.1 2.5 7 2.5s7-1.1 7-2.5" }),
|
|
16
|
+
shell: /* @__PURE__ */ jsx("path", { d: "M5.5 4.5h13a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2h-13a2 2 0 0 1-2-2v-11a2 2 0 0 1 2-2ZM7.5 9.5l3 2.5-3 2.5M12.5 15h4" }),
|
|
17
|
+
file: /* @__PURE__ */ jsx("path", { d: "M6 3.5h8l4.5 4.5v12.5H6ZM14 3.5V8h4.5M9 13h6M9 16.5h4" }),
|
|
18
|
+
web: /* @__PURE__ */ jsx("path", { d: "M3.5 12a8.5 8.5 0 1 0 17 0a8.5 8.5 0 1 0-17 0M3.5 12h17M12 3.5c2.5 2.6 3.5 5.5 3.5 8.5s-1 5.9-3.5 8.5C9.5 17.9 8.5 15 8.5 12s1-5.9 3.5-8.5Z" }),
|
|
19
|
+
mail: /* @__PURE__ */ jsx("path", { d: "M5.5 5.5h13a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-13a2 2 0 0 1-2-2v-9a2 2 0 0 1 2-2ZM4 7l8 6 8-6" })
|
|
20
20
|
};
|
|
21
21
|
var RISK = {
|
|
22
|
-
read: { word: "Read only", icon: /* @__PURE__ */ jsx("path", { d: "
|
|
23
|
-
write: { word: "Changes data", icon: /* @__PURE__ */ jsx("path", { d: "
|
|
24
|
-
destructive: { word: "Can't be undone", icon: /* @__PURE__ */ jsx("path", { d: "
|
|
22
|
+
read: { word: "Read only", icon: /* @__PURE__ */ jsx("path", { d: "M2.5 12c3-5.5 16-5.5 19 0-3 5.5-16 5.5-19 0ZM9.25 12a2.75 2.75 0 1 0 5.5 0a2.75 2.75 0 1 0-5.5 0" }) },
|
|
23
|
+
write: { word: "Changes data", icon: /* @__PURE__ */ jsx("path", { d: "M4.5 19.5 5 16 15.5 5.5a2.1 2.1 0 0 1 3 3L8 19ZM13.5 7.5l3 3" }) },
|
|
24
|
+
destructive: { word: "Can't be undone", icon: /* @__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 0ZM12 9.5v4M12 17h.01" }) }
|
|
25
25
|
};
|
|
26
26
|
var fmt = (ms) => ms < 1e3 ? `${Math.max(1, Math.round(ms / 100)) / 10}s` : `${(ms / 1e3).toFixed(1)}s`;
|
|
27
27
|
function Kbd({ children }) {
|
|
@@ -185,7 +185,7 @@ function Card({ call, index, count, onDecide }) {
|
|
|
185
185
|
"aria-controls": menu ? menuId : void 0,
|
|
186
186
|
onClick: () => setMenu(!menu),
|
|
187
187
|
className: "grid h-8 w-7 place-items-center rounded-r-md bg-ink text-paper shadow-[inset_1px_0_0_color-mix(in_srgb,var(--paper)_22%,transparent)] outline-none transition-[background-color,transform] duration-150 hover:bg-[color-mix(in_srgb,var(--ink)_86%,var(--paper))] active:scale-[0.97] focus-visible:ring-2 focus-visible:ring-brand/50 focus-visible:ring-offset-2 focus-visible:ring-offset-paper",
|
|
188
|
-
children: /* @__PURE__ */ jsx("svg", { ...svg, strokeWidth:
|
|
188
|
+
children: /* @__PURE__ */ jsx("svg", { ...svg, strokeWidth: 2.55, className: cx("h-3.5 w-3.5 transition-transform duration-300", menu && "rotate-180"), style: { transitionTimingFunction: CURVE }, children: /* @__PURE__ */ jsx("path", { d: "M6 9.5l6 6 6-6" }) })
|
|
189
189
|
}
|
|
190
190
|
),
|
|
191
191
|
menu && /* @__PURE__ */ jsx(
|
|
@@ -234,7 +234,7 @@ function Receipt({ call, r }) {
|
|
|
234
234
|
/* @__PURE__ */ jsx("span", { className: cx("grid h-4 w-4 shrink-0 place-items-center", denied || r.state === "error" ? "text-ink" : "text-brand"), children: r.state === "running" ? /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 16 16", className: "h-3.5 w-3.5 animate-[asta-ta-spin_.8s_linear_infinite]", fill: "none", "aria-hidden": true, children: [
|
|
235
235
|
/* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "6", stroke: "currentColor", strokeOpacity: ".2", strokeWidth: "2" }),
|
|
236
236
|
/* @__PURE__ */ jsx("path", { d: "M14 8a6 6 0 0 0-6-6", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" })
|
|
237
|
-
] }) : /* @__PURE__ */ jsx("svg", { ...svg, strokeWidth:
|
|
237
|
+
] }) : /* @__PURE__ */ jsx("svg", { ...svg, strokeWidth: 2.7, className: "h-3.5 w-3.5", children: denied ? /* @__PURE__ */ jsx("path", { d: "M3.5 12a8.5 8.5 0 1 0 17 0a8.5 8.5 0 1 0-17 0M6 6l12 12" }) : r.state === "error" ? /* @__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 0ZM12 9.5v4M12 17h.01" }) : /* @__PURE__ */ jsx("path", { d: "M5 12.5l4.5 4.5L19 7.5" }) }) }),
|
|
238
238
|
/* @__PURE__ */ jsx("span", { className: "font-medium text-ink", children: word }),
|
|
239
239
|
/* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "text-mute", children: "\xB7" }),
|
|
240
240
|
/* @__PURE__ */ jsx("span", { className: "min-w-0 truncate font-mono text-[12px] text-ink-2", children: call.tool }),
|
|
@@ -31,10 +31,10 @@ function Checkbox({ checked, defaultChecked = false, onCheckedChange, disabled,
|
|
|
31
31
|
on || mixed ? "bg-brand shadow-[inset_0_1px_0_rgb(255_255_255/0.2),0_1px_2px_rgb(0_0_0/0.2)]" : "bg-paper shadow-[inset_0_0_0_1.5px_color-mix(in_srgb,var(--ink)_22%,transparent)] hover:shadow-[inset_0_0_0_1.5px_color-mix(in_srgb,var(--ink)_40%,transparent)]"
|
|
32
32
|
),
|
|
33
33
|
children: [
|
|
34
|
-
/* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
34
|
+
/* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: "col-start-1 row-start-1 h-3 w-3 text-on-brand", fill: "none", stroke: "currentColor", strokeWidth: "3.6", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx(
|
|
35
35
|
"path",
|
|
36
36
|
{
|
|
37
|
-
d: "
|
|
37
|
+
d: "m5 12.5 4.5 4.5L19 7.5",
|
|
38
38
|
pathLength: 1,
|
|
39
39
|
strokeDasharray: "1",
|
|
40
40
|
className: "transition-[stroke-dashoffset] ease-[cubic-bezier(.16,1,.3,1)] motion-reduce:transition-none",
|
|
@@ -27,7 +27,7 @@ function Mark({ text, q }) {
|
|
|
27
27
|
text.slice(i + q.length)
|
|
28
28
|
] });
|
|
29
29
|
}
|
|
30
|
-
var Icon = ({ d, className }) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
30
|
+
var Icon = ({ d, className }) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: cx("h-4 w-4 shrink-0", className), fill: "none", stroke: "currentColor", strokeWidth: "2.25", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: d });
|
|
31
31
|
function SearchField({
|
|
32
32
|
placeholder = "Search Astabyte\u2026",
|
|
33
33
|
recent: recentProp = RECENT,
|
|
@@ -125,10 +125,10 @@ function SearchField({
|
|
|
125
125
|
children: [
|
|
126
126
|
item.kind === "recent" ? /* @__PURE__ */ jsx(Icon, { d: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
127
127
|
/* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "5.75" }),
|
|
128
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
128
|
+
/* @__PURE__ */ jsx("path", { d: "M12 7.5v4.5l3 1.875" })
|
|
129
129
|
] }), className: "text-mute" }) : /* @__PURE__ */ jsx(Icon, { d: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
130
130
|
/* @__PURE__ */ jsx("rect", { x: "2.25", y: "2.25", width: "11.5", height: "11.5", rx: "2.5" }),
|
|
131
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
131
|
+
/* @__PURE__ */ jsx("path", { d: "M4 12h15M13 6l6 6-6 6" })
|
|
132
132
|
] }), className: "text-mute" }),
|
|
133
133
|
/* @__PURE__ */ jsx("span", { className: "min-w-0 flex-1 truncate", children: /* @__PURE__ */ jsx(Mark, { text: item.label, q: q.trim() }) }),
|
|
134
134
|
item.kind === "recent" ? /* @__PURE__ */ jsx(
|
|
@@ -142,13 +142,13 @@ function SearchField({
|
|
|
142
142
|
setRecent((r) => r.filter((x) => x !== item.label));
|
|
143
143
|
},
|
|
144
144
|
className: "grid h-6 w-6 place-items-center rounded-[6px] text-mute opacity-0 transition-opacity duration-200 hover:text-[var(--aui030-fg)] group-hover/r:opacity-100",
|
|
145
|
-
children: /* @__PURE__ */ jsx(Icon, { d: /* @__PURE__ */ jsx("path", { d: "
|
|
145
|
+
children: /* @__PURE__ */ jsx(Icon, { d: /* @__PURE__ */ jsx("path", { d: "M6 6l12 12M18 6 6 18" }), className: "h-3 w-3" })
|
|
146
146
|
}
|
|
147
147
|
) : /* @__PURE__ */ jsx("span", { className: "text-[12px] text-mute", children: item.meta }),
|
|
148
148
|
/* @__PURE__ */ jsx(
|
|
149
149
|
Icon,
|
|
150
150
|
{
|
|
151
|
-
d: /* @__PURE__ */ jsx("path", { d: "
|
|
151
|
+
d: /* @__PURE__ */ jsx("path", { d: "M4 12h15M13 6l6 6-6 6" }),
|
|
152
152
|
className: cx("h-3.5 w-3.5 transition-[transform,opacity] duration-300", i === idx ? "translate-x-0 opacity-100" : "-translate-x-1 opacity-0")
|
|
153
153
|
}
|
|
154
154
|
)
|
|
@@ -237,7 +237,7 @@ function SearchField({
|
|
|
237
237
|
q ? "rotate-0 scale-100 opacity-100" : "pointer-events-none -rotate-90 scale-50 opacity-0"
|
|
238
238
|
),
|
|
239
239
|
style: { transitionTimingFunction: EASE },
|
|
240
|
-
children: /* @__PURE__ */ jsx(Icon, { d: /* @__PURE__ */ jsx("path", { d: "
|
|
240
|
+
children: /* @__PURE__ */ jsx(Icon, { d: /* @__PURE__ */ jsx("path", { d: "M6 6l12 12M18 6 6 18" }), className: "h-3 w-3" })
|
|
241
241
|
}
|
|
242
242
|
)
|
|
243
243
|
] })
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Button
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-W5ZXNQUJ.js";
|
|
5
5
|
|
|
6
6
|
// components/kit/base/onboarding.tsx
|
|
7
7
|
import { useId, useRef, useState } from "react";
|
|
@@ -9,7 +9,7 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
9
9
|
var cx = (...c) => c.filter(Boolean).join(" ");
|
|
10
10
|
var EASE = "ease-[cubic-bezier(.16,1,.3,1)]";
|
|
11
11
|
var CURVE = "cubic-bezier(.16,1,.3,1)";
|
|
12
|
-
var Check = ({ className = "" }) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
12
|
+
var Check = ({ className = "" }) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className, 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" }) });
|
|
13
13
|
function Mark({ done, current }) {
|
|
14
14
|
return /* @__PURE__ */ jsxs("span", { className: "relative flex h-5 w-5 shrink-0 items-center justify-center", "aria-hidden": true, children: [
|
|
15
15
|
/* @__PURE__ */ jsx(
|
|
@@ -135,14 +135,15 @@ function Onboarding({ title = "Get set up", subtitle, steps, defaultCompleted =
|
|
|
135
135
|
/* @__PURE__ */ jsx(
|
|
136
136
|
"svg",
|
|
137
137
|
{
|
|
138
|
-
viewBox: "0 0
|
|
138
|
+
viewBox: "0 0 24 24",
|
|
139
139
|
className: cx("h-3.5 w-3.5 shrink-0 text-mute transition-transform duration-300", EASE, isOpen && "rotate-180"),
|
|
140
140
|
fill: "none",
|
|
141
141
|
stroke: "currentColor",
|
|
142
|
-
strokeWidth: "
|
|
142
|
+
strokeWidth: "2.55",
|
|
143
143
|
strokeLinecap: "round",
|
|
144
|
+
strokeLinejoin: "round",
|
|
144
145
|
"aria-hidden": true,
|
|
145
|
-
children: /* @__PURE__ */ jsx("path", { d: "
|
|
146
|
+
children: /* @__PURE__ */ jsx("path", { d: "m6 9.5 6 6 6-6" })
|
|
146
147
|
}
|
|
147
148
|
)
|
|
148
149
|
]
|