asta-ui 0.9.7 → 0.9.8

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 (430) hide show
  1. package/css/asta.css +2 -2
  2. package/css/asta.js +175 -45
  3. package/css/components.css +76 -76
  4. package/css/runtime/agent.js +31 -10
  5. package/css/runtime/assist.js +0 -1
  6. package/css/runtime/blocks.js +15 -3
  7. package/css/runtime/core.js +3 -3
  8. package/css/runtime/forms.js +2 -2
  9. package/css/runtime/modules.js +30 -9
  10. package/css/runtime/overlays.js +93 -16
  11. package/css/src/assist.css +4 -4
  12. package/css/src/blocks.css +12 -12
  13. package/css/src/controls.css +3 -3
  14. package/css/src/core.css +23 -23
  15. package/css/src/data.css +10 -10
  16. package/css/src/display.css +5 -5
  17. package/css/src/forms.css +3 -3
  18. package/css/src/overlays.css +16 -16
  19. package/css/tokens.css +3 -0
  20. package/dist/add-to-cart.js +2 -1
  21. package/dist/agent-plan.js +1 -1
  22. package/dist/agent-team.js +1 -1
  23. package/dist/ai-chat.js +1 -1
  24. package/dist/alert.js +1 -1
  25. package/dist/announcement-bar.js +1 -1
  26. package/dist/api-keys.js +1 -1
  27. package/dist/autonomy-dial.js +2 -1
  28. package/dist/avatar-group.js +2 -2
  29. package/dist/avatar.js +1 -1
  30. package/dist/badge.js +1 -1
  31. package/dist/base/add-to-cart.js +2 -1
  32. package/dist/base/agent-plan.js +1 -1
  33. package/dist/base/agent-team.js +1 -1
  34. package/dist/base/ai-chat.js +1 -1
  35. package/dist/base/alert.js +1 -1
  36. package/dist/base/announcement-bar.js +1 -1
  37. package/dist/base/api-keys.js +1 -1
  38. package/dist/base/autonomy-dial.js +2 -1
  39. package/dist/base/avatar-group.js +2 -2
  40. package/dist/base/avatar.js +1 -1
  41. package/dist/base/badge.js +1 -1
  42. package/dist/base/billing.js +2 -2
  43. package/dist/base/booking-slots.js +2 -1
  44. package/dist/base/button.js +1 -1
  45. package/dist/base/candlestick.js +1 -1
  46. package/dist/base/card-checkout.js +2 -1
  47. package/dist/base/cart-drawer.js +2 -1
  48. package/dist/base/change-ledger.js +2 -1
  49. package/dist/base/chat-thread.js +2 -1
  50. package/dist/base/checkbox-aui-052.js +1 -1
  51. package/dist/base/checkbox-aui-053.js +1 -1
  52. package/dist/base/checkbox-aui-054.js +1 -1
  53. package/dist/base/checkbox.js +1 -1
  54. package/dist/base/checkout.js +3 -3
  55. package/dist/base/citations.js +1 -1
  56. package/dist/base/combobox-aui-046.js +1 -1
  57. package/dist/base/combobox-aui-047.js +1 -1
  58. package/dist/base/combobox.js +1 -1
  59. package/dist/base/comments.js +3 -3
  60. package/dist/base/context-meter.js +2 -2
  61. package/dist/base/cookie-consent.js +2 -2
  62. package/dist/base/data-table.js +1 -1
  63. package/dist/base/date-picker-aui-050.js +1 -1
  64. package/dist/base/date-picker-aui-051.js +1 -1
  65. package/dist/base/date-picker.js +1 -1
  66. package/dist/base/dialog.js +1 -1
  67. package/dist/base/drawer.js +1 -1
  68. package/dist/base/dropdown-menu.js +2 -2
  69. package/dist/base/elastic-string.js +2 -1
  70. package/dist/base/empty-state.js +2 -2
  71. package/dist/base/event-calendar.js +1 -1
  72. package/dist/base/fallback-chain.js +1 -1
  73. package/dist/base/field.js +1 -1
  74. package/dist/base/file-manager.js +2 -2
  75. package/dist/base/flash-sale.js +1 -1
  76. package/dist/base/footer-aui-026.js +1 -1
  77. package/dist/base/footer-aui-027.js +1 -1
  78. package/dist/base/footer.js +2 -2
  79. package/dist/base/gravity-pills.js +1 -1
  80. package/dist/base/hold-to-confirm.js +1 -1
  81. package/dist/base/inbox.js +3 -3
  82. package/dist/base/ink-trail.js +2 -1
  83. package/dist/base/input.js +1 -1
  84. package/dist/base/invoice.js +2 -2
  85. package/dist/base/kanban.js +2 -2
  86. package/dist/base/menubar.js +1 -1
  87. package/dist/base/model-picker.js +1 -1
  88. package/dist/base/motion-button.js +1 -1
  89. package/dist/base/navbar-aui-010.js +1 -1
  90. package/dist/base/navbar-aui-011.js +1 -1
  91. package/dist/base/navbar-aui-012.js +1 -1
  92. package/dist/base/navbar-aui-014.js +1 -1
  93. package/dist/base/navbar.js +2 -2
  94. package/dist/base/needle-field.js +1 -1
  95. package/dist/base/notification-center.js +3 -3
  96. package/dist/base/notification-stack.js +2 -1
  97. package/dist/base/now-playing.js +2 -1
  98. package/dist/base/onboarding.js +2 -2
  99. package/dist/base/otp-input-aui-042.js +1 -1
  100. package/dist/base/password-input-aui-040.js +1 -1
  101. package/dist/base/password-input.js +1 -1
  102. package/dist/base/pay-methods.js +2 -1
  103. package/dist/base/payment-received.js +2 -1
  104. package/dist/base/payment-status.js +2 -1
  105. package/dist/base/pixel-reveal.js +1 -1
  106. package/dist/base/plan-switcher.js +2 -1
  107. package/dist/base/popover.js +1 -1
  108. package/dist/base/price-alert.js +1 -1
  109. package/dist/base/price-chart.js +2 -1
  110. package/dist/base/pricing-aui-021.js +1 -1
  111. package/dist/base/pricing-aui-022.js +1 -1
  112. package/dist/base/pricing-aui-023.js +1 -1
  113. package/dist/base/pricing-aui-024.js +1 -1
  114. package/dist/base/pricing.js +2 -2
  115. package/dist/base/prompt-composer.js +1 -1
  116. package/dist/base/radio-group-aui-055.js +1 -1
  117. package/dist/base/radio-group-aui-057.js +1 -1
  118. package/dist/base/radio-group.js +1 -1
  119. package/dist/base/range-slider.js +1 -1
  120. package/dist/base/scramble-text.js +1 -1
  121. package/dist/base/scrub-input.js +1 -1
  122. package/dist/base/seat-picker.js +2 -1
  123. package/dist/base/select-aui-043.js +1 -1
  124. package/dist/base/settings-panel.js +2 -2
  125. package/dist/base/shipment-tracker.js +2 -1
  126. package/dist/base/sidebar.js +2 -2
  127. package/dist/base/sign-in.js +2 -2
  128. package/dist/base/skeleton.js +1 -1
  129. package/dist/base/slider-aui-062.js +1 -1
  130. package/dist/base/slider.js +1 -1
  131. package/dist/base/snap-grid.js +1 -1
  132. package/dist/base/sortable-list.js +1 -1
  133. package/dist/base/spinner.js +1 -1
  134. package/dist/base/split-bill.js +1 -1
  135. package/dist/base/split-flap.js +2 -1
  136. package/dist/base/stepper.js +1 -1
  137. package/dist/base/tabs.js +1 -1
  138. package/dist/base/tag-input-aui-048.js +1 -1
  139. package/dist/base/tag-input.js +1 -1
  140. package/dist/base/team-members.js +3 -3
  141. package/dist/base/testimonials.js +2 -2
  142. package/dist/base/textarea-aui-002.js +1 -1
  143. package/dist/base/textarea-aui-006.js +1 -1
  144. package/dist/base/textarea-aui-007.js +1 -1
  145. package/dist/base/textarea-aui-008.js +1 -1
  146. package/dist/base/textarea-aui-037.js +1 -1
  147. package/dist/base/textarea.js +1 -1
  148. package/dist/base/toast.js +1 -1
  149. package/dist/base/token-swap.js +2 -1
  150. package/dist/base/tool-dock.js +1 -1
  151. package/dist/base/trade-ticket.js +2 -1
  152. package/dist/base/variant-picker.js +2 -1
  153. package/dist/base/wishlist.js +2 -1
  154. package/dist/base/workspace-switcher.js +1 -1
  155. package/dist/base.js +125 -124
  156. package/dist/billing.js +2 -2
  157. package/dist/booking-slots.js +2 -1
  158. package/dist/button.js +1 -1
  159. package/dist/candlestick.js +1 -1
  160. package/dist/card-checkout.js +2 -1
  161. package/dist/cart-drawer.js +2 -1
  162. package/dist/change-ledger.js +2 -1
  163. package/dist/chat-thread.js +2 -1
  164. package/dist/checkbox-aui-052.js +1 -1
  165. package/dist/checkbox-aui-053.js +1 -1
  166. package/dist/checkbox-aui-054.js +1 -1
  167. package/dist/checkbox.js +1 -1
  168. package/dist/checkout.js +3 -3
  169. package/dist/{chunk-EKPTPTKK.js → chunk-2DECQKLI.js} +2 -2
  170. package/dist/{chunk-BEV2X4YL.js → chunk-2RB5T6WP.js} +51 -11
  171. package/dist/{chunk-VNUX5LOC.js → chunk-2SOX7WUL.js} +5 -5
  172. package/dist/{chunk-H4NFBYKY.js → chunk-3G2L5A4O.js} +8 -2
  173. package/dist/{chunk-OKCSTMX3.js → chunk-3LJ72YR4.js} +4 -1
  174. package/dist/{chunk-6RA7LJ3K.js → chunk-3OCWR4L3.js} +13 -8
  175. package/dist/{chunk-RFVKRVTD.js → chunk-3PLPK7QK.js} +3 -3
  176. package/dist/{chunk-TMOEFAXQ.js → chunk-3PLQKAD7.js} +15 -2
  177. package/dist/{chunk-57PESBSZ.js → chunk-3PSV752Q.js} +1 -1
  178. package/dist/{chunk-5N2G462S.js → chunk-3XHG7P5T.js} +2 -2
  179. package/dist/{chunk-X4JYOCFA.js → chunk-4CIRS3OI.js} +18 -17
  180. package/dist/{chunk-XYQI4ZYV.js → chunk-4GWJFDSU.js} +1 -1
  181. package/dist/{chunk-KEMMI76V.js → chunk-4RBIAKO6.js} +2 -2
  182. package/dist/{chunk-YJAZHJY3.js → chunk-56VKEODT.js} +1 -1
  183. package/dist/{chunk-3RMCFFW2.js → chunk-5CAZEFDX.js} +8 -8
  184. package/dist/{chunk-JVTDNOHQ.js → chunk-5OSKT7O3.js} +2 -2
  185. package/dist/{chunk-ZWBJUJTR.js → chunk-5ZQ6PMJT.js} +2 -2
  186. package/dist/{chunk-YPFZXGPT.js → chunk-5ZTFP7P6.js} +1 -1
  187. package/dist/{chunk-P37H477M.js → chunk-633N6IVU.js} +3 -3
  188. package/dist/{chunk-EXX6YSUX.js → chunk-64UK5LOT.js} +2 -2
  189. package/dist/{chunk-TLODJONC.js → chunk-66MJ6EEU.js} +1 -1
  190. package/dist/{chunk-HVFB44HO.js → chunk-6D4LHBWD.js} +2 -2
  191. package/dist/{chunk-D4AYULMF.js → chunk-6NR46VEH.js} +2 -2
  192. package/dist/{chunk-BIYNJDPD.js → chunk-6OZZ24UL.js} +2 -2
  193. package/dist/{chunk-EN6XBXW5.js → chunk-6ZGHPBHD.js} +3 -2
  194. package/dist/{chunk-C2G5BUEG.js → chunk-74WYX24P.js} +23 -14
  195. package/dist/{chunk-FQ4YUKAE.js → chunk-765WRI6C.js} +3 -3
  196. package/dist/{chunk-5RPJPL2V.js → chunk-7HI4HJFN.js} +62 -26
  197. package/dist/{chunk-IVCHYE55.js → chunk-7IOMROVG.js} +13 -8
  198. package/dist/{chunk-ECGJ6D5D.js → chunk-7PHSPBJK.js} +1 -1
  199. package/dist/{chunk-O626XQW2.js → chunk-ALDX2G5E.js} +15 -2
  200. package/dist/{chunk-2PPF4GK5.js → chunk-ALRSHXXA.js} +58 -29
  201. package/dist/{chunk-FT7WZV3D.js → chunk-AMFNY7IA.js} +13 -4
  202. package/dist/{chunk-LKRE4HLZ.js → chunk-AQV7BK73.js} +73 -34
  203. package/dist/{chunk-ZZ25XSK2.js → chunk-B3WWWKHW.js} +2 -1
  204. package/dist/{chunk-OFYGJUKP.js → chunk-BT77ALVB.js} +1 -1
  205. package/dist/{chunk-FOJRZASV.js → chunk-BWAOBM2E.js} +32 -8
  206. package/dist/{chunk-TXC6CCSA.js → chunk-BWYPKOG3.js} +1 -1
  207. package/dist/{chunk-F4CWSZXK.js → chunk-BXNC35OZ.js} +1 -1
  208. package/dist/{chunk-5DLY6FGD.js → chunk-CMOI7V4H.js} +1 -1
  209. package/dist/{chunk-5OHHGQV6.js → chunk-CRGCVJLS.js} +3 -3
  210. package/dist/{chunk-BV5HEXB5.js → chunk-CTWW5QOS.js} +5 -5
  211. package/dist/{chunk-ANL6VX4X.js → chunk-DEAQSJ4Z.js} +1 -1
  212. package/dist/{chunk-DWPGFNNF.js → chunk-DITROAPF.js} +32 -14
  213. package/dist/{chunk-EAHHWF3V.js → chunk-DSLKU6QJ.js} +32 -14
  214. package/dist/{chunk-ZGMBQZDV.js → chunk-DUXOV6MO.js} +28 -15
  215. package/dist/{chunk-DWZT455C.js → chunk-DZU5SMC3.js} +5 -5
  216. package/dist/{chunk-VUDTGRS3.js → chunk-EWSQCTIB.js} +1 -1
  217. package/dist/{chunk-FFRJW5O7.js → chunk-FA4A2EGP.js} +2 -2
  218. package/dist/{chunk-NZRQL3SA.js → chunk-FAHOYAQH.js} +1 -1
  219. package/dist/{chunk-NPVUFQGC.js → chunk-FDI2X6DY.js} +1 -1
  220. package/dist/{chunk-JNNMKFEQ.js → chunk-FGN7KDKD.js} +1 -1
  221. package/dist/{chunk-Q5A5OTLI.js → chunk-FOHY7LPU.js} +1 -1
  222. package/dist/{chunk-CBJUY4WE.js → chunk-FPOH7ETA.js} +1 -1
  223. package/dist/chunk-FS2PZKJY.js +43 -0
  224. package/dist/{chunk-XKA3LTJZ.js → chunk-FW45BTSS.js} +2 -2
  225. package/dist/{chunk-UZF7SCRT.js → chunk-G3FPQ3XG.js} +4 -4
  226. package/dist/{chunk-TAAAYFBT.js → chunk-GTS6MKPD.js} +2 -2
  227. package/dist/{chunk-7UMBKY3H.js → chunk-H46UXFHV.js} +1 -1
  228. package/dist/{chunk-B4XRAVHL.js → chunk-H7OVE6OB.js} +3 -3
  229. package/dist/{chunk-7RCBOTWL.js → chunk-HKOPYHLZ.js} +15 -8
  230. package/dist/{chunk-UXRTPEH7.js → chunk-HRQUTQSW.js} +9 -7
  231. package/dist/{chunk-WSL4JGEA.js → chunk-HSDMCZMX.js} +2 -2
  232. package/dist/{chunk-72UKXOMW.js → chunk-IBJA4ZM5.js} +14 -5
  233. package/dist/{chunk-F526V5BA.js → chunk-ID5GN2VU.js} +2 -2
  234. package/dist/{chunk-WO36QUH3.js → chunk-IDEK35SZ.js} +4 -1
  235. package/dist/{chunk-W5M3EHJL.js → chunk-IU4OH5MB.js} +3 -3
  236. package/dist/{chunk-SR4NYQWO.js → chunk-IVR3ZIXB.js} +1 -1
  237. package/dist/{chunk-PSTMF66E.js → chunk-JGZHWQGV.js} +5 -5
  238. package/dist/{chunk-2LM3VHNO.js → chunk-JJ473HJ2.js} +2 -1
  239. package/dist/{chunk-PZ2ZUHC3.js → chunk-JQX5KR7O.js} +15 -5
  240. package/dist/{chunk-TL32C2SQ.js → chunk-K3ASWIQF.js} +8 -2
  241. package/dist/{chunk-UTGEGGSE.js → chunk-K3SP537A.js} +12 -11
  242. package/dist/{chunk-SCQ6A4ZG.js → chunk-KATSSAVI.js} +8 -2
  243. package/dist/{chunk-MUDW65ZT.js → chunk-KCORGXZI.js} +32 -9
  244. package/dist/{chunk-LDTCIVDX.js → chunk-L67VH7II.js} +1 -1
  245. package/dist/{chunk-SPKSRH6G.js → chunk-LGGGLQAD.js} +10 -9
  246. package/dist/{chunk-IDXERBKL.js → chunk-LQR5OD3Z.js} +3 -2
  247. package/dist/{chunk-F7LAUVDJ.js → chunk-M362TW4G.js} +1 -1
  248. package/dist/{chunk-DNROUJ62.js → chunk-MBMY2VYS.js} +11 -6
  249. package/dist/{chunk-N6FMS47F.js → chunk-MEIRPHQO.js} +26 -21
  250. package/dist/{chunk-DU3CZ3K7.js → chunk-MIDBYG4B.js} +17 -4
  251. package/dist/{chunk-OH5VAD27.js → chunk-MKCLD2HJ.js} +1 -1
  252. package/dist/{chunk-FLCT7THQ.js → chunk-MNWZP3S2.js} +1 -1
  253. package/dist/{chunk-OXLBH4QM.js → chunk-MT3VMDV4.js} +1 -1
  254. package/dist/chunk-MVGUQ36E.js +75 -0
  255. package/dist/{chunk-RQNXELUL.js → chunk-MXRBXBE3.js} +1 -1
  256. package/dist/{chunk-IATF2OTU.js → chunk-MYPRORYG.js} +14 -5
  257. package/dist/{chunk-V7JUJQNR.js → chunk-N7XJO5Q4.js} +1 -1
  258. package/dist/{chunk-ISZ7O2Q6.js → chunk-O6GCB7HD.js} +10 -9
  259. package/dist/{chunk-EG7NXGDD.js → chunk-OFUEFWOK.js} +19 -6
  260. package/dist/{chunk-ZUH7XRX7.js → chunk-OFWUA5BO.js} +3 -2
  261. package/dist/{chunk-ZQV2GAWY.js → chunk-OJNEZ5AY.js} +10 -9
  262. package/dist/{chunk-DPLH3EGO.js → chunk-OOK5CF2D.js} +91 -39
  263. package/dist/{chunk-BG2W2KVE.js → chunk-ORZVPZQP.js} +8 -2
  264. package/dist/{chunk-RBTX7TVA.js → chunk-OSZXWKKH.js} +3 -3
  265. package/dist/{chunk-DWA62IYV.js → chunk-OUGWYBWG.js} +3 -3
  266. package/dist/{chunk-QJXVIEB5.js → chunk-P3XPSBST.js} +2 -2
  267. package/dist/{chunk-37JQA6PI.js → chunk-PHI4NQLJ.js} +1 -1
  268. package/dist/{chunk-KEMC4RIF.js → chunk-PLQ6CYRC.js} +1 -1
  269. package/dist/{chunk-JF4BKHFK.js → chunk-PNN2M3V3.js} +2 -2
  270. package/dist/{chunk-45KDL3JM.js → chunk-PZA44CGX.js} +1 -1
  271. package/dist/{chunk-SUWA7DM6.js → chunk-Q3KZWQWK.js} +2 -1
  272. package/dist/{chunk-DD2TBHSJ.js → chunk-Q6IUIKAE.js} +1 -1
  273. package/dist/{chunk-JAQKJBVJ.js → chunk-QEHCINJG.js} +3 -3
  274. package/dist/{chunk-EOZDJA7Z.js → chunk-QJ7QZWXJ.js} +1 -1
  275. package/dist/{chunk-RSUZHZCG.js → chunk-QKAFDPXO.js} +12 -11
  276. package/dist/{chunk-VS3GQ4JR.js → chunk-QLIA6OT4.js} +7 -5
  277. package/dist/{chunk-3PQTSFOS.js → chunk-QMH6X4OV.js} +1 -1
  278. package/dist/{chunk-FIPWA5KL.js → chunk-QRU57VKP.js} +27 -9
  279. package/dist/{chunk-W6YVDJHX.js → chunk-RAEOJYMR.js} +2 -2
  280. package/dist/{chunk-XNL5BLUR.js → chunk-RJZ37JRF.js} +8 -7
  281. package/dist/{chunk-NVLYF4UL.js → chunk-RPOV3WAK.js} +55 -13
  282. package/dist/{chunk-WNPMHOXE.js → chunk-RQ673YJJ.js} +1 -1
  283. package/dist/{chunk-6322OCI4.js → chunk-RVVYQ6J5.js} +20 -9
  284. package/dist/{chunk-MDB4RFMV.js → chunk-SDUD2HI2.js} +3 -3
  285. package/dist/{chunk-3ZFF6VC5.js → chunk-SK6M4GOD.js} +11 -10
  286. package/dist/{chunk-H4URFOQC.js → chunk-TAN5UNTZ.js} +36 -5
  287. package/dist/{chunk-FT66LAUZ.js → chunk-UACKIMP4.js} +2 -1
  288. package/dist/{chunk-45IXJ7W7.js → chunk-UINHBFRO.js} +12 -10
  289. package/dist/{chunk-VWYX5IRP.js → chunk-USBGON3T.js} +38 -16
  290. package/dist/{chunk-U6N7CZYN.js → chunk-V4O44BPH.js} +2 -2
  291. package/dist/{chunk-ADZI4ROA.js → chunk-VDUU5243.js} +1 -0
  292. package/dist/{chunk-7MBTBYTJ.js → chunk-VDWLZWAT.js} +3 -3
  293. package/dist/{chunk-CSTI5CTF.js → chunk-VEKYE733.js} +1 -1
  294. package/dist/{chunk-MAKFUH34.js → chunk-VI6565XF.js} +3 -3
  295. package/dist/{chunk-PAXDHYBX.js → chunk-VIFKQE2H.js} +79 -16
  296. package/dist/{chunk-JRD6FENH.js → chunk-VTZDMX2U.js} +18 -9
  297. package/dist/{chunk-WRB66XD3.js → chunk-VYO4JJVI.js} +3 -1
  298. package/dist/{chunk-E4MX3E3B.js → chunk-W723JZDF.js} +22 -7
  299. package/dist/{chunk-U7VX6A6K.js → chunk-WA4HAXEF.js} +40 -15
  300. package/dist/{chunk-LPTY5WXM.js → chunk-WBRRSZW4.js} +2 -2
  301. package/dist/{chunk-44DNL43W.js → chunk-WDOI4U7K.js} +1 -1
  302. package/dist/{chunk-UBTYMAKF.js → chunk-WIX5IGDH.js} +5 -8
  303. package/dist/{chunk-MPH64VG7.js → chunk-WOMLNEGP.js} +3 -3
  304. package/dist/{chunk-JWBGI7FN.js → chunk-WVXAVILO.js} +91 -39
  305. package/dist/{chunk-YRPLUNP4.js → chunk-X4M6RXNL.js} +2 -2
  306. package/dist/{chunk-FDE3S2YK.js → chunk-XCKKECIR.js} +2 -2
  307. package/dist/{chunk-4SLC3EK6.js → chunk-XGNTNUAT.js} +79 -16
  308. package/dist/{chunk-Z5GNX2S3.js → chunk-XN2OBKPK.js} +1 -1
  309. package/dist/{chunk-SDL3JXFN.js → chunk-XSNQN67K.js} +1 -1
  310. package/dist/{chunk-ZE7BT2K4.js → chunk-Y3QA2RIG.js} +70 -13
  311. package/dist/{chunk-25RCKHWV.js → chunk-YDKATODA.js} +3 -2
  312. package/dist/{chunk-5GGS6VP5.js → chunk-YUOEZYRP.js} +1 -1
  313. package/dist/{chunk-OBU2UOYI.js → chunk-YV3D4CPO.js} +2 -2
  314. package/dist/{chunk-6HPSPZTF.js → chunk-YXEAYRUY.js} +10 -9
  315. package/dist/{chunk-R3LWG23K.js → chunk-Z5TG7ZGD.js} +15 -8
  316. package/dist/{chunk-ITGWD7ZY.js → chunk-ZH5A4YKQ.js} +2 -2
  317. package/dist/{chunk-QASSYLQQ.js → chunk-ZJLQDN5R.js} +2 -2
  318. package/dist/{chunk-CZCZB5YP.js → chunk-ZK4DK2SS.js} +1 -1
  319. package/dist/{chunk-24O5V2PQ.js → chunk-ZMCNI37U.js} +1 -1
  320. package/dist/{chunk-BKHH2CJA.js → chunk-ZNH7MSLM.js} +1 -1
  321. package/dist/{chunk-PIE76JKF.js → chunk-ZO25PAJA.js} +1 -1
  322. package/dist/{chunk-RGVRHFKY.js → chunk-ZXHMJKJY.js} +4 -2
  323. package/dist/{chunk-UC55XR76.js → chunk-ZYZHLWFL.js} +8 -2
  324. package/dist/citations.js +1 -1
  325. package/dist/combobox-aui-046.js +1 -1
  326. package/dist/combobox-aui-047.js +1 -1
  327. package/dist/combobox.js +1 -1
  328. package/dist/comments.js +3 -3
  329. package/dist/context-meter.js +2 -2
  330. package/dist/cookie-consent.js +2 -2
  331. package/dist/data-table.js +1 -1
  332. package/dist/date-picker-aui-050.js +1 -1
  333. package/dist/date-picker-aui-051.js +1 -1
  334. package/dist/date-picker.js +1 -1
  335. package/dist/dialog.js +1 -1
  336. package/dist/drawer.js +1 -1
  337. package/dist/dropdown-menu.js +2 -2
  338. package/dist/elastic-string.js +2 -1
  339. package/dist/empty-state.js +2 -2
  340. package/dist/event-calendar.js +1 -1
  341. package/dist/fallback-chain.js +1 -1
  342. package/dist/field.js +1 -1
  343. package/dist/file-manager.js +2 -2
  344. package/dist/flash-sale.js +1 -1
  345. package/dist/footer-aui-026.js +1 -1
  346. package/dist/footer-aui-027.js +1 -1
  347. package/dist/footer.js +2 -2
  348. package/dist/gravity-pills.js +1 -1
  349. package/dist/hold-to-confirm.js +1 -1
  350. package/dist/inbox.js +3 -3
  351. package/dist/index.js +126 -125
  352. package/dist/ink-trail.js +2 -1
  353. package/dist/input.js +1 -1
  354. package/dist/invoice.js +2 -2
  355. package/dist/kanban.js +2 -2
  356. package/dist/menubar.js +1 -1
  357. package/dist/model-picker.js +1 -1
  358. package/dist/motion-button.js +1 -1
  359. package/dist/navbar-aui-010.js +1 -1
  360. package/dist/navbar-aui-011.js +1 -1
  361. package/dist/navbar-aui-012.js +1 -1
  362. package/dist/navbar-aui-014.js +1 -1
  363. package/dist/navbar.js +2 -2
  364. package/dist/needle-field.js +1 -1
  365. package/dist/notification-center.js +3 -3
  366. package/dist/notification-stack.js +2 -1
  367. package/dist/now-playing.js +2 -1
  368. package/dist/onboarding.js +2 -2
  369. package/dist/otp-input-aui-042.js +1 -1
  370. package/dist/password-input-aui-040.js +1 -1
  371. package/dist/password-input.js +1 -1
  372. package/dist/pay-methods.js +2 -1
  373. package/dist/payment-received.js +2 -1
  374. package/dist/payment-status.js +2 -1
  375. package/dist/pixel-reveal.js +1 -1
  376. package/dist/plan-switcher.js +2 -1
  377. package/dist/popover.js +1 -1
  378. package/dist/price-alert.js +1 -1
  379. package/dist/price-chart.js +2 -1
  380. package/dist/pricing-aui-021.js +1 -1
  381. package/dist/pricing-aui-022.js +1 -1
  382. package/dist/pricing-aui-023.js +1 -1
  383. package/dist/pricing-aui-024.js +1 -1
  384. package/dist/pricing.js +2 -2
  385. package/dist/prompt-composer.js +1 -1
  386. package/dist/radio-group-aui-055.js +1 -1
  387. package/dist/radio-group-aui-057.js +1 -1
  388. package/dist/radio-group.js +1 -1
  389. package/dist/range-slider.js +1 -1
  390. package/dist/scramble-text.js +1 -1
  391. package/dist/scrub-input.js +1 -1
  392. package/dist/seat-picker.js +2 -1
  393. package/dist/select-aui-043.js +1 -1
  394. package/dist/settings-panel.js +2 -2
  395. package/dist/shipment-tracker.js +2 -1
  396. package/dist/sidebar.js +2 -2
  397. package/dist/sign-in.js +2 -2
  398. package/dist/skeleton.js +1 -1
  399. package/dist/slider-aui-062.js +1 -1
  400. package/dist/slider.js +1 -1
  401. package/dist/snap-grid.js +1 -1
  402. package/dist/sortable-list.js +1 -1
  403. package/dist/spinner.js +1 -1
  404. package/dist/split-bill.js +1 -1
  405. package/dist/split-flap.js +2 -1
  406. package/dist/stepper.js +1 -1
  407. package/dist/styles.css +3 -0
  408. package/dist/tabs.js +1 -1
  409. package/dist/tag-input-aui-048.js +1 -1
  410. package/dist/tag-input.js +1 -1
  411. package/dist/team-members.js +3 -3
  412. package/dist/testimonials.js +2 -2
  413. package/dist/textarea-aui-002.js +1 -1
  414. package/dist/textarea-aui-006.js +1 -1
  415. package/dist/textarea-aui-007.js +1 -1
  416. package/dist/textarea-aui-008.js +1 -1
  417. package/dist/textarea-aui-037.js +1 -1
  418. package/dist/textarea.js +1 -1
  419. package/dist/toast.js +1 -1
  420. package/dist/token-swap.js +2 -1
  421. package/dist/tool-dock.js +1 -1
  422. package/dist/tooltip.js +1 -1
  423. package/dist/trade-ticket.js +2 -1
  424. package/dist/types/components/kit/api-keys.d.ts +1 -1
  425. package/dist/types/components/lab/lab-hooks.d.ts +12 -0
  426. package/dist/variant-picker.js +2 -1
  427. package/dist/wishlist.js +2 -1
  428. package/dist/workspace-switcher.js +1 -1
  429. package/package.json +1 -1
  430. package/dist/chunk-2Z5Z4YYZ.js +0 -57
