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
@@ -0,0 +1,247 @@
1
+ "use client";
2
+
3
+ // components/lab/blocks/PriceAlert.tsx
4
+ import { useEffect, useRef, useState } from "react";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ var EASE = "cubic-bezier(.16,1,.3,1)";
7
+ var RING = "shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent)]";
8
+ var DIGITS = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
9
+ var TARGET = 2450;
10
+ var OPEN = 2391.2;
11
+ var LO = 2350;
12
+ var HI = 2490;
13
+ var WINDOW = 16;
14
+ var PATH = [
15
+ 2381.4,
16
+ 2388.2,
17
+ 2379.6,
18
+ 2385.1,
19
+ 2392.8,
20
+ 2387.3,
21
+ 2396.5,
22
+ 2391.2,
23
+ 2399.8,
24
+ 2405.6,
25
+ 2398.1,
26
+ 2410.4,
27
+ 2404.9,
28
+ 2416.2,
29
+ 2421.7,
30
+ 2414.3,
31
+ 2426.8,
32
+ 2419.5,
33
+ 2431.2,
34
+ 2437.9,
35
+ 2429.6,
36
+ 2441.3,
37
+ 2446.8,
38
+ 2439.2,
39
+ 2448.1,
40
+ 2457.1,
41
+ 2463.4,
42
+ 2458.9,
43
+ 2466.2
44
+ ];
45
+ var FIRST = WINDOW;
46
+ var money = (n) => `$${n.toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 })}`;
47
+ function Roll({ value, instant }) {
48
+ const chars = value.split("");
49
+ return /* @__PURE__ */ jsx("span", { className: "inline-flex items-start leading-[1.1em] tabular-nums", "aria-label": value, children: chars.map((c, i) => {
50
+ const key = chars.length - i;
51
+ if (!/\d/.test(c))
52
+ return /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "inline-block h-[1.1em]", children: c }, `s${key}`);
53
+ return /* @__PURE__ */ jsxs("span", { "aria-hidden": true, className: "relative inline-block h-[1.1em] overflow-hidden leading-[1.1em]", children: [
54
+ /* @__PURE__ */ jsx("span", { className: "invisible", children: "0" }),
55
+ /* @__PURE__ */ jsx(
56
+ "span",
57
+ {
58
+ className: "absolute left-0 top-0 flex flex-col motion-reduce:transition-none",
59
+ style: { transform: `translateY(-${Number(c) * 1.1}em)`, transition: instant ? "none" : `transform .6s ${EASE} ${(chars.length - i) * 18}ms` },
60
+ children: DIGITS.map((d) => /* @__PURE__ */ jsx("span", { className: "block h-[1.1em]", children: d }, d))
61
+ }
62
+ )
63
+ ] }, `d${key}`);
64
+ }) });
65
+ }
66
+ var Bell = ({ className = "" }) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className, fill: "none", stroke: "currentColor", strokeWidth: "1.6", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "M4 11.5V7a4 4 0 0 1 8 0v4.5l1 1H3zM6.5 14h3" }) });
67
+ function PriceAlert() {
68
+ const [n, setN] = useState(FIRST);
69
+ const [fade, setFade] = useState(false);
70
+ const [instant, setInstant] = useState(false);
71
+ const [hover, setHover] = useState(false);
72
+ const [visible, setVisible] = useState(true);
73
+ const root = useRef(null);
74
+ const k = useRef(FIRST);
75
+ const paused = hover || !visible;
76
+ useEffect(() => {
77
+ const el = root.current;
78
+ if (!el) return;
79
+ let seen = true;
80
+ const sync = () => setVisible(seen && !document.hidden);
81
+ const io = new IntersectionObserver(([e]) => {
82
+ seen = e.isIntersecting;
83
+ sync();
84
+ });
85
+ io.observe(el);
86
+ document.addEventListener("visibilitychange", sync);
87
+ return () => {
88
+ io.disconnect();
89
+ document.removeEventListener("visibilitychange", sync);
90
+ };
91
+ }, []);
92
+ useEffect(() => {
93
+ if (paused) return;
94
+ const t = [];
95
+ let alive = true;
96
+ const later = (ms, f) => t.push(setTimeout(() => alive && f(), ms));
97
+ const cycle = () => {
98
+ if (k.current >= PATH.length) {
99
+ setFade(true);
100
+ later(450, () => {
101
+ k.current = FIRST;
102
+ setInstant(true);
103
+ setN(FIRST);
104
+ });
105
+ later(560, () => setInstant(false));
106
+ later(620, () => setFade(false));
107
+ later(1300, cycle);
108
+ return;
109
+ }
110
+ setN(++k.current);
111
+ const crossed = PATH[k.current - 1] >= TARGET && PATH[k.current - 2] < TARGET;
112
+ later(crossed ? 2600 : k.current === PATH.length ? 2400 : 750, cycle);
113
+ };
114
+ later(800, cycle);
115
+ return () => {
116
+ alive = false;
117
+ t.forEach(clearTimeout);
118
+ setFade(false);
119
+ };
120
+ }, [paused]);
121
+ const pts = PATH.slice(0, n);
122
+ const price = pts[pts.length - 1];
123
+ const change = (price - OPEN) / OPEN * 100;
124
+ const hitAt = PATH.findIndex((v) => v >= TARGET);
125
+ const hit = n > hitAt;
126
+ const W = 300;
127
+ const H = 120;
128
+ const step = W / (WINDOW - 1);
129
+ const y = (v) => H - (v - LO) / (HI - LO) * H;
130
+ const xy = (i) => `${(i * step).toFixed(1)} ${y(pts[i]).toFixed(1)}`;
131
+ const last = pts.length - 1;
132
+ const line = pts.slice(0, -1).map((_, i) => `${i ? "L" : "M"}${xy(i)}`).join(" ");
133
+ const tail = `M${xy(last - 1)} L${xy(last)}`;
134
+ const area = `${pts.map((_, i) => `${i ? "L" : "M"}${xy(i)}`).join(" ")} L${(last * step).toFixed(1)} ${H} L0 ${H} Z`;
135
+ const shift = (pts.length - WINDOW) * step;
136
+ const ty = y(TARGET) / H * 100;
137
+ const toggle = () => setHover((h) => !h);
138
+ return /* @__PURE__ */ jsxs(
139
+ "div",
140
+ {
141
+ ref: root,
142
+ role: "group",
143
+ tabIndex: 0,
144
+ "aria-label": `ASTA ${money(price)}. Alert at ${money(TARGET)}${hit ? " triggered" : ""}. ${hover ? "Paused" : "Live"}. Press space to ${hover ? "resume" : "pause"}`,
145
+ onPointerEnter: (e) => e.pointerType === "mouse" && setHover(true),
146
+ onPointerLeave: (e) => e.pointerType === "mouse" && setHover(false),
147
+ onPointerUp: (e) => e.pointerType !== "mouse" && toggle(),
148
+ onKeyDown: (e) => {
149
+ if (e.key === " " || e.key === "Enter") {
150
+ e.preventDefault();
151
+ toggle();
152
+ }
153
+ },
154
+ className: "flex h-full w-full items-center justify-center px-5 pb-5 pt-11 outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-brand/50",
155
+ style: { containerType: "size" },
156
+ children: [
157
+ /* @__PURE__ */ jsx("style", { href: "asta-pricealert", precedence: "asta", children: `
158
+ @keyframes lab-pa-drop { from { transform: translateY(-130%) scale(.96); opacity: 0 } to { transform: none; opacity: 1 } }
159
+ @keyframes lab-pa-ring { 0%, 100% { transform: rotate(0) } 15% { transform: rotate(18deg) } 30% { transform: rotate(-16deg) } 45% { transform: rotate(12deg) } 60% { transform: rotate(-8deg) } 75% { transform: rotate(4deg) } }
160
+ @keyframes lab-pa-draw { from { stroke-dashoffset: 1 } to { stroke-dashoffset: 0 } }
161
+ @keyframes lab-pa-pulse { from { transform: scale(1); opacity: .5 } to { transform: scale(3); opacity: 0 } }
162
+ .lab-pa-drop { animation: lab-pa-drop .6s ${EASE} both }
163
+ .lab-pa-ring { transform-origin: 50% 15%; animation: lab-pa-ring .9s ${EASE} .2s both }
164
+ .lab-pa-draw { stroke-dasharray: 1; animation: lab-pa-draw .55s ${EASE} both }
165
+ .lab-pa-pulse { transform-box: fill-box; transform-origin: center; animation: lab-pa-pulse 1.4s ${EASE} infinite }
166
+ @media (prefers-reduced-motion: reduce) { .lab-pa-drop, .lab-pa-ring, .lab-pa-draw, .lab-pa-pulse { animation: none } }
167
+ ` }),
168
+ /* @__PURE__ */ jsxs(
169
+ "div",
170
+ {
171
+ className: `relative flex w-full max-w-[460px] flex-col gap-[max(8px,2.6cqh)] rounded-[14px] bg-paper p-[clamp(12px,3.8cqmin,16px)] ${RING} shadow-[0_18px_40px_-28px_rgb(0_0_0/0.35)]`,
172
+ style: { opacity: fade ? 0 : 1, transition: `opacity .45s ${EASE}` },
173
+ children: [
174
+ /* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute inset-x-[clamp(12px,3.8cqmin,16px)] top-[clamp(12px,3.8cqmin,16px)] z-10", "aria-live": "assertive", children: hit && /* @__PURE__ */ jsxs("div", { className: "lab-pa-drop flex items-center gap-2.5 rounded-[11px] bg-ink px-3 py-2.5 text-paper shadow-[0_14px_30px_-14px_rgb(0_0_0/0.6)]", children: [
175
+ /* @__PURE__ */ jsx("span", { className: "grid h-7 w-7 shrink-0 place-items-center rounded-full bg-brand", children: /* @__PURE__ */ jsx(Bell, { className: "lab-pa-ring h-3.5 w-3.5" }) }),
176
+ /* @__PURE__ */ jsxs("span", { className: "min-w-0 flex-1 leading-tight", children: [
177
+ /* @__PURE__ */ jsxs("span", { className: "block text-[12.5px] font-medium", children: [
178
+ "ASTA crossed ",
179
+ money(TARGET)
180
+ ] }),
181
+ /* @__PURE__ */ jsx("span", { className: "block truncate text-[11.5px] opacity-70", children: "Your price alert \xB7 just now" })
182
+ ] }),
183
+ /* @__PURE__ */ jsx("span", { className: "shrink-0 text-[12.5px] font-medium tabular-nums", children: money(PATH[hitAt]) })
184
+ ] }) }),
185
+ /* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-3", children: [
186
+ /* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
187
+ /* @__PURE__ */ jsxs("p", { className: "text-[12px] text-mute", children: [
188
+ /* @__PURE__ */ jsx("span", { className: "font-semibold text-ink", children: "ASTA" }),
189
+ " \xB7 Astabyte Inc."
190
+ ] }),
191
+ /* @__PURE__ */ jsx("p", { className: "mt-1 font-medium tracking-[-0.035em] text-ink", style: { fontSize: "clamp(22px, 8cqmin, 32px)", lineHeight: 1 }, children: /* @__PURE__ */ jsx(Roll, { value: money(price), instant }) }),
192
+ /* @__PURE__ */ jsxs("p", { className: `mt-1 text-[12px] tabular-nums ${change >= 0 ? "text-brand" : "text-mute"}`, children: [
193
+ /* @__PURE__ */ jsx("span", { "aria-hidden": true, children: change >= 0 ? "\u25B2" : "\u25BC" }),
194
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: change >= 0 ? "Up" : "Down" }),
195
+ " ",
196
+ Math.abs(change).toFixed(2),
197
+ "% today"
198
+ ] })
199
+ ] }),
200
+ /* @__PURE__ */ jsxs("span", { className: `flex shrink-0 items-center gap-1.5 rounded-md px-2 py-1 text-[11.5px] font-medium ${hit ? "bg-brand text-paper" : "bg-paper-2 text-ink-2"}`, style: { transition: `background-color .4s ${EASE}, color .4s ${EASE}` }, children: [
201
+ /* @__PURE__ */ jsx("span", { className: `flex ${hit ? "lab-pa-ring" : ""}`, children: /* @__PURE__ */ jsx(Bell, { className: "h-3.5 w-3.5" }) }, hit ? "on" : "off"),
202
+ hit ? "Triggered" : `Above ${money(TARGET).replace(".00", "")}`
203
+ ] })
204
+ ] }),
205
+ /* @__PURE__ */ jsxs("div", { className: "relative h-[clamp(90px,34cqh,150px)]", children: [
206
+ /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "absolute inset-x-0 border-t border-dashed border-[color-mix(in_srgb,var(--ink)_35%,transparent)]", style: { top: `${ty}%` } }),
207
+ /* @__PURE__ */ jsxs("span", { "aria-hidden": true, className: "absolute left-0 -translate-y-full pb-1 font-mono text-[10px] text-mute", style: { top: `${ty}%` }, children: [
208
+ "Alert ",
209
+ money(TARGET).replace(".00", "")
210
+ ] }),
211
+ /* @__PURE__ */ jsxs("svg", { viewBox: `0 0 ${W} ${H}`, preserveAspectRatio: "none", className: "absolute inset-0 h-full w-full overflow-hidden", fill: "none", "aria-hidden": true, children: [
212
+ /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("linearGradient", { id: "lab-pa-area", x1: "0", x2: "0", y1: "0", y2: "1", children: [
213
+ /* @__PURE__ */ jsx("stop", { offset: "0", stopColor: "var(--brand)", stopOpacity: "0.2" }),
214
+ /* @__PURE__ */ jsx("stop", { offset: "1", stopColor: "var(--brand)", stopOpacity: "0" })
215
+ ] }) }),
216
+ /* @__PURE__ */ jsxs("g", { style: { transform: `translateX(${-shift}px)`, transition: instant ? "none" : `transform .7s ${EASE}` }, children: [
217
+ /* @__PURE__ */ jsx("path", { d: area, fill: "url(#lab-pa-area)" }),
218
+ /* @__PURE__ */ jsx("path", { d: line, stroke: "var(--brand)", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round", vectorEffect: "non-scaling-stroke" }),
219
+ /* @__PURE__ */ jsx("path", { d: tail, pathLength: 1, stroke: "var(--brand)", strokeWidth: "1.8", strokeLinecap: "round", vectorEffect: "non-scaling-stroke", className: instant ? "" : "lab-pa-draw" }, `t${last}`)
220
+ ] })
221
+ ] }),
222
+ /* @__PURE__ */ jsxs("span", { "aria-hidden": true, className: "absolute right-0 h-2 w-2 -translate-y-1/2 translate-x-1/2", style: {
223
+ top: `${y(price) / H * 100}%`,
224
+ transition: instant ? "none" : `top .7s ${EASE}`
225
+ /* perf-ok */
226
+ }, children: [
227
+ /* @__PURE__ */ jsx("span", { className: "lab-pa-pulse absolute inset-0 rounded-full bg-brand" }),
228
+ /* @__PURE__ */ jsx("span", { className: "absolute inset-0 rounded-full bg-brand ring-2 ring-paper" })
229
+ ] })
230
+ ] }),
231
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between text-[11px] text-mute", children: [
232
+ /* @__PURE__ */ jsx("span", { children: "10:30" }),
233
+ /* @__PURE__ */ jsx("span", { children: "11:00" }),
234
+ /* @__PURE__ */ jsx("span", { children: "11:30" }),
235
+ /* @__PURE__ */ jsx("span", { children: "Now" })
236
+ ] })
237
+ ]
238
+ }
239
+ )
240
+ ]
241
+ }
242
+ );
243
+ }
244
+
245
+ export {
246
+ PriceAlert
247
+ };
@@ -45,7 +45,7 @@ function StrengthPassword({
45
45
  onChange,
46
46
  label = "Password",
47
47
  estimate = true,
48
- placeholder = "At least 8 characters",
48
+ placeholder = "At least 8 characters\u2026",
49
49
  autoComplete = "new-password",
50
50
  className,
51
51
  id,
@@ -126,6 +126,7 @@ function StrengthPassword({
126
126
  /* @__PURE__ */ jsx(
127
127
  "input",
128
128
  {
129
+ name: "password",
129
130
  ...rest,
130
131
  id: inputId,
131
132
  type: shown ? "text" : "password",
@@ -139,7 +140,7 @@ function StrengthPassword({
139
140
  if (value === void 0) setInner(next);
140
141
  onChange?.(next, next ? CHECKS.filter((c) => c(next)).length : 0);
141
142
  },
142
- className: "h-full min-w-0 flex-1 bg-transparent text-[14.5px] tracking-[0.02em] text-ink outline-none placeholder:tracking-normal placeholder:text-mute"
143
+ className: "h-full min-w-0 flex-1 bg-transparent text-[16px] sm:text-[14.5px] tracking-[0.02em] text-ink outline-none placeholder:tracking-normal placeholder:text-mute"
143
144
  }
144
145
  ),
145
146
  /* @__PURE__ */ jsx(
@@ -9,7 +9,7 @@ var CSS = `
9
9
  @keyframes aui047-pop { from { opacity: 0; transform: translateY(var(--aui047-y, -6px)) scale(.97) } }
10
10
  @keyframes aui047-row { from { opacity: 0; transform: translateY(5px) } }
11
11
  @keyframes aui047-chip { 0% { opacity: 0; transform: scale(.6) } 60% { opacity: 1; transform: scale(1.06) } 100% { transform: none } }
12
- @keyframes aui047-drop { 0% { transform: scale(0) } 60% { transform: scale(1.5) } 100% { transform: none } }
12
+ @keyframes aui047-drop { 0% { transform: scale(0) } 60% { transform: scale(1.5) } 100% { transform: none } } /* perf-ok: 8px colour dot drops in, not a surface */
13
13
  @keyframes aui047-ripple { from { opacity: .5; transform: scale(1) } to { opacity: 0; transform: scale(3.2) } }
14
14
  @media (prefers-reduced-motion: reduce) { .aui047 *, .aui047 { animation: none !important; transition: none !important } }
15
15
  `;
@@ -208,7 +208,7 @@ function CreatableCombobox({ options = LABELS, value, defaultValue = ["bug", "fr
208
208
  setOpen(false);
209
209
  setQ("");
210
210
  },
211
- className: "h-7 min-w-[7rem] flex-1 bg-transparent px-1.5 text-[13.5px] text-ink outline-none placeholder:text-mute disabled:cursor-not-allowed"
211
+ className: "h-7 min-w-[7rem] flex-1 bg-transparent px-1.5 text-[16px] sm:text-[13.5px] text-ink outline-none placeholder:text-mute disabled:cursor-not-allowed"
212
212
  }
213
213
  )
214
214
  ]
@@ -52,8 +52,8 @@ function Checkbox({ checked, defaultChecked = false, onCheckedChange, disabled,
52
52
  }
53
53
  );
54
54
  if (!label) return /* @__PURE__ */ jsx("span", { className, children: box });
55
- return /* @__PURE__ */ jsxs("div", { className: cx("flex items-start gap-3", disabled && "opacity-60", className), children: [
56
- /* @__PURE__ */ jsx("span", { className: "pt-[1px]", children: box }),
55
+ return /* @__PURE__ */ jsxs("div", { className: cx("flex items-start", disabled && "opacity-60", className), children: [
56
+ /* @__PURE__ */ jsx("label", { htmlFor: cid, className: cx("pr-3 pt-[1px]", !disabled && "cursor-pointer"), children: box }),
57
57
  /* @__PURE__ */ jsxs("span", { className: "min-w-0", children: [
58
58
  /* @__PURE__ */ jsx("label", { htmlFor: cid, className: cx("block select-none text-[14px] leading-5 text-ink", !disabled && "cursor-pointer"), children: label }),
59
59
  description && /* @__PURE__ */ jsx("span", { id: `${cid}-d`, className: "mt-0.5 block text-[13px] leading-snug text-mute", children: description })
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  Avatar
4
- } from "./chunk-HNO6EUGJ.js";
4
+ } from "./chunk-6RA7LJ3K.js";
5
5
 
6
6
  // components/kit/sidebar.tsx
7
7
  import { useEffect, useLayoutEffect, useRef, useState } from "react";
@@ -0,0 +1,165 @@
1
+ "use client";
2
+ import {
3
+ Button
4
+ } from "./chunk-WSL4JGEA.js";
5
+
6
+ // components/kit/base/invoice.tsx
7
+ import { useState } from "react";
8
+ import { jsx, jsxs } from "react/jsx-runtime";
9
+ var cx = (...c) => c.filter(Boolean).join(" ");
10
+ var KEYFRAMES = `@keyframes asta-invoice-in { from { opacity: 0; transform: translateY(4px) } }
11
+ @keyframes asta-invoice-draw { from { stroke-dashoffset: 1 } }
12
+ @keyframes asta-invoice-pop { 0% { transform: scale(.6); opacity: 0 } 60% { transform: scale(1.08) } 100% { transform: none; opacity: 1 } }
13
+ @media (prefers-reduced-motion: reduce) { .asta-invoice-a { animation: none !important } }`;
14
+ var STATUS = {
15
+ draft: { label: "Draft", cls: "text-mute shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_16%,transparent)]" },
16
+ due: { label: "Due", cls: "bg-paper-2 text-ink" },
17
+ overdue: { label: "Overdue", cls: "bg-ink text-paper" },
18
+ paid: { label: "Paid", cls: "bg-[color-mix(in_srgb,var(--brand)_12%,transparent)] text-brand" }
19
+ };
20
+ function Invoice({ number, issued, due, from, to, items, taxRate = 0, discount = 0, currency = "USD", locale = "en-US", status = "due", notes, brand, onPay, onDownload, className }) {
21
+ const [state, setState] = useState(status);
22
+ const [paying, setPaying] = useState(false);
23
+ const [paidOn, setPaidOn] = useState(null);
24
+ const money = (n) => new Intl.NumberFormat(locale, { style: "currency", currency }).format(n);
25
+ const subtotal = items.reduce((a, it) => a + it.quantity * it.unitPrice, 0);
26
+ const taxed = Math.max(0, subtotal - discount);
27
+ const tax = Math.round(taxed * taxRate * 100) / 100;
28
+ const total = taxed + tax;
29
+ const paid = state === "paid";
30
+ const s = STATUS[state];
31
+ const pay = async () => {
32
+ if (!onPay || paying) return;
33
+ setPaying(true);
34
+ try {
35
+ await onPay();
36
+ setPaidOn((/* @__PURE__ */ new Date()).toLocaleDateString(locale, { month: "short", day: "numeric", year: "numeric" }));
37
+ setState("paid");
38
+ } finally {
39
+ setPaying(false);
40
+ }
41
+ };
42
+ return /* @__PURE__ */ jsxs(
43
+ "article",
44
+ {
45
+ "aria-label": `Invoice ${number}`,
46
+ className: cx("@container w-full rounded-[14px] bg-paper text-ink shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent),0_18px_44px_-28px_rgb(0_0_0/0.3)]", className),
47
+ children: [
48
+ /* @__PURE__ */ jsx("style", { href: "asta-invoice", precedence: "asta", children: KEYFRAMES }),
49
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-7 p-5 @min-[560px]:p-8", children: [
50
+ /* @__PURE__ */ jsxs("header", { className: "flex flex-wrap items-start justify-between gap-4", children: [
51
+ /* @__PURE__ */ jsx("div", { className: "min-w-0", children: brand ?? /* @__PURE__ */ jsx("p", { className: "text-[17px] font-semibold tracking-[-0.03em]", children: from.name }) }),
52
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-end gap-1.5 text-right", children: [
53
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
54
+ /* @__PURE__ */ jsx("h2", { className: "text-[20px] font-medium tracking-[-0.03em]", children: "Invoice" }),
55
+ /* @__PURE__ */ jsxs("span", { className: cx("asta-invoice-a inline-flex h-6 animate-[asta-invoice-pop_.45s_cubic-bezier(.16,1,.3,1)_both] items-center gap-1 rounded-md px-2 text-[11.5px] font-medium", s.cls), children: [
56
+ paid ? /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "h-3 w-3", fill: "none", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "m3.5 8.5 3 3 6-7", pathLength: 1, strokeDasharray: 1, className: "asta-invoice-a animate-[asta-invoice-draw_.5s_cubic-bezier(.16,1,.3,1)_.15s_both]" }) }) : state === "overdue" ? /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "h-3 w-3", fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "M8 4.5v4M8 11.2h.01" }) }) : null,
57
+ s.label
58
+ ] }, state)
59
+ ] }),
60
+ /* @__PURE__ */ jsx("p", { className: "font-mono text-[12px] text-mute", children: number })
61
+ ] })
62
+ ] }),
63
+ /* @__PURE__ */ jsxs("div", { className: "grid gap-5 text-[13px] @min-[560px]:grid-cols-[1fr_1fr_auto] @min-[560px]:gap-8", children: [
64
+ [
65
+ ["Billed to", to],
66
+ ["From", from]
67
+ ].map(([title, p]) => {
68
+ const party = p;
69
+ return /* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
70
+ /* @__PURE__ */ jsx("p", { className: "font-mono text-[10.5px] uppercase tracking-wider text-mute", children: title }),
71
+ /* @__PURE__ */ jsx("p", { className: "mt-1.5 font-medium", children: party.name }),
72
+ party.lines.map((l) => /* @__PURE__ */ jsx("p", { className: "text-mute", children: l }, l))
73
+ ] }, title);
74
+ }),
75
+ /* @__PURE__ */ jsxs("dl", { className: "grid grid-cols-2 gap-x-6 gap-y-1.5 @min-[560px]:grid-cols-1 @min-[560px]:text-right", children: [
76
+ /* @__PURE__ */ jsxs("div", { children: [
77
+ /* @__PURE__ */ jsx("dt", { className: "font-mono text-[10.5px] uppercase tracking-wider text-mute", children: "Issued" }),
78
+ /* @__PURE__ */ jsx("dd", { className: "mt-1", children: issued })
79
+ ] }),
80
+ /* @__PURE__ */ jsxs("div", { children: [
81
+ /* @__PURE__ */ jsx("dt", { className: "font-mono text-[10.5px] uppercase tracking-wider text-mute", children: paid ? "Paid" : "Due" }),
82
+ /* @__PURE__ */ jsx("dd", { className: cx("mt-1", paid && "asta-invoice-a animate-[asta-invoice-in_.4s_cubic-bezier(.16,1,.3,1)_both] text-brand"), children: paid ? paidOn ?? due : due }, paid ? "p" : "d")
83
+ ] })
84
+ ] })
85
+ ] }),
86
+ /* @__PURE__ */ jsxs("div", { children: [
87
+ /* @__PURE__ */ jsxs("div", { className: "hidden grid-cols-[1fr_56px_96px_104px] gap-4 px-1 pb-2 font-mono text-[10.5px] uppercase tracking-wider text-mute @min-[560px]:grid", "aria-hidden": true, children: [
88
+ /* @__PURE__ */ jsx("span", { children: "Item" }),
89
+ /* @__PURE__ */ jsx("span", { className: "text-right", children: "Qty" }),
90
+ /* @__PURE__ */ jsx("span", { className: "text-right", children: "Price" }),
91
+ /* @__PURE__ */ jsx("span", { className: "text-right", children: "Amount" })
92
+ ] }),
93
+ /* @__PURE__ */ jsx("ul", { className: "flex flex-col", children: items.map((it, i) => /* @__PURE__ */ jsxs(
94
+ "li",
95
+ {
96
+ className: "grid grid-cols-[1fr_auto] gap-x-4 gap-y-0.5 rounded-lg px-1 py-2.5 text-[13.5px] odd:bg-paper-2 @min-[560px]:grid-cols-[1fr_56px_96px_104px] @min-[560px]:items-center @min-[560px]:px-3",
97
+ children: [
98
+ /* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
99
+ /* @__PURE__ */ jsx("p", { className: "font-medium", children: it.description }),
100
+ it.detail && /* @__PURE__ */ jsx("p", { className: "text-[12px] text-mute", children: it.detail }),
101
+ /* @__PURE__ */ jsxs("p", { className: "text-[12px] tabular-nums text-mute @min-[560px]:hidden", children: [
102
+ it.quantity,
103
+ " \xD7 ",
104
+ money(it.unitPrice)
105
+ ] })
106
+ ] }),
107
+ /* @__PURE__ */ jsx("span", { className: "hidden text-right tabular-nums text-ink-2 @min-[560px]:block", children: it.quantity }),
108
+ /* @__PURE__ */ jsx("span", { className: "hidden text-right tabular-nums text-ink-2 @min-[560px]:block", children: money(it.unitPrice) }),
109
+ /* @__PURE__ */ jsx("span", { className: "text-right font-medium tabular-nums", children: money(it.quantity * it.unitPrice) })
110
+ ]
111
+ },
112
+ it.description + i
113
+ )) })
114
+ ] }),
115
+ /* @__PURE__ */ jsxs("dl", { className: "ml-auto flex w-full max-w-[300px] flex-col gap-1.5 text-[13px]", children: [
116
+ /* @__PURE__ */ jsxs("div", { className: "flex justify-between gap-4", children: [
117
+ /* @__PURE__ */ jsx("dt", { className: "text-mute", children: "Subtotal" }),
118
+ /* @__PURE__ */ jsx("dd", { className: "tabular-nums", children: money(subtotal) })
119
+ ] }),
120
+ discount > 0 && /* @__PURE__ */ jsxs("div", { className: "flex justify-between gap-4", children: [
121
+ /* @__PURE__ */ jsx("dt", { className: "text-mute", children: "Discount" }),
122
+ /* @__PURE__ */ jsxs("dd", { className: "tabular-nums", children: [
123
+ "\u2212",
124
+ money(discount)
125
+ ] })
126
+ ] }),
127
+ taxRate > 0 && /* @__PURE__ */ jsxs("div", { className: "flex justify-between gap-4", children: [
128
+ /* @__PURE__ */ jsxs("dt", { className: "text-mute", children: [
129
+ "Tax (",
130
+ Math.round(taxRate * 1e3) / 10,
131
+ "%)"
132
+ ] }),
133
+ /* @__PURE__ */ jsx("dd", { className: "tabular-nums", children: money(tax) })
134
+ ] }),
135
+ /* @__PURE__ */ jsxs("div", { className: "mt-1.5 flex items-baseline justify-between gap-4 pt-1.5", children: [
136
+ /* @__PURE__ */ jsx("dt", { className: "font-medium", children: "Total" }),
137
+ /* @__PURE__ */ jsx("dd", { className: "text-[22px] font-medium tracking-[-0.03em] tabular-nums", children: money(total) })
138
+ ] }),
139
+ /* @__PURE__ */ jsxs("div", { className: "flex justify-between gap-4", children: [
140
+ /* @__PURE__ */ jsx("dt", { className: "text-mute", children: "Amount due" }),
141
+ /* @__PURE__ */ jsx("dd", { className: cx("font-medium tabular-nums", paid && "asta-invoice-a animate-[asta-invoice-in_.4s_cubic-bezier(.16,1,.3,1)_both] text-brand"), children: money(paid ? 0 : total) }, paid ? "p" : "d")
142
+ ] })
143
+ ] }),
144
+ (notes || onPay || onDownload) && /* @__PURE__ */ jsxs("footer", { className: "flex flex-col gap-4 @min-[560px]:flex-row @min-[560px]:items-end @min-[560px]:justify-between", children: [
145
+ notes ? /* @__PURE__ */ jsx("div", { className: "max-w-[360px] text-[12.5px] leading-relaxed text-mute", children: notes }) : /* @__PURE__ */ jsx("span", {}),
146
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-2 @max-[559px]:[&>*]:flex-1", children: [
147
+ onDownload && /* @__PURE__ */ jsx(Button, { variant: "outline", size: "sm", onClick: onDownload, children: "Download PDF" }),
148
+ onPay && !paid && state !== "draft" && /* @__PURE__ */ jsxs(Button, { variant: "accent", size: "sm", loading: paying, onClick: pay, children: [
149
+ "Pay ",
150
+ money(total)
151
+ ] })
152
+ ] })
153
+ ] }),
154
+ /* @__PURE__ */ jsx("p", { className: "sr-only", "aria-live": "polite", children: paid && paidOn ? `Invoice ${number} paid on ${paidOn}.` : "" })
155
+ ] })
156
+ ]
157
+ }
158
+ );
159
+ }
160
+ var invoice_default = Invoice;
161
+
162
+ export {
163
+ Invoice,
164
+ invoice_default
165
+ };
@@ -0,0 +1,75 @@
1
+ "use client";
2
+ import {
3
+ Avatar
4
+ } from "./chunk-IVCHYE55.js";
5
+
6
+ // components/kit/base/testimonials.tsx
7
+ import { useEffect, useRef, useState } from "react";
8
+ import { jsx, jsxs } from "react/jsx-runtime";
9
+ var cx = (...c) => c.filter(Boolean).join(" ");
10
+ var KEYFRAMES = `@keyframes asta-tm-left { to { transform: translateX(-50%) } }
11
+ @keyframes asta-tm-right { from { transform: translateX(-50%) } to { transform: none } }
12
+ .asta-tm-root[data-paused] .asta-tm-track, .asta-tm-row:hover .asta-tm-track, .asta-tm-row:focus-within .asta-tm-track { animation-play-state: paused }
13
+ @media (prefers-reduced-motion: reduce) { .asta-tm-marquee { display: none !important } .asta-tm-still { display: grid !important } }`;
14
+ function Card({ t, className }) {
15
+ return /* @__PURE__ */ jsxs("figure", { className: cx("flex flex-col justify-between gap-5 rounded-[12px] bg-paper-2 p-5", className), children: [
16
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-3", children: [
17
+ t.rating ? /* @__PURE__ */ jsx("span", { className: "flex gap-0.5 text-brand", role: "img", "aria-label": `${t.rating} out of 5`, children: Array.from({ length: 5 }, (_, i) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: cx("h-3.5 w-3.5", i >= t.rating && "opacity-25"), fill: "currentColor", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "m8 1.8 1.9 3.85 4.25.62-3.07 3 .72 4.23L8 11.5l-3.8 2 .72-4.23-3.07-3 4.25-.62z" }) }, i)) }) : null,
18
+ /* @__PURE__ */ jsxs("blockquote", { className: "text-[14px] leading-relaxed text-ink", children: [
19
+ "\u201C",
20
+ t.quote,
21
+ "\u201D"
22
+ ] })
23
+ ] }),
24
+ /* @__PURE__ */ jsxs("figcaption", { className: "flex items-center gap-3", children: [
25
+ /* @__PURE__ */ jsx(Avatar, { name: t.name, src: t.avatar, size: "sm" }),
26
+ /* @__PURE__ */ jsxs("span", { className: "min-w-0", children: [
27
+ /* @__PURE__ */ jsx("span", { className: "block truncate text-[13px] font-medium", children: t.name }),
28
+ t.title && /* @__PURE__ */ jsx("span", { className: "block truncate text-[12px] text-mute", children: t.title })
29
+ ] })
30
+ ] })
31
+ ] });
32
+ }
33
+ function Testimonials({ items, variant = "marquee", speed = 60, label = "What customers say", className }) {
34
+ const root = useRef(null);
35
+ const [paused, setPaused] = useState(true);
36
+ useEffect(() => {
37
+ const el = root.current;
38
+ if (!el || variant !== "marquee") return;
39
+ let seen = false;
40
+ const sync = () => setPaused(!seen || document.hidden);
41
+ const io = new IntersectionObserver(([e]) => {
42
+ seen = e.isIntersecting;
43
+ sync();
44
+ });
45
+ io.observe(el);
46
+ document.addEventListener("visibilitychange", sync);
47
+ return () => {
48
+ io.disconnect();
49
+ document.removeEventListener("visibilitychange", sync);
50
+ };
51
+ }, [variant]);
52
+ const half = Math.ceil(items.length / 2);
53
+ const rows = [items.slice(0, half), items.slice(half).length ? items.slice(half) : items.slice(0, half)];
54
+ const grid = /* @__PURE__ */ jsx("div", { className: cx("asta-tm-still grid gap-3 @min-[560px]:grid-cols-2 @min-[860px]:grid-cols-3", variant === "marquee" && "hidden"), children: items.map((t, i) => /* @__PURE__ */ jsx(Card, { t }, t.name + i)) });
55
+ return /* @__PURE__ */ jsxs("section", { ref: root, "aria-label": label, "data-paused": paused || void 0, className: cx("asta-tm-root @container w-full", className), children: [
56
+ /* @__PURE__ */ jsx("style", { href: "asta-testimonials", precedence: "asta", children: KEYFRAMES }),
57
+ variant === "marquee" && /* @__PURE__ */ jsx("div", { className: "asta-tm-marquee flex flex-col gap-3 [mask-image:linear-gradient(90deg,transparent,#000_8%,#000_92%,transparent)]", children: rows.map((row, r) => /* @__PURE__ */ jsx("div", { className: "asta-tm-row overflow-hidden", children: /* @__PURE__ */ jsx(
58
+ "ul",
59
+ {
60
+ className: "asta-tm-track flex w-max will-change-transform",
61
+ style: { animation: `${r ? "asta-tm-right" : "asta-tm-left"} ${speed}s linear infinite` },
62
+ children: [0, 1].map(
63
+ (copy) => row.map((t, i) => /* @__PURE__ */ jsx("li", { "aria-hidden": copy === 1 || void 0, className: "w-[300px] shrink-0 pr-3 sm:w-[340px]", children: /* @__PURE__ */ jsx(Card, { t, className: "h-full" }) }, `${copy}-${i}`))
64
+ )
65
+ }
66
+ ) }, r)) }),
67
+ grid
68
+ ] });
69
+ }
70
+ var testimonials_default = Testimonials;
71
+
72
+ export {
73
+ Testimonials,
74
+ testimonials_default
75
+ };