asta-ui 0.9.8 → 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 +18 -1
- package/css/components.css +16 -5
- package/css/runtime/overlays.js +17 -0
- 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 +2 -2
- 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/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 +2 -3
- package/dist/base/citations.js +1 -1
- package/dist/base/combobox-aui-046.js +1 -1
- package/dist/base/combobox-aui-047.js +1 -1
- package/dist/base/combobox.js +1 -1
- package/dist/base/command-palette.js +1 -1
- package/dist/base/comments.js +1 -1
- package/dist/base/context-menu.js +1 -1
- package/dist/base/context-meter.js +1 -1
- package/dist/base/cookie-consent.js +1 -1
- 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 +1 -1
- 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 +6 -6
- 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 +1 -1
- package/dist/base/image-compare.js +1 -1
- package/dist/base/inbox.js +1 -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 +1 -1
- 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 +1 -1
- package/dist/base/notification-center.js +1 -1
- package/dist/base/number-input.js +1 -1
- package/dist/base/onboarding.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +2 -2
- 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 +185 -151
- package/dist/billing.js +2 -2
- 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/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 +2 -3
- 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-VTTXURIB.js → chunk-32GWAA4A.js} +4 -3
- package/dist/{chunk-ZJLQDN5R.js → chunk-3AJ4EBSV.js} +4 -3
- package/dist/{chunk-LOHFV5JF.js → chunk-3MH5O4HX.js} +7 -7
- package/dist/{chunk-7PHSPBJK.js → chunk-3N7SRANH.js} +8 -4
- package/dist/{chunk-P3XPSBST.js → chunk-3QC5SYGC.js} +3 -3
- 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-CMOI7V4H.js → chunk-5EYHX66O.js} +17 -8
- 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-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-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-L67VH7II.js → chunk-AF2WLL3H.js} +1 -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-FA4A2EGP.js → chunk-B6KIW23F.js} +4 -3
- 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-3PLQKAD7.js → chunk-BQL7HJSV.js} +14 -4
- package/dist/chunk-C5NGITT4.js +90 -0
- package/dist/{chunk-W2S6JDBM.js → chunk-CGMVTIMW.js} +13 -13
- 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-KATSSAVI.js → chunk-DSMKE64O.js} +2 -1
- package/dist/{chunk-MT3VMDV4.js → chunk-DXFIPXJJ.js} +5 -2
- package/dist/{chunk-3PLPK7QK.js → chunk-DY5Z45NW.js} +4 -1
- package/dist/{chunk-VI6565XF.js → chunk-E6HAVXWS.js} +31 -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-Z5TG7ZGD.js → chunk-FC54ZZOS.js} +7 -19
- 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-DSLKU6QJ.js → chunk-GQZPSVLB.js} +118 -38
- package/dist/{chunk-OFWUA5BO.js → chunk-GTRJUSVK.js} +2 -2
- 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-QEHCINJG.js → chunk-H3LVWLBS.js} +5 -4
- package/dist/{chunk-H7OVE6OB.js → chunk-HBKB2GXI.js} +31 -17
- 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-QYI7LQBQ.js → chunk-ITC5UU7V.js} +1 -1
- package/dist/{chunk-WOMLNEGP.js → chunk-IUOKOPNY.js} +4 -3
- package/dist/{chunk-VIFKQE2H.js → chunk-IVTOFG7I.js} +1 -1
- package/dist/{chunk-MSBN2O66.js → chunk-J65FSZ6X.js} +1 -1
- package/dist/{chunk-5ZTFP7P6.js → chunk-JZJWB5CQ.js} +17 -8
- 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-3XHG7P5T.js → chunk-KEPRNTOF.js} +6 -6
- package/dist/{chunk-PNN2M3V3.js → chunk-KKDIIZQG.js} +12 -6
- 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-YUOEZYRP.js → chunk-L4G2YUXT.js} +0 -1
- package/dist/{chunk-RPOV3WAK.js → chunk-L7SG34PT.js} +14 -14
- package/dist/{chunk-CDQNLDO6.js → chunk-LLI33GKW.js} +4 -4
- package/dist/{chunk-QWOO4V7N.js → chunk-LO4TYPLL.js} +8 -2
- package/dist/{chunk-DITROAPF.js → chunk-LUDI3KWR.js} +118 -38
- package/dist/{chunk-BWYPKOG3.js → chunk-M32LPQKJ.js} +1 -1
- package/dist/{chunk-BT77ALVB.js → chunk-M4NEGTL3.js} +4 -1
- package/dist/{chunk-XGNTNUAT.js → chunk-M6UUAF25.js} +1 -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-6NR46VEH.js → chunk-MUURQUEM.js} +6 -6
- package/dist/{chunk-D2JJSUXI.js → chunk-MXHFJ3XF.js} +6 -3
- package/dist/{chunk-PZJYDIJI.js → chunk-N3MCZYXP.js} +1 -1
- 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-FW45BTSS.js → chunk-Q2QV62WV.js} +12 -6
- package/dist/{chunk-ALRSHXXA.js → chunk-QEV4RIZR.js} +2 -1
- package/dist/{chunk-WDOI4U7K.js → chunk-QHDDNBEI.js} +10 -10
- package/dist/{chunk-ALDX2G5E.js → chunk-QKMSLSS6.js} +14 -4
- 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-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-HKOPYHLZ.js → chunk-TCCKCLEZ.js} +7 -19
- 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-MKCLD2HJ.js → chunk-TXHOOVX7.js} +34 -16
- 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-OSZXWKKH.js → chunk-URXTC4RD.js} +5 -4
- package/dist/{chunk-FK2LKLRN.js → chunk-VDSYL3LA.js} +0 -1
- package/dist/{chunk-M362TW4G.js → chunk-VYFSYD3Z.js} +4 -1
- package/dist/{chunk-YDKATODA.js → chunk-W3AUNR4J.js} +2 -2
- package/dist/{chunk-AMFNY7IA.js → chunk-W42RQZ2S.js} +7 -4
- package/dist/{chunk-DUXOV6MO.js → chunk-WGHJKPVG.js} +1 -1
- package/dist/{chunk-4GF7WTR3.js → chunk-WSN6SDBH.js} +1 -1
- package/dist/{chunk-XCKKECIR.js → chunk-WSYMYSW3.js} +3 -3
- package/dist/{chunk-2SOX7WUL.js → chunk-WYFRNK6S.js} +4 -4
- 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-ZNH7MSLM.js → chunk-XWQNDAL5.js} +1 -1
- package/dist/{chunk-N7XJO5Q4.js → chunk-XXOJGQF6.js} +0 -1
- package/dist/{chunk-ZO25PAJA.js → chunk-Y5NPX36Y.js} +34 -16
- 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-DZU5SMC3.js → chunk-Z3PHHGUZ.js} +4 -4
- 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 +1 -1
- package/dist/context-menu.js +1 -1
- package/dist/context-meter.js +1 -1
- package/dist/cookie-consent.js +1 -1
- 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 +1 -1
- 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 +6 -6
- 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 +1 -1
- package/dist/image-compare.js +1 -1
- package/dist/inbox.js +1 -1
- package/dist/index.js +186 -152
- 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 +1 -1
- 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 +1 -1
- package/dist/notification-center.js +1 -1
- package/dist/number-input.js +1 -1
- package/dist/onboarding.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +2 -2
- 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
|
@@ -196,19 +196,22 @@ function SocialSignIn({
|
|
|
196
196
|
/* @__PURE__ */ jsx("span", { className: "hidden shrink-0 whitespace-nowrap rounded-[5px] bg-brand/10 px-1.5 py-0.5 text-[10.5px] font-medium text-brand @min-[340px]:inline", children: "Last used" }),
|
|
197
197
|
/* @__PURE__ */ jsx("span", { className: "h-1.5 w-1.5 shrink-0 rounded-full bg-brand @min-[340px]:hidden", children: /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Last used" }) })
|
|
198
198
|
] }),
|
|
199
|
-
/* @__PURE__ */
|
|
199
|
+
/* @__PURE__ */ jsxs(
|
|
200
200
|
"svg",
|
|
201
201
|
{
|
|
202
|
-
viewBox: "0 0
|
|
202
|
+
viewBox: "0 0 24 24",
|
|
203
203
|
className: "h-3.5 w-3.5 -translate-x-1 text-mute opacity-0 transition-[transform,opacity] duration-300 group-hover:translate-x-0 group-hover:opacity-100 group-focus-visible:translate-x-0 group-focus-visible:opacity-100",
|
|
204
204
|
style: { transitionTimingFunction: EASE },
|
|
205
205
|
fill: "none",
|
|
206
206
|
stroke: "currentColor",
|
|
207
|
-
strokeWidth: "
|
|
207
|
+
strokeWidth: "2.55",
|
|
208
208
|
strokeLinecap: "round",
|
|
209
209
|
strokeLinejoin: "round",
|
|
210
210
|
"aria-hidden": true,
|
|
211
|
-
children:
|
|
211
|
+
children: [
|
|
212
|
+
/* @__PURE__ */ jsx("path", { d: "M4 12h15" }),
|
|
213
|
+
/* @__PURE__ */ jsx("path", { d: "m13 6 6 6-6 6" })
|
|
214
|
+
]
|
|
212
215
|
}
|
|
213
216
|
),
|
|
214
217
|
isBusy && /* @__PURE__ */ jsx(
|
|
@@ -241,7 +244,7 @@ function SocialSignIn({
|
|
|
241
244
|
style: rise(5),
|
|
242
245
|
children: [
|
|
243
246
|
"Continue with email",
|
|
244
|
-
/* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
247
|
+
/* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: "h-3.5 w-3.5 transition-transform duration-300 group-hover:translate-y-0.5", style: { transitionTimingFunction: EASE }, fill: "none", stroke: "currentColor", strokeWidth: "2.55", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "m6 9.5 6 6 6-6" }) })
|
|
245
248
|
]
|
|
246
249
|
}
|
|
247
250
|
) : /* @__PURE__ */ jsxs("form", { id: `${id}-form`, noValidate: true, onSubmit: submit, className: "flex flex-col", children: [
|
|
@@ -280,9 +283,10 @@ function SocialSignIn({
|
|
|
280
283
|
}
|
|
281
284
|
) }),
|
|
282
285
|
hasError && /* @__PURE__ */ jsxs("p", { id: `${id}-err`, role: "alert", className: "mt-1.5 flex items-center gap-1.5 text-[12.5px] text-ink", style: { animation: `aui017-in .3s ${EASE} both` }, children: [
|
|
283
|
-
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0
|
|
284
|
-
/* @__PURE__ */ jsx("circle", { cx: "
|
|
285
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
286
|
+
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: "h-3.5 w-3.5 shrink-0", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
287
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "8.5" }),
|
|
288
|
+
/* @__PURE__ */ jsx("path", { d: "M12 7.5v5" }),
|
|
289
|
+
/* @__PURE__ */ jsx("path", { d: "M12 16h.01" })
|
|
286
290
|
] }),
|
|
287
291
|
shown
|
|
288
292
|
] }),
|
|
@@ -305,9 +309,10 @@ function SocialSignIn({
|
|
|
305
309
|
)
|
|
306
310
|
] }),
|
|
307
311
|
formError && !emailOpen && /* @__PURE__ */ jsxs("p", { role: "alert", className: "mt-4 flex items-center gap-1.5 text-[12.5px] text-ink", style: { animation: `aui017-in .3s ${EASE} both` }, children: [
|
|
308
|
-
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0
|
|
309
|
-
/* @__PURE__ */ jsx("circle", { cx: "
|
|
310
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
312
|
+
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: "h-3.5 w-3.5 shrink-0", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
313
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "8.5" }),
|
|
314
|
+
/* @__PURE__ */ jsx("path", { d: "M12 7.5v5" }),
|
|
315
|
+
/* @__PURE__ */ jsx("path", { d: "M12 16h.01" })
|
|
311
316
|
] }),
|
|
312
317
|
formError
|
|
313
318
|
] }),
|
|
@@ -27,7 +27,8 @@ var INCOMING = [
|
|
|
27
27
|
];
|
|
28
28
|
var SPARK = [80, 140, 60, 210, 120, 180, 90, 160, 230, 110];
|
|
29
29
|
var ROWS = 3;
|
|
30
|
-
var
|
|
30
|
+
var USD2 = new Intl.NumberFormat("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 });
|
|
31
|
+
var money = (n) => `$${USD2.format(n)}`;
|
|
31
32
|
var initials = (n) => n.replace(/[^A-Za-z ]/g, "").split(" ").filter(Boolean).slice(0, 2).map((w) => w[0]).join("");
|
|
32
33
|
function Roll({ value, instant }) {
|
|
33
34
|
const chars = value.split("");
|
|
@@ -118,7 +118,7 @@ function NotesTextarea({
|
|
|
118
118
|
),
|
|
119
119
|
style: rise(1),
|
|
120
120
|
children: [
|
|
121
|
-
status === "saved" ? /* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
121
|
+
status === "saved" ? /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: "h-3.5 w-3.5", fill: "none", stroke: "currentColor", strokeWidth: "3", strokeLinecap: "round", strokeLinejoin: "round", style: { animation: `aui036-tick .45s ${EASE} both` }, "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "m5 12.5 4.5 4.5L19 7.5" }) }, stamp) : /* @__PURE__ */ jsx(
|
|
122
122
|
"span",
|
|
123
123
|
{
|
|
124
124
|
className: cx("h-1.5 w-1.5 rounded-full", status === "error" ? "bg-ink" : status === "saving" ? "bg-brand" : "bg-mute"),
|
|
@@ -102,16 +102,18 @@ function Field({
|
|
|
102
102
|
/* @__PURE__ */ jsxs(
|
|
103
103
|
"svg",
|
|
104
104
|
{
|
|
105
|
-
viewBox: "0 0
|
|
105
|
+
viewBox: "0 0 24 24",
|
|
106
106
|
className: "h-3.5 w-3.5 shrink-0",
|
|
107
107
|
fill: "none",
|
|
108
108
|
stroke: "currentColor",
|
|
109
|
-
strokeWidth: "
|
|
109
|
+
strokeWidth: "2.4",
|
|
110
110
|
strokeLinecap: "round",
|
|
111
|
+
strokeLinejoin: "round",
|
|
111
112
|
"aria-hidden": true,
|
|
112
113
|
children: [
|
|
113
|
-
/* @__PURE__ */ jsx("circle", { cx: "
|
|
114
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
114
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "8.5" }),
|
|
115
|
+
/* @__PURE__ */ jsx("path", { d: "M12 7.5v5" }),
|
|
116
|
+
/* @__PURE__ */ jsx("path", { d: "M12 16h.01" })
|
|
115
117
|
]
|
|
116
118
|
}
|
|
117
119
|
),
|
|
@@ -261,19 +263,22 @@ function SplitSignIn({
|
|
|
261
263
|
className: "group inline-flex items-center gap-1.5 self-start rounded-md text-[13.5px] font-medium text-ink outline-none focus-visible:ring-2 focus-visible:ring-brand/50",
|
|
262
264
|
style: rise(0),
|
|
263
265
|
children: [
|
|
264
|
-
/* @__PURE__ */
|
|
266
|
+
/* @__PURE__ */ jsxs(
|
|
265
267
|
"svg",
|
|
266
268
|
{
|
|
267
|
-
viewBox: "0 0
|
|
269
|
+
viewBox: "0 0 24 24",
|
|
268
270
|
className: "h-3.5 w-3.5 transition-transform duration-300 group-hover:-translate-x-0.5",
|
|
269
271
|
style: { transitionTimingFunction: EASE },
|
|
270
272
|
fill: "none",
|
|
271
273
|
stroke: "currentColor",
|
|
272
|
-
strokeWidth: "
|
|
274
|
+
strokeWidth: "2.55",
|
|
273
275
|
strokeLinecap: "round",
|
|
274
276
|
strokeLinejoin: "round",
|
|
275
277
|
"aria-hidden": true,
|
|
276
|
-
children:
|
|
278
|
+
children: [
|
|
279
|
+
/* @__PURE__ */ jsx("path", { d: "M20 12H5" }),
|
|
280
|
+
/* @__PURE__ */ jsx("path", { d: "m11 6-6 6 6 6" })
|
|
281
|
+
]
|
|
277
282
|
}
|
|
278
283
|
),
|
|
279
284
|
"Back"
|
|
@@ -402,17 +407,18 @@ function SplitSignIn({
|
|
|
402
407
|
children: /* @__PURE__ */ jsxs(
|
|
403
408
|
"svg",
|
|
404
409
|
{
|
|
405
|
-
viewBox: "0 0
|
|
410
|
+
viewBox: "0 0 24 24",
|
|
406
411
|
className: "h-4 w-4",
|
|
407
412
|
fill: "none",
|
|
408
413
|
stroke: "currentColor",
|
|
409
|
-
strokeWidth: "
|
|
414
|
+
strokeWidth: "2.25",
|
|
415
|
+
strokeLinejoin: "round",
|
|
410
416
|
strokeLinecap: "round",
|
|
411
417
|
"aria-hidden": true,
|
|
412
418
|
children: [
|
|
413
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
414
|
-
/* @__PURE__ */ jsx("circle", { cx: "
|
|
415
|
-
!reveal && /* @__PURE__ */ jsx("path", { d: "
|
|
419
|
+
/* @__PURE__ */ jsx("path", { d: "M2.5 12c3-5.5 16-5.5 19 0-3 5.5-16 5.5-19 0Z" }),
|
|
420
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "2.75" }),
|
|
421
|
+
!reveal && /* @__PURE__ */ jsx("path", { d: "m4.5 4.5 15 15" })
|
|
416
422
|
]
|
|
417
423
|
}
|
|
418
424
|
)
|
|
@@ -440,19 +446,22 @@ function SplitSignIn({
|
|
|
440
446
|
children: [
|
|
441
447
|
state === "loading" && /* @__PURE__ */ jsx(Spinner, {}),
|
|
442
448
|
state === "loading" ? "Signing in" : "Sign in",
|
|
443
|
-
state !== "loading" && /* @__PURE__ */
|
|
449
|
+
state !== "loading" && /* @__PURE__ */ jsxs(
|
|
444
450
|
"svg",
|
|
445
451
|
{
|
|
446
|
-
viewBox: "0 0
|
|
452
|
+
viewBox: "0 0 24 24",
|
|
447
453
|
className: "h-3.5 w-3.5 transition-transform duration-300 group-hover:translate-x-0.5",
|
|
448
454
|
style: { transitionTimingFunction: EASE },
|
|
449
455
|
fill: "none",
|
|
450
456
|
stroke: "currentColor",
|
|
451
|
-
strokeWidth: "
|
|
457
|
+
strokeWidth: "2.55",
|
|
452
458
|
strokeLinecap: "round",
|
|
453
459
|
strokeLinejoin: "round",
|
|
454
460
|
"aria-hidden": true,
|
|
455
|
-
children:
|
|
461
|
+
children: [
|
|
462
|
+
/* @__PURE__ */ jsx("path", { d: "M4 12h15" }),
|
|
463
|
+
/* @__PURE__ */ jsx("path", { d: "m13 6 6 6-6 6" })
|
|
464
|
+
]
|
|
456
465
|
}
|
|
457
466
|
)
|
|
458
467
|
]
|
|
@@ -32,10 +32,10 @@ function Checkbox({ checked, defaultChecked = false, onCheckedChange, disabled,
|
|
|
32
32
|
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)]"
|
|
33
33
|
),
|
|
34
34
|
children: [
|
|
35
|
-
/* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
35
|
+
/* @__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(
|
|
36
36
|
"path",
|
|
37
37
|
{
|
|
38
|
-
d: "
|
|
38
|
+
d: "m5 12.5 4.5 4.5L19 7.5",
|
|
39
39
|
pathLength: 1,
|
|
40
40
|
strokeDasharray: "1",
|
|
41
41
|
className: "transition-[stroke-dashoffset] ease-[cubic-bezier(.16,1,.3,1)] motion-reduce:transition-none",
|
|
@@ -222,7 +222,10 @@ function VerifyOtp({
|
|
|
222
222
|
style: { animation: `aui042-rise .5s ${EASE} .45s both` },
|
|
223
223
|
children: [
|
|
224
224
|
"Continue",
|
|
225
|
-
/* @__PURE__ */
|
|
225
|
+
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: "h-3.5 w-3.5 transition-transform duration-300 group-hover:translate-x-0.5", style: { transitionTimingFunction: EASE }, fill: "none", stroke: "currentColor", strokeWidth: "2.55", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
226
|
+
/* @__PURE__ */ jsx("path", { d: "M4 12h15" }),
|
|
227
|
+
/* @__PURE__ */ jsx("path", { d: "m13 6 6 6-6 6" })
|
|
228
|
+
] })
|
|
226
229
|
]
|
|
227
230
|
}
|
|
228
231
|
) : left > 0 ? /* @__PURE__ */ jsxs("p", { className: "flex items-center gap-1 text-[13px] text-paper/50", children: [
|
|
@@ -112,7 +112,7 @@ function CookieConsent({
|
|
|
112
112
|
onClick: () => setView("summary"),
|
|
113
113
|
"aria-label": "Back",
|
|
114
114
|
className: "-ml-1.5 flex h-7 w-7 items-center justify-center rounded-md text-mute outline-none transition-colors hover:bg-paper-2 hover:text-ink focus-visible:ring-2 focus-visible:ring-brand/50",
|
|
115
|
-
children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
115
|
+
children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: "h-4 w-4", fill: "none", stroke: "currentColor", strokeWidth: "2.55", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "m14.5 6-6 6 6 6" }) })
|
|
116
116
|
}
|
|
117
117
|
),
|
|
118
118
|
/* @__PURE__ */ jsx("h2", { id: `${id}-t`, className: "text-[15px] font-medium tracking-[-0.01em]", children: "Cookie preferences" })
|
|
@@ -103,7 +103,10 @@ function AffixInput({
|
|
|
103
103
|
/* @__PURE__ */ jsx("span", { className: "flex flex-col transition-transform duration-500", style: { transform: `translateY(${-ui * 1.25}rem)`, transitionTimingFunction: EASE }, children: units.map((u) => /* @__PURE__ */ jsx("span", { className: "block h-5 leading-5", children: u }, u)) }),
|
|
104
104
|
/* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "invisible block h-0 overflow-hidden", children: units.reduce((a, b) => b.length > a.length ? b : a, "") })
|
|
105
105
|
] }),
|
|
106
|
-
/* @__PURE__ */
|
|
106
|
+
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: "h-3 w-3 transition-transform duration-300 group-hover/u:translate-y-px", fill: "none", stroke: "currentColor", strokeWidth: "3", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
107
|
+
/* @__PURE__ */ jsx("path", { d: "m8 9 4-4 4 4" }),
|
|
108
|
+
/* @__PURE__ */ jsx("path", { d: "m8 15 4 4 4-4" })
|
|
109
|
+
] })
|
|
107
110
|
]
|
|
108
111
|
}
|
|
109
112
|
) : suffix && !ride && /* @__PURE__ */ jsx("span", { className: ADDON, children: suffix }),
|
|
@@ -115,11 +118,11 @@ function AffixInput({
|
|
|
115
118
|
"aria-label": copied ? "Copied" : "Copy",
|
|
116
119
|
className: "relative grid h-full w-9 shrink-0 place-items-center rounded-[7px] text-mute outline-none transition-[background-color,color,transform] duration-200 hover:bg-paper-2 hover:text-ink active:scale-95 focus-visible:ring-2 focus-visible:ring-brand/50",
|
|
117
120
|
children: [
|
|
118
|
-
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0
|
|
119
|
-
/* @__PURE__ */ jsx("rect", { x: "5
|
|
120
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
121
|
+
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: cx("absolute h-4 w-4 transition-[transform,opacity] duration-300", copied ? "scale-50 opacity-0" : "opacity-100"), style: { transitionTimingFunction: EASE }, fill: "none", stroke: "currentColor", strokeWidth: "2.25", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
122
|
+
/* @__PURE__ */ jsx("rect", { x: "8.5", y: "8.5", width: "11", height: "11", rx: "2" }),
|
|
123
|
+
/* @__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" })
|
|
121
124
|
] }),
|
|
122
|
-
/* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
125
|
+
/* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: cx("absolute h-4 w-4 text-brand transition-opacity duration-200", copied ? "opacity-100" : "opacity-0"), fill: "none", stroke: "currentColor", strokeWidth: "2.85", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "m5 12.5 4.5 4.5L19 7.5", pathLength: 1, strokeDasharray: "1", className: "transition-[stroke-dashoffset] duration-500", style: { strokeDashoffset: copied ? 0 : 1, transitionTimingFunction: EASE } }) }),
|
|
123
126
|
/* @__PURE__ */ jsx("span", { role: "status", className: "sr-only", children: copied ? "Copied" : "" })
|
|
124
127
|
]
|
|
125
128
|
}
|
|
@@ -22,7 +22,7 @@ var same = (a, b) => !!a && !!b && a.getTime() === b.getTime();
|
|
|
22
22
|
var key = (d) => `${d.getFullYear()}-${String(d.getMonth() + 1).padStart(2, "0")}-${String(d.getDate()).padStart(2, "0")}`;
|
|
23
23
|
var diff = (a, b) => Math.round((b.getTime() - a.getTime()) / 864e5);
|
|
24
24
|
function Arrow({ dir }) {
|
|
25
|
-
return /* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
25
|
+
return /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: "h-4 w-4", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: dir === 1 ? "M9.5 6l6 6-6 6" : "M14.5 6l-6 6 6 6" }) });
|
|
26
26
|
}
|
|
27
27
|
function RangeDatePicker({
|
|
28
28
|
value,
|
|
@@ -22,7 +22,6 @@ function Tabs({ tabs, value, defaultValue, onChange, variant = "underline", labe
|
|
|
22
22
|
prev.current = index;
|
|
23
23
|
setBar({ l: el.offsetLeft, r: box.scrollWidth - el.offsetLeft - el.offsetWidth, dir });
|
|
24
24
|
};
|
|
25
|
-
measure();
|
|
26
25
|
const ro = new ResizeObserver(measure);
|
|
27
26
|
if (list.current) ro.observe(list.current);
|
|
28
27
|
return () => ro.disconnect();
|
|
@@ -40,9 +40,10 @@ function useShake(active, key) {
|
|
|
40
40
|
return ref;
|
|
41
41
|
}
|
|
42
42
|
var ErrorText = ({ id, children }) => /* @__PURE__ */ jsxs("p", { id, role: "alert", className: "flex items-center gap-1.5 text-[12.5px] text-ink", style: { animation: `aui020-in .3s ${EASE} both` }, children: [
|
|
43
|
-
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0
|
|
44
|
-
/* @__PURE__ */ jsx("circle", { cx: "
|
|
45
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
43
|
+
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: "h-3.5 w-3.5 shrink-0", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
44
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "8.5" }),
|
|
45
|
+
/* @__PURE__ */ jsx("path", { d: "M12 7.5v5" }),
|
|
46
|
+
/* @__PURE__ */ jsx("path", { d: "M12 16h.01" })
|
|
46
47
|
] }),
|
|
47
48
|
children
|
|
48
49
|
] });
|
|
@@ -94,9 +95,9 @@ function LiveAvatar({ name }) {
|
|
|
94
95
|
letters.length ? "bg-brand text-paper" : "bg-paper-2 text-mute"
|
|
95
96
|
),
|
|
96
97
|
"aria-hidden": true,
|
|
97
|
-
children: letters.length ? letters.map((l, i) => /* @__PURE__ */ jsx("span", { className: "inline-block", style: { animation: `aui020-letter .35s ${EASE} both` }, children: l }, `${i}-${l}`)) : /* @__PURE__ */ jsxs("svg", { viewBox: "0 0
|
|
98
|
-
/* @__PURE__ */ jsx("circle", { cx: "
|
|
99
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
98
|
+
children: letters.length ? letters.map((l, i) => /* @__PURE__ */ jsx("span", { className: "inline-block", style: { animation: `aui020-letter .35s ${EASE} both` }, children: l }, `${i}-${l}`)) : /* @__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: [
|
|
99
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "8.5", r: "3.75" }),
|
|
100
|
+
/* @__PURE__ */ jsx("path", { d: "M5 20a7 7 0 0 1 14 0" })
|
|
100
101
|
] })
|
|
101
102
|
}
|
|
102
103
|
);
|
|
@@ -260,10 +261,10 @@ function SignUpCard({
|
|
|
260
261
|
"aria-label": reveal ? "Hide password" : "Show password",
|
|
261
262
|
"aria-pressed": reveal,
|
|
262
263
|
className: "flex h-9 w-9 items-center justify-center rounded-[8px] text-mute outline-none transition-colors hover:bg-paper-2 hover:text-ink focus-visible:ring-2 focus-visible:ring-brand/50",
|
|
263
|
-
children: /* @__PURE__ */ jsxs("svg", { viewBox: "0 0
|
|
264
|
-
/* @__PURE__ */ jsx("path", { d: "
|
|
265
|
-
/* @__PURE__ */ jsx("circle", { cx: "
|
|
266
|
-
!reveal && /* @__PURE__ */ jsx("path", { d: "
|
|
264
|
+
children: /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: "h-4 w-4", fill: "none", stroke: "currentColor", strokeWidth: "2.25", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
265
|
+
/* @__PURE__ */ jsx("path", { d: "M2.5 12c3-5.5 16-5.5 19 0-3 5.5-16 5.5-19 0Z" }),
|
|
266
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "2.75" }),
|
|
267
|
+
!reveal && /* @__PURE__ */ jsx("path", { d: "m4.5 4.5 15 15" })
|
|
267
268
|
] })
|
|
268
269
|
}
|
|
269
270
|
),
|
|
@@ -295,7 +296,7 @@ function SignUpCard({
|
|
|
295
296
|
{
|
|
296
297
|
className: "absolute inset-0 flex items-center justify-center rounded-full bg-ink text-paper transition-[transform,opacity] duration-300",
|
|
297
298
|
style: { transform: `scale(${passed[i] ? 1 : 0.3})`, opacity: passed[i] ? 1 : 0, transitionTimingFunction: EASE },
|
|
298
|
-
children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
299
|
+
children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: "h-2.5 w-2.5", fill: "none", stroke: "currentColor", strokeWidth: "4", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsx("path", { d: "m5 12.5 4.5 4.5L19 7.5" }) })
|
|
299
300
|
}
|
|
300
301
|
) }),
|
|
301
302
|
r.label,
|
|
@@ -329,16 +330,16 @@ function SignUpCard({
|
|
|
329
330
|
/* @__PURE__ */ jsx(
|
|
330
331
|
"svg",
|
|
331
332
|
{
|
|
332
|
-
viewBox: "0 0
|
|
333
|
+
viewBox: "0 0 24 24",
|
|
333
334
|
className: "pointer-events-none absolute inset-0 m-auto h-3 w-3 scale-50 text-paper opacity-0 transition-[transform,opacity] duration-300 peer-checked:scale-100 peer-checked:opacity-100",
|
|
334
335
|
style: { transitionTimingFunction: EASE },
|
|
335
336
|
fill: "none",
|
|
336
337
|
stroke: "currentColor",
|
|
337
|
-
strokeWidth: "
|
|
338
|
+
strokeWidth: "4",
|
|
338
339
|
strokeLinecap: "round",
|
|
339
340
|
strokeLinejoin: "round",
|
|
340
341
|
"aria-hidden": true,
|
|
341
|
-
children: /* @__PURE__ */ jsx("path", { d: "
|
|
342
|
+
children: /* @__PURE__ */ jsx("path", { d: "m5 12.5 4.5 4.5L19 7.5" })
|
|
342
343
|
}
|
|
343
344
|
)
|
|
344
345
|
] }),
|
|
@@ -369,7 +370,10 @@ function SignUpCard({
|
|
|
369
370
|
children: [
|
|
370
371
|
state === "loading" && /* @__PURE__ */ jsx(Spinner, {}),
|
|
371
372
|
state === "loading" ? "Creating your account" : "Create account",
|
|
372
|
-
state !== "loading" && /* @__PURE__ */
|
|
373
|
+
state !== "loading" && /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: "h-3.5 w-3.5 transition-transform duration-300 group-hover:translate-x-0.5", style: { transitionTimingFunction: EASE }, fill: "none", stroke: "currentColor", strokeWidth: "2.55", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
374
|
+
/* @__PURE__ */ jsx("path", { d: "M4 12h15" }),
|
|
375
|
+
/* @__PURE__ */ jsx("path", { d: "m13 6 6 6-6 6" })
|
|
376
|
+
] })
|
|
373
377
|
]
|
|
374
378
|
}
|
|
375
379
|
) }),
|
|
@@ -81,15 +81,16 @@ function Like({ count, liked, pop, onToggle }) {
|
|
|
81
81
|
/* @__PURE__ */ jsx(
|
|
82
82
|
"svg",
|
|
83
83
|
{
|
|
84
|
-
viewBox: "0 0
|
|
84
|
+
viewBox: "0 0 24 24",
|
|
85
85
|
className: "h-3.5 w-3.5",
|
|
86
86
|
fill: liked ? "currentColor" : "none",
|
|
87
87
|
stroke: "currentColor",
|
|
88
|
-
strokeWidth: "
|
|
88
|
+
strokeWidth: "2.25",
|
|
89
|
+
strokeLinecap: "round",
|
|
89
90
|
strokeLinejoin: "round",
|
|
90
91
|
"aria-hidden": true,
|
|
91
92
|
style: pop && liked ? { animation: `kit-cm-pop .45s ${CURVE}` } : void 0,
|
|
92
|
-
children: /* @__PURE__ */ jsx("path", { d: "
|
|
93
|
+
children: /* @__PURE__ */ jsx("path", { d: "M12 19.5s-7.5-4.4-7.5-10A4.2 4.2 0 0 1 12 7a4.2 4.2 0 0 1 7.5 2.5c0 5.6-7.5 10-7.5 10Z" })
|
|
93
94
|
},
|
|
94
95
|
liked ? "on" : "off"
|
|
95
96
|
),
|
|
@@ -70,7 +70,7 @@ function PromptBox({ models, defaultModel, placeholder = "Ask anything\u2026", m
|
|
|
70
70
|
children: [
|
|
71
71
|
/* @__PURE__ */ jsx("span", { className: "h-2 w-2 rounded-full bg-brand", "aria-hidden": true }),
|
|
72
72
|
current?.label,
|
|
73
|
-
/* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
73
|
+
/* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: "h-3 w-3 text-mute transition-transform duration-300 ease-[cubic-bezier(.16,1,.3,1)] group-data-[state=open]/m:rotate-180", fill: "none", stroke: "currentColor", strokeWidth: "2.7", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "m6 9.5 6 6 6-6" }) })
|
|
74
74
|
]
|
|
75
75
|
}
|
|
76
76
|
),
|
|
@@ -91,7 +91,7 @@ function PromptBox({ models, defaultModel, placeholder = "Ask anything\u2026", m
|
|
|
91
91
|
/* @__PURE__ */ jsx("span", { className: "block text-[13px] text-ink", children: m.label }),
|
|
92
92
|
m.detail && /* @__PURE__ */ jsx("span", { className: "block text-[11.5px] text-mute", children: m.detail })
|
|
93
93
|
] }),
|
|
94
|
-
/* @__PURE__ */ jsx(Menu.ItemIndicator, { children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
94
|
+
/* @__PURE__ */ jsx(Menu.ItemIndicator, { children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: "h-3.5 w-3.5 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" }) }) })
|
|
95
95
|
]
|
|
96
96
|
},
|
|
97
97
|
m.id
|
|
@@ -125,7 +125,10 @@ function PromptBox({ models, defaultModel, placeholder = "Ask anything\u2026", m
|
|
|
125
125
|
"Stop"
|
|
126
126
|
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
127
127
|
"Generate",
|
|
128
|
-
/* @__PURE__ */
|
|
128
|
+
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: "h-3.5 w-3.5", fill: "none", stroke: "currentColor", strokeWidth: "2.55", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
129
|
+
/* @__PURE__ */ jsx("path", { d: "M4 12h15" }),
|
|
130
|
+
/* @__PURE__ */ jsx("path", { d: "m13 6 6 6-6 6" })
|
|
131
|
+
] })
|
|
129
132
|
] })
|
|
130
133
|
}
|
|
131
134
|
)
|
|
@@ -141,7 +141,10 @@ function PlanRadio({ plans = PLANS, value, defaultValue = "team", onChange, seat
|
|
|
141
141
|
/* @__PURE__ */ jsx("span", { className: "invisible block h-5 leading-5", children: plans.reduce((a, p) => p.name.length > a.length ? p.name : a, "") }),
|
|
142
142
|
/* @__PURE__ */ jsx("span", { className: "absolute inset-x-0 top-0 flex flex-col transition-transform duration-500", style: { transform: `translateY(${-index * 20}px)`, transitionTimingFunction: EASE }, children: plans.map((p, i) => /* @__PURE__ */ jsx("span", { "aria-hidden": i !== index, className: "block h-5 text-left leading-5", children: p.name }, p.value)) })
|
|
143
143
|
] }),
|
|
144
|
-
/* @__PURE__ */
|
|
144
|
+
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: "h-3.5 w-3.5 transition-transform duration-300 group-hover/cta:translate-x-0.5", fill: "none", stroke: "currentColor", strokeWidth: "2.7", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
145
|
+
/* @__PURE__ */ jsx("path", { d: "M4 12h15" }),
|
|
146
|
+
/* @__PURE__ */ jsx("path", { d: "m13 6 6 6-6 6" })
|
|
147
|
+
] })
|
|
145
148
|
]
|
|
146
149
|
}
|
|
147
150
|
)
|
|
@@ -43,14 +43,20 @@ var RESULTS = [
|
|
|
43
43
|
var isMac = () => typeof navigator === "undefined" || /Mac|iPhone|iPad/.test(navigator.platform);
|
|
44
44
|
var at = (n) => ({ "--i": n });
|
|
45
45
|
var initials = (name) => name.split(/\s+/).map((p) => p[0]).slice(0, 2).join("").toUpperCase();
|
|
46
|
-
var Chevrons = () => /* @__PURE__ */
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
/* @__PURE__ */ jsx("circle", { cx: "7", cy: "7", r: "4.5" }),
|
|
50
|
-
/* @__PURE__ */ jsx("path", { d: "m10.5 10.5 3 3" })
|
|
46
|
+
var Chevrons = () => /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: "h-3.5 w-3.5 text-mute", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
47
|
+
/* @__PURE__ */ jsx("path", { d: "m8 9 4-4 4 4" }),
|
|
48
|
+
/* @__PURE__ */ jsx("path", { d: "m8 15 4 4 4-4" })
|
|
51
49
|
] });
|
|
52
|
-
var
|
|
53
|
-
var
|
|
50
|
+
var Check = () => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: "ml-auto h-3.5 w-3.5 text-brand", fill: "none", stroke: "currentColor", strokeWidth: "2.85", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "m5 12.5 4.5 4.5L19 7.5" }) });
|
|
51
|
+
var SearchIcon = () => /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: "h-4 w-4 shrink-0", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
52
|
+
/* @__PURE__ */ jsx("circle", { cx: "10.5", cy: "10.5", r: "6" }),
|
|
53
|
+
/* @__PURE__ */ jsx("path", { d: "m15 15 5 5" })
|
|
54
|
+
] });
|
|
55
|
+
var Bell = () => /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: "h-4 w-4", fill: "none", stroke: "currentColor", strokeWidth: "2.25", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
|
|
56
|
+
/* @__PURE__ */ jsx("path", { d: "M6.5 10a5.5 5.5 0 0 1 11 0v3.5l1.5 3h-14l1.5-3Z" }),
|
|
57
|
+
/* @__PURE__ */ jsx("path", { d: "M10 19.5a2 2 0 0 0 4 0" })
|
|
58
|
+
] });
|
|
59
|
+
var GroupIcon = ({ group }) => /* @__PURE__ */ jsx("span", { className: cx("grid h-7 w-7 shrink-0 place-items-center rounded-[7px] bg-paper text-ink-2", RING), children: /* @__PURE__ */ jsx("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: group === "People" ? /* @__PURE__ */ jsx("path", { d: "M8.25 8.5a3.75 3.75 0 1 0 7.5 0a3.75 3.75 0 1 0-7.5 0M5 20a7 7 0 0 1 14 0" }) : group === "Actions" ? /* @__PURE__ */ jsx("path", { d: "M12 5v14M5 12h14" }) : /* @__PURE__ */ jsx("path", { d: "M3.5 7A1.5 1.5 0 0 1 5 5.5h4.5l2 2.5H19a1.5 1.5 0 0 1 1.5 1.5v8A1.5 1.5 0 0 1 19 19H5a1.5 1.5 0 0 1-1.5-1.5Z" }) }) });
|
|
54
60
|
function Mark({ name, size = "h-6 w-6 text-[11px]" }) {
|
|
55
61
|
return /* @__PURE__ */ jsx("span", { className: cx("grid shrink-0 place-items-center rounded-[6px] bg-ink font-semibold text-paper", size), children: name[0]?.toUpperCase() });
|
|
56
62
|
}
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-HSDMCZMX.js";
|
|
5
5
|
|
|
6
6
|
// components/kit/base/invoice.tsx
|
|
7
|
-
import { useEffect, useRef, useState } from "react";
|
|
7
|
+
import { useEffect, useMemo, useRef, useState } from "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
var cx = (...c) => c.filter(Boolean).join(" ");
|
|
10
10
|
var KEYFRAMES = `@keyframes asta-invoice-in { from { opacity: 0; transform: translateY(4px) } }
|
|
@@ -26,7 +26,10 @@ function Invoice({ number, issued, due, from, to, items, taxRate = 0, discount =
|
|
|
26
26
|
useEffect(() => {
|
|
27
27
|
if (error) errorEl.current?.focus();
|
|
28
28
|
}, [error]);
|
|
29
|
-
const money = (
|
|
29
|
+
const money = useMemo(() => {
|
|
30
|
+
const f = new Intl.NumberFormat(locale, { style: "currency", currency });
|
|
31
|
+
return (n) => f.format(n);
|
|
32
|
+
}, [locale, currency]);
|
|
30
33
|
const subtotal = items.reduce((a, it) => a + it.quantity * it.unitPrice, 0);
|
|
31
34
|
const taxed = Math.max(0, subtotal - discount);
|
|
32
35
|
const tax = Math.round(taxed * taxRate * 100) / 100;
|
|
@@ -62,7 +65,10 @@ function Invoice({ number, issued, due, from, to, items, taxRate = 0, discount =
|
|
|
62
65
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
63
66
|
/* @__PURE__ */ jsx("h2", { className: "text-[20px] font-medium tracking-[-0.03em]", children: "Invoice" }),
|
|
64
67
|
/* @__PURE__ */ jsxs("span", { className: cx("asta-invoice-a inline-flex h-6 animate-[asta-invoice-pop_.45s_cubic-bezier(.16,1,.3,1)_both] items-center gap-1 rounded-md px-2 text-[11.5px] font-medium", s.cls), children: [
|
|
65
|
-
paid ? /* @__PURE__ */ jsx("svg", { viewBox: "0 0
|
|
68
|
+
paid ? /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", className: "h-3 w-3", 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", pathLength: 1, strokeDasharray: 1, className: "asta-invoice-a animate-[asta-invoice-draw_.5s_cubic-bezier(.16,1,.3,1)_.15s_both]" }) }) : state === "overdue" ? /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", className: "h-3 w-3", fill: "none", stroke: "currentColor", strokeWidth: "2.7", strokeLinecap: "round", "aria-hidden": true, children: [
|
|
69
|
+
/* @__PURE__ */ jsx("path", { d: "M12 7.5v5" }),
|
|
70
|
+
/* @__PURE__ */ jsx("path", { d: "M12 16h.01" })
|
|
71
|
+
] }) : null,
|
|
66
72
|
s.label
|
|
67
73
|
] }, state)
|
|
68
74
|
] }),
|
|
@@ -161,7 +167,11 @@ function Invoice({ number, issued, due, from, to, items, taxRate = 0, discount =
|
|
|
161
167
|
] })
|
|
162
168
|
] }),
|
|
163
169
|
error && !paid && /* @__PURE__ */ jsxs("p", { ref: errorEl, role: "alert", tabIndex: -1, className: "-mt-3 flex items-start gap-1.5 text-[12.5px] font-medium text-ink outline-none @min-[560px]:justify-end", children: [
|
|
164
|
-
/* @__PURE__ */
|
|
170
|
+
/* @__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: [
|
|
171
|
+
/* @__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" }),
|
|
172
|
+
/* @__PURE__ */ jsx("path", { d: "M12 9.5v4" }),
|
|
173
|
+
/* @__PURE__ */ jsx("path", { d: "M12 17h.01" })
|
|
174
|
+
] }),
|
|
165
175
|
error
|
|
166
176
|
] }),
|
|
167
177
|
/* @__PURE__ */ jsx("p", { className: "sr-only", "aria-live": "polite", children: paid && paidOn ? `Invoice ${number} paid on ${paidOn}.` : "" })
|