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
@@ -8,7 +8,7 @@ var KEYFRAMES = `@keyframes asta-cite-in { from { opacity: 0; transform: transla
8
8
  @keyframes asta-cite-rise { from { opacity: 0; transform: translateY(6px) } }
9
9
  @keyframes asta-cite-pulse { 50% { opacity: .45 } }
10
10
  @media (prefers-reduced-motion: reduce) { .asta-cite, .asta-cite * { animation: none !important; transition-duration: 0s !important } }`;
11
- var TILES = ["bg-ink text-paper", "bg-brand text-white", "bg-paper-2 text-ink shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent)]"];
11
+ var TILES = ["bg-ink text-paper", "bg-brand text-on-brand", "bg-paper-2 text-ink shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent)]"];
12
12
  function Tile({ domain, i, size = "sm" }) {
13
13
  return /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: cx("grid shrink-0 place-items-center font-semibold uppercase", size === "md" ? "h-7 w-7 rounded-md text-[12px]" : "h-[18px] w-[18px] rounded-[5px] text-[10px]", TILES[i % TILES.length]), children: domain.replace(/^www\./, "").charAt(0) });
14
14
  }
@@ -98,7 +98,7 @@ function Citations({ text, sources, loading, visible = 3, className }) {
98
98
  className: cx(
99
99
  "mx-px inline-grid h-[18px] min-w-[18px] -translate-y-px place-items-center rounded-[5px] px-1 align-middle text-[11px] font-semibold leading-none tabular-nums outline-none",
100
100
  "transition-[background-color,color,transform] duration-200 focus-visible:ring-2 focus-visible:ring-brand/50 active:scale-95",
101
- open || on ? "bg-brand text-white" : "bg-[color-mix(in_srgb,var(--ink)_8%,transparent)] text-ink-2 hover:bg-[color-mix(in_srgb,var(--ink)_14%,transparent)] hover:text-ink"
101
+ open || on ? "bg-brand text-on-brand" : "bg-[color-mix(in_srgb,var(--ink)_8%,transparent)] text-ink-2 hover:bg-[color-mix(in_srgb,var(--ink)_14%,transparent)] hover:text-ink"
102
102
  ),
103
103
  children: n
104
104
  }
@@ -81,13 +81,14 @@ function ArrowButton({ children, className, ...rest }) {
81
81
  {
82
82
  "aria-hidden": true,
83
83
  className: cx(
84
+ // perf-ok: the fill grows inside one button; nothing outside it reflows.
84
85
  "absolute right-1.5 top-1.5 h-8 w-8 rounded-[7px] bg-brand transition-[width] duration-500 group-hover/mb:w-[calc(100%-12px)] group-focus-visible/mb:w-[calc(100%-12px)]",
85
86
  EASE
86
87
  )
87
88
  }
88
89
  ),
89
- /* @__PURE__ */ jsx("span", { className: cx("relative transition-[transform,color] duration-500 group-hover/mb:translate-x-1 group-hover/mb:text-white group-focus-visible/mb:text-white", EASE), children }),
90
- /* @__PURE__ */ jsxs("span", { className: "relative ml-2 grid h-8 w-8 place-items-center overflow-hidden text-white", children: [
90
+ /* @__PURE__ */ jsx("span", { className: cx("relative transition-[transform,color] duration-500 group-hover/mb:translate-x-1 group-hover/mb:text-on-brand group-focus-visible/mb:text-on-brand", EASE), children }),
91
+ /* @__PURE__ */ jsxs("span", { className: "relative ml-2 grid h-8 w-8 place-items-center overflow-hidden text-on-brand", children: [
91
92
  /* @__PURE__ */ jsx(ArrowIcon, { className: cx("col-start-1 row-start-1 transition-transform duration-500 group-hover/mb:translate-x-6", EASE) }),
92
93
  /* @__PURE__ */ jsx(ArrowIcon, { className: cx("col-start-1 row-start-1 -translate-x-6 transition-transform duration-500 group-hover/mb:translate-x-0", EASE) })
93
94
  ] })
@@ -102,7 +103,7 @@ function ShineButton({ children, className, ...rest }) {
102
103
  ...rest,
103
104
  onPointerEnter: () => setK((v) => v + 1),
104
105
  onFocus: () => setK((v) => v + 1),
105
- className: cx(BASE, "kit-motion overflow-hidden bg-brand text-white", LIFT, className),
106
+ className: cx(BASE, "kit-motion overflow-hidden bg-brand text-on-brand", LIFT, className),
106
107
  children: [
107
108
  /* @__PURE__ */ jsx(Styles, {}),
108
109
  /* @__PURE__ */ jsx(
@@ -195,7 +196,7 @@ function CopyButton({ value, children = "Copy", className, ...rest }) {
195
196
  ]
196
197
  }
197
198
  ),
198
- done && /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "col-start-1 row-start-1 h-4 w-4 text-[#30a46c]", style: { animation: "kit-pop .45s cubic-bezier(.16,1,.3,1) both" }, fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "M3.5 8.5l3 3 6-7" }) })
199
+ done && /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "col-start-1 row-start-1 h-4 w-4 text-brand", style: { animation: "kit-pop .45s cubic-bezier(.16,1,.3,1) both" }, fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "M3.5 8.5l3 3 6-7" }) })
199
200
  ] }),
