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
@@ -11,14 +11,22 @@ var EASE = "ease-[cubic-bezier(.16,1,.3,1)]";
11
11
  function Newsletter({ onSubscribe }) {
12
12
  const [email, setEmail] = useState("");
13
13
  const [state, setState] = useState("idle");
14
+ const [msg, setMsg] = useState("");
15
+ const field = useRef(null);
14
16
  const submit = async (e) => {
15
17
  e.preventDefault();
16
- if (!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email)) return setState("error");
18
+ if (!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email.trim())) {
19
+ setMsg(email.trim() ? "Enter an email like name@company.com." : "Enter your email to subscribe.");
20
+ setState("error");
21
+ field.current?.focus();
22
+ return;
23
+ }
17
24
  setState("busy");
18
25
  try {
19
- await (onSubscribe?.(email) ?? new Promise((r) => setTimeout(r, 900)));
26
+ await (onSubscribe?.(email.trim()) ?? new Promise((r) => setTimeout(r, 900)));
20
27
  setState("done");
21
28
  } catch {
29
+ setMsg("Couldn't subscribe right now. Try again in a moment.");
22
30
  setState("error");
23
31
  }
24
32
  };
@@ -40,8 +48,14 @@ function Newsletter({ onSubscribe }) {
40
48
  /* @__PURE__ */ jsx(
41
49
  "input",
42
50
  {
51
+ ref: field,
43
52
  id: "kit-footer-email",
53
+ name: "email",
44
54
  type: "email",
55
+ autoComplete: "email",
56
+ inputMode: "email",
57
+ autoCapitalize: "none",
58
+ spellCheck: false,
45
59
  value: email,
46
60
  onChange: (e) => {
47
61
  setEmail(e.target.value);
@@ -51,7 +65,7 @@ function Newsletter({ onSubscribe }) {
51
65
  "aria-invalid": state === "error" || void 0,
52
66
  "aria-describedby": "kit-footer-msg",
53
67
  tabIndex: state === "done" ? -1 : void 0,
54
- className: "min-w-0 flex-1 bg-transparent text-[14px] text-paper outline-none placeholder:text-paper/40"
68
+ className: "min-w-0 flex-1 bg-transparent text-[16px] sm:text-[14px] text-paper outline-none placeholder:text-paper/40"
55
69
  }
56
70
  ),
57
71
  /* @__PURE__ */ jsx(Button, { type: "submit", variant: "accent", size: "sm", shape: "pill", loading: state === "busy", className: "shadow-none", tabIndex: state === "done" ? -1 : void 0, children: "Subscribe" })
@@ -73,7 +87,7 @@ function Newsletter({ onSubscribe }) {
73
87
  ]
74
88
  }
75
89
  ),
76
- /* @__PURE__ */ jsx("p", { id: "kit-footer-msg", role: "status", className: "mt-2 h-4 text-[12px] text-[#ff8a8d]", children: state === "error" ? "That doesn't look like an email address." : "" })
90
+ /* @__PURE__ */ jsx("p", { id: "kit-footer-msg", role: "status", className: "mt-2 h-4 text-[12px] text-[#ff8a8d]", children: state === "error" ? msg : "" })
77
91
  ] });
78
92
  }
