asta-ui 0.9.2 → 0.9.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (448) hide show
  1. package/css/asta.css +2 -2
  2. package/css/asta.js +248 -1
  3. package/css/components.css +722 -44
  4. package/css/runtime/core.css +5 -5
  5. package/css/runtime/data.css +2 -2
  6. package/css/runtime/modules.css +49 -0
  7. package/css/runtime/modules.js +245 -0
  8. package/css/runtime/overlays.css +22 -9
  9. package/css/src/blocks.css +3 -3
  10. package/css/src/core.css +8 -8
  11. package/css/src/data.css +3 -3
  12. package/css/src/display.css +6 -5
  13. package/css/src/forms.css +6 -6
  14. package/css/src/modules.css +616 -0
  15. package/css/src/overlays.css +3 -3
  16. package/css/tokens.css +6 -2
  17. package/dist/ai-chat.js +1 -1
  18. package/dist/avatar-group.js +2 -2
  19. package/dist/avatar.js +1 -1
  20. package/dist/base/ai-chat.js +1 -1
  21. package/dist/base/avatar-group.js +2 -2
  22. package/dist/base/avatar.js +1 -1
  23. package/dist/base/billing.d.ts +2 -0
  24. package/dist/base/billing.js +11 -0
  25. package/dist/base/bubble-wrap.js +1 -1
  26. package/dist/base/candlestick.js +1 -1
  27. package/dist/base/card-checkout.js +1 -1
  28. package/dist/base/chart-card.d.ts +2 -0
  29. package/dist/base/chart-card.js +11 -0
  30. package/dist/base/chat-thread.js +1 -1
  31. package/dist/base/checkbox.js +1 -1
  32. package/dist/base/checkout.js +3 -3
  33. package/dist/base/color-picker.js +1 -1
  34. package/dist/base/combo-lock.js +1 -1
  35. package/dist/base/combobox-aui-046.js +1 -1
  36. package/dist/base/combobox-aui-047.js +1 -1
  37. package/dist/base/combobox.js +1 -1
  38. package/dist/base/command-palette.js +1 -1
  39. package/dist/base/comments.js +2 -2
  40. package/dist/base/context-menu.js +1 -1
  41. package/dist/base/cookie-consent.d.ts +2 -0
  42. package/dist/base/cookie-consent.js +13 -0
  43. package/dist/base/countdown.d.ts +2 -0
  44. package/dist/base/countdown.js +9 -0
  45. package/dist/base/data-table.js +1 -1
  46. package/dist/base/dialog.js +1 -1
  47. package/dist/base/dropdown-menu.js +1 -1
  48. package/dist/base/field.js +1 -1
  49. package/dist/base/file-manager.d.ts +2 -0
  50. package/dist/base/file-manager.js +19 -0
  51. package/dist/base/flash-sale.d.ts +2 -0
  52. package/dist/base/flash-sale.js +7 -0
  53. package/dist/base/footer-aui-027.js +1 -1
  54. package/dist/base/footer-aui-028.js +1 -1
  55. package/dist/base/footer.js +1 -1
  56. package/dist/base/hover-card.js +1 -1
  57. package/dist/base/inbox.d.ts +2 -0
  58. package/dist/base/inbox.js +11 -0
  59. package/dist/base/inline-edit.js +1 -1
  60. package/dist/base/input-aui-029.js +1 -1
  61. package/dist/base/input-aui-030.js +1 -1
  62. package/dist/base/input-aui-031.js +1 -1
  63. package/dist/base/input-aui-032.js +1 -1
  64. package/dist/base/input-aui-033.js +1 -1
  65. package/dist/base/input-aui-034.js +1 -1
  66. package/dist/base/input.js +1 -1
  67. package/dist/base/invoice.d.ts +2 -0
  68. package/dist/base/invoice.js +10 -0
  69. package/dist/base/kanban.js +2 -2
  70. package/dist/base/menubar.d.ts +2 -0
  71. package/dist/base/menubar.js +9 -0
  72. package/dist/base/meter.d.ts +2 -0
  73. package/dist/base/meter.js +9 -0
  74. package/dist/base/morse-tap.js +1 -1
  75. package/dist/base/navbar-aui-009.js +1 -1
  76. package/dist/base/navbar-aui-011.js +1 -1
  77. package/dist/base/navbar-aui-012.js +1 -1
  78. package/dist/base/navbar-aui-013.js +1 -1
  79. package/dist/base/navbar.js +1 -1
  80. package/dist/base/notification-center.js +3 -3
  81. package/dist/base/number-input.js +1 -1
  82. package/dist/base/order-book.js +1 -1
  83. package/dist/base/otp-input-aui-041.js +1 -1
  84. package/dist/base/otp-input-aui-042.js +1 -1
  85. package/dist/base/otp-input.js +1 -1
  86. package/dist/base/password-input-aui-039.js +1 -1
  87. package/dist/base/password-input-aui-040.js +1 -1
  88. package/dist/base/password-input.js +1 -1
  89. package/dist/base/payment-received.js +1 -1
  90. package/dist/base/phone-input.d.ts +2 -0
  91. package/dist/base/phone-input.js +13 -0
  92. package/dist/base/popover.js +1 -1
  93. package/dist/base/price-alert.d.ts +2 -0
  94. package/dist/base/price-alert.js +7 -0
  95. package/dist/base/price-chart.js +1 -1
  96. package/dist/base/properties-panel.js +1 -1
  97. package/dist/base/radio-group.js +1 -1
  98. package/dist/base/select-aui-045.js +1 -1
  99. package/dist/base/select.js +1 -1
  100. package/dist/base/settings-panel.js +1 -1
  101. package/dist/base/shipment-tracker.js +1 -1
  102. package/dist/base/sidebar.js +2 -2
  103. package/dist/base/sign-in-aui-015.js +1 -1
  104. package/dist/base/sign-in-aui-016.js +1 -1
  105. package/dist/base/sign-in-aui-017.js +1 -1
  106. package/dist/base/sign-in-aui-018.js +1 -1
  107. package/dist/base/sign-in-aui-019.js +1 -1
  108. package/dist/base/sign-in-aui-020.js +1 -1
  109. package/dist/base/sign-in.js +1 -1
  110. package/dist/base/snap-grid.js +1 -1
  111. package/dist/base/sortable-list.d.ts +2 -0
  112. package/dist/base/sortable-list.js +9 -0
  113. package/dist/base/split-bill.d.ts +2 -0
  114. package/dist/base/split-bill.js +7 -0
  115. package/dist/base/stat-card.js +1 -1
  116. package/dist/base/tag-input-aui-048.js +1 -1
  117. package/dist/base/tag-input-aui-049.js +1 -1
  118. package/dist/base/tag-input.js +1 -1
  119. package/dist/base/team-members.js +3 -3
  120. package/dist/base/testimonials.d.ts +2 -0
  121. package/dist/base/testimonials.js +10 -0
  122. package/dist/base/textarea-aui-001.js +1 -1
  123. package/dist/base/textarea-aui-002.js +1 -1
  124. package/dist/base/textarea-aui-003.js +1 -1
  125. package/dist/base/textarea-aui-004.js +1 -1
  126. package/dist/base/textarea-aui-005.js +1 -1
  127. package/dist/base/textarea-aui-006.js +1 -1
  128. package/dist/base/textarea-aui-007.js +1 -1
  129. package/dist/base/textarea-aui-008.js +1 -1
  130. package/dist/base/textarea-aui-035.js +1 -1
  131. package/dist/base/textarea-aui-036.js +1 -1
  132. package/dist/base/textarea-aui-037.js +1 -1
  133. package/dist/base/textarea-aui-038.js +1 -1
  134. package/dist/base/textarea.js +1 -1
  135. package/dist/base/token-swap.js +1 -1
  136. package/dist/base/tooltip.js +1 -1
  137. package/dist/base/trade-ticket.js +1 -1
  138. package/dist/base/watchlist.d.ts +2 -0
  139. package/dist/base/watchlist.js +7 -0
  140. package/dist/base.js +166 -90
  141. package/dist/billing.d.ts +2 -0
  142. package/dist/billing.js +11 -0
  143. package/dist/bubble-wrap.js +1 -1
  144. package/dist/candlestick.js +1 -1
  145. package/dist/card-checkout.js +1 -1
  146. package/dist/chart-card.d.ts +2 -0
  147. package/dist/chart-card.js +11 -0
  148. package/dist/chat-thread.js +1 -1
  149. package/dist/checkbox.js +1 -1
  150. package/dist/checkout.js +3 -3
  151. package/dist/{chunk-7TK42PS3.js → chunk-25RCKHWV.js} +19 -4
  152. package/dist/{chunk-4L4EKC46.js → chunk-2EBWWZPS.js} +1 -1
  153. package/dist/chunk-2F5CE6ZB.js +269 -0
  154. package/dist/{chunk-SATIWCJQ.js → chunk-2LM3VHNO.js} +3 -2
  155. package/dist/{chunk-5VQV2I7C.js → chunk-2PPF4GK5.js} +9 -6
  156. package/dist/{chunk-ZRGPSYW6.js → chunk-2PQIPQGO.js} +10 -6
  157. package/dist/{chunk-HB7DFNZP.js → chunk-3PQTSFOS.js} +1 -1
  158. package/dist/{chunk-VPZP6TCT.js → chunk-3UQIYJTI.js} +7 -3
  159. package/dist/{chunk-FY6BRODJ.js → chunk-3ZFF6VC5.js} +4 -2
  160. package/dist/{chunk-V3SPSN3A.js → chunk-45KDL3JM.js} +1 -1
  161. package/dist/{chunk-EVSTTLOT.js → chunk-4SLC3EK6.js} +18 -4
  162. package/dist/{chunk-VWYHP4SB.js → chunk-4WCMPLE3.js} +13 -4
  163. package/dist/chunk-5DLY6FGD.js +160 -0
  164. package/dist/{chunk-SRGDJSW7.js → chunk-5GGS6VP5.js} +1 -0
  165. package/dist/chunk-5N2G462S.js +338 -0
  166. package/dist/{chunk-FKHNK5VC.js → chunk-6C52ZQRB.js} +2 -1
  167. package/dist/{chunk-VVAL2JZJ.js → chunk-6MPEI6V5.js} +2 -2
  168. package/dist/{chunk-HNO6EUGJ.js → chunk-6RA7LJ3K.js} +7 -1
  169. package/dist/{chunk-RRHQBGRO.js → chunk-77RFV2MG.js} +7 -2
  170. package/dist/{chunk-RIWKIBEP.js → chunk-7MBTBYTJ.js} +3 -3
  171. package/dist/{chunk-XIU7K2YE.js → chunk-ADZI4ROA.js} +1 -1
  172. package/dist/{chunk-SAJ4D3Z2.js → chunk-AMVX4DDT.js} +7 -3
  173. package/dist/{chunk-7JNO265Q.js → chunk-B4XRAVHL.js} +33 -17
  174. package/dist/{chunk-MDI73RL6.js → chunk-B7MVYR7C.js} +7 -4
  175. package/dist/{chunk-OFPZUTBI.js → chunk-BEV2X4YL.js} +2 -1
  176. package/dist/chunk-BG2W2KVE.js +200 -0
  177. package/dist/chunk-BKHH2CJA.js +146 -0
  178. package/dist/{chunk-XRVVZA2Y.js → chunk-CACW5LH3.js} +1 -1
  179. package/dist/{chunk-I2WXKWTQ.js → chunk-CBJUY4WE.js} +10 -5
  180. package/dist/{chunk-746WX2DF.js → chunk-CSTI5CTF.js} +8 -2
  181. package/dist/{chunk-3KS5EN3Q.js → chunk-D2JJSUXI.js} +1 -1
  182. package/dist/chunk-D4AYULMF.js +338 -0
  183. package/dist/{chunk-4XM6DKEO.js → chunk-DD2TBHSJ.js} +2 -1
  184. package/dist/{chunk-B5OESWCR.js → chunk-DPLH3EGO.js} +1 -1
  185. package/dist/{chunk-5TSQZY34.js → chunk-DU3CZ3K7.js} +1 -1
  186. package/dist/{chunk-YON5SU2G.js → chunk-DWA62IYV.js} +5 -2
  187. package/dist/{chunk-FUNXYRSG.js → chunk-DWZT455C.js} +24 -9
  188. package/dist/{chunk-WSTQ6WZO.js → chunk-ECGJ6D5D.js} +3 -2
  189. package/dist/{chunk-3JNUC3FU.js → chunk-EN6XBXW5.js} +1 -1
  190. package/dist/{chunk-GJ3R6IZL.js → chunk-EOZDJA7Z.js} +1 -1
  191. package/dist/{chunk-KXWC2UHE.js → chunk-FBIGYEFN.js} +6 -3
  192. package/dist/{chunk-RS3XHHDE.js → chunk-FDE3S2YK.js} +1 -1
  193. package/dist/{chunk-DRX3KRNL.js → chunk-FFRJW5O7.js} +3 -2
  194. package/dist/{chunk-UEOEWP7L.js → chunk-FIPWA5KL.js} +3 -2
  195. package/dist/chunk-FLCT7THQ.js +75 -0
  196. package/dist/{chunk-RTAHGY6P.js → chunk-FOJRZASV.js} +7 -1
  197. package/dist/{chunk-CA7YQ5BJ.js → chunk-FQ4YUKAE.js} +3 -3
  198. package/dist/{chunk-33N6SZB5.js → chunk-FXXR3FM3.js} +6 -3
  199. package/dist/{chunk-BGVAXPHD.js → chunk-G7WTEBMX.js} +21 -6
  200. package/dist/{chunk-HPVPHWDM.js → chunk-IATF2OTU.js} +1 -1
  201. package/dist/{chunk-CLCP2GFW.js → chunk-IDXERBKL.js} +3 -3
  202. package/dist/{chunk-NB7X26PY.js → chunk-IF6CWIUB.js} +1 -1
  203. package/dist/{chunk-WVIV4JBH.js → chunk-ITGWD7ZY.js} +2 -2
  204. package/dist/{chunk-2LZM435Z.js → chunk-IVCHYE55.js} +7 -1
  205. package/dist/{chunk-BH2DLHFW.js → chunk-JE2MAZGR.js} +3 -2
  206. package/dist/{chunk-W57O4RLL.js → chunk-JF4BKHFK.js} +37 -9
  207. package/dist/{chunk-QDRBMWRX.js → chunk-JLCSRNI2.js} +7 -3
  208. package/dist/{chunk-7L4YE6HM.js → chunk-JNNMKFEQ.js} +1 -1
  209. package/dist/{chunk-GDTSCUHY.js → chunk-JRD6FENH.js} +1 -1
  210. package/dist/{chunk-F5I6EK7F.js → chunk-JSS4QASL.js} +1 -1
  211. package/dist/{chunk-B5F775GP.js → chunk-JWBGI7FN.js} +1 -1
  212. package/dist/{chunk-WTNNS7AX.js → chunk-JX7V6EFT.js} +36 -9
  213. package/dist/{chunk-7SNVRPED.js → chunk-KEMC4RIF.js} +2 -1
  214. package/dist/chunk-KVARQNGF.js +123 -0
  215. package/dist/chunk-LDTCIVDX.js +146 -0
  216. package/dist/{chunk-45VUWOHQ.js → chunk-LKRE4HLZ.js} +4 -2
  217. package/dist/{chunk-ZN3W5PAI.js → chunk-LOHFV5JF.js} +1 -1
  218. package/dist/chunk-LS6CFF6X.js +80 -0
  219. package/dist/{chunk-I5NZSWDW.js → chunk-MAKFUH34.js} +33 -17
  220. package/dist/{chunk-OQU6KGVR.js → chunk-MDB4RFMV.js} +1 -1
  221. package/dist/{chunk-FDHU3RWR.js → chunk-MJJU6OLM.js} +1 -1
  222. package/dist/{chunk-PIC5ZIR3.js → chunk-MPH64VG7.js} +1 -1
  223. package/dist/{chunk-AYSC7AIC.js → chunk-MVE7RJJ6.js} +1 -1
  224. package/dist/{chunk-2SQQFICY.js → chunk-N3X4T5OR.js} +25 -8
  225. package/dist/{chunk-CNY76NHF.js → chunk-NFJDL44V.js} +7 -3
  226. package/dist/{chunk-FJGGXXTT.js → chunk-NPVUFQGC.js} +1 -1
  227. package/dist/{chunk-QSLS3ENY.js → chunk-NVLYF4UL.js} +1 -1
  228. package/dist/chunk-O626XQW2.js +165 -0
  229. package/dist/chunk-OH5VAD27.js +224 -0
  230. package/dist/{chunk-TIAKMX7U.js → chunk-OIOZQP2H.js} +1 -1
  231. package/dist/{chunk-56BEMYK3.js → chunk-OU3EEX4Y.js} +1 -1
  232. package/dist/{chunk-6AZKJUL4.js → chunk-OUIOJROO.js} +1 -1
  233. package/dist/{chunk-OLNMOTAD.js → chunk-PAXDHYBX.js} +18 -4
  234. package/dist/chunk-PIE76JKF.js +224 -0
  235. package/dist/{chunk-6B6NTRMC.js → chunk-PIXHOFUT.js} +7 -2
  236. package/dist/{chunk-FATLQKRY.js → chunk-PZ2ZUHC3.js} +3 -3
  237. package/dist/chunk-Q5A5OTLI.js +192 -0
  238. package/dist/{chunk-TXRLBMFL.js → chunk-QASSYLQQ.js} +3 -2
  239. package/dist/{chunk-TCID6NNE.js → chunk-QJXVIEB5.js} +1 -1
  240. package/dist/{chunk-K5PWBSVO.js → chunk-QWOO4V7N.js} +2 -2
  241. package/dist/chunk-RGVRHFKY.js +213 -0
  242. package/dist/{chunk-J6GK2V2C.js → chunk-RQNXELUL.js} +2 -1
  243. package/dist/{chunk-KQCXQY5K.js → chunk-RXOVKEYG.js} +2 -1
  244. package/dist/{chunk-NICNFGHT.js → chunk-S2VTHA6G.js} +2 -2
  245. package/dist/chunk-SCQ6A4ZG.js +247 -0
  246. package/dist/{chunk-EVCUN45S.js → chunk-SMZVKQKM.js} +3 -2
  247. package/dist/{chunk-GERWW3CA.js → chunk-SR4NYQWO.js} +2 -2
  248. package/dist/{chunk-DQWKBQBT.js → chunk-TAAAYFBT.js} +2 -2
  249. package/dist/{chunk-S2DJLW6B.js → chunk-TBMUSER2.js} +1 -1
  250. package/dist/chunk-TMOEFAXQ.js +165 -0
  251. package/dist/chunk-TXC6CCSA.js +75 -0
  252. package/dist/chunk-UC55XR76.js +193 -0
  253. package/dist/{chunk-5U4H2CXC.js → chunk-UJYZZSII.js} +11 -4
  254. package/dist/chunk-UOOGRGEC.js +185 -0
  255. package/dist/{chunk-ZBF2UYXP.js → chunk-USDST2TI.js} +1 -1
  256. package/dist/{chunk-W7RITVDV.js → chunk-UX6CWJT7.js} +1 -1
  257. package/dist/{chunk-U7BYEW3Y.js → chunk-UZF7SCRT.js} +13 -5
  258. package/dist/{chunk-Q7OHWQP2.js → chunk-V7JUJQNR.js} +1 -0
  259. package/dist/{chunk-WWQV7LE7.js → chunk-VNUX5LOC.js} +24 -9
  260. package/dist/{chunk-CTO36MY2.js → chunk-VS3GQ4JR.js} +2 -2
  261. package/dist/{chunk-UMDVPRJW.js → chunk-VTTXURIB.js} +1 -1
  262. package/dist/{chunk-6NNHSXFD.js → chunk-W2S6JDBM.js} +1 -1
  263. package/dist/{chunk-3XMVXIOF.js → chunk-W5M3EHJL.js} +4 -2
  264. package/dist/chunk-X2VID7XY.js +228 -0
  265. package/dist/{chunk-H7D6G3GQ.js → chunk-X4JYOCFA.js} +7 -1
  266. package/dist/{chunk-6VQTFRSP.js → chunk-XKA3LTJZ.js} +37 -9
  267. package/dist/{chunk-7GKCX4IE.js → chunk-XUZH4Y52.js} +1 -1
  268. package/dist/{chunk-UAP47MSR.js → chunk-Y4JOW2UW.js} +11 -5
  269. package/dist/{chunk-T4SOPNM5.js → chunk-YCXZ3TYF.js} +1 -1
  270. package/dist/{chunk-2KJNBHUV.js → chunk-YF3XSH54.js} +2 -1
  271. package/dist/{chunk-66OZ7CBK.js → chunk-YJAZHJY3.js} +1 -1
  272. package/dist/{chunk-4WK3F76T.js → chunk-YLILJ2FH.js} +1 -1
  273. package/dist/{chunk-FGQPCDXI.js → chunk-YNPG4WOS.js} +1 -1
  274. package/dist/chunk-YPFZXGPT.js +160 -0
  275. package/dist/{chunk-KYFZ5TTK.js → chunk-YRPLUNP4.js} +3 -1
  276. package/dist/{chunk-P3USWDWR.js → chunk-YVGC7QT7.js} +4 -2
  277. package/dist/{chunk-4ZJEAWNG.js → chunk-Z2DF2YL5.js} +4 -2
  278. package/dist/{chunk-JAQANAOP.js → chunk-ZUH7XRX7.js} +19 -4
  279. package/dist/{chunk-UWQ26LYZ.js → chunk-ZYI6J34Q.js} +2 -2
  280. package/dist/{chunk-BOJCW7Z7.js → chunk-ZZ25XSK2.js} +3 -2
  281. package/dist/color-picker.js +1 -1
  282. package/dist/combo-lock.js +1 -1
  283. package/dist/combobox-aui-046.js +1 -1
  284. package/dist/combobox-aui-047.js +1 -1
  285. package/dist/combobox.js +1 -1
  286. package/dist/command-palette.js +1 -1
  287. package/dist/comments.js +2 -2
  288. package/dist/context-menu.js +1 -1
  289. package/dist/cookie-consent.d.ts +2 -0
  290. package/dist/cookie-consent.js +13 -0
  291. package/dist/countdown.d.ts +2 -0
  292. package/dist/countdown.js +9 -0
  293. package/dist/data-table.js +1 -1
  294. package/dist/dialog.js +1 -1
  295. package/dist/dropdown-menu.js +1 -1
  296. package/dist/field.js +1 -1
  297. package/dist/file-manager.d.ts +2 -0
  298. package/dist/file-manager.js +19 -0
  299. package/dist/flash-sale.d.ts +2 -0
  300. package/dist/flash-sale.js +7 -0
  301. package/dist/footer-aui-027.js +1 -1
  302. package/dist/footer-aui-028.js +1 -1
  303. package/dist/footer.js +1 -1
  304. package/dist/hover-card.js +1 -1
  305. package/dist/inbox.d.ts +2 -0
  306. package/dist/inbox.js +11 -0
  307. package/dist/index.js +166 -90
  308. package/dist/inline-edit.js +1 -1
  309. package/dist/input-aui-029.js +1 -1
  310. package/dist/input-aui-030.js +1 -1
  311. package/dist/input-aui-031.js +1 -1
  312. package/dist/input-aui-032.js +1 -1
  313. package/dist/input-aui-033.js +1 -1
  314. package/dist/input-aui-034.js +1 -1
  315. package/dist/input.js +1 -1
  316. package/dist/invoice.d.ts +2 -0
  317. package/dist/invoice.js +10 -0
  318. package/dist/kanban.js +2 -2
  319. package/dist/menubar.d.ts +2 -0
  320. package/dist/menubar.js +9 -0
  321. package/dist/meter.d.ts +2 -0
  322. package/dist/meter.js +9 -0
  323. package/dist/morse-tap.js +1 -1
  324. package/dist/navbar-aui-009.js +1 -1
  325. package/dist/navbar-aui-011.js +1 -1
  326. package/dist/navbar-aui-012.js +1 -1
  327. package/dist/navbar-aui-013.js +1 -1
  328. package/dist/navbar.js +1 -1
  329. package/dist/notification-center.js +3 -3
  330. package/dist/number-input.js +1 -1
  331. package/dist/order-book.js +1 -1
  332. package/dist/otp-input-aui-041.js +1 -1
  333. package/dist/otp-input-aui-042.js +1 -1
  334. package/dist/otp-input.js +1 -1
  335. package/dist/password-input-aui-039.js +1 -1
  336. package/dist/password-input-aui-040.js +1 -1
  337. package/dist/password-input.js +1 -1
  338. package/dist/payment-received.js +1 -1
  339. package/dist/phone-input.d.ts +2 -0
  340. package/dist/phone-input.js +13 -0
  341. package/dist/popover.js +1 -1
  342. package/dist/price-alert.d.ts +2 -0
  343. package/dist/price-alert.js +7 -0
  344. package/dist/price-chart.js +1 -1
  345. package/dist/properties-panel.js +1 -1
  346. package/dist/radio-group.js +1 -1
  347. package/dist/select-aui-045.js +1 -1
  348. package/dist/select.js +1 -1
  349. package/dist/settings-panel.js +1 -1
  350. package/dist/shipment-tracker.js +1 -1
  351. package/dist/sidebar.js +2 -2
  352. package/dist/sign-in-aui-015.js +1 -1
  353. package/dist/sign-in-aui-016.js +1 -1
  354. package/dist/sign-in-aui-017.js +1 -1
  355. package/dist/sign-in-aui-018.js +1 -1
  356. package/dist/sign-in-aui-019.js +1 -1
  357. package/dist/sign-in-aui-020.js +1 -1
  358. package/dist/sign-in.js +1 -1
  359. package/dist/snap-grid.js +1 -1
  360. package/dist/sortable-list.d.ts +2 -0
  361. package/dist/sortable-list.js +9 -0
  362. package/dist/split-bill.d.ts +2 -0
  363. package/dist/split-bill.js +7 -0
  364. package/dist/stat-card.js +1 -1
  365. package/dist/styles.css +2 -2
  366. package/dist/tag-input-aui-048.js +1 -1
  367. package/dist/tag-input-aui-049.js +1 -1
  368. package/dist/tag-input.js +1 -1
  369. package/dist/team-members.js +3 -3
  370. package/dist/testimonials.d.ts +2 -0
  371. package/dist/testimonials.js +10 -0
  372. package/dist/textarea-aui-001.js +1 -1
  373. package/dist/textarea-aui-002.js +1 -1
  374. package/dist/textarea-aui-003.js +1 -1
  375. package/dist/textarea-aui-004.js +1 -1
  376. package/dist/textarea-aui-005.js +1 -1
  377. package/dist/textarea-aui-006.js +1 -1
  378. package/dist/textarea-aui-007.js +1 -1
  379. package/dist/textarea-aui-008.js +1 -1
  380. package/dist/textarea-aui-035.js +1 -1
  381. package/dist/textarea-aui-036.js +1 -1
  382. package/dist/textarea-aui-037.js +1 -1
  383. package/dist/textarea-aui-038.js +1 -1
  384. package/dist/textarea.js +1 -1
  385. package/dist/token-swap.js +1 -1
  386. package/dist/tooltip.js +1 -1
  387. package/dist/trade-ticket.js +1 -1
  388. package/dist/types/components/kit/base/billing.d.ts +53 -0
  389. package/dist/types/components/kit/base/cookie-consent.d.ts +37 -0
  390. package/dist/types/components/kit/base/file-manager.d.ts +41 -0
  391. package/dist/types/components/kit/base/inbox.d.ts +33 -0
  392. package/dist/types/components/kit/base/invoice.d.ts +45 -0
  393. package/dist/types/components/kit/base/testimonials.d.ts +25 -0
  394. package/dist/types/components/kit/billing.d.ts +53 -0
  395. package/dist/types/components/kit/chart-card.d.ts +43 -0
  396. package/dist/types/components/kit/cookie-consent.d.ts +37 -0
  397. package/dist/types/components/kit/countdown.d.ts +21 -0
  398. package/dist/types/components/kit/file-manager.d.ts +41 -0
  399. package/dist/types/components/kit/inbox.d.ts +33 -0
  400. package/dist/types/components/kit/invoice.d.ts +45 -0
  401. package/dist/types/components/kit/menubar.d.ts +41 -0
  402. package/dist/types/components/kit/meter.d.ts +32 -0
  403. package/dist/types/components/kit/number-input.d.ts +3 -1
  404. package/dist/types/components/kit/phone-input.d.ts +42 -0
  405. package/dist/types/components/kit/sortable-list.d.ts +25 -0
  406. package/dist/types/components/kit/tag-input.d.ts +3 -1
  407. package/dist/types/components/kit/testimonials.d.ts +25 -0
  408. package/dist/types/components/lab/blocks/FlashSale.d.ts +2 -0
  409. package/dist/types/components/lab/blocks/PriceAlert.d.ts +2 -0
  410. package/dist/types/components/lab/blocks/SplitBill.d.ts +2 -0
  411. package/dist/types/components/lab/blocks/Watchlist.d.ts +2 -0
  412. package/dist/types/packages/asta-ui/src/base/billing.d.ts +2 -0
  413. package/dist/types/packages/asta-ui/src/base/chart-card.d.ts +2 -0
  414. package/dist/types/packages/asta-ui/src/base/cookie-consent.d.ts +2 -0
  415. package/dist/types/packages/asta-ui/src/base/countdown.d.ts +2 -0
  416. package/dist/types/packages/asta-ui/src/base/file-manager.d.ts +2 -0
  417. package/dist/types/packages/asta-ui/src/base/flash-sale.d.ts +2 -0
  418. package/dist/types/packages/asta-ui/src/base/inbox.d.ts +2 -0
  419. package/dist/types/packages/asta-ui/src/base/invoice.d.ts +2 -0
  420. package/dist/types/packages/asta-ui/src/base/menubar.d.ts +2 -0
  421. package/dist/types/packages/asta-ui/src/base/meter.d.ts +2 -0
  422. package/dist/types/packages/asta-ui/src/base/phone-input.d.ts +2 -0
  423. package/dist/types/packages/asta-ui/src/base/price-alert.d.ts +2 -0
  424. package/dist/types/packages/asta-ui/src/base/sortable-list.d.ts +2 -0
  425. package/dist/types/packages/asta-ui/src/base/split-bill.d.ts +2 -0
  426. package/dist/types/packages/asta-ui/src/base/testimonials.d.ts +2 -0
  427. package/dist/types/packages/asta-ui/src/base/watchlist.d.ts +2 -0
  428. package/dist/types/packages/asta-ui/src/base.d.ts +29 -1
  429. package/dist/types/packages/asta-ui/src/billing.d.ts +2 -0
  430. package/dist/types/packages/asta-ui/src/chart-card.d.ts +2 -0
  431. package/dist/types/packages/asta-ui/src/cookie-consent.d.ts +2 -0
  432. package/dist/types/packages/asta-ui/src/countdown.d.ts +2 -0
  433. package/dist/types/packages/asta-ui/src/file-manager.d.ts +2 -0
  434. package/dist/types/packages/asta-ui/src/flash-sale.d.ts +2 -0
  435. package/dist/types/packages/asta-ui/src/inbox.d.ts +2 -0
  436. package/dist/types/packages/asta-ui/src/index.d.ts +29 -1
  437. package/dist/types/packages/asta-ui/src/invoice.d.ts +2 -0
  438. package/dist/types/packages/asta-ui/src/menubar.d.ts +2 -0
  439. package/dist/types/packages/asta-ui/src/meter.d.ts +2 -0
  440. package/dist/types/packages/asta-ui/src/phone-input.d.ts +2 -0
  441. package/dist/types/packages/asta-ui/src/price-alert.d.ts +2 -0
  442. package/dist/types/packages/asta-ui/src/sortable-list.d.ts +2 -0
  443. package/dist/types/packages/asta-ui/src/split-bill.d.ts +2 -0
  444. package/dist/types/packages/asta-ui/src/testimonials.d.ts +2 -0
  445. package/dist/types/packages/asta-ui/src/watchlist.d.ts +2 -0
  446. package/dist/watchlist.d.ts +2 -0
  447. package/dist/watchlist.js +7 -0
  448. package/package.json +1 -1