200
201
  /* @__PURE__ */ jsx("span", { className: "relative block h-[1.25em] overflow-hidden leading-[1.25]", children: /* @__PURE__ */ jsxs("span", { className: cx("flex flex-col transition-transform duration-500", EASE, done && "-translate-y-1/2"), children: [
201
202
  /* @__PURE__ */ jsx("span", { children }),
@@ -242,8 +243,8 @@ function ConfirmButton({
242
243
  className: cx(
243
244
  BASE,
244
245
  "kit-motion overflow-hidden",
245
- stage === "idle" && cx("bg-paper text-[#e5484d]", RING),
246
- stage === "ask" && cx("bg-[#e5484d] text-white", LIFT),
246
+ stage === "idle" && cx("bg-paper text-ink", RING),
247
+ stage === "ask" && cx("bg-ink text-paper", LIFT),
247
248
  stage === "done" && cx("bg-paper-2 text-ink-2"),
248
249
  className
249
250
  ),
@@ -253,7 +254,7 @@ function ConfirmButton({
253
254
  "span",
254
255
  {
255
256
  "aria-hidden": true,
256
- className: "absolute inset-x-0 bottom-0 h-[3px] origin-left bg-white/60",
257
+ className: "absolute inset-x-0 bottom-0 h-[3px] origin-left bg-paper/60",
257
258
  style: { animation: `kit-confirm ${timeout}ms linear both` }
258
259
  }
259
260
  ),
@@ -141,13 +141,13 @@ function Panel({ menu }) {
141
141
  href: menu.cta.href,
142
142
  style: at(6),
143
143
  className: cx(
144
- "aui-011-t group/t relative flex min-h-[176px] flex-col justify-end overflow-hidden rounded-[6px] bg-brand p-4 text-white transition-opacity duration-300 group-has-[a:hover]/m:opacity-75 hover:!opacity-100",
144
+ "aui-011-t group/t relative flex min-h-[176px] flex-col justify-end overflow-hidden rounded-[6px] bg-brand p-4 text-on-brand transition-opacity duration-300 group-has-[a:hover]/m:opacity-75 hover:!opacity-100",
145
145
  FOCUS
146
146
  ),
147
147
  children: [
148
- /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: cx("absolute -right-6 -top-4 text-white/25 transition-transform duration-700 group-hover/t:-translate-y-1 group-hover/t:rotate-6", TW_EASE), children: /* @__PURE__ */ jsx(Glyph, { name: "vase", className: "h-28 w-28" }) }),
148
+ /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: cx("absolute -right-6 -top-4 text-on-brand/25 transition-transform duration-700 group-hover/t:-translate-y-1 group-hover/t:rotate-6", TW_EASE), children: /* @__PURE__ */ jsx(Glyph, { name: "vase", className: "h-28 w-28" }) }),
149
149
  /* @__PURE__ */ jsx("span", { className: "relative block text-[15px] font-medium leading-tight tracking-[-0.02em]", children: menu.cta.title }),
150
- /* @__PURE__ */ jsx("span", { className: "relative mt-1 block text-[12.5px] text-white/75", children: menu.cta.description }),
150
+ /* @__PURE__ */ jsx("span", { className: "relative mt-1 block text-[12.5px] text-on-brand/75", children: menu.cta.description }),
151
151
  /* @__PURE__ */ jsxs("span", { className: "relative mt-3 flex items-center gap-1 text-[13px] font-medium", children: [
152
152
  menu.cta.label,
153
153
  /* @__PURE__ */ jsx(Chevron, { className: cx("transition-transform duration-300 group-hover/t:translate-x-0.5", TW_EASE) })
@@ -289,19 +289,60 @@ function CenteredNavbar({
289
289
  document.removeEventListener("keydown", key);
290
290
  };
291
291
  }, [sheet, close]);
292
- const ripple = (x) => {
292
+ const geo = useRef(null);
293
+ const rip = useRef({ x: null, f: 0, a: 0, b: 0 });
294
+ const measure = () => {
293
295
  const el = mark.current;
294
- if (!el || window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;
295
- for (const s of el.querySelectorAll("[data-l]")) {
296
- if (x === null) {
297
- s.style.transform = "";
298
- continue;
299
- }
300
- const r = s.getBoundingClientRect();
301
- const k = Math.max(0, 1 - Math.abs(x - (r.left + r.width / 2)) / (r.width * 2.4));
302
- s.style.transform = `translateY(${-k * 24}%)`;
296
+ if (!el) return;
297
+ const left2 = el.getBoundingClientRect().left;
298
+ const els = [...el.querySelectorAll("[data-l]")];
299
+ const rs = els.map((s) => s.getBoundingClientRect());
300
+ const w = rs.map((r) => r.width);
301
+ const still = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
302
+ geo.current = { els, c: rs.map((r) => r.left - left2 + r.width / 2), w, reach: Math.max(0, ...w) * 2.4, left: left2, still };
303
+ };
304
+ const lower = (a, v) => {
305
+ let lo = 0;
306
+ let hi = a.length;
307
+ while (lo < hi) {
308
+ const mid = lo + hi >> 1;
309
+ if (a[mid] < v) lo = mid + 1;
310
+ else hi = mid;
303
311
  }
312
+ return lo;
313
+ };
314
+ const flush = () => {
315
+ const r = rip.current;
316
+ const g = geo.current;
317
+ r.f = 0;
318
+ if (!g) return;
319
+ const x = r.x === null || g.still ? null : r.x - g.left;
320
+ const a = x === null ? 0 : lower(g.c, x - g.reach);
321
+ const b = x === null ? 0 : lower(g.c, x + g.reach);
322
+ for (let i = r.a; i < r.b; i++) if (i < a || i >= b) g.els[i].style.transform = "";
323
+ for (let i = a; i < b; i++) g.els[i].style.transform = `translateY(${-Math.max(0, 1 - Math.abs(x - g.c[i]) / (g.w[i] * 2.4)) * 24}%)`;
324
+ r.a = a;
325
+ r.b = b;
326
+ };
327
+ const ripple = (x) => {
328
+ if (!geo.current) measure();
329
+ rip.current.x = x;
330
+ if (!rip.current.f) rip.current.f = requestAnimationFrame(flush);
304
331
  };
332
+ useEffect(() => {
333
+ const el = mark.current;
334
+ if (!el) return;
335
+ geo.current = null;
336
+ rip.current.a = rip.current.b = 0;
337
+ const ro = new ResizeObserver(() => geo.current = null);
338
+ ro.observe(el);
339
+ const r = rip.current;
340
+ return () => {
341
+ ro.disconnect();
342
+ cancelAnimationFrame(r.f);
343
+ r.f = 0;
344
+ };
345
+ }, [wordmark]);
305
346
  const pill = (on) => cx(
306
347
  "group/p flex h-8 items-center gap-1 rounded-lg px-2.5 text-[14px] font-medium transition-colors duration-200 hover:bg-paper/[.08] hover:text-paper aria-expanded:bg-paper/[.08] aria-expanded:text-paper",
307
348
  FOCUS,
@@ -374,6 +415,7 @@ function CenteredNavbar({
374
415
  ref: mark,
375
416
  href: brandHref,
376
417
  "aria-label": wordmark,
418
+ onPointerEnter: (e) => e.pointerType === "mouse" && measure(),
377
419
  onPointerMove: (e) => e.pointerType === "mouse" && ripple(e.clientX),
378
420
  onPointerLeave: () => ripple(null),
379
421
  className: cx("flex select-none items-end overflow-hidden rounded-md px-1 pb-0.5 pt-1 text-[20px] font-semibold leading-none tracking-[-0.06em]", FOCUS),
@@ -40,7 +40,7 @@ var CSS = `
40
40
  `;
41
41
  function Mark() {
42
42
  return /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-2.5 text-[17px] font-semibold tracking-[-0.03em] text-paper", children: [
43
- /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "grid h-9 w-9 place-items-center rounded-[10px] bg-brand text-white shadow-[0_8px_24px_-6px_color-mix(in_srgb,var(--brand)_70%,transparent)]", children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "h-4 w-4", fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinejoin: "round", children: /* @__PURE__ */ jsx("path", { d: "M8 2.5 13.5 13h-11L8 2.5Z" }) }) }),
43
+ /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "grid h-9 w-9 place-items-center rounded-[10px] bg-brand text-on-brand shadow-[0_8px_24px_-6px_color-mix(in_srgb,var(--brand)_70%,transparent)]", children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "h-4 w-4", fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinejoin: "round", children: /* @__PURE__ */ jsx("path", { d: "M8 2.5 13.5 13h-11L8 2.5Z" }) }) }),
44
44
  "Astabyte"
45
45
  ] });
46
46
  }
@@ -1,7 +1,10 @@
1
1
  "use client";
2
+ import {
3
+ useInView
4
+ } from "./chunk-FS2PZKJY.js";
2
5
 
3
6
  // components/lab/blocks/PayMethods.tsx
4
- import { useEffect, useState } from "react";
7
+ import { useEffect, useRef, useState } from "react";
5
8
  import { jsx, jsxs } from "react/jsx-runtime";
6
9
  var EASE = "cubic-bezier(.16,1,.3,1)";
7
10
  var QR_SECS = 300;
@@ -35,8 +38,10 @@ function Finder({ x, y }) {
35
38
  /* @__PURE__ */ jsx("rect", { x: x + 2, y: y + 2, width: "3", height: "3" })
36
39
  ] });
37
40
  }
