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.
Files changed (448) hide show
  1. package/css/asta.css +2 -2
  2. package/css/asta.js +248 -1
  3. package/css/components.css +722 -44
  4. package/css/runtime/core.css +5 -5
  5. package/css/runtime/data.css +2 -2
  6. package/css/runtime/modules.css +49 -0
  7. package/css/runtime/modules.js +245 -0
  8. package/css/runtime/overlays.css +22 -9
  9. package/css/src/blocks.css +3 -3
  10. package/css/src/core.css +8 -8
  11. package/css/src/data.css +3 -3
  12. package/css/src/display.css +6 -5
  13. package/css/src/forms.css +6 -6
  14. package/css/src/modules.css +616 -0
  15. package/css/src/overlays.css +3 -3
  16. package/css/tokens.css +6 -2
  17. package/dist/ai-chat.js +1 -1
  18. package/dist/avatar-group.js +2 -2
  19. package/dist/avatar.js +1 -1
  20. package/dist/base/ai-chat.js +1 -1
  21. package/dist/base/avatar-group.js +2 -2
  22. package/dist/base/avatar.js +1 -1
  23. package/dist/base/billing.d.ts +2 -0
  24. package/dist/base/billing.js +11 -0
  25. package/dist/base/bubble-wrap.js +1 -1
  26. package/dist/base/candlestick.js +1 -1
  27. package/dist/base/card-checkout.js +1 -1
  28. package/dist/base/chart-card.d.ts +2 -0
  29. package/dist/base/chart-card.js +11 -0
  30. package/dist/base/chat-thread.js +1 -1
  31. package/dist/base/checkbox.js +1 -1
  32. package/dist/base/checkout.js +3 -3
  33. package/dist/base/color-picker.js +1 -1
  34. package/dist/base/combo-lock.js +1 -1
  35. package/dist/base/combobox-aui-046.js +1 -1
  36. package/dist/base/combobox-aui-047.js +1 -1
  37. package/dist/base/combobox.js +1 -1
  38. package/dist/base/command-palette.js +1 -1
  39. package/dist/base/comments.js +2 -2
  40. package/dist/base/context-menu.js +1 -1
  41. package/dist/base/cookie-consent.d.ts +2 -0
  42. package/dist/base/cookie-consent.js +13 -0
  43. package/dist/base/countdown.d.ts +2 -0
  44. package/dist/base/countdown.js +9 -0
  45. package/dist/base/data-table.js +1 -1
  46. package/dist/base/dialog.js +1 -1
  47. package/dist/base/dropdown-menu.js +1 -1
  48. package/dist/base/field.js +1 -1
  49. package/dist/base/file-manager.d.ts +2 -0
  50. package/dist/base/file-manager.js +19 -0
  51. package/dist/base/flash-sale.d.ts +2 -0
  52. package/dist/base/flash-sale.js +7 -0
  53. package/dist/base/footer-aui-027.js +1 -1
  54. package/dist/base/footer-aui-028.js +1 -1
  55. package/dist/base/footer.js +1 -1
  56. package/dist/base/hover-card.js +1 -1
  57. package/dist/base/inbox.d.ts +2 -0
  58. package/dist/base/inbox.js +11 -0
  59. package/dist/base/inline-edit.js +1 -1
  60. package/dist/base/input-aui-029.js +1 -1
  61. package/dist/base/input-aui-030.js +1 -1
  62. package/dist/base/input-aui-031.js +1 -1
  63. package/dist/base/input-aui-032.js +1 -1
  64. package/dist/base/input-aui-033.js +1 -1
  65. package/dist/base/input-aui-034.js +1 -1
  66. package/dist/base/input.js +1 -1
  67. package/dist/base/invoice.d.ts +2 -0
  68. package/dist/base/invoice.js +10 -0
  69. package/dist/base/kanban.js +2 -2
  70. package/dist/base/menubar.d.ts +2 -0
  71. package/dist/base/menubar.js +9 -0
  72. package/dist/base/meter.d.ts +2 -0
  73. package/dist/base/meter.js +9 -0
  74. package/dist/base/morse-tap.js +1 -1
  75. package/dist/base/navbar-aui-009.js +1 -1
  76. package/dist/base/navbar-aui-011.js +1 -1
  77. package/dist/base/navbar-aui-012.js +1 -1
  78. package/dist/base/navbar-aui-013.js +1 -1
  79. package/dist/base/navbar.js +1 -1
  80. package/dist/base/notification-center.js +3 -3
  81. package/dist/base/number-input.js +1 -1
  82. package/dist/base/order-book.js +1 -1
  83. package/dist/base/otp-input-aui-041.js +1 -1
  84. package/dist/base/otp-input-aui-042.js +1 -1
  85. package/dist/base/otp-input.js +1 -1
  86. package/dist/base/password-input-aui-039.js +1 -1
  87. package/dist/base/password-input-aui-040.js +1 -1
  88. package/dist/base/password-input.js +1 -1
  89. package/dist/base/payment-received.js +1 -1
  90. package/dist/base/phone-input.d.ts +2 -0
  91. package/dist/base/phone-input.js +13 -0
  92. package/dist/base/popover.js +1 -1
  93. package/dist/base/price-alert.d.ts +2 -0
  94. package/dist/base/price-alert.js +7 -0
  95. package/dist/base/price-chart.js +1 -1
  96. package/dist/base/properties-panel.js +1 -1
  97. package/dist/base/radio-group.js +1 -1
  98. package/dist/base/select-aui-045.js +1 -1
  99. package/dist/base/select.js +1 -1
  100. package/dist/base/settings-panel.js +1 -1
  101. package/dist/base/shipment-tracker.js +1 -1
  102. package/dist/base/sidebar.js +2 -2
  103. package/dist/base/sign-in-aui-015.js +1 -1
  104. package/dist/base/sign-in-aui-016.js +1 -1
  105. package/dist/base/sign-in-aui-017.js +1 -1
  106. package/dist/base/sign-in-aui-018.js +1 -1
  107. package/dist/base/sign-in-aui-019.js +1 -1
  108. package/dist/base/sign-in-aui-020.js +1 -1
  109. package/dist/base/sign-in.js +1 -1
  110. package/dist/base/snap-grid.js +1 -1
  111. package/dist/base/sortable-list.d.ts +2 -0
  112. package/dist/base/sortable-list.js +9 -0
  113. package/dist/base/split-bill.d.ts +2 -0
  114. package/dist/base/split-bill.js +7 -0
  115. package/dist/base/stat-card.js +1 -1
  116. package/dist/base/tag-input-aui-048.js +1 -1
  117. package/dist/base/tag-input-aui-049.js +1 -1
  118. package/dist/base/tag-input.js +1 -1
  119. package/dist/base/team-members.js +3 -3
  120. package/dist/base/testimonials.d.ts +2 -0
  121. package/dist/base/testimonials.js +10 -0
  122. package/dist/base/textarea-aui-001.js +1 -1
  123. package/dist/base/textarea-aui-002.js +1 -1
  124. package/dist/base/textarea-aui-003.js +1 -1
  125. package/dist/base/textarea-aui-004.js +1 -1
  126. package/dist/base/textarea-aui-005.js +1 -1
  127. package/dist/base/textarea-aui-006.js +1 -1
  128. package/dist/base/textarea-aui-007.js +1 -1
  129. package/dist/base/textarea-aui-008.js +1 -1
  130. package/dist/base/textarea-aui-035.js +1 -1
  131. package/dist/base/textarea-aui-036.js +1 -1
  132. package/dist/base/textarea-aui-037.js +1 -1
  133. package/dist/base/textarea-aui-038.js +1 -1
  134. package/dist/base/textarea.js +1 -1
  135. package/dist/base/token-swap.js +1 -1
  136. package/dist/base/tooltip.js +1 -1
  137. package/dist/base/trade-ticket.js +1 -1
  138. package/dist/base/watchlist.d.ts +2 -0
  139. package/dist/base/watchlist.js +7 -0
  140. package/dist/base.js +166 -90
  141. package/dist/billing.d.ts +2 -0
  142. package/dist/billing.js +11 -0
  143. package/dist/bubble-wrap.js +1 -1
  144. package/dist/candlestick.js +1 -1
  145. package/dist/card-checkout.js +1 -1
  146. package/dist/chart-card.d.ts +2 -0
  147. package/dist/chart-card.js +11 -0
  148. package/dist/chat-thread.js +1 -1
  149. package/dist/checkbox.js +1 -1
  150. package/dist/checkout.js +3 -3
  151. package/dist/{chunk-7TK42PS3.js → chunk-25RCKHWV.js} +19 -4
  152. package/dist/{chunk-4L4EKC46.js → chunk-2EBWWZPS.js} +1 -1
  153. package/dist/chunk-2F5CE6ZB.js +269 -0
  154. package/dist/{chunk-SATIWCJQ.js → chunk-2LM3VHNO.js} +3 -2
  155. package/dist/{chunk-5VQV2I7C.js → chunk-2PPF4GK5.js} +9 -6
  156. package/dist/{chunk-ZRGPSYW6.js → chunk-2PQIPQGO.js} +10 -6
  157. package/dist/{chunk-HB7DFNZP.js → chunk-3PQTSFOS.js} +1 -1
  158. package/dist/{chunk-VPZP6TCT.js → chunk-3UQIYJTI.js} +7 -3
  159. package/dist/{chunk-FY6BRODJ.js → chunk-3ZFF6VC5.js} +4 -2
  160. package/dist/{chunk-V3SPSN3A.js → chunk-45KDL3JM.js} +1 -1
  161. package/dist/{chunk-EVSTTLOT.js → chunk-4SLC3EK6.js} +18 -4
  162. package/dist/{chunk-VWYHP4SB.js → chunk-4WCMPLE3.js} +13 -4
  163. package/dist/chunk-5DLY6FGD.js +160 -0
  164. package/dist/{chunk-SRGDJSW7.js → chunk-5GGS6VP5.js} +1 -0
  165. package/dist/chunk-5N2G462S.js +338 -0
  166. package/dist/{chunk-FKHNK5VC.js → chunk-6C52ZQRB.js} +2 -1
  167. package/dist/{chunk-VVAL2JZJ.js → chunk-6MPEI6V5.js} +2 -2
  168. package/dist/{chunk-HNO6EUGJ.js → chunk-6RA7LJ3K.js} +7 -1
  169. package/dist/{chunk-RRHQBGRO.js → chunk-77RFV2MG.js} +7 -2
  170. package/dist/{chunk-RIWKIBEP.js → chunk-7MBTBYTJ.js} +3 -3
  171. package/dist/{chunk-XIU7K2YE.js → chunk-ADZI4ROA.js} +1 -1
  172. package/dist/{chunk-SAJ4D3Z2.js → chunk-AMVX4DDT.js} +7 -3
  173. package/dist/{chunk-7JNO265Q.js → chunk-B4XRAVHL.js} +33 -17
  174. package/dist/{chunk-MDI73RL6.js → chunk-B7MVYR7C.js} +7 -4
  175. package/dist/{chunk-OFPZUTBI.js → chunk-BEV2X4YL.js} +2 -1
  176. package/dist/chunk-BG2W2KVE.js +200 -0
  177. package/dist/chunk-BKHH2CJA.js +146 -0
  178. package/dist/{chunk-XRVVZA2Y.js → chunk-CACW5LH3.js} +1 -1
  179. package/dist/{chunk-I2WXKWTQ.js → chunk-CBJUY4WE.js} +10 -5
  180. package/dist/{chunk-746WX2DF.js → chunk-CSTI5CTF.js} +8 -2
  181. package/dist/{chunk-3KS5EN3Q.js → chunk-D2JJSUXI.js} +1 -1
  182. package/dist/chunk-D4AYULMF.js +338 -0
  183. package/dist/{chunk-4XM6DKEO.js → chunk-DD2TBHSJ.js} +2 -1
  184. package/dist/{chunk-B5OESWCR.js → chunk-DPLH3EGO.js} +1 -1
  185. package/dist/{chunk-5TSQZY34.js → chunk-DU3CZ3K7.js} +1 -1
  186. package/dist/{chunk-YON5SU2G.js → chunk-DWA62IYV.js} +5 -2
  187. package/dist/{chunk-FUNXYRSG.js → chunk-DWZT455C.js} +24 -9
  188. package/dist/{chunk-WSTQ6WZO.js → chunk-ECGJ6D5D.js} +3 -2
  189. package/dist/{chunk-3JNUC3FU.js → chunk-EN6XBXW5.js} +1 -1
  190. package/dist/{chunk-GJ3R6IZL.js → chunk-EOZDJA7Z.js} +1 -1
  191. package/dist/{chunk-KXWC2UHE.js → chunk-FBIGYEFN.js} +6 -3
  192. package/dist/{chunk-RS3XHHDE.js → chunk-FDE3S2YK.js} +1 -1
  193. package/dist/{chunk-DRX3KRNL.js → chunk-FFRJW5O7.js} +3 -2
  194. package/dist/{chunk-UEOEWP7L.js → chunk-FIPWA5KL.js} +3 -2
  195. package/dist/chunk-FLCT7THQ.js +75 -0
  196. package/dist/{chunk-RTAHGY6P.js → chunk-FOJRZASV.js} +7 -1
  197. package/dist/{chunk-CA7YQ5BJ.js → chunk-FQ4YUKAE.js} +3 -3
  198. package/dist/{chunk-33N6SZB5.js → chunk-FXXR3FM3.js} +6 -3
  199. package/dist/{chunk-BGVAXPHD.js → chunk-G7WTEBMX.js} +21 -6
  200. package/dist/{chunk-HPVPHWDM.js → chunk-IATF2OTU.js} +1 -1
  201. package/dist/{chunk-CLCP2GFW.js → chunk-IDXERBKL.js} +3 -3
  202. package/dist/{chunk-NB7X26PY.js → chunk-IF6CWIUB.js} +1 -1
  203. package/dist/{chunk-WVIV4JBH.js → chunk-ITGWD7ZY.js} +2 -2
  204. package/dist/{chunk-2LZM435Z.js → chunk-IVCHYE55.js} +7 -1
  205. package/dist/{chunk-BH2DLHFW.js → chunk-JE2MAZGR.js} +3 -2
  206. package/dist/{chunk-W57O4RLL.js → chunk-JF4BKHFK.js} +37 -9
  207. package/dist/{chunk-QDRBMWRX.js → chunk-JLCSRNI2.js} +7 -3
  208. package/dist/{chunk-7L4YE6HM.js → chunk-JNNMKFEQ.js} +1 -1
  209. package/dist/{chunk-GDTSCUHY.js → chunk-JRD6FENH.js} +1 -1
  210. package/dist/{chunk-F5I6EK7F.js → chunk-JSS4QASL.js} +1 -1
  211. package/dist/{chunk-B5F775GP.js → chunk-JWBGI7FN.js} +1 -1
  212. package/dist/{chunk-WTNNS7AX.js → chunk-JX7V6EFT.js} +36 -9
  213. package/dist/{chunk-7SNVRPED.js → chunk-KEMC4RIF.js} +2 -1
  214. package/dist/chunk-KVARQNGF.js +123 -0
  215. package/dist/chunk-LDTCIVDX.js +146 -0
  216. package/dist/{chunk-45VUWOHQ.js → chunk-LKRE4HLZ.js} +4 -2
  217. package/dist/{chunk-ZN3W5PAI.js → chunk-LOHFV5JF.js} +1 -1
  218. package/dist/chunk-LS6CFF6X.js +80 -0
  219. package/dist/{chunk-I5NZSWDW.js → chunk-MAKFUH34.js} +33 -17
  220. package/dist/{chunk-OQU6KGVR.js → chunk-MDB4RFMV.js} +1 -1
  221. package/dist/{chunk-FDHU3RWR.js → chunk-MJJU6OLM.js} +1 -1
  222. package/dist/{chunk-PIC5ZIR3.js → chunk-MPH64VG7.js} +1 -1
  223. package/dist/{chunk-AYSC7AIC.js → chunk-MVE7RJJ6.js} +1 -1
  224. package/dist/{chunk-2SQQFICY.js → chunk-N3X4T5OR.js} +25 -8
  225. package/dist/{chunk-CNY76NHF.js → chunk-NFJDL44V.js} +7 -3
  226. package/dist/{chunk-FJGGXXTT.js → chunk-NPVUFQGC.js} +1 -1
  227. package/dist/{chunk-QSLS3ENY.js → chunk-NVLYF4UL.js} +1 -1
  228. package/dist/chunk-O626XQW2.js +165 -0
  229. package/dist/chunk-OH5VAD27.js +224 -0
  230. package/dist/{chunk-TIAKMX7U.js → chunk-OIOZQP2H.js} +1 -1
  231. package/dist/{chunk-56BEMYK3.js → chunk-OU3EEX4Y.js} +1 -1
  232. package/dist/{chunk-6AZKJUL4.js → chunk-OUIOJROO.js} +1 -1
  233. package/dist/{chunk-OLNMOTAD.js → chunk-PAXDHYBX.js} +18 -4
  234. package/dist/chunk-PIE76JKF.js +224 -0
  235. package/dist/{chunk-6B6NTRMC.js → chunk-PIXHOFUT.js} +7 -2
  236. package/dist/{chunk-FATLQKRY.js → chunk-PZ2ZUHC3.js} +3 -3
  237. package/dist/chunk-Q5A5OTLI.js +192 -0
  238. package/dist/{chunk-TXRLBMFL.js → chunk-QASSYLQQ.js} +3 -2
  239. package/dist/{chunk-TCID6NNE.js → chunk-QJXVIEB5.js} +1 -1
  240. package/dist/{chunk-K5PWBSVO.js → chunk-QWOO4V7N.js} +2 -2
  241. package/dist/chunk-RGVRHFKY.js +213 -0
  242. package/dist/{chunk-J6GK2V2C.js → chunk-RQNXELUL.js} +2 -1
  243. package/dist/{chunk-KQCXQY5K.js → chunk-RXOVKEYG.js} +2 -1
  244. package/dist/{chunk-NICNFGHT.js → chunk-S2VTHA6G.js} +2 -2
  245. package/dist/chunk-SCQ6A4ZG.js +247 -0
  246. package/dist/{chunk-EVCUN45S.js → chunk-SMZVKQKM.js} +3 -2
  247. package/dist/{chunk-GERWW3CA.js → chunk-SR4NYQWO.js} +2 -2
  248. package/dist/{chunk-DQWKBQBT.js → chunk-TAAAYFBT.js} +2 -2
  249. package/dist/{chunk-S2DJLW6B.js → chunk-TBMUSER2.js} +1 -1
  250. package/dist/chunk-TMOEFAXQ.js +165 -0
  251. package/dist/chunk-TXC6CCSA.js +75 -0
  252. package/dist/chunk-UC55XR76.js +193 -0
  253. package/dist/{chunk-5U4H2CXC.js → chunk-UJYZZSII.js} +11 -4
  254. package/dist/chunk-UOOGRGEC.js +185 -0
  255. package/dist/{chunk-ZBF2UYXP.js → chunk-USDST2TI.js} +1 -1
  256. package/dist/{chunk-W7RITVDV.js → chunk-UX6CWJT7.js} +1 -1
  257. package/dist/{chunk-U7BYEW3Y.js → chunk-UZF7SCRT.js} +13 -5
  258. package/dist/{chunk-Q7OHWQP2.js → chunk-V7JUJQNR.js} +1 -0
  259. package/dist/{chunk-WWQV7LE7.js → chunk-VNUX5LOC.js} +24 -9
  260. package/dist/{chunk-CTO36MY2.js → chunk-VS3GQ4JR.js} +2 -2
  261. package/dist/{chunk-UMDVPRJW.js → chunk-VTTXURIB.js} +1 -1
  262. package/dist/{chunk-6NNHSXFD.js → chunk-W2S6JDBM.js} +1 -1
  263. package/dist/{chunk-3XMVXIOF.js → chunk-W5M3EHJL.js} +4 -2
  264. package/dist/chunk-X2VID7XY.js +228 -0
  265. package/dist/{chunk-H7D6G3GQ.js → chunk-X4JYOCFA.js} +7 -1
  266. package/dist/{chunk-6VQTFRSP.js → chunk-XKA3LTJZ.js} +37 -9
  267. package/dist/{chunk-7GKCX4IE.js → chunk-XUZH4Y52.js} +1 -1
  268. package/dist/{chunk-UAP47MSR.js → chunk-Y4JOW2UW.js} +11 -5
  269. package/dist/{chunk-T4SOPNM5.js → chunk-YCXZ3TYF.js} +1 -1
  270. package/dist/{chunk-2KJNBHUV.js → chunk-YF3XSH54.js} +2 -1
  271. package/dist/{chunk-66OZ7CBK.js → chunk-YJAZHJY3.js} +1 -1
  272. package/dist/{chunk-4WK3F76T.js → chunk-YLILJ2FH.js} +1 -1
  273. package/dist/{chunk-FGQPCDXI.js → chunk-YNPG4WOS.js} +1 -1
  274. package/dist/chunk-YPFZXGPT.js +160 -0
  275. package/dist/{chunk-KYFZ5TTK.js → chunk-YRPLUNP4.js} +3 -1
  276. package/dist/{chunk-P3USWDWR.js → chunk-YVGC7QT7.js} +4 -2
  277. package/dist/{chunk-4ZJEAWNG.js → chunk-Z2DF2YL5.js} +4 -2
  278. package/dist/{chunk-JAQANAOP.js → chunk-ZUH7XRX7.js} +19 -4
  279. package/dist/{chunk-UWQ26LYZ.js → chunk-ZYI6J34Q.js} +2 -2
  280. package/dist/{chunk-BOJCW7Z7.js → chunk-ZZ25XSK2.js} +3 -2
  281. package/dist/color-picker.js +1 -1
  282. package/dist/combo-lock.js +1 -1
  283. package/dist/combobox-aui-046.js +1 -1
  284. package/dist/combobox-aui-047.js +1 -1
  285. package/dist/combobox.js +1 -1
  286. package/dist/command-palette.js +1 -1
  287. package/dist/comments.js +2 -2
  288. package/dist/context-menu.js +1 -1
  289. package/dist/cookie-consent.d.ts +2 -0
  290. package/dist/cookie-consent.js +13 -0
  291. package/dist/countdown.d.ts +2 -0
  292. package/dist/countdown.js +9 -0
  293. package/dist/data-table.js +1 -1
  294. package/dist/dialog.js +1 -1
  295. package/dist/dropdown-menu.js +1 -1
  296. package/dist/field.js +1 -1
  297. package/dist/file-manager.d.ts +2 -0
  298. package/dist/file-manager.js +19 -0
  299. package/dist/flash-sale.d.ts +2 -0
  300. package/dist/flash-sale.js +7 -0
  301. package/dist/footer-aui-027.js +1 -1
  302. package/dist/footer-aui-028.js +1 -1
  303. package/dist/footer.js +1 -1
  304. package/dist/hover-card.js +1 -1
  305. package/dist/inbox.d.ts +2 -0
  306. package/dist/inbox.js +11 -0
  307. package/dist/index.js +166 -90
  308. package/dist/inline-edit.js +1 -1
  309. package/dist/input-aui-029.js +1 -1
  310. package/dist/input-aui-030.js +1 -1
  311. package/dist/input-aui-031.js +1 -1
  312. package/dist/input-aui-032.js +1 -1
  313. package/dist/input-aui-033.js +1 -1
  314. package/dist/input-aui-034.js +1 -1
  315. package/dist/input.js +1 -1
  316. package/dist/invoice.d.ts +2 -0
  317. package/dist/invoice.js +10 -0
  318. package/dist/kanban.js +2 -2
  319. package/dist/menubar.d.ts +2 -0
  320. package/dist/menubar.js +9 -0
  321. package/dist/meter.d.ts +2 -0
  322. package/dist/meter.js +9 -0
  323. package/dist/morse-tap.js +1 -1
  324. package/dist/navbar-aui-009.js +1 -1
  325. package/dist/navbar-aui-011.js +1 -1
  326. package/dist/navbar-aui-012.js +1 -1
  327. package/dist/navbar-aui-013.js +1 -1
  328. package/dist/navbar.js +1 -1
  329. package/dist/notification-center.js +3 -3
  330. package/dist/number-input.js +1 -1
  331. package/dist/order-book.js +1 -1
  332. package/dist/otp-input-aui-041.js +1 -1
  333. package/dist/otp-input-aui-042.js +1 -1
  334. package/dist/otp-input.js +1 -1
  335. package/dist/password-input-aui-039.js +1 -1
  336. package/dist/password-input-aui-040.js +1 -1
  337. package/dist/password-input.js +1 -1
  338. package/dist/payment-received.js +1 -1
  339. package/dist/phone-input.d.ts +2 -0
  340. package/dist/phone-input.js +13 -0
  341. package/dist/popover.js +1 -1
  342. package/dist/price-alert.d.ts +2 -0
  343. package/dist/price-alert.js +7 -0
  344. package/dist/price-chart.js +1 -1
  345. package/dist/properties-panel.js +1 -1
  346. package/dist/radio-group.js +1 -1
  347. package/dist/select-aui-045.js +1 -1
  348. package/dist/select.js +1 -1
  349. package/dist/settings-panel.js +1 -1
  350. package/dist/shipment-tracker.js +1 -1
  351. package/dist/sidebar.js +2 -2
  352. package/dist/sign-in-aui-015.js +1 -1
  353. package/dist/sign-in-aui-016.js +1 -1
  354. package/dist/sign-in-aui-017.js +1 -1
  355. package/dist/sign-in-aui-018.js +1 -1
  356. package/dist/sign-in-aui-019.js +1 -1
  357. package/dist/sign-in-aui-020.js +1 -1
  358. package/dist/sign-in.js +1 -1
  359. package/dist/snap-grid.js +1 -1
  360. package/dist/sortable-list.d.ts +2 -0
  361. package/dist/sortable-list.js +9 -0
  362. package/dist/split-bill.d.ts +2 -0
  363. package/dist/split-bill.js +7 -0
  364. package/dist/stat-card.js +1 -1
  365. package/dist/styles.css +2 -2
  366. package/dist/tag-input-aui-048.js +1 -1
  367. package/dist/tag-input-aui-049.js +1 -1
  368. package/dist/tag-input.js +1 -1
  369. package/dist/team-members.js +3 -3
  370. package/dist/testimonials.d.ts +2 -0
  371. package/dist/testimonials.js +10 -0
  372. package/dist/textarea-aui-001.js +1 -1
  373. package/dist/textarea-aui-002.js +1 -1
  374. package/dist/textarea-aui-003.js +1 -1
  375. package/dist/textarea-aui-004.js +1 -1
  376. package/dist/textarea-aui-005.js +1 -1
  377. package/dist/textarea-aui-006.js +1 -1
  378. package/dist/textarea-aui-007.js +1 -1
  379. package/dist/textarea-aui-008.js +1 -1
  380. package/dist/textarea-aui-035.js +1 -1
  381. package/dist/textarea-aui-036.js +1 -1
  382. package/dist/textarea-aui-037.js +1 -1
  383. package/dist/textarea-aui-038.js +1 -1
  384. package/dist/textarea.js +1 -1
  385. package/dist/token-swap.js +1 -1
  386. package/dist/tooltip.js +1 -1
  387. package/dist/trade-ticket.js +1 -1
  388. package/dist/types/components/kit/base/billing.d.ts +53 -0
  389. package/dist/types/components/kit/base/cookie-consent.d.ts +37 -0
  390. package/dist/types/components/kit/base/file-manager.d.ts +41 -0
  391. package/dist/types/components/kit/base/inbox.d.ts +33 -0
  392. package/dist/types/components/kit/base/invoice.d.ts +45 -0
  393. package/dist/types/components/kit/base/testimonials.d.ts +25 -0
  394. package/dist/types/components/kit/billing.d.ts +53 -0
  395. package/dist/types/components/kit/chart-card.d.ts +43 -0
  396. package/dist/types/components/kit/cookie-consent.d.ts +37 -0
  397. package/dist/types/components/kit/countdown.d.ts +21 -0
  398. package/dist/types/components/kit/file-manager.d.ts +41 -0
  399. package/dist/types/components/kit/inbox.d.ts +33 -0
  400. package/dist/types/components/kit/invoice.d.ts +45 -0
  401. package/dist/types/components/kit/menubar.d.ts +41 -0
  402. package/dist/types/components/kit/meter.d.ts +32 -0
  403. package/dist/types/components/kit/number-input.d.ts +3 -1
  404. package/dist/types/components/kit/phone-input.d.ts +42 -0
  405. package/dist/types/components/kit/sortable-list.d.ts +25 -0
  406. package/dist/types/components/kit/tag-input.d.ts +3 -1
  407. package/dist/types/components/kit/testimonials.d.ts +25 -0
  408. package/dist/types/components/lab/blocks/FlashSale.d.ts +2 -0
  409. package/dist/types/components/lab/blocks/PriceAlert.d.ts +2 -0
  410. package/dist/types/components/lab/blocks/SplitBill.d.ts +2 -0
  411. package/dist/types/components/lab/blocks/Watchlist.d.ts +2 -0
  412. package/dist/types/packages/asta-ui/src/base/billing.d.ts +2 -0
  413. package/dist/types/packages/asta-ui/src/base/chart-card.d.ts +2 -0
  414. package/dist/types/packages/asta-ui/src/base/cookie-consent.d.ts +2 -0
  415. package/dist/types/packages/asta-ui/src/base/countdown.d.ts +2 -0
  416. package/dist/types/packages/asta-ui/src/base/file-manager.d.ts +2 -0
  417. package/dist/types/packages/asta-ui/src/base/flash-sale.d.ts +2 -0
  418. package/dist/types/packages/asta-ui/src/base/inbox.d.ts +2 -0
  419. package/dist/types/packages/asta-ui/src/base/invoice.d.ts +2 -0
  420. package/dist/types/packages/asta-ui/src/base/menubar.d.ts +2 -0
  421. package/dist/types/packages/asta-ui/src/base/meter.d.ts +2 -0
  422. package/dist/types/packages/asta-ui/src/base/phone-input.d.ts +2 -0
  423. package/dist/types/packages/asta-ui/src/base/price-alert.d.ts +2 -0
  424. package/dist/types/packages/asta-ui/src/base/sortable-list.d.ts +2 -0
  425. package/dist/types/packages/asta-ui/src/base/split-bill.d.ts +2 -0
  426. package/dist/types/packages/asta-ui/src/base/testimonials.d.ts +2 -0
  427. package/dist/types/packages/asta-ui/src/base/watchlist.d.ts +2 -0
  428. package/dist/types/packages/asta-ui/src/base.d.ts +29 -1
  429. package/dist/types/packages/asta-ui/src/billing.d.ts +2 -0
  430. package/dist/types/packages/asta-ui/src/chart-card.d.ts +2 -0
  431. package/dist/types/packages/asta-ui/src/cookie-consent.d.ts +2 -0
  432. package/dist/types/packages/asta-ui/src/countdown.d.ts +2 -0
  433. package/dist/types/packages/asta-ui/src/file-manager.d.ts +2 -0
  434. package/dist/types/packages/asta-ui/src/flash-sale.d.ts +2 -0
  435. package/dist/types/packages/asta-ui/src/inbox.d.ts +2 -0
  436. package/dist/types/packages/asta-ui/src/index.d.ts +29 -1
  437. package/dist/types/packages/asta-ui/src/invoice.d.ts +2 -0
  438. package/dist/types/packages/asta-ui/src/menubar.d.ts +2 -0
  439. package/dist/types/packages/asta-ui/src/meter.d.ts +2 -0
  440. package/dist/types/packages/asta-ui/src/phone-input.d.ts +2 -0
  441. package/dist/types/packages/asta-ui/src/price-alert.d.ts +2 -0
  442. package/dist/types/packages/asta-ui/src/sortable-list.d.ts +2 -0
  443. package/dist/types/packages/asta-ui/src/split-bill.d.ts +2 -0
  444. package/dist/types/packages/asta-ui/src/testimonials.d.ts +2 -0
  445. package/dist/types/packages/asta-ui/src/watchlist.d.ts +2 -0
  446. package/dist/watchlist.d.ts +2 -0
  447. package/dist/watchlist.js +7 -0
  448. package/package.json +1 -1
