asta-ui 0.9.6 → 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 (438) 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-2EBWWZPS.js → chunk-DITROAPF.js} +68 -21
  213. package/dist/{chunk-CACW5LH3.js → chunk-DSLKU6QJ.js} +68 -21
  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-Q3KZWQWK.js +389 -0
  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-UACKIMP4.js +389 -0
  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/kit/base/navbar.d.ts +4 -1
  426. package/dist/types/components/kit/base/sidebar.d.ts +29 -7
  427. package/dist/types/components/kit/navbar.d.ts +4 -1
  428. package/dist/types/components/kit/sidebar.d.ts +29 -7
  429. package/dist/types/components/lab/lab-hooks.d.ts +12 -0
  430. package/dist/types/packages/asta-ui/src/base.d.ts +1 -1
  431. package/dist/types/packages/asta-ui/src/index.d.ts +1 -1
  432. package/dist/variant-picker.js +2 -1
  433. package/dist/wishlist.js +2 -1
  434. package/dist/workspace-switcher.js +1 -1
  435. package/package.json +1 -1
  436. package/dist/chunk-2Z5Z4YYZ.js +0 -57
  437. package/dist/chunk-MVE7RJJ6.js +0 -322
  438. package/dist/chunk-TBMUSER2.js +0 -322
@@ -170,7 +170,7 @@ function SortableList({ items, onReorder, renderItem, label, getLabel = (it) =>
170
170
  "flex h-8 w-7 shrink-0 touch-none items-center justify-center rounded-md outline-none transition-colors",
171
171
  "focus-visible:ring-2 focus-visible:ring-brand/50",
172
172
  dragging ? "cursor-grabbing text-ink" : "cursor-grab text-mute hover:bg-paper-2 hover:text-ink",
173
- grabbed === it.id && "bg-brand text-white hover:bg-brand hover:text-white"
173
+ grabbed === it.id && "bg-brand text-on-brand hover:bg-brand hover:text-on-brand"
174
174
  ),
175
175
  children: /* @__PURE__ */ jsx(Grip, {})
176
176
  }
@@ -103,7 +103,7 @@ function ChecklistPassword({
103
103
  /* @__PURE__ */ jsx("span", { className: cx("text-[17px] font-semibold leading-none tracking-[-0.03em] transition-colors duration-300", passed[i] ? "text-brand" : "text-ink"), children: r.glyph }),
104
104
  /* @__PURE__ */ jsx("span", { className: "truncate text-[11.5px] text-mute", children: r.label }),
105
105
  /* @__PURE__ */ jsx("span", { className: "sr-only", children: passed[i] ? ", done" : ", not yet" }),
106
- passed[i] && /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "absolute right-1.5 top-1.5 grid h-4 w-4 place-items-center rounded-full bg-brand text-white", style: { animation: `aui040-tick .4s ${EASE} both` }, children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "h-2.5 w-2.5", fill: "none", stroke: "currentColor", strokeWidth: "2.6", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsx("path", { d: "m3.5 8.5 3 3 6-7" }) }) })
106
+ passed[i] && /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "absolute right-1.5 top-1.5 grid h-4 w-4 place-items-center rounded-full bg-brand text-on-brand", style: { animation: `aui040-tick .4s ${EASE} both` }, children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "h-2.5 w-2.5", fill: "none", stroke: "currentColor", strokeWidth: "2.6", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsx("path", { d: "m3.5 8.5 3 3 6-7" }) }) })
107
107
  ]
108
108
  },
109
109
  r.label
@@ -0,0 +1,43 @@
1
+ "use client";
2
+
3
+ // components/lab/lab-hooks.ts
4
+ import { useCallback, useEffect, useState } from "react";
5
+ function useInView(ref) {
6
+ const [visible, setVisible] = useState(true);
7
+ useEffect(() => {
8
+ const el = ref.current;
9
+ if (!el) return;
10
+ let seen = true;
11
+ const sync = () => setVisible(seen && !document.hidden);
12
+ const io = new IntersectionObserver(([e]) => {
13
+ seen = e.isIntersecting;
14
+ sync();
15
+ });
16
+ io.observe(el);
17
+ document.addEventListener("visibilitychange", sync);
18
+ return () => {
19
+ io.disconnect();
20
+ document.removeEventListener("visibilitychange", sync);
21
+ };
22
+ }, [ref]);
23
+ return visible;
24
+ }
25
+ function useTakeOver(ms) {
26
+ const [paused, setPaused] = useState(false);
27
+ const [touch, setTouch] = useState(0);
28
+ useEffect(() => {
29
+ if (!paused) return;
30
+ const id = setTimeout(() => setPaused(false), ms);
31
+ return () => clearTimeout(id);
32
+ }, [paused, touch, ms]);
33
+ const takeOver = useCallback(() => {
34
+ setPaused(true);
35
+ setTouch((n) => n + 1);
36
+ }, []);
37
+ return [paused, takeOver];
38
+ }
39
+
40
+ export {
41
+ useInView,
42
+ useTakeOver
43
+ };
@@ -4,10 +4,10 @@ import {
4
4
  } from "./chunk-JLCSRNI2.js";