38
- function MiniQr() {
39
- const N = 17;
41
+ var N = 17;
42
+ var qrCells = null;
43
+ function qr() {
44
+ if (qrCells) return qrCells;
40
45
  const cells = [];
41
46
  const finder = (x, y) => {
42
47
  for (const [fx, fy] of [[0, 0], [N - 7, 0], [0, N - 7]]) {
@@ -49,8 +54,12 @@ function MiniQr() {
49
54
  if (finder(x, y)) continue;
50
55
  if ((x * 7 + y * 13 + x * y * 3) % 5 < 2) cells.push(/* @__PURE__ */ jsx("rect", { x, y, width: "1", height: "1" }, `${x}-${y}`));
51
56
  }
57
+ qrCells = cells;
58
+ return cells;
59
+ }
60
+ function MiniQr() {
52
61
  return /* @__PURE__ */ jsxs("svg", { viewBox: `0 0 ${N} ${N}`, className: "h-full w-full text-ink", fill: "currentColor", shapeRendering: "crispEdges", "aria-hidden": true, children: [
53
- cells,
62
+ qr(),
54
63
  /* @__PURE__ */ jsx(Finder, { x: 0, y: 0 }),
55
64
  /* @__PURE__ */ jsx(Finder, { x: N - 7, y: 0 }),
56
65
  /* @__PURE__ */ jsx(Finder, { x: 0, y: N - 7 })
@@ -60,8 +69,10 @@ function PayMethods() {
60
69
  const [i, setI] = useState(0);
61
70
  const [auto, setAuto] = useState(true);
62
71
  const [secs, setSecs] = useState(QR_SECS);
72
+ const root = useRef(null);
73
+ const visible = useInView(root);
63
74
  useEffect(() => {
64
- if (!auto || window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;
75
+ if (!auto || !visible || window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;
65
76
  const id = setInterval(() => {
66
77
  setI((v) => {
67
78
  const n = (v + 1) % METHODS.length;
@@ -70,12 +81,12 @@ function PayMethods() {
70
81
  });
71
82
  }, 2600);
72
83
  return () => clearInterval(id);
73
- }, [auto]);
84
+ }, [auto, visible]);
74
85
  useEffect(() => {
75
- if (i !== 3) return;
86
+ if (i !== 3 || !visible) return;
76
87
  const id = setInterval(() => setSecs((s) => s > 0 ? s - 1 : QR_SECS), 1e3);
77
88
  return () => clearInterval(id);
78
- }, [i]);
89
+ }, [i, visible]);
79
90
  const pick = (n) => {
80
91
  setAuto(false);
81
92
  if (n === 3 && i !== 3) setSecs(QR_SECS);
@@ -123,7 +134,7 @@ function PayMethods() {
123
134
  ] })
124
135
  ] }, "qr")
125
136
  ];
126
- return /* @__PURE__ */ jsxs("div", { className: "flex h-full w-full flex-col items-center justify-center gap-6 px-6 pb-6 pt-12", style: { containerType: "size" }, children: [
137
+ return /* @__PURE__ */ jsxs("div", { ref: root, className: "flex h-full w-full flex-col items-center justify-center gap-6 px-6 pb-6 pt-12", style: { containerType: "size" }, children: [
127
138
  /* @__PURE__ */ jsxs(
128
139
  "div",
129
140
  {
@@ -22,7 +22,7 @@ function ValidatedTextarea({ label, rules, value: valueProp, defaultValue = "",
22
22
  }
23
23
  prev.current = state;
24
24
  }, [state]);
25
- const ring = state === "error" ? "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.14)]" : state === "success" ? "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.14)]" : "shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_14%,transparent)] hover:shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_24%,transparent)] focus-within:!shadow-[inset_0_0_0_1px_var(--brand),0_0_0_4px_color-mix(in_srgb,var(--brand)_16%,transparent)]";
25
+ const ring = state === "error" ? "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)]" : state === "success" ? "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)_14%,transparent)]" : "shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_14%,transparent)] hover:shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_24%,transparent)] focus-within:!shadow-[inset_0_0_0_1px_var(--brand),0_0_0_4px_color-mix(in_srgb,var(--brand)_16%,transparent)]";
26
26
  return /* @__PURE__ */ jsxs("div", { className: cx("flex w-full flex-col gap-1.5", className), children: [
27
27
  /* @__PURE__ */ jsx("label", { htmlFor: fid, className: "text-[13px] font-medium text-ink", children: label }),
28
28
  /* @__PURE__ */ jsx("div", { ref: box, className: cx("rounded-xl bg-paper transition-shadow duration-300 motion-reduce:transition-none", ring), children: /* @__PURE__ */ jsx(
@@ -46,11 +46,11 @@ function ValidatedTextarea({ label, rules, value: valueProp, defaultValue = "",
46
46
  className: "block w-full resize-none bg-transparent px-3.5 py-3 text-[16px] sm:text-[14px] leading-[1.55] text-ink outline-none placeholder:text-mute"
47
47
  }
48
48
  ) }),
49
- /* @__PURE__ */ jsx("div", { className: cx("grid transition-[grid-template-rows] duration-400 ease-[cubic-bezier(.16,1,.3,1)] motion-reduce:transition-none", state === "idle" ? "grid-rows-[0fr]" : "grid-rows-[1fr]"), children: /* @__PURE__ */ jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ jsx("ul", { id: `${fid}-rules`, className: "flex flex-col gap-1 pt-1", "aria-live": "polite", children: state === "success" ? /* @__PURE__ */ jsxs("li", { className: "flex items-center gap-2 text-[12.5px] text-[#30a46c]", children: [
49
+ /* @__PURE__ */ jsx("div", { className: cx("grid transition-[grid-template-rows] duration-400 ease-[cubic-bezier(.16,1,.3,1)] motion-reduce:transition-none", state === "idle" ? "grid-rows-[0fr]" : "grid-rows-[1fr]"), children: /* @__PURE__ */ jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ jsx("ul", { id: `${fid}-rules`, className: "flex flex-col gap-1 pt-1", "aria-live": "polite", children: state === "success" ? /* @__PURE__ */ jsxs("li", { className: "flex items-center gap-2 text-[12.5px] text-brand", children: [
50
50
  /* @__PURE__ */ jsx(Check, { on: true }),
51
51
  " ",
52
52
  success
53
- ] }) : rules.map((r, i) => /* @__PURE__ */ jsxs("li", { className: cx("flex items-center gap-2 text-[12.5px] transition-colors duration-300", results[i] ? "text-mute" : "text-[#e5484d]"), children: [
53
+ ] }) : rules.map((r, i) => /* @__PURE__ */ jsxs("li", { className: cx("flex items-center gap-2 text-[12.5px] transition-colors duration-300", results[i] ? "text-mute" : "text-ink"), children: [
54
54
  /* @__PURE__ */ jsx(Check, { on: results[i] }),
55
55
  /* @__PURE__ */ jsx("span", { className: cx("transition-[text-decoration-color] duration-300", results[i] && "line-through decoration-mute/50"), children: r.label })
56
56
  ] }, r.label)) }) }) })
@@ -1,4 +1,8 @@
1
1
  "use client";
2
+ import {
3
+ useInView,
4
+ useTakeOver
5
+ } from "./chunk-FS2PZKJY.js";
2
6
 
3
7
  // components/lab/blocks/ChatThread.tsx
4
8
  import { useEffect, useLayoutEffect, useRef, useState } from "react";
@@ -26,13 +30,15 @@ function ChatThread() {
26
30
  const [draft, setDraft] = useState("");
27
31
  const [fade, setFade] = useState(false);
28
32
  const [instant, setInstant] = useState(false);
29
- const [paused, setPaused] = useState(false);
33
+ const [held, takeOverDemo] = useTakeOver(9e3);
34
+ const root = useRef(null);
35
+ const visible = useInView(root);
36
+ const paused = held || !visible;
30
37
  const nextId = useRef(3);
31
38
  const pos = useRef(0);
32
39
  const reply = useRef(0);
33
40
  const list = useRef(null);
34
41
  const tops = useRef(/* @__PURE__ */ new Map());
35
- const idle = useRef(null);
36
42
  const own = useRef([]);
37
43
  const add = (m) => {
38
44
  const id = nextId.current++;
@@ -52,15 +58,10 @@ function ChatThread() {
52
58
  }
53
59
  });
54
60
  tops.current = next;
55
- });
56
- const takeOver = () => {
57
- setPaused(true);
58
- if (idle.current) clearTimeout(idle.current);
59
- idle.current = setTimeout(() => setPaused(false), 9e3);
60
- };
61
+ }, [msgs, typing, read]);
62
+ const takeOver = takeOverDemo;
61
63
  useEffect(
62
64
  () => () => {
63
- if (idle.current) clearTimeout(idle.current);
64
65
  own.current.forEach(clearTimeout);
65
66
  },
66
67
  []
@@ -135,7 +136,7 @@ function ChatThread() {
135
136
  ];
136
137
  };
137
138
  const lastMe = [...msgs].reverse().find((m) => m.me)?.id;
138
- return /* @__PURE__ */ jsxs("div", { className: "flex h-full w-full items-center justify-center px-5 pb-5 pt-11", style: { containerType: "size" }, children: [
139
+ return /* @__PURE__ */ jsxs("div", { ref: root, className: "flex h-full w-full items-center justify-center px-5 pb-5 pt-11", style: { containerType: "size" }, children: [
139
140
  /* @__PURE__ */ jsx("style", { href: "asta-chatthread", precedence: "asta", children: `
140
141
  @keyframes lab-ct-grow { from { transform: scale(.55); opacity: 0 } to { transform: none; opacity: 1 } }
141
142
  @keyframes lab-ct-fly { from { transform: translateY(28px) scale(.97); opacity: 0 } to { transform: none; opacity: 1 } }
@@ -1,4 +1,7 @@
1
1
  "use client";
2
+ import {
3
+ useInView
4
+ } from "./chunk-FS2PZKJY.js";
2
5
 
3
6
  // components/lab/blocks/ElasticString.tsx
4
7
  import { useEffect, useRef } from "react";
@@ -6,7 +9,9 @@ import { jsx, jsxs } from "react/jsx-runtime";
6
9
  function ElasticString() {
7
10
  const box = useRef(null);
8
11
  const path = useRef(null);
12
+ const visible = useInView(box);
9
13
  useEffect(() => {
14
+ if (!visible) return;
10
15
  const el = box.current;
11
16
  let w = el.clientWidth;
12
17
  let h = el.clientHeight;
@@ -16,6 +21,7 @@ function ElasticString() {
16
21
  let vy = 0;
17
22
  let target = null;
18
23
  let raf = 0;
24
+ let rect = null;
19
25
  const draw = () => {
20
26
  const left = w * 0.12;
21
27
  const right = w * 0.88;
@@ -30,34 +36,59 @@ function ElasticString() {
30
36
  vy *= target ? 0.6 : 0.86;
31
37
  cx += vx;
32
38
  cy += vy;
39
+ if (Math.abs(tx - cx) < 0.05 && Math.abs(ty - cy) < 0.05 && Math.abs(vx) < 0.05 && Math.abs(vy) < 0.05) {
40
+ cx = tx;
41
+ cy = ty;
42
+ vx = vy = 0;
43
+ draw();
44
+ raf = 0;
45
+ return;
46
+ }
33
47
  draw();
34
48
  raf = requestAnimationFrame(loop);
35
49
  };
50
+ const wake = () => {
51
+ if (!raf) raf = requestAnimationFrame(loop);
52
+ };
36
53
  const move = (e) => {
37
- const r = el.getBoundingClientRect();
38
- const x = e.clientX - r.left;
39
- const y = e.clientY - r.top;
54
+ rect ?? (rect = el.getBoundingClientRect());
55
+ const x = e.clientX - rect.left;
56
+ const y = e.clientY - rect.top;
40
57
  if (target || Math.abs(y - h / 2) < 40) target = { x, y: h / 2 + (y - h / 2) * 2 };
41
58
  if (Math.abs(y - h / 2) > 110) target = null;
59
+ wake();
42
60
  };
43
61
  const leave = () => {
44
62
  target = null;
63
+ wake();
64
+ };
65
+ const forget = () => {
66
+ rect = null;
45
67
  };
46
68
  const ro = new ResizeObserver(() => {
47
69
  w = el.clientWidth;
48
70
  h = el.clientHeight;
71
+ rect = null;
72
+ if (!target) {
73
+ cx = w / 2;
74
+ cy = h / 2;
75
+ }
76
+ draw();
77
+ wake();
49
78
  });
50
79
  ro.observe(el);
51
80
  el.addEventListener("pointermove", move);
52
81
  el.addEventListener("pointerleave", leave);
53
- raf = requestAnimationFrame(loop);
82
+ window.addEventListener("scroll", forget, { capture: true, passive: true });
83
+ draw();
54
84
  return () => {
55
85
  cancelAnimationFrame(raf);
56
86
  ro.disconnect();
57
87
  el.removeEventListener("pointermove", move);
58
88
  el.removeEventListener("pointerleave", leave);
89
+ window.removeEventListener("scroll", forget, { capture: true });
59
90
  };
60
- }, []);
91
+ }, [visible]);
61
92
  return /* @__PURE__ */ jsxs("div", { ref: box, className: "relative h-full w-full [touch-action:none]", children: [
62
93
  /* @__PURE__ */ jsx("svg", { className: "absolute inset-0 h-full w-full overflow-visible", children: /* @__PURE__ */ jsx("path", { ref: path, fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" }) }),
63
94
  /* @__PURE__ */ jsx("span", { className: "font-mono text-[11px] uppercase tracking-[0.08em] absolute bottom-4 left-0 right-0 text-center text-mute", children: "Pluck the string" })
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  Avatar
4
- } from "./chunk-6RA7LJ3K.js";
4
+ } from "./chunk-3OCWR4L3.js";
5
5
 
6
6
  // components/kit/sidebar.tsx
7
7
  import { useEffect, useLayoutEffect, useRef, useState } from "react";
@@ -179,6 +179,7 @@ function Sidebar({
179
179
  "aria-label": "Sidebar",
180
180
  "data-collapsed": collapsed || void 0,
181
181
  className: cx(
182
+ // perf-ok: the width glide is deliberate. It runs once per click, and the page beside the sidebar has to follow it; a transform would leave a gap or overlap the content.
182
183
  "relative flex h-full shrink-0 flex-col bg-paper-2 px-3 py-3 shadow-[inset_-1px_0_0_color-mix(in_srgb,var(--ink)_8%,transparent)] transition-[width] duration-500",
183
184
  EASE,
184
185
  collapsed ? "w-16" : "w-[248px]",
@@ -1,4 +1,7 @@
1
1
  "use client";
2
+ import {
3
+ useTakeOver
4
+ } from "./chunk-FS2PZKJY.js";
2
5
 
3
6
  // components/lab/blocks/ChangeLedger.tsx
4
7
  import { useEffect, useRef, useState } from "react";
@@ -36,12 +39,11 @@ function ChangeLedger() {
36
39
  const [s, setS] = useState(INIT);
37
40
  const [fade, setFade] = useState(false);
38
41
  const [hover, setHover] = useState(false);
39
- const [held, setHeld] = useState(false);
42
+ const [held, hold] = useTakeOver(9e3);
40
43
  const [focusIn, setFocusIn] = useState(false);
41
44
  const [visible, setVisible] = useState(true);
42
45
  const root = useRef(null);
43
46
  const btns = useRef([]);
44
- const idle = useRef(null);
45
47
  const k = useRef(0);
46
48
  const paused = hover || held || focusIn || !visible;
47
49
  useEffect(() => {
@@ -60,12 +62,17 @@ function ChangeLedger() {
60
62
  document.removeEventListener("visibilitychange", sync);
61
63
  };
62
64
  }, []);
63
- useEffect(() => () => void (idle.current && clearTimeout(idle.current)), []);
64
65
  useEffect(() => {
65
66
  if (paused) return;
66
- const t = [];
67
+ const t = /* @__PURE__ */ new Set();
67
68
  let alive = true;
68
- const later = (ms, f) => t.push(setTimeout(() => alive && f(), ms));
69
+ const later = (ms, f) => {
70
+ const id = setTimeout(() => {
71
+ t.delete(id);
72
+ if (alive) f();
73
+ }, ms);
74
+ t.add(id);
75
+ };
69
76
  const step = () => {
70
77
  if (k.current >= STEPS.length) {
71
78
  setFade(true);
@@ -90,11 +97,6 @@ function ChangeLedger() {
90
97
  t.forEach(clearTimeout);
91
98
  };
92
99
  }, [paused]);
93
- const hold = () => {
94
- setHeld(true);
95
- if (idle.current) clearTimeout(idle.current);
96
- idle.current = setTimeout(() => setHeld(false), 9e3);
97
- };
98
100
  const setHot = (id) => setS((v) => v.hot === id ? v : { ...v, hot: id });
99
101
  const toggle = (id) => {
100
102
  hold();
@@ -8,13 +8,15 @@ function NeedleField() {
8
8
  useEffect(() => {
9
9
  const cv = ref.current;
10
10
  const css = getComputedStyle(cv);
11
- const SIG = css.getPropertyValue("--color-signal").trim() || "#c5f82a";
11
+ const SIG = css.getPropertyValue("--color-signal").trim() || css.color;
12
+ const INK = css.getPropertyValue("--color-ink").trim() || css.color;
12
13
  const ctx = cv.getContext("2d");
13
14
  let w = 0;
14
15
  let h = 0;
15
16
  let dpr = 1;
16
17
  let raf = 0;
17
- let visible = true;
18
+ let seen = true;
19
+ const still = matchMedia("(prefers-reduced-motion: reduce)").matches;
18
20
  const target = { x: 0, y: 0, active: false };
19
21
  const cur = { x: 0, y: 0 };
20
22
  const size = () => {
@@ -26,12 +28,13 @@ function NeedleField() {
26
28
  cv.height = Math.round(h * dpr);
27
29
  };
28
30
  const draw = (t) => {
31
+ raf = 0;
29
32
  if (!target.active) {
30
- target.x = w / 2 + Math.cos(t / 1400) * w * 0.3;
31
- target.y = h / 2 + Math.sin(t / 1100) * h * 0.28;
33
+ target.x = still ? w / 2 : w / 2 + Math.cos(t / 1400) * w * 0.3;
34
+ target.y = still ? h / 2 : h / 2 + Math.sin(t / 1100) * h * 0.28;
32
35
  }
33
- cur.x += (target.x - cur.x) * 0.15;
34
- cur.y += (target.y - cur.y) * 0.15;
36
+ cur.x += (target.x - cur.x) * (still ? 1 : 0.15);
37
+ cur.y += (target.y - cur.y) * (still ? 1 : 0.15);
35
38
  ctx.setTransform(dpr, 0, 0, dpr, 0, 0);
36
39
  ctx.clearRect(0, 0, w, h);
37
40
  const gap = 26;
@@ -48,7 +51,8 @@ function NeedleField() {
48
51
  const d = Math.hypot(cur.x - x, cur.y - y);
49
52
  const k = Math.max(0, 1 - d / 120);
50
53
  const len = 5 + k * 6;
51
- ctx.strokeStyle = k > 0.35 ? SIG : `rgba(233,233,228,${0.25 + k})`;
54
+ ctx.strokeStyle = k > 0.35 ? SIG : INK;
55
+ ctx.globalAlpha = k > 0.35 ? 1 : Math.min(1, 0.25 + k);
52
56
  ctx.lineWidth = 1.5;
53
57
  ctx.beginPath();
54
58
  ctx.moveTo(x - Math.cos(a) * len, y - Math.sin(a) * len);
@@ -56,30 +60,48 @@ function NeedleField() {
56
60
  ctx.stroke();
57
61
  }
58
62
  }
59
- if (visible) raf = requestAnimationFrame(draw);
63
+ const moving = !target.active && !still || Math.abs(target.x - cur.x) > 0.1 || Math.abs(target.y - cur.y) > 0.1;
64
+ if (moving) wake();
65
+ };
66
+ const wake = () => {
67
+ if (!raf && seen && !document.hidden) raf = requestAnimationFrame(draw);
60
68
  };
61
69
  const move = (e) => {
62
- const r = cv.getBoundingClientRect();
63
- target.x = e.clientX - r.left;
64
- target.y = e.clientY - r.top;
70
+ target.x = e.offsetX;
71
+ target.y = e.offsetY;
65
72
  target.active = true;
73
+ wake();
74
+ };
75
+ const leave = () => {
76
+ target.active = false;
77
+ wake();
78
+ };
79
+ const sync = () => {
80
+ cancelAnimationFrame(raf);
81
+ raf = 0;
82
+ wake();
66
83
  };
67
- const leave = () => target.active = false;
68
84
  size();
69
- const ro = new ResizeObserver(size);
85
+ const ro = new ResizeObserver(() => {
86
+ size();
87
+ cancelAnimationFrame(raf);
88
+ raf = 0;
89
+ if (seen) draw(performance.now());
90
+ });
70
91
  ro.observe(cv);
71
92
  const io = new IntersectionObserver(([e]) => {
72
- visible = e.isIntersecting;
73
- cancelAnimationFrame(raf);
74
- if (visible) raf = requestAnimationFrame(draw);
93
+ seen = e.isIntersecting;
94
+ sync();
75
95
  });
76
96
  io.observe(cv);
97
+ document.addEventListener("visibilitychange", sync);
77
98
  cv.addEventListener("pointermove", move);
78
99
  cv.addEventListener("pointerleave", leave);
79
100
  return () => {
80
101
  cancelAnimationFrame(raf);
81
102
  ro.disconnect();
82
103
  io.disconnect();
104
+ document.removeEventListener("visibilitychange", sync);
83
105
  cv.removeEventListener("pointermove", move);
84
106
  cv.removeEventListener("pointerleave", leave);
85
107
  };
@@ -172,13 +172,13 @@ function RangeDatePicker({
172
172
  className: cx(
173
173
  "relative mx-auto flex h-8 w-8 items-center justify-center rounded-[8px] text-[13px] tabular-nums outline-none transition-colors duration-150",
174
174
  "focus-visible:ring-2 focus-visible:ring-brand/50 disabled:cursor-not-allowed disabled:text-mute disabled:opacity-40",
175
- isStart || isEnd ? "font-medium text-white" : inBand ? "text-ink" : "text-ink hover:bg-paper-2",
175
+ isStart || isEnd ? "font-medium text-on-brand" : inBand ? "text-ink" : "text-ink hover:bg-paper-2",
176
176
  ghostEnd && "shadow-[inset_0_0_0_1.5px_var(--brand)]"
177
177
  ),
178
178
  children: [
179
179
  (isStart || isEnd) && /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "absolute inset-0 rounded-[8px] bg-brand shadow-[0_6px_14px_-6px_color-mix(in_srgb,var(--brand)_80%,transparent)]", style: { animation: `aui050-pop .4s ${EASE} both` } }),
180
180
  /* @__PURE__ */ jsx("span", { className: "relative", children: d.getDate() }),
181
- isToday && /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: cx("absolute bottom-1 left-1/2 h-1 w-1 -translate-x-1/2 rounded-full", isStart || isEnd ? "bg-white" : "bg-brand") })
181
+ isToday && /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: cx("absolute bottom-1 left-1/2 h-1 w-1 -translate-x-1/2 rounded-full", isStart || isEnd ? "bg-on-brand" : "bg-brand") })
182
182
  ]
183
183
  }
184
184
  ),
@@ -44,6 +44,7 @@ function AutoGrowTextarea({ minRows = 2, maxRows = 8, className, ...rest }) {
44
44
  },
45
45
  className: cx(
46
46
  text,
47
+ // perf-ok: auto-grow follows the text one line at a time, a short height change on a small field.
47
48
  "resize-none rounded-xl bg-paper text-ink outline-none placeholder:text-mute transition-[height,box-shadow] duration-300 ease-[cubic-bezier(.16,1,.3,1)] motion-reduce:transition-none",
48
49
  "shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_14%,transparent)] hover:shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_24%,transparent)] focus:!shadow-[inset_0_0_0_1px_var(--brand),0_0_0_4px_color-mix(in_srgb,var(--brand)_16%,transparent)]"
49
50
  )