@@ -4,7 +4,7 @@
4
4
  import { useId, useRef, useState } from "react";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  var cx = (...c) => c.filter(Boolean).join(" ");
7
- function TagInput({ value, defaultValue = [], onChange, max = 8, placeholder = "Add a tag", label = "Tags", className }) {
7
+ function TagInput({ value, defaultValue = [], onChange, max = 8, placeholder = "Add a tag\u2026", label = "Tags", name, className }) {
8
8
  const [inner, setInner] = useState(defaultValue);
9
9
  const tags = value ?? inner;
10
10
  const [text, setText] = useState("");
@@ -102,6 +102,8 @@ function TagInput({ value, defaultValue = [], onChange, max = 8, placeholder = "
102
102
  {
103
103
  ref: input,
104
104
  id,
105
+ autoComplete: "off",
106
+ enterKeyHint: "enter",
105
107
  value: text,
106
108
  disabled: full && !text,
107
109
  placeholder: full ? "Limit reached" : tags.length ? "" : placeholder,
@@ -131,12 +133,13 @@ function TagInput({ value, defaultValue = [], onChange, max = 8, placeholder = "
131
133
  setArmed(false);
132
134
  if (text.trim()) add([text]);
133
135
  },
134
- className: "h-8 min-w-[4rem] flex-1 bg-transparent px-2 text-[14px] text-ink outline-none placeholder:text-mute disabled:cursor-not-allowed"
136
+ className: "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"
135
137
  }
136
138
  )
137
139
  ]
138
140
  }
139
141
  ),
142
+ name && tags.map((t) => /* @__PURE__ */ jsx("input", { type: "hidden", name, value: t }, t)),
140
143
  /* @__PURE__ */ jsxs("p", { className: "mt-2 text-[12px] text-mute", children: [
141
144
  /* @__PURE__ */ jsx("kbd", { className: "font-sans text-ink-2", children: "Enter" }),
142
145
  " or ",
@@ -22,7 +22,7 @@ var GitHubGlyph = () => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", "aria
22
22
  d: "M8 .5a7.5 7.5 0 0 0-2.4 14.6c.4.1.5-.2.5-.4v-1.4c-2.1.5-2.5-.9-2.5-.9-.4-.9-.9-1.1-.9-1.1-.7-.5 0-.5 0-.5.8.1 1.2.8 1.2.8.7 1.2 1.8.8 2.2.6.1-.5.3-.8.5-1-1.7-.2-3.4-.8-3.4-3.7 0-.8.3-1.5.8-2-.1-.2-.3-1 .1-2 0 0 .6-.2 2.1.8a7 7 0 0 1 3.8 0c1.4-1 2.1-.8 2.1-.8.4 1 .2 1.8.1 2 .5.5.8 1.2.8 2 0 2.9-1.8 3.5-3.4 3.7.3.2.5.7.5 1.4v2.1c0 .2.1.5.5.4A7.5 7.5 0 0 0 8 .5Z"
23
23
  }
24
24
  ) });