@@ -433,6 +433,7 @@
433
433
  if (!baseline.has(form)) return;
434
434
  const on = serial(form) !== baseline.get(form);
435
435
  form.toggleAttribute("data-dirty", on);
436
+ guard();
436
437
  if (on) {
437
438
  form.removeAttribute("data-saved");
438
439
  clearTimeout(form._astaT);
@@ -468,18 +469,29 @@
468
469
  }
469
470
  baseline.set(f, serial(f));
470
471
  f.removeAttribute("data-dirty");
472
+ guard();
471
473
  f.setAttribute("data-saved", "");
472
474
  barButtons(f, false);
473
475
  clearTimeout(f._astaT);
474
476
  f._astaT = setTimeout(() => f.removeAttribute("data-saved"), 1400);
475
477
  });
476
- addEventListener("beforeunload", (e) => {
478
+ // beforeunload is attached only while a settings form has unsaved changes: a page holding the listener can't
479
+ // go into the back/forward cache.
480
+ function onLeave(e) {
477
481
  const f = document.querySelector("[data-asta-settings][data-dirty]");
478
482
  if (f) {
479
483
  shake(f.querySelector("[data-asta-settings-bar] > *"));
480
484
  e.preventDefault();
481
- }
482
- });
485
+ } else guard();
486
+ }
487
+ let guarding = false;
488
+ function guard() {
489
+ const on = !!document.querySelector("[data-asta-settings][data-dirty]");
490
+ if (on === guarding) return;
491
+ guarding = on;
492
+ if (on) addEventListener("beforeunload", onLeave);
493
+ else removeEventListener("beforeunload", onLeave);
494
+ }
483
495
 