79
93
  function Wordmark({ text }) {
@@ -59,6 +59,7 @@ function ValidatedInput({
59
59
  const [inner, setInner] = useState(defaultValue);
60
60
  const value = valueProp ?? inner;
61
61
  const [status, setStatus] = useState(() => validate(value));
62
+ const [checked, setChecked] = useState(false);
62
63
  const [prev, setPrev] = useState(null);
63
64
  const statusRef = useRef(status);
64
65
  const onStatusRef = useRef(onStatus);
@@ -67,7 +68,8 @@ function ValidatedInput({
67
68
  });
68
69
  useEffect(() => {
69
70
  const t = setTimeout(() => {
70
- const next = validate(value);
71
+ let next = validate(value);
72
+ if (next.kind === "invalid" && !checked) next = validate("");
71
73
  const cur = statusRef.current;
72
74
  const same = cur.kind === next.kind && cur.text === next.text && (cur.kind !== "suggest" || next.kind === "suggest" && cur.suggestion === next.suggestion);
73
75
  if (same) return;
@@ -75,11 +77,12 @@ function ValidatedInput({
75
77
  statusRef.current = next;
76
78
  setStatus(next);
77
79
  onStatusRef.current?.(next);
78
- }, value ? delay : 0);
80
+ }, value && !checked ? delay : 0);
79
81
  return () => clearTimeout(t);
80
- }, [value, validate, delay]);
82
+ }, [value, validate, delay, checked]);
81
83
  const set = (v) => {
82
84
  if (valueProp === void 0) setInner(v);
85
+ if (checked && validate(v).kind !== "invalid") setChecked(false);
83
86
  onChange?.(v);
84
87
  };
85
88
  const valid = status.kind === "valid";
@@ -125,6 +128,8 @@ function ValidatedInput({
125
128
  id,
126
129
  type: "email",
127
130
  autoComplete: "email",
131
+ inputMode: "email",
132
+ autoCapitalize: "none",
128
133
  spellCheck: false,
129
134
  ...rest,
130
135
  value,
@@ -132,7 +137,11 @@ function ValidatedInput({
132
137
  "aria-invalid": status.kind === "invalid" || void 0,
133
138
  "aria-describedby": `${id}-msg`,
134
139
  onChange: (e) => set(e.target.value),
135
- className: "h-full min-w-0 flex-1 bg-transparent text-[14.5px] tracking-[-0.01em] text-ink outline-none placeholder:text-mute"
140
+ onBlur: (e) => {
141
+ setChecked(true);
142
+ rest.onBlur?.(e);
143
+ },
144
+ className: "h-full min-w-0 flex-1 bg-transparent text-[16px] sm:text-[14.5px] tracking-[-0.01em] text-ink outline-none placeholder:text-mute"
136
145
  }
137
146
  ),
138
147
  /* @__PURE__ */ jsx("span", { className: "grid h-6 w-6 shrink-0 place-items-center", "aria-hidden": true, children: valid && /* @__PURE__ */ jsx("span", { className: "grid h-5 w-5 place-items-center rounded-full bg-brand text-paper", style: { animation: `aui032-pop .5s ${EASE} both` }, children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "h-3 w-3", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsx("path", { d: "M3.5 8.5l3 3 6-7", pathLength: 1, strokeDasharray: "1", style: { animation: `aui032-draw .45s ${EASE} .18s both` } }) }) }, value) })
@@ -0,0 +1,160 @@
1
+ "use client";
2
+ import {
3
+ Meter
4
+ } from "./chunk-LS6CFF6X.js";
5
+ import {
6
+ Button
7
+ } from "./chunk-WSL4JGEA.js";
8
+
9
+ // components/kit/base/billing.tsx
10
+ import { useState } from "react";
11
+ import { jsx, jsxs } from "react/jsx-runtime";
12
+ var cx = (...c) => c.filter(Boolean).join(" ");
13
+ var KEYFRAMES = `@keyframes asta-billing-roll { from { opacity: 0; transform: translateY(55%) } }
14
+ @keyframes asta-billing-in { from { opacity: 0; transform: translateY(-4px) } }
15
+ @media (prefers-reduced-motion: reduce) { .asta-billing-a { animation: none !important } }`;
16
+ function Roll({ children }) {
17
+ return /* @__PURE__ */ jsx("span", { className: "inline-flex overflow-hidden align-bottom", "aria-live": "polite", children: /* @__PURE__ */ jsx("span", { className: "asta-billing-a inline-block animate-[asta-billing-roll_.45s_cubic-bezier(.16,1,.3,1)_both] tabular-nums", children }, children) });
18
+ }
19
+ function Group({ title, hint, children, aside }) {
20
+ return /* @__PURE__ */ jsxs("section", { className: "grid gap-3 py-6 first:pt-0 @min-[720px]:grid-cols-[220px_1fr] @min-[720px]:gap-10", children: [
21
+ /* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-3 @min-[720px]:block", children: [
22
+ /* @__PURE__ */ jsxs("div", { children: [
23
+ /* @__PURE__ */ jsx("h3", { className: "text-[14px] font-medium tracking-[-0.01em]", children: title }),
24
+ hint && /* @__PURE__ */ jsx("p", { className: "mt-1 text-[12.5px] leading-relaxed text-mute", children: hint })
25
+ ] }),
26
+ aside && /* @__PURE__ */ jsx("div", { className: "@min-[720px]:mt-3", children: aside })
27
+ ] }),
28
+ /* @__PURE__ */ jsx("div", { className: "min-w-0", children })
29
+ ] });
30
+ }
31
+ var rowCls = "flex items-center gap-3 rounded-[10px] bg-paper-2 px-4 py-3";
32
+ function Billing({ plans, currentPlan, renewsOn, daysLeft = 0, periodDays = 30, usage = [], card, invoices = [], currency = "USD", locale = "en-US", onChangePlan, onUpdateCard, className }) {
33
+ const [current, setCurrent] = useState(currentPlan);
34
+ const [pick, setPick] = useState(null);
35
+ const [saving, setSaving] = useState(false);
36
+ const [done, setDone] = useState(null);
37
+ const money = (n) => new Intl.NumberFormat(locale, { style: "currency", currency, minimumFractionDigits: n % 1 ? 2 : 0 }).format(n);
38
+ const cur = plans.find((p) => p.id === current) ?? plans[0];
39
+ const next = pick ? plans.find((p) => p.id === pick) : void 0;
40
+ const share = periodDays ? daysLeft / periodDays : 0;
41
+ const credit = Math.round(cur.price * share * 100) / 100;
42
+ const charge = next ? Math.round(next.price * share * 100) / 100 : 0;
43
+ const today = Math.max(0, Math.round((charge - credit) * 100) / 100);
44
+ const upgrade = next ? next.price > cur.price : false;
45
+ const confirm = async () => {
46
+ if (!next || saving) return;
47
+ setSaving(true);
48
+ try {
49
+ await onChangePlan?.(next.id);
50
+ setCurrent(next.id);
51
+ setDone(`You're on ${next.name} now.`);
52
+ setPick(null);
53
+ } finally {
54
+ setSaving(false);
55
+ }
56
+ };
57
+ return /* @__PURE__ */ jsxs("div", { className: cx("@container w-full text-ink", className), children: [
58
+ /* @__PURE__ */ jsx("style", { href: "asta-billing", precedence: "asta", children: KEYFRAMES }),
59
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
60
+ /* @__PURE__ */ jsxs(Group, { title: "Plan", hint: `Renews on ${renewsOn}. Change any time; we prorate the rest of the month.`, children: [
61
+ /* @__PURE__ */ jsx("div", { role: "radiogroup", "aria-label": "Plan", className: "grid gap-2 @min-[560px]:grid-cols-3", children: plans.map((p) => {
62
+ const isCur = p.id === current;
63
+ const on = (pick ?? current) === p.id;
64
+ return /* @__PURE__ */ jsxs(
65
+ "button",
66
+ {
67
+ type: "button",
68
+ role: "radio",
69
+ "aria-checked": on,
70
+ onClick: () => {
71
+ setPick(isCur ? null : p.id);
72
+ setDone(null);
73
+ },
74
+ className: cx(
75
+ "group/plan relative flex flex-col gap-1 rounded-[12px] p-4 text-left outline-none transition-[box-shadow,background-color] duration-200 focus-visible:ring-2 focus-visible:ring-brand/50",
76
+ on ? "bg-paper shadow-[inset_0_0_0_2px_var(--brand)]" : "bg-paper-2 hover:shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_18%,transparent)]"
77
+ ),
78
+ children: [
79
+ /* @__PURE__ */ jsxs("span", { className: "flex items-center justify-between gap-2", children: [
80
+ /* @__PURE__ */ jsx("span", { className: "text-[13.5px] font-medium", children: p.name }),
81
+ isCur && /* @__PURE__ */ jsx("span", { className: "rounded-md bg-ink px-1.5 py-0.5 text-[10.5px] font-medium text-paper", children: "Current" })
82
+ ] }),
83
+ /* @__PURE__ */ jsxs("span", { className: "text-[22px] font-medium tracking-[-0.03em] tabular-nums", children: [
84
+ money(p.price),
85
+ /* @__PURE__ */ jsx("span", { className: "text-[12.5px] font-normal tracking-normal text-mute", children: " /mo" })
86
+ ] }),
87
+ p.blurb && /* @__PURE__ */ jsx("span", { className: "text-[12px] text-mute", children: p.blurb }),
88
+ p.features && /* @__PURE__ */ jsx("ul", { className: "mt-2 flex flex-col gap-1 text-[12px] text-ink-2", children: p.features.map((f) => /* @__PURE__ */ jsxs("li", { className: "flex gap-1.5", children: [
89
+ /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "mt-[3px] h-3 w-3 shrink-0 text-brand", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "m3.5 8.5 3 3 6-7" }) }),
90
+ f
91
+ ] }, f)) })
92
+ ]
93
+ },
94
+ p.id
95
+ );
96
+ }) }),
97
+ next ? /* @__PURE__ */ jsxs("div", { className: "asta-billing-a mt-3 flex animate-[asta-billing-in_.35s_cubic-bezier(.16,1,.3,1)_both] flex-col gap-4 rounded-[12px] bg-paper-2 p-4", children: [
98
+ /* @__PURE__ */ jsxs("dl", { className: "grid flex-1 grid-cols-3 gap-3 text-[12px]", children: [
99
+ /* @__PURE__ */ jsxs("div", { children: [
100
+ /* @__PURE__ */ jsxs("dt", { className: "text-mute", children: [
101
+ next.name,
102
+ ", ",
103
+ daysLeft,
104
+ " days"
105
+ ] }),
106
+ /* @__PURE__ */ jsx("dd", { className: "mt-0.5 text-[14px] font-medium", children: /* @__PURE__ */ jsx(Roll, { children: money(charge) }) })
107
+ ] }),
108
+ /* @__PURE__ */ jsxs("div", { children: [
109
+ /* @__PURE__ */ jsxs("dt", { className: "text-mute", children: [
110
+ "Unused ",
111
+ cur.name
112
+ ] }),
113
+ /* @__PURE__ */ jsx("dd", { className: "mt-0.5 text-[14px] font-medium", children: /* @__PURE__ */ jsx(Roll, { children: `\u2212${money(credit)}` }) })
114
+ ] }),
115
+ /* @__PURE__ */ jsxs("div", { children: [
116
+ /* @__PURE__ */ jsx("dt", { className: "text-mute", children: upgrade ? "Due today" : "Credit" }),
117
+ /* @__PURE__ */ jsx("dd", { className: "mt-0.5 text-[14px] font-medium text-brand", children: /* @__PURE__ */ jsx(Roll, { children: upgrade ? money(today) : money(Math.max(0, credit - charge)) }) })
118
+ ] })
119
+ ] }),
120
+ /* @__PURE__ */ jsxs("div", { className: "flex justify-end gap-2 @max-[559px]:[&>*]:flex-1", children: [
121
+ /* @__PURE__ */ jsx(Button, { size: "sm", variant: "ghost", onClick: () => setPick(null), children: "Cancel" }),
122
+ /* @__PURE__ */ jsx(Button, { size: "sm", variant: "accent", loading: saving, onClick: confirm, children: upgrade ? `Upgrade to ${next.name}` : `Switch to ${next.name}` })
123
+ ] })
124
+ ] }, "preview") : /* @__PURE__ */ jsx("p", { className: "mt-3 h-5 text-[12.5px] text-mute", "aria-live": "polite", children: done ?? `${cur.name} \xB7 ${money(cur.price)} a month \xB7 next charge on ${renewsOn}` })
125
+ ] }),
126
+ usage.length > 0 && /* @__PURE__ */ jsx(Group, { title: "Usage", hint: "This billing period. Limits reset on renewal.", children: /* @__PURE__ */ jsx("div", { className: "grid gap-3 @min-[560px]:grid-cols-2", children: usage.map((u) => /* @__PURE__ */ jsx("div", { className: "rounded-[12px] bg-paper-2 p-4", children: /* @__PURE__ */ jsx(Meter, { label: u.label, value: u.value, max: u.max, format: u.format, size: "sm" }) }, u.label)) }) }),
127
+ card && /* @__PURE__ */ jsx(Group, { title: "Payment method", hint: "Charged on each renewal.", children: /* @__PURE__ */ jsxs("div", { className: rowCls, children: [
128
+ /* @__PURE__ */ jsx("span", { className: "grid h-8 w-12 shrink-0 place-items-center rounded-md bg-ink text-paper", "aria-hidden": true, children: /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 16", className: "h-4 w-6", fill: "none", stroke: "currentColor", strokeWidth: "1.4", children: [
129
+ /* @__PURE__ */ jsx("rect", { x: "1.5", y: "1.5", width: "21", height: "13", rx: "2" }),
130
+ /* @__PURE__ */ jsx("path", { d: "M1.5 5.5h21M5 11h4" })
131
+ ] }) }),
132
+ /* @__PURE__ */ jsxs("span", { className: "min-w-0 flex-1", children: [
133
+ /* @__PURE__ */ jsxs("span", { className: "block text-[13.5px] font-medium", children: [
134
+ "Card ending ",
135
+ card.last4
136
+ ] }),
137
+ /* @__PURE__ */ jsxs("span", { className: "block truncate text-[12px] text-mute", children: [
138
+ "Expires ",
139
+ card.expires,
140
+ card.holder ? ` \xB7 ${card.holder}` : ""
141
+ ] })
142
+ ] }),
143
+ onUpdateCard && /* @__PURE__ */ jsx(Button, { size: "xs", variant: "outline", onClick: onUpdateCard, children: "Update" })
144
+ ] }) }),
145
+ invoices.length > 0 && /* @__PURE__ */ jsx(Group, { title: "Invoices", hint: "Download any invoice as a PDF.", children: /* @__PURE__ */ jsx("ul", { className: "flex flex-col gap-1", children: invoices.map((inv) => /* @__PURE__ */ jsxs("li", { className: "flex items-center gap-3 rounded-[10px] px-4 py-2.5 text-[13px] odd:bg-paper-2", children: [
146
+ /* @__PURE__ */ jsx("span", { className: "w-[92px] shrink-0 tabular-nums text-ink-2 @max-[420px]:w-auto", children: inv.date }),
147
+ /* @__PURE__ */ jsx("span", { className: "hidden min-w-0 flex-1 truncate font-mono text-[12px] text-mute @min-[480px]:block", children: inv.id }),
148
+ /* @__PURE__ */ jsx("span", { className: "ml-auto font-medium tabular-nums @min-[480px]:ml-0", children: money(inv.amount) }),
149
+ /* @__PURE__ */ jsx("span", { className: cx("w-[52px] shrink-0 text-right text-[12px]", inv.status === "paid" ? "text-mute" : inv.status === "due" ? "text-ink" : "font-medium text-ink"), children: inv.status === "paid" ? "Paid" : inv.status === "due" ? "Due" : "Failed" }),
150
+ inv.href ? /* @__PURE__ */ jsx("a", { href: inv.href, "aria-label": `Download ${inv.id}`, className: "grid h-7 w-7 shrink-0 place-items-center rounded-md text-mute outline-none transition-colors hover:bg-paper hover:text-ink focus-visible:ring-2 focus-visible:ring-brand/50", children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "h-3.5 w-3.5", fill: "none", stroke: "currentColor", strokeWidth: "1.6", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "M8 2.5v8M4.5 7 8 10.5 11.5 7M3 13.5h10" }) }) }) : /* @__PURE__ */ jsx("span", { className: "w-7 shrink-0" })
151
+ ] }, inv.id)) }) })
152
+ ] })
153
+ ] });
154
+ }
155
+ var billing_default = Billing;
156
+
157
+ export {
158
+ Billing,
159
+ billing_default
160
+ };
@@ -92,6 +92,7 @@ function Dot({ on }) {
92
92
  className: cx(
93
93
  "h-1.5 w-1.5 rounded-full bg-white transition-transform duration-300 ease-[cubic-bezier(.34,1.8,.64,1)] motion-reduce:transition-none",
94
94
  on ? "scale-100" : "scale-0"
95
+ // perf-ok: 6px radio dot, not a surface
95
96
  )
96
97
  }