25
- function Field({ label, type, value, onChange, onBlur, error, shake, autoComplete, placeholder, end }) {
25
+ function Field({ label, type, value, onChange, onBlur, error, shake, name, autoComplete, inputMode, placeholder, end }) {
26
26
  const id = useId();
27
27
  const box = useRef(null);
28
28
  const hasError = !!error;
@@ -40,16 +40,20 @@ function Field({ label, type, value, onChange, onBlur, error, shake, autoComplet
40
40
  "input",
41
41
  {
42
42
  id,
43
+ name,
43
44
  type,
44
45
  value,
45
46
  autoComplete,
47
+ inputMode,
48
+ autoCapitalize: "none",
49
+ spellCheck: false,
46
50
  placeholder,
47
51
  onChange: (e) => onChange(e.target.value),
48
52
  onBlur,
49
53
  "aria-invalid": !!error || void 0,
50
54
  "aria-describedby": error ? `${id}-err` : void 0,
51
55
  className: cx(
52
- "h-10 w-full rounded-lg bg-paper px-3 text-[14px] text-ink outline-none transition-shadow duration-200 placeholder:text-mute",
56
+ "h-10 w-full rounded-lg bg-paper px-3 text-[16px] sm:text-[14px] text-ink outline-none transition-shadow duration-200 placeholder:text-mute",
53
57
  !!end && "pr-11",
54
58
  error ? "shadow-[inset_0_0_0_1px_#e5484d] focus-visible:ring-2 focus-visible:ring-[#e5484d]/30" : `${RING} focus-visible:ring-2 focus-visible:ring-brand/50`
55
59
  )
@@ -77,17 +81,25 @@ function SignInCard({ title = "Welcome back", subtitle = "Sign in to continue to
77
81
  const [state, setState] = useState("idle");
78
82
  const [formError, setFormError] = useState("");
79
83
  const [shake, setShake] = useState(0);
80
- const errors = {
81
- email: !email.trim() ? "Enter your email." : !validEmail(email) ? "That doesn't look like an email address." : "",
82
- password: !password ? "Enter your password." : password.length < 8 ? "Use at least 8 characters." : ""
84
+ const check = {
85
+ email: (v) => !v.trim() ? "Enter your email." : !validEmail(v) ? "Enter an email like name@company.com." : "",
86
+ password: (v) => !v ? "Enter your password." : v.length < 8 ? "Use at least 8 characters." : ""
83
87
  };
88
+ const errors = { email: check.email(email), password: check.password(password) };
84
89
  const show = (k) => touched[k] ? errors[k] : "";
90
+ const edit = (k, v) => {
91
+ if (k === "email") setEmail(v);
92
+ else setPassword(v);
93
+ if (touched[k] && !check[k](v)) setTouched((t) => ({ ...t, [k]: false }));
94
+ };
85
95
  const submit = async (e) => {
86
96
  e.preventDefault();
87
97
  setTouched({ email: true, password: true });
88
98
  setFormError("");
89
99
  if (errors.email || errors.password) {
90
100
  setShake((n) => n + 1);
101
+ const first = e.currentTarget.elements.namedItem(errors.email ? "email" : "password");
102
+ if (first instanceof HTMLInputElement) first.focus();
91
103
  return;
92
104
  }
93
105
  setState("loading");
@@ -133,11 +145,13 @@ function SignInCard({ title = "Welcome back", subtitle = "Sign in to continue to
133
145
  Field,
134
146
  {
135
147
  label: "Email",
148
+ name: "email",
136
149
  type: "email",
137
150
  autoComplete: "email",
151
+ inputMode: "email",
138
152
  placeholder: "you@company.com",
139
153
  value: email,
140
- onChange: setEmail,
154
+ onChange: (v) => edit("email", v),
141
155
  onBlur: () => email && setTouched((t) => ({ ...t, email: true })),
142
156
  error: show("email"),
143
157
  shake
@@ -147,11 +161,12 @@ function SignInCard({ title = "Welcome back", subtitle = "Sign in to continue to
147
161
  Field,
148
162
  {
149
163
  label: "Password",
164
+ name: "password",
150
165
  type: reveal ? "text" : "password",
151
166
  autoComplete: "current-password",
152
- placeholder: "At least 8 characters",
167
+ placeholder: "At least 8 characters\u2026",
153
168
  value: password,
154
- onChange: setPassword,
169
+ onChange: (v) => edit("password", v),
155
170
  onBlur: () => password && setTouched((t) => ({ ...t, password: true })),
156
171
  error: show("password"),
157
172
  shake,
@@ -175,7 +190,7 @@ function SignInCard({ title = "Welcome back", subtitle = "Sign in to continue to
175
190
  ] }),
176
191
  /* @__PURE__ */ jsxs("div", { className: "mt-3 flex items-center justify-between text-[13px]", children: [
177
192
  /* @__PURE__ */ jsxs("label", { className: "flex cursor-pointer items-center gap-2 text-ink-2", children: [
178
- /* @__PURE__ */ jsx("input", { type: "checkbox", defaultChecked: true, className: "h-3.5 w-3.5 accent-[var(--brand)]" }),
193
+ /* @__PURE__ */ jsx("input", { type: "checkbox", name: "remember", defaultChecked: true, className: "h-3.5 w-3.5 accent-[var(--brand)]" }),
179
194
  "Remember me"
180
195
  ] }),
181
196
  /* @__PURE__ */ jsx("a", { href: "#", onClick: (e) => e.preventDefault(), className: "text-brand outline-none hover:underline focus-visible:underline", children: "Forgot password?" })
@@ -24,7 +24,7 @@ function EmailTagInput({
24
24
  domain = "astabyte.com",
25
25
  max = 20,
26
26
  label = "To",
27
- placeholder = "Add people by email",
27
+ placeholder = "Add people by email\u2026",
28
28
  name,
29
29
  className
30
30
  }) {
@@ -144,6 +144,7 @@ function EmailTagInput({
144
144
  value: text,
145
145
  inputMode: "email",
146
146
  autoComplete: "off",
147
+ autoCapitalize: "none",
147
148
  spellCheck: false,
148
149
  placeholder: list.length ? "" : placeholder,
149
150
  "aria-describedby": `${id}-status`,
@@ -169,7 +170,7 @@ function EmailTagInput({
169
170
  }
170
171
  },
171
172
  onBlur: () => text.trim() && add([text]),
172
- className: "h-8 min-w-[5rem] flex-1 bg-transparent px-1 text-[14px] text-ink outline-none placeholder:text-mute"
173
+ className: "h-8 min-w-[5rem] flex-1 bg-transparent px-1 text-[16px] sm:text-[14px] text-ink outline-none placeholder:text-mute"
173
174
  }
174
175
  )
175
176
  ]
@@ -46,7 +46,7 @@ function Textarea({ limit, maxRows = 10, rows = 3, className, ...rest }) {
46
46
  rest.onChange?.(e);
47
47
  },
48
48
  className: cx(
49
- "block w-full resize-none bg-transparent px-3.5 pt-3 text-[14px] leading-[1.55] outline-none placeholder:text-mute transition-[height] duration-150",
49
+ "block w-full resize-none bg-transparent px-3.5 pt-3 text-[16px] sm:text-[14px] leading-[1.55] outline-none placeholder:text-mute transition-[height] duration-150",
50
50
  limit ? "pb-10" : "pb-3"
51
51
  )
52
52
  }
@@ -129,7 +129,7 @@ function ReviewTextarea({
129
129
  value: text,
130
130
  onChange: (e) => setText(e.target.value),
131
131
  placeholder: PROMPTS[shown],
132
- className: "block w-full resize-none bg-transparent px-3.5 pt-3 text-[14px] leading-[1.55] text-ink outline-none placeholder:text-mute"
132
+ className: "block w-full resize-none bg-transparent px-3.5 pt-3 text-[16px] sm:text-[14px] leading-[1.55] text-ink outline-none placeholder:text-mute"
133
133
  }
134
134
  ),
135
135
  /* @__PURE__ */ jsxs("ul", { className: "flex flex-wrap items-center gap-2 px-3 pb-3 pt-2", "aria-label": "Photos", children: [
@@ -29,7 +29,7 @@ function Mark({ text, q }) {
29
29
  }
30
30
  var Icon = ({ d, className }) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: cx("h-4 w-4 shrink-0", className), fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: d });
31
31
  function SearchField({
32
- placeholder = "Search Astabyte",
32
+ placeholder = "Search Astabyte\u2026",
33
33
  recent: recentProp = RECENT,
34
34
  pages = PAGES,
35
35
  onSearch,
@@ -190,8 +190,11 @@ function SearchField({
190
190
  {
191
191
  ref: input,
192
192
  type: "search",
193
+ name: "q",
194
+ autoComplete: "off",
195
+ spellCheck: false,
193
196
  role: "combobox",
194
- "aria-label": placeholder,
197
+ "aria-label": placeholder.replace(/…$/, ""),
195
198
  "aria-expanded": show,
196
199
  "aria-controls": `${id}-list`,
197
200
  "aria-autocomplete": "list",
@@ -205,7 +208,7 @@ function SearchField({
205
208
  setOpen(true);
206
209
  },
207
210
  onKeyDown,
208
- className: "h-full min-w-0 flex-1 bg-transparent text-[14px] tracking-[-0.01em] outline-none placeholder:text-mute [&::-webkit-search-cancel-button]:hidden"
211
+ className: "h-full min-w-0 flex-1 bg-transparent text-[16px] sm:text-[14px] tracking-[-0.01em] outline-none placeholder:text-mute [&::-webkit-search-cancel-button]:hidden"
209
212
  }
210
213
  ),
211
214
  /* @__PURE__ */ jsxs("span", { className: "relative grid h-6 w-8 shrink-0 place-items-center", children: [
@@ -38,7 +38,7 @@ function DropdownMenu({ children, groups, align = "start", variant = "outline",
38
38
  "z-50 min-w-[232px] rounded-xl bg-paper p-1.5 outline-none",
39
39
  "shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent),0_12px_32px_-12px_rgb(0_0_0/0.28),0_4px_10px_-6px_rgb(0_0_0/0.12)]",
40
40
  "origin-[var(--radix-dropdown-menu-content-transform-origin)]",
41
- "data-[state=open]:animate-[kit-menu-in_.2s_cubic-bezier(.16,1,.3,1)_both] data-[state=closed]:animate-[kit-menu-out_.12s_ease-in_both] motion-reduce:!animate-none"
41
+ "data-[state=open]:animate-[kit-menu-in_.2s_cubic-bezier(.16,1,.3,1)_both] data-[state=closed]:animate-[kit-menu-out_.12s_cubic-bezier(.16,1,.3,1)_both] motion-reduce:!animate-none"
42
42
  ),
43
43
  children: [
44
44
  /* @__PURE__ */ jsx("style", { href: "asta-dropdown-menu", precedence: "asta", children: KEYFRAMES }),
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  Avatar
4
- } from "./chunk-2LZM435Z.js";
4
+ } from "./chunk-IVCHYE55.js";
5
5
  import {
6
6
  Button
7
7
  } from "./chunk-WSL4JGEA.js";
@@ -39,6 +39,7 @@ function Composer({
39
39
  {
40
40
  ref: area,
41
41
  id,
42
+ name: "body",
42
43
  rows: 1,
43
44
  value: text,
44
45
  autoFocus,
@@ -54,7 +55,7 @@ function Composer({
54
55
  onCancel();
55
56
  }
56
57
  },
57
- className: "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"
58
+ className: "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"
58
59
  }
59
60
  ),
60
61
  /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-end gap-1.5 px-2 pb-2", children: [
@@ -208,10 +208,11 @@ function CardCheckout() {
208
208
  "input",
209
209
  {
210
210
  ref: input,
211
+ name: "cardNumber",
211
212
  inputMode: "numeric",
212
- autoComplete: "off",
213
+ autoComplete: "cc-number",
213
214
  "aria-label": "Card number",
214
- className: "sr-only",
215
+ className: "sr-only text-[16px]",
215
216
  value: num,
216
217
  onFocus: () => {
217
218
  setUser(true);
@@ -0,0 +1,75 @@
1
+ "use client";
2
+ import {
3
+ Avatar
4
+ } from "./chunk-6RA7LJ3K.js";
5
+
6
+ // components/kit/testimonials.tsx
7
+ import { useEffect, useRef, useState } from "react";
8
+ import { jsx, jsxs } from "react/jsx-runtime";
9
+ var cx = (...c) => c.filter(Boolean).join(" ");
10
+ var KEYFRAMES = `@keyframes asta-tm-left { to { transform: translateX(-50%) } }
11
+ @keyframes asta-tm-right { from { transform: translateX(-50%) } to { transform: none } }
12
+ .asta-tm-root[data-paused] .asta-tm-track, .asta-tm-row:hover .asta-tm-track, .asta-tm-row:focus-within .asta-tm-track { animation-play-state: paused }
13
+ @media (prefers-reduced-motion: reduce) { .asta-tm-marquee { display: none !important } .asta-tm-still { display: grid !important } }`;
14
+ function Card({ t, className }) {
15
+ return /* @__PURE__ */ jsxs("figure", { className: cx("flex flex-col justify-between gap-5 rounded-[12px] bg-paper-2 p-5", className), children: [
16
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-3", children: [
17
+ t.rating ? /* @__PURE__ */ jsx("span", { className: "flex gap-0.5 text-brand", role: "img", "aria-label": `${t.rating} out of 5`, children: Array.from({ length: 5 }, (_, i) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: cx("h-3.5 w-3.5", i >= t.rating && "opacity-25"), fill: "currentColor", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "m8 1.8 1.9 3.85 4.25.62-3.07 3 .72 4.23L8 11.5l-3.8 2 .72-4.23-3.07-3 4.25-.62z" }) }, i)) }) : null,
18
+ /* @__PURE__ */ jsxs("blockquote", { className: "text-[14px] leading-relaxed text-ink", children: [
19
+ "\u201C",
20
+ t.quote,
21
+ "\u201D"
22
+ ] })
23
+ ] }),
24
+ /* @__PURE__ */ jsxs("figcaption", { className: "flex items-center gap-3", children: [
25
+ /* @__PURE__ */ jsx(Avatar, { name: t.name, src: t.avatar, size: "sm" }),
26
+ /* @__PURE__ */ jsxs("span", { className: "min-w-0", children: [
27
+ /* @__PURE__ */ jsx("span", { className: "block truncate text-[13px] font-medium", children: t.name }),
28
+ t.title && /* @__PURE__ */ jsx("span", { className: "block truncate text-[12px] text-mute", children: t.title })
29
+ ] })
30
+ ] })
31
+ ] });
32
+ }
33
+ function Testimonials({ items, variant = "marquee", speed = 60, label = "What customers say", className }) {
34
+ const root = useRef(null);
35
+ const [paused, setPaused] = useState(true);
36
+ useEffect(() => {
37
+ const el = root.current;
38
+ if (!el || variant !== "marquee") return;
39
+ let seen = false;
40
+ const sync = () => setPaused(!seen || document.hidden);
41
+ const io = new IntersectionObserver(([e]) => {
42
+ seen = e.isIntersecting;
43
+ sync();
44
+ });
45
+ io.observe(el);
46
+ document.addEventListener("visibilitychange", sync);
47
+ return () => {
48
+ io.disconnect();
49
+ document.removeEventListener("visibilitychange", sync);
50
+ };
51
+ }, [variant]);
52
+ const half = Math.ceil(items.length / 2);
53
+ const rows = [items.slice(0, half), items.slice(half).length ? items.slice(half) : items.slice(0, half)];
54
+ const grid = /* @__PURE__ */ jsx("div", { className: cx("asta-tm-still grid gap-3 @min-[560px]:grid-cols-2 @min-[860px]:grid-cols-3", variant === "marquee" && "hidden"), children: items.map((t, i) => /* @__PURE__ */ jsx(Card, { t }, t.name + i)) });
55
+ return /* @__PURE__ */ jsxs("section", { ref: root, "aria-label": label, "data-paused": paused || void 0, className: cx("asta-tm-root @container w-full", className), children: [
56
+ /* @__PURE__ */ jsx("style", { href: "asta-testimonials", precedence: "asta", children: KEYFRAMES }),
57
+ variant === "marquee" && /* @__PURE__ */ jsx("div", { className: "asta-tm-marquee flex flex-col gap-3 [mask-image:linear-gradient(90deg,transparent,#000_8%,#000_92%,transparent)]", children: rows.map((row, r) => /* @__PURE__ */ jsx("div", { className: "asta-tm-row overflow-hidden", children: /* @__PURE__ */ jsx(
58
+ "ul",
59
+ {
60
+ className: "asta-tm-track flex w-max will-change-transform",
61
+ style: { animation: `${r ? "asta-tm-right" : "asta-tm-left"} ${speed}s linear infinite` },
62
+ children: [0, 1].map(
63
+ (copy) => row.map((t, i) => /* @__PURE__ */ jsx("li", { "aria-hidden": copy === 1 || void 0, className: "w-[300px] shrink-0 pr-3 sm:w-[340px]", children: /* @__PURE__ */ jsx(Card, { t, className: "h-full" }) }, `${copy}-${i}`))
64
+ )
65
+ }
66
+ ) }, r)) }),
67
+ grid
68
+ ] });
69
+ }
70
+ var testimonials_default = Testimonials;
71
+
72
+ export {
73
+ Testimonials,
74
+ testimonials_default
75
+ };
@@ -211,7 +211,13 @@ function Candlestick() {
211
211
  /* @__PURE__ */ jsx("span", { className: "text-ink", children: f(ohlc.l) }),
212
212
  " C",
213
213
  " ",
214
- /* @__PURE__ */ jsx("span", { style: { color: ohlc.c >= ohlc.o ? "var(--brand)" : "var(--ink-2)" }, children: f(ohlc.c) })
214
+ /* @__PURE__ */ jsxs("span", { style: { color: ohlc.c >= ohlc.o ? "var(--brand)" : "var(--ink-2)" }, children: [
215
+ f(ohlc.c),
216
+ " ",
217
+ ohlc.c >= ohlc.o ? "+" : "\u2212",
218
+ Math.abs((ohlc.c - ohlc.o) / ohlc.o * 100).toFixed(2),
219
+ "%"
220
+ ] })
215
221
  ] }) : /* @__PURE__ */ jsx("span", { className: "uppercase tracking-[0.12em] text-mute", children: "ASTA / USD \xB7 1m" }) })
216
222
  ] });
217
223
  }
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  Avatar
4
- } from "./chunk-2LZM435Z.js";
4
+ } from "./chunk-IVCHYE55.js";
5
5
  import {
6
6
  Popover
7
- } from "./chunk-HPVPHWDM.js";
7
+ } from "./chunk-IATF2OTU.js";
8
8
 
9
9
  // components/kit/base/notification-center.tsx
10
10
  import { useId, useMemo, useRef, useState } from "react";
@@ -143,7 +143,7 @@ function Panel({
143
143
  t
144
144
  ))
145
145
  ] }),
146
- /* @__PURE__ */ jsx("div", { id: `${tabsId}-panel`, role: "tabpanel", "aria-labelledby": `${tabsId}-${tab}`, className: "mt-2 min-h-0 flex-1 overflow-y-auto pb-2 [scrollbar-width:thin]", children: groups.length === 0 ? /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center px-6 py-12 text-center", style: { animation: `kit-nc-in .4s ${CURVE}` }, children: [
146
+ /* @__PURE__ */ jsx("div", { id: `${tabsId}-panel`, role: "tabpanel", "aria-labelledby": `${tabsId}-${tab}`, className: "mt-2 min-h-0 flex-1 overflow-y-auto overscroll-contain pb-2 [scrollbar-width:thin]", children: groups.length === 0 ? /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center px-6 py-12 text-center", style: { animation: `kit-nc-in .4s ${CURVE}` }, children: [
147
147
  /* @__PURE__ */ jsx("span", { className: "grid h-11 w-11 place-items-center rounded-full bg-paper-2 text-mute", children: /* @__PURE__ */ jsx(BellIcon, { className: "h-5 w-5" }) }),
148
148
  /* @__PURE__ */ jsx("p", { className: "mt-4 text-[14px] font-medium text-ink", children: tab === "unread" ? "You're all caught up" : "No notifications yet" }),
149
149
  /* @__PURE__ */ jsx("p", { className: "mt-1 text-[12.5px] text-mute", children: tab === "unread" ? "New activity will show up here." : "When something happens, you'll see it here." })
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
 
3
3
  // components/kit/inline-edit.tsx
4
- import { useEffect, useLayoutEffect, useRef, useState } from "react";
4
+ import { useEffect, useId, useLayoutEffect, useRef, useState } from "react";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  var cx = (...c) => c.filter(Boolean).join(" ");
7
7
  var KEYFRAMES = `@keyframes asta-inline-edit-tick { 0% { opacity: 0; transform: scale(.6) } 18% { opacity: 1; transform: scale(1) } 80% { opacity: 1; transform: scale(1) } 100% { opacity: 0; transform: scale(1) } }`;
8
- var TEXT = { sm: "text-[13px]", md: "text-[14.5px]", lg: "text-[20px] font-medium tracking-[-0.02em]" };
8
+ var TEXT = { sm: "text-[16px] sm:text-[13px]", md: "text-[16px] sm:text-[14.5px]", lg: "text-[20px] font-medium tracking-[-0.02em]" };
9
9
  function InlineEdit({ value, defaultValue = "", onSave, onCancel, placeholder = "Empty", label, required, maxLength, saveOnBlur = true, size = "md", disabled, className }) {
10
10
  const [inner, setInner] = useState(defaultValue);
11
11
  const current = value ?? inner;
@@ -14,6 +14,7 @@ function InlineEdit({ value, defaultValue = "", onSave, onCancel, placeholder =
14
14
  const [saving, setSaving] = useState(false);
15
15
  const [failed, setFailed] = useState(false);
16
16
  const [saved, setSaved] = useState(0);
17
+ const failId = useId();
17
18
  const input = useRef(null);
18
19
  const display = useRef(null);
19
20
  const closing = useRef(false);
@@ -115,6 +116,8 @@ function InlineEdit({ value, defaultValue = "", onSave, onCancel, placeholder =
115
116
  onBlur: () => saveOnBlur ? void save(false) : cancel(false),
116
117
  "aria-label": label,
117
118
  "aria-invalid": failed || void 0,
119
+ "aria-describedby": failed ? failId : void 0,
120
+ autoComplete: "off",
118
121
  "aria-busy": saving || void 0,
119
122
  readOnly: saving,
120
123
  maxLength,
@@ -175,7 +178,7 @@ function InlineEdit({ value, defaultValue = "", onSave, onCancel, placeholder =
175
178
  saved
176
179
  ),
177
180
  /* @__PURE__ */ jsx("span", { role: "status", className: "sr-only", children: saved > 0 ? "Saved" : failed ? "Couldn't save. Try again or press Escape." : "" }),
178
- failed && editing && /* @__PURE__ */ jsx("span", { className: "shrink-0 text-[12px] text-mute", children: "Couldn't save" })
181
+ failed && editing && /* @__PURE__ */ jsx("span", { id: failId, className: "shrink-0 text-[12px] text-mute", children: "Couldn't save. Press Enter to retry." })
179
182
  ] });
180
183
  }
181
184
  var inline_edit_default = InlineEdit;
@@ -98,14 +98,18 @@ function PasskeySignIn({
98
98
  e.preventDefault();
99
99
  if (waiting) return;
100
100
  const next = {
101
- email: !email.trim() ? "Enter your email." : !validEmail(email) ? "That doesn't look like an email address." : "",
101
+ email: !email.trim() ? "Enter your email." : !validEmail(email) ? "Enter an email like name@company.com." : "",
102
102
  password: !password ? "Enter your password." : password.length < 8 ? "Use at least 8 characters." : "",
103
103
  form: ""
104
104
  };
105
105
  setErrors(next);
106
106
  if (next.email) shakeEl(emailBox.current);
107
107
  if (next.password) shakeEl(passBox.current);
108
- if (next.email || next.password) return;
108
+ if (next.email || next.password) {
109
+ const first = e.currentTarget.elements.namedItem(next.email ? "email" : "password");
110
+ if (first instanceof HTMLElement) first.focus();
111
+ return;
112
+ }
109
113
  setWaiting(true);
110
114
  try {
111
115
  await (onPassword ? onPassword({ email: email.trim(), password }) : wait(1200));
@@ -124,7 +128,7 @@ function PasskeySignIn({
124
128
  setMode("passkey");
125
129
  };
126
130
  const inputCls = (err) => cx(
127
- "h-11 w-full rounded-[9px] bg-paper/[0.06] px-3.5 text-[14.5px] text-paper outline-none transition-shadow duration-200 placeholder:text-paper/35 focus-visible:shadow-[inset_0_0_0_1px_var(--brand),0_0_0_4px_color-mix(in_srgb,var(--brand)_25%,transparent)]",
131
+ "h-11 w-full rounded-[9px] bg-paper/[0.06] px-3.5 text-[16px] sm:text-[14.5px] text-paper outline-none transition-shadow duration-200 placeholder:text-paper/35 focus-visible:shadow-[inset_0_0_0_1px_var(--brand),0_0_0_4px_color-mix(in_srgb,var(--brand)_25%,transparent)]",
128
132
  err ? "shadow-[inset_0_0_0_1.5px_var(--paper)]" : RING
129
133
  );
130
134
  const errLine = (key, msg) => msg ? /* @__PURE__ */ jsxs("p", { id: key, role: "alert", className: "mt-1.5 flex items-center gap-1.5 text-[12.5px] text-paper", style: { animation: `aui019-in .3s ${EASE} both` }, children: [
@@ -245,11 +249,18 @@ function PasskeySignIn({
245
249
  {
246
250
  ref: emailInput,
247
251
  id: `${id}-email`,
252
+ name: "email",
248
253
  type: "email",
249
254
  autoComplete: "username",
255
+ inputMode: "email",
256
+ autoCapitalize: "none",
257
+ spellCheck: false,
250
258
  placeholder: "you@company.com",
251
259
  value: email,
252
- onChange: (e) => setEmail(e.target.value),
260
+ onChange: (e) => {
261
+ setEmail(e.target.value);
262
+ if (errors.email) setErrors((x) => ({ ...x, email: "" }));
263
+ },
253
264
  "aria-invalid": !!errors.email || void 0,
254
265
  "aria-describedby": errors.email ? `${id}-email-err` : void 0,
255
266
  className: inputCls(errors.email)
@@ -263,11 +274,15 @@ function PasskeySignIn({
263
274
  "input",
264
275
  {
265
276
  id: `${id}-pass`,
277
+ name: "password",
266
278
  type: "password",
267
279
  autoComplete: "current-password",
268
- placeholder: "At least 8 characters",
280
+ placeholder: "At least 8 characters\u2026",
269
281
  value: password,
270
- onChange: (e) => setPassword(e.target.value),
282
+ onChange: (e) => {
283
+ setPassword(e.target.value);
284
+ if (errors.password || errors.form) setErrors((x) => ({ ...x, password: "", form: "" }));
285
+ },
271
286
  "aria-invalid": !!(errors.password || errors.form) || void 0,
272
287
  "aria-describedby": errors.password || errors.form ? `${id}-pass-err` : void 0,
273
288
  className: inputCls(errors.password || errors.form)
@@ -171,7 +171,7 @@ function Popover({ trigger, children, open, defaultOpen = false, onOpenChange, s
171
171
  className: cx(
172
172
  "fixed left-0 top-0 z-50 w-max max-w-[calc(100vw-16px)] rounded-xl bg-paper p-3 text-ink outline-none",
173
173
  "shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent),0_14px_36px_-14px_rgb(0_0_0/0.3),0_4px_10px_-6px_rgb(0_0_0/0.12)]",
174
- "animate-[asta-popover-in_.24s_cubic-bezier(.16,1,.3,1)_both] data-[state=closed]:animate-[asta-popover-out_.12s_ease-in_both]",
174
+ "animate-[asta-popover-in_.24s_cubic-bezier(.16,1,.3,1)_both] data-[state=closed]:animate-[asta-popover-out_.12s_cubic-bezier(.16,1,.3,1)_both]",
175
175
  "motion-reduce:![animation-duration:1ms]",
176
176
  className
177
177
  ),
@@ -34,8 +34,8 @@ function Dialog({ open, onOpenChange, title, description, children, footer, cont
34
34
  if (open || !mounted) return;
35
35
  const p = panel.current;
36
36
  if (!p || still()) return setMounted(false);
37
- backdrop.current?.animate([{ opacity: 1 }, { opacity: 0 }], { duration: 260, easing: "ease-in", fill: "forwards" });
38
- const a = p.animate([{ transform: "none", opacity: 1 }, { transform: fromTrigger(), opacity: 0 }], { duration: 320, easing: "cubic-bezier(.7,0,.84,0)", fill: "forwards" });
37
+ backdrop.current?.animate([{ opacity: 1 }, { opacity: 0 }], { duration: 200, easing: "ease-out", fill: "forwards" });
38
+ const a = p.animate([{ transform: "none", opacity: 1 }, { transform: fromTrigger(), opacity: 0 }], { duration: 280, easing: EASE, fill: "forwards" });
39
39
  a.onfinish = () => setMounted(false);
40
40
  return () => {
41
41
  a.onfinish = null;
@@ -62,7 +62,7 @@ function Dialog({ open, onOpenChange, title, description, children, footer, cont
62
62
  opener.current = null;
63
63
  },
64
64
  className: cx(
65
- "relative w-full max-w-[400px] rounded-2xl bg-paper p-6 outline-none",
65
+ "relative max-h-full w-full max-w-[400px] overflow-y-auto overscroll-contain rounded-2xl bg-paper p-6 outline-none",
66
66
  "shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_8%,transparent),0_24px_60px_-20px_rgb(0_0_0/0.45)]",
67
67
  className
68
68
  ),
@@ -180,7 +180,7 @@ function Panel({ uid, items, label, at, bounds, focusFirst, closing, onExited, o
180
180
  "fixed left-0 top-0 z-50 min-w-[220px] max-w-[calc(100vw-16px)] select-none rounded-xl bg-paper p-1.5 text-ink outline-none",
181
181
  "shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent),0_14px_36px_-14px_rgb(0_0_0/0.3),0_4px_10px_-6px_rgb(0_0_0/0.12)]",
182
182
  sub ? "animate-[asta-ctx-in_.2s_cubic-bezier(.16,1,.3,1)_both]" : "animate-[asta-ctx-in_.22s_cubic-bezier(.16,1,.3,1)_both]",
183
- "data-[state=closed]:pointer-events-none data-[state=closed]:animate-[asta-ctx-out_.12s_ease-in_both] motion-reduce:![animation-duration:1ms]",
183
+ "data-[state=closed]:pointer-events-none data-[state=closed]:animate-[asta-ctx-out_.12s_cubic-bezier(.16,1,.3,1)_both] motion-reduce:![animation-duration:1ms]",
184
184
  className
185
185
  ),
186
186
  children: [
@@ -53,8 +53,8 @@ function Checkbox({ checked, defaultChecked = false, onCheckedChange, disabled,
53
53
  }
54
54
  );
55
55
  if (!label) return /* @__PURE__ */ jsx("span", { className, children: box });
56
- return /* @__PURE__ */ jsxs("div", { className: cx("flex items-start gap-3", disabled && "opacity-60", className), children: [
57
- /* @__PURE__ */ jsx("span", { className: "pt-[1px]", children: box }),
56
+ return /* @__PURE__ */ jsxs("div", { className: cx("flex items-start", disabled && "opacity-60", className), children: [
57
+ /* @__PURE__ */ jsx("label", { htmlFor: cid, className: cx("pr-3 pt-[1px]", !disabled && "cursor-pointer"), children: box }),
58
58
  /* @__PURE__ */ jsxs("span", { className: "min-w-0", children: [
59
59
  /* @__PURE__ */ jsx("label", { htmlFor: cid, className: cx("block select-none text-[14px] leading-5 text-ink", !disabled && "cursor-pointer"), children: label }),
60
60
  description && /* @__PURE__ */ jsx("span", { id: `${cid}-d`, className: "mt-0.5 block text-[13px] leading-snug text-mute", children: description })
@@ -11,7 +11,13 @@ var SIZE = {
11
11
  lg: { box: "h-12 w-12", text: "text-[16px]", dot: "h-3 w-3" },
12
12
  xl: { box: "h-16 w-16", text: "text-[20px]", dot: "h-3.5 w-3.5" }
13
13
  };
14
- var STATUS = { online: "#30a46c", away: "#f5a524", busy: "#e5484d", offline: "var(--mute)" };
14
+ var PAPER = "var(--paper)";
15
+ var STATUS = {
16
+ online: "#30a46c",
17
+ away: `radial-gradient(closest-side at 30% 30%, ${PAPER} 92%, #f5a524 100%)`,
18
+ busy: `linear-gradient(${PAPER}, ${PAPER}) center / 60% 20% no-repeat, #e5484d`,
19
+ offline: `radial-gradient(closest-side, ${PAPER} 48%, var(--mute) 56%)`
20
+ };
15
21
  var FILLS = [
16
22
  "bg-ink text-paper",
17
23
  "bg-brand text-white",
@@ -14,7 +14,7 @@ function Digit({ d }) {
14
14
  }
15
15
  ) });
16
16
  }
17
- function NumberInput({ value, defaultValue = 0, onChange, min = 0, max = 999, step = 1, label, suffix, size = "md", className }) {
17
+ function NumberInput({ value, defaultValue = 0, onChange, min = 0, max = 999, step = 1, label, name, suffix, size = "md", className }) {
18
18
  const [inner, setInner] = useState(defaultValue);
19
19
  const current = value ?? inner;
20
20
  const latest = useRef(current);
@@ -132,7 +132,8 @@ function NumberInput({ value, defaultValue = 0, onChange, min = 0, max = 999, st
132
132
  ]
133
133
  }
134
134
  ),
135
- btn(1)
135
+ btn(1),
136
+ name && /* @__PURE__ */ jsx("input", { type: "hidden", name, value: current })
136
137
  ]
137
138
  }
138
139
  );