484
496
  /* ---------- Boot and htmx ---------- */
485
497
 
@@ -70,8 +70,8 @@
70
70
  /* ---------- Toast ---------- */
71
71
 
72
72
  const TONE = {
73
- success: { color: "#30a46c", path: "M4.5 8.5l2.2 2.2L11.5 5.5" },
74
- error: { color: "#e5484d", path: "M8 4.5v4M8 11h.01" },
73
+ success: { color: "var(--brand)", on: "var(--on-brand)", path: "M4.5 8.5l2.2 2.2L11.5 5.5" },
74
+ error: { color: "var(--ink)", on: "var(--paper)", path: "M8 4.5v4M8 11h.01" },
75
75
  };
76
76
  const esc = (s) => String(s ?? "").replace(/[&<>"']/g, (c) => `&#${c.charCodeAt(0)};`);
77
77
 
@@ -159,7 +159,7 @@
159
159
  : `<button type="button" data-asta-toast-close aria-label="Dismiss" class="flex h-6 w-6 shrink-0 items-center justify-center rounded-full text-mute outline-none transition-colors hover:bg-paper-2 hover:text-ink focus-visible:ring-2 focus-visible:ring-brand/50"><svg viewBox="0 0 16 16" class="h-3 w-3" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" aria-hidden="true"><path d="m4.5 4.5 7 7M11.5 4.5l-7 7"/></svg></button>`;
160
160
  li.innerHTML = `<div class="flex items-start gap-3 p-3.5 pr-3 transition-opacity">${
161
161
  tone
162
- ? `<span class="mt-px flex h-5 w-5 shrink-0 items-center justify-center rounded-full text-white" style="background:${tone.color}"><svg viewBox="0 0 16 16" class="h-3 w-3" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="${tone.path}"/></svg></span>`
162
+ ? `<span class="mt-px flex h-5 w-5 shrink-0 items-center justify-center rounded-full" style="background:${tone.color};color:${tone.on}"><svg viewBox="0 0 16 16" class="h-3 w-3" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="${tone.path}"/></svg></span>`
163
163
  : ""
164
164
  }<div class="min-w-0 flex-1"><p class="text-[13.5px] font-medium leading-5 tracking-[-0.01em] text-ink">${esc(t.title)}</p>${
165
165
  t.description ? `<p class="mt-0.5 text-[12.5px] leading-snug text-mute">${esc(t.description)}</p>` : ""
@@ -421,7 +421,7 @@
421
421
  const full = n >= max;
422
422
  const count = root.querySelector("[data-asta-tags-count]");
423
423
  count.textContent = `${n}/${max}`;
424
- count.classList.toggle("text-[#e5484d]", full);
424
+ count.classList.toggle("text-ink", full);
425
425
  count.classList.toggle("text-mute", !full);
426
426
  input.disabled = full && !input.value;
427
427
  input.placeholder = full ? "Limit reached" : n ? "" : root.dataset.placeholder || "";
@@ -1006,7 +1006,7 @@
1006
1006
  cell.setAttribute("aria-selected", String(picked || inBand));
1007
1007
  const inMonth = d.getMonth() === s.view.getMonth();
1008
1008
  b.classList.toggle("font-medium", picked);
1009
- b.classList.toggle("text-white", picked);
1009
+ b.classList.toggle("text-on-brand", picked);
1010
1010
  b.classList.toggle("text-ink", !picked && inMonth);
1011
1011
  b.classList.toggle("text-mute", !picked && !inMonth);
1012
1012
  b.classList.toggle("hover:bg-paper-2", !picked);
@@ -23,7 +23,24 @@
23
23
  const pad = (n) => String(n).padStart(2, "0");
24
24
  const seen = new WeakSet();
25
25
  const onScreen = new Set();
26
- const io = "IntersectionObserver" in window ? new IntersectionObserver((es) => es.forEach((e) => onScreen[e.isIntersecting ? "add" : "delete"](e.target))) : null;
26
+ // The timer only runs while a countdown is on screen and the tab is visible. Countdowns are picked up at boot
27
+ // and after every htmx swap, so a tick paints the visible ones and never queries the document.
28
+ let timer = 0;
29
+ const stop = () => {
30
+ clearInterval(timer);
31
+ timer = 0;
32
+ };
33
+ const start = () => {
34
+ if (!timer && onScreen.size && !document.hidden) timer = setInterval(tick, 1000);
35
+ };
36
+ const io =
37
+ "IntersectionObserver" in window
38
+ ? new IntersectionObserver((es) => {
39
+ es.forEach((e) => onScreen[e.isIntersecting ? "add" : "delete"](e.target));
40
+ if (onScreen.size) start();
41
+ else stop();
42
+ })
43
+ : null;
27
44
  function paint(cd) {
28
45
  const end = Date.parse(cd.getAttribute("data-asta-countdown"));
29
46
  if (Number.isNaN(end)) return;
@@ -44,6 +61,14 @@
44
61
  fire(cd, "asta:countdown-done");
45
62
  }
46
63
  }
64
+ function tick() {
65
+ onScreen.forEach((cd) => {
66
+ if (cd.isConnected) return paint(cd);
67
+ onScreen.delete(cd);
68
+ io?.unobserve(cd);
69
+ });
70
+ if (!onScreen.size) stop();
71
+ }
47
72
  function scan() {
48
73
  document.querySelectorAll("[data-asta-countdown]").forEach((cd) => {
49
74
  if (!seen.has(cd)) {
@@ -53,19 +78,15 @@
53
78
  paint(cd);
54
79
  }
55
80
  });
56
- onScreen.forEach((cd) => {
57
- if (cd.isConnected) return paint(cd);
58
- onScreen.delete(cd);
59
- io?.unobserve(cd);
60
- });
81
+ tick();
82
+ start();
61
83
  }
62
- let timer = 0;
63
84
  const run = () => {
64
- clearInterval(timer);
65
- if (!document.hidden) timer = setInterval(scan, 1000);
85
+ stop();
66
86
  scan();
67
87
  };
68
88
  document.addEventListener("visibilitychange", run);
89
+ document.addEventListener("htmx:afterSettle", scan);
69
90
  if (document.readyState === "loading") document.addEventListener("DOMContentLoaded", run, { once: true });
70
91
  else run();
71
92
 
@@ -924,9 +924,25 @@
924
924
  if ((root._astaOpen ?? null) !== null && next?.matches("[data-asta-nav-trigger]")) navShow(root, Number(next.dataset.astaNavTrigger));
925
925
  }
926
926
  });
927
- const navScrolled = () => {
927
+ // Navbars are collected once (boot, and after every htmx swap). A scroll event only schedules one frame, and
928
+ // that frame touches the DOM only when the scrolled state actually flips.
929
+ let navRoots = [];
930
+ let navOn = null;
931
+ let navFrame = 0;
932
+ const navApply = () => {
933
+ navFrame = 0;
928
934
  const on = scrollY > 40;
929
- for (const root of document.querySelectorAll("[data-asta-navbar]")) root.toggleAttribute("data-scrolled", on);
935
+ if (on === navOn) return;
936
+ navOn = on;
937
+ for (const root of navRoots) root.toggleAttribute("data-scrolled", on);
938
+ };
939
+ const navCollect = () => {
940
+ navRoots = [...document.querySelectorAll("[data-asta-navbar]")];
941
+ navOn = null;
942
+ navApply();
943
+ };
944
+ const navScrolled = () => {
945
+ if (!navFrame) navFrame = requestAnimationFrame(navApply);
930
946
  };
931
947
  addEventListener("scroll", navScrolled, { passive: true });
932
948
 
@@ -1232,6 +1248,64 @@
1232
1248
 
1233
1249
  /* ---------- Wordmark: letters near the pointer lift ---------- */
1234
1250
 
1251
+ // Letter centres are measured when the pointer enters (and again after the box resizes). A move is then a
1252
+ // binary search for the letters in reach plus a few transform writes, batched into one frame per box.
1253
+ const wmBoxes = new Set();
1254
+ const wmRO = new ResizeObserver((entries) => {
1255
+ for (const en of entries) if (en.target._astaWm) en.target._astaWm.stale = true;
1256
+ });
1257
+ const lowerBound = (a, v) => {
1258
+ let lo = 0;
1259
+ let hi = a.length;
1260
+ while (lo < hi) {
1261
+ const mid = (lo + hi) >> 1;
1262
+ if (a[mid] < v) lo = mid + 1;
1263
+ else hi = mid;
1264
+ }
1265
+ return lo;
1266
+ };
1267
+ function wmMeasure(box) {
1268
+ if (!wmBoxes.has(box)) {
1269
+ wmBoxes.add(box);
1270
+ wmRO.observe(box);
1271
+ }
1272
+ const els = [...box.querySelectorAll("span[data-l]")];
1273
+ const c = [];
1274
+ const w = [];
1275
+ let reach = 0;
1276
+ // offsetLeft ignores the current lift, so letters don't chase their own offset.
1277
+ for (const s of els) {
1278
+ const sw = s.offsetWidth;
1279
+ c.push(s.offsetLeft + sw / 2);
1280
+ w.push(sw);
1281
+ reach = Math.max(reach, sw * 2.5);
1282
+ }
1283
+ const prev = box._astaWm;
1284
+ box._astaWm = { els, c, w, reach, left: box.getBoundingClientRect().left, still: reduce(), a: prev?.a ?? 0, b: prev?.b ?? 0, x: null, f: 0, stale: false };
1285
+ return box._astaWm;
1286
+ }
1287
+ function wmFlush(box) {
1288
+ const d = box._astaWm;
1289
+ if (!d) return;
1290
+ d.f = 0;
1291
+ const x = d.x === null || d.still ? null : d.x - d.left;
1292
+ const a = x === null ? 0 : lowerBound(d.c, x - d.reach);
1293
+ const b = x === null ? 0 : lowerBound(d.c, x + d.reach);
1294
+ for (let i = d.a; i < Math.min(d.b, d.els.length); i++) if (i < a || i >= b) d.els[i].style.transform = "";
1295
+ for (let i = a; i < b; i++) d.els[i].style.transform = `translateY(${-Math.max(0, 1 - Math.abs(x - d.c[i]) / (d.w[i] * 2.5)) * 14}%)`;
1296
+ d.a = a;
1297
+ d.b = b;
1298
+ }
1299
+ function wordmark(box, x) {
1300
+ const d = !box._astaWm || box._astaWm.stale ? wmMeasure(box) : box._astaWm;
1301
+ d.x = x;
1302
+ if (!d.f) d.f = requestAnimationFrame(() => wmFlush(box));
1303
+ }
1304
+ document.addEventListener("pointerover", (e) => {
1305
+ const box = elOf(e.target)?.closest("[data-asta-wordmark]");
1306
+ // Entering from outside: measure fresh (the page may have scrolled since the last hover).
1307
+ if (box && !box.contains(elOf(e.relatedTarget)) && box._astaWm) box._astaWm.stale = true;
1308
+ });
1235
1309
  document.addEventListener("pointermove", (e) => {
1236
1310
  const box = elOf(e.target)?.closest("[data-asta-wordmark]");
1237
1311
  if (box) wordmark(box, e.clientX);
@@ -1240,19 +1314,6 @@
1240
1314
  const box = elOf(e.target)?.closest("[data-asta-wordmark]");
1241
1315
  if (box && !box.contains(elOf(e.relatedTarget))) wordmark(box, null);
1242
1316
  });
1243
- function wordmark(box, x) {
1244
- if (reduce()) return;
1245
- for (const s of box.querySelectorAll("span[data-l]")) {
1246
- if (x === null) {
1247
- s.style.transform = "";
1248
- continue;
1249
- }
1250
- // Measure without the current lift, so letters don't chase their own offset.
1251
- const r = s.offsetLeft + s.offsetWidth / 2 + box.getBoundingClientRect().left;
1252
- const k = Math.max(0, 1 - Math.abs(x - r) / (s.offsetWidth * 2.5));
1253
- s.style.transform = `translateY(${-k * 14}%)`;
1254
- }
1255
- }
1256
1317
 
1257
1318
  /* ---------- Boot and htmx ---------- */
1258
1319
 
@@ -1278,12 +1339,13 @@
1278
1339
  }
1279
1340
  const boot = () => {
1280
1341
  scan(document);
1281
- navScrolled();
1342
+ navCollect();
1282
1343
  };
1283
1344
  if (document.readyState === "loading") document.addEventListener("DOMContentLoaded", boot);
1284
1345
  else boot();
1285
1346
  document.addEventListener("htmx:afterSettle", (e) => {
1286
1347
  const t = elOf(e.detail?.elt) || document.body;
1348
+ navCollect();
1287
1349
  // A server search answered: refresh its palette.
1288
1350
  const cmd = t.closest?.("dialog[data-asta-command]");
1289
1351
  if (cmd) return cmdRefresh(cmd);
@@ -1297,10 +1359,25 @@
1297
1359
  else if (t.matches("[data-asta-tooldock]")) dockPlace(t, false);
1298
1360
  }
1299
1361
  });
1362
+ const watched = new Set();
1300
1363
  const watch = () => {
1364
+ // Stop observing nodes an htmx swap removed, so they can be collected.
1365
+ for (const el of watched) {
1366
+ if (el.isConnected) continue;
1367
+ resized.unobserve(el);
1368
+ watched.delete(el);
1369
+ el._astaWatched = false;
1370
+ }
1371
+ for (const el of wmBoxes) {
1372
+ if (el.isConnected) continue;
1373
+ wmRO.unobserve(el);
1374
+ wmBoxes.delete(el);
1375
+ el._astaWm = null;
1376
+ }
1301
1377
  for (const el of document.querySelectorAll("[data-asta-sidebar],[data-asta-tooldock]")) {
1302
1378
  if (el._astaWatched) continue;
1303
1379
  el._astaWatched = true;
1380
+ watched.add(el);
1304
1381
  resized.observe(el);
1305
1382
  }
1306
1383
  };
@@ -90,7 +90,7 @@
90
90
  @apply text-ink;
91
91
  }
92
92
  .asta-model-picker-new {
93
- @apply shrink-0 rounded-[5px] bg-brand px-1.5 text-[10px] font-semibold leading-[16px] text-white;
93
+ @apply shrink-0 rounded-[5px] bg-brand px-1.5 text-[10px] font-semibold leading-[16px] text-on-brand;
94
94
  }
95
95
  .asta-model-picker-hint {
96
96
  @apply mt-0.5 block truncate text-[12px] text-mute;
@@ -152,7 +152,7 @@
152
152
  .asta-citations-pill {
153
153
  @apply mx-px inline-grid h-[18px] min-w-[18px] -translate-y-px cursor-pointer place-items-center rounded-[5px] bg-[color-mix(in_srgb,var(--ink)_8%,transparent)] px-1 align-middle text-[11px] font-semibold leading-none tabular-nums text-ink-2 outline-none;
154
154
  @apply transition-[background-color,color,transform] duration-200 hover:bg-[color-mix(in_srgb,var(--ink)_14%,transparent)] hover:text-ink focus-visible:ring-2 focus-visible:ring-brand/50 active:scale-95;
155
- @apply aria-expanded:bg-brand aria-expanded:text-white data-lit:bg-brand data-lit:text-white;
155
+ @apply aria-expanded:bg-brand aria-expanded:text-on-brand data-lit:bg-brand data-lit:text-on-brand;
156
156
  }
157
157
  .asta-citations-card {
158
158
  @apply absolute bottom-full left-1/2 z-50 mb-2 block w-[304px] max-w-[calc(100vw-32px)] -translate-x-1/2 origin-bottom whitespace-normal rounded-xl bg-paper p-3.5 text-left leading-normal;
@@ -181,7 +181,7 @@
181
181
  @apply grid h-[18px] w-[18px] shrink-0 place-items-center rounded-[5px] bg-ink text-[10px] font-semibold uppercase text-paper;
182
182
  }
183
183
  .asta-citations-tile-2 {
184
- @apply bg-brand text-white;
184
+ @apply bg-brand text-on-brand;
185
185
  }
186
186
  .asta-citations-tile-3 {
187
187
  @apply bg-paper-2 text-ink shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent)];
@@ -571,7 +571,7 @@
571
571
  }
572
572
  }
573
573
  .asta-prompt-send {
574
- @apply ml-auto grid h-8 w-8 shrink-0 cursor-pointer place-items-center rounded-lg bg-brand text-white outline-none transition-[opacity,transform] duration-150 active:scale-95 disabled:cursor-default disabled:opacity-35;
574
+ @apply ml-auto grid h-8 w-8 shrink-0 cursor-pointer place-items-center rounded-lg bg-brand text-on-brand outline-none transition-[opacity,transform] duration-150 active:scale-95 disabled:cursor-default disabled:opacity-35;
575
575
  @apply focus-visible:ring-2 focus-visible:ring-brand/50 focus-visible:ring-offset-2 focus-visible:ring-offset-paper;
576
576
  & > svg {
577
577
  @apply h-4 w-4;
@@ -49,7 +49,7 @@
49
49
  @apply text-brand outline-none hover:underline focus-visible:underline;
50
50
  }
51
51
  .asta-sign-in-alert {
52
- @apply mt-4 rounded-lg bg-[#e5484d]/10 px-3 py-2 text-[13px] text-[#e5484d] animate-[asta-field-in_.3s_cubic-bezier(.16,1,.3,1)_both];
52
+ @apply mt-4 rounded-lg bg-paper-2 px-3 py-2 text-[13px] text-ink animate-[asta-field-in_.3s_cubic-bezier(.16,1,.3,1)_both];
53
53
  }
54
54
  .asta-sign-in-submit {
55
55
  @apply mt-5 w-full;
@@ -76,7 +76,7 @@
76
76
  @apply flex min-h-[380px] flex-col items-center justify-center text-center animate-[asta-blk-pop_.5s_cubic-bezier(.16,1,.3,1)_both] motion-reduce:animate-none;
77
77
  }
78
78
  .asta-sign-in-done-icon {
79
- @apply flex h-14 w-14 items-center justify-center rounded-full bg-[#30a46c] text-white;
79
+ @apply flex h-14 w-14 items-center justify-center rounded-full bg-brand text-on-brand;
80
80
  & > svg {
81
81
  @apply h-7 w-7 animate-[asta-blk-pop_.5s_.15s_cubic-bezier(.16,1,.3,1)_both] motion-reduce:animate-none;
82
82
  }
@@ -104,7 +104,7 @@
104
104
  @apply flex flex-col items-center px-8 py-12 text-center animate-[asta-rise_.5s_cubic-bezier(.16,1,.3,1)_both] motion-reduce:animate-none;
105
105
  }
106
106
  .asta-onboarding-done-icon {
107
- @apply flex h-12 w-12 items-center justify-center rounded-full bg-brand text-white animate-[asta-blk-pop_.6s_.1s_cubic-bezier(.16,1,.3,1)_both] motion-reduce:animate-none;
107
+ @apply flex h-12 w-12 items-center justify-center rounded-full bg-brand text-on-brand animate-[asta-blk-pop_.6s_.1s_cubic-bezier(.16,1,.3,1)_both] motion-reduce:animate-none;
108
108
  & > svg {
109
109
  @apply h-6 w-6;
110
110
  }
@@ -180,7 +180,7 @@
180
180
  }
181
181
  }
182
182
  .asta-onboarding-tick {
183
- @apply absolute inset-0 flex scale-50 items-center justify-center rounded-full bg-brand text-white opacity-0 transition-[opacity,transform] duration-500 ease-[cubic-bezier(.16,1,.3,1)];
183
+ @apply absolute inset-0 flex scale-50 items-center justify-center rounded-full bg-brand text-on-brand opacity-0 transition-[opacity,transform] duration-500 ease-[cubic-bezier(.16,1,.3,1)];
184
184
  & > svg {
185
185
  @apply h-3 w-3;
186
186
  }
@@ -195,7 +195,7 @@
195
195
  @apply text-[13px] leading-relaxed text-mute;
196
196
  }
197
197
  .asta-onboarding-error {
198
- @apply mt-2 text-[12.5px] text-[#e5484d];
198
+ @apply mt-2 text-[12.5px] text-ink;
199
199
  }
200
200
  .asta-onboarding-actions {
201
201
  @apply mt-3.5 flex items-center gap-2;
@@ -227,7 +227,7 @@
227
227
  @apply hover:text-ink has-[:checked]:text-ink has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-brand/50;
228
228
  }
229
229
  .asta-plans-saving {
230
- @apply rounded-[4px] bg-brand px-1.5 text-[10.5px] leading-[18px] text-white;
230
+ @apply rounded-[4px] bg-brand px-1.5 text-[10.5px] leading-[18px] text-on-brand;
231
231
  }
232
232
  .asta-plans-grid {
233
233
  @apply grid w-full gap-3 @min-[540px]:grid-cols-3;
@@ -246,7 +246,7 @@
246
246
  @apply text-[15px] font-medium tracking-[-0.01em];
247
247
  }
248
248
  .asta-plans-flag {
249
- @apply rounded-[5px] bg-brand px-2 py-0.5 text-[11px] font-medium text-white;
249
+ @apply rounded-[5px] bg-brand px-2 py-0.5 text-[11px] font-medium text-on-brand;
250
250
  }
251
251
  .asta-plans-desc {
252
252
  @apply mt-1 text-[12.5px] leading-snug text-mute;
@@ -431,7 +431,7 @@
431
431
  @apply block max-h-36 min-h-[36px] flex-1 resize-none bg-transparent py-2 text-[16px] sm:text-[14px] leading-relaxed text-ink outline-none [field-sizing:content] placeholder:text-mute;
432
432
  }
433
433
  .asta-ai-chat-send {
434
- @apply relative grid h-9 w-9 shrink-0 place-items-center rounded-lg bg-brand text-white outline-none transition-[opacity,transform] duration-200 active:scale-95 disabled:opacity-35;
434
+ @apply relative grid h-9 w-9 shrink-0 place-items-center rounded-lg bg-brand text-on-brand outline-none transition-[opacity,transform] duration-200 active:scale-95 disabled:opacity-35;
435
435
  @apply focus-visible:ring-2 focus-visible:ring-brand/50 focus-visible:ring-offset-2 focus-visible:ring-offset-paper [&.htmx-request]:pointer-events-none;
436
436
  & > svg {
437
437
  @apply h-4 w-4 transition-opacity;
@@ -465,7 +465,7 @@
465
465
  @apply flex h-full min-h-[420px] flex-col items-start justify-center animate-[asta-blk-in_.5s_cubic-bezier(.16,1,.3,1)];
466
466
  }
467
467
  .asta-checkout-done-icon {
468
- @apply grid h-12 w-12 place-items-center rounded-full bg-brand text-white animate-[asta-blk-pop_.55s_.1s_cubic-bezier(.16,1,.3,1)_both];
468
+ @apply grid h-12 w-12 place-items-center rounded-full bg-brand text-on-brand animate-[asta-blk-pop_.55s_.1s_cubic-bezier(.16,1,.3,1)_both];
469
469
  & > svg {
470
470
  @apply h-5 w-5;
471
471
  }
@@ -520,7 +520,7 @@
520
520
  @apply mt-3 text-center text-[12px] text-mute;
521
521
  }
522
522
  .asta-checkout-error {
523
- @apply mt-3 text-center text-[12.5px] text-[#e5484d] animate-[asta-field-in_.3s_cubic-bezier(.16,1,.3,1)_both];
523
+ @apply mt-3 text-center text-[12.5px] text-ink animate-[asta-field-in_.3s_cubic-bezier(.16,1,.3,1)_both];
524
524
  }
525
525
  .asta-checkout-summary {
526
526
  @apply h-max rounded-[14px] bg-paper-2 p-5 md:sticky md:top-4;
@@ -739,7 +739,7 @@
739
739
  .asta-settings-saved-msg {
740
740
  @apply flex items-center gap-2;
741
741
  & > svg {
742
- @apply h-4 w-4 shrink-0 text-[#30a46c];
742
+ @apply h-4 w-4 shrink-0 text-paper;
743
743
  }
744
744
  }
745
745
  .asta-settings-unsaved-msg {
@@ -849,7 +849,7 @@
849
849
  @apply mt-2 min-h-4 px-1 text-[12px] text-mute;
850
850
  }
851
851
  .asta-team-hint-error {
852
- @apply text-[#e5484d];
852
+ @apply text-ink;
853
853
  }
854
854
  .asta-team-heading {
855
855
  @apply mb-1 mt-7 px-1 text-[12px] font-medium text-mute;
@@ -52,7 +52,7 @@
52
52
  }
53
53
  /* The ×10 / ×0.1 badge; asta.js writes the text while a modifier is held. */
54
54
  .asta-scrub-badge {
55
- @apply mr-1.5 hidden shrink-0 rounded-[4px] bg-brand px-1 text-[10.5px] font-medium leading-4 tabular-nums text-white;
55
+ @apply mr-1.5 hidden shrink-0 rounded-[4px] bg-brand px-1 text-[10.5px] font-medium leading-4 tabular-nums text-on-brand;
56
56
  }
57
57
  .asta-scrub[data-scrubbing][data-mod] {
58
58
  & > .asta-scrub-badge {
@@ -185,7 +185,7 @@
185
185
  @apply checked:bg-brand checked:shadow-none focus-visible:ring-2 focus-visible:ring-brand/50 focus-visible:ring-offset-2 focus-visible:ring-offset-paper-2;
186
186
  }
187
187
  & > svg {
188
- @apply pointer-events-none col-start-1 row-start-1 h-3 w-3 scale-50 text-white opacity-0 transition-[opacity,transform] duration-300;
188
+ @apply pointer-events-none col-start-1 row-start-1 h-3 w-3 scale-50 text-on-brand opacity-0 transition-[opacity,transform] duration-300;
189
189
  }
190
190
  & > input:checked + svg {
191
191
  @apply scale-100 opacity-100;
@@ -336,7 +336,7 @@
336
336
  .asta-api-keys-reveal-title {
337
337
  @apply flex flex-wrap items-center gap-2 text-[14px] font-medium;
338
338
  & > span:last-child {
339
- @apply rounded-[5px] bg-brand px-1.5 text-[11px] font-medium leading-5 text-white;
339
+ @apply rounded-[5px] bg-brand px-1.5 text-[11px] font-medium leading-5 text-on-brand;
340
340
  }
341
341
  }
342
342
  .asta-api-keys-reveal-text {
package/css/src/core.css CHANGED
@@ -14,10 +14,10 @@
14
14
  @apply bg-ink text-paper shadow-[inset_0_1px_0_rgb(255_255_255/0.18),0_1px_2px_rgb(0_0_0/0.16),0_6px_14px_-8px_rgb(0_0_0/0.45)] hover:bg-[color-mix(in_srgb,var(--ink)_84%,var(--paper))];
15
15
  }
16
16
  .asta-btn-accent {
17
- @apply bg-brand text-white hover:bg-[color-mix(in_srgb,var(--brand)_88%,black)];
17
+ @apply bg-brand text-on-brand hover:bg-[color-mix(in_srgb,var(--brand)_88%,black)];
18
18
  }
19
19
  .asta-btn-danger {
20
- @apply bg-[#e5484d] text-white hover:bg-[#d13d42];
20
+ @apply bg-ink text-paper hover:bg-[color-mix(in_srgb,var(--ink)_86%,var(--paper))];
21
21
  }
22
22
  .asta-btn-outline {
23
23
  @apply bg-paper text-ink shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_14%,transparent),0_1px_2px_rgb(0_0_0/0.05)];
@@ -95,10 +95,10 @@
95
95
  }
96
96
  .asta-input-error,
97
97
  .asta-input:has(> input[aria-invalid="true"]) {
98
- @apply shadow-[inset_0_0_0_1px_#e5484d] hover:shadow-[inset_0_0_0_1px_#e5484d] focus-within:!shadow-[inset_0_0_0_1px_#e5484d,0_0_0_4px_rgb(229_72_77/0.16)];
98
+ @apply shadow-[inset_0_0_0_1.5px_var(--ink)] hover:shadow-[inset_0_0_0_1.5px_var(--ink)] focus-within:!shadow-[inset_0_0_0_1.5px_var(--ink),0_0_0_4px_color-mix(in_srgb,var(--ink)_12%,transparent)];
99
99
  }
100
100
  .asta-input-success {
101
- @apply shadow-[inset_0_0_0_1px_#30a46c] hover:shadow-[inset_0_0_0_1px_#30a46c] focus-within:!shadow-[inset_0_0_0_1px_#30a46c,0_0_0_4px_rgb(48_164_108/0.16)];
101
+ @apply shadow-[inset_0_0_0_1px_var(--brand)] hover:shadow-[inset_0_0_0_1px_var(--brand)] focus-within:!shadow-[inset_0_0_0_1px_var(--brand),0_0_0_4px_color-mix(in_srgb,var(--brand)_16%,transparent)];
102
102
  }
103
103
  .asta-input-control {
104
104
  @apply h-full min-w-0 flex-1 bg-transparent outline-none placeholder:text-mute [&::-webkit-search-cancel-button]:hidden;
@@ -114,9 +114,9 @@
114
114
  }
115
115
  /* The error or success icon at the end of the field. */
116
116
  .asta-input-status {
117
- @apply h-4 w-4 shrink-0 text-[#e5484d];
117
+ @apply h-4 w-4 shrink-0 text-ink;
118
118
  .asta-input-success > & {
119
- @apply text-[#30a46c];
119
+ @apply text-brand;
120
120
  }
121
121
  }
122
122
 
@@ -134,13 +134,13 @@
134
134
  @apply text-[13px] font-medium tracking-[-0.01em] text-ink;
135
135
  }
136
136
  .asta-label-required {
137
- @apply ml-0.5 text-[#e5484d];
137
+ @apply ml-0.5 text-ink;
138
138
  }
139
139
  .asta-counter {
140
140
  @apply text-[12px] tabular-nums text-mute;
141
141
  }
142
142
  .asta-error {
143
- @apply flex items-start gap-1.5 text-[12.5px] leading-snug text-[#e5484d] animate-[asta-field-in_.3s_cubic-bezier(.16,1,.3,1)_both];
143
+ @apply flex items-start gap-1.5 text-[12.5px] leading-snug text-ink animate-[asta-field-in_.3s_cubic-bezier(.16,1,.3,1)_both];
144
144
  & > svg {
145
145
  @apply mt-px h-3.5 w-3.5 shrink-0;
146
146
  }
@@ -160,7 +160,7 @@
160
160
  }
161
161
  .asta-textarea-error,
162
162
  .asta-textarea:has(> textarea[aria-invalid="true"]) {
163
- @apply shadow-[inset_0_0_0_1px_#e5484d] hover:shadow-[inset_0_0_0_1px_#e5484d] focus-within:!shadow-[inset_0_0_0_1px_#e5484d,0_0_0_4px_rgb(229_72_77/0.16)];
163
+ @apply shadow-[inset_0_0_0_1.5px_var(--ink)] hover:shadow-[inset_0_0_0_1.5px_var(--ink)] focus-within:!shadow-[inset_0_0_0_1.5px_var(--ink),0_0_0_4px_color-mix(in_srgb,var(--ink)_12%,transparent)];
164
164
  }
165
165
  .asta-textarea-control {
166
166
  @apply block w-full resize-none bg-transparent px-3.5 py-3 text-[16px] sm:text-[14px] leading-[1.55] outline-none placeholder:text-mute disabled:cursor-not-allowed;
@@ -187,7 +187,7 @@
187
187
  }
188
188
  .asta-select-error > &,
189
189
  &[aria-invalid="true"] {
190
- @apply shadow-[inset_0_0_0_1px_#e5484d] hover:shadow-[inset_0_0_0_1px_#e5484d] focus:!shadow-[inset_0_0_0_1px_#e5484d,0_0_0_3px_rgb(229_72_77/0.16)];
190
+ @apply shadow-[inset_0_0_0_1.5px_var(--ink)] hover:shadow-[inset_0_0_0_1.5px_var(--ink)] focus:!shadow-[inset_0_0_0_1.5px_var(--ink),0_0_0_3px_color-mix(in_srgb,var(--ink)_12%,transparent)];
191
191
  }
192
192
  }
193
193
  .asta-select-icon {
@@ -227,13 +227,13 @@
227
227
  @apply disabled:cursor-not-allowed disabled:opacity-45;
228
228
  }
229
229
  .asta-checkbox-check {
230
- @apply pointer-events-none col-start-1 row-start-1 h-3 w-3 scale-50 text-white opacity-0 transition-[opacity,scale] duration-300 ease-[cubic-bezier(.16,1,.3,1)] motion-reduce:transition-none;
230
+ @apply pointer-events-none col-start-1 row-start-1 h-3 w-3 scale-50 text-on-brand opacity-0 transition-[opacity,scale] duration-300 ease-[cubic-bezier(.16,1,.3,1)] motion-reduce:transition-none;
231
231
  input:checked ~ & {
232
232
  @apply scale-100 opacity-100;
233
233
  }
234
234
  }
235
235
  .asta-checkbox-dash {
236
- @apply pointer-events-none col-start-1 row-start-1 h-[2.2px] w-2 scale-x-0 rounded-full bg-white transition-[scale] duration-300 ease-[cubic-bezier(.16,1,.3,1)] motion-reduce:transition-none;
236
+ @apply pointer-events-none col-start-1 row-start-1 h-[2.2px] w-2 scale-x-0 rounded-full bg-on-brand transition-[scale] duration-300 ease-[cubic-bezier(.16,1,.3,1)] motion-reduce:transition-none;
237
237
  input[data-indeterminate] ~ & {
238
238
  @apply scale-x-100;
239
239
  }
@@ -290,7 +290,7 @@
290
290
  }
291
291
  }
292
292
  .asta-radio-mark {
293
- @apply pointer-events-none absolute inset-0 m-auto h-1.5 w-1.5 scale-0 rounded-full bg-white transition-[scale] duration-300 ease-[cubic-bezier(.16,1,.3,1)] motion-reduce:transition-none;
293
+ @apply pointer-events-none absolute inset-0 m-auto h-1.5 w-1.5 scale-0 rounded-full bg-on-brand transition-[scale] duration-300 ease-[cubic-bezier(.16,1,.3,1)] motion-reduce:transition-none;
294
294
  input:checked ~ & {
295
295
  @apply scale-100;
296
296
  }
@@ -403,19 +403,19 @@
403
403
  }
404
404
  .asta-badge-accent {
405
405
  --kit-badge: var(--brand);
406
- --kit-badge-on: #fff;
406
+ --kit-badge-on: var(--on-brand);
407
407
  }
408
408
  .asta-badge-success {
409
- --kit-badge: #30a46c;
410
- --kit-badge-on: #fff;
409
+ --kit-badge: var(--brand);
410
+ --kit-badge-on: var(--on-brand);
411
411
  }
412
412
  .asta-badge-warning {
413
- --kit-badge: #f5a524;
414
- --kit-badge-on: #1a1300;
413
+ --kit-badge: var(--ink-2);
414
+ --kit-badge-on: var(--paper);
415
415
  }
416
416
  .asta-badge-danger {
417
- --kit-badge: #e5484d;
418
- --kit-badge-on: #fff;
417
+ --kit-badge: var(--ink);
418
+ --kit-badge-on: var(--paper);
419
419
  }
420
420
  .asta-badge-solid {
421
421
  @apply bg-[var(--kit-badge)] text-[var(--kit-badge-on)];
@@ -451,7 +451,7 @@
451
451
  }
452
452
  }
453
453
  .asta-count {
454
- @apply inline-flex h-[18px] min-w-[18px] animate-[asta-pop_.4s_cubic-bezier(.16,1,.3,1)] items-center justify-center rounded-[5px] bg-[#e5484d] px-1 text-[10.5px] font-semibold tabular-nums leading-none text-white shadow-[0_0_0_2px_var(--paper)] motion-reduce:animate-none;
454
+ @apply inline-flex h-[18px] min-w-[18px] animate-[asta-pop_.4s_cubic-bezier(.16,1,.3,1)] items-center justify-center rounded-[5px] bg-ink px-1 text-[10.5px] font-semibold tabular-nums leading-none text-white shadow-[0_0_0_2px_var(--paper)] motion-reduce:animate-none;
455
455
  }
456
456
 
457
457
  /* ---- Dialog ----
@@ -521,7 +521,7 @@
521
521
  @apply text-ink hover:bg-paper-2 focus:bg-paper-2;
522
522
  }
523
523
  .asta-menu-item-danger {
524
- @apply text-[#e5484d] hover:bg-[#e5484d]/10 focus:bg-[#e5484d]/10;
524
+ @apply text-ink hover:bg-paper-2 focus:bg-paper-2;
525
525
  }
526
526
  .asta-menu-item-icon {
527
527
  @apply inline-flex h-4 w-4 shrink-0 text-mute [&_svg]:h-4 [&_svg]:w-4;
@@ -574,7 +574,7 @@
574
574
  .asta-tab-count {
575
575
  @apply rounded-[5px] bg-[color-mix(in_srgb,var(--ink)_7%,transparent)] px-1.5 text-[11px] leading-[18px] tabular-nums text-mute transition-colors duration-300;
576
576
  .asta-tab[aria-selected="true"] > & {
577
- @apply bg-brand text-white;
577
+ @apply bg-brand text-on-brand;
578
578
  }
579
579
  }
580
580
  .asta-tabs-panel {