asta-ui 0.9.3 → 0.9.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
@@ -0,0 +1,146 @@
1
+ "use client";
2
+ import {
3
+ Switch
4
+ } from "./chunk-DK2BM32V.js";
5
+ import {
6
+ Button
7
+ } from "./chunk-ZWBJUJTR.js";
8
+
9
+ // components/kit/cookie-consent.tsx
10
+ import { useEffect, useId, useRef, useState } from "react";
11
+ import { jsx, jsxs } from "react/jsx-runtime";
12
+ var cx = (...c) => c.filter(Boolean).join(" ");
13
+ var KEYFRAMES = `@keyframes asta-consent-in { from { opacity: 0; transform: translateY(18px) scale(.98) } }
14
+ @keyframes asta-consent-out { to { opacity: 0; transform: translateY(18px) scale(.98) } }
15
+ @keyframes asta-consent-view { from { opacity: 0; transform: translateX(var(--asta-consent-dx, 12px)) } }
16
+ @media (prefers-reduced-motion: reduce) { .asta-consent, .asta-consent-view { animation-duration: 1ms !important } }`;
17
+ var DEFAULT_CONSENT_CATEGORIES = [
18
+ { id: "necessary", label: "Strictly necessary", description: "Sign-in, security and your cart. The site can't work without these.", required: true },
19
+ { id: "preferences", label: "Preferences", description: "Remember your language, region and display settings.", defaultOn: true },
20
+ { id: "analytics", label: "Analytics", description: "Count visits and see which pages help, with no personal profile." },
21
+ { id: "marketing", label: "Marketing", description: "Measure campaigns and show more relevant ads elsewhere." }
22
+ ];
23
+ var POS = { "bottom-left": "left-4 bottom-4", "bottom-right": "right-4 bottom-4", bottom: "inset-x-4 bottom-4 mx-auto" };
24
+ function CookieConsent({
25
+ categories = DEFAULT_CONSENT_CATEGORIES,
26
+ title = "We use cookies",
27
+ message = "Some keep the site working. Others help us understand what's useful. You choose which.",
28
+ policyHref,
29
+ storageKey,
30
+ onConsent,
31
+ position = "bottom-left",
32
+ contained,
33
+ open,
34
+ onOpenChange,
35
+ className
36
+ }) {
37
+ const id = useId();
38
+ const [self, setSelf] = useState(false);
39
+ const [leaving, setLeaving] = useState(false);
40
+ const [view, setView] = useState("summary");
41
+ const [prefs, setPrefs] = useState(() => Object.fromEntries(categories.map((c) => [c.id, !!(c.required || c.defaultOn)])));
42
+ const timer = useRef(void 0);
43
+ const shown = (open ?? self) || leaving;
44
+ useEffect(() => {
45
+ if (open !== void 0) return;
46
+ let stored = null;
47
+ try {
48
+ stored = storageKey ? localStorage.getItem(storageKey) : null;
49
+ } catch {
50
+ }
51
+ const t = setTimeout(() => setSelf(!stored), 400);
52
+ return () => clearTimeout(t);
53
+ }, [storageKey, open]);
54
+ useEffect(() => () => clearTimeout(timer.current), []);
55
+ useEffect(() => {
56
+ if (open) {
57
+ const t = setTimeout(() => setView("summary"), 0);
58
+ return () => clearTimeout(t);
59
+ }
60
+ }, [open]);
61
+ const decide = (consent) => {
62
+ try {
63
+ if (storageKey) localStorage.setItem(storageKey, JSON.stringify({ consent, at: (/* @__PURE__ */ new Date()).toISOString() }));
64
+ } catch {
65
+ }
66
+ onConsent?.(consent);
67
+ setLeaving(true);
68
+ timer.current = setTimeout(() => {
69
+ setLeaving(false);
70
+ setSelf(false);
71
+ setView("summary");
72
+ }, 280);
73
+ onOpenChange?.(false);
74
+ };
75
+ const all = (on) => Object.fromEntries(categories.map((c) => [c.id, c.required ? true : on]));
76
+ if (!shown) return null;
77
+ return /* @__PURE__ */ jsxs(
78
+ "section",
79
+ {
80
+ role: "dialog",
81
+ "aria-modal": "false",
82
+ "aria-labelledby": `${id}-t`,
83
+ "aria-describedby": `${id}-d`,
84
+ className: cx(
85
+ "asta-consent z-50 w-[calc(100%-2rem)] max-w-[400px] rounded-[14px] bg-paper p-5 text-ink",
86
+ "shadow-[0_0_0_1px_color-mix(in_srgb,var(--ink)_9%,transparent),0_24px_48px_-20px_rgb(0_0_0/0.35),0_2px_8px_-2px_rgb(0_0_0/0.08)]",
87
+ contained ? "absolute" : "fixed",
88
+ POS[position],
89
+ leaving ? "pointer-events-none animate-[asta-consent-out_.28s_cubic-bezier(.16,1,.3,1)_both]" : "animate-[asta-consent-in_.5s_cubic-bezier(.16,1,.3,1)_both]",
90
+ className
91
+ ),
92
+ children: [
93
+ /* @__PURE__ */ jsx("style", { href: "asta-cookie-consent", precedence: "asta", children: KEYFRAMES }),
94
+ view === "summary" ? /* @__PURE__ */ jsxs("div", { className: "asta-consent-view animate-[asta-consent-view_.35s_cubic-bezier(.16,1,.3,1)_both] [--asta-consent-dx:-12px]", children: [
95
+ /* @__PURE__ */ jsx("h2", { id: `${id}-t`, className: "text-[15px] font-medium tracking-[-0.01em]", children: title }),
96
+ /* @__PURE__ */ jsxs("p", { id: `${id}-d`, className: "mt-1.5 text-[13px] leading-relaxed text-mute", children: [
97
+ message,
98
+ " ",
99
+ policyHref && /* @__PURE__ */ jsx("a", { href: policyHref, className: "text-ink underline decoration-[color-mix(in_srgb,var(--ink)_30%,transparent)] underline-offset-2 hover:decoration-current", children: "Cookie policy" })
100
+ ] }),
101
+ /* @__PURE__ */ jsxs("div", { className: "mt-4 flex flex-wrap items-center gap-2", children: [
102
+ /* @__PURE__ */ jsx(Button, { size: "sm", onClick: () => decide(all(true)), children: "Accept all" }),
103
+ /* @__PURE__ */ jsx(Button, { size: "sm", variant: "outline", onClick: () => decide(all(false)), children: "Reject all" }),
104
+ /* @__PURE__ */ jsx(Button, { size: "sm", variant: "ghost", className: "ml-auto", onClick: () => setView("custom"), children: "Customize" })
105
+ ] })
106
+ ] }, "summary") : /* @__PURE__ */ jsxs("div", { className: "asta-consent-view animate-[asta-consent-view_.35s_cubic-bezier(.16,1,.3,1)_both]", children: [
107
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
108
+ /* @__PURE__ */ jsx(
109
+ "button",
110
+ {
111
+ type: "button",
112
+ onClick: () => setView("summary"),
113
+ "aria-label": "Back",
114
+ className: "-ml-1.5 flex h-7 w-7 items-center justify-center rounded-md text-mute outline-none transition-colors hover:bg-paper-2 hover:text-ink focus-visible:ring-2 focus-visible:ring-brand/50",
115
+ children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "h-4 w-4", fill: "none", stroke: "currentColor", strokeWidth: "1.7", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "M10 3.5 5.5 8l4.5 4.5" }) })
116
+ }
117
+ ),
118
+ /* @__PURE__ */ jsx("h2", { id: `${id}-t`, className: "text-[15px] font-medium tracking-[-0.01em]", children: "Cookie preferences" })
119
+ ] }),
120
+ /* @__PURE__ */ jsx("p", { id: `${id}-d`, className: "sr-only", children: "Choose which kinds of cookies to allow." }),
121
+ /* @__PURE__ */ jsx("ul", { className: "mt-3 flex flex-col gap-1", children: categories.map((c) => /* @__PURE__ */ jsxs("li", { className: "flex items-start gap-4 rounded-[10px] bg-paper-2 px-3.5 py-3", children: [
122
+ /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
123
+ /* @__PURE__ */ jsxs("p", { className: "flex items-center gap-2 text-[13px] font-medium", children: [
124
+ c.label,
125
+ c.required && /* @__PURE__ */ jsx("span", { className: "rounded-[4px] bg-paper px-1.5 text-[10.5px] font-normal leading-[18px] text-mute", children: "Always on" })
126
+ ] }),
127
+ /* @__PURE__ */ jsx("p", { className: "mt-0.5 text-[12px] leading-snug text-mute", children: c.description })
128
+ ] }),
129
+ /* @__PURE__ */ jsx(Switch, { size: "sm", checked: prefs[c.id], disabled: c.required, onCheckedChange: (v) => setPrefs((p) => ({ ...p, [c.id]: v })), "aria-label": c.label })
130
+ ] }, c.id)) }),
131
+ /* @__PURE__ */ jsxs("div", { className: "mt-4 flex items-center justify-end gap-2", children: [
132
+ /* @__PURE__ */ jsx(Button, { size: "sm", variant: "outline", onClick: () => decide(all(false)), children: "Reject all" }),
133
+ /* @__PURE__ */ jsx(Button, { size: "sm", onClick: () => decide(prefs), children: "Save choices" })
134
+ ] })
135
+ ] }, "custom")
136
+ ]
137
+ }
138
+ );
139
+ }
140
+ var cookie_consent_default = CookieConsent;
141
+
142
+ export {
143
+ DEFAULT_CONSENT_CATEGORIES,
144
+ CookieConsent,
145
+ cookie_consent_default
146
+ };
@@ -316,7 +316,7 @@ function Navbar({ brand, brandHref = "/", items, docs, cta, scrollRoot, classNam
316
316
  {
317
317
  id: "kit-nav-sheet",
318
318
  hidden: !sheet,
319
- className: "kit-nav-motion absolute inset-x-0 top-full max-h-[calc(100svh-3.5rem)] overflow-y-auto bg-paper px-3 pb-6 pt-2 @min-[560px]:hidden",
319
+ className: "kit-nav-motion absolute inset-x-0 top-full max-h-[calc(100svh-3.5rem)] overflow-y-auto overscroll-contain bg-paper px-3 pb-6 pt-2 @min-[560px]:hidden",
320
320
  style: { animation: sheet ? "kit-nav-pop .4s cubic-bezier(.16,1,.3,1) both" : void 0 },
321
321
  children: [
322
322
  /* @__PURE__ */ jsx("ul", { className: "flex flex-col", children: items.map((it, i) => /* @__PURE__ */ jsx("li", { children: it.menu ? /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -38,6 +38,7 @@ function ChecklistPassword({
38
38
  const id = useId();
39
39
  const [inner, setInner] = useState(defaultValue);
40
40
  const [again, setAgain] = useState("");
41
+ const [againLeft, setAgainLeft] = useState(false);
41
42
  const [shown, setShown] = useState(false);
42
43
  const v = value ?? inner;
43
44
  const passed = rules.map((r) => r.test(v));
@@ -45,7 +46,7 @@ function ChecklistPassword({
45
46
  const all = count === rules.length;
46
47
  const match = !!again && again === v;
47
48
  const field = "flex h-11 items-center gap-2 rounded-[10px] bg-paper pl-3.5 pr-1.5 transition-shadow duration-200 shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_14%,transparent)] hover:shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_24%,transparent)] focus-within:!shadow-[inset_0_0_0_1px_var(--brand),0_0_0_4px_color-mix(in_srgb,var(--brand)_14%,transparent)]";
48
- const input = "h-full min-w-0 flex-1 bg-transparent text-[14.5px] tracking-[0.02em] text-ink outline-none placeholder:tracking-normal placeholder:text-mute";
49
+ const input = "h-full min-w-0 flex-1 bg-transparent text-[16px] sm:text-[14.5px] tracking-[0.02em] text-ink outline-none placeholder:tracking-normal placeholder:text-mute";
49
50
  return /* @__PURE__ */ jsxs("div", { className: cx("aui040 w-full max-w-[420px]", className), children: [
50
51
  /* @__PURE__ */ jsx("style", { href: "asta-password-input-aui-040", precedence: "asta", children: CSS }),
51
52
  /* @__PURE__ */ jsxs("div", { className: "mb-2 flex items-baseline justify-between", style: rise(0), children: [
@@ -65,7 +66,7 @@ function ChecklistPassword({
65
66
  name,
66
67
  type: shown ? "text" : "password",
67
68
  value: v,
68
- placeholder: "Choose a password",
69
+ placeholder: "Choose a password\u2026",
69
70
  autoComplete: "new-password",
70
71
  spellCheck: false,
71
72
  autoCapitalize: "off",
@@ -116,12 +117,16 @@ function ChecklistPassword({
116
117
  id: `${id}-again`,
117
118
  type: shown ? "text" : "password",
118
119
  value: again,
119
- placeholder: "Type it again",
120
+ placeholder: "Type it again\u2026",
120
121
  autoComplete: "new-password",
121
122
  spellCheck: false,
122
123
  autoCapitalize: "off",
123
- "aria-invalid": !!again && !match && again.length >= v.length ? true : void 0,
124
- onChange: (e) => setAgain(e.target.value),
124
+ "aria-invalid": againLeft && !!again && !match ? true : void 0,
125
+ onChange: (e) => {
126
+ setAgain(e.target.value);
127
+ if (e.target.value === v) setAgainLeft(false);
128
+ },
129
+ onBlur: () => setAgainLeft(true),
125
130
  className: input
126
131
  }
127
132
  ),
@@ -305,6 +305,9 @@ function AppNavbar({
305
305
  {
306
306
  ref: search,
307
307
  type: "text",
308
+ name: "q",
309
+ autoComplete: "off",
310
+ spellCheck: false,
308
311
  role: "combobox",
309
312
  "aria-expanded": palette,
310
313
  "aria-controls": `${ids}-list`,
@@ -319,7 +322,7 @@ function AppNavbar({
319
322
  },
320
323
  onKeyDown: keys,
321
324
  placeholder: searchPlaceholder,
322
- className: "min-w-0 flex-1 bg-transparent text-[13px] text-ink outline-none placeholder:text-mute"
325
+ className: "min-w-0 flex-1 bg-transparent text-[16px] sm:text-[13px] text-ink outline-none placeholder:text-mute"
323
326
  }
324
327
  ),
325
328
  /* @__PURE__ */ jsx("kbd", { className: cx("hidden shrink-0 rounded-[5px] bg-paper px-1.5 py-0.5 font-sans text-[11px] text-mute transition-opacity @min-[760px]:inline", RING, palette && "opacity-0"), children: mac ? "\u2318K" : "Ctrl K" })
@@ -420,13 +423,16 @@ function AppNavbar({
420
423
  {
421
424
  ref: sheetSearch,
422
425
  type: "text",
426
+ name: "q",
427
+ autoComplete: "off",
428
+ spellCheck: false,
423
429
  value: query,
424
430
  onChange: (e) => {
425
431
  setQuery(e.target.value);
426
432
  setActive(0);
427
433
  },
428
434
  placeholder: searchPlaceholder,
429
- className: "min-w-0 flex-1 bg-transparent text-[15px] text-ink outline-none placeholder:text-mute"
435
+ className: "min-w-0 flex-1 bg-transparent text-[16px] sm:text-[15px] text-ink outline-none placeholder:text-mute"
430
436
  }
431
437
  )
432
438
  ] }) }),
@@ -6,7 +6,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
6
6
  var cx = (...c) => c.filter(Boolean).join(" ");
7
7
  var KEYFRAMES = `@keyframes asta-stat-draw { from { stroke-dashoffset: 1 } }
8
8
  @keyframes asta-stat-fade { from { opacity: 0 } }
9
- @keyframes asta-stat-dot { from { opacity: 0; transform: scale(0) } }
9
+ @keyframes asta-stat-dot { from { opacity: 0; transform: scale(0) } } /* perf-ok: 4px end-of-line dot, not a surface */
10
10
  .asta-stat[data-inview="false"] .asta-stat-a { animation-play-state: paused }
11
11
  @media (prefers-reduced-motion: reduce) { .asta-stat .asta-stat-a { animation: none !important } }`;
12
12
  var W = 96;
@@ -0,0 +1,338 @@
1
+ "use client";
2
+ import {
3
+ Avatar
4
+ } from "./chunk-IVCHYE55.js";
5
+ import {
6
+ Button
7
+ } from "./chunk-WSL4JGEA.js";
8
+
9
+ // components/kit/base/inbox.tsx
10
+ import { useEffect, useLayoutEffect, useRef, useState } from "react";
11
+ import { jsx, jsxs } from "react/jsx-runtime";
12
+ var cx = (...c) => c.filter(Boolean).join(" ");
13
+ var EASE = "cubic-bezier(.16,1,.3,1)";
14
+ var KEYFRAMES = `@keyframes asta-inbox-in { from { opacity: 0; transform: translateY(6px) } }
15
+ @keyframes asta-inbox-bar { from { opacity: 0; transform: translateY(100%) } }
16
+ @keyframes asta-inbox-star { 0% { transform: scale(1) } 40% { transform: scale(1.35) rotate(-12deg) } 100% { transform: scale(1) } }
17
+ @media (prefers-reduced-motion: reduce) { .asta-inbox-a { animation: none !important; transition: none !important } }`;
18
+ var Icon = ({ d, className = "h-4 w-4", fill }) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className, fill: fill ? "currentColor" : "none", stroke: "currentColor", strokeWidth: "1.6", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d }) });
19
+ var STAR = "m8 2.2 1.75 3.55 3.9.57-2.82 2.75.67 3.9L8 11.12l-3.5 1.85.67-3.9L2.35 6.32l3.9-.57z";
20
+ var ARCHIVE = "M2.5 3.5h11v3h-11zM3.5 6.5v6h9v-6M6.5 9h3";
21
+ var MAIL = "M2.5 4h11v8h-11zM2.5 4.5 8 9l5.5-4.5";
22
+ function Inbox({ messages, onArchive, onReply, height = 560, className }) {
23
+ const [list, setList] = useState(messages);
24
+ const [sel, setSel] = useState(messages[0]?.id ?? null);
25
+ const [view, setView] = useState("list");
26
+ const [filter, setFilter] = useState("all");
27
+ const [query, setQuery] = useState("");
28
+ const [undo, setUndo] = useState(null);
29
+ const [reply, setReply] = useState("");
30
+ const [sent, setSent] = useState(null);
31
+ const rows = useRef(/* @__PURE__ */ new Map());
32
+ const btns = useRef(/* @__PURE__ */ new Map());
33
+ const flip = useRef(null);
34
+ const timer = useRef(void 0);
35
+ const q = query.trim().toLowerCase();
36
+ const shown = list.filter(
37
+ (m) => (filter === "all" || (filter === "unread" ? m.unread : m.starred)) && (!q || `${m.from} ${m.subject} ${m.preview}`.toLowerCase().includes(q))
38
+ );
39
+ const open = list.find((m) => m.id === sel) ?? null;
40
+ const unread = list.filter((m) => m.unread).length;
41
+ useEffect(() => () => clearTimeout(timer.current), []);
42
+ useLayoutEffect(() => {
43
+ const m = flip.current;
44
+ if (!m) return;
45
+ flip.current = null;
46
+ if (window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;
47
+ rows.current.forEach((el, id) => {
48
+ const old = m.get(id);
49
+ if (old === void 0) return el.animate([{ opacity: 0 }, { opacity: 1 }], { duration: 260, easing: EASE });
50
+ const d = old - el.getBoundingClientRect().top;
51
+ if (Math.abs(d) > 0.5) el.animate([{ transform: `translateY(${d}px)` }, { transform: "none" }], { duration: 360, easing: EASE });
52
+ });
53
+ }, [list]);
54
+ const snapshot = () => {
55
+ const m = /* @__PURE__ */ new Map();
56
+ rows.current.forEach((el, id) => m.set(id, el.getBoundingClientRect().top));
57
+ flip.current = m;
58
+ };
59
+ const patch = (id, p) => setList((l) => l.map((m) => m.id === id ? { ...m, ...p } : m));
60
+ const select = (id, focus = false) => {
61
+ setSel(id);
62
+ setView("message");
63
+ setSent(null);
64
+ setReply("");
65
+ patch(id, { unread: false });
66
+ if (focus) btns.current.get(id)?.focus();
67
+ };
68
+ const archive = (id) => {
69
+ const index = list.findIndex((m) => m.id === id);
70
+ if (index < 0) return;
71
+ if (undo) onArchive?.(undo.msg.id);
72
+ clearTimeout(timer.current);
73
+ snapshot();
74
+ const next = shown[shown.findIndex((m) => m.id === id) + 1] ?? shown[shown.findIndex((m) => m.id === id) - 1];
75
+ setList((l) => l.filter((m) => m.id !== id));
76
+ setUndo({ msg: list[index], index });
77
+ if (sel === id) {
78
+ setSel(next?.id ?? null);
79
+ if (!next) setView("list");
80
+ }
81
+ timer.current = setTimeout(() => {
82
+ onArchive?.(id);
83
+ setUndo(null);
84
+ }, 5e3);
85
+ };
86
+ const restore = () => {
87
+ if (!undo) return;
88
+ clearTimeout(timer.current);
89
+ snapshot();
90
+ setList((l) => {
91
+ const n = l.slice();
92
+ n.splice(Math.min(undo.index, n.length), 0, undo.msg);
93
+ return n;
94
+ });
95
+ setSel(undo.msg.id);
96
+ setUndo(null);
97
+ };
98
+ const onKey = (e) => {
99
+ const t = e.target;
100
+ if (t.closest("input, textarea") || e.metaKey || e.ctrlKey || e.altKey) return;
101
+ const i = shown.findIndex((m) => m.id === sel);
102
+ const go = (j) => {
103
+ const m = shown[Math.max(0, Math.min(shown.length - 1, j))];
104
+ if (!m) return;
105
+ e.preventDefault();
106
+ setSel(m.id);
107
+ patch(m.id, { unread: false });
108
+ btns.current.get(m.id)?.focus();
109
+ };
110
+ if (e.key === "j" || e.key === "ArrowDown") go(i + 1);
111
+ else if (e.key === "k" || e.key === "ArrowUp") go(i - 1);
112
+ else if (open && e.key === "e") archive(open.id);
113
+ else if (open && e.key === "s") patch(open.id, { starred: !open.starred });
114
+ else if (open && e.key === "u") patch(open.id, { unread: !open.unread });
115
+ };
116
+ const ghost = "flex h-8 w-8 items-center justify-center rounded-md text-mute outline-none transition-colors hover:bg-paper-2 hover:text-ink focus-visible:ring-2 focus-visible:ring-brand/50";
117
+ return /* @__PURE__ */ jsxs(
118
+ "div",
119
+ {
120
+ "data-view": view,
121
+ onKeyDown: onKey,
122
+ style: { height },
123
+ className: cx(
124
+ "group/inbox @container relative w-full overflow-hidden rounded-[14px] bg-paper text-ink shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent)]",
125
+ className
126
+ ),
127
+ children: [
128
+ /* @__PURE__ */ jsx("style", { href: "asta-inbox", precedence: "asta", children: KEYFRAMES }),
129
+ /* @__PURE__ */ jsxs("div", { className: "flex h-full @min-[640px]:grid @min-[640px]:grid-cols-[minmax(260px,340px)_1fr]", children: [
130
+ /* @__PURE__ */ jsxs(
131
+ "section",
132
+ {
133
+ "aria-label": "Messages",
134
+ className: cx(
135
+ "asta-inbox-a absolute inset-0 flex flex-col bg-paper transition-transform duration-500 @min-[640px]:static",
136
+ "@min-[640px]:shadow-[1px_0_0_color-mix(in_srgb,var(--ink)_8%,transparent)]",
137
+ "group-data-[view=message]/inbox:-translate-x-[30%] @min-[640px]:group-data-[view=message]/inbox:translate-x-0"
138
+ ),
139
+ style: { transitionTimingFunction: EASE },
140
+ children: [
141
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2.5 p-3 pb-2", children: [
142
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-1", children: [
143
+ /* @__PURE__ */ jsx("h2", { className: "text-[15px] font-medium tracking-[-0.01em]", children: "Inbox" }),
144
+ /* @__PURE__ */ jsxs("span", { className: "text-[12px] tabular-nums text-mute", children: [
145
+ unread,
146
+ " unread"
147
+ ] })
148
+ ] }),
149
+ /* @__PURE__ */ jsxs("label", { className: "flex h-9 items-center gap-2 rounded-lg bg-paper-2 px-2.5 text-mute focus-within:shadow-[inset_0_0_0_1px_var(--brand)]", children: [
150
+ /* @__PURE__ */ jsx(Icon, { d: "M7 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10Zm3.6-1.4L14 14", className: "h-3.5 w-3.5 shrink-0" }),
151
+ /* @__PURE__ */ jsx(
152
+ "input",
153
+ {
154
+ type: "search",
155
+ name: "q",
156
+ autoComplete: "off",
157
+ value: query,
158
+ onChange: (e) => setQuery(e.target.value),
159
+ placeholder: "Search mail\u2026",
160
+ "aria-label": "Search mail",
161
+ className: "h-full min-w-0 flex-1 bg-transparent text-[16px] sm:text-[13px] text-ink outline-none placeholder:text-mute [&::-webkit-search-cancel-button]:hidden"
162
+ }
163
+ )
164
+ ] }),
165
+ /* @__PURE__ */ jsx("div", { role: "radiogroup", "aria-label": "Show", className: "flex gap-1", children: ["all", "unread", "starred"].map((f) => /* @__PURE__ */ jsx(
166
+ "button",
167
+ {
168
+ type: "button",
169
+ role: "radio",
170
+ "aria-checked": filter === f,
171
+ onClick: () => setFilter(f),
172
+ className: cx(
173
+ "h-7 rounded-md px-2.5 text-[12px] font-medium capitalize outline-none transition-colors focus-visible:ring-2 focus-visible:ring-brand/50",
174
+ filter === f ? "bg-ink text-paper" : "text-mute hover:bg-paper-2 hover:text-ink"
175
+ ),
176
+ children: f
177
+ },
178
+ f
179
+ )) })
180
+ ] }),
181
+ /* @__PURE__ */ jsxs("ul", { className: "min-h-0 flex-1 overflow-y-auto overscroll-contain px-2 pb-14", children: [
182
+ shown.length === 0 && /* @__PURE__ */ jsx("li", { className: "px-3 py-10 text-center text-[13px] text-mute", children: q ? `Nothing matches \u201C${query}\u201D` : filter === "all" ? "Inbox zero. Nice." : `No ${filter} messages` }),
183
+ shown.map((m) => {
184
+ const active = m.id === sel;
185
+ return /* @__PURE__ */ jsxs(
186
+ "li",
187
+ {
188
+ ref: (el) => {
189
+ if (el) rows.current.set(m.id, el);
190
+ else rows.current.delete(m.id);
191
+ },
192
+ className: "group/row relative",
193
+ children: [
194
+ /* @__PURE__ */ jsxs(
195
+ "button",
196
+ {
197
+ ref: (el) => {
198
+ if (el) btns.current.set(m.id, el);
199
+ else btns.current.delete(m.id);
200
+ },
201
+ type: "button",
202
+ "aria-current": active || void 0,
203
+ onClick: () => select(m.id),
204
+ className: cx(
205
+ "flex w-full gap-3 rounded-[10px] px-2.5 py-2.5 pr-9 text-left outline-none transition-colors focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-brand/50",
206
+ active ? "bg-paper-2" : "hover:bg-paper-2/60"
207
+ ),
208
+ children: [
209
+ /* @__PURE__ */ jsxs("span", { className: "relative", children: [
210
+ /* @__PURE__ */ jsx(Avatar, { name: m.from, size: "sm" }),
211
+ m.unread && /* @__PURE__ */ jsx("span", { className: "absolute -left-1 top-0 h-2 w-2 rounded-full bg-brand ring-2 ring-paper", "aria-label": "Unread" })
212
+ ] }),
213
+ /* @__PURE__ */ jsxs("span", { className: "min-w-0 flex-1", children: [
214
+ /* @__PURE__ */ jsxs("span", { className: "flex items-baseline justify-between gap-2", children: [
215
+ /* @__PURE__ */ jsx("span", { className: cx("truncate text-[13px]", m.unread ? "font-semibold" : "font-medium text-ink-2"), children: m.from }),
216
+ /* @__PURE__ */ jsx("span", { className: "shrink-0 text-[11px] tabular-nums text-mute", children: m.time })
217
+ ] }),
218
+ /* @__PURE__ */ jsx("span", { className: cx("block truncate text-[12.5px]", m.unread ? "text-ink" : "text-ink-2"), children: m.subject }),
219
+ /* @__PURE__ */ jsx("span", { className: "block truncate text-[12px] text-mute", children: m.preview })
220
+ ] })
221
+ ]
222
+ }
223
+ ),
224
+ /* @__PURE__ */ jsx(
225
+ "button",
226
+ {
227
+ type: "button",
228
+ "aria-label": m.starred ? `Unstar ${m.subject}` : `Star ${m.subject}`,
229
+ "aria-pressed": !!m.starred,
230
+ onClick: () => patch(m.id, { starred: !m.starred }),
231
+ className: cx(
232
+ "absolute bottom-2 right-1.5 flex h-7 w-7 items-center justify-center rounded-md outline-none transition-[opacity,color] focus-visible:opacity-100 focus-visible:ring-2 focus-visible:ring-brand/50",
233
+ m.starred ? "text-brand" : "text-mute opacity-0 hover:text-ink group-hover/row:opacity-100 max-[640px]:opacity-100"
234
+ ),
235
+ children: /* @__PURE__ */ jsx("span", { className: cx("flex", m.starred && "asta-inbox-a animate-[asta-inbox-star_.4s_cubic-bezier(.16,1,.3,1)]"), children: /* @__PURE__ */ jsx(Icon, { d: STAR, className: "h-3.5 w-3.5", fill: m.starred }) }, String(!!m.starred))
236
+ }
237
+ )
238
+ ]
239
+ },
240
+ m.id
241
+ );
242
+ })
243
+ ] }),
244
+ undo && /* @__PURE__ */ jsxs("div", { role: "status", className: "asta-inbox-a absolute inset-x-3 bottom-3 flex animate-[asta-inbox-bar_.4s_cubic-bezier(.16,1,.3,1)_both] items-center justify-between gap-3 rounded-[10px] bg-ink px-3.5 py-2.5 text-[12.5px] text-paper shadow-[0_12px_28px_-12px_rgb(0_0_0/0.5)]", children: [
245
+ /* @__PURE__ */ jsxs("span", { className: "truncate", children: [
246
+ "Archived \u201C",
247
+ undo.msg.subject,
248
+ "\u201D"
249
+ ] }),
250
+ /* @__PURE__ */ jsx("button", { type: "button", onClick: restore, className: "shrink-0 rounded px-1 font-medium text-paper underline-offset-2 outline-none hover:underline focus-visible:ring-2 focus-visible:ring-paper/60", children: "Undo" })
251
+ ] })
252
+ ]
253
+ }
254
+ ),
255
+ /* @__PURE__ */ jsx(
256
+ "section",
257
+ {
258
+ "aria-label": "Message",
259
+ className: cx(
260
+ "asta-inbox-a absolute inset-0 flex min-w-0 flex-col bg-paper transition-transform duration-500 @min-[640px]:static",
261
+ "translate-x-full group-data-[view=message]/inbox:translate-x-0 @min-[640px]:translate-x-0"
262
+ ),
263
+ style: { transitionTimingFunction: EASE },
264
+ children: open ? /* @__PURE__ */ jsxs("div", { className: "asta-inbox-a flex min-h-0 flex-1 animate-[asta-inbox-in_.35s_cubic-bezier(.16,1,.3,1)_both] flex-col", children: [
265
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1 px-3 py-2.5", children: [
266
+ /* @__PURE__ */ jsx("button", { type: "button", onClick: () => setView("list"), "aria-label": "Back to inbox", className: cx(ghost, "@min-[640px]:hidden"), children: /* @__PURE__ */ jsx(Icon, { d: "M10 3.5 5.5 8l4.5 4.5" }) }),
267
+ /* @__PURE__ */ jsxs("div", { className: "ml-auto flex items-center gap-0.5", children: [
268
+ /* @__PURE__ */ jsx("button", { type: "button", onClick: () => archive(open.id), "aria-label": "Archive (e)", title: "Archive \xB7 e", className: ghost, children: /* @__PURE__ */ jsx(Icon, { d: ARCHIVE }) }),
269
+ /* @__PURE__ */ jsx("button", { type: "button", onClick: () => patch(open.id, { unread: !open.unread }), "aria-label": open.unread ? "Mark as read (u)" : "Mark as unread (u)", title: "Mark unread \xB7 u", className: ghost, children: /* @__PURE__ */ jsx(Icon, { d: MAIL }) }),
270
+ /* @__PURE__ */ jsx("button", { type: "button", onClick: () => patch(open.id, { starred: !open.starred }), "aria-label": open.starred ? "Unstar (s)" : "Star (s)", "aria-pressed": !!open.starred, title: "Star \xB7 s", className: cx(ghost, open.starred && "text-brand hover:text-brand"), children: /* @__PURE__ */ jsx(Icon, { d: STAR, fill: open.starred }) })
271
+ ] })
272
+ ] }),
273
+ /* @__PURE__ */ jsxs("div", { className: "min-h-0 flex-1 overflow-y-auto px-5 pb-5 @min-[640px]:px-7", children: [
274
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [
275
+ /* @__PURE__ */ jsx("h3", { className: "text-[18px] font-medium leading-snug tracking-[-0.02em]", children: open.subject }),
276
+ open.label && /* @__PURE__ */ jsx("span", { className: "rounded-md bg-paper-2 px-1.5 py-0.5 text-[11px] text-mute", children: open.label })
277
+ ] }),
278
+ /* @__PURE__ */ jsxs("div", { className: "mt-4 flex items-center gap-3", children: [
279
+ /* @__PURE__ */ jsx(Avatar, { name: open.from, size: "md" }),
280
+ /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
281
+ /* @__PURE__ */ jsx("p", { className: "truncate text-[13.5px] font-medium", children: open.from }),
282
+ /* @__PURE__ */ jsx("p", { className: "truncate text-[12px] text-mute", children: open.email })
283
+ ] }),
284
+ /* @__PURE__ */ jsx("span", { className: "shrink-0 text-[12px] text-mute", children: open.time })
285
+ ] }),
286
+ /* @__PURE__ */ jsx("div", { className: "mt-5 flex max-w-[60ch] flex-col gap-3 text-[13.5px] leading-relaxed text-ink-2", children: open.body.map((p, i) => /* @__PURE__ */ jsx("p", { children: p }, i)) })
287
+ ] }),
288
+ /* @__PURE__ */ jsxs(
289
+ "form",
290
+ {
291
+ className: "m-3 mt-0 flex flex-col gap-2 rounded-xl bg-paper-2 p-2.5",
292
+ onSubmit: (e) => {
293
+ e.preventDefault();
294
+ if (!reply.trim()) return;
295
+ onReply?.(open.id, reply.trim());
296
+ setSent(open.from);
297
+ setReply("");
298
+ },
299
+ children: [
300
+ /* @__PURE__ */ jsx(
301
+ "textarea",
302
+ {
303
+ name: "reply",
304
+ value: reply,
305
+ onChange: (e) => setReply(e.target.value),
306
+ onKeyDown: (e) => {
307
+ if (e.key === "Enter" && (e.metaKey || e.ctrlKey)) e.currentTarget.form?.requestSubmit();
308
+ },
309
+ rows: 2,
310
+ placeholder: `Reply to ${open.from.split(" ")[0]}\u2026`,
311
+ "aria-label": "Reply",
312
+ className: "w-full resize-none bg-transparent px-1.5 text-[16px] sm:text-[13px] leading-relaxed text-ink outline-none placeholder:text-mute"
313
+ }
314
+ ),
315
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2", children: [
316
+ /* @__PURE__ */ jsx("span", { className: "truncate px-1.5 text-[11.5px] text-mute", "aria-live": "polite", children: sent ? `Reply sent to ${sent}` : "\u2318 Enter to send" }),
317
+ /* @__PURE__ */ jsx(Button, { type: "submit", size: "xs", variant: "accent", disabled: !reply.trim(), children: "Send" })
318
+ ] })
319
+ ]
320
+ }
321
+ )
322
+ ] }, open.id) : /* @__PURE__ */ jsxs("div", { className: "flex flex-1 flex-col items-center justify-center gap-1 p-6 text-center", children: [
323
+ /* @__PURE__ */ jsx("p", { className: "text-[14px] font-medium", children: "No message open" }),
324
+ /* @__PURE__ */ jsx("p", { className: "text-[12.5px] text-mute", children: "Pick one from the list." })
325
+ ] })
326
+ }
327
+ )
328
+ ] })
329
+ ]
330
+ }
331
+ );
332
+ }
333
+ var inbox_default = Inbox;
334
+
335
+ export {
336
+ Inbox,
337
+ inbox_default
338
+ };
@@ -97,6 +97,7 @@ function PasswordField({
97
97
  /* @__PURE__ */ jsx(
98
98
  "input",
99
99
  {
100
+ name: "password",
100
101
  ...rest,
101
102
  id: inputId,
102
103
  type: shown ? "text" : "password",
@@ -110,7 +111,7 @@ function PasswordField({
110
111
  if (value === void 0) setInner(v);
111
112
  onChange?.(v, passwordStrength(v, rules));
112
113
  },
113
- className: "h-full min-w-0 flex-1 bg-transparent text-[14px] tracking-[0.01em] text-ink outline-none placeholder:text-mute"
114
+ className: "h-full min-w-0 flex-1 bg-transparent text-[16px] sm:text-[14px] tracking-[0.01em] text-ink outline-none placeholder:text-mute"
114
115
  }
115
116
  ),
116
117
  /* @__PURE__ */ jsx(
@@ -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
 
6
6
  // components/kit/base/kanban.tsx
7
7
  import { useEffect, useId, useLayoutEffect, useRef, useState } from "react";
@@ -132,7 +132,7 @@ function PaymentReceived() {
132
132
  @keyframes lab-pr-in { from { opacity: 0; transform: translateY(-40%) } to { opacity: 1; transform: none } }
133
133
  @keyframes lab-pr-draw { from { stroke-dashoffset: 1 } to { stroke-dashoffset: 0 } }
134
134
  @keyframes lab-pr-fade { from { opacity: 0 } to { opacity: 1 } }
135
- @keyframes lab-pr-dot { 0% { transform: scale(0) } 60% { transform: scale(1.4) } 100% { transform: scale(1) } }
135
+ @keyframes lab-pr-dot { 0% { transform: scale(0) } 60% { transform: scale(1.4) } 100% { transform: scale(1) } } /* perf-ok: chart end dot, not a surface */
136
136
  @keyframes lab-pr-live { from { transform: scale(1); opacity: .6 } to { transform: scale(2.6); opacity: 0 } }
137
137
  .lab-pr-drop { animation: lab-pr-drop .6s ${EASE} backwards }
138
138
  .lab-pr-in { animation: lab-pr-in .55s ${EASE} backwards }