asta-ui 0.9.3 → 0.9.5
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/css/runtime/core.css
CHANGED
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
opacity: 0;
|
|
24
24
|
transform: translateY(12px) scale(0.96);
|
|
25
25
|
transition:
|
|
26
|
-
opacity 0.
|
|
27
|
-
transform 0.32s cubic-bezier(0.
|
|
26
|
+
opacity 0.2s ease-out,
|
|
27
|
+
transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
|
|
28
28
|
overlay 0.32s allow-discrete,
|
|
29
29
|
display 0.32s allow-discrete;
|
|
30
30
|
}
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
background: rgb(10 10 10 / 0.38);
|
|
48
48
|
opacity: 0;
|
|
49
49
|
transition:
|
|
50
|
-
opacity 0.
|
|
50
|
+
opacity 0.2s ease-out,
|
|
51
51
|
overlay 0.32s allow-discrete,
|
|
52
52
|
display 0.32s allow-discrete;
|
|
53
53
|
}
|
|
@@ -78,8 +78,8 @@
|
|
|
78
78
|
transform: translateY(-4px) scale(0.97);
|
|
79
79
|
transform-origin: top;
|
|
80
80
|
transition:
|
|
81
|
-
opacity 0.14s ease-
|
|
82
|
-
transform 0.16s
|
|
81
|
+
opacity 0.14s ease-out,
|
|
82
|
+
transform 0.16s cubic-bezier(0.16, 1, 0.3, 1);
|
|
83
83
|
}
|
|
84
84
|
[data-asta-menu][data-open] > [role="menu"] {
|
|
85
85
|
opacity: 1;
|
package/css/runtime/data.css
CHANGED
|
@@ -79,8 +79,8 @@
|
|
|
79
79
|
transform: translateY(-4px) scale(0.98);
|
|
80
80
|
transform-origin: top right;
|
|
81
81
|
transition:
|
|
82
|
-
opacity 0.14s ease-
|
|
83
|
-
transform 0.16s
|
|
82
|
+
opacity 0.14s ease-out,
|
|
83
|
+
transform 0.16s cubic-bezier(0.16, 1, 0.3, 1);
|
|
84
84
|
}
|
|
85
85
|
[data-asta-nc][data-align="start"] [data-asta-nc-panel] { transform-origin: top left; }
|
|
86
86
|
[data-asta-nc][data-open] [data-asta-nc-panel] {
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/* Modules: countdown, phone input, sortable list, cookie consent, inbox, testimonials.
|
|
2
|
+
* Only what Tailwind classes can't express. Motion is transform and opacity only, with the kit's easing. */
|
|
3
|
+
|
|
4
|
+
@keyframes asta-tm-left { to { transform: translateX(-50%) } }
|
|
5
|
+
@keyframes asta-tm-right { from { transform: translateX(-50%) } to { transform: none } }
|
|
6
|
+
@keyframes asta-mod-roll { from { opacity: 0; transform: translateY(45%) } }
|
|
7
|
+
@keyframes asta-mod-in { from { opacity: 0; transform: translateY(6px) } }
|
|
8
|
+
|
|
9
|
+
/* ---------- Countdown: the digit that changed rolls in ---------- */
|
|
10
|
+
|
|
11
|
+
.asta-countdown-value[data-tick] {
|
|
12
|
+
animation: asta-mod-roll 0.45s cubic-bezier(0.16, 1, 0.3, 1);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* ---------- Cookie consent: views slide in ---------- */
|
|
16
|
+
|
|
17
|
+
.asta-consent[data-view="custom"] .asta-consent-custom,
|
|
18
|
+
.asta-consent[data-view="summary"] .asta-consent-summary {
|
|
19
|
+
animation: asta-mod-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* ---------- Inbox: the opened message rises in ---------- */
|
|
23
|
+
|
|
24
|
+
.asta-inbox-pane[data-fresh] {
|
|
25
|
+
animation: asta-mod-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/* ---------- Testimonials: still grid for reduced motion ---------- */
|
|
29
|
+
|
|
30
|
+
@media (prefers-reduced-motion: reduce) {
|
|
31
|
+
.asta-countdown-value[data-tick],
|
|
32
|
+
.asta-consent-custom,
|
|
33
|
+
.asta-consent-summary,
|
|
34
|
+
.asta-inbox-pane[data-fresh] {
|
|
35
|
+
animation: none !important;
|
|
36
|
+
}
|
|
37
|
+
.asta-testimonials-row {
|
|
38
|
+
mask-image: none !important;
|
|
39
|
+
}
|
|
40
|
+
.asta-testimonials-track {
|
|
41
|
+
animation: none !important;
|
|
42
|
+
width: auto !important;
|
|
43
|
+
flex-wrap: wrap;
|
|
44
|
+
row-gap: 12px;
|
|
45
|
+
}
|
|
46
|
+
.asta-testimonials-track > li[aria-hidden="true"] {
|
|
47
|
+
display: none;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
/* Modules: countdown, phone input, sortable list, cookie consent, inbox.
|
|
2
|
+
* Event delegation on document, so markup swapped in by htmx works without re-init.
|
|
3
|
+
* Countdown [data-asta-countdown="ISO date"] ticks [data-unit=d|h|m|s] every second, rests off screen,
|
|
4
|
+
* sets data-done and fires "asta:countdown-done" at zero
|
|
5
|
+
* Phone [data-asta-phone]: formats digits with the selected option's data-mask, fills name="*_e164",
|
|
6
|
+
* sets data-valid when complete
|
|
7
|
+
* Sortable [data-asta-sortable]: drag a .asta-sortable-handle, or Space to grab, arrows to move, Space to drop,
|
|
8
|
+
* Esc to cancel. Fires "asta:reorder" with detail.order (data-id values)
|
|
9
|
+
* Consent [data-asta-consent="key"]: [data-asta-consent-accept|reject|save|customize|back], remembers the choice
|
|
10
|
+
* in localStorage and fires "asta:consent" with detail { necessary, ... }
|
|
11
|
+
* Inbox [data-asta-inbox]: a row click moves aria-current, clears data-unread and opens the message on narrow
|
|
12
|
+
* containers; [data-asta-inbox-back] returns to the list
|
|
13
|
+
*/
|
|
14
|
+
(() => {
|
|
15
|
+
if (window.astaModules) return;
|
|
16
|
+
window.astaModules = true;
|
|
17
|
+
const reduce = () => matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
18
|
+
const el = (e) => (e.target instanceof Element ? e.target : null);
|
|
19
|
+
const fire = (node, name, detail) => node.dispatchEvent(new CustomEvent(name, { bubbles: true, detail }));
|
|
20
|
+
|
|
21
|
+
/* ---------- Countdown ---------- */
|
|
22
|
+
|
|
23
|
+
const pad = (n) => String(n).padStart(2, "0");
|
|
24
|
+
const seen = new WeakSet();
|
|
25
|
+
const onScreen = new Set();
|
|
26
|
+
const io = "IntersectionObserver" in window ? new IntersectionObserver((es) => es.forEach((e) => onScreen[e.isIntersecting ? "add" : "delete"](e.target))) : null;
|
|
27
|
+
function paint(cd) {
|
|
28
|
+
const end = Date.parse(cd.getAttribute("data-asta-countdown"));
|
|
29
|
+
if (Number.isNaN(end)) return;
|
|
30
|
+
let s = Math.max(0, Math.floor((end - Date.now()) / 1000));
|
|
31
|
+
const units = { d: Math.floor(s / 86400), h: Math.floor((s % 86400) / 3600), m: Math.floor((s % 3600) / 60), s: s % 60 };
|
|
32
|
+
// Without a days slot, hours carry the days.
|
|
33
|
+
if (!cd.querySelector('[data-unit="d"]')) units.h += units.d * 24;
|
|
34
|
+
cd.querySelectorAll("[data-unit]").forEach((v) => {
|
|
35
|
+
const next = pad(units[v.getAttribute("data-unit")] ?? 0);
|
|
36
|
+
if (v.textContent === next) return;
|
|
37
|
+
v.textContent = next;
|
|
38
|
+
v.removeAttribute("data-tick");
|
|
39
|
+
void v.offsetWidth;
|
|
40
|
+
v.setAttribute("data-tick", "");
|
|
41
|
+
});
|
|
42
|
+
if (s === 0 && !cd.hasAttribute("data-done")) {
|
|
43
|
+
cd.setAttribute("data-done", "");
|
|
44
|
+
fire(cd, "asta:countdown-done");
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
function scan() {
|
|
48
|
+
document.querySelectorAll("[data-asta-countdown]").forEach((cd) => {
|
|
49
|
+
if (!seen.has(cd)) {
|
|
50
|
+
seen.add(cd);
|
|
51
|
+
if (io) io.observe(cd);
|
|
52
|
+
else onScreen.add(cd);
|
|
53
|
+
paint(cd);
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
onScreen.forEach((cd) => {
|
|
57
|
+
if (cd.isConnected) return paint(cd);
|
|
58
|
+
onScreen.delete(cd);
|
|
59
|
+
io?.unobserve(cd);
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
let timer = 0;
|
|
63
|
+
const run = () => {
|
|
64
|
+
clearInterval(timer);
|
|
65
|
+
if (!document.hidden) timer = setInterval(scan, 1000);
|
|
66
|
+
scan();
|
|
67
|
+
};
|
|
68
|
+
document.addEventListener("visibilitychange", run);
|
|
69
|
+
if (document.readyState === "loading") document.addEventListener("DOMContentLoaded", run, { once: true });
|
|
70
|
+
else run();
|
|
71
|
+
|
|
72
|
+
/* ---------- Phone input ---------- */
|
|
73
|
+
|
|
74
|
+
function format(digits, mask) {
|
|
75
|
+
let out = "";
|
|
76
|
+
let i = 0;
|
|
77
|
+
for (const c of mask) {
|
|
78
|
+
if (i >= digits.length) break;
|
|
79
|
+
out += c === "#" ? digits[i++] : c;
|
|
80
|
+
}
|
|
81
|
+
return out + digits.slice(i);
|
|
82
|
+
}
|
|
83
|
+
function phone(root) {
|
|
84
|
+
const sel = root.querySelector(".asta-phone-country");
|
|
85
|
+
const input = root.querySelector(".asta-phone-input");
|
|
86
|
+
if (!sel || !input) return;
|
|
87
|
+
const opt = sel.selectedOptions[0];
|
|
88
|
+
const mask = opt?.getAttribute("data-mask") || "";
|
|
89
|
+
const max = (mask.match(/#/g) || []).length;
|
|
90
|
+
const digits = input.value.replace(/\D/g, "").slice(0, max || 15);
|
|
91
|
+
input.value = format(digits, mask);
|
|
92
|
+
const valid = max > 0 && digits.length === max;
|
|
93
|
+
root.toggleAttribute("data-valid", valid);
|
|
94
|
+
const hidden = root.querySelector('input[type="hidden"][name$="_e164"]');
|
|
95
|
+
if (hidden) hidden.value = valid ? `${sel.value}${digits}` : "";
|
|
96
|
+
}
|
|
97
|
+
document.addEventListener("input", (e) => {
|
|
98
|
+
const root = el(e)?.closest("[data-asta-phone]");
|
|
99
|
+
if (root) phone(root);
|
|
100
|
+
});
|
|
101
|
+
document.addEventListener("change", (e) => {
|
|
102
|
+
const root = el(e)?.closest("[data-asta-phone]");
|
|
103
|
+
if (root) phone(root);
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
/* ---------- Sortable list ---------- */
|
|
107
|
+
|
|
108
|
+
const order = (list) => [...list.querySelectorAll(":scope > .asta-sortable-item")].map((i) => i.getAttribute("data-id"));
|
|
109
|
+
function flip(list, mutate) {
|
|
110
|
+
const items = [...list.children];
|
|
111
|
+
const before = new Map(items.map((i) => [i, i.getBoundingClientRect().top]));
|
|
112
|
+
mutate();
|
|
113
|
+
if (reduce()) return;
|
|
114
|
+
items.forEach((i) => {
|
|
115
|
+
const d = before.get(i) - i.getBoundingClientRect().top;
|
|
116
|
+
if (d) i.animate([{ transform: `translateY(${d}px)` }, { transform: "none" }], { duration: 260, easing: "cubic-bezier(.16,1,.3,1)" });
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
let drag = null;
|
|
120
|
+
document.addEventListener("pointerdown", (e) => {
|
|
121
|
+
const handle = el(e)?.closest("[data-asta-sortable] .asta-sortable-handle");
|
|
122
|
+
if (!handle || e.button !== 0) return;
|
|
123
|
+
const item = handle.closest(".asta-sortable-item");
|
|
124
|
+
const list = item.parentElement;
|
|
125
|
+
e.preventDefault();
|
|
126
|
+
handle.setPointerCapture(e.pointerId);
|
|
127
|
+
item.setAttribute("data-dragging", "");
|
|
128
|
+
drag = { item, list, handle, y: e.clientY, start: order(list).join() };
|
|
129
|
+
});
|
|
130
|
+
document.addEventListener("pointermove", (e) => {
|
|
131
|
+
if (!drag) return;
|
|
132
|
+
const { item, list } = drag;
|
|
133
|
+
const prev = item.previousElementSibling;
|
|
134
|
+
const next = item.nextElementSibling;
|
|
135
|
+
if (prev && e.clientY < prev.getBoundingClientRect().top + prev.offsetHeight / 2) flip(list, () => list.insertBefore(item, prev));
|
|
136
|
+
else if (next && e.clientY > next.getBoundingClientRect().top + next.offsetHeight / 2) flip(list, () => list.insertBefore(next, item));
|
|
137
|
+
});
|
|
138
|
+
const drop = () => {
|
|
139
|
+
if (!drag) return;
|
|
140
|
+
const { item, list, start } = drag;
|
|
141
|
+
item.removeAttribute("data-dragging");
|
|
142
|
+
drag = null;
|
|
143
|
+
if (order(list).join() !== start) fire(list, "asta:reorder", { order: order(list) });
|
|
144
|
+
};
|
|
145
|
+
document.addEventListener("pointerup", drop);
|
|
146
|
+
document.addEventListener("pointercancel", drop);
|
|
147
|
+
document.addEventListener("keydown", (e) => {
|
|
148
|
+
const handle = el(e)?.closest("[data-asta-sortable] .asta-sortable-handle");
|
|
149
|
+
if (!handle) return;
|
|
150
|
+
const item = handle.closest(".asta-sortable-item");
|
|
151
|
+
const list = item.parentElement;
|
|
152
|
+
const grabbed = item.hasAttribute("data-dragging");
|
|
153
|
+
if (e.key === " " || e.key === "Enter") {
|
|
154
|
+
e.preventDefault();
|
|
155
|
+
if (grabbed) {
|
|
156
|
+
item.removeAttribute("data-dragging");
|
|
157
|
+
if (order(list).join() !== list.dataset.astaStart) fire(list, "asta:reorder", { order: order(list) });
|
|
158
|
+
} else {
|
|
159
|
+
item.setAttribute("data-dragging", "");
|
|
160
|
+
list.dataset.astaStart = order(list).join();
|
|
161
|
+
}
|
|
162
|
+
} else if (grabbed && (e.key === "ArrowUp" || e.key === "ArrowDown")) {
|
|
163
|
+
e.preventDefault();
|
|
164
|
+
const to = e.key === "ArrowUp" ? item.previousElementSibling : item.nextElementSibling?.nextElementSibling;
|
|
165
|
+
if (e.key === "ArrowDown" && !item.nextElementSibling) return;
|
|
166
|
+
flip(list, () => list.insertBefore(item, to ?? null));
|
|
167
|
+
handle.focus();
|
|
168
|
+
} else if (grabbed && e.key === "Escape") {
|
|
169
|
+
const ids = (list.dataset.astaStart || "").split(",");
|
|
170
|
+
flip(list, () => ids.forEach((id) => list.appendChild(list.querySelector(`:scope > [data-id="${id}"]`))));
|
|
171
|
+
item.removeAttribute("data-dragging");
|
|
172
|
+
handle.focus();
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
|
|
176
|
+
/* ---------- Cookie consent ---------- */
|
|
177
|
+
|
|
178
|
+
const store = {
|
|
179
|
+
get(k) {
|
|
180
|
+
try {
|
|
181
|
+
return JSON.parse(localStorage.getItem(k) || "null");
|
|
182
|
+
} catch {
|
|
183
|
+
return null;
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
set(k, v) {
|
|
187
|
+
try {
|
|
188
|
+
localStorage.setItem(k, JSON.stringify(v));
|
|
189
|
+
} catch {}
|
|
190
|
+
},
|
|
191
|
+
};
|
|
192
|
+
function consentInit() {
|
|
193
|
+
document.querySelectorAll("[data-asta-consent]:not([data-state])").forEach((b) => {
|
|
194
|
+
b.setAttribute("data-state", store.get(b.getAttribute("data-asta-consent") || "consent") ? "closed" : "open");
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
if (document.readyState === "loading") document.addEventListener("DOMContentLoaded", consentInit, { once: true });
|
|
198
|
+
else consentInit();
|
|
199
|
+
document.addEventListener("htmx:afterSettle", consentInit);
|
|
200
|
+
document.addEventListener("click", (e) => {
|
|
201
|
+
const t = el(e);
|
|
202
|
+
const box = t?.closest("[data-asta-consent]");
|
|
203
|
+
if (!box) return;
|
|
204
|
+
const btn = t.closest("[data-asta-consent-accept],[data-asta-consent-reject],[data-asta-consent-save],[data-asta-consent-customize],[data-asta-consent-back]");
|
|
205
|
+
if (!btn) return;
|
|
206
|
+
if (btn.hasAttribute("data-asta-consent-customize") || btn.hasAttribute("data-asta-consent-back")) {
|
|
207
|
+
e.preventDefault();
|
|
208
|
+
box.setAttribute("data-view", btn.hasAttribute("data-asta-consent-back") ? "summary" : "custom");
|
|
209
|
+
return;
|
|
210
|
+
}
|
|
211
|
+
e.preventDefault();
|
|
212
|
+
const boxes = [...box.querySelectorAll('input[type="checkbox"][name]')];
|
|
213
|
+
const all = btn.hasAttribute("data-asta-consent-accept");
|
|
214
|
+
const none = btn.hasAttribute("data-asta-consent-reject");
|
|
215
|
+
const choice = { necessary: true };
|
|
216
|
+
boxes.forEach((c) => (choice[c.name] = c.disabled ? c.checked : all ? true : none ? false : c.checked));
|
|
217
|
+
store.set(box.getAttribute("data-asta-consent") || "consent", choice);
|
|
218
|
+
box.setAttribute("data-state", "closed");
|
|
219
|
+
fire(box, "asta:consent", choice);
|
|
220
|
+
});
|
|
221
|
+
|
|
222
|
+
/* ---------- Inbox ---------- */
|
|
223
|
+
|
|
224
|
+
document.addEventListener("click", (e) => {
|
|
225
|
+
const t = el(e);
|
|
226
|
+
const inbox = t?.closest("[data-asta-inbox]");
|
|
227
|
+
if (!inbox) return;
|
|
228
|
+
if (t.closest("[data-asta-inbox-back]")) {
|
|
229
|
+
inbox.setAttribute("data-view", "list");
|
|
230
|
+
return;
|
|
231
|
+
}
|
|
232
|
+
const row = t.closest(".asta-inbox-row");
|
|
233
|
+
if (!row) return;
|
|
234
|
+
inbox.querySelectorAll('.asta-inbox-row[aria-current="true"]').forEach((r) => r.removeAttribute("aria-current"));
|
|
235
|
+
row.setAttribute("aria-current", "true");
|
|
236
|
+
row.removeAttribute("data-unread");
|
|
237
|
+
inbox.setAttribute("data-view", "message");
|
|
238
|
+
const pane = inbox.querySelector(".asta-inbox-pane");
|
|
239
|
+
if (pane) {
|
|
240
|
+
pane.removeAttribute("data-fresh");
|
|
241
|
+
void pane.offsetWidth;
|
|
242
|
+
pane.setAttribute("data-fresh", "");
|
|
243
|
+
}
|
|
244
|
+
});
|
|
245
|
+
})();
|
package/css/runtime/overlays.css
CHANGED
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
opacity: 0;
|
|
17
17
|
transform: translate(var(--asta-nx, 0px), var(--asta-ny, -4px)) scale(0.96);
|
|
18
18
|
transition:
|
|
19
|
-
opacity 0.14s ease-
|
|
20
|
-
transform 0.16s
|
|
19
|
+
opacity 0.14s ease-out,
|
|
20
|
+
transform 0.16s cubic-bezier(0.16, 1, 0.3, 1),
|
|
21
21
|
overlay 0.16s allow-discrete,
|
|
22
22
|
display 0.16s allow-discrete;
|
|
23
23
|
}
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
.asta-dialog.asta-drawer {
|
|
53
53
|
transform: translateX(calc(100% + 16px));
|
|
54
54
|
transition:
|
|
55
|
-
transform 0.3s cubic-bezier(0.
|
|
55
|
+
transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
|
|
56
56
|
overlay 0.32s allow-discrete,
|
|
57
57
|
display 0.32s allow-discrete;
|
|
58
58
|
}
|
|
@@ -75,11 +75,24 @@
|
|
|
75
75
|
}
|
|
76
76
|
:root:has(dialog.asta-drawer[open]) { overflow: hidden; }
|
|
77
77
|
|
|
78
|
-
/* Command palette
|
|
79
|
-
.asta-dialog.asta-cmd
|
|
80
|
-
.asta-dialog.asta-cmd[open]:not([data-closing]) {
|
|
78
|
+
/* Command palette: opened from the keyboard many times a day, so it only fades, in 120ms. No movement. */
|
|
79
|
+
.asta-dialog.asta-cmd,
|
|
80
|
+
.asta-dialog.asta-cmd[open]:not([data-closing]) {
|
|
81
|
+
transform: none;
|
|
82
|
+
transition:
|
|
83
|
+
opacity 0.12s ease-out,
|
|
84
|
+
overlay 0.12s allow-discrete,
|
|
85
|
+
display 0.12s allow-discrete;
|
|
86
|
+
}
|
|
87
|
+
.asta-dialog.asta-cmd::backdrop,
|
|
88
|
+
.asta-dialog.asta-cmd[open]:not([data-closing])::backdrop {
|
|
89
|
+
transition:
|
|
90
|
+
opacity 0.12s ease-out,
|
|
91
|
+
overlay 0.12s allow-discrete,
|
|
92
|
+
display 0.12s allow-discrete;
|
|
93
|
+
}
|
|
81
94
|
@starting-style {
|
|
82
|
-
.asta-dialog.asta-cmd[open] { transform:
|
|
95
|
+
.asta-dialog.asta-cmd[open] { transform: none; }
|
|
83
96
|
}
|
|
84
97
|
|
|
85
98
|
/* Navbar: the background scales between panel sizes, new content slides in from the side you moved toward. */
|
|
@@ -96,10 +109,10 @@ details[open] > .asta-nav-sec { animation: asta-nav-rise 0.3s cubic-bezier(0.16,
|
|
|
96
109
|
[data-asta-announce-msg][data-state="cur"],
|
|
97
110
|
[data-asta-announce-msg][data-state="in"] { opacity: 1; pointer-events: auto; }
|
|
98
111
|
[data-asta-announce-msg][data-state="in"] { animation: asta-announce-in 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
|
|
99
|
-
[data-asta-announce-msg][data-state="out"] { animation: asta-announce-out 0.
|
|
112
|
+
[data-asta-announce-msg][data-state="out"] { animation: asta-announce-out 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
|
|
100
113
|
[data-asta-announce][data-state="closed"] {
|
|
101
114
|
pointer-events: none;
|
|
102
|
-
animation: asta-announce-close 0.36s cubic-bezier(0.
|
|
115
|
+
animation: asta-announce-close 0.36s cubic-bezier(0.16, 1, 0.3, 1) forwards;
|
|
103
116
|
}
|
|
104
117
|
|
|
105
118
|
/* Stepper: the next panel comes from the side you're heading. */
|
package/css/src/blocks.css
CHANGED
|
@@ -428,7 +428,7 @@
|
|
|
428
428
|
@apply focus-within:shadow-[inset_0_0_0_1px_var(--brand),0_0_0_3px_color-mix(in_srgb,var(--brand)_14%,transparent)];
|
|
429
429
|
}
|
|
430
430
|
.asta-ai-chat-input {
|
|
431
|
-
@apply block max-h-36 min-h-[36px] flex-1 resize-none bg-transparent py-2 text-[14px] leading-relaxed text-ink outline-none [field-sizing:content] placeholder:text-mute;
|
|
431
|
+
@apply block max-h-36 min-h-[36px] flex-1 resize-none bg-transparent py-2 text-[16px] sm:text-[14px] leading-relaxed text-ink outline-none [field-sizing:content] placeholder:text-mute;
|
|
432
432
|
}
|
|
433
433
|
.asta-ai-chat-send {
|
|
434
434
|
@apply relative grid h-9 w-9 shrink-0 place-items-center rounded-lg bg-brand text-white outline-none transition-[opacity,transform] duration-200 active:scale-95 disabled:opacity-35;
|
|
@@ -697,7 +697,7 @@
|
|
|
697
697
|
@apply grid h-full w-6 shrink-0 cursor-ew-resize touch-none select-none place-items-center text-[11px] text-mute [&>svg]:h-3.5 [&>svg]:w-3.5;
|
|
698
698
|
}
|
|
699
699
|
.asta-prop-input {
|
|
700
|
-
@apply h-full min-w-0 flex-1 bg-transparent pr-1.5 font-mono text-[11.5px] tabular-nums outline-none;
|
|
700
|
+
@apply h-full min-w-0 flex-1 bg-transparent pr-1.5 font-mono text-[16px] sm:text-[11.5px] tabular-nums outline-none;
|
|
701
701
|
}
|
|
702
702
|
.asta-prop-unit {
|
|
703
703
|
@apply shrink-0 pr-2 text-[11px] text-mute;
|
|
@@ -709,7 +709,7 @@
|
|
|
709
709
|
}
|
|
710
710
|
}
|
|
711
711
|
.asta-prop-hex {
|
|
712
|
-
@apply h-full min-w-0 flex-1 bg-transparent px-2 font-mono text-[11.5px] uppercase outline-none;
|
|
712
|
+
@apply h-full min-w-0 flex-1 bg-transparent px-2 font-mono text-[16px] sm:text-[11.5px] uppercase outline-none;
|
|
713
713
|
}
|
|
714
714
|
|
|
715
715
|
/* ---- Settings panel ----
|
package/css/src/core.css
CHANGED
|
@@ -82,16 +82,16 @@
|
|
|
82
82
|
* input. A disabled input dims the whole field. */
|
|
83
83
|
.asta-input {
|
|
84
84
|
@apply relative flex w-full items-center bg-paper text-ink transition-shadow duration-200;
|
|
85
|
-
@apply h-10 rounded-lg px-3 text-[14px] gap-2.5;
|
|
85
|
+
@apply h-10 rounded-lg px-3 text-[16px] sm:text-[14px] gap-2.5;
|
|
86
86
|
@apply shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_14%,transparent)] hover:shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_24%,transparent)];
|
|
87
87
|
@apply focus-within:!shadow-[inset_0_0_0_1px_var(--brand),0_0_0_4px_color-mix(in_srgb,var(--brand)_16%,transparent)];
|
|
88
88
|
@apply has-[input:disabled]:pointer-events-none has-[input:disabled]:opacity-50;
|
|
89
89
|
}
|
|
90
90
|
.asta-input-sm {
|
|
91
|
-
@apply h-8 rounded-md px-2.5 text-[13px] gap-2;
|
|
91
|
+
@apply h-8 rounded-md px-2.5 text-[16px] sm:text-[13px] gap-2;
|
|
92
92
|
}
|
|
93
93
|
.asta-input-lg {
|
|
94
|
-
@apply h-12 rounded-[9px] px-4 text-[15px] gap-3;
|
|
94
|
+
@apply h-12 rounded-[9px] px-4 text-[16px] sm:text-[15px] gap-3;
|
|
95
95
|
}
|
|
96
96
|
.asta-input-error,
|
|
97
97
|
.asta-input:has(> input[aria-invalid="true"]) {
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
@apply shadow-[inset_0_0_0_1px_#30a46c] hover:shadow-[inset_0_0_0_1px_#30a46c] focus-within:!shadow-[inset_0_0_0_1px_#30a46c,0_0_0_4px_rgb(48_164_108/0.16)];
|
|
102
102
|
}
|
|
103
103
|
.asta-input-control {
|
|
104
|
-
@apply h-full min-w-0 flex-1 bg-transparent outline-none placeholder:text-mute;
|
|
104
|
+
@apply h-full min-w-0 flex-1 bg-transparent outline-none placeholder:text-mute [&::-webkit-search-cancel-button]:hidden;
|
|
105
105
|
}
|
|
106
106
|
.asta-input-icon {
|
|
107
107
|
@apply flex shrink-0 text-mute transition-colors [&_svg]:h-4 [&_svg]:w-4;
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
@apply shadow-[inset_0_0_0_1px_#e5484d] hover:shadow-[inset_0_0_0_1px_#e5484d] focus-within:!shadow-[inset_0_0_0_1px_#e5484d,0_0_0_4px_rgb(229_72_77/0.16)];
|
|
164
164
|
}
|
|
165
165
|
.asta-textarea-control {
|
|
166
|
-
@apply block w-full resize-none bg-transparent px-3.5 py-3 text-[14px] leading-[1.55] outline-none placeholder:text-mute disabled:cursor-not-allowed;
|
|
166
|
+
@apply block w-full resize-none bg-transparent px-3.5 py-3 text-[16px] sm:text-[14px] leading-[1.55] outline-none placeholder:text-mute disabled:cursor-not-allowed;
|
|
167
167
|
}
|
|
168
168
|
.asta-textarea-auto {
|
|
169
169
|
@apply [field-sizing:content] overflow-y-auto min-h-[calc(3lh+24px)] max-h-[calc(10lh+24px)];
|
|
@@ -179,11 +179,11 @@
|
|
|
179
179
|
@apply w-full cursor-pointer appearance-none truncate bg-paper text-ink outline-none transition-shadow duration-200;
|
|
180
180
|
@apply disabled:cursor-not-allowed disabled:opacity-45;
|
|
181
181
|
@apply [&:has(option[value='']:checked)]:text-mute [&_option]:bg-paper [&_option]:text-ink;
|
|
182
|
-
@apply h-10 rounded-lg pl-3 pr-9 text-[14px];
|
|
182
|
+
@apply h-10 rounded-lg pl-3 pr-9 text-[16px] sm:text-[14px];
|
|
183
183
|
@apply shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_14%,transparent)] hover:shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_24%,transparent)];
|
|
184
184
|
@apply focus:!shadow-[inset_0_0_0_1px_var(--brand),0_0_0_3px_color-mix(in_srgb,var(--brand)_18%,transparent)];
|
|
185
185
|
.asta-select-sm > & {
|
|
186
|
-
@apply h-8 rounded-md pl-2.5 pr-8 text-[13px];
|
|
186
|
+
@apply h-8 rounded-md pl-2.5 pr-8 text-[16px] sm:text-[13px];
|
|
187
187
|
}
|
|
188
188
|
.asta-select-error > &,
|
|
189
189
|
&[aria-invalid="true"] {
|
|
@@ -463,7 +463,7 @@
|
|
|
463
463
|
* The open/close motion lives in the runtime part of components.css. data-asta-autoopen opens it on load.
|
|
464
464
|
* Drawer and command palette are dialogs too, with their own panel classes. */
|
|
465
465
|
.asta-dialog:not(.asta-drawer, .asta-cmd) {
|
|
466
|
-
@apply m-auto w-[calc(100%-2rem)] max-w-[400px] rounded-2xl bg-paper p-6 text-ink outline-none;
|
|
466
|
+
@apply m-auto w-[calc(100%-2rem)] max-w-[400px] overscroll-contain rounded-2xl bg-paper p-6 text-ink outline-none;
|
|
467
467
|
@apply shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_8%,transparent),0_24px_60px_-20px_rgb(0_0_0/0.45)];
|
|
468
468
|
}
|
|
469
469
|
.asta-dialog-close {
|
package/css/src/data.css
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
.asta-data-table-search-input {
|
|
27
|
-
@apply h-full min-w-0 flex-1 bg-transparent text-[13.5px] text-ink outline-none placeholder:text-mute [&::-webkit-search-cancel-button]:hidden;
|
|
27
|
+
@apply 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;
|
|
28
28
|
}
|
|
29
29
|
.asta-data-table-actions {
|
|
30
30
|
@apply ml-auto flex items-center gap-2;
|
|
@@ -659,7 +659,7 @@
|
|
|
659
659
|
@apply text-[11.5px] tabular-nums text-mute;
|
|
660
660
|
}
|
|
661
661
|
.asta-notification-center-body {
|
|
662
|
-
@apply mt-2 min-h-0 flex-1 overflow-y-auto pb-2 [scrollbar-width:thin];
|
|
662
|
+
@apply mt-2 min-h-0 flex-1 overflow-y-auto overscroll-contain pb-2 [scrollbar-width:thin];
|
|
663
663
|
}
|
|
664
664
|
.asta-notification-center-day {
|
|
665
665
|
@apply px-4 pb-1 pt-3 text-[11.5px] font-medium text-mute;
|
|
@@ -801,7 +801,7 @@
|
|
|
801
801
|
@apply focus-within:shadow-[inset_0_0_0_1px_var(--brand),0_0_0_3px_color-mix(in_srgb,var(--brand)_14%,transparent)];
|
|
802
802
|
}
|
|
803
803
|
.asta-comments-input {
|
|
804
|
-
@apply block max-h-40 min-h-[44px] w-full resize-none bg-transparent px-3 pt-2.5 text-[14px] leading-relaxed text-ink outline-none [field-sizing:content] placeholder:text-mute;
|
|
804
|
+
@apply block max-h-40 min-h-[44px] w-full resize-none bg-transparent px-3 pt-2.5 text-[16px] sm:text-[14px] leading-relaxed text-ink outline-none [field-sizing:content] placeholder:text-mute;
|
|
805
805
|
}
|
|
806
806
|
.asta-comments-submit {
|
|
807
807
|
@apply flex items-center justify-end gap-1.5 px-2 pb-2;
|
package/css/src/display.css
CHANGED
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
* <span class="asta-avatar-face asta-avatar-brand">AL<img class="asta-avatar-img" src="…" alt=""></span>
|
|
100
100
|
* <span class="asta-avatar-status" data-status="online" aria-hidden="true"></span></span>
|
|
101
101
|
* Sizes: xs sm (md) lg xl. Shape: asta-avatar-square. Fills on the face: (ink) brand soft tint gray.
|
|
102
|
-
* Status: online away busy offline. */
|
|
102
|
+
* Status: online away busy offline. Each has a shape as well as a colour: solid, crescent, bar, ring. */
|
|
103
103
|
.asta-avatar {
|
|
104
104
|
@apply relative inline-flex h-10 w-10 shrink-0;
|
|
105
105
|
}
|
|
@@ -123,15 +123,16 @@
|
|
|
123
123
|
@apply absolute inset-0 h-full w-full object-cover;
|
|
124
124
|
}
|
|
125
125
|
.asta-avatar-status {
|
|
126
|
-
@apply absolute bottom-0 right-0 h-2.5 w-2.5 rounded-full
|
|
126
|
+
@apply absolute bottom-0 right-0 h-2.5 w-2.5 rounded-full shadow-[0_0_0_2px_var(--paper)];
|
|
127
|
+
background: radial-gradient(closest-side, var(--paper) 48%, var(--mute) 56%);
|
|
127
128
|
&[data-status="online"] {
|
|
128
|
-
|
|
129
|
+
background: #30a46c;
|
|
129
130
|
}
|
|
130
131
|
&[data-status="away"] {
|
|
131
|
-
|
|
132
|
+
background: radial-gradient(closest-side at 30% 30%, var(--paper) 92%, #f5a524 100%);
|
|
132
133
|
}
|
|
133
134
|
&[data-status="busy"] {
|
|
134
|
-
|
|
135
|
+
background: linear-gradient(var(--paper), var(--paper)) center / 60% 20% no-repeat, #e5484d;
|
|
135
136
|
}
|
|
136
137
|
}
|
|
137
138
|
.asta-avatar-xs {
|
package/css/src/forms.css
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
.asta-combobox-input {
|
|
26
|
-
@apply 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;
|
|
26
|
+
@apply 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;
|
|
27
27
|
}
|
|
28
28
|
.asta-combobox-toggle {
|
|
29
29
|
@apply ml-auto flex h-8 w-8 shrink-0 items-center justify-center rounded-md text-mute outline-none transition-colors hover:bg-paper-2 hover:text-ink;
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
@apply text-[13px] text-mute;
|
|
170
170
|
}
|
|
171
171
|
.asta-color-picker-hex {
|
|
172
|
-
@apply h-full w-full min-w-0 bg-transparent pl-1 pr-2.5 font-mono text-[13px] uppercase tracking-[0.02em] text-ink outline-none placeholder:text-mute;
|
|
172
|
+
@apply h-full w-full min-w-0 bg-transparent pl-1 pr-2.5 font-mono text-[16px] sm:text-[13px] uppercase tracking-[0.02em] text-ink outline-none placeholder:text-mute;
|
|
173
173
|
}
|
|
174
174
|
.asta-color-picker-hint {
|
|
175
175
|
@apply w-14 text-[12px] text-mute opacity-0 transition-opacity duration-200 data-[on]:opacity-100;
|
|
@@ -471,7 +471,7 @@
|
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
473
|
.asta-password-input {
|
|
474
|
-
@apply h-full min-w-0 flex-1 bg-transparent text-[14px] tracking-[0.01em] text-ink outline-none placeholder:text-mute;
|
|
474
|
+
@apply h-full min-w-0 flex-1 bg-transparent text-[16px] sm:text-[14px] tracking-[0.01em] text-ink outline-none placeholder:text-mute;
|
|
475
475
|
}
|
|
476
476
|
.asta-password-toggle {
|
|
477
477
|
@apply flex h-8 w-8 shrink-0 items-center justify-center rounded-md text-mute outline-none transition-colors duration-200 hover:text-ink focus-visible:ring-2 focus-visible:ring-brand/50;
|
|
@@ -568,7 +568,7 @@
|
|
|
568
568
|
}
|
|
569
569
|
}
|
|
570
570
|
.asta-tag-input-field {
|
|
571
|
-
@apply h-8 min-w-[4rem] flex-1 bg-transparent px-2 text-[14px] text-ink outline-none placeholder:text-mute disabled:cursor-not-allowed;
|
|
571
|
+
@apply h-8 min-w-[4rem] flex-1 bg-transparent px-2 text-[16px] sm:text-[14px] text-ink outline-none placeholder:text-mute disabled:cursor-not-allowed;
|
|
572
572
|
}
|
|
573
573
|
.asta-tag-input-hint {
|
|
574
574
|
@apply mt-2 text-[12px] text-mute;
|
|
@@ -811,10 +811,10 @@
|
|
|
811
811
|
* Sizes: asta-inline-edit-sm, (md), asta-inline-edit-lg. An empty value: asta-inline-edit-empty on the view. Keep the
|
|
812
812
|
* plain "hidden" class on the tick: asta.js toggles it. */
|
|
813
813
|
.asta-inline-edit {
|
|
814
|
-
@apply relative inline-flex max-w-full items-center gap-1.5 text-[14.5px];
|
|
814
|
+
@apply relative inline-flex max-w-full items-center gap-1.5 text-[16px] sm:text-[14.5px];
|
|
815
815
|
}
|
|
816
816
|
.asta-inline-edit-sm {
|
|
817
|
-
@apply text-[13px];
|
|
817
|
+
@apply text-[16px] sm:text-[13px];
|
|
818
818
|
}
|
|
819
819
|
.asta-inline-edit-lg {
|
|
820
820
|
@apply text-[20px] font-medium tracking-[-0.02em];
|