5
5
  import {
6
6
  Avatar
7
- } from "./chunk-IVCHYE55.js";
7
+ } from "./chunk-7IOMROVG.js";
8
8
  import {
9
9
  Button
10
- } from "./chunk-WSL4JGEA.js";
10
+ } from "./chunk-HSDMCZMX.js";
11
11
 
12
12
  // components/kit/base/team-members.tsx
13
13
  import { useEffect, useId, useLayoutEffect, useRef, useState } from "react";
@@ -11,13 +11,13 @@ var SIZE = {
11
11
  };
12
12
  var RING = {
13
13
  default: "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)]",
14
- 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.16)]",
15
- 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.16)]"
14
+ 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)]",
15
+ 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)_16%,transparent)]"
16
16
  };
17
- var StateIcon = ({ state }) => state === "error" ? /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 16 16", className: "h-4 w-4 shrink-0 text-[#e5484d]", fill: "none", stroke: "currentColor", strokeWidth: "1.6", strokeLinecap: "round", "aria-hidden": true, children: [
17
+ var StateIcon = ({ state }) => state === "error" ? /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 16 16", className: "h-4 w-4 shrink-0 text-ink", fill: "none", stroke: "currentColor", strokeWidth: "1.6", strokeLinecap: "round", "aria-hidden": true, children: [
18
18
  /* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "6" }),
19
19
  /* @__PURE__ */ jsx("path", { d: "M8 5v3.5M8 11h.01" })
20
- ] }) : state === "success" ? /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "h-4 w-4 shrink-0 text-[#30a46c]", fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "M3.5 8.5l3 3 6-7" }) }) : null;
20
+ ] }) : state === "success" ? /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "h-4 w-4 shrink-0 text-brand", fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "M3.5 8.5l3 3 6-7" }) }) : null;
21
21
  function Input({ size = "md", state = "default", iconLeft, iconRight, clearable, className, inputClassName, ...rest }) {
22
22
  const ref = useRef(null);
23
23
  const controlled = rest.value !== void 0;
@@ -31,7 +31,7 @@ function Checkbox({ checked, defaultChecked = false, onCheckedChange, disabled,
31
31
  on || mixed ? "bg-brand shadow-[inset_0_1px_0_rgb(255_255_255/0.2),0_1px_2px_rgb(0_0_0/0.2)]" : "bg-paper shadow-[inset_0_0_0_1.5px_color-mix(in_srgb,var(--ink)_22%,transparent)] hover:shadow-[inset_0_0_0_1.5px_color-mix(in_srgb,var(--ink)_40%,transparent)]"
32
32
  ),
33
33
  children: [
34
- /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "col-start-1 row-start-1 h-3 w-3 text-white", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx(
34
+ /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "col-start-1 row-start-1 h-3 w-3 text-on-brand", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx(
35
35
  "path",
36
36
  {
37
37
  d: "M3.5 8.5l3 3 6-7",
@@ -45,7 +45,7 @@ function Checkbox({ checked, defaultChecked = false, onCheckedChange, disabled,
45
45
  "span",
46
46
  {
47
47
  "aria-hidden": true,
48
- className: cx("col-start-1 row-start-1 h-[2.2px] w-2 rounded-full bg-white transition-transform duration-300 ease-[cubic-bezier(.16,1,.3,1)]", mixed ? "scale-x-100" : "scale-x-0")
48
+ className: cx("col-start-1 row-start-1 h-[2.2px] w-2 rounded-full bg-on-brand transition-transform duration-300 ease-[cubic-bezier(.16,1,.3,1)]", mixed ? "scale-x-100" : "scale-x-0")
49
49
  }
50
50
  )
51
51
  ]
@@ -50,7 +50,7 @@ function Slider({
50
50
  return /* @__PURE__ */ jsx(
51
51
  "span",
52
52
  {
53
- className: cx("absolute top-1/2 h-1 w-1 -translate-x-1/2 -translate-y-1/2 rounded-full transition-colors", at <= k ? "bg-white/80" : "bg-[color-mix(in_srgb,var(--ink)_28%,transparent)]"),
53
+ className: cx("absolute top-1/2 h-1 w-1 -translate-x-1/2 -translate-y-1/2 rounded-full transition-colors", at <= k ? "bg-on-brand/80" : "bg-[color-mix(in_srgb,var(--ink)_28%,transparent)]"),
54
54
  style: { left: `${at * 100}%` }
55
55
  },
56
56
  i
@@ -4,10 +4,10 @@ import {
4
4
  } from "./chunk-AMVX4DDT.js";
5
5
  import {
6
6
  Button
7
- } from "./chunk-ZWBJUJTR.js";
7
+ } from "./chunk-5ZQ6PMJT.js";
8
8
  import {
9
9
  Input
10
- } from "./chunk-UZF7SCRT.js";
10
+ } from "./chunk-G3FPQ3XG.js";
11
11
 
12
12
  // components/kit/checkout.tsx
13
13
  import { useEffect, useId, useMemo, useRef, useState } from "react";
@@ -259,7 +259,7 @@ function Checkout({
259
259
  return /* @__PURE__ */ jsxs("div", { className: cx("kit-co grid w-full gap-8 md:grid-cols-[minmax(0,1fr)_340px] md:gap-10", className), children: [
260
260
  /* @__PURE__ */ jsx("style", { href: "asta-checkout", precedence: "asta", children: KEYFRAMES }),
261
261
  /* @__PURE__ */ jsx("div", { className: "min-w-0", children: state === "done" ? /* @__PURE__ */ jsxs("div", { className: "flex h-full min-h-[420px] flex-col items-start justify-center", role: "status", style: { animation: `kit-co-up .5s ${CURVE}` }, children: [
262
- /* @__PURE__ */ jsx("span", { className: "grid h-12 w-12 place-items-center rounded-full bg-brand text-white", style: { animation: `kit-co-pop .55s ${CURVE} .1s both` }, children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "h-5 w-5", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "m3.5 8.5 3 3 6-7" }) }) }),
262
+ /* @__PURE__ */ jsx("span", { className: "grid h-12 w-12 place-items-center rounded-full bg-brand text-on-brand", style: { animation: `kit-co-pop .55s ${CURVE} .1s both` }, children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "h-5 w-5", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "m3.5 8.5 3 3 6-7" }) }) }),
263
263
  /* @__PURE__ */ jsx("h3", { className: "mt-6 text-[24px] font-medium tracking-[-0.03em] text-ink", children: "Payment received" }),
264
264
  /* @__PURE__ */ jsxs("p", { className: "mt-2 max-w-[360px] text-[14px] leading-relaxed text-mute", children: [
265
265
  "We charged ",
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  Button
4
- } from "./chunk-WSL4JGEA.js";
4
+ } from "./chunk-HSDMCZMX.js";
5
5
 
6
6
  // components/kit/base/pricing.tsx
7
7
  import { useLayoutEffect, useRef, useState } from "react";
@@ -27,13 +27,20 @@ function RollingNumber({ value, className = "" }) {
27
27
  }
28
28
  function BillingSwitch({ value, onChange, saving }) {
29
29
  const refs = useRef({ monthly: null, yearly: null });
30
- const [pill, setPill] = useState({ x: 0, w: 0 });
30
+ const box = useRef(null);
31
+ const [pill, setPill] = useState(null);
31
32
  useLayoutEffect(() => {
32
- const el = refs.current[value];
33
- if (el) setPill({ x: el.offsetLeft, w: el.offsetWidth });
33
+ const measure = () => {
34
+ const el = refs.current[value];
35
+ if (el) setPill((p) => p && p.x === el.offsetLeft && p.w === el.offsetWidth ? p : { x: el.offsetLeft, w: el.offsetWidth });
36
+ };
37
+ measure();
38
+ const ro = new ResizeObserver(measure);
39
+ if (box.current) ro.observe(box.current);
40
+ return () => ro.disconnect();
34
41
  }, [value]);
35
- return /* @__PURE__ */ jsxs("div", { role: "radiogroup", "aria-label": "Billing period", className: "relative inline-flex rounded-[10px] bg-paper-2 p-1 shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_8%,transparent)]", children: [
36
- /* @__PURE__ */ jsx(
42
+ return /* @__PURE__ */ jsxs("div", { ref: box, role: "radiogroup", "aria-label": "Billing period", className: "relative inline-flex rounded-[10px] bg-paper-2 p-1 shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_8%,transparent)]", children: [
43
+ pill && /* @__PURE__ */ jsx(
37
44
  "span",
38
45
  {
39
46
  "aria-hidden": true,
@@ -66,7 +73,7 @@ function BillingSwitch({ value, onChange, saving }) {
66
73
  ),
67
74
  children: [
68
75
  b,
69
- b === "yearly" && saving && /* @__PURE__ */ jsx("span", { className: "rounded-[4px] bg-brand px-1.5 text-[10.5px] leading-[18px] text-white", children: saving })
76
+ b === "yearly" && saving && /* @__PURE__ */ jsx("span", { className: "rounded-[4px] bg-brand px-1.5 text-[10.5px] leading-[18px] text-on-brand", children: saving })
70
77
  ]
71
78
  },
72
79
  b
@@ -91,7 +98,7 @@ function Pricing({ plans, currency = "$", saving, defaultBilling = "monthly", cl
91
98
  children: [
92
99
  /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2", children: [
93
100
  /* @__PURE__ */ jsx("h3", { className: "text-[15px] font-medium tracking-[-0.01em]", children: p.name }),
94
- hi && /* @__PURE__ */ jsx("span", { className: "rounded-[5px] bg-brand px-2 py-0.5 text-[11px] font-medium text-white", children: p.highlight })
101
+ hi && /* @__PURE__ */ jsx("span", { className: "rounded-[5px] bg-brand px-2 py-0.5 text-[11px] font-medium text-on-brand", children: p.highlight })
95
102
  ] }),
96
103
  /* @__PURE__ */ jsx("p", { className: cx("mt-1 text-[12.5px] leading-snug", hi ? "text-paper/60" : "text-mute"), children: p.description }),
97
104
  /* @__PURE__ */ jsxs("div", { className: "mt-5 flex items-end gap-1", children: [
@@ -4,8 +4,13 @@
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  var cx = (...c) => c.filter(Boolean).join(" ");
6
6
  var SHIMMER = `
7
- @keyframes kit-shimmer { from { background-position: 150% 0 } to { background-position: -50% 0 } }
8
- @media (prefers-reduced-motion: reduce) { .kit-skel { animation: none !important } }
7
+ .kit-skel::after {
8
+ content: ""; position: absolute; inset-block: 0; left: 0; width: 250%; pointer-events: none;
9
+ background-image: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--paper) 70%, transparent) 50%, transparent 70%);
10
+ animation: kit-shimmer 1.6s cubic-bezier(.16,1,.3,1) infinite;
11
+ }
12
+ @keyframes kit-shimmer { from { transform: translateX(-90%) } to { transform: translateX(30%) } }
13
+ @media (prefers-reduced-motion: reduce) { .kit-skel::after { animation: none !important } }
9
14
  `;
10
15
  function Skeleton({ shape = "line", width, height, className }) {
11
16
  return /* @__PURE__ */ jsx(
@@ -13,7 +18,7 @@ function Skeleton({ shape = "line", width, height, className }) {
13
18
  {
14
19
  "aria-hidden": true,
15
20
  className: cx(
16
- "kit-skel block",
21
+ "kit-skel relative block overflow-hidden",
17
22
  shape === "line" && "h-3 rounded-full",
18
23
  shape === "circle" && "aspect-square shrink-0 self-start rounded-full",
19
24
  shape === "block" && "rounded-[10px]",
@@ -22,10 +27,7 @@ function Skeleton({ shape = "line", width, height, className }) {
22
27
  style: {
23
28
  width,
24
29
  height: height ?? (shape === "circle" ? width : void 0),
25
- backgroundColor: "color-mix(in srgb, var(--ink) 7%, transparent)",
26
- backgroundImage: "linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--paper) 70%, transparent) 50%, transparent 70%)",
27
- backgroundSize: "250% 100%",
28
- animation: "kit-shimmer 1.6s cubic-bezier(.4,0,.2,1) infinite"
30
+ backgroundColor: "color-mix(in srgb, var(--ink) 7%, transparent)"
29
31
  },
30
32
  children: /* @__PURE__ */ jsx("style", { href: "asta-skeleton", precedence: "asta", children: SHIMMER })
31
33
  }
@@ -9,8 +9,8 @@ var BASE = "group/btn relative inline-flex shrink-0 select-none items-center [&_
9
9
  var LIFT = "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)]";
10
10
  var VARIANT = {
11
11
  solid: `bg-ink text-paper ${LIFT} hover:bg-[color-mix(in_srgb,var(--ink)_84%,var(--paper))]`,
12
- accent: `bg-brand text-white ${LIFT} hover:bg-[color-mix(in_srgb,var(--brand)_88%,black)]`,
13
- danger: `bg-[#e5484d] text-white ${LIFT} hover:bg-[#d13d42]`,
12
+ accent: `bg-brand text-on-brand ${LIFT} hover:bg-[color-mix(in_srgb,var(--brand)_88%,black)]`,
13
+ danger: `bg-ink text-paper ${LIFT} hover:bg-[color-mix(in_srgb,var(--ink)_86%,var(--paper))]`,
14
14
  outline: "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)] hover:bg-paper-2 hover:shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_24%,transparent),0_1px_2px_rgb(0_0_0/0.05)]",
15
15
  soft: "bg-paper-2 text-ink hover:bg-[color-mix(in_srgb,var(--ink)_8%,var(--paper-2))]",
16
16
  ghost: "text-ink-2 hover:bg-paper-2 hover:text-ink",
@@ -17,8 +17,8 @@ var readFlag = (key) => {
17
17
  }
18
18
  };
19
19
  var SURFACE = {
20
- ink: { bar: "bg-ink text-paper", badge: "bg-brand text-white", link: "text-paper", close: "text-paper/60 hover:text-paper hover:bg-paper/10" },
21
- brand: { bar: "bg-brand text-white", badge: "bg-white/15 text-white", link: "text-white", close: "text-white/70 hover:text-white hover:bg-white/10" },
20
+ ink: { bar: "bg-ink text-paper", badge: "bg-brand text-on-brand", link: "text-paper", close: "text-paper/60 hover:text-paper hover:bg-paper/10" },
21
+ brand: { bar: "bg-brand text-on-brand", badge: "bg-on-brand/15 text-on-brand", link: "text-on-brand", close: "text-on-brand/70 hover:text-on-brand hover:bg-on-brand/10" },
22
22
  subtle: { bar: "bg-paper-2 text-ink", badge: "bg-[color-mix(in_srgb,var(--brand)_14%,transparent)] text-brand", link: "text-brand", close: "text-mute hover:text-ink hover:bg-paper" }
23
23
  };
24
24
  function Message({ m, tone, tabbable }) {
@@ -53,6 +53,15 @@ function AnnouncementBar({ messages, variant = "ink", interval = 5e3, dismissibl
53
53
  const count = messages.length;
54
54
  const index = count ? cur % count : 0;
55
55
  const rotating = count > 1 && !paused && !calm;
56
+ const rendered = present && count > 0 && !(open === void 0 && remembered);
57
+ const [onScreen, setOnScreen] = useState(true);
58
+ useEffect(() => {
59
+ const el = root.current;
60
+ if (!rendered || !el) return;
61
+ const io = new IntersectionObserver(([e]) => setOnScreen(e.isIntersecting));
62
+ io.observe(el);
63
+ return () => io.disconnect();
64
+ }, [rendered]);
56
65
  useEffect(() => {
57
66
  const mq = window.matchMedia("(prefers-reduced-motion: reduce)");
58
67
  const sync = () => setCalm(mq.matches);
@@ -61,19 +70,19 @@ function AnnouncementBar({ messages, variant = "ink", interval = 5e3, dismissibl
61
70
  return () => mq.removeEventListener("change", sync);
62
71
  }, []);
63
72
  useEffect(() => {
64
- if (!rotating || !present) return;
73
+ if (!rotating || !present || !onScreen) return;
65
74
  const id = setInterval(() => {
66
75
  if (document.hidden) return;
67
76
  setTurn((t) => ({ cur: (t.cur + 1) % count, prev: t.cur % count }));
68
77
  }, interval);
69
78
  return () => clearInterval(id);
70
- }, [rotating, present, interval, count]);
79
+ }, [rotating, present, onScreen, interval, count]);
71
80
  const dismiss = () => {
72
81
  if (root.current?.contains(document.activeElement)) document.activeElement.blur();
73
82
  if (open === void 0) setInner(false);
74
83
  onDismiss?.();
75
84
  };
76
- if (!present || !count || open === void 0 && remembered) return null;
85
+ if (!rendered) return null;
77
86
  return /* @__PURE__ */ jsxs(
78
87
  "div",
79
88
  {
@@ -185,7 +185,7 @@ function FloatingNavbar({
185
185
  href: cta.href,
186
186
  style: at(links.length + 2),
187
187
  className: cx(
188
- "aui-010-in group/cta hidden h-8 items-center gap-1 rounded-lg bg-brand pl-3 pr-2.5 text-[13px] font-medium text-white transition-transform duration-300 hover:-translate-y-px active:translate-y-0 active:scale-[.97] @min-[640px]:inline-flex",
188
+ "aui-010-in group/cta hidden h-8 items-center gap-1 rounded-lg bg-brand pl-3 pr-2.5 text-[13px] font-medium text-on-brand transition-transform duration-300 hover:-translate-y-px active:translate-y-0 active:scale-[.97] @min-[640px]:inline-flex",
189
189
  "shadow-[0_1px_2px_rgb(0_0_0/0.15),0_10px_24px_-10px_color-mix(in_srgb,var(--brand)_90%,transparent)] focus-visible:ring-offset-2 focus-visible:ring-offset-paper",
190
190
  TW_EASE,
191
191
  FOCUS
@@ -236,7 +236,7 @@ function FloatingNavbar({
236
236
  ) }, l.label)) }),
237
237
  /* @__PURE__ */ jsxs("div", { className: "aui-010-in mt-2 grid grid-cols-2 gap-2", style: at(links.length), children: [
238
238
  secondary && /* @__PURE__ */ jsx("a", { href: secondary.href, className: cx("flex h-11 items-center justify-center rounded-[9px] bg-paper-2 text-[14px] font-medium text-ink", FOCUS), children: secondary.label }),
239
- /* @__PURE__ */ jsx("a", { href: cta.href, className: cx("flex h-11 items-center justify-center rounded-[9px] bg-brand text-[14px] font-medium text-white", FOCUS, !secondary && "col-span-2"), children: cta.label })
239
+ /* @__PURE__ */ jsx("a", { href: cta.href, className: cx("flex h-11 items-center justify-center rounded-[9px] bg-brand text-[14px] font-medium text-on-brand", FOCUS, !secondary && "col-span-2"), children: cta.label })
240
240
  ] })
241
241
  ]
242
242
  }
@@ -50,8 +50,9 @@ function RangeSlider({
50
50
  onValueChange?.(next);
51
51
  return next;
52
52
  };
53
+ const rect = useRef(null);
53
54
  const fromX = (x) => {
54
- const r = track.current?.getBoundingClientRect();
55
+ const r = rect.current;
55
56
  if (!r || !r.width) return min;
56
57
  return min + Math.min(1, Math.max(0, (x - r.left) / r.width)) * span;
57
58
  };
@@ -59,6 +60,8 @@ function RangeSlider({
59
60
  const onDown = (e) => {
60
61
  if (disabled || e.button !== 0) return;
61
62
  e.preventDefault();
63
+ const tr = track.current?.getBoundingClientRect();
64
+ rect.current = tr ? { left: tr.left, width: tr.width } : null;
62
65
  const v = fromX(e.clientX);
63
66
  const [a, b] = latest.current;
64
67
  const tie = a === b;
@@ -22,12 +22,12 @@ var TEAM = [
22
22
  { id: "daniel", name: "Daniel Ortiz", detail: "Backend" }
23
23
  ];
24
24
  var TONES = [
25
- "bg-brand text-white",
25
+ "bg-brand text-on-brand",
26
26
  "bg-ink text-paper",
27
27
  "bg-[color-mix(in_srgb,var(--brand)_16%,var(--paper))] text-brand",
28
28
  "bg-paper-2 text-ink shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent)]",
29
29
  "bg-[color-mix(in_srgb,var(--ink)_70%,var(--paper))] text-paper",
30
- "bg-[color-mix(in_srgb,var(--brand)_55%,var(--ink))] text-white"
30
+ "bg-[color-mix(in_srgb,var(--brand)_55%,var(--ink))] text-on-brand"
31
31
  ];
32
32
  var initials = (n) => n.split(/\s+/).map((w) => w[0]).slice(0, 2).join("").toUpperCase();
33
33
  function Avatar({ p, tone, size = 28, ring }) {
@@ -240,7 +240,7 @@ function AssignCombobox({ people = TEAM, value, defaultValue = ["lena", "arif"],
240
240
  "aria-hidden": true,
241
241
  className: cx(
242
242
  "flex h-[18px] w-[18px] items-center justify-center rounded-[5px] transition-[background-color,box-shadow,transform] duration-300",
243
- on ? "scale-100 bg-brand text-white" : "scale-90 shadow-[inset_0_0_0_1.5px_color-mix(in_srgb,var(--ink)_22%,transparent)]"
243
+ on ? "scale-100 bg-brand text-on-brand" : "scale-90 shadow-[inset_0_0_0_1.5px_color-mix(in_srgb,var(--ink)_22%,transparent)]"
244
244
  ),
245
245
  children: on && /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "h-3 w-3", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", strokeDasharray: "16", style: { animation: `aui046-draw .35s ${EASE} both` }, children: /* @__PURE__ */ jsx("path", { d: "m4 8.5 2.6 2.5L12 5.5" }) })
246
246
  }
@@ -238,7 +238,7 @@ function CreatableCombobox({ options = LABELS, value, defaultValue = ["bug", "fr
238
238
  onClick: create,
239
239
  className: cx("mb-1 flex h-11 cursor-pointer select-none items-center gap-2.5 rounded-[8px] px-2.5 transition-colors duration-150", active === 0 ? "bg-[color-mix(in_srgb,var(--brand)_8%,transparent)]" : ""),
240
240
  children: [
241
- /* @__PURE__ */ jsx("span", { className: "flex h-6 w-6 items-center justify-center rounded-[6px] bg-brand text-white", "aria-hidden": true, children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "h-3.5 w-3.5", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", children: /* @__PURE__ */ jsx("path", { d: "M8 3.5v9M3.5 8h9" }) }) }),
241
+ /* @__PURE__ */ jsx("span", { className: "flex h-6 w-6 items-center justify-center rounded-[6px] bg-brand text-on-brand", "aria-hidden": true, children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "h-3.5 w-3.5", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", children: /* @__PURE__ */ jsx("path", { d: "M8 3.5v9M3.5 8h9" }) }) }),
242
242
  /* @__PURE__ */ jsxs("span", { className: "min-w-0 flex-1 truncate text-[13.5px] text-ink-2", children: [
243
243
  "Create",
244
244
  " ",
@@ -6,9 +6,9 @@ var cx = (...c) => c.filter(Boolean).join(" ");
6
6
  var TONE = {
7
7
  neutral: "var(--ink)",
8
8
  accent: "var(--brand)",
9
- success: "#30a46c",
10
- warning: "#f5a524",
11
- danger: "#e5484d"
9
+ success: "var(--brand)",
10
+ warning: "var(--ink-2)",
11
+ danger: "var(--ink)"
12
12
  };
13
13
  var VARIANT = {
14
14
  solid: "bg-[var(--kit-badge)] text-[var(--kit-badge-on)]",
@@ -16,7 +16,7 @@ var VARIANT = {
16
16
  outline: "text-[color-mix(in_srgb,var(--kit-badge)_80%,var(--ink))] shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--kit-badge)_35%,transparent)]"
17
17
  };
18
18
  function Badge({ variant = "soft", tone = "neutral", dot, pulse, onRemove, size = "md", className, style, children, ...rest }) {
19
- const on = tone === "neutral" ? "var(--paper)" : tone === "warning" ? "#1a1300" : "#fff";
19
+ const on = tone === "accent" || tone === "success" ? "var(--on-brand)" : "var(--paper)";
20
20
  return /* @__PURE__ */ jsxs(
21
21
  "span",
22
22
  {
@@ -59,7 +59,7 @@ function CountBadge({ count, max = 99, className }) {
59
59
  "span",
60
60
  {
61
61
  className: cx(
62
- "inline-flex h-[18px] min-w-[18px] animate-[kit-badge-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",
62
+ "inline-flex h-[18px] min-w-[18px] animate-[kit-badge-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",
63
63
  className
64
64
  ),
65
65
  children: [
@@ -100,7 +100,7 @@ function PromptBox({ models, defaultModel, placeholder = "Ask anything\u2026", m
100
100
  ) })
101
101
  ] }),
102
102
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
103
- /* @__PURE__ */ jsxs("span", { className: cx("text-[11.5px] tabular-nums transition-colors duration-300", over ? "text-[#e5484d]" : "text-mute"), "aria-live": "polite", children: [
103
+ /* @__PURE__ */ jsxs("span", { className: cx("text-[11.5px] tabular-nums transition-colors duration-300", over ? "text-ink" : "text-mute"), "aria-live": "polite", children: [
104
104
  tokens.toLocaleString(),
105
105
  " / ",
106
106
  maxTokens.toLocaleString(),
@@ -113,6 +113,7 @@ function PromptBox({ models, defaultModel, placeholder = "Ask anything\u2026", m
113
113
  onClick: submit,
114
114
  disabled: !busy && !ready,
115
115
  className: cx(
116
+ // perf-ok: the fill grows inside one button; nothing outside it reflows.
116
117
  "relative flex h-8 items-center gap-1.5 overflow-hidden rounded-full px-3.5 text-[13px] font-medium transition-[background-color,color,transform,width] duration-300 ease-[cubic-bezier(.16,1,.3,1)] active:scale-95 motion-reduce:transition-none",
117
118
  busy ? "bg-paper-2 text-ink" : ready ? "bg-ink text-paper" : "bg-paper-2 text-mute"
118
119
  ),
@@ -21,17 +21,27 @@ function Dialog({ open, onOpenChange, title, description, children, footer, cont
21
21
  const dy = t.top + t.height / 2 - (p.top + p.height / 2);
22
22
  return `translate(${dx}px, ${dy}px) scale(${Math.max(0.15, t.width / p.width)}, ${Math.max(0.1, t.height / p.height)})`;
23
23
  }, []);
24
+ const enter = useCallback(
25
+ (el) => {
26
+ el.animate([{ transform: still() ? "none" : fromTrigger(), opacity: 0 }, { transform: "none", opacity: 1 }], { duration: still() ? 160 : 520, easing: EASE });
27
+ backdrop.current?.animate([{ opacity: 0 }, { opacity: 1 }], { duration: 300, easing: "ease-out" });
28
+ },
29
+ [fromTrigger]
30
+ );
24
31
  useLayoutEffect(() => {
25
32
  if (open && !panel.current?.contains(document.activeElement)) opener.current = document.activeElement;
26
- }, [open]);
33
+ const p = panel.current;
34
+ if (!open || !p || !p.getAnimations().some((a) => a.effect?.getTiming().fill === "forwards")) return;
35
+ for (const el of [p, backdrop.current]) el?.getAnimations().forEach((a) => a.cancel());
36
+ enter(p);
37
+ }, [open, enter]);
27
38
  const attach = useCallback(
28
39
  (el) => {
29
40
  panel.current = el;
30
41
  if (!el || !el.hasAttribute("data-open")) return;
31
- el.animate([{ transform: still() ? "none" : fromTrigger(), opacity: 0, borderRadius: still() ? "24px" : "999px" }, { transform: "none", opacity: 1, borderRadius: "24px" }], { duration: still() ? 160 : 520, easing: EASE });
32
- backdrop.current?.animate([{ opacity: 0 }, { opacity: 1 }], { duration: 300, easing: "ease-out" });
42
+ enter(el);
33
43
  },
34
- [fromTrigger]
44
+ [enter]
35
45
  );
36
46
  useLayoutEffect(() => {
37
47
  const p = panel.current;
@@ -42,7 +52,7 @@ function Dialog({ open, onOpenChange, title, description, children, footer, cont
42
52
  return /* @__PURE__ */ jsxs(Fragment, { children: [
43
53
  contained && /* @__PURE__ */ jsx("span", { ref: host, className: "contents" }),
44
54
  /* @__PURE__ */ jsx(D.Root, { open, onOpenChange: (next) => onOpenChange(next), children: /* @__PURE__ */ jsx(D.Portal, { container: contained ? host : void 0, children: /* @__PURE__ */ jsxs("div", { className: cx(contained ? "absolute" : "fixed", "inset-0 z-50 flex items-center justify-center p-4"), children: [
45
- /* @__PURE__ */ jsx(D.Backdrop, { ref: backdrop, className: cx("absolute inset-0 bg-[rgb(10_10_10/0.38)] will-change-[opacity]", contained && "rounded-[inherit]") }),
55
+ /* @__PURE__ */ jsx(D.Backdrop, { ref: backdrop, className: cx("absolute inset-0 bg-[color-mix(in_srgb,var(--ink)_38%,transparent)] will-change-[opacity]", contained && "rounded-[inherit]") }),
46
56
  /* @__PURE__ */ jsxs(
47
57
  D.Popup,
48
58
  {
@@ -55,9 +55,15 @@ function AgentTeam() {
55
55
  }, []);
56
56
  useEffect(() => {
57
57
  if (paused) return;
58
- const t = [];
58
+ const t = /* @__PURE__ */ new Set();
59
59
  let alive = true;
60
- const later = (ms, f) => t.push(setTimeout(() => alive && f(), ms));
60
+ const later = (ms, f) => {
61
+ const id = setTimeout(() => {
62
+ t.delete(id);
63
+ if (alive) f();
64
+ }, ms);
65
+ t.add(id);
66
+ };
61
67
  const step = () => {
62
68
  if (k.current >= STEPS.length) {
63
69
  later(4200, () => setFade(true));
@@ -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/NowPlaying.tsx
4
8
  import { useEffect, useRef, useState } from "react";
@@ -55,8 +59,10 @@ function NowPlaying() {
55
59
  const [dir, setDir] = useState(1);
56
60
  const [at, setAt] = useState(TRACKS[0].start);
57
61
  const [playing, setPlaying] = useState(true);
58
- const [demo, setDemo] = useState(true);
59
- const idle = useRef(null);
62
+ const [held, takeOver] = useTakeOver(1e4);
63
+ const root = useRef(null);
64
+ const visible = useInView(root);
65
+ const demo = !held && visible;
60
66
  const bar = useRef(null);
61
67
  const n = useRef(0);
62
68
  const curRef = useRef(0);
@@ -70,22 +76,16 @@ function NowPlaying() {
70
76
  setAt(TRACKS[next].start);
71
77
  setDir(d);
72
78
  };
73
- const takeOver = () => {
74
- setDemo(false);
75
- if (idle.current) clearTimeout(idle.current);
76
- idle.current = setTimeout(() => setDemo(true), 1e4);
77
- };
78
- useEffect(() => () => void (idle.current && clearTimeout(idle.current)), []);
79
79
  useEffect(() => {
80
80
  if (!still()) return;
81
81
  const id = setTimeout(() => setPlaying(false), 0);
82
82
  return () => clearTimeout(id);
83
83
  }, []);
84
84
  useEffect(() => {
85
- if (!playing) return;
85
+ if (!playing || !visible) return;
86
86
  const id = setInterval(() => setAt((a) => a + 0.25), 250);
87
87
  return () => clearInterval(id);
88
- }, [playing]);
88
+ }, [playing, visible]);
89
89
  useEffect(() => {
90
90
  if (at < track.len) return;
91
91
  const id = setTimeout(() => go(1), 0);
@@ -139,6 +139,7 @@ function NowPlaying() {
139
139
  return /* @__PURE__ */ jsxs(
140
140
  "div",
141
141
  {
142
+ ref: root,
142
143
  role: "group",
143
144
  tabIndex: 0,
144
145
  "aria-label": `Music player. ${track.title} by ${track.artist}. ${playing ? "Playing" : "Paused"}. Space to ${playing ? "pause" : "play"}, arrows to seek`,
@@ -194,7 +195,7 @@ function NowPlaying() {
194
195
  "span",
195
196
  {
196
197
  className: "lab-np-eq block h-full w-[2.5px] rounded-[1px] bg-brand",
197
- style: { ["--d"]: `${d * 0.5}s`, animationDelay: `${-i * 0.17}s`, animationPlayState: playing ? "running" : "paused" }
198
+ style: { ["--d"]: `${d * 0.5}s`, animationDelay: `${-i * 0.17}s`, animationPlayState: playing && visible ? "running" : "paused" }
198
199
  },
199
200
  i
200
201
  ))
@@ -91,9 +91,15 @@ function PriceAlert() {
91
91
  }, []);
92
92
  useEffect(() => {
93
93
  if (paused) return;
94
- const t = [];
94
+ const t = /* @__PURE__ */ new Set();
95
95
  let alive = true;
96
- const later = (ms, f) => t.push(setTimeout(() => alive && f(), ms));
96
+ const later = (ms, f) => {
97
+ const id = setTimeout(() => {
98
+ t.delete(id);
99
+ if (alive) f();
100
+ }, ms);
101
+ t.add(id);
102
+ };
97
103
  const cycle = () => {
98
104
  if (k.current >= PATH.length) {
99
105
  setFade(true);