asta-ui 0.9.3 → 0.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/asta.css +2 -2
- package/css/asta.js +248 -1
- package/css/components.css +722 -44
- package/css/runtime/core.css +5 -5
- package/css/runtime/data.css +2 -2
- package/css/runtime/modules.css +49 -0
- package/css/runtime/modules.js +245 -0
- package/css/runtime/overlays.css +22 -9
- package/css/src/blocks.css +3 -3
- package/css/src/core.css +8 -8
- package/css/src/data.css +3 -3
- package/css/src/display.css +6 -5
- package/css/src/forms.css +6 -6
- package/css/src/modules.css +616 -0
- package/css/src/overlays.css +3 -3
- package/css/tokens.css +6 -2
- package/dist/ai-chat.js +1 -1
- package/dist/avatar-group.js +2 -2
- package/dist/avatar.js +1 -1
- package/dist/base/ai-chat.js +1 -1
- package/dist/base/avatar-group.js +2 -2
- package/dist/base/avatar.js +1 -1
- package/dist/base/billing.d.ts +2 -0
- package/dist/base/billing.js +11 -0
- package/dist/base/bubble-wrap.js +1 -1
- package/dist/base/candlestick.js +1 -1
- package/dist/base/card-checkout.js +1 -1
- package/dist/base/chart-card.d.ts +2 -0
- package/dist/base/chart-card.js +11 -0
- package/dist/base/chat-thread.js +1 -1
- package/dist/base/checkbox.js +1 -1
- package/dist/base/checkout.js +3 -3
- package/dist/base/color-picker.js +1 -1
- package/dist/base/combo-lock.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/cookie-consent.d.ts +2 -0
- package/dist/base/cookie-consent.js +13 -0
- package/dist/base/countdown.d.ts +2 -0
- package/dist/base/countdown.js +9 -0
- package/dist/base/data-table.js +1 -1
- package/dist/base/dialog.js +1 -1
- package/dist/base/dropdown-menu.js +1 -1
- package/dist/base/field.js +1 -1
- package/dist/base/file-manager.d.ts +2 -0
- package/dist/base/file-manager.js +19 -0
- package/dist/base/flash-sale.d.ts +2 -0
- package/dist/base/flash-sale.js +7 -0
- 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/hover-card.js +1 -1
- package/dist/base/inbox.d.ts +2 -0
- package/dist/base/inbox.js +11 -0
- 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-aui-034.js +1 -1
- package/dist/base/input.js +1 -1
- package/dist/base/invoice.d.ts +2 -0
- package/dist/base/invoice.js +10 -0
- package/dist/base/kanban.js +2 -2
- package/dist/base/menubar.d.ts +2 -0
- package/dist/base/menubar.js +9 -0
- package/dist/base/meter.d.ts +2 -0
- package/dist/base/meter.js +9 -0
- package/dist/base/morse-tap.js +1 -1
- package/dist/base/navbar-aui-009.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.js +1 -1
- package/dist/base/notification-center.js +3 -3
- package/dist/base/number-input.js +1 -1
- package/dist/base/order-book.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/otp-input.js +1 -1
- package/dist/base/password-input-aui-039.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.d.ts +2 -0
- package/dist/base/phone-input.js +13 -0
- package/dist/base/popover.js +1 -1
- package/dist/base/price-alert.d.ts +2 -0
- package/dist/base/price-alert.js +7 -0
- package/dist/base/price-chart.js +1 -1
- package/dist/base/properties-panel.js +1 -1
- package/dist/base/radio-group.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/shipment-tracker.js +1 -1
- package/dist/base/sidebar.js +2 -2
- package/dist/base/sign-in-aui-015.js +1 -1
- package/dist/base/sign-in-aui-016.js +1 -1
- package/dist/base/sign-in-aui-017.js +1 -1
- package/dist/base/sign-in-aui-018.js +1 -1
- package/dist/base/sign-in-aui-019.js +1 -1
- package/dist/base/sign-in-aui-020.js +1 -1
- package/dist/base/sign-in.js +1 -1
- package/dist/base/snap-grid.js +1 -1
- package/dist/base/sortable-list.d.ts +2 -0
- package/dist/base/sortable-list.js +9 -0
- package/dist/base/split-bill.d.ts +2 -0
- package/dist/base/split-bill.js +7 -0
- package/dist/base/stat-card.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.d.ts +2 -0
- package/dist/base/testimonials.js +10 -0
- package/dist/base/textarea-aui-001.js +1 -1
- package/dist/base/textarea-aui-002.js +1 -1
- package/dist/base/textarea-aui-003.js +1 -1
- package/dist/base/textarea-aui-004.js +1 -1
- package/dist/base/textarea-aui-005.js +1 -1
- package/dist/base/textarea-aui-006.js +1 -1
- package/dist/base/textarea-aui-007.js +1 -1
- package/dist/base/textarea-aui-008.js +1 -1
- package/dist/base/textarea-aui-035.js +1 -1
- package/dist/base/textarea-aui-036.js +1 -1
- package/dist/base/textarea-aui-037.js +1 -1
- package/dist/base/textarea-aui-038.js +1 -1
- package/dist/base/textarea.js +1 -1
- package/dist/base/token-swap.js +1 -1
- package/dist/base/tooltip.js +1 -1
- package/dist/base/trade-ticket.js +1 -1
- package/dist/base/watchlist.d.ts +2 -0
- package/dist/base/watchlist.js +7 -0
- package/dist/base.js +166 -90
- package/dist/billing.d.ts +2 -0
- package/dist/billing.js +11 -0
- package/dist/bubble-wrap.js +1 -1
- package/dist/candlestick.js +1 -1
- package/dist/card-checkout.js +1 -1
- package/dist/chart-card.d.ts +2 -0
- package/dist/chart-card.js +11 -0
- package/dist/chat-thread.js +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/checkout.js +3 -3
- package/dist/{chunk-7TK42PS3.js → chunk-25RCKHWV.js} +19 -4
- package/dist/{chunk-4L4EKC46.js → chunk-2EBWWZPS.js} +1 -1
- package/dist/chunk-2F5CE6ZB.js +269 -0
- package/dist/{chunk-SATIWCJQ.js → chunk-2LM3VHNO.js} +3 -2
- package/dist/{chunk-5VQV2I7C.js → chunk-2PPF4GK5.js} +9 -6
- package/dist/{chunk-ZRGPSYW6.js → chunk-2PQIPQGO.js} +10 -6
- package/dist/{chunk-HB7DFNZP.js → chunk-3PQTSFOS.js} +1 -1
- package/dist/{chunk-VPZP6TCT.js → chunk-3UQIYJTI.js} +7 -3
- package/dist/{chunk-FY6BRODJ.js → chunk-3ZFF6VC5.js} +4 -2
- package/dist/{chunk-V3SPSN3A.js → chunk-45KDL3JM.js} +1 -1
- package/dist/{chunk-EVSTTLOT.js → chunk-4SLC3EK6.js} +18 -4
- package/dist/{chunk-VWYHP4SB.js → chunk-4WCMPLE3.js} +13 -4
- package/dist/chunk-5DLY6FGD.js +160 -0
- package/dist/{chunk-SRGDJSW7.js → chunk-5GGS6VP5.js} +1 -0
- package/dist/chunk-5N2G462S.js +338 -0
- package/dist/{chunk-FKHNK5VC.js → chunk-6C52ZQRB.js} +2 -1
- package/dist/{chunk-VVAL2JZJ.js → chunk-6MPEI6V5.js} +2 -2
- package/dist/{chunk-HNO6EUGJ.js → chunk-6RA7LJ3K.js} +7 -1
- package/dist/{chunk-RRHQBGRO.js → chunk-77RFV2MG.js} +7 -2
- package/dist/{chunk-RIWKIBEP.js → chunk-7MBTBYTJ.js} +3 -3
- package/dist/{chunk-XIU7K2YE.js → chunk-ADZI4ROA.js} +1 -1
- package/dist/{chunk-SAJ4D3Z2.js → chunk-AMVX4DDT.js} +7 -3
- package/dist/{chunk-7JNO265Q.js → chunk-B4XRAVHL.js} +33 -17
- package/dist/{chunk-MDI73RL6.js → chunk-B7MVYR7C.js} +7 -4
- package/dist/{chunk-OFPZUTBI.js → chunk-BEV2X4YL.js} +2 -1
- package/dist/chunk-BG2W2KVE.js +200 -0
- package/dist/chunk-BKHH2CJA.js +146 -0
- package/dist/{chunk-XRVVZA2Y.js → chunk-CACW5LH3.js} +1 -1
- package/dist/{chunk-I2WXKWTQ.js → chunk-CBJUY4WE.js} +10 -5
- package/dist/{chunk-746WX2DF.js → chunk-CSTI5CTF.js} +8 -2
- package/dist/{chunk-3KS5EN3Q.js → chunk-D2JJSUXI.js} +1 -1
- package/dist/chunk-D4AYULMF.js +338 -0
- package/dist/{chunk-4XM6DKEO.js → chunk-DD2TBHSJ.js} +2 -1
- package/dist/{chunk-B5OESWCR.js → chunk-DPLH3EGO.js} +1 -1
- package/dist/{chunk-5TSQZY34.js → chunk-DU3CZ3K7.js} +1 -1
- package/dist/{chunk-YON5SU2G.js → chunk-DWA62IYV.js} +5 -2
- package/dist/{chunk-FUNXYRSG.js → chunk-DWZT455C.js} +24 -9
- package/dist/{chunk-WSTQ6WZO.js → chunk-ECGJ6D5D.js} +3 -2
- package/dist/{chunk-3JNUC3FU.js → chunk-EN6XBXW5.js} +1 -1
- package/dist/{chunk-GJ3R6IZL.js → chunk-EOZDJA7Z.js} +1 -1
- package/dist/{chunk-KXWC2UHE.js → chunk-FBIGYEFN.js} +6 -3
- package/dist/{chunk-RS3XHHDE.js → chunk-FDE3S2YK.js} +1 -1
- package/dist/{chunk-DRX3KRNL.js → chunk-FFRJW5O7.js} +3 -2
- package/dist/{chunk-UEOEWP7L.js → chunk-FIPWA5KL.js} +3 -2
- package/dist/chunk-FLCT7THQ.js +75 -0
- package/dist/{chunk-RTAHGY6P.js → chunk-FOJRZASV.js} +7 -1
- package/dist/{chunk-CA7YQ5BJ.js → chunk-FQ4YUKAE.js} +3 -3
- package/dist/{chunk-33N6SZB5.js → chunk-FXXR3FM3.js} +6 -3
- package/dist/{chunk-BGVAXPHD.js → chunk-G7WTEBMX.js} +21 -6
- package/dist/{chunk-HPVPHWDM.js → chunk-IATF2OTU.js} +1 -1
- package/dist/{chunk-CLCP2GFW.js → chunk-IDXERBKL.js} +3 -3
- package/dist/{chunk-NB7X26PY.js → chunk-IF6CWIUB.js} +1 -1
- package/dist/{chunk-WVIV4JBH.js → chunk-ITGWD7ZY.js} +2 -2
- package/dist/{chunk-2LZM435Z.js → chunk-IVCHYE55.js} +7 -1
- package/dist/{chunk-BH2DLHFW.js → chunk-JE2MAZGR.js} +3 -2
- package/dist/{chunk-W57O4RLL.js → chunk-JF4BKHFK.js} +37 -9
- package/dist/{chunk-QDRBMWRX.js → chunk-JLCSRNI2.js} +7 -3
- package/dist/{chunk-7L4YE6HM.js → chunk-JNNMKFEQ.js} +1 -1
- package/dist/{chunk-GDTSCUHY.js → chunk-JRD6FENH.js} +1 -1
- package/dist/{chunk-F5I6EK7F.js → chunk-JSS4QASL.js} +1 -1
- package/dist/{chunk-B5F775GP.js → chunk-JWBGI7FN.js} +1 -1
- package/dist/{chunk-WTNNS7AX.js → chunk-JX7V6EFT.js} +36 -9
- package/dist/{chunk-7SNVRPED.js → chunk-KEMC4RIF.js} +2 -1
- package/dist/chunk-KVARQNGF.js +123 -0
- package/dist/chunk-LDTCIVDX.js +146 -0
- package/dist/{chunk-45VUWOHQ.js → chunk-LKRE4HLZ.js} +4 -2
- package/dist/{chunk-ZN3W5PAI.js → chunk-LOHFV5JF.js} +1 -1
- package/dist/chunk-LS6CFF6X.js +80 -0
- package/dist/{chunk-I5NZSWDW.js → chunk-MAKFUH34.js} +33 -17
- package/dist/{chunk-OQU6KGVR.js → chunk-MDB4RFMV.js} +1 -1
- package/dist/{chunk-FDHU3RWR.js → chunk-MJJU6OLM.js} +1 -1
- package/dist/{chunk-PIC5ZIR3.js → chunk-MPH64VG7.js} +1 -1
- package/dist/{chunk-AYSC7AIC.js → chunk-MVE7RJJ6.js} +1 -1
- package/dist/{chunk-2SQQFICY.js → chunk-N3X4T5OR.js} +25 -8
- package/dist/{chunk-CNY76NHF.js → chunk-NFJDL44V.js} +7 -3
- package/dist/{chunk-FJGGXXTT.js → chunk-NPVUFQGC.js} +1 -1
- package/dist/{chunk-QSLS3ENY.js → chunk-NVLYF4UL.js} +1 -1
- package/dist/chunk-O626XQW2.js +165 -0
- package/dist/chunk-OH5VAD27.js +224 -0
- package/dist/{chunk-TIAKMX7U.js → chunk-OIOZQP2H.js} +1 -1
- package/dist/{chunk-56BEMYK3.js → chunk-OU3EEX4Y.js} +1 -1
- package/dist/{chunk-6AZKJUL4.js → chunk-OUIOJROO.js} +1 -1
- package/dist/{chunk-OLNMOTAD.js → chunk-PAXDHYBX.js} +18 -4
- package/dist/chunk-PIE76JKF.js +224 -0
- package/dist/{chunk-6B6NTRMC.js → chunk-PIXHOFUT.js} +7 -2
- package/dist/{chunk-FATLQKRY.js → chunk-PZ2ZUHC3.js} +3 -3
- package/dist/chunk-Q5A5OTLI.js +192 -0
- package/dist/{chunk-TXRLBMFL.js → chunk-QASSYLQQ.js} +3 -2
- package/dist/{chunk-TCID6NNE.js → chunk-QJXVIEB5.js} +1 -1
- package/dist/{chunk-K5PWBSVO.js → chunk-QWOO4V7N.js} +2 -2
- package/dist/chunk-RGVRHFKY.js +213 -0
- package/dist/{chunk-J6GK2V2C.js → chunk-RQNXELUL.js} +2 -1
- package/dist/{chunk-KQCXQY5K.js → chunk-RXOVKEYG.js} +2 -1
- package/dist/{chunk-NICNFGHT.js → chunk-S2VTHA6G.js} +2 -2
- package/dist/chunk-SCQ6A4ZG.js +247 -0
- package/dist/{chunk-EVCUN45S.js → chunk-SMZVKQKM.js} +3 -2
- package/dist/{chunk-GERWW3CA.js → chunk-SR4NYQWO.js} +2 -2
- package/dist/{chunk-DQWKBQBT.js → chunk-TAAAYFBT.js} +2 -2
- package/dist/{chunk-S2DJLW6B.js → chunk-TBMUSER2.js} +1 -1
- package/dist/chunk-TMOEFAXQ.js +165 -0
- package/dist/chunk-TXC6CCSA.js +75 -0
- package/dist/chunk-UC55XR76.js +193 -0
- package/dist/{chunk-5U4H2CXC.js → chunk-UJYZZSII.js} +11 -4
- package/dist/chunk-UOOGRGEC.js +185 -0
- package/dist/{chunk-ZBF2UYXP.js → chunk-USDST2TI.js} +1 -1
- package/dist/{chunk-W7RITVDV.js → chunk-UX6CWJT7.js} +1 -1
- package/dist/{chunk-U7BYEW3Y.js → chunk-UZF7SCRT.js} +13 -5
- package/dist/{chunk-Q7OHWQP2.js → chunk-V7JUJQNR.js} +1 -0
- package/dist/{chunk-WWQV7LE7.js → chunk-VNUX5LOC.js} +24 -9
- package/dist/{chunk-CTO36MY2.js → chunk-VS3GQ4JR.js} +2 -2
- package/dist/{chunk-UMDVPRJW.js → chunk-VTTXURIB.js} +1 -1
- package/dist/{chunk-6NNHSXFD.js → chunk-W2S6JDBM.js} +1 -1
- package/dist/{chunk-3XMVXIOF.js → chunk-W5M3EHJL.js} +4 -2
- package/dist/chunk-X2VID7XY.js +228 -0
- package/dist/{chunk-H7D6G3GQ.js → chunk-X4JYOCFA.js} +7 -1
- package/dist/{chunk-6VQTFRSP.js → chunk-XKA3LTJZ.js} +37 -9
- package/dist/{chunk-7GKCX4IE.js → chunk-XUZH4Y52.js} +1 -1
- package/dist/{chunk-UAP47MSR.js → chunk-Y4JOW2UW.js} +11 -5
- package/dist/{chunk-T4SOPNM5.js → chunk-YCXZ3TYF.js} +1 -1
- package/dist/{chunk-2KJNBHUV.js → chunk-YF3XSH54.js} +2 -1
- package/dist/{chunk-66OZ7CBK.js → chunk-YJAZHJY3.js} +1 -1
- package/dist/{chunk-4WK3F76T.js → chunk-YLILJ2FH.js} +1 -1
- package/dist/{chunk-FGQPCDXI.js → chunk-YNPG4WOS.js} +1 -1
- package/dist/chunk-YPFZXGPT.js +160 -0
- package/dist/{chunk-KYFZ5TTK.js → chunk-YRPLUNP4.js} +3 -1
- package/dist/{chunk-P3USWDWR.js → chunk-YVGC7QT7.js} +4 -2
- package/dist/{chunk-4ZJEAWNG.js → chunk-Z2DF2YL5.js} +4 -2
- package/dist/{chunk-JAQANAOP.js → chunk-ZUH7XRX7.js} +19 -4
- package/dist/{chunk-UWQ26LYZ.js → chunk-ZYI6J34Q.js} +2 -2
- package/dist/{chunk-BOJCW7Z7.js → chunk-ZZ25XSK2.js} +3 -2
- package/dist/color-picker.js +1 -1
- package/dist/combo-lock.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/cookie-consent.d.ts +2 -0
- package/dist/cookie-consent.js +13 -0
- package/dist/countdown.d.ts +2 -0
- package/dist/countdown.js +9 -0
- package/dist/data-table.js +1 -1
- package/dist/dialog.js +1 -1
- package/dist/dropdown-menu.js +1 -1
- package/dist/field.js +1 -1
- package/dist/file-manager.d.ts +2 -0
- package/dist/file-manager.js +19 -0
- package/dist/flash-sale.d.ts +2 -0
- package/dist/flash-sale.js +7 -0
- package/dist/footer-aui-027.js +1 -1
- package/dist/footer-aui-028.js +1 -1
- package/dist/footer.js +1 -1
- package/dist/hover-card.js +1 -1
- package/dist/inbox.d.ts +2 -0
- package/dist/inbox.js +11 -0
- package/dist/index.js +166 -90
- 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-aui-034.js +1 -1
- package/dist/input.js +1 -1
- package/dist/invoice.d.ts +2 -0
- package/dist/invoice.js +10 -0
- package/dist/kanban.js +2 -2
- package/dist/menubar.d.ts +2 -0
- package/dist/menubar.js +9 -0
- package/dist/meter.d.ts +2 -0
- package/dist/meter.js +9 -0
- package/dist/morse-tap.js +1 -1
- package/dist/navbar-aui-009.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.js +1 -1
- package/dist/notification-center.js +3 -3
- package/dist/number-input.js +1 -1
- package/dist/order-book.js +1 -1
- package/dist/otp-input-aui-041.js +1 -1
- package/dist/otp-input-aui-042.js +1 -1
- package/dist/otp-input.js +1 -1
- package/dist/password-input-aui-039.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.d.ts +2 -0
- package/dist/phone-input.js +13 -0
- package/dist/popover.js +1 -1
- package/dist/price-alert.d.ts +2 -0
- package/dist/price-alert.js +7 -0
- package/dist/price-chart.js +1 -1
- package/dist/properties-panel.js +1 -1
- package/dist/radio-group.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/shipment-tracker.js +1 -1
- package/dist/sidebar.js +2 -2
- package/dist/sign-in-aui-015.js +1 -1
- package/dist/sign-in-aui-016.js +1 -1
- package/dist/sign-in-aui-017.js +1 -1
- package/dist/sign-in-aui-018.js +1 -1
- package/dist/sign-in-aui-019.js +1 -1
- package/dist/sign-in-aui-020.js +1 -1
- package/dist/sign-in.js +1 -1
- package/dist/snap-grid.js +1 -1
- package/dist/sortable-list.d.ts +2 -0
- package/dist/sortable-list.js +9 -0
- package/dist/split-bill.d.ts +2 -0
- package/dist/split-bill.js +7 -0
- package/dist/stat-card.js +1 -1
- package/dist/styles.css +2 -2
- 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.d.ts +2 -0
- package/dist/testimonials.js +10 -0
- package/dist/textarea-aui-001.js +1 -1
- package/dist/textarea-aui-002.js +1 -1
- package/dist/textarea-aui-003.js +1 -1
- package/dist/textarea-aui-004.js +1 -1
- package/dist/textarea-aui-005.js +1 -1
- package/dist/textarea-aui-006.js +1 -1
- package/dist/textarea-aui-007.js +1 -1
- package/dist/textarea-aui-008.js +1 -1
- package/dist/textarea-aui-035.js +1 -1
- package/dist/textarea-aui-036.js +1 -1
- package/dist/textarea-aui-037.js +1 -1
- package/dist/textarea-aui-038.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/token-swap.js +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/trade-ticket.js +1 -1
- package/dist/types/components/kit/base/billing.d.ts +53 -0
- package/dist/types/components/kit/base/cookie-consent.d.ts +37 -0
- package/dist/types/components/kit/base/file-manager.d.ts +41 -0
- package/dist/types/components/kit/base/inbox.d.ts +33 -0
- package/dist/types/components/kit/base/invoice.d.ts +45 -0
- package/dist/types/components/kit/base/testimonials.d.ts +25 -0
- package/dist/types/components/kit/billing.d.ts +53 -0
- package/dist/types/components/kit/chart-card.d.ts +43 -0
- package/dist/types/components/kit/cookie-consent.d.ts +37 -0
- package/dist/types/components/kit/countdown.d.ts +21 -0
- package/dist/types/components/kit/file-manager.d.ts +41 -0
- package/dist/types/components/kit/inbox.d.ts +33 -0
- package/dist/types/components/kit/invoice.d.ts +45 -0
- package/dist/types/components/kit/menubar.d.ts +41 -0
- package/dist/types/components/kit/meter.d.ts +32 -0
- package/dist/types/components/kit/number-input.d.ts +3 -1
- package/dist/types/components/kit/phone-input.d.ts +42 -0
- package/dist/types/components/kit/sortable-list.d.ts +25 -0
- package/dist/types/components/kit/tag-input.d.ts +3 -1
- package/dist/types/components/kit/testimonials.d.ts +25 -0
- package/dist/types/components/lab/blocks/FlashSale.d.ts +2 -0
- package/dist/types/components/lab/blocks/PriceAlert.d.ts +2 -0
- package/dist/types/components/lab/blocks/SplitBill.d.ts +2 -0
- package/dist/types/components/lab/blocks/Watchlist.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/billing.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/chart-card.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/cookie-consent.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/countdown.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/file-manager.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/flash-sale.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/inbox.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/invoice.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/menubar.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/meter.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/phone-input.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/price-alert.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/sortable-list.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/split-bill.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/testimonials.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/watchlist.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base.d.ts +29 -1
- package/dist/types/packages/asta-ui/src/billing.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/chart-card.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/cookie-consent.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/countdown.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/file-manager.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/flash-sale.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/inbox.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/index.d.ts +29 -1
- package/dist/types/packages/asta-ui/src/invoice.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/menubar.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/meter.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/phone-input.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/price-alert.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/sortable-list.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/split-bill.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/testimonials.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/watchlist.d.ts +2 -0
- package/dist/watchlist.d.ts +2 -0
- package/dist/watchlist.js +7 -0
- package/package.json +1 -1
package/dist/billing.js
ADDED
package/dist/bubble-wrap.js
CHANGED
package/dist/candlestick.js
CHANGED
package/dist/card-checkout.js
CHANGED
package/dist/chat-thread.js
CHANGED
package/dist/checkbox.js
CHANGED
package/dist/checkout.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Checkout,
|
|
4
4
|
checkout_default
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-B4XRAVHL.js";
|
|
6
|
+
import "./chunk-AMVX4DDT.js";
|
|
7
7
|
import "./chunk-ZWBJUJTR.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-UZF7SCRT.js";
|
|
9
9
|
export {
|
|
10
10
|
Checkout,
|
|
11
11
|
checkout_default as default
|
|
@@ -81,7 +81,7 @@ function ThemePicker({ value, onChange }) {
|
|
|
81
81
|
/* @__PURE__ */ jsx("span", { className: cx("h-10 w-full rounded-lg shadow-[inset_0_0_0_1px_rgb(0_0_0/0.08)]", t.swatch) }),
|
|
82
82
|
/* @__PURE__ */ jsxs("span", { className: "flex w-full items-center justify-between px-0.5 text-[13px] text-ink", children: [
|
|
83
83
|
t.label,
|
|
84
|
-
/* @__PURE__ */ jsx("span", { className: cx("h-3.5 w-3.5 rounded-full transition-
|
|
84
|
+
/* @__PURE__ */ jsx("span", { className: cx("h-3.5 w-3.5 rounded-full transition-[background-color,box-shadow] duration-300", on ? "bg-brand shadow-[inset_0_0_0_3.5px_var(--brand),inset_0_0_0_6px_white]" : RING) })
|
|
85
85
|
] })
|
|
86
86
|
]
|
|
87
87
|
},
|
|
@@ -95,7 +95,7 @@ function Section({ title, children }) {
|
|
|
95
95
|
children
|
|
96
96
|
] });
|
|
97
97
|
}
|
|
98
|
-
var inputCls = cx("h-10 w-full rounded-lg bg-paper px-3 text-[14px] text-ink outline-none transition-shadow placeholder:text-mute focus-visible:ring-2 focus-visible:ring-brand/50", RING);
|
|
98
|
+
var inputCls = cx("h-10 w-full rounded-lg bg-paper px-3 text-[16px] sm:text-[14px] text-ink outline-none transition-shadow placeholder:text-mute focus-visible:ring-2 focus-visible:ring-brand/50", RING);
|
|
99
99
|
var SettingsPanel = forwardRef(function SettingsPanel2({ initial, onSave, languages = ["English", "Bahasa Indonesia", "Deutsch", "\u65E5\u672C\u8A9E"], className }, ref) {
|
|
100
100
|
const [saved, setSaved] = useState(initial);
|
|
101
101
|
const [draft, setDraft] = useState(initial);
|
|
@@ -157,11 +157,25 @@ var SettingsPanel = forwardRef(function SettingsPanel2({ initial, onSave, langua
|
|
|
157
157
|
/* @__PURE__ */ jsx(Section, { title: "Profile", children: /* @__PURE__ */ jsxs("div", { className: "grid gap-3 sm:grid-cols-2", children: [
|
|
158
158
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
|
|
159
159
|
/* @__PURE__ */ jsx("label", { htmlFor: nameId, className: "text-[13px] font-medium text-ink", children: "Display name" }),
|
|
160
|
-
/* @__PURE__ */ jsx("input", { id: nameId, value: draft.name, onChange: (e) => set("name", e.target.value), className: inputCls, autoComplete: "name" })
|
|
160
|
+
/* @__PURE__ */ jsx("input", { id: nameId, name: "name", value: draft.name, onChange: (e) => set("name", e.target.value), className: inputCls, autoComplete: "name" })
|
|
161
161
|
] }),
|
|
162
162
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
|
|
163
163
|
/* @__PURE__ */ jsx("label", { htmlFor: emailId, className: "text-[13px] font-medium text-ink", children: "Email" }),
|
|
164
|
-
/* @__PURE__ */ jsx(
|
|
164
|
+
/* @__PURE__ */ jsx(
|
|
165
|
+
"input",
|
|
166
|
+
{
|
|
167
|
+
id: emailId,
|
|
168
|
+
name: "email",
|
|
169
|
+
type: "email",
|
|
170
|
+
value: draft.email,
|
|
171
|
+
onChange: (e) => set("email", e.target.value),
|
|
172
|
+
className: inputCls,
|
|
173
|
+
autoComplete: "email",
|
|
174
|
+
inputMode: "email",
|
|
175
|
+
autoCapitalize: "none",
|
|
176
|
+
spellCheck: false
|
|
177
|
+
}
|
|
178
|
+
)
|
|
165
179
|
] })
|
|
166
180
|
] }) }),
|
|
167
181
|
/* @__PURE__ */ jsxs(Section, { title: "Notifications", children: [
|
|
@@ -178,6 +192,7 @@ var SettingsPanel = forwardRef(function SettingsPanel2({ initial, onSave, langua
|
|
|
178
192
|
"select",
|
|
179
193
|
{
|
|
180
194
|
id: langId,
|
|
195
|
+
name: "language",
|
|
181
196
|
value: draft.language,
|
|
182
197
|
onChange: (e) => set("language", e.target.value),
|
|
183
198
|
className: cx(inputCls, "w-auto cursor-pointer appearance-none pr-9"),
|
|
@@ -316,7 +316,7 @@ function Navbar({ brand, brandHref = "/", items, docs, cta, scrollRoot, classNam
|
|
|
316
316
|
{
|
|
317
317
|
id: "kit-nav-sheet",
|
|
318
318
|
hidden: !sheet,
|
|
319
|
-
className: "kit-nav-motion absolute inset-x-0 top-full max-h-[calc(100svh-3.5rem)] overflow-y-auto bg-paper px-3 pb-6 pt-2 @min-[560px]:hidden",
|
|
319
|
+
className: "kit-nav-motion absolute inset-x-0 top-full max-h-[calc(100svh-3.5rem)] overflow-y-auto overscroll-contain bg-paper px-3 pb-6 pt-2 @min-[560px]:hidden",
|
|
320
320
|
style: { animation: sheet ? "kit-nav-pop .4s cubic-bezier(.16,1,.3,1) both" : void 0 },
|
|
321
321
|
children: [
|
|
322
322
|
/* @__PURE__ */ jsx("ul", { className: "flex flex-col", children: items.map((it, i) => /* @__PURE__ */ jsx("li", { children: it.menu ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// components/kit/phone-input.tsx
|
|
4
|
+
import { useEffect, useId, useLayoutEffect, useRef, useState } from "react";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
var cx = (...c) => c.filter(Boolean).join(" ");
|
|
7
|
+
var KEYFRAMES = `@keyframes asta-phone-in { from { opacity: 0; transform: translateY(-4px) scale(.98) } }
|
|
8
|
+
@keyframes asta-phone-ok { from { opacity: 0; transform: scale(.4) } }
|
|
9
|
+
@media (prefers-reduced-motion: reduce) { .asta-phone-a { animation: none !important } }`;
|
|
10
|
+
var PHONE_COUNTRIES = [
|
|
11
|
+
{ code: "US", name: "United States", dial: "1", mask: "(###) ###-####" },
|
|
12
|
+
{ code: "ID", name: "Indonesia", dial: "62", mask: "###-####-####" },
|
|
13
|
+
{ code: "GB", name: "United Kingdom", dial: "44", mask: "#### ######" },
|
|
14
|
+
{ code: "DE", name: "Germany", dial: "49", mask: "### ########" },
|
|
15
|
+
{ code: "FR", name: "France", dial: "33", mask: "# ## ## ## ##" },
|
|
16
|
+
{ code: "NL", name: "Netherlands", dial: "31", mask: "# ########" },
|
|
17
|
+
{ code: "SG", name: "Singapore", dial: "65", mask: "#### ####" },
|
|
18
|
+
{ code: "MY", name: "Malaysia", dial: "60", mask: "##-### ####" },
|
|
19
|
+
{ code: "JP", name: "Japan", dial: "81", mask: "##-####-####" },
|
|
20
|
+
{ code: "AU", name: "Australia", dial: "61", mask: "### ### ###" },
|
|
21
|
+
{ code: "IN", name: "India", dial: "91", mask: "#####-#####" },
|
|
22
|
+
{ code: "BR", name: "Brazil", dial: "55", mask: "(##) #####-####" },
|
|
23
|
+
{ code: "CA", name: "Canada", dial: "1", mask: "(###) ###-####" },
|
|
24
|
+
{ code: "AE", name: "United Arab Emirates", dial: "971", mask: "## ### ####" }
|
|
25
|
+
];
|
|
26
|
+
var slots = (mask) => mask.split("").filter((c) => c === "#").length;
|
|
27
|
+
function formatPhone(digits, mask) {
|
|
28
|
+
let out = "";
|
|
29
|
+
let i = 0;
|
|
30
|
+
for (const c of mask) {
|
|
31
|
+
if (i >= digits.length) break;
|
|
32
|
+
if (c === "#") out += digits[i++];
|
|
33
|
+
else out += c;
|
|
34
|
+
}
|
|
35
|
+
return out + digits.slice(i);
|
|
36
|
+
}
|
|
37
|
+
function PhoneInput({
|
|
38
|
+
countries = PHONE_COUNTRIES,
|
|
39
|
+
defaultCountry = "US",
|
|
40
|
+
defaultValue = "",
|
|
41
|
+
onChange,
|
|
42
|
+
label = "Phone number",
|
|
43
|
+
hint,
|
|
44
|
+
error,
|
|
45
|
+
name = "phone",
|
|
46
|
+
disabled,
|
|
47
|
+
className
|
|
48
|
+
}) {
|
|
49
|
+
const id = useId();
|
|
50
|
+
const [country, setCountry] = useState(() => countries.find((c) => c.code === defaultCountry) ?? countries[0]);
|
|
51
|
+
const [digits, setDigits] = useState(() => defaultValue.replace(/\D/g, "").slice(0, slots(country.mask)));
|
|
52
|
+
const [open, setOpen] = useState(false);
|
|
53
|
+
const [query, setQuery] = useState("");
|
|
54
|
+
const [hi, setHi] = useState(0);
|
|
55
|
+
const [short, setShort] = useState(false);
|
|
56
|
+
const input = useRef(null);
|
|
57
|
+
const search = useRef(null);
|
|
58
|
+
const wrap = useRef(null);
|
|
59
|
+
const caret = useRef(null);
|
|
60
|
+
const listId = `${id}-list`;
|
|
61
|
+
const max = slots(country.mask);
|
|
62
|
+
const valid = digits.length === max;
|
|
63
|
+
const shown = formatPhone(digits, country.mask);
|
|
64
|
+
const q = query.trim().toLowerCase().replace(/^\+/, "");
|
|
65
|
+
const results = q ? countries.filter((c) => c.name.toLowerCase().includes(q) || c.code.toLowerCase() === q || c.dial.startsWith(q)) : countries;
|
|
66
|
+
const emit = (d, c) => {
|
|
67
|
+
if (short && (!d || d.length === slots(c.mask))) setShort(false);
|
|
68
|
+
onChange?.({ e164: d ? `+${c.dial}${d}` : "", country: c, valid: d.length === slots(c.mask) });
|
|
69
|
+
};
|
|
70
|
+
const message = error || (short ? `Enter all ${max} digits, like ${country.mask.replace(/#/g, "0")}.` : "");
|
|
71
|
+
const describedBy = message ? `${id}-err` : hint ? `${id}-hint` : void 0;
|
|
72
|
+
useLayoutEffect(() => {
|
|
73
|
+
const el = input.current;
|
|
74
|
+
if (!el || caret.current === null) return;
|
|
75
|
+
let seen = 0;
|
|
76
|
+
let pos = 0;
|
|
77
|
+
while (pos < shown.length && seen < caret.current) {
|
|
78
|
+
if (/\d/.test(shown[pos])) seen++;
|
|
79
|
+
pos++;
|
|
80
|
+
}
|
|
81
|
+
el.setSelectionRange(pos, pos);
|
|
82
|
+
caret.current = null;
|
|
83
|
+
}, [shown]);
|
|
84
|
+
useEffect(() => {
|
|
85
|
+
if (!open) return;
|
|
86
|
+
search.current?.focus();
|
|
87
|
+
const down = (e) => {
|
|
88
|
+
if (!wrap.current?.contains(e.target)) setOpen(false);
|
|
89
|
+
};
|
|
90
|
+
document.addEventListener("pointerdown", down);
|
|
91
|
+
return () => document.removeEventListener("pointerdown", down);
|
|
92
|
+
}, [open]);
|
|
93
|
+
const onInput = (e) => {
|
|
94
|
+
const raw = e.target.value;
|
|
95
|
+
if (raw.trim().startsWith("+")) {
|
|
96
|
+
const all = raw.replace(/\D/g, "");
|
|
97
|
+
const match = [...countries].sort((a, b) => b.dial.length - a.dial.length).find((c) => all.startsWith(c.dial));
|
|
98
|
+
if (match) {
|
|
99
|
+
const d2 = all.slice(match.dial.length).slice(0, slots(match.mask));
|
|
100
|
+
setCountry(match);
|
|
101
|
+
setDigits(d2);
|
|
102
|
+
caret.current = d2.length;
|
|
103
|
+
emit(d2, match);
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
const before = raw.slice(0, e.target.selectionStart ?? raw.length).replace(/\D/g, "").length;
|
|
108
|
+
const d = raw.replace(/\D/g, "").slice(0, max);
|
|
109
|
+
caret.current = Math.min(before, d.length);
|
|
110
|
+
setDigits(d);
|
|
111
|
+
emit(d, country);
|
|
112
|
+
};
|
|
113
|
+
const pick = (c) => {
|
|
114
|
+
const d = digits.slice(0, slots(c.mask));
|
|
115
|
+
setCountry(c);
|
|
116
|
+
setDigits(d);
|
|
117
|
+
setOpen(false);
|
|
118
|
+
setQuery("");
|
|
119
|
+
emit(d, c);
|
|
120
|
+
input.current?.focus();
|
|
121
|
+
};
|
|
122
|
+
const onListKey = (e) => {
|
|
123
|
+
if (e.key === "ArrowDown" || e.key === "ArrowUp") {
|
|
124
|
+
e.preventDefault();
|
|
125
|
+
const n = results.length;
|
|
126
|
+
if (n) setHi((h) => (h + (e.key === "ArrowDown" ? 1 : -1) + n) % n);
|
|
127
|
+
} else if (e.key === "Enter") {
|
|
128
|
+
e.preventDefault();
|
|
129
|
+
if (results[hi]) pick(results[hi]);
|
|
130
|
+
} else if (e.key === "Escape") {
|
|
131
|
+
e.preventDefault();
|
|
132
|
+
setOpen(false);
|
|
133
|
+
input.current?.focus();
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
useEffect(() => {
|
|
137
|
+
if (open) document.getElementById(`${id}-opt-${hi}`)?.scrollIntoView({ block: "nearest" });
|
|
138
|
+
}, [hi, open, id]);
|
|
139
|
+
return /* @__PURE__ */ jsxs("div", { ref: wrap, className: cx("relative flex w-full flex-col gap-1.5", className), children: [
|
|
140
|
+
/* @__PURE__ */ jsx("style", { href: "asta-phone-input", precedence: "asta", children: KEYFRAMES }),
|
|
141
|
+
/* @__PURE__ */ jsx("label", { htmlFor: `${id}-num`, className: "text-[13px] font-medium text-ink", children: label }),
|
|
142
|
+
/* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
143
|
+
/* @__PURE__ */ jsxs(
|
|
144
|
+
"div",
|
|
145
|
+
{
|
|
146
|
+
className: cx(
|
|
147
|
+
"flex h-10 items-center rounded-lg bg-paper shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_14%,transparent)] transition-shadow duration-200",
|
|
148
|
+
message && "!shadow-[inset_0_0_0_1.5px_var(--ink)]",
|
|
149
|
+
"focus-within:shadow-[inset_0_0_0_1px_var(--brand),0_0_0_3px_color-mix(in_srgb,var(--brand)_18%,transparent)]",
|
|
150
|
+
disabled && "pointer-events-none opacity-50"
|
|
151
|
+
),
|
|
152
|
+
children: [
|
|
153
|
+
/* @__PURE__ */ jsxs(
|
|
154
|
+
"button",
|
|
155
|
+
{
|
|
156
|
+
type: "button",
|
|
157
|
+
"aria-haspopup": "listbox",
|
|
158
|
+
"aria-expanded": open,
|
|
159
|
+
"aria-label": `Country: ${country.name} +${country.dial}`,
|
|
160
|
+
onClick: () => {
|
|
161
|
+
setHi(Math.max(0, countries.indexOf(country)));
|
|
162
|
+
setOpen((o) => !o);
|
|
163
|
+
},
|
|
164
|
+
className: "flex h-full shrink-0 items-center gap-1.5 rounded-l-lg pl-3 pr-2 text-[13.5px] text-ink outline-none transition-colors hover:bg-paper-2 focus-visible:bg-paper-2",
|
|
165
|
+
children: [
|
|
166
|
+
/* @__PURE__ */ jsx("span", { className: "rounded-[4px] bg-paper-2 px-1 font-mono text-[10.5px] font-medium leading-[18px] text-ink-2 shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_8%,transparent)]", children: country.code }),
|
|
167
|
+
/* @__PURE__ */ jsxs("span", { className: "tabular-nums text-ink-2", children: [
|
|
168
|
+
"+",
|
|
169
|
+
country.dial
|
|
170
|
+
] }),
|
|
171
|
+
/* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: cx("h-3 w-3 text-mute transition-transform duration-200", open && "rotate-180"), fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "m4 6 4 4 4-4" }) })
|
|
172
|
+
]
|
|
173
|
+
}
|
|
174
|
+
),
|
|
175
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "h-5 w-px bg-[color-mix(in_srgb,var(--ink)_10%,transparent)]" }),
|
|
176
|
+
/* @__PURE__ */ jsx(
|
|
177
|
+
"input",
|
|
178
|
+
{
|
|
179
|
+
ref: input,
|
|
180
|
+
id: `${id}-num`,
|
|
181
|
+
type: "tel",
|
|
182
|
+
inputMode: "tel",
|
|
183
|
+
autoComplete: "tel-national",
|
|
184
|
+
name,
|
|
185
|
+
value: shown,
|
|
186
|
+
onChange: onInput,
|
|
187
|
+
onBlur: () => setShort(digits.length > 0 && !valid),
|
|
188
|
+
disabled,
|
|
189
|
+
placeholder: country.mask.replace(/#/g, "0"),
|
|
190
|
+
"aria-invalid": !!message || void 0,
|
|
191
|
+
"aria-describedby": describedBy,
|
|
192
|
+
className: "h-full min-w-0 flex-1 bg-transparent px-3 text-[16px] sm:text-[14px] tabular-nums text-ink outline-none placeholder:text-mute"
|
|
193
|
+
}
|
|
194
|
+
),
|
|
195
|
+
/* @__PURE__ */ jsx("span", { className: "flex w-9 shrink-0 justify-center text-brand", children: valid && /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "asta-phone-a h-4 w-4 animate-[asta-phone-ok_.35s_cubic-bezier(.16,1,.3,1)_both]", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", role: "img", "aria-label": "Complete number", children: /* @__PURE__ */ jsx("path", { d: "m3.5 8.5 3 3 6-7" }) }) })
|
|
196
|
+
]
|
|
197
|
+
}
|
|
198
|
+
),
|
|
199
|
+
open && /* @__PURE__ */ jsxs("div", { className: "asta-phone-a absolute left-0 top-full z-50 mt-1.5 flex w-full max-w-[320px] origin-top-left animate-[asta-phone-in_.18s_cubic-bezier(.16,1,.3,1)_both] flex-col rounded-[11px] bg-paper p-1 shadow-[0_0_0_1px_color-mix(in_srgb,var(--ink)_9%,transparent),0_14px_34px_-12px_rgb(0_0_0/0.28)]", children: [
|
|
200
|
+
/* @__PURE__ */ jsx(
|
|
201
|
+
"input",
|
|
202
|
+
{
|
|
203
|
+
ref: search,
|
|
204
|
+
type: "search",
|
|
205
|
+
autoComplete: "off",
|
|
206
|
+
spellCheck: false,
|
|
207
|
+
value: query,
|
|
208
|
+
onChange: (e) => {
|
|
209
|
+
setQuery(e.target.value);
|
|
210
|
+
setHi(0);
|
|
211
|
+
},
|
|
212
|
+
onKeyDown: onListKey,
|
|
213
|
+
role: "combobox",
|
|
214
|
+
"aria-expanded": "true",
|
|
215
|
+
"aria-controls": listId,
|
|
216
|
+
"aria-activedescendant": results[hi] ? `${id}-opt-${hi}` : void 0,
|
|
217
|
+
"aria-label": "Search countries",
|
|
218
|
+
placeholder: "Search country or code\u2026",
|
|
219
|
+
className: "mb-1 h-9 w-full rounded-[7px] bg-paper-2 px-2.5 text-[16px] sm:text-[13px] text-ink outline-none placeholder:text-mute [&::-webkit-search-cancel-button]:hidden"
|
|
220
|
+
}
|
|
221
|
+
),
|
|
222
|
+
/* @__PURE__ */ jsxs("div", { id: listId, role: "listbox", "aria-label": "Countries", className: "max-h-[220px] overflow-y-auto overscroll-contain", children: [
|
|
223
|
+
results.length === 0 && /* @__PURE__ */ jsxs("p", { className: "px-2.5 py-3 text-[12.5px] text-mute", children: [
|
|
224
|
+
"No country matches \u201C",
|
|
225
|
+
query,
|
|
226
|
+
"\u201D"
|
|
227
|
+
] }),
|
|
228
|
+
results.map((c, i) => /* @__PURE__ */ jsxs(
|
|
229
|
+
"div",
|
|
230
|
+
{
|
|
231
|
+
id: `${id}-opt-${i}`,
|
|
232
|
+
role: "option",
|
|
233
|
+
"aria-selected": c.code === country.code,
|
|
234
|
+
onPointerMove: () => hi !== i && setHi(i),
|
|
235
|
+
onClick: () => pick(c),
|
|
236
|
+
className: cx("flex h-8 cursor-default items-center gap-2.5 rounded-[7px] px-2 text-[13px]", hi === i ? "bg-paper-2 text-ink" : "text-ink-2"),
|
|
237
|
+
children: [
|
|
238
|
+
/* @__PURE__ */ jsx("span", { className: "w-6 font-mono text-[10.5px] text-mute", children: c.code }),
|
|
239
|
+
/* @__PURE__ */ jsx("span", { className: "flex-1 truncate", children: c.name }),
|
|
240
|
+
/* @__PURE__ */ jsxs("span", { className: "tabular-nums text-mute", children: [
|
|
241
|
+
"+",
|
|
242
|
+
c.dial
|
|
243
|
+
] }),
|
|
244
|
+
c.code === country.code && /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "h-3.5 w-3.5 text-brand", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "m3.5 8.5 3 3 6-7" }) })
|
|
245
|
+
]
|
|
246
|
+
},
|
|
247
|
+
c.code
|
|
248
|
+
))
|
|
249
|
+
] })
|
|
250
|
+
] })
|
|
251
|
+
] }),
|
|
252
|
+
message ? /* @__PURE__ */ jsxs("p", { id: `${id}-err`, role: "alert", className: "flex items-start gap-1.5 text-[12px] text-ink-2", children: [
|
|
253
|
+
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0 16 16", className: "mt-px h-3.5 w-3.5 shrink-0", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", "aria-hidden": true, children: [
|
|
254
|
+
/* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "6" }),
|
|
255
|
+
/* @__PURE__ */ jsx("path", { d: "M8 5v3.5M8 11h0" })
|
|
256
|
+
] }),
|
|
257
|
+
message
|
|
258
|
+
] }) : hint && /* @__PURE__ */ jsx("p", { id: `${id}-hint`, className: "text-[12px] text-mute", children: hint }),
|
|
259
|
+
name && /* @__PURE__ */ jsx("input", { type: "hidden", name: `${name}_e164`, value: digits ? `+${country.dial}${digits}` : "" })
|
|
260
|
+
] });
|
|
261
|
+
}
|
|
262
|
+
var phone_input_default = PhoneInput;
|
|
263
|
+
|
|
264
|
+
export {
|
|
265
|
+
PHONE_COUNTRIES,
|
|
266
|
+
formatPhone,
|
|
267
|
+
PhoneInput,
|
|
268
|
+
phone_input_default
|
|
269
|
+
};
|
|
@@ -44,6 +44,7 @@ function PromptBox({ models, defaultModel, placeholder = "Ask anything\u2026", m
|
|
|
44
44
|
"textarea",
|
|
45
45
|
{
|
|
46
46
|
ref: area,
|
|
47
|
+
name: "prompt",
|
|
47
48
|
rows: 2,
|
|
48
49
|
value: text,
|
|
49
50
|
onChange: (e) => setText(e.target.value),
|
|
@@ -56,7 +57,7 @@ function PromptBox({ models, defaultModel, placeholder = "Ask anything\u2026", m
|
|
|
56
57
|
placeholder,
|
|
57
58
|
"aria-label": "Prompt",
|
|
58
59
|
readOnly: busy,
|
|
59
|
-
className: cx("block w-full resize-none bg-transparent px-1 text-[15px] leading-[1.5] text-ink outline-none placeholder:text-mute transition-opacity duration-300", busy && "opacity-60")
|
|
60
|
+
className: cx("block w-full resize-none bg-transparent px-1 text-[16px] sm:text-[15px] leading-[1.5] text-ink outline-none placeholder:text-mute transition-opacity duration-300", busy && "opacity-60")
|
|
60
61
|
}
|
|
61
62
|
),
|
|
62
63
|
/* @__PURE__ */ jsxs("div", { className: "mt-2 flex items-center justify-between gap-2", children: [
|
|
@@ -79,7 +80,7 @@ function PromptBox({ models, defaultModel, placeholder = "Ask anything\u2026", m
|
|
|
79
80
|
side: "top",
|
|
80
81
|
align: "start",
|
|
81
82
|
sideOffset: 8,
|
|
82
|
-
className: "z-50 min-w-[220px] will-change-[transform,opacity] origin-[var(--radix-dropdown-menu-content-transform-origin)] rounded-xl bg-paper p-1 text-ink shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent),0_16px_40px_-16px_rgb(0_0_0/0.3)] data-[state=open]:animate-[aui-pop-in_.22s_cubic-bezier(.16,1,.3,1)_both] data-[state=closed]:animate-[aui-pop-out_.
|
|
83
|
+
className: "z-50 min-w-[220px] will-change-[transform,opacity] origin-[var(--radix-dropdown-menu-content-transform-origin)] rounded-xl bg-paper p-1 text-ink shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent),0_16px_40px_-16px_rgb(0_0_0/0.3)] data-[state=open]:animate-[aui-pop-in_.22s_cubic-bezier(.16,1,.3,1)_both] data-[state=closed]:animate-[aui-pop-out_.12s_cubic-bezier(.16,1,.3,1)_both] motion-reduce:!animate-none",
|
|
83
84
|
children: /* @__PURE__ */ jsx(Menu.RadioGroup, { value: model, onValueChange: setModel, children: models.map((m) => /* @__PURE__ */ jsxs(
|
|
84
85
|
Menu.RadioItem,
|
|
85
86
|
{
|
|
@@ -190,15 +190,18 @@ function TradeTicket() {
|
|
|
190
190
|
className: "relative mt-2 flex h-12 items-center justify-center overflow-hidden rounded-[10px] text-[15px] font-medium text-paper outline-none transition-[background-color,transform,opacity] duration-300 active:scale-[0.98] disabled:opacity-40 focus-visible:ring-2 focus-visible:ring-signal/60",
|
|
191
191
|
style: { background: color },
|
|
192
192
|
children: [
|
|
193
|
-
/* @__PURE__ */ jsxs("span", { className: `absolute flex items-center gap-2 transition-[transform,opacity] duration-500 ease-[cubic-bezier(.16,1,.3,1)] ${phase === "idle" ? "translate-y-0 opacity-100" : "-translate-y-4 opacity-0"}`, children: [
|
|
193
|
+
/* @__PURE__ */ jsxs("span", { "aria-hidden": phase !== "idle", className: `absolute flex items-center gap-2 transition-[transform,opacity] duration-500 ease-[cubic-bezier(.16,1,.3,1)] ${phase === "idle" ? "translate-y-0 opacity-100" : "-translate-y-4 opacity-0"}`, children: [
|
|
194
194
|
/* @__PURE__ */ jsx("span", { className: "capitalize", children: side }),
|
|
195
195
|
" ASTA"
|
|
196
196
|
] }),
|
|
197
|
-
/* @__PURE__ */
|
|
198
|
-
/* @__PURE__ */
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
197
|
+
/* @__PURE__ */ jsxs("span", { "aria-hidden": phase !== "sending", className: `absolute transition-[transform,opacity] duration-500 ease-[cubic-bezier(.16,1,.3,1)] ${phase === "sending" ? "scale-100 opacity-100" : "scale-50 opacity-0"}`, children: [
|
|
198
|
+
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0 16 16", className: "h-5 w-5 animate-spin", fill: "none", "aria-hidden": true, children: [
|
|
199
|
+
/* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "6", stroke: "currentColor", strokeOpacity: ".3", strokeWidth: "2" }),
|
|
200
|
+
/* @__PURE__ */ jsx("path", { d: "M14 8a6 6 0 0 0-6-6", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" })
|
|
201
|
+
] }),
|
|
202
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Placing order" })
|
|
203
|
+
] }),
|
|
204
|
+
/* @__PURE__ */ jsxs("span", { "aria-hidden": phase !== "done", className: `absolute flex items-center gap-2 transition-[transform,opacity] duration-500 ease-[cubic-bezier(.16,1,.3,1)] ${phase === "done" ? "translate-y-0 opacity-100" : "translate-y-4 opacity-0"}`, children: [
|
|
202
205
|
/* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "h-4 w-4", fill: "none", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "M3.5 8.5l3 3 6-7" }) }),
|
|
203
206
|
"Filled ",
|
|
204
207
|
amount.toFixed(3)
|
|
@@ -65,7 +65,7 @@ function CommandPalette({ open, onOpenChange, commands, groups, placeholder = "T
|
|
|
65
65
|
className: cx(
|
|
66
66
|
pos,
|
|
67
67
|
"inset-0 z-50 bg-[color-mix(in_srgb,var(--ink)_24%,transparent)] will-change-[opacity]",
|
|
68
|
-
"data-[state=open]:animate-[kit-cmd-fade_.
|
|
68
|
+
"data-[state=open]:animate-[kit-cmd-fade_.12s_ease-out_both] data-[state=closed]:animate-[kit-cmd-fade-out_.1s_ease-out_both] motion-reduce:!animate-none",
|
|
69
69
|
contained && "rounded-[inherit]"
|
|
70
70
|
)
|
|
71
71
|
}
|
|
@@ -87,9 +87,10 @@ function CommandPalette({ open, onOpenChange, commands, groups, placeholder = "T
|
|
|
87
87
|
},
|
|
88
88
|
className: cx(
|
|
89
89
|
pos,
|
|
90
|
-
"left-1/2 top-[10%] z-50 flex will-change-[
|
|
90
|
+
"left-1/2 top-[10%] z-50 flex will-change-[opacity] max-h-[min(440px,calc(100%-2rem))] w-[calc(100%-1.5rem)] max-w-[560px] -translate-x-1/2 flex-col overflow-hidden rounded-xl bg-paper outline-none",
|
|
91
91
|
"shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_12%,transparent),0_24px_60px_-20px_rgb(0_0_0/0.4)]",
|
|
92
|
-
|
|
92
|
+
// Opened from the keyboard many times a day, so it appears at once: a 120ms fade, no movement.
|
|
93
|
+
"data-[state=open]:animate-[kit-cmd-fade_.12s_ease-out_both] data-[state=closed]:animate-[kit-cmd-fade-out_.1s_ease-out_both] motion-reduce:!animate-none",
|
|
93
94
|
className
|
|
94
95
|
),
|
|
95
96
|
onKeyDown: (e) => {
|
|
@@ -107,8 +108,6 @@ function CommandPalette({ open, onOpenChange, commands, groups, placeholder = "T
|
|
|
107
108
|
/* @__PURE__ */ jsx("style", { href: "asta-command-palette", precedence: "asta", children: `
|
|
108
109
|
@keyframes kit-cmd-fade { from { opacity: 0 } }
|
|
109
110
|
@keyframes kit-cmd-fade-out { to { opacity: 0 } }
|
|
110
|
-
@keyframes kit-cmd-in { from { opacity: 0; transform: translateY(-8px) scale(.97) } }
|
|
111
|
-
@keyframes kit-cmd-out { to { opacity: 0; transform: translateY(-4px) scale(.98) } }
|
|
112
111
|
` }),
|
|
113
112
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2.5 px-4 shadow-[inset_0_-1px_0_color-mix(in_srgb,var(--ink)_8%,transparent)]", children: [
|
|
114
113
|
/* @__PURE__ */ jsxs("svg", { viewBox: "0 0 16 16", className: "h-4 w-4 shrink-0 text-mute", fill: "none", stroke: "currentColor", strokeWidth: "1.6", "aria-hidden": true, children: [
|
|
@@ -125,12 +124,17 @@ function CommandPalette({ open, onOpenChange, commands, groups, placeholder = "T
|
|
|
125
124
|
setAt(0);
|
|
126
125
|
},
|
|
127
126
|
placeholder,
|
|
127
|
+
"aria-label": "Search commands",
|
|
128
|
+
name: "q",
|
|
129
|
+
autoComplete: "off",
|
|
130
|
+
spellCheck: false,
|
|
131
|
+
enterKeyHint: "go",
|
|
128
132
|
role: "combobox",
|
|
129
133
|
"aria-expanded": "true",
|
|
130
134
|
"aria-controls": listId,
|
|
131
135
|
"aria-activedescendant": flat[active] ? `${listId}-${flat[active].c.id}` : void 0,
|
|
132
136
|
"aria-autocomplete": "list",
|
|
133
|
-
className: "h-12 min-w-0 flex-1 bg-transparent text-[
|
|
137
|
+
className: "h-12 min-w-0 flex-1 bg-transparent text-[16px] text-ink outline-none placeholder:text-mute sm:text-[15px]"
|
|
134
138
|
}
|
|
135
139
|
),
|
|
136
140
|
/* @__PURE__ */ jsx("kbd", { className: "rounded-md bg-paper-2 px-1.5 font-sans text-[11px] leading-5 text-mute", children: "Esc" })
|
|
@@ -70,10 +70,11 @@ function SlugInput({
|
|
|
70
70
|
"input",
|
|
71
71
|
{
|
|
72
72
|
id: `${id}-t`,
|
|
73
|
+
autoComplete: "off",
|
|
73
74
|
value: title,
|
|
74
75
|
onChange: (e) => setTitle(e.target.value),
|
|
75
76
|
placeholder,
|
|
76
|
-
className: "mt-1 w-full bg-transparent text-[26px] font-medium leading-[1.15] tracking-[-0.035em] text-ink caret-brand outline-none placeholder:text-mute
|
|
77
|
+
className: "mt-1 w-full bg-transparent text-[26px] font-medium leading-[1.15] tracking-[-0.035em] text-ink caret-brand outline-none placeholder:text-mute"
|
|
77
78
|
}
|
|
78
79
|
),
|
|
79
80
|
/* @__PURE__ */ jsxs("div", { className: "mt-3 flex min-h-10 items-center gap-2 rounded-[9px] bg-paper-2 py-1.5 pl-3 pr-1.5 text-[13px]", children: [
|
|
@@ -88,6 +89,9 @@ function SlugInput({
|
|
|
88
89
|
{
|
|
89
90
|
ref: slugRef,
|
|
90
91
|
"aria-label": "Slug",
|
|
92
|
+
autoComplete: "off",
|
|
93
|
+
autoCapitalize: "none",
|
|
94
|
+
spellCheck: false,
|
|
91
95
|
value: slug,
|
|
92
96
|
onChange: (e) => setCustom(slugFromTitle(e.target.value, true)),
|
|
93
97
|
onBlur: () => {
|
|
@@ -97,9 +101,9 @@ function SlugInput({
|
|
|
97
101
|
onKeyDown: (e) => {
|
|
98
102
|
if (e.key === "Enter" || e.key === "Escape") e.currentTarget.blur();
|
|
99
103
|
},
|
|
100
|
-
className: "min-w-0 flex-1 rounded-[4px] bg-paper px-1 text-ink shadow-[inset_0_0_0_1px_var(--brand)] outline-none"
|
|
104
|
+
className: "min-w-0 flex-1 rounded-[4px] bg-paper px-1 text-[16px] text-ink shadow-[inset_0_0_0_1px_var(--brand)] outline-none sm:text-[13px]"
|
|
101
105
|
}
|
|
102
|
-
) : /* @__PURE__ */ jsx("span", { "aria-label": slug ? `Slug ${slug}` : "No slug yet", className: "shrink-0 text-ink", children: slug ? slug.split("").map((ch, i) => /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "inline-block whitespace-pre", style: { animation: `aui033-ch .35s ${EASE} both` }, children: ch }, `${i}${ch}`)) : /* @__PURE__ */ jsx("span", { className: "text-mute
|
|
106
|
+
) : /* @__PURE__ */ jsx("span", { "aria-label": slug ? `Slug ${slug}` : "No slug yet", className: "shrink-0 text-ink", children: slug ? slug.split("").map((ch, i) => /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "inline-block whitespace-pre", style: { animation: `aui033-ch .35s ${EASE} both` }, children: ch }, `${i}${ch}`)) : /* @__PURE__ */ jsx("span", { className: "text-mute", children: "your-title" }) })
|
|
103
107
|
] }),
|
|
104
108
|
/* @__PURE__ */ jsxs("span", { "aria-live": "polite", className: "flex shrink-0 items-center gap-1.5 text-[12.5px]", children: [
|
|
105
109
|
status === "checking" && /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1.5 text-mute", style: { animation: `aui033-in .25s ${EASE} both` }, children: [
|
|
@@ -205,9 +205,11 @@ function ChatThread() {
|
|
|
205
205
|
takeOver();
|
|
206
206
|
setDraft(e.target.value);
|
|
207
207
|
},
|
|
208
|
-
|
|
208
|
+
name: "message",
|
|
209
|
+
autoComplete: "off",
|
|
210
|
+
placeholder: "Message\u2026",
|
|
209
211
|
"aria-label": "Message",
|
|
210
|
-
className: `h-9 min-w-0 flex-1 rounded-[9px] bg-paper px-3 text-[13px] text-ink outline-none placeholder:text-mute focus-visible:ring-2 focus-visible:ring-brand/50 ${RING}`
|
|
212
|
+
className: `h-9 min-w-0 flex-1 rounded-[9px] bg-paper px-3 text-[16px] sm:text-[13px] text-ink outline-none placeholder:text-mute focus-visible:ring-2 focus-visible:ring-brand/50 ${RING}`
|
|
211
213
|
}
|
|
212
214
|
),
|
|
213
215
|
/* @__PURE__ */ jsx(
|
|
@@ -191,7 +191,7 @@ function Combobox(props) {
|
|
|
191
191
|
if (root.current?.contains(e.relatedTarget)) return;
|
|
192
192
|
dismiss();
|
|
193
193
|
},
|
|
194
|
-
className: "h-8 min-w-[6rem] flex-1 bg-transparent px-1.5 text-[14px] text-ink outline-none placeholder:text-mute disabled:cursor-not-allowed"
|
|
194
|
+
className: "h-8 min-w-[6rem] flex-1 bg-transparent px-1.5 text-[16px] sm:text-[14px] text-ink outline-none placeholder:text-mute disabled:cursor-not-allowed"
|
|
195
195
|
}
|
|
196
196
|
),
|
|
197
197
|
/* @__PURE__ */ jsx(
|