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
package/dist/textarea-aui-004.js
CHANGED
package/dist/textarea-aui-005.js
CHANGED
package/dist/textarea-aui-006.js
CHANGED
package/dist/textarea-aui-007.js
CHANGED
package/dist/textarea-aui-008.js
CHANGED
package/dist/textarea-aui-035.js
CHANGED
package/dist/textarea-aui-036.js
CHANGED
package/dist/textarea-aui-037.js
CHANGED
package/dist/textarea-aui-038.js
CHANGED
package/dist/textarea.js
CHANGED
package/dist/token-swap.js
CHANGED
package/dist/tooltip.js
CHANGED
package/dist/trade-ticket.js
CHANGED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export interface BillingPlan {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
/** Price per month. */
|
|
5
|
+
price: number;
|
|
6
|
+
/** One short line, e.g. "For small teams". */
|
|
7
|
+
blurb?: string;
|
|
8
|
+
features?: string[];
|
|
9
|
+
}
|
|
10
|
+
export interface BillingUsage {
|
|
11
|
+
label: string;
|
|
12
|
+
value: number;
|
|
13
|
+
max: number;
|
|
14
|
+
format?: (n: number) => string;
|
|
15
|
+
}
|
|
16
|
+
export interface BillingInvoice {
|
|
17
|
+
id: string;
|
|
18
|
+
/** Already formatted. */
|
|
19
|
+
date: string;
|
|
20
|
+
amount: number;
|
|
21
|
+
status: "paid" | "due" | "failed";
|
|
22
|
+
href?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface BillingProps {
|
|
25
|
+
plans: BillingPlan[];
|
|
26
|
+
currentPlan: string;
|
|
27
|
+
/** Already formatted renewal date, e.g. "Dec 1, 2026". */
|
|
28
|
+
renewsOn: string;
|
|
29
|
+
/** Days left in the period and its length, for the proration preview. */
|
|
30
|
+
daysLeft?: number;
|
|
31
|
+
periodDays?: number;
|
|
32
|
+
usage?: BillingUsage[];
|
|
33
|
+
/** Card on file. Leave the network out; the last four digits and expiry are enough. */
|
|
34
|
+
card?: {
|
|
35
|
+
last4: string;
|
|
36
|
+
expires: string;
|
|
37
|
+
holder?: string;
|
|
38
|
+
};
|
|
39
|
+
invoices?: BillingInvoice[];
|
|
40
|
+
currency?: string;
|
|
41
|
+
locale?: string;
|
|
42
|
+
/** Resolve to switch plans, throw to stay. */
|
|
43
|
+
onChangePlan?: (id: string) => Promise<void> | void;
|
|
44
|
+
onUpdateCard?: () => void;
|
|
45
|
+
className?: string;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* A billing settings page: the current plan with its renewal date, a plan picker that previews the prorated amount
|
|
49
|
+
* due today (the numbers roll as you pick), usage meters, the card on file and past invoices. Laid out as grouped
|
|
50
|
+
* rows that use the full width, with titles on the left once the container is wide enough.
|
|
51
|
+
*/
|
|
52
|
+
export declare function Billing({ plans, currentPlan, renewsOn, daysLeft, periodDays, usage, card, invoices, currency, locale, onChangePlan, onUpdateCard, className }: BillingProps): import("react").JSX.Element;
|
|
53
|
+
export default Billing;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export interface ConsentCategory {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
description: string;
|
|
6
|
+
/** Always on and can't be switched off, e.g. cookies the site needs to work. */
|
|
7
|
+
required?: boolean;
|
|
8
|
+
/** Starting value in the preferences view. */
|
|
9
|
+
defaultOn?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export type Consent = Record<string, boolean>;
|
|
12
|
+
export declare const DEFAULT_CONSENT_CATEGORIES: ConsentCategory[];
|
|
13
|
+
export interface CookieConsentProps {
|
|
14
|
+
categories?: ConsentCategory[];
|
|
15
|
+
title?: string;
|
|
16
|
+
message?: ReactNode;
|
|
17
|
+
/** Link to the cookie policy. */
|
|
18
|
+
policyHref?: string;
|
|
19
|
+
/** Saves the choice in localStorage under this key, and stays hidden once a choice is saved. */
|
|
20
|
+
storageKey?: string;
|
|
21
|
+
onConsent?: (consent: Consent) => void;
|
|
22
|
+
/** Where it sits. Default bottom-left. */
|
|
23
|
+
position?: "bottom-left" | "bottom-right" | "bottom";
|
|
24
|
+
/** Position inside the nearest positioned parent instead of the viewport (previews, docs). */
|
|
25
|
+
contained?: boolean;
|
|
26
|
+
/** Controlled visibility. Leave it out and the banner manages itself. */
|
|
27
|
+
open?: boolean;
|
|
28
|
+
onOpenChange?: (open: boolean) => void;
|
|
29
|
+
className?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* A cookie banner that asks once. It slides up from the bottom with Accept all, Reject all and Customize.
|
|
33
|
+
* Customize slides over to a switch per category, with the required ones locked on. Any choice slides it away
|
|
34
|
+
* and hands you the result, and `storageKey` remembers it.
|
|
35
|
+
*/
|
|
36
|
+
export declare function CookieConsent({ categories, title, message, policyHref, storageKey, onConsent, position, contained, open, onOpenChange, className, }: CookieConsentProps): import("react").JSX.Element | null;
|
|
37
|
+
export default CookieConsent;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export interface FileItem {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
kind: "folder" | "image" | "doc" | "sheet" | "video" | "archive";
|
|
6
|
+
/** The folder it sits in. Omit for the root. */
|
|
7
|
+
parent?: string;
|
|
8
|
+
/** Bytes. Folders add up their contents. */
|
|
9
|
+
size?: number;
|
|
10
|
+
/** Already formatted, e.g. "Edited 2 h ago". */
|
|
11
|
+
modified?: string;
|
|
12
|
+
/** Image URL for the preview. */
|
|
13
|
+
thumbnail?: string;
|
|
14
|
+
starred?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface FileManagerProps {
|
|
17
|
+
items: FileItem[];
|
|
18
|
+
/** Name of the root folder. */
|
|
19
|
+
rootLabel?: string;
|
|
20
|
+
/** Storage limit in bytes. Shows a meter in the sidebar. */
|
|
21
|
+
quota?: number;
|
|
22
|
+
defaultView?: "grid" | "list";
|
|
23
|
+
/** Called with the ids that were deleted. */
|
|
24
|
+
onDelete?: (ids: string[]) => void;
|
|
25
|
+
onOpenFile?: (item: FileItem) => void;
|
|
26
|
+
/** Extra buttons in the toolbar, e.g. Upload. */
|
|
27
|
+
actions?: ReactNode;
|
|
28
|
+
className?: string;
|
|
29
|
+
}
|
|
30
|
+
export declare function formatBytes(n: number): string;
|
|
31
|
+
export declare const FileKindIcon: ({ kind, className }: {
|
|
32
|
+
kind: FileItem["kind"];
|
|
33
|
+
className?: string;
|
|
34
|
+
}) => import("react").JSX.Element;
|
|
35
|
+
/**
|
|
36
|
+
* A file browser: folders in a tree on the left, the open folder as a grid or a list, a breadcrumb, search and a
|
|
37
|
+
* storage meter. Folders open on click; files select on click, and the selection bar can star or delete them,
|
|
38
|
+
* which the storage meter follows. Under 640px of container width the tree folds away and the breadcrumb leads.
|
|
39
|
+
*/
|
|
40
|
+
export declare function FileManager({ items: initial, rootLabel, quota, defaultView, onDelete, onOpenFile, actions, className }: FileManagerProps): import("react").JSX.Element;
|
|
41
|
+
export default FileManager;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export interface InboxMessage {
|
|
2
|
+
id: string;
|
|
3
|
+
from: string;
|
|
4
|
+
email: string;
|
|
5
|
+
subject: string;
|
|
6
|
+
/** The first line, shown in the list. */
|
|
7
|
+
preview: string;
|
|
8
|
+
/** Paragraphs of the message. */
|
|
9
|
+
body: string[];
|
|
10
|
+
/** Already formatted, e.g. "9:41" or "Mon". */
|
|
11
|
+
time: string;
|
|
12
|
+
unread?: boolean;
|
|
13
|
+
starred?: boolean;
|
|
14
|
+
/** A short tag, e.g. "Billing". */
|
|
15
|
+
label?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface InboxProps {
|
|
18
|
+
messages: InboxMessage[];
|
|
19
|
+
/** Called after a message is archived and the undo window has passed. */
|
|
20
|
+
onArchive?: (id: string) => void;
|
|
21
|
+
onReply?: (id: string, text: string) => void;
|
|
22
|
+
/** Height of the whole view in px. */
|
|
23
|
+
height?: number;
|
|
24
|
+
className?: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* A mail view: a list on the left, the open message on the right. Star a message, mark it unread, or archive it
|
|
28
|
+
* and the rest glide up while an Undo bar waits a few seconds. With focus in the inbox, j and k (or the arrows)
|
|
29
|
+
* walk the list, e archives, s stars and u marks unread. In a narrow container the list slides over to the
|
|
30
|
+
* message and Back slides it home.
|
|
31
|
+
*/
|
|
32
|
+
export declare function Inbox({ messages, onArchive, onReply, height, className }: InboxProps): import("react").JSX.Element;
|
|
33
|
+
export default Inbox;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export type InvoiceStatus = "draft" | "due" | "overdue" | "paid";
|
|
3
|
+
export interface InvoiceLine {
|
|
4
|
+
description: string;
|
|
5
|
+
/** A muted second line, e.g. the period it covers. */
|
|
6
|
+
detail?: string;
|
|
7
|
+
quantity: number;
|
|
8
|
+
unitPrice: number;
|
|
9
|
+
}
|
|
10
|
+
export interface InvoiceParty {
|
|
11
|
+
name: string;
|
|
12
|
+
/** Address, email, tax id: one per line. */
|
|
13
|
+
lines: string[];
|
|
14
|
+
}
|
|
15
|
+
export interface InvoiceProps {
|
|
16
|
+
number: string;
|
|
17
|
+
/** Already formatted dates, e.g. "Nov 1, 2026". */
|
|
18
|
+
issued: string;
|
|
19
|
+
due: string;
|
|
20
|
+
from: InvoiceParty;
|
|
21
|
+
to: InvoiceParty;
|
|
22
|
+
items: InvoiceLine[];
|
|
23
|
+
/** e.g. 0.11 for 11%. */
|
|
24
|
+
taxRate?: number;
|
|
25
|
+
/** An amount taken off before tax. */
|
|
26
|
+
discount?: number;
|
|
27
|
+
currency?: string;
|
|
28
|
+
locale?: string;
|
|
29
|
+
status?: InvoiceStatus;
|
|
30
|
+
notes?: ReactNode;
|
|
31
|
+
/** Logo or wordmark at the top left. */
|
|
32
|
+
brand?: ReactNode;
|
|
33
|
+
/** Shows Pay. Resolve to mark it paid, throw to stay due. */
|
|
34
|
+
onPay?: () => Promise<void> | void;
|
|
35
|
+
/** Shows Download. */
|
|
36
|
+
onDownload?: () => void;
|
|
37
|
+
className?: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* An invoice: who it's from and to, line items, tax and the total. Pay shows a pending state, then the status
|
|
41
|
+
* turns to Paid, the amount due drops to zero and a check draws itself in. Wrap it in nothing: it sets its own
|
|
42
|
+
* container, so line items stack when the card is narrow, not the window.
|
|
43
|
+
*/
|
|
44
|
+
export declare function Invoice({ number, issued, due, from, to, items, taxRate, discount, currency, locale, status, notes, brand, onPay, onDownload, className }: InvoiceProps): import("react").JSX.Element;
|
|
45
|
+
export default Invoice;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface Testimonial {
|
|
2
|
+
quote: string;
|
|
3
|
+
name: string;
|
|
4
|
+
/** Role and company, e.g. "Head of Product, Juniper Goods". */
|
|
5
|
+
title?: string;
|
|
6
|
+
avatar?: string;
|
|
7
|
+
/** 1–5. Shows stars when set. */
|
|
8
|
+
rating?: number;
|
|
9
|
+
}
|
|
10
|
+
export interface TestimonialsProps {
|
|
11
|
+
items: Testimonial[];
|
|
12
|
+
/** Two rows drifting in opposite directions, or a still grid. Reduced motion always gets the grid. */
|
|
13
|
+
variant?: "marquee" | "grid";
|
|
14
|
+
/** Seconds for one full loop of a row. */
|
|
15
|
+
speed?: number;
|
|
16
|
+
label?: string;
|
|
17
|
+
className?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Customer quotes. The marquee runs two rows in opposite directions with soft faded edges; hovering or focusing a row
|
|
21
|
+
* stops it so it can be read, and it rests whenever it is off screen or the tab is hidden. The grid variant, and
|
|
22
|
+
* anyone who prefers reduced motion, gets the same cards standing still.
|
|
23
|
+
*/
|
|
24
|
+
export declare function Testimonials({ items, variant, speed, label, className }: TestimonialsProps): import("react").JSX.Element;
|
|
25
|
+
export default Testimonials;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export interface BillingPlan {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
/** Price per month. */
|
|
5
|
+
price: number;
|
|
6
|
+
/** One short line, e.g. "For small teams". */
|
|
7
|
+
blurb?: string;
|
|
8
|
+
features?: string[];
|
|
9
|
+
}
|
|
10
|
+
export interface BillingUsage {
|
|
11
|
+
label: string;
|
|
12
|
+
value: number;
|
|
13
|
+
max: number;
|
|
14
|
+
format?: (n: number) => string;
|
|
15
|
+
}
|
|
16
|
+
export interface BillingInvoice {
|
|
17
|
+
id: string;
|
|
18
|
+
/** Already formatted. */
|
|
19
|
+
date: string;
|
|
20
|
+
amount: number;
|
|
21
|
+
status: "paid" | "due" | "failed";
|
|
22
|
+
href?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface BillingProps {
|
|
25
|
+
plans: BillingPlan[];
|
|
26
|
+
currentPlan: string;
|
|
27
|
+
/** Already formatted renewal date, e.g. "Dec 1, 2026". */
|
|
28
|
+
renewsOn: string;
|
|
29
|
+
/** Days left in the period and its length, for the proration preview. */
|
|
30
|
+
daysLeft?: number;
|
|
31
|
+
periodDays?: number;
|
|
32
|
+
usage?: BillingUsage[];
|
|
33
|
+
/** Card on file. Leave the network out; the last four digits and expiry are enough. */
|
|
34
|
+
card?: {
|
|
35
|
+
last4: string;
|
|
36
|
+
expires: string;
|
|
37
|
+
holder?: string;
|
|
38
|
+
};
|
|
39
|
+
invoices?: BillingInvoice[];
|
|
40
|
+
currency?: string;
|
|
41
|
+
locale?: string;
|
|
42
|
+
/** Resolve to switch plans, throw to stay. */
|
|
43
|
+
onChangePlan?: (id: string) => Promise<void> | void;
|
|
44
|
+
onUpdateCard?: () => void;
|
|
45
|
+
className?: string;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* A billing settings page: the current plan with its renewal date, a plan picker that previews the prorated amount
|
|
49
|
+
* due today (the numbers roll as you pick), usage meters, the card on file and past invoices. Laid out as grouped
|
|
50
|
+
* rows that use the full width, with titles on the left once the container is wide enough.
|
|
51
|
+
*/
|
|
52
|
+
export declare function Billing({ plans, currentPlan, renewsOn, daysLeft, periodDays, usage, card, invoices, currency, locale, onChangePlan, onUpdateCard, className }: BillingProps): import("react").JSX.Element;
|
|
53
|
+
export default Billing;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export type ChartType = "area" | "line" | "bar";
|
|
3
|
+
export interface ChartSeries {
|
|
4
|
+
label: string;
|
|
5
|
+
data: number[];
|
|
6
|
+
}
|
|
7
|
+
export interface ChartProps {
|
|
8
|
+
type?: ChartType;
|
|
9
|
+
/** One label per point, e.g. days or months. */
|
|
10
|
+
labels: string[];
|
|
11
|
+
/** The first series is drawn in brand blue. A second one is drawn muted (dashed for lines), e.g. last period. */
|
|
12
|
+
series: ChartSeries[];
|
|
13
|
+
/** Formats values on the axis and in the tooltip. */
|
|
14
|
+
format?: (n: number) => string;
|
|
15
|
+
/** Plot height in px. */
|
|
16
|
+
height?: number;
|
|
17
|
+
/** Accessible name, e.g. "Revenue, last 30 days". */
|
|
18
|
+
label: string;
|
|
19
|
+
/** Show every nth x label. Defaults to fitting about seven. */
|
|
20
|
+
labelEvery?: number;
|
|
21
|
+
/** Start the y axis at zero. Default true for area and bar, false for line. */
|
|
22
|
+
zero?: boolean;
|
|
23
|
+
className?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* A chart drawn from data with plain SVG and CSS: area, line or bars. Lines sweep in from the left, bars rise and
|
|
27
|
+
* glide to new values. Point at it, drag a finger across it, or focus it and use ← → for a crosshair and a
|
|
28
|
+
* tooltip. A hidden table carries the numbers for screen readers.
|
|
29
|
+
*/
|
|
30
|
+
export declare function Chart({ type, labels, series, format, height, label, labelEvery, zero, className }: ChartProps): import("react").JSX.Element;
|
|
31
|
+
export interface ChartCardProps extends ChartProps {
|
|
32
|
+
title: string;
|
|
33
|
+
/** The headline number, already formatted. */
|
|
34
|
+
value?: string;
|
|
35
|
+
/** Change in percent. Up reads blue, down stays neutral. */
|
|
36
|
+
delta?: number;
|
|
37
|
+
deltaLabel?: string;
|
|
38
|
+
/** Controls on the right of the header, e.g. a range switch. */
|
|
39
|
+
actions?: ReactNode;
|
|
40
|
+
}
|
|
41
|
+
/** A dashboard card: a title, a headline number with its change, controls, a legend and a chart. */
|
|
42
|
+
export declare function ChartCard({ title, value, delta, deltaLabel, actions, className, ...chart }: ChartCardProps): import("react").JSX.Element;
|
|
43
|
+
export default ChartCard;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export interface ConsentCategory {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
description: string;
|
|
6
|
+
/** Always on and can't be switched off, e.g. cookies the site needs to work. */
|
|
7
|
+
required?: boolean;
|
|
8
|
+
/** Starting value in the preferences view. */
|
|
9
|
+
defaultOn?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export type Consent = Record<string, boolean>;
|
|
12
|
+
export declare const DEFAULT_CONSENT_CATEGORIES: ConsentCategory[];
|
|
13
|
+
export interface CookieConsentProps {
|
|
14
|
+
categories?: ConsentCategory[];
|
|
15
|
+
title?: string;
|
|
16
|
+
message?: ReactNode;
|
|
17
|
+
/** Link to the cookie policy. */
|
|
18
|
+
policyHref?: string;
|
|
19
|
+
/** Saves the choice in localStorage under this key, and stays hidden once a choice is saved. */
|
|
20
|
+
storageKey?: string;
|
|
21
|
+
onConsent?: (consent: Consent) => void;
|
|
22
|
+
/** Where it sits. Default bottom-left. */
|
|
23
|
+
position?: "bottom-left" | "bottom-right" | "bottom";
|
|
24
|
+
/** Position inside the nearest positioned parent instead of the viewport (previews, docs). */
|
|
25
|
+
contained?: boolean;
|
|
26
|
+
/** Controlled visibility. Leave it out and the banner manages itself. */
|
|
27
|
+
open?: boolean;
|
|
28
|
+
onOpenChange?: (open: boolean) => void;
|
|
29
|
+
className?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* A cookie banner that asks once. It slides up from the bottom with Accept all, Reject all and Customize.
|
|
33
|
+
* Customize slides over to a switch per category, with the required ones locked on. Any choice slides it away
|
|
34
|
+
* and hands you the result, and `storageKey` remembers it.
|
|
35
|
+
*/
|
|
36
|
+
export declare function CookieConsent({ categories, title, message, policyHref, storageKey, onConsent, position, contained, open, onOpenChange, className, }: CookieConsentProps): import("react").JSX.Element | null;
|
|
37
|
+
export default CookieConsent;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export type CountdownUnit = "d" | "h" | "m" | "s";
|
|
2
|
+
export interface CountdownProps {
|
|
3
|
+
/** The moment it counts down to: a Date, a timestamp in ms, or an ISO string. */
|
|
4
|
+
to: Date | number | string;
|
|
5
|
+
/** Which units to show, biggest first. The biggest one soaks up the rest, e.g. ["h","m","s"] shows 49 hours. */
|
|
6
|
+
units?: CountdownUnit[];
|
|
7
|
+
/** `boxed` puts each unit on a tile with a label under it. `inline` reads like a clock, 04:59. */
|
|
8
|
+
variant?: "boxed" | "inline";
|
|
9
|
+
size?: "sm" | "md" | "lg";
|
|
10
|
+
/** Called once when it reaches zero. */
|
|
11
|
+
onComplete?: () => void;
|
|
12
|
+
/** Accessible name in front of the time, e.g. "Sale ends in". */
|
|
13
|
+
label?: string;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Time left until a moment, in days, hours, minutes and seconds. Each digit rolls down to the next one as it
|
|
18
|
+
* changes. It ticks once a second, and stops while it is offscreen or the tab is hidden.
|
|
19
|
+
*/
|
|
20
|
+
export declare function Countdown({ to, units, variant, size, onComplete, label, className }: CountdownProps): import("react").JSX.Element;
|
|
21
|
+
export default Countdown;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export interface FileItem {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
kind: "folder" | "image" | "doc" | "sheet" | "video" | "archive";
|
|
6
|
+
/** The folder it sits in. Omit for the root. */
|
|
7
|
+
parent?: string;
|
|
8
|
+
/** Bytes. Folders add up their contents. */
|
|
9
|
+
size?: number;
|
|
10
|
+
/** Already formatted, e.g. "Edited 2 h ago". */
|
|
11
|
+
modified?: string;
|
|
12
|
+
/** Image URL for the preview. */
|
|
13
|
+
thumbnail?: string;
|
|
14
|
+
starred?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface FileManagerProps {
|
|
17
|
+
items: FileItem[];
|
|
18
|
+
/** Name of the root folder. */
|
|
19
|
+
rootLabel?: string;
|
|
20
|
+
/** Storage limit in bytes. Shows a meter in the sidebar. */
|
|
21
|
+
quota?: number;
|
|
22
|
+
defaultView?: "grid" | "list";
|
|
23
|
+
/** Called with the ids that were deleted. */
|
|
24
|
+
onDelete?: (ids: string[]) => void;
|
|
25
|
+
onOpenFile?: (item: FileItem) => void;
|
|
26
|
+
/** Extra buttons in the toolbar, e.g. Upload. */
|
|
27
|
+
actions?: ReactNode;
|
|
28
|
+
className?: string;
|
|
29
|
+
}
|
|
30
|
+
export declare function formatBytes(n: number): string;
|
|
31
|
+
export declare const FileKindIcon: ({ kind, className }: {
|
|
32
|
+
kind: FileItem["kind"];
|
|
33
|
+
className?: string;
|
|
34
|
+
}) => import("react").JSX.Element;
|
|
35
|
+
/**
|
|
36
|
+
* A file browser: folders in a tree on the left, the open folder as a grid or a list, a breadcrumb, search and a
|
|
37
|
+
* storage meter. Folders open on click; files select on click, and the selection bar can star or delete them,
|
|
38
|
+
* which the storage meter follows. Under 640px of container width the tree folds away and the breadcrumb leads.
|
|
39
|
+
*/
|
|
40
|
+
export declare function FileManager({ items: initial, rootLabel, quota, defaultView, onDelete, onOpenFile, actions, className }: FileManagerProps): import("react").JSX.Element;
|
|
41
|
+
export default FileManager;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export interface InboxMessage {
|
|
2
|
+
id: string;
|
|
3
|
+
from: string;
|
|
4
|
+
email: string;
|
|
5
|
+
subject: string;
|
|
6
|
+
/** The first line, shown in the list. */
|
|
7
|
+
preview: string;
|
|
8
|
+
/** Paragraphs of the message. */
|
|
9
|
+
body: string[];
|
|
10
|
+
/** Already formatted, e.g. "9:41" or "Mon". */
|
|
11
|
+
time: string;
|
|
12
|
+
unread?: boolean;
|
|
13
|
+
starred?: boolean;
|
|
14
|
+
/** A short tag, e.g. "Billing". */
|
|
15
|
+
label?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface InboxProps {
|
|
18
|
+
messages: InboxMessage[];
|
|
19
|
+
/** Called after a message is archived and the undo window has passed. */
|
|
20
|
+
onArchive?: (id: string) => void;
|
|
21
|
+
onReply?: (id: string, text: string) => void;
|
|
22
|
+
/** Height of the whole view in px. */
|
|
23
|
+
height?: number;
|
|
24
|
+
className?: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* A mail view: a list on the left, the open message on the right. Star a message, mark it unread, or archive it
|
|
28
|
+
* and the rest glide up while an Undo bar waits a few seconds. With focus in the inbox, j and k (or the arrows)
|
|
29
|
+
* walk the list, e archives, s stars and u marks unread. In a narrow container the list slides over to the
|
|
30
|
+
* message and Back slides it home.
|
|
31
|
+
*/
|
|
32
|
+
export declare function Inbox({ messages, onArchive, onReply, height, className }: InboxProps): import("react").JSX.Element;
|
|
33
|
+
export default Inbox;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export type InvoiceStatus = "draft" | "due" | "overdue" | "paid";
|
|
3
|
+
export interface InvoiceLine {
|
|
4
|
+
description: string;
|
|
5
|
+
/** A muted second line, e.g. the period it covers. */
|
|
6
|
+
detail?: string;
|
|
7
|
+
quantity: number;
|
|
8
|
+
unitPrice: number;
|
|
9
|
+
}
|
|
10
|
+
export interface InvoiceParty {
|
|
11
|
+
name: string;
|
|
12
|
+
/** Address, email, tax id: one per line. */
|
|
13
|
+
lines: string[];
|
|
14
|
+
}
|
|
15
|
+
export interface InvoiceProps {
|
|
16
|
+
number: string;
|
|
17
|
+
/** Already formatted dates, e.g. "Nov 1, 2026". */
|
|
18
|
+
issued: string;
|
|
19
|
+
due: string;
|
|
20
|
+
from: InvoiceParty;
|
|
21
|
+
to: InvoiceParty;
|
|
22
|
+
items: InvoiceLine[];
|
|
23
|
+
/** e.g. 0.11 for 11%. */
|
|
24
|
+
taxRate?: number;
|
|
25
|
+
/** An amount taken off before tax. */
|
|
26
|
+
discount?: number;
|
|
27
|
+
currency?: string;
|
|
28
|
+
locale?: string;
|
|
29
|
+
status?: InvoiceStatus;
|
|
30
|
+
notes?: ReactNode;
|
|
31
|
+
/** Logo or wordmark at the top left. */
|
|
32
|
+
brand?: ReactNode;
|
|
33
|
+
/** Shows Pay. Resolve to mark it paid, throw to stay due. */
|
|
34
|
+
onPay?: () => Promise<void> | void;
|
|
35
|
+
/** Shows Download. */
|
|
36
|
+
onDownload?: () => void;
|
|
37
|
+
className?: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* An invoice: who it's from and to, line items, tax and the total. Pay shows a pending state, then the status
|
|
41
|
+
* turns to Paid, the amount due drops to zero and a check draws itself in. Wrap it in nothing: it sets its own
|
|
42
|
+
* container, so line items stack when the card is narrow, not the window.
|
|
43
|
+
*/
|
|
44
|
+
export declare function Invoice({ number, issued, due, from, to, items, taxRate, discount, currency, locale, status, notes, brand, onPay, onDownload, className }: InvoiceProps): import("react").JSX.Element;
|
|
45
|
+
export default Invoice;
|