@@ -186,14 +186,16 @@ function AssignCombobox({ people = TEAM, value, defaultValue = ["lena", "arif"],
186
186
  },
187
187
  onKeyDown: onKey,
188
188
  onBlur: (e) => !root.current?.contains(e.relatedTarget) && setOpen(false),
189
- placeholder: "Assign people",
189
+ placeholder: "Assign people\u2026",
190
+ autoComplete: "off",
191
+ spellCheck: false,
190
192
  role: "combobox",
191
193
  "aria-expanded": true,
192
194
  "aria-autocomplete": "list",
193
195
  "aria-controls": `${uid}-list`,
194
196
  "aria-activedescendant": shown[active] ? `${uid}-o-${active}` : void 0,
195
197
  "aria-label": `Search ${label.toLowerCase()}`,
196
- className: "h-11 min-w-0 flex-1 bg-transparent text-[13.5px] text-ink outline-none placeholder:text-mute"
198
+ className: "h-11 min-w-0 flex-1 bg-transparent text-[16px] sm:text-[13.5px] text-ink outline-none placeholder:text-mute"
197
199
  }
198
200
  ),
199
201
  /* @__PURE__ */ jsxs(
@@ -0,0 +1,228 @@
1
+ "use client";
2
+
3
+ // components/kit/chart-card.tsx
4
+ import { useId, useState } from "react";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ var cx = (...c) => c.filter(Boolean).join(" ");
7
+ var KEYFRAMES = `@keyframes asta-chart-reveal { from { transform: scaleX(0) } }
8
+ @keyframes asta-chart-bar { from { transform: translateY(100%) } }
9
+ @keyframes asta-chart-fade { from { opacity: 0 } }
10
+ @media (prefers-reduced-motion: reduce) { .asta-chart-a { animation: none !important; transition: none !important } }`;
11
+ var W = 600;
12
+ function niceStep(n) {
13
+ if (n <= 0) return 1;
14
+ const p = Math.pow(10, Math.floor(Math.log10(n)));
15
+ const f = n / p;
16
+ return (f <= 1 ? 1 : f <= 2 ? 2 : f <= 5 ? 5 : 10) * p;
17
+ }
18
+ function niceRange(lo, hi) {
19
+ if (hi <= lo) hi = lo + 1;
20
+ const step = niceStep((hi - lo) / 4);
21
+ const min = Math.floor(lo / step) * step;
22
+ const max = Math.ceil(hi / step) * step;
23
+ const ticks = [];
24
+ for (let t = min; t <= max + step / 2; t += step) ticks.push(t);
25
+ return { min, max, ticks };
26
+ }
27
+ function smooth(pts) {
28
+ const n = pts.length;
29
+ if (n < 2) return n ? `M${pts[0][0]} ${pts[0][1]}` : "";
30
+ const dx = pts.slice(1).map((p, i) => p[0] - pts[i][0]);
31
+ const sl = pts.slice(1).map((p, i) => (p[1] - pts[i][1]) / (dx[i] || 1));
32
+ const t = pts.map((_, i) => {
33
+ if (i === 0) return sl[0];
34
+ if (i === n - 1) return sl[n - 2];
35
+ if (sl[i - 1] * sl[i] <= 0) return 0;
36
+ return 3 * (dx[i - 1] + dx[i]) / ((2 * dx[i] + dx[i - 1]) / sl[i - 1] + (dx[i] + 2 * dx[i - 1]) / sl[i]);
37
+ });
38
+ const f = (v) => v.toFixed(1);
39
+ let d = `M${f(pts[0][0])} ${f(pts[0][1])}`;
40
+ for (let i = 0; i < n - 1; i++) {
41
+ const h = dx[i] / 3;
42
+ d += ` C${f(pts[i][0] + h)} ${f(pts[i][1] + t[i] * h)} ${f(pts[i + 1][0] - h)} ${f(pts[i + 1][1] - t[i + 1] * h)} ${f(pts[i + 1][0])} ${f(pts[i + 1][1])}`;
43
+ }
44
+ return d;
45
+ }
46
+ function Chart({ type = "area", labels, series, format = (n) => n.toLocaleString("en-US"), height = 200, label, labelEvery, zero, className }) {
47
+ const id = useId().replace(/:/g, "");
48
+ const [active, setActive] = useState(null);
49
+ const n = labels.length;
50
+ const values = series.flatMap((s) => s.data);
51
+ const fromZero = zero ?? type !== "line";
52
+ const { min, max, ticks } = niceRange(fromZero ? 0 : Math.min(...values) - (Math.max(...values) - Math.min(...values)) * 0.15, Math.max(0, ...values));
53
+ const at = (v) => (v - min) / (max - min);
54
+ const every = labelEvery ?? Math.max(1, Math.ceil(n / 7));
55
+ const key = series.map((s) => s.data.join(",")).join("|");
56
+ const bars = type === "bar";
57
+ const xAt = (i) => bars ? (i + 0.5) / n : n > 1 ? i / (n - 1) : 0.5;
58
+ const pick = (e) => {
59
+ const r = e.currentTarget.getBoundingClientRect();
60
+ const t = Math.min(1, Math.max(0, (e.clientX - r.left) / r.width));
61
+ setActive(bars ? Math.min(n - 1, Math.floor(t * n)) : Math.round(t * (n - 1)));
62
+ };
63
+ const onKey = (e) => {
64
+ const go = (i) => {
65
+ e.preventDefault();
66
+ setActive(Math.max(0, Math.min(n - 1, i)));
67
+ };
68
+ if (e.key === "ArrowRight") go(active === null ? 0 : active + 1);
69
+ else if (e.key === "ArrowLeft") go(active === null ? n - 1 : active - 1);
70
+ else if (e.key === "Home") go(0);
71
+ else if (e.key === "End") go(n - 1);
72
+ else if (e.key === "Escape") setActive(null);
73
+ };
74
+ const tipLeft = active === null ? 0 : xAt(active);
75
+ return /* @__PURE__ */ jsxs("div", { className: cx("flex w-full flex-col", className), children: [
76
+ /* @__PURE__ */ jsx("style", { href: "asta-chart", precedence: "asta", children: KEYFRAMES }),
77
+ /* @__PURE__ */ jsxs("div", { className: "flex", children: [
78
+ /* @__PURE__ */ jsx("div", { "aria-hidden": true, className: "relative mr-2 w-10 shrink-0", style: { height }, children: ticks.map((t) => /* @__PURE__ */ jsx("span", { className: "absolute right-0 -translate-y-1/2 text-[10.5px] tabular-nums text-mute", style: { top: `${(1 - at(t)) * 100}%` }, children: format(t) }, t)) }),
79
+ /* @__PURE__ */ jsxs(
80
+ "div",
81
+ {
82
+ role: "group",
83
+ "aria-label": `${label}. Use the left and right arrows to read each point.`,
84
+ tabIndex: 0,
85
+ onPointerMove: pick,
86
+ onPointerDown: pick,
87
+ onPointerLeave: (e) => e.pointerType === "mouse" && setActive(null),
88
+ onKeyDown: onKey,
89
+ onBlur: () => setActive(null),
90
+ className: "relative min-w-0 flex-1 touch-pan-y rounded-[4px] outline-none focus-visible:ring-2 focus-visible:ring-brand/50 focus-visible:ring-offset-4 focus-visible:ring-offset-paper",
91
+ style: { height },
92
+ children: [
93
+ ticks.map((t) => /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: cx("absolute inset-x-0 h-px", t === min ? "bg-[color-mix(in_srgb,var(--ink)_14%,transparent)]" : "bg-[color-mix(in_srgb,var(--ink)_6%,transparent)]"), style: { top: `${(1 - at(t)) * 100}%` } }, t)),
94
+ bars ? /* @__PURE__ */ jsx("div", { "aria-hidden": true, className: "absolute inset-0 flex", children: labels.map((l, i) => /* @__PURE__ */ jsx("div", { className: "flex h-full flex-1 justify-center", children: /* @__PURE__ */ jsx("div", { className: "flex h-full w-[62%] items-end justify-center gap-[3px]", children: series.map((s, si) => /* @__PURE__ */ jsx("div", { className: "relative h-full max-w-[28px] flex-1 overflow-hidden rounded-t-[5px]", children: /* @__PURE__ */ jsx(
95
+ "div",
96
+ {
97
+ className: cx(
98
+ "asta-chart-a absolute inset-0 rounded-t-[5px] transition-[transform,opacity] duration-700 ease-[cubic-bezier(.16,1,.3,1)] animate-[asta-chart-bar_.9s_cubic-bezier(.16,1,.3,1)_backwards]",
99
+ si === 0 ? "bg-brand" : "bg-[color-mix(in_srgb,var(--ink)_16%,var(--paper))]",
100
+ active !== null && active !== i && "opacity-45"
101
+ ),
102
+ style: { transform: `translateY(${(1 - at(s.data[i] ?? 0)) * 100}%)`, transitionDelay: `${i * 18}ms, 0ms`, animationDelay: `${i * 30}ms` }
103
+ }
104
+ ) }, s.label)) }) }, l + i)) }) : /* @__PURE__ */ jsxs("svg", { "aria-hidden": true, viewBox: `0 0 ${W} ${height}`, preserveAspectRatio: "none", className: "absolute inset-0 h-full w-full overflow-visible", children: [
105
+ /* @__PURE__ */ jsxs("defs", { children: [
106
+ /* @__PURE__ */ jsxs("linearGradient", { id: `${id}-fill`, x1: "0", x2: "0", y1: "0", y2: "1", children: [
107
+ /* @__PURE__ */ jsx("stop", { offset: "0", stopColor: "var(--brand)", stopOpacity: "0.2" }),
108
+ /* @__PURE__ */ jsx("stop", { offset: "1", stopColor: "var(--brand)", stopOpacity: "0" })
109
+ ] }),
110
+ /* @__PURE__ */ jsx("clipPath", { id: `${id}-clip`, children: /* @__PURE__ */ jsx("rect", { x: "0", y: "-10", width: W, height: height + 20, className: "asta-chart-a origin-left animate-[asta-chart-reveal_1.1s_cubic-bezier(.16,1,.3,1)_both] [transform-box:fill-box]" }, key) })
111
+ ] }),
112
+ /* @__PURE__ */ jsx("g", { clipPath: `url(#${id}-clip)`, children: [...series].reverse().map((s, ri) => {
113
+ const si = series.length - 1 - ri;
114
+ const pts = s.data.map((v, i) => [xAt(i) * W, height - at(v) * height]);
115
+ const line = smooth(pts);
116
+ return /* @__PURE__ */ jsxs("g", { children: [
117
+ type === "area" && si === 0 && /* @__PURE__ */ jsx("path", { d: `${line} L${W} ${height} L0 ${height} Z`, fill: `url(#${id}-fill)` }),
118
+ /* @__PURE__ */ jsx(
119
+ "path",
120
+ {
121
+ d: line,
122
+ fill: "none",
123
+ stroke: si === 0 ? "var(--brand)" : "color-mix(in srgb, var(--ink) 32%, transparent)",
124
+ strokeWidth: si === 0 ? 2 : 1.5,
125
+ strokeDasharray: si === 0 ? void 0 : "4 4",
126
+ strokeLinecap: "round",
127
+ strokeLinejoin: "round",
128
+ vectorEffect: "non-scaling-stroke"
129
+ }
130
+ )
131
+ ] }, s.label);
132
+ }) })
133
+ ] }),
134
+ active !== null && /* @__PURE__ */ jsxs("div", { "aria-hidden": true, className: "pointer-events-none absolute inset-0", children: [
135
+ !bars && /* @__PURE__ */ jsx("span", { className: "absolute inset-y-0 w-px bg-[color-mix(in_srgb,var(--ink)_22%,transparent)]", style: { left: `${tipLeft * 100}%` } }),
136
+ !bars && series.map((s, si) => /* @__PURE__ */ jsx(
137
+ "span",
138
+ {
139
+ className: cx("absolute h-2.5 w-2.5 -translate-x-1/2 -translate-y-1/2 rounded-full ring-2 ring-paper", si === 0 ? "bg-brand" : "bg-mute"),
140
+ style: { left: `${tipLeft * 100}%`, top: `${(1 - at(s.data[active] ?? 0)) * 100}%` }
141
+ },
142
+ s.label
143
+ )),
144
+ /* @__PURE__ */ jsxs(
145
+ "div",
146
+ {
147
+ className: cx(
148
+ "asta-chart-a absolute top-0 z-10 min-w-[128px] animate-[asta-chart-fade_.15s_ease-out] rounded-[9px] bg-ink px-3 py-2 text-paper shadow-[0_10px_24px_-10px_rgb(0_0_0/0.45)]",
149
+ tipLeft > 0.6 ? "-translate-x-[calc(100%+10px)]" : "translate-x-[10px]"
150
+ ),
151
+ style: { left: `${tipLeft * 100}%` },
152
+ children: [
153
+ /* @__PURE__ */ jsx("p", { className: "text-[11px] text-paper/60", children: labels[active] }),
154
+ series.map((s, si) => /* @__PURE__ */ jsxs("p", { className: "mt-0.5 flex items-center justify-between gap-3 text-[12.5px]", children: [
155
+ /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1.5 text-paper/75", children: [
156
+ /* @__PURE__ */ jsx("span", { className: cx("h-1.5 w-1.5 rounded-full", si === 0 ? "bg-brand" : "bg-paper/45") }),
157
+ s.label
158
+ ] }),
159
+ /* @__PURE__ */ jsx("span", { className: "font-medium tabular-nums", children: format(s.data[active] ?? 0) })
160
+ ] }, s.label))
161
+ ]
162
+ }
163
+ )
164
+ ] })
165
+ ]
166
+ }
167
+ )
168
+ ] }),
169
+ /* @__PURE__ */ jsx("div", { "aria-hidden": true, className: "relative ml-12 mt-2 h-4", children: labels.map(
170
+ (l, i) => i % every === 0 ? /* @__PURE__ */ jsx("span", { className: cx("absolute top-0 whitespace-nowrap text-[10.5px] text-mute", i === 0 && !bars ? "" : i === n - 1 && !bars ? "-translate-x-full" : "-translate-x-1/2"), style: { left: `${xAt(i) * 100}%` }, children: l }, l + i) : null
171
+ ) }),
172
+ /* @__PURE__ */ jsx("p", { className: "sr-only", "aria-live": "polite", children: active !== null ? `${labels[active]}: ${series.map((s) => `${s.label} ${format(s.data[active] ?? 0)}`).join(", ")}` : "" }),
173
+ /* @__PURE__ */ jsxs("table", { className: "sr-only", children: [
174
+ /* @__PURE__ */ jsx("caption", { children: label }),
175
+ /* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [
176
+ /* @__PURE__ */ jsx("th", { scope: "col", children: "Point" }),
177
+ series.map((s) => /* @__PURE__ */ jsx("th", { scope: "col", children: s.label }, s.label))
178
+ ] }) }),
179
+ /* @__PURE__ */ jsx("tbody", { children: labels.map((l, i) => /* @__PURE__ */ jsxs("tr", { children: [
180
+ /* @__PURE__ */ jsx("th", { scope: "row", children: l }),
181
+ series.map((s) => /* @__PURE__ */ jsx("td", { children: format(s.data[i] ?? 0) }, s.label))
182
+ ] }, l + i)) })
183
+ ] })
184
+ ] });
185
+ }
186
+ function ChartCard({ title, value, delta, deltaLabel, actions, className, ...chart }) {
187
+ const up = (delta ?? 0) > 0;
188
+ return /* @__PURE__ */ jsxs("div", { className: cx("flex min-w-0 flex-col gap-4 rounded-xl bg-paper p-4 shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent)] sm:p-5", className), children: [
189
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-start justify-between gap-3", children: [
190
+ /* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
191
+ /* @__PURE__ */ jsx("p", { className: "text-[13px] text-mute", children: title }),
192
+ value && /* @__PURE__ */ jsxs("p", { className: "mt-1 flex flex-wrap items-baseline gap-x-2.5 gap-y-1", children: [
193
+ /* @__PURE__ */ jsx("span", { className: "text-[26px] font-medium leading-none tracking-[-0.04em] tabular-nums text-ink", children: value }),
194
+ delta !== void 0 && /* @__PURE__ */ jsxs("span", { className: cx("text-[12.5px] font-medium tabular-nums", up ? "text-brand" : "text-mute"), children: [
195
+ delta !== 0 && /* @__PURE__ */ jsx("span", { "aria-hidden": true, children: delta > 0 ? "\u25B2" : "\u25BC" }),
196
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: delta > 0 ? "Up" : delta < 0 ? "Down" : "No change" }),
197
+ " ",
198
+ Math.abs(delta).toFixed(1),
199
+ "%",
200
+ deltaLabel && /* @__PURE__ */ jsx("span", { className: "ml-1 font-normal text-mute", children: deltaLabel })
201
+ ] })
202
+ ] })
203
+ ] }),
204
+ actions
205
+ ] }),
206
+ chart.series.length > 1 && /* @__PURE__ */ jsx("ul", { className: "flex flex-wrap gap-x-4 gap-y-1 text-[12px] text-mute", children: chart.series.map((s, i) => /* @__PURE__ */ jsxs("li", { className: "flex items-center gap-1.5", children: [
207
+ /* @__PURE__ */ jsx(
208
+ "span",
209
+ {
210
+ "aria-hidden": true,
211
+ className: cx(
212
+ "h-[3px] w-3.5 rounded-full",
213
+ i === 0 ? "bg-brand" : chart.type === "bar" ? "bg-[color-mix(in_srgb,var(--ink)_30%,transparent)]" : "bg-[linear-gradient(90deg,color-mix(in_srgb,var(--ink)_30%,transparent)_40%,transparent_0_60%,color-mix(in_srgb,var(--ink)_30%,transparent)_0)]"
214
+ )
215
+ }
216
+ ),
217
+ s.label
218
+ ] }, s.label)) }),
219
+ /* @__PURE__ */ jsx(Chart, { ...chart })
220
+ ] });
221
+ }
222
+ var chart_card_default = ChartCard;
223
+
224
+ export {
225
+ Chart,
226
+ ChartCard,
227
+ chart_card_default
228
+ };
@@ -191,7 +191,9 @@ function TokenSwap() {
191
191
  isPay ? /* @__PURE__ */ jsx(
192
192
  "input",
193
193
  {
194
+ name: "amount",
194
195
  inputMode: "decimal",
196
+ autoComplete: "off",
195
197
  "aria-label": `Amount of ${tk.sym} to pay`,
196
198
  placeholder: "0",
197
199
  value: amt,
@@ -247,7 +249,11 @@ function TokenSwap() {
247
249
  " USDX"
248
250
  ] }),
249
251
  delta !== 0 && /* @__PURE__ */ jsxs("span", { className: `lab-sw-in tabular-nums ${delta > 0 ? "text-brand" : "text-mute"}`, children: [
250
- delta > 0 ? "\u25B2" : "\u25BC",
252
+ /* @__PURE__ */ jsx("span", { "aria-hidden": true, children: delta > 0 ? "\u25B2" : "\u25BC" }),
253
+ /* @__PURE__ */ jsxs("span", { className: "sr-only", children: [
254
+ "Rate ",
255
+ delta > 0 ? "up" : "down"
256
+ ] }),
251
257
  " ",
252
258
  Math.abs(delta * 100).toFixed(2),
253
259
  "%"
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  Select
4
- } from "./chunk-QDRBMWRX.js";
4
+ } from "./chunk-JLCSRNI2.js";
5
5
  import {
6
6
  Avatar
7
- } from "./chunk-2LZM435Z.js";
7
+ } from "./chunk-IVCHYE55.js";
8
8
  import {
9
9
  Button
10
10
  } from "./chunk-WSL4JGEA.js";
@@ -57,7 +57,9 @@ function EmailChips({
57
57
  onChange,
58
58
  taken,
59
59
  disabled,
60
- label
60
+ label,
61
+ describedBy,
62
+ invalid
61
63
  }) {
62
64
  const [text, setText] = useState("");
63
65
  const [armed, setArmed] = useState(false);
@@ -145,8 +147,14 @@ function EmailChips({
145
147
  {
146
148
  ref: input,
147
149
  id,
150
+ name: "emails",
148
151
  type: "email",
149
152
  multiple: true,
153
+ autoComplete: "off",
154
+ autoCapitalize: "none",
155
+ spellCheck: false,
156
+ "aria-describedby": describedBy,
157
+ "aria-invalid": invalid || void 0,
150
158
  value: text,
151
159
  disabled,
152
160
  placeholder: chips.length ? "" : "name@company.com, another@company.com",
@@ -166,7 +174,7 @@ function EmailChips({
166
174
  setArmed(false);
167
175
  if (text.trim()) add(text);
168
176
  },
169
- className: "h-7 min-w-[140px] flex-1 bg-transparent px-1 text-[13.5px] text-ink outline-none placeholder:text-mute"
177
+ className: "h-7 min-w-[140px] flex-1 bg-transparent px-1 text-[16px] sm:text-[13.5px] text-ink outline-none placeholder:text-mute"
170
178
  }
171
179
  )
172
180
  ]
@@ -194,6 +202,7 @@ function TeamMembers({
194
202
  const [inviteRole, setInviteRole] = useState(defaultInviteRole ?? roles[roles.length - 1]?.value ?? "");
195
203
  const [sending, setSending] = useState(false);
196
204
  const [inviteMsg, setInviteMsg] = useState("");
205
+ const inviteMsgId = useId();
197
206
  const [removing, setRemoving] = useState([]);
198
207
  const [resent, setResent] = useState([]);
199
208
  const [status, setStatus] = useState("");
@@ -272,7 +281,12 @@ function TeamMembers({
272
281
  const good = chips.filter((c) => !c.problem);
273
282
  const bad = chips.length - good.length;
274
283
  const send = async () => {
275
- if (!good.length || bad || sending) return;
284
+ if (sending) return;
285
+ if (!good.length || bad) {
286
+ if (!bad) setInviteMsg("Add an email address first, like name@company.com.");
287
+ root.current?.querySelector('[data-tm-focus="invite-input"] input')?.focus();
288
+ return;
289
+ }
276
290
  const emails = good.map((c) => c.email);
277
291
  setSending(true);
278
292
  setInviteMsg("");
@@ -341,13 +355,27 @@ function TeamMembers({
341
355
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2 sm:flex-row sm:items-start", children: [
342
356
  /* @__PURE__ */ jsx("div", { className: "min-w-0 flex-1", "data-tm-focus": "invite-input", tabIndex: -1, onFocus: (e) => {
343
357
  if (e.target === e.currentTarget) e.currentTarget.querySelector("input")?.focus();
344
- }, children: /* @__PURE__ */ jsx(EmailChips, { chips, onChange: setChips, taken, disabled: sending, label: "Email addresses to invite" }) }),
358
+ }, children: /* @__PURE__ */ jsx(
359
+ EmailChips,
360
+ {
361
+ chips,
362
+ onChange: (next) => {
363
+ setChips(next);
364
+ if (next.length) setInviteMsg("");
365
+ },
366
+ taken,
367
+ disabled: sending,
368
+ label: "Email addresses to invite",
369
+ describedBy: inviteMsgId,
370
+ invalid: bad > 0
371
+ }
372
+ ) }),
345
373
  /* @__PURE__ */ jsxs("div", { className: "flex gap-2", children: [
346
- /* @__PURE__ */ jsx(Select, { label: "Role for new invites", size: "md", options: roles, value: inviteRole, onChange: setInviteRole, disabled: sending, className: "w-[124px] bg-paper" }),
347
- /* @__PURE__ */ jsx(Button, { type: "submit", variant: "accent", loading: sending, disabled: !good.length || bad > 0, children: "Invite" })
374
+ /* @__PURE__ */ jsx(Select, { label: "Role for new invites", name: "role", size: "md", options: roles, value: inviteRole, onChange: setInviteRole, disabled: sending, className: "w-[124px] bg-paper" }),
375
+ /* @__PURE__ */ jsx(Button, { type: "submit", variant: "accent", loading: sending, children: "Invite" })
348
376
  ] })
349
377
  ] }),
350
- /* @__PURE__ */ jsx("p", { className: "mt-2 min-h-4 px-1 text-[12px] text-mute", "aria-live": "polite", children: bad > 0 ? `Remove ${bad} address${bad > 1 ? "es" : ""} that can't be invited.` : inviteMsg || "Separate addresses with a comma, space or Enter." })
378
+ /* @__PURE__ */ jsx("p", { id: inviteMsgId, className: "mt-2 min-h-4 px-1 text-[12px] text-mute", "aria-live": "polite", children: bad > 0 ? `Remove ${bad} address${bad > 1 ? "es" : ""} that can't be invited.` : inviteMsg || "Separate addresses with a comma, space or Enter." })
351
379
  ]
352
380
  }
353
381
  ),
@@ -27,7 +27,7 @@ var CSS = `
27
27
  .aui-013-down { animation: aui-013-down .5s ${EASE} both; }
28
28
  .aui-013-vp { transform-origin: top center; }
29
29
  .aui-013-vp[data-state=open] { animation: aui-013-vp-in .26s ${EASE}; }
30
- .aui-013-vp[data-state=closed] { animation: aui-013-vp-out .16s ease-in forwards; }
30
+ .aui-013-vp[data-state=closed] { animation: aui-013-vp-out .16s cubic-bezier(.16,1,.3,1) forwards; }
31
31
  .aui-013-c[data-motion=from-start] { animation: aui-013-from-l .3s ${EASE}; }
32
32
  .aui-013-c[data-motion=from-end] { animation: aui-013-from-r .3s ${EASE}; }
33
33
  .aui-013-c[data-motion=to-start] { animation: aui-013-to-l .3s ${EASE} forwards; }
@@ -69,7 +69,7 @@ function CommandPalette({ open, onOpenChange, commands, groups, placeholder = "T
69
69
  className: cx(
70
70
  pos,
71
71
  "inset-0 z-50 bg-[color-mix(in_srgb,var(--ink)_24%,transparent)] will-change-[opacity]",
72
- "transition-opacity duration-200 data-[starting-style]:opacity-0 data-[ending-style]:opacity-0 data-[ending-style]:duration-150 motion-reduce:!transition-none",
72
+ "transition-opacity duration-[120ms] ease-out data-[starting-style]:opacity-0 data-[ending-style]:opacity-0 data-[ending-style]:duration-100 motion-reduce:!transition-none",
73
73
  contained && "rounded-[inherit]"
74
74
  )
75
75
  }
@@ -85,10 +85,11 @@ function CommandPalette({ open, onOpenChange, commands, groups, placeholder = "T
85
85
  finalFocus: () => back.current?.isConnected ? back.current : true,
86
86
  className: cx(
87
87
  pos,
88
- "left-1/2 top-[10%] z-50 flex will-change-[transform,opacity] max-h-[min(440px,calc(100%-2rem))] w-[calc(100%-1.5rem)] max-w-[560px] -translate-x-1/2 flex-col overflow-hidden rounded-xl bg-paper outline-none",
88
+ "left-1/2 top-[10%] z-50 flex will-change-[opacity] max-h-[min(440px,calc(100%-2rem))] w-[calc(100%-1.5rem)] max-w-[560px] -translate-x-1/2 flex-col overflow-hidden rounded-xl bg-paper outline-none",
89
89
  "shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_12%,transparent),0_24px_60px_-20px_rgb(0_0_0/0.4)]",
90
- "transition-[opacity,transform] duration-[350ms] ease-[cubic-bezier(.16,1,.3,1)] data-[starting-style]:opacity-0 data-[starting-style]:[transform:translateY(-8px)_scale(.97)]",
91
- "data-[ending-style]:opacity-0 data-[ending-style]:[transform:translateY(-4px)_scale(.98)] data-[ending-style]:duration-150 data-[ending-style]:ease-in motion-reduce:!transition-none",
90
+ // Opened from the keyboard many times a day, so it appears at once: a 120ms fade, no movement.
91
+ "transition-opacity duration-[120ms] ease-out data-[starting-style]:opacity-0",
92
+ "data-[ending-style]:opacity-0 data-[ending-style]:duration-100 motion-reduce:!transition-none",
92
93
  className
93
94
  ),
94
95
  onKeyDown: (e) => {
@@ -118,12 +119,17 @@ function CommandPalette({ open, onOpenChange, commands, groups, placeholder = "T
118
119
  setAt(0);
119
120
  },
120
121
  placeholder,
122
+ "aria-label": "Search commands",
123
+ name: "q",
124
+ autoComplete: "off",
125
+ spellCheck: false,
126
+ enterKeyHint: "go",
121
127
  role: "combobox",
122
128
  "aria-expanded": "true",
123
129
  "aria-controls": listId,
124
130
  "aria-activedescendant": flat[active] ? `${listId}-${flat[active].c.id}` : void 0,
125
131
  "aria-autocomplete": "list",
126
- className: "h-12 min-w-0 flex-1 bg-transparent text-[15px] text-ink outline-none placeholder:text-mute"
132
+ className: "h-12 min-w-0 flex-1 bg-transparent text-[16px] text-ink outline-none placeholder:text-mute sm:text-[15px]"
127
133
  }
128
134
  ),
129
135
  /* @__PURE__ */ jsx("kbd", { className: "rounded-md bg-paper-2 px-1.5 font-sans text-[11px] leading-5 text-mute", children: "Esc" })
@@ -91,7 +91,7 @@ function MorseTap() {
91
91
  },
92
92
  onKeyUp: (e) => e.key === " " && release(),
93
93
  onContextMenu: (e) => e.preventDefault(),
94
- className: `relative grid h-20 w-20 select-none place-items-center border transition-all duration-100 [touch-action:none] ${down ? "scale-95 border-signal bg-signal text-paper" : "border-line bg-paper-2 text-ink"}`,
94
+ className: `relative grid h-20 w-20 select-none place-items-center border transition-[scale,background-color,border-color,color] duration-100 [touch-action:none] ${down ? "scale-95 border-signal bg-signal text-paper" : "border-line bg-paper-2 text-ink"}`,
95
95
  children: /* @__PURE__ */ jsx("span", { className: "font-mono text-[11px] uppercase tracking-[0.08em]", children: "Tap" })
96
96
  }
97
97
  ),
@@ -61,6 +61,7 @@ function ChatComposer({ placeholder = "Write a message\u2026", onSend, accept, m
61
61
  "textarea",
62
62
  {
63
63
  ref: area,
64
+ name: "message",
64
65
  rows: 1,
65
66
  value: text,
66
67
  disabled,
@@ -73,7 +74,7 @@ function ChatComposer({ placeholder = "Write a message\u2026", onSend, accept, m
73
74
  },
74
75
  placeholder,
75
76
  "aria-label": "Message",
76
- className: "block max-h-none w-full resize-none bg-transparent px-2.5 py-2 text-[14px] leading-[1.5] text-ink outline-none placeholder:text-mute"
77
+ className: "block max-h-none w-full resize-none bg-transparent px-2.5 py-2 text-[16px] sm:text-[14px] leading-[1.5] text-ink outline-none placeholder:text-mute"
77
78
  }
78
79
  ),
79
80
  /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2 pt-1", children: [
@@ -10,7 +10,7 @@ function findQuery(value, caret, triggers) {
10
10
  if (!m || !triggers.includes(m[2])) return null;
11
11
  return { trigger: m[2], start: caret - m[3].length - 1, text: m[3].toLowerCase() };
12
12
  }
13
- var BOX = "px-3.5 py-3 text-[14px] leading-[1.55] whitespace-pre-wrap break-words";
13
+ var BOX = "px-3.5 py-3 text-[16px] sm:text-[14px] leading-[1.55] whitespace-pre-wrap break-words";
14
14
  function MentionTextarea({ suggestions, value: valueProp, defaultValue = "", onChange, className, rows = 4, ...rest }) {
15
15
  const area = useRef(null);
16
16
  const mirror = useRef(null);
@@ -11,7 +11,7 @@ function ComboLock() {
11
11
  const open = d.every((v, i) => v === CODE[i]);
12
12
  const set = (i, v) => setD((cur) => cur.map((x, k) => k === i ? (v % 10 + 10) % 10 : x));
13
13
  return /* @__PURE__ */ jsxs("div", { className: "flex h-full w-full flex-col items-center justify-center gap-4", children: [
14
- /* @__PURE__ */ jsx("svg", { viewBox: "0 0 40 24", className: `h-6 w-10 transition-all duration-500 ease-[cubic-bezier(.5,1.8,.4,.8)] ${open ? "-translate-y-2 text-signal" : "text-mute"}`, fill: "none", stroke: "currentColor", strokeWidth: "3", children: /* @__PURE__ */ jsx("path", { d: open ? "M10 24V12a10 10 0 0 1 20 0v2" : "M10 24V12a10 10 0 0 1 20 0v12" }) }),
14
+ /* @__PURE__ */ jsx("svg", { viewBox: "0 0 40 24", className: `h-6 w-10 transition-[translate,color] duration-500 ease-[cubic-bezier(.5,1.8,.4,.8)] ${open ? "-translate-y-2 text-signal" : "text-mute"}`, fill: "none", stroke: "currentColor", strokeWidth: "3", children: /* @__PURE__ */ jsx("path", { d: open ? "M10 24V12a10 10 0 0 1 20 0v2" : "M10 24V12a10 10 0 0 1 20 0v12" }) }),
15
15
  /* @__PURE__ */ jsx(
16
16
  "div",
17
17
  {
@@ -61,7 +61,7 @@ function AffixInput({
61
61
  rest.onChange?.(e);
62
62
  },
63
63
  className: cx(
64
- "h-full min-w-0 bg-transparent text-[14.5px] tracking-[-0.01em] text-ink outline-none placeholder:text-mute",
64
+ "h-full min-w-0 bg-transparent text-[16px] sm:text-[14.5px] tracking-[-0.01em] text-ink outline-none placeholder:text-mute",
65
65
  ride && suffix && !units ? "col-start-1 row-start-1 w-full" : "w-full flex-1"
66
66
  )
67
67
  }