97
98
  )
@@ -0,0 +1,338 @@
1
+ "use client";
2
+ import {
3
+ Avatar
4
+ } from "./chunk-6RA7LJ3K.js";
5
+ import {
6
+ Button
7
+ } from "./chunk-ZWBJUJTR.js";
8
+
9
+ // components/kit/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
+ };
@@ -151,11 +151,12 @@ function ColorPicker({ value, defaultValue, onValueChange, swatches = DEFAULT_SW
151
151
  },
152
152
  spellCheck: false,
153
153
  autoComplete: "off",
154
+ autoCapitalize: "characters",
154
155
  maxLength: 7,
155
156
  disabled,
156
157
  "aria-invalid": invalid || void 0,
157
158
  "aria-describedby": invalid ? `${uid}-hint` : void 0,
158
- className: "h-full w-full min-w-0 bg-transparent pl-1 pr-2.5 font-mono text-[13px] uppercase tracking-[0.02em] text-ink outline-none placeholder:text-mute",
159
+ className: "h-full w-full min-w-0 bg-transparent pl-1 pr-2.5 font-mono text-[16px] sm:text-[13px] uppercase tracking-[0.02em] text-ink outline-none placeholder:text-mute",
159
160
  placeholder: "2F54EB"
160
161
  }
161
162
  )