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
@@ -132,7 +132,7 @@ function MentionTextarea({ suggestions, value: valueProp, defaultValue = "", onC
132
132
  onMouseEnter: () => setActive(i),
133
133
  className: cx("flex cursor-pointer items-center gap-2.5 rounded-lg px-2.5 py-1.5 transition-colors duration-150", i === active ? "bg-paper-2" : ""),
134
134
  children: [
135
- /* @__PURE__ */ jsx("span", { className: cx("grid h-6 w-6 shrink-0 place-items-center rounded-md text-[11px] font-medium", i === active ? "bg-brand text-white" : "bg-paper-2 text-ink-2"), children: query?.trigger === "@" ? s.label[0] : query?.trigger }),
135
+ /* @__PURE__ */ jsx("span", { className: cx("grid h-6 w-6 shrink-0 place-items-center rounded-md text-[11px] font-medium", i === active ? "bg-brand text-on-brand" : "bg-paper-2 text-ink-2"), children: query?.trigger === "@" ? s.label[0] : query?.trigger }),
136
136
  /* @__PURE__ */ jsxs("span", { className: "min-w-0", children: [
137
137
  /* @__PURE__ */ jsx("span", { className: "block truncate text-[13px] text-ink", children: s.label }),
138
138
  s.detail && /* @__PURE__ */ jsx("span", { className: "block truncate text-[11.5px] text-mute", children: s.detail })
@@ -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/Wishlist.tsx
4
8
  import { useEffect, useRef, useState } from "react";
@@ -21,14 +25,15 @@ function Wishlist() {
21
25
  const [saved, setSaved] = useState(() => ITEMS.map(() => false));
22
26
  const [count, setCount] = useState(0);
23
27
  const [burst, setBurst] = useState(() => ITEMS.map(() => 0));
24
- const [paused, setPaused] = useState(false);
28
+ const [held, takeOverDemo] = useTakeOver(8e3);
25
29
  const root = useRef(null);
30
+ const visible = useInView(root);
31
+ const paused = held || !visible;
26
32
  const tray = useRef(null);
27
33
  const badge = useRef(null);
28
34
  const hearts = useRef([]);
29
35
  const state = useRef(ITEMS.map(() => false));
30
36
  const busy = useRef(/* @__PURE__ */ new Set());
31
- const idle = useRef(null);
32
37
  const still = () => window.matchMedia("(prefers-reduced-motion: reduce)").matches;
33
38
  const pop = () => {
34
39
  if (still()) return;
@@ -109,12 +114,7 @@ function Wishlist() {
109
114
  });
110
115
  }
111
116
  };
112
- const takeOver = () => {
113
- setPaused(true);
114
- if (idle.current) clearTimeout(idle.current);
115
- idle.current = setTimeout(() => setPaused(false), 8e3);
116
- };
117
- useEffect(() => () => void (idle.current && clearTimeout(idle.current)), []);
117
+ const takeOver = takeOverDemo;
118
118
  useEffect(() => {
119
119
  if (paused || still()) return;
120
120
  let n = 0;
@@ -119,7 +119,7 @@ function CheckboxCard({
119
119
  /* @__PURE__ */ jsxs("span", { className: "relative flex items-start justify-between", children: [
120
120
  /* @__PURE__ */ jsxs("span", { className: "relative grid h-8 w-8 place-items-center overflow-hidden rounded-[8px] bg-paper-2 text-ink", children: [
121
121
  /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "absolute inset-0 bg-brand transition-opacity duration-300", style: { opacity: on ? 1 : 0 } }),
122
- /* @__PURE__ */ jsx("span", { className: cx("relative transition-colors duration-300", on && "text-white"), children: it.icon })
122
+ /* @__PURE__ */ jsx("span", { className: cx("relative transition-colors duration-300", on && "text-on-brand"), children: it.icon })
123
123
  ] }),
124
124
  /* @__PURE__ */ jsx(Check, { on })
125
125
  ] }),
@@ -153,7 +153,7 @@ function Check({ on }) {
153
153
  style: { transform: on ? "scale(1)" : "scale(0.4)", opacity: on ? 1 : 0, transitionTimingFunction: SPRING }
154
154
  }
155
155
  ),
156
- /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "relative h-3 w-3 text-white", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsx(
156
+ /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "relative h-3 w-3 text-on-brand", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsx(
157
157
  "path",
158
158
  {
159
159
  d: "M3.5 8.5l3 3 6-7",
@@ -8,8 +8,8 @@ var BASE = "group/btn relative inline-flex shrink-0 select-none items-center [&_
8
8
  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)]";
9
9
  var VARIANT = {
10
10
  solid: `bg-ink text-paper ${LIFT} hover:bg-[color-mix(in_srgb,var(--ink)_84%,var(--paper))]`,
11
- accent: `bg-brand text-white ${LIFT} hover:bg-[color-mix(in_srgb,var(--brand)_88%,black)]`,
12
- danger: `bg-[#e5484d] text-white ${LIFT} hover:bg-[#d13d42]`,
11
+ accent: `bg-brand text-on-brand ${LIFT} hover:bg-[color-mix(in_srgb,var(--brand)_88%,black)]`,
12
+ danger: `bg-ink text-paper ${LIFT} hover:bg-[color-mix(in_srgb,var(--ink)_86%,var(--paper))]`,
13
13
  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)]",
14
14
  soft: "bg-paper-2 text-ink hover:bg-[color-mix(in_srgb,var(--ink)_8%,var(--paper-2))]",
15
15
  ghost: "text-ink-2 hover:bg-paper-2 hover:text-ink",
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-LS6CFF6X.js";
5
5
  import {
6
6
  Button
7
- } from "./chunk-ZWBJUJTR.js";
7
+ } from "./chunk-5ZQ6PMJT.js";
8
8
 
9
9
  // components/kit/billing.tsx
10
10
  import { useState } from "react";
@@ -53,7 +53,7 @@ function Cell({ v, on }) {
53
53
  className: cx(
54
54
  "mx-auto grid h-5 w-5 place-items-center rounded-full transition-[background-color,color,transform] duration-500",
55
55
  EASE,
56
- on ? "scale-110 bg-brand text-white" : "bg-ink/[0.06] text-ink"
56
+ on ? "scale-110 bg-brand text-on-brand" : "bg-ink/[0.06] text-ink"
57
57
  ),
58
58
  children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "h-3 w-3", fill: "none", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsx("path", { d: "m3.5 8.5 3 3 6-7" }) })
59
59
  }
@@ -164,7 +164,7 @@ function PricingTable({ plans = PLANS, groups = GROUPS, currency = "$", maxHeigh
164
164
  /* @__PURE__ */ jsxs("div", { className: "aui-ptable-rise flex flex-col", style: { animationDelay: `${80 + i * 60}ms` }, children: [
165
165
  /* @__PURE__ */ jsxs("span", { className: "flex h-5 items-center gap-2 text-[14px] font-medium", children: [
166
166
  p.name,
167
- p.recommended && /* @__PURE__ */ jsx("span", { className: "rounded-[4px] bg-brand px-1.5 text-[10.5px] font-medium leading-[18px] text-white", children: "Popular" })
167
+ p.recommended && /* @__PURE__ */ jsx("span", { className: "rounded-[4px] bg-brand px-1.5 text-[10.5px] font-medium leading-[18px] text-on-brand", children: "Popular" })
168
168
  ] }),
169
169
  /* @__PURE__ */ jsxs("span", { className: "mt-3 flex items-start font-medium leading-none tracking-[-0.04em]", children: [
170
170
  /* @__PURE__ */ jsx("span", { className: "mr-0.5 mt-0.5 text-[15px]", children: currency }),
@@ -178,7 +178,7 @@ function PricingTable({ plans = PLANS, groups = GROUPS, currency = "$", maxHeigh
178
178
  className: cx(
179
179
  "group mt-4 inline-flex h-9 items-center whitespace-nowrap justify-center gap-1.5 rounded-[8px] px-3 text-[13px] font-medium outline-none transition-[background-color,color,box-shadow,transform] duration-500 hover:-translate-y-px active:translate-y-0 active:scale-[.98] focus-visible:ring-2 focus-visible:ring-brand/50 focus-visible:ring-offset-2 focus-visible:ring-offset-paper",
180
180
  EASE,
181
- on ? "bg-brand text-white shadow-[0_8px_20px_-10px_var(--brand)]" : "bg-paper text-ink shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_14%,transparent)]"
181
+ on ? "bg-brand text-on-brand shadow-[0_8px_20px_-10px_var(--brand)]" : "bg-paper text-ink shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_14%,transparent)]"
182
182
  ),
183
183
  children: [
184
184
  p.cta.label,
@@ -283,7 +283,7 @@ function DatePicker(props) {
283
283
  className: cx(
284
284
  "relative mx-auto flex h-9 w-9 items-center justify-center rounded-lg text-[13px] tabular-nums outline-none transition-colors duration-150",
285
285
  "focus-visible:ring-2 focus-visible:ring-brand/50 disabled:cursor-not-allowed disabled:opacity-30",
286
- picked ? "font-medium text-white" : inMonth ? "text-ink hover:bg-paper-2" : "text-mute hover:bg-paper-2"
286
+ picked ? "font-medium text-on-brand" : inMonth ? "text-ink hover:bg-paper-2" : "text-mute hover:bg-paper-2"
287
287
  ),
288
288
  children: [
289
289
  picked && /* @__PURE__ */ jsx(
@@ -295,7 +295,7 @@ function DatePicker(props) {
295
295
  key(d)
296
296
  ),
297
297
  /* @__PURE__ */ jsx("span", { className: "relative", children: d.getDate() }),
298
- 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", picked ? "bg-white" : "bg-brand") })
298
+ 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", picked ? "bg-on-brand" : "bg-brand") })
299
299
  ]
300
300
  }
301
301
  )
@@ -13,7 +13,7 @@ function Mark({ index, state }) {
13
13
  {
14
14
  className: cx(
15
15
  "relative flex h-8 w-8 shrink-0 items-center justify-center rounded-full text-[13px] font-medium tabular-nums transition-[background-color,box-shadow,color] duration-300",
16
- done && "bg-brand text-white",
16
+ done && "bg-brand text-on-brand",
17
17
  state === "current" && "bg-paper text-brand shadow-[inset_0_0_0_1.5px_var(--brand),0_0_0_4px_color-mix(in_srgb,var(--brand)_14%,transparent)]",
18
18
  state === "todo" && "bg-paper text-mute shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_16%,transparent)]"
19
19
  ),
@@ -42,7 +42,7 @@ function Tile({ o, on, big }) {
42
42
  className: cx(
43
43
  "flex shrink-0 items-center justify-center rounded-[9px] text-[12px] font-semibold tracking-[-0.01em] transition-colors duration-300 [&_svg]:h-[17px] [&_svg]:w-[17px]",
44
44
  big ? "h-9 w-9" : "h-8 w-8",
45
- on ? "bg-brand text-white shadow-[0_6px_14px_-6px_color-mix(in_srgb,var(--brand)_80%,transparent)]" : "bg-paper-2 text-ink shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_7%,transparent)]"
45
+ on ? "bg-brand text-on-brand shadow-[0_6px_14px_-6px_color-mix(in_srgb,var(--brand)_80%,transparent)]" : "bg-paper-2 text-ink shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_7%,transparent)]"
46
46
  ),
47
47
  children: o?.icon ?? o?.initials ?? o?.label.slice(0, 1)
48
48
  }
@@ -181,7 +181,7 @@ function RichSelect({ options = ROLES, value, defaultValue, onChange, label = "R
181
181
  style: { animation: `aui043-pop .32s ${EASE} both` },
182
182
  children: [
183
183
  /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "pointer-events-none absolute inset-x-1.5 top-1.5 rounded-[9px] bg-paper-2", style: glide(active) }),
184
- /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "pointer-events-none absolute right-4 top-1.5 z-10 flex items-center", style: glide(picked), children: /* @__PURE__ */ jsx("span", { className: "flex h-5 w-5 items-center justify-center rounded-full bg-brand text-white shadow-[0_4px_10px_-4px_color-mix(in_srgb,var(--brand)_80%,transparent)]", children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "h-3 w-3", fill: "none", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round", strokeLinejoin: "round", strokeDasharray: "16", style: { animation: `aui043-draw .5s ${EASE} .15s both` }, children: /* @__PURE__ */ jsx("path", { d: "m4 8.5 2.6 2.5L12 5.5" }) }, current) }) }),
184
+ /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "pointer-events-none absolute right-4 top-1.5 z-10 flex items-center", style: glide(picked), children: /* @__PURE__ */ jsx("span", { className: "flex h-5 w-5 items-center justify-center rounded-full bg-brand text-on-brand shadow-[0_4px_10px_-4px_color-mix(in_srgb,var(--brand)_80%,transparent)]", children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "h-3 w-3", fill: "none", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round", strokeLinejoin: "round", strokeDasharray: "16", style: { animation: `aui043-draw .5s ${EASE} .15s both` }, children: /* @__PURE__ */ jsx("path", { d: "m4 8.5 2.6 2.5L12 5.5" }) }, current) }) }),
185
185
  options.map((o, i) => /* @__PURE__ */ jsxs(
186
186
  "li",
187
187
  {
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  Avatar
4
- } from "./chunk-IVCHYE55.js";
4
+ } from "./chunk-7IOMROVG.js";
5
5
  import {
6
6
  Button
7
- } from "./chunk-WSL4JGEA.js";
7
+ } from "./chunk-HSDMCZMX.js";
8
8
 
9
9
  // components/kit/base/inbox.tsx
10
10
  import { useEffect, useLayoutEffect, useRef, useState } from "react";
@@ -99,7 +99,7 @@ function PlanRadio({ plans = PLANS, value, defaultValue = "team", onChange, seat
99
99
  /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "pointer-events-none absolute inset-0 rounded-[12px] bg-paper-2 opacity-0 transition-opacity duration-300 group-hover/plan:opacity-60" }),
100
100
  /* @__PURE__ */ jsxs("span", { "aria-hidden": true, className: "relative grid h-[18px] w-[18px] shrink-0 place-items-center rounded-full shadow-[inset_0_0_0_1.5px_color-mix(in_srgb,var(--ink)_24%,transparent)]", children: [
101
101
  /* @__PURE__ */ jsx("span", { className: "absolute inset-0 rounded-full bg-brand transition-[transform,opacity] duration-300", style: { opacity: on ? 1 : 0, transform: on ? "scale(1)" : "scale(0.5)", transitionTimingFunction: SPRING } }),
102
- /* @__PURE__ */ jsx("span", { className: "relative h-1.5 w-1.5 rounded-full bg-white transition-transform duration-300", style: { transform: on ? "scale(1)" : "scale(0)", transitionTimingFunction: SPRING, transitionDelay: on ? "80ms" : "0ms" } })
102
+ /* @__PURE__ */ jsx("span", { className: "relative h-1.5 w-1.5 rounded-full bg-on-brand transition-transform duration-300", style: { transform: on ? "scale(1)" : "scale(0)", transitionTimingFunction: SPRING, transitionDelay: on ? "80ms" : "0ms" } })
103
103
  ] }),
104
104
  /* @__PURE__ */ jsxs("span", { className: "relative min-w-0 flex-1", children: [
105
105
  /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-2", children: [
@@ -134,7 +134,7 @@ function PlanRadio({ plans = PLANS, value, defaultValue = "team", onChange, seat
134
134
  {
135
135
  type: "button",
136
136
  onClick: () => onContinue?.(plan.value),
137
- className: "group/cta relative inline-flex h-10 items-center gap-1.5 rounded-[8px] bg-brand pl-4 pr-3.5 text-[13.5px] font-medium text-white shadow-[inset_0_1px_0_rgb(255_255_255/0.2),0_6px_16px_-8px_var(--brand)] outline-none transition-transform duration-200 active:scale-[0.97] focus-visible:ring-2 focus-visible:ring-brand/50 focus-visible:ring-offset-2 focus-visible:ring-offset-paper",
137
+ className: "group/cta relative inline-flex h-10 items-center gap-1.5 rounded-[8px] bg-brand pl-4 pr-3.5 text-[13.5px] font-medium text-on-brand shadow-[inset_0_1px_0_rgb(255_255_255/0.2),0_6px_16px_-8px_var(--brand)] outline-none transition-transform duration-200 active:scale-[0.97] focus-visible:ring-2 focus-visible:ring-brand/50 focus-visible:ring-offset-2 focus-visible:ring-offset-paper",
138
138
  children: [
139
139
  /* @__PURE__ */ jsx("span", { children: "Continue with" }),
140
140
  /* @__PURE__ */ jsxs("span", { className: "relative block h-5 overflow-hidden", "aria-live": "polite", children: [
@@ -22,14 +22,14 @@ function Textarea({ limit, maxRows = 10, rows = 3, className, ...rest }) {
22
22
  }, [value, maxRows, rows]);
23
23
  const left = limit ? limit - value.length : 0;
24
24
  const k = limit ? Math.min(1, value.length / limit) : 0;
25
- const tone = !limit ? "" : left < 0 ? "#e5484d" : left <= Math.max(10, limit * 0.1) ? "#f5a524" : "var(--brand)";
25
+ const tone = !limit ? "" : left < 0 ? "var(--ink)" : left <= Math.max(10, limit * 0.1) ? "var(--ink-2)" : "var(--brand)";
26
26
  const C = 2 * Math.PI * 7;
27
27
  return /* @__PURE__ */ jsxs(
28
28
  "div",
29
29
  {
30
30
  className: cx(
31
31
  "relative w-full rounded-xl bg-paper text-ink transition-shadow duration-200",
32
- left < 0 ? "shadow-[inset_0_0_0_1px_#e5484d]" : "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)]",
32
+ left < 0 ? "shadow-[inset_0_0_0_1.5px_var(--ink)]" : "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)]",
33
33
  rest.disabled && "opacity-50",
34
34
  className
35
35
  ),
@@ -46,6 +46,7 @@ function Textarea({ limit, maxRows = 10, rows = 3, className, ...rest }) {
46
46
  rest.onChange?.(e);
47
47
  },
48
48
  className: cx(
49
+ // perf-ok: auto-grow follows the text one line at a time, a short height change on a small field.
49
50
  "block w-full resize-none bg-transparent px-3.5 pt-3 text-[16px] sm:text-[14px] leading-[1.55] outline-none placeholder:text-mute transition-[height] duration-150",
50
51
  limit ? "pb-10" : "pb-3"
51
52
  )
@@ -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/CartDrawer.tsx
4
8
  import { useEffect, useRef, useState } from "react";
@@ -57,37 +61,42 @@ var Check = () => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className:
57
61
  function CartDrawer() {
58
62
  const [n, setN] = useState(0);
59
63
  const [leaving, setLeaving] = useState(false);
60
- const [paused, setPaused] = useState(false);
61
- const idle = useRef(null);
64
+ const [held, takeOverDemo] = useTakeOver(8e3);
65
+ const root = useRef(null);
66
+ const visible = useInView(root);
67
+ const paused = held || !visible;
62
68
  const total = leaving ? 0 : CATALOG.slice(0, n).reduce((s, it) => s + it.price, 0);
63
69
  const free = total >= FREE_AT;
64
70
  const pct = Math.min(1, total / FREE_AT);
65
71
  const away = Math.max(0, FREE_AT - total);
66
72
  const shownTotal = useTween(total, 650);
67
73
  const takeOver = () => {
68
- setPaused(true);
74
+ takeOverDemo();
69
75
  setLeaving(false);
70
- if (idle.current) clearTimeout(idle.current);
71
- idle.current = setTimeout(() => setPaused(false), 8e3);
72
76
  };
73
- useEffect(() => () => void (idle.current && clearTimeout(idle.current)), []);
74
77
  useEffect(() => {
75
78
  if (paused) return;
76
- const t = [];
79
+ const t = /* @__PURE__ */ new Set();
77
80
  let alive = true;
81
+ const later = (ms, f) => {
82
+ const id = setTimeout(() => {
83
+ t.delete(id);
84
+ if (alive) f();
85
+ }, ms);
86
+ t.add(id);
87
+ };
78
88
  const reset = () => {
79
- if (!alive) return;
80
89
  setN(0);
81
90
  setLeaving(false);
82
91
  };
83
92
  const run = () => {
84
- CATALOG.forEach((_, i) => t.push(setTimeout(() => alive && setN(i + 1), 900 + i * 1500)));
93
+ CATALOG.forEach((_, i) => later(900 + i * 1500, () => setN(i + 1)));
85
94
  const end = 900 + CATALOG.length * 1500 + 1800;
86
- t.push(setTimeout(() => alive && setLeaving(true), end));
87
- t.push(setTimeout(reset, end + 1e3));
88
- t.push(setTimeout(() => alive && run(), end + 1300));
95
+ later(end, () => setLeaving(true));
96
+ later(end + 1e3, reset);
97
+ later(end + 1300, run);
89
98
  };
90
- t.push(setTimeout(reset, 0));
99
+ later(0, reset);
91
100
  run();
92
101
  return () => {
93
102
  alive = false;
@@ -95,7 +104,7 @@ function CartDrawer() {
95
104
  };
96
105
  }, [paused]);
97
106
  const shown = Math.min(n, CATALOG.length);
98
- return /* @__PURE__ */ jsxs("div", { className: "flex h-full w-full items-center justify-center px-5 pt-8", style: { containerType: "size" }, children: [
107
+ return /* @__PURE__ */ jsxs("div", { ref: root, className: "flex h-full w-full items-center justify-center px-5 pt-8", style: { containerType: "size" }, children: [
99
108
  /* @__PURE__ */ jsx("style", { href: "asta-cartdrawer", precedence: "asta", children: `
100
109
  @keyframes lab-cd-pop { 0% { transform: translateY(-14px) scale(.6); opacity: 0 } 55% { opacity: 1 } 70% { transform: translateY(1px) scale(1.04) } 100% { transform: none; opacity: 1 } }
101
110
  @keyframes lab-cd-swap { from { opacity: 0; transform: translateY(30%); filter: blur(2px) } to { opacity: 1; transform: none; filter: none } }
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  Avatar
4
- } from "./chunk-IVCHYE55.js";
4
+ } from "./chunk-7IOMROVG.js";
5
5
  import {
6
6
  Popover
7
- } from "./chunk-IATF2OTU.js";
7
+ } from "./chunk-MYPRORYG.js";
8
8
 
9
9
  // components/kit/base/notification-center.tsx
10
10
  import { useId, useMemo, useRef, useState } from "react";
@@ -250,7 +250,7 @@ function NotificationCenter({
250
250
  "span",
251
251
  {
252
252
  "aria-hidden": true,
253
- className: "absolute -right-0.5 -top-0.5 flex h-[18px] min-w-[18px] items-center justify-center overflow-hidden rounded-full bg-brand px-1 text-[10.5px] font-medium tabular-nums text-white shadow-[0_0_0_2px_var(--paper)]",
253
+ className: "absolute -right-0.5 -top-0.5 flex h-[18px] min-w-[18px] items-center justify-center overflow-hidden rounded-full bg-brand px-1 text-[10.5px] font-medium tabular-nums text-on-brand shadow-[0_0_0_2px_var(--paper)]",
254
254
  style: { animation: `kit-nc-badge .35s ${CURVE}` },
255
255
  children: /* @__PURE__ */ jsx("span", { className: "block", style: { animation: `kit-nc-count .35s ${CURVE}` }, children: unread > 99 ? "99+" : unread }, unread)
256
256
  }
@@ -16,9 +16,23 @@ function PixelReveal() {
16
16
  let dpr = 1;
17
17
  let cells = new Float32Array(0);
18
18
  let idle = new Float32Array(0);
19
+ let open = [];
20
+ let isOpen = new Uint8Array(0);
19
21
  let raf = 0;
20
- let last = performance.now();
21
- let visible = true;
22
+ let last = 0;
23
+ let seen = true;
24
+ let cover = "";
25
+ const paint = (i) => {
26
+ const x = i % cols * PX;
27
+ const y = Math.floor(i / cols) * PX;
28
+ ctx.clearRect(x, y, PX, PX);
29
+ const v = cells[i];
30
+ if (v <= 0.02) return;
31
+ const s = PX * v;
32
+ ctx.globalAlpha = 0.82 + i * 7919 % 9 / 50;
33
+ ctx.fillStyle = cover;
34
+ ctx.fillRect(x + (PX - s) / 2, y + (PX - s) / 2, s, s);
35
+ };
22
36
  const size = () => {
23
37
  const r = cv.getBoundingClientRect();
24
38
  w = r.width;
@@ -30,59 +44,81 @@ function PixelReveal() {
30
44
  rows = Math.ceil(h / PX);
31
45
  cells = new Float32Array(cols * rows).fill(1);
32
46
  idle = new Float32Array(cols * rows);
47
+ const cs = getComputedStyle(cv);
48
+ cover = cs.getPropertyValue("--color-paper-2").trim() || cs.color;
49
+ isOpen = new Uint8Array(cols * rows);
50
+ open = [];
51
+ ctx.setTransform(dpr, 0, 0, dpr, 0, 0);
52
+ ctx.clearRect(0, 0, w, h);
53
+ for (let i = 0; i < cells.length; i++) paint(i);
33
54
  };
34
- const draw = (t) => {
35
- const dt = t - last;
55
+ const tick = (t) => {
56
+ const dt = Math.min(100, t - last);
36
57
  last = t;
37
58
  ctx.setTransform(dpr, 0, 0, dpr, 0, 0);
38
- ctx.clearRect(0, 0, w, h);
39
- for (let i = 0; i < cells.length; i++) {
40
- if (cells[i] < 1) {
41
- idle[i] += dt;
42
- if (idle[i] > 1800) cells[i] = Math.min(1, cells[i] + dt / 900);
59
+ for (let k = open.length - 1; k >= 0; k--) {
60
+ const i = open[k];
61
+ idle[i] += dt;
62
+ if (idle[i] <= 1800) continue;
63
+ cells[i] = Math.min(1, cells[i] + dt / 900);
64
+ paint(i);
65
+ if (cells[i] >= 1) {
66
+ isOpen[i] = 0;
67
+ open[k] = open[open.length - 1];
68
+ open.pop();
43
69
  }
44
- const v = cells[i];
45
- if (v <= 0.02) continue;
46
- const x = i % cols * PX;
47
- const y = Math.floor(i / cols) * PX;
48
- const s = PX * v;
49
- const shade = 20 + i * 7919 % 9;
50
- ctx.fillStyle = `rgb(${shade} ${shade + 1} ${shade - 1})`;
51
- ctx.fillRect(x + (PX - s) / 2, y + (PX - s) / 2, s, s);
52
70
  }
53
- if (visible) raf = requestAnimationFrame(draw);
71
+ raf = open.length && seen && !document.hidden ? requestAnimationFrame(tick) : 0;
72
+ };
73
+ const wake = () => {
74
+ if (raf || !open.length || !seen || document.hidden) return;
75
+ last = performance.now();
76
+ raf = requestAnimationFrame(tick);
54
77
  };
55
78
  const move = (e) => {
56
- const r = cv.getBoundingClientRect();
57
- const px = e.clientX - r.left;
58
- const py = e.clientY - r.top;
79
+ const px = e.offsetX;
80
+ const py = e.offsetY;
59
81
  const R = 34;
82
+ ctx.setTransform(dpr, 0, 0, dpr, 0, 0);
60
83
  for (let y = Math.max(0, Math.floor((py - R) / PX)); y <= Math.min(rows - 1, Math.floor((py + R) / PX)); y++) {
61
84
  for (let x = Math.max(0, Math.floor((px - R) / PX)); x <= Math.min(cols - 1, Math.floor((px + R) / PX)); x++) {
62
85
  const d = Math.hypot(x * PX + PX / 2 - px, y * PX + PX / 2 - py);
63
86
  if (d < R) {
64
87
  const i = y * cols + x;
65
- cells[i] = Math.min(cells[i], d / R - 0.3 < 0 ? 0 : d / R * 0.6);
88
+ const v = Math.min(cells[i], d / R - 0.3 < 0 ? 0 : d / R * 0.6);
66
89
  idle[i] = 0;
90
+ if (v === cells[i]) continue;
91
+ cells[i] = v;
92
+ paint(i);
93
+ if (!isOpen[i]) {
94
+ isOpen[i] = 1;
95
+ open.push(i);
96
+ }
67
97
  }
68
98
  }
69
99
  }
100
+ wake();
101
+ };
102
+ const sync = () => {
103
+ cancelAnimationFrame(raf);
104
+ raf = 0;
105
+ wake();
70
106
  };
71
107
  size();
72
108
  const ro = new ResizeObserver(size);
73
109
  ro.observe(cv);
74
110
  const io = new IntersectionObserver(([e]) => {
75
- visible = e.isIntersecting;
76
- cancelAnimationFrame(raf);
77
- last = performance.now();
78
- if (visible) raf = requestAnimationFrame(draw);
111
+ seen = e.isIntersecting;
112
+ sync();
79
113
  });
80
114
  io.observe(cv);
115
+ document.addEventListener("visibilitychange", sync);
81
116
  cv.addEventListener("pointermove", move);
82
117
  return () => {
83
118
  cancelAnimationFrame(raf);
84
119
  ro.disconnect();
85
120
  io.disconnect();
121
+ document.removeEventListener("visibilitychange", sync);
86
122
  cv.removeEventListener("pointermove", move);
87
123
  };
88
124
  }, []);
@@ -13,14 +13,14 @@ var SIZE = {
13
13
  };
14
14
  var PAPER = "var(--paper)";
15
15
  var STATUS = {
16
- online: "#30a46c",
17
- away: `radial-gradient(closest-side at 30% 30%, ${PAPER} 92%, #f5a524 100%)`,
18
- busy: `linear-gradient(${PAPER}, ${PAPER}) center / 60% 20% no-repeat, #e5484d`,
16
+ online: "var(--brand)",
17
+ away: `radial-gradient(closest-side at 30% 30%, ${PAPER} 92%, var(--ink-2) 100%)`,
18
+ busy: `linear-gradient(${PAPER}, ${PAPER}) center / 60% 20% no-repeat, var(--ink)`,
19
19
  offline: `radial-gradient(closest-side, ${PAPER} 48%, var(--mute) 56%)`
20
20
  };
21
21
  var FILLS = [
22
22
  "bg-ink text-paper",
23
- "bg-brand text-white",
23
+ "bg-brand text-on-brand",
24
24
  "bg-paper-2 text-ink shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_14%,transparent)]",
25
25
  "bg-[color-mix(in_srgb,var(--brand)_14%,var(--paper))] text-brand",
26
26
  "bg-[color-mix(in_srgb,var(--ink)_70%,var(--paper))] text-paper"
@@ -46,6 +46,8 @@ function Avatar({ name, src, size = "md", status, shape = "circle", className })
46
46
  )
47
47
  ] });
48
48
  }
49
+ var FAN_ONLY = "group-hover/av:[transform:translateX(calc(var(--av-i)*14px))]";
50
+ var FAN = `-ml-2.5 ${FAN_ONLY}`;
49
51
  function AvatarGroup({ people, max = 4, size = "md", children }) {
50
52
  const shown = people.slice(0, max);
51
53
  const rest = people.length - shown.length;
@@ -56,9 +58,10 @@ function AvatarGroup({ people, max = 4, size = "md", children }) {
56
58
  {
57
59
  title: p.name,
58
60
  className: cx(
59
- "relative rounded-full shadow-[0_0_0_2px_var(--paper)] transition-[margin,transform] duration-500 ease-[cubic-bezier(.16,1,.3,1)] hover:z-10 hover:-translate-y-1",
60
- i > 0 && "-ml-2.5 group-hover/av:ml-1"
61
+ "relative rounded-full shadow-[0_0_0_2px_var(--paper)] transition-[transform] duration-500 ease-[cubic-bezier(.16,1,.3,1)] hover:z-10 hover:-translate-y-1",
62
+ i > 0 && FAN
61
63
  ),
64
+ style: i > 0 ? { "--av-i": i } : void 0,
62
65
  children: /* @__PURE__ */ jsx(Avatar, { name: p.name, src: p.src, size })
63
66
  },
64
67
  p.name
@@ -67,17 +70,19 @@ function AvatarGroup({ people, max = 4, size = "md", children }) {
67
70
  "span",
68
71
  {
69
72
  className: cx(
70
- "relative -ml-2.5 inline-flex items-center justify-center rounded-full bg-paper-2 font-medium tabular-nums text-ink-2 shadow-[0_0_0_2px_var(--paper)] transition-[margin] duration-500 ease-[cubic-bezier(.16,1,.3,1)] group-hover/av:ml-1",
73
+ "relative inline-flex items-center justify-center rounded-full bg-paper-2 font-medium tabular-nums text-ink-2 shadow-[0_0_0_2px_var(--paper)] transition-[transform] duration-500 ease-[cubic-bezier(.16,1,.3,1)]",
74
+ FAN,
71
75
  s.box,
72
76
  s.text
73
77
  ),
78
+ style: { "--av-i": shown.length },
74
79
  children: [
75
80
  "+",
76
81
  rest
77
82
  ]
78
83
  }
79
84
  ),
80
- children
85
+ children && /* @__PURE__ */ jsx("span", { className: cx("inline-flex items-center transition-[transform] duration-500 ease-[cubic-bezier(.16,1,.3,1)]", FAN_ONLY), style: { "--av-i": shown.length - 1 + (rest > 0 ? 1 : 0) }, children })
81
86
  ] });
82
87
  }
83
88
  var avatar_default = Avatar;
@@ -93,7 +93,7 @@ function EmailTagInput({
93
93
  ),
94
94
  style: { animation: shaking ? `aui048-shake .42s ${EASE}` : ok ? `aui048-in .45s ${EASE} both` : `aui048-bad .7s ${EASE} both` },
95
95
  children: [
96
- ok ? /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: cx("flex h-6 w-6 shrink-0 items-center justify-center rounded-full text-[10.5px] font-semibold uppercase", mate ? "bg-brand text-white" : "bg-paper text-ink shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_16%,transparent)]"), children: local[0] }) : /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-ink text-[12px] font-semibold text-paper", children: "!" }),
96
+ ok ? /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: cx("flex h-6 w-6 shrink-0 items-center justify-center rounded-full text-[10.5px] font-semibold uppercase", mate ? "bg-brand text-on-brand" : "bg-paper text-ink shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_16%,transparent)]"), children: local[0] }) : /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-ink text-[12px] font-semibold text-paper", children: "!" }),
97
97
  /* @__PURE__ */ jsxs(
98
98
  "button",
99
99
  {
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  Button
4
- } from "./chunk-ZWBJUJTR.js";
4
+ } from "./chunk-5ZQ6PMJT.js";
5
5
 
6
6
  // components/kit/invoice.tsx
7
- import { useState } from "react";
7
+ import { useEffect, useRef, useState } from "react";
8
8
  import { jsx, jsxs } from "react/jsx-runtime";
9
9
  var cx = (...c) => c.filter(Boolean).join(" ");
10
10
  var KEYFRAMES = `@keyframes asta-invoice-in { from { opacity: 0; transform: translateY(4px) } }
@@ -21,6 +21,11 @@ function Invoice({ number, issued, due, from, to, items, taxRate = 0, discount =
21
21
  const [state, setState] = useState(status);
22
22
  const [paying, setPaying] = useState(false);
23
23
  const [paidOn, setPaidOn] = useState(null);
24
+ const [error, setError] = useState(null);
25
+ const errorEl = useRef(null);
26
+ useEffect(() => {
27
+ if (error) errorEl.current?.focus();
28
+ }, [error]);
24
29
  const money = (n) => new Intl.NumberFormat(locale, { style: "currency", currency }).format(n);
25
30
  const subtotal = items.reduce((a, it) => a + it.quantity * it.unitPrice, 0);
26
31
  const taxed = Math.max(0, subtotal - discount);
@@ -31,10 +36,14 @@ function Invoice({ number, issued, due, from, to, items, taxRate = 0, discount =
31
36
  const pay = async () => {
32
37
  if (!onPay || paying) return;
33
38
  setPaying(true);
39
+ setError(null);
34
40
  try {
35
41
  await onPay();
36
42
  setPaidOn((/* @__PURE__ */ new Date()).toLocaleDateString(locale, { month: "short", day: "numeric", year: "numeric" }));
37
43
  setState("paid");
44
+ } catch (e) {
45
+ const why = e instanceof Error && e.message ? ` ${e.message.replace(/\.?$/, ".")}` : "";
46
+ setError(`The payment didn't go through.${why} Check your payment details and try again.`);
38
47
  } finally {
39
48
  setPaying(false);
40
49
  }
@@ -151,6 +160,10 @@ function Invoice({ number, issued, due, from, to, items, taxRate = 0, discount =
151
160
  ] })
152
161
  ] })
153
162
  ] }),
163
+ error && !paid && /* @__PURE__ */ jsxs("p", { ref: errorEl, role: "alert", tabIndex: -1, className: "-mt-3 flex items-start gap-1.5 text-[12.5px] font-medium text-ink outline-none @min-[560px]:justify-end", children: [
164
+ /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "mt-px h-3.5 w-3.5 shrink-0", fill: "none", stroke: "currentColor", strokeWidth: "1.6", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "M8 2.5 14 13H2zM8 6.5v3M8 11.2h.01" }) }),
165
+ error
166
+ ] }),
154
167
  /* @__PURE__ */ jsx("p", { className: "sr-only", "aria-live": "polite", children: paid && paidOn ? `Invoice ${number} paid on ${paidOn}.` : "" })
155
168
  ] })
156
169
  ]