asta-ui 0.9.2 → 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
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
Meter
|
|
4
|
+
} from "./chunk-LS6CFF6X.js";
|
|
5
|
+
import {
|
|
6
|
+
Button
|
|
7
|
+
} from "./chunk-ZWBJUJTR.js";
|
|
8
|
+
|
|
9
|
+
// components/kit/billing.tsx
|
|
10
|
+
import { useState } from "react";
|
|
11
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
+
var cx = (...c) => c.filter(Boolean).join(" ");
|
|
13
|
+
var KEYFRAMES = `@keyframes asta-billing-roll { from { opacity: 0; transform: translateY(55%) } }
|
|
14
|
+
@keyframes asta-billing-in { from { opacity: 0; transform: translateY(-4px) } }
|
|
15
|
+
@media (prefers-reduced-motion: reduce) { .asta-billing-a { animation: none !important } }`;
|
|
16
|
+
function Roll({ children }) {
|
|
17
|
+
return /* @__PURE__ */ jsx("span", { className: "inline-flex overflow-hidden align-bottom", "aria-live": "polite", children: /* @__PURE__ */ jsx("span", { className: "asta-billing-a inline-block animate-[asta-billing-roll_.45s_cubic-bezier(.16,1,.3,1)_both] tabular-nums", children }, children) });
|
|
18
|
+
}
|
|
19
|
+
function Group({ title, hint, children, aside }) {
|
|
20
|
+
return /* @__PURE__ */ jsxs("section", { className: "grid gap-3 py-6 first:pt-0 @min-[720px]:grid-cols-[220px_1fr] @min-[720px]:gap-10", children: [
|
|
21
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-3 @min-[720px]:block", children: [
|
|
22
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
23
|
+
/* @__PURE__ */ jsx("h3", { className: "text-[14px] font-medium tracking-[-0.01em]", children: title }),
|
|
24
|
+
hint && /* @__PURE__ */ jsx("p", { className: "mt-1 text-[12.5px] leading-relaxed text-mute", children: hint })
|
|
25
|
+
] }),
|
|
26
|
+
aside && /* @__PURE__ */ jsx("div", { className: "@min-[720px]:mt-3", children: aside })
|
|
27
|
+
] }),
|
|
28
|
+
/* @__PURE__ */ jsx("div", { className: "min-w-0", children })
|
|
29
|
+
] });
|
|
30
|
+
}
|
|
31
|
+
var rowCls = "flex items-center gap-3 rounded-[10px] bg-paper-2 px-4 py-3";
|
|
32
|
+
function Billing({ plans, currentPlan, renewsOn, daysLeft = 0, periodDays = 30, usage = [], card, invoices = [], currency = "USD", locale = "en-US", onChangePlan, onUpdateCard, className }) {
|
|
33
|
+
const [current, setCurrent] = useState(currentPlan);
|
|
34
|
+
const [pick, setPick] = useState(null);
|
|
35
|
+
const [saving, setSaving] = useState(false);
|
|
36
|
+
const [done, setDone] = useState(null);
|
|
37
|
+
const money = (n) => new Intl.NumberFormat(locale, { style: "currency", currency, minimumFractionDigits: n % 1 ? 2 : 0 }).format(n);
|
|
38
|
+
const cur = plans.find((p) => p.id === current) ?? plans[0];
|
|
39
|
+
const next = pick ? plans.find((p) => p.id === pick) : void 0;
|
|
40
|
+
const share = periodDays ? daysLeft / periodDays : 0;
|
|
41
|
+
const credit = Math.round(cur.price * share * 100) / 100;
|
|
42
|
+
const charge = next ? Math.round(next.price * share * 100) / 100 : 0;
|
|
43
|
+
const today = Math.max(0, Math.round((charge - credit) * 100) / 100);
|
|
44
|
+
const upgrade = next ? next.price > cur.price : false;
|
|
45
|
+
const confirm = async () => {
|
|
46
|
+
if (!next || saving) return;
|
|
47
|
+
setSaving(true);
|
|
48
|
+
try {
|
|
49
|
+
await onChangePlan?.(next.id);
|
|
50
|
+
setCurrent(next.id);
|
|
51
|
+
setDone(`You're on ${next.name} now.`);
|
|
52
|
+
setPick(null);
|
|
53
|
+
} finally {
|
|
54
|
+
setSaving(false);
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
return /* @__PURE__ */ jsxs("div", { className: cx("@container w-full text-ink", className), children: [
|
|
58
|
+
/* @__PURE__ */ jsx("style", { href: "asta-billing", precedence: "asta", children: KEYFRAMES }),
|
|
59
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
|
|
60
|
+
/* @__PURE__ */ jsxs(Group, { title: "Plan", hint: `Renews on ${renewsOn}. Change any time; we prorate the rest of the month.`, children: [
|
|
61
|
+
/* @__PURE__ */ jsx("div", { role: "radiogroup", "aria-label": "Plan", className: "grid gap-2 @min-[560px]:grid-cols-3", children: plans.map((p) => {
|
|
62
|
+
const isCur = p.id === current;
|
|
63
|
+
const on = (pick ?? current) === p.id;
|
|
64
|
+
return /* @__PURE__ */ jsxs(
|
|
65
|
+
"button",
|
|
66
|
+
{
|
|
67
|
+
type: "button",
|
|
68
|
+
role: "radio",
|
|
69
|
+
"aria-checked": on,
|
|
70
|
+
onClick: () => {
|
|
71
|
+
setPick(isCur ? null : p.id);
|
|
72
|
+
setDone(null);
|
|
73
|
+
},
|
|
74
|
+
className: cx(
|
|
75
|
+
"group/plan relative flex flex-col gap-1 rounded-[12px] p-4 text-left outline-none transition-[box-shadow,background-color] duration-200 focus-visible:ring-2 focus-visible:ring-brand/50",
|
|
76
|
+
on ? "bg-paper shadow-[inset_0_0_0_2px_var(--brand)]" : "bg-paper-2 hover:shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_18%,transparent)]"
|
|
77
|
+
),
|
|
78
|
+
children: [
|
|
79
|
+
/* @__PURE__ */ jsxs("span", { className: "flex items-center justify-between gap-2", children: [
|
|
80
|
+
/* @__PURE__ */ jsx("span", { className: "text-[13.5px] font-medium", children: p.name }),
|
|
81
|
+
isCur && /* @__PURE__ */ jsx("span", { className: "rounded-md bg-ink px-1.5 py-0.5 text-[10.5px] font-medium text-paper", children: "Current" })
|
|
82
|
+
] }),
|
|
83
|
+
/* @__PURE__ */ jsxs("span", { className: "text-[22px] font-medium tracking-[-0.03em] tabular-nums", children: [
|
|
84
|
+
money(p.price),
|
|
85
|
+
/* @__PURE__ */ jsx("span", { className: "text-[12.5px] font-normal tracking-normal text-mute", children: " /mo" })
|
|
86
|
+
] }),
|
|
87
|
+
p.blurb && /* @__PURE__ */ jsx("span", { className: "text-[12px] text-mute", children: p.blurb }),
|
|
88
|
+
p.features && /* @__PURE__ */ jsx("ul", { className: "mt-2 flex flex-col gap-1 text-[12px] text-ink-2", children: p.features.map((f) => /* @__PURE__ */ jsxs("li", { className: "flex gap-1.5", children: [
|
|
89
|
+
/* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "mt-[3px] h-3 w-3 shrink-0 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" }) }),
|
|
90
|
+
f
|
|
91
|
+
] }, f)) })
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
p.id
|
|
95
|
+
);
|
|
96
|
+
}) }),
|
|
97
|
+
next ? /* @__PURE__ */ jsxs("div", { className: "asta-billing-a mt-3 flex animate-[asta-billing-in_.35s_cubic-bezier(.16,1,.3,1)_both] flex-col gap-4 rounded-[12px] bg-paper-2 p-4", children: [
|
|
98
|
+
/* @__PURE__ */ jsxs("dl", { className: "grid flex-1 grid-cols-3 gap-3 text-[12px]", children: [
|
|
99
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
100
|
+
/* @__PURE__ */ jsxs("dt", { className: "text-mute", children: [
|
|
101
|
+
next.name,
|
|
102
|
+
", ",
|
|
103
|
+
daysLeft,
|
|
104
|
+
" days"
|
|
105
|
+
] }),
|
|
106
|
+
/* @__PURE__ */ jsx("dd", { className: "mt-0.5 text-[14px] font-medium", children: /* @__PURE__ */ jsx(Roll, { children: money(charge) }) })
|
|
107
|
+
] }),
|
|
108
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
109
|
+
/* @__PURE__ */ jsxs("dt", { className: "text-mute", children: [
|
|
110
|
+
"Unused ",
|
|
111
|
+
cur.name
|
|
112
|
+
] }),
|
|
113
|
+
/* @__PURE__ */ jsx("dd", { className: "mt-0.5 text-[14px] font-medium", children: /* @__PURE__ */ jsx(Roll, { children: `\u2212${money(credit)}` }) })
|
|
114
|
+
] }),
|
|
115
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
116
|
+
/* @__PURE__ */ jsx("dt", { className: "text-mute", children: upgrade ? "Due today" : "Credit" }),
|
|
117
|
+
/* @__PURE__ */ jsx("dd", { className: "mt-0.5 text-[14px] font-medium text-brand", children: /* @__PURE__ */ jsx(Roll, { children: upgrade ? money(today) : money(Math.max(0, credit - charge)) }) })
|
|
118
|
+
] })
|
|
119
|
+
] }),
|
|
120
|
+
/* @__PURE__ */ jsxs("div", { className: "flex justify-end gap-2 @max-[559px]:[&>*]:flex-1", children: [
|
|
121
|
+
/* @__PURE__ */ jsx(Button, { size: "sm", variant: "ghost", onClick: () => setPick(null), children: "Cancel" }),
|
|
122
|
+
/* @__PURE__ */ jsx(Button, { size: "sm", variant: "accent", loading: saving, onClick: confirm, children: upgrade ? `Upgrade to ${next.name}` : `Switch to ${next.name}` })
|
|
123
|
+
] })
|
|
124
|
+
] }, "preview") : /* @__PURE__ */ jsx("p", { className: "mt-3 h-5 text-[12.5px] text-mute", "aria-live": "polite", children: done ?? `${cur.name} \xB7 ${money(cur.price)} a month \xB7 next charge on ${renewsOn}` })
|
|
125
|
+
] }),
|
|
126
|
+
usage.length > 0 && /* @__PURE__ */ jsx(Group, { title: "Usage", hint: "This billing period. Limits reset on renewal.", children: /* @__PURE__ */ jsx("div", { className: "grid gap-3 @min-[560px]:grid-cols-2", children: usage.map((u) => /* @__PURE__ */ jsx("div", { className: "rounded-[12px] bg-paper-2 p-4", children: /* @__PURE__ */ jsx(Meter, { label: u.label, value: u.value, max: u.max, format: u.format, size: "sm" }) }, u.label)) }) }),
|
|
127
|
+
card && /* @__PURE__ */ jsx(Group, { title: "Payment method", hint: "Charged on each renewal.", children: /* @__PURE__ */ jsxs("div", { className: rowCls, children: [
|
|
128
|
+
/* @__PURE__ */ jsx("span", { className: "grid h-8 w-12 shrink-0 place-items-center rounded-md bg-ink text-paper", "aria-hidden": true, children: /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 16", className: "h-4 w-6", fill: "none", stroke: "currentColor", strokeWidth: "1.4", children: [
|
|
129
|
+
/* @__PURE__ */ jsx("rect", { x: "1.5", y: "1.5", width: "21", height: "13", rx: "2" }),
|
|
130
|
+
/* @__PURE__ */ jsx("path", { d: "M1.5 5.5h21M5 11h4" })
|
|
131
|
+
] }) }),
|
|
132
|
+
/* @__PURE__ */ jsxs("span", { className: "min-w-0 flex-1", children: [
|
|
133
|
+
/* @__PURE__ */ jsxs("span", { className: "block text-[13.5px] font-medium", children: [
|
|
134
|
+
"Card ending ",
|
|
135
|
+
card.last4
|
|
136
|
+
] }),
|
|
137
|
+
/* @__PURE__ */ jsxs("span", { className: "block truncate text-[12px] text-mute", children: [
|
|
138
|
+
"Expires ",
|
|
139
|
+
card.expires,
|
|
140
|
+
card.holder ? ` \xB7 ${card.holder}` : ""
|
|
141
|
+
] })
|
|
142
|
+
] }),
|
|
143
|
+
onUpdateCard && /* @__PURE__ */ jsx(Button, { size: "xs", variant: "outline", onClick: onUpdateCard, children: "Update" })
|
|
144
|
+
] }) }),
|
|
145
|
+
invoices.length > 0 && /* @__PURE__ */ jsx(Group, { title: "Invoices", hint: "Download any invoice as a PDF.", children: /* @__PURE__ */ jsx("ul", { className: "flex flex-col gap-1", children: invoices.map((inv) => /* @__PURE__ */ jsxs("li", { className: "flex items-center gap-3 rounded-[10px] px-4 py-2.5 text-[13px] odd:bg-paper-2", children: [
|
|
146
|
+
/* @__PURE__ */ jsx("span", { className: "w-[92px] shrink-0 tabular-nums text-ink-2 @max-[420px]:w-auto", children: inv.date }),
|
|
147
|
+
/* @__PURE__ */ jsx("span", { className: "hidden min-w-0 flex-1 truncate font-mono text-[12px] text-mute @min-[480px]:block", children: inv.id }),
|
|
148
|
+
/* @__PURE__ */ jsx("span", { className: "ml-auto font-medium tabular-nums @min-[480px]:ml-0", children: money(inv.amount) }),
|
|
149
|
+
/* @__PURE__ */ jsx("span", { className: cx("w-[52px] shrink-0 text-right text-[12px]", inv.status === "paid" ? "text-mute" : inv.status === "due" ? "text-ink" : "font-medium text-ink"), children: inv.status === "paid" ? "Paid" : inv.status === "due" ? "Due" : "Failed" }),
|
|
150
|
+
inv.href ? /* @__PURE__ */ jsx("a", { href: inv.href, "aria-label": `Download ${inv.id}`, className: "grid h-7 w-7 shrink-0 place-items-center rounded-md text-mute outline-none transition-colors hover:bg-paper hover:text-ink focus-visible:ring-2 focus-visible:ring-brand/50", children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "h-3.5 w-3.5", fill: "none", stroke: "currentColor", strokeWidth: "1.6", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "M8 2.5v8M4.5 7 8 10.5 11.5 7M3 13.5h10" }) }) }) : /* @__PURE__ */ jsx("span", { className: "w-7 shrink-0" })
|
|
151
|
+
] }, inv.id)) }) })
|
|
152
|
+
] })
|
|
153
|
+
] });
|
|
154
|
+
}
|
|
155
|
+
var billing_default = Billing;
|
|
156
|
+
|
|
157
|
+
export {
|
|
158
|
+
Billing,
|
|
159
|
+
billing_default
|
|
160
|
+
};
|
|
@@ -117,6 +117,8 @@ function DataTable({
|
|
|
117
117
|
"input",
|
|
118
118
|
{
|
|
119
119
|
type: "search",
|
|
120
|
+
name: "q",
|
|
121
|
+
autoComplete: "off",
|
|
120
122
|
value: query,
|
|
121
123
|
onChange: (e) => {
|
|
122
124
|
setQuery(e.target.value);
|
|
@@ -124,7 +126,7 @@ function DataTable({
|
|
|
124
126
|
},
|
|
125
127
|
placeholder: searchPlaceholder,
|
|
126
128
|
"aria-label": searchPlaceholder.replace(/…$/, ""),
|
|
127
|
-
className: "h-full min-w-0 flex-1 bg-transparent text-[13.5px] text-ink outline-none placeholder:text-mute [&::-webkit-search-cancel-button]:hidden"
|
|
129
|
+
className: "h-full min-w-0 flex-1 bg-transparent text-[16px] sm:text-[13.5px] text-ink outline-none placeholder:text-mute [&::-webkit-search-cancel-button]:hidden"
|
|
128
130
|
}
|
|
129
131
|
)
|
|
130
132
|
] }),
|
|
@@ -109,7 +109,7 @@ function DayDot({ day }) {
|
|
|
109
109
|
}
|
|
110
110
|
);
|
|
111
111
|
}
|
|
112
|
-
function GroupedSelect({ groups = ZONES, value, defaultValue, onChange, label = "Time zone", searchPlaceholder = "Search city or country", name, disabled, className }) {
|
|
112
|
+
function GroupedSelect({ groups = ZONES, value, defaultValue, onChange, label = "Time zone", searchPlaceholder = "Search city or country\u2026", name, disabled, className }) {
|
|
113
113
|
const all = useMemo(() => groups.flatMap((g) => g.options), [groups]);
|
|
114
114
|
const [inner, setInner] = useState(defaultValue ?? all[0]?.value);
|
|
115
115
|
const current = value ?? inner;
|
|
@@ -249,13 +249,15 @@ function GroupedSelect({ groups = ZONES, value, defaultValue, onChange, label =
|
|
|
249
249
|
},
|
|
250
250
|
onBlur: (e) => !root.current?.contains(e.relatedTarget) && setOpen(false),
|
|
251
251
|
placeholder: searchPlaceholder,
|
|
252
|
+
autoComplete: "off",
|
|
253
|
+
spellCheck: false,
|
|
252
254
|
role: "combobox",
|
|
253
255
|
"aria-expanded": true,
|
|
254
256
|
"aria-autocomplete": "list",
|
|
255
257
|
"aria-controls": `${uid}-list`,
|
|
256
258
|
"aria-activedescendant": flat[active] ? `${uid}-o-${active}` : void 0,
|
|
257
259
|
"aria-label": `Search ${label.toLowerCase()}`,
|
|
258
|
-
className: "h-10 min-w-0 flex-1 bg-transparent text-[13.5px] text-ink outline-none placeholder:text-mute"
|
|
260
|
+
className: "h-10 min-w-0 flex-1 bg-transparent text-[16px] sm:text-[13.5px] text-ink outline-none placeholder:text-mute"
|
|
259
261
|
}
|
|
260
262
|
),
|
|
261
263
|
/* @__PURE__ */ jsx("kbd", { className: "rounded-[5px] bg-paper-2 px-1.5 py-0.5 font-mono text-[10px] text-mute", children: "esc" })
|
|
@@ -104,13 +104,14 @@ function ScrubInput({ label, name, value, onChange, step = 1, min, max, precisio
|
|
|
104
104
|
ref: input,
|
|
105
105
|
"aria-label": name ?? (typeof label === "string" ? label : void 0),
|
|
106
106
|
inputMode: "decimal",
|
|
107
|
+
autoComplete: "off",
|
|
107
108
|
disabled,
|
|
108
109
|
value: draft ?? value.toFixed(precision),
|
|
109
110
|
onChange: (e) => setDraft(e.target.value),
|
|
110
111
|
onFocus: (e) => e.target.select(),
|
|
111
112
|
onBlur: commit,
|
|
112
113
|
onKeyDown: onKey,
|
|
113
|
-
className: "h-full min-w-0 flex-1 bg-transparent pr-1.5 font-mono text-[11.5px] tabular-nums outline-none"
|
|
114
|
+
className: "h-full min-w-0 flex-1 bg-transparent pr-1.5 font-mono text-[16px] sm:text-[11.5px] tabular-nums outline-none"
|
|
114
115
|
}
|
|
115
116
|
),
|
|
116
117
|
unit && /* @__PURE__ */ jsx("span", { className: "shrink-0 pr-2 text-[11px] text-mute", children: unit })
|
|
@@ -150,7 +151,8 @@ function ColorField({ value, onChange, name = "Colour", disabled }) {
|
|
|
150
151
|
}
|
|
151
152
|
},
|
|
152
153
|
spellCheck: false,
|
|
153
|
-
|
|
154
|
+
autoComplete: "off",
|
|
155
|
+
className: "h-full min-w-0 flex-1 bg-transparent px-2 font-mono text-[16px] sm:text-[11.5px] uppercase outline-none"
|
|
154
156
|
}
|
|
155
157
|
)
|
|
156
158
|
] });
|
|
@@ -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"),
|
|
@@ -23,7 +23,7 @@ function OtpInput({
|
|
|
23
23
|
autoFocus,
|
|
24
24
|
groupSize,
|
|
25
25
|
label = "One-time code",
|
|
26
|
-
name,
|
|
26
|
+
name = "code",
|
|
27
27
|
className
|
|
28
28
|
}) {
|
|
29
29
|
const id = useId();
|
|
@@ -116,7 +116,7 @@ function OtpInput({
|
|
|
116
116
|
inputMode: digitsOnly ? "numeric" : "text",
|
|
117
117
|
pattern: digitsOnly ? "[0-9]*" : void 0,
|
|
118
118
|
autoComplete: "one-time-code",
|
|
119
|
-
autoCapitalize: digitsOnly ?
|
|
119
|
+
autoCapitalize: digitsOnly ? "none" : "characters",
|
|
120
120
|
spellCheck: false,
|
|
121
121
|
"aria-label": label,
|
|
122
122
|
"aria-invalid": error || void 0,
|
|
@@ -42,6 +42,7 @@ function PromptBox({ models, defaultModel, placeholder = "Ask anything\u2026", m
|
|
|
42
42
|
"textarea",
|
|
43
43
|
{
|
|
44
44
|
ref: area,
|
|
45
|
+
name: "prompt",
|
|
45
46
|
rows: 2,
|
|
46
47
|
value: text,
|
|
47
48
|
onChange: (e) => setText(e.target.value),
|
|
@@ -54,7 +55,7 @@ function PromptBox({ models, defaultModel, placeholder = "Ask anything\u2026", m
|
|
|
54
55
|
placeholder,
|
|
55
56
|
"aria-label": "Prompt",
|
|
56
57
|
readOnly: busy,
|
|
57
|
-
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")
|
|
58
|
+
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")
|
|
58
59
|
}
|
|
59
60
|
),
|
|
60
61
|
/* @__PURE__ */ jsxs("div", { className: "mt-2 flex items-center justify-between gap-2", children: [
|
|
@@ -71,7 +72,7 @@ function PromptBox({ models, defaultModel, placeholder = "Ask anything\u2026", m
|
|
|
71
72
|
]
|
|
72
73
|
}
|
|
73
74
|
),
|
|
74
|
-
/* @__PURE__ */ jsx(Menu.Portal, { children: /* @__PURE__ */ jsx(Menu.Positioner, { side: "top", align: "start", sideOffset: 8, className: "z-50 outline-none", children: /* @__PURE__ */ jsx(Menu.Popup, { className: "min-w-[220px] will-change-[transform,opacity] origin-[var(--transform-origin)] rounded-xl bg-paper p-1 text-ink outline-none shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent),0_16px_40px_-16px_rgb(0_0_0/0.3)] transition-[opacity,transform] duration-[220ms] ease-[cubic-bezier(.16,1,.3,1)] data-[starting-style]:opacity-0 data-[starting-style]:[transform:translateY(4px)_scale(.97)] data-[ending-style]:opacity-0 data-[ending-style]:scale-[.98] data-[ending-style]:duration-[120ms] data-[ending-style]:ease-
|
|
75
|
+
/* @__PURE__ */ jsx(Menu.Portal, { children: /* @__PURE__ */ jsx(Menu.Positioner, { side: "top", align: "start", sideOffset: 8, className: "z-50 outline-none", children: /* @__PURE__ */ jsx(Menu.Popup, { className: "min-w-[220px] will-change-[transform,opacity] origin-[var(--transform-origin)] rounded-xl bg-paper p-1 text-ink outline-none shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent),0_16px_40px_-16px_rgb(0_0_0/0.3)] transition-[opacity,transform] duration-[220ms] ease-[cubic-bezier(.16,1,.3,1)] data-[starting-style]:opacity-0 data-[starting-style]:[transform:translateY(4px)_scale(.97)] data-[ending-style]:opacity-0 data-[ending-style]:scale-[.98] data-[ending-style]:duration-[120ms] data-[ending-style]:ease-[cubic-bezier(.16,1,.3,1)] motion-reduce:!transition-none", children: /* @__PURE__ */ jsx(Menu.RadioGroup, { value: model, onValueChange: (v) => setModel(String(v)), children: models.map((m) => /* @__PURE__ */ jsxs(
|
|
75
76
|
Menu.RadioItem,
|
|
76
77
|
{
|
|
77
78
|
value: m.id,
|
package/dist/color-picker.js
CHANGED
package/dist/combo-lock.js
CHANGED
package/dist/combobox-aui-046.js
CHANGED
package/dist/combobox-aui-047.js
CHANGED
package/dist/combobox.js
CHANGED
package/dist/command-palette.js
CHANGED
package/dist/comments.js
CHANGED
package/dist/context-menu.js
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
CookieConsent,
|
|
4
|
+
DEFAULT_CONSENT_CATEGORIES,
|
|
5
|
+
cookie_consent_default
|
|
6
|
+
} from "./chunk-BKHH2CJA.js";
|
|
7
|
+
import "./chunk-DK2BM32V.js";
|
|
8
|
+
import "./chunk-ZWBJUJTR.js";
|
|
9
|
+
export {
|
|
10
|
+
CookieConsent,
|
|
11
|
+
DEFAULT_CONSENT_CATEGORIES,
|
|
12
|
+
cookie_consent_default as default
|
|
13
|
+
};
|
package/dist/data-table.js
CHANGED
package/dist/dialog.js
CHANGED
package/dist/dropdown-menu.js
CHANGED
package/dist/field.js
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
FileKindIcon,
|
|
4
|
+
FileManager,
|
|
5
|
+
file_manager_default,
|
|
6
|
+
formatBytes
|
|
7
|
+
} from "./chunk-PIE76JKF.js";
|
|
8
|
+
import "./chunk-DUGKLVQJ.js";
|
|
9
|
+
import "./chunk-LS6CFF6X.js";
|
|
10
|
+
import "./chunk-IS2VTYDA.js";
|
|
11
|
+
import "./chunk-PZJYDIJI.js";
|
|
12
|
+
import "./chunk-LBXIMJFU.js";
|
|
13
|
+
import "./chunk-ZWBJUJTR.js";
|
|
14
|
+
export {
|
|
15
|
+
FileKindIcon,
|
|
16
|
+
FileManager,
|
|
17
|
+
file_manager_default as default,
|
|
18
|
+
formatBytes
|
|
19
|
+
};
|
package/dist/footer-aui-027.js
CHANGED
package/dist/footer-aui-028.js
CHANGED
package/dist/footer.js
CHANGED
package/dist/hover-card.js
CHANGED
package/dist/inbox.d.ts
ADDED