asta-ui 0.2.0 → 0.3.0

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 (413) hide show
  1. package/dist/ai-chat.d.ts +2 -0
  2. package/dist/ai-chat.js +9 -0
  3. package/dist/alert.d.ts +2 -0
  4. package/dist/alert.js +9 -0
  5. package/dist/announcement-bar.d.ts +2 -0
  6. package/dist/announcement-bar.js +9 -0
  7. package/dist/avatar-group.d.ts +2 -0
  8. package/dist/avatar-group.js +10 -0
  9. package/dist/avatar.js +3 -1
  10. package/dist/base/ai-chat.d.ts +2 -0
  11. package/dist/base/ai-chat.js +9 -0
  12. package/dist/base/alert.d.ts +2 -0
  13. package/dist/base/alert.js +9 -0
  14. package/dist/base/announcement-bar.d.ts +2 -0
  15. package/dist/base/announcement-bar.js +9 -0
  16. package/dist/base/avatar-group.d.ts +2 -0
  17. package/dist/base/avatar-group.js +10 -0
  18. package/dist/base/avatar.js +3 -1
  19. package/dist/base/booking-slots.d.ts +2 -0
  20. package/dist/base/booking-slots.js +7 -0
  21. package/dist/base/breadcrumb.d.ts +2 -0
  22. package/dist/base/breadcrumb.js +9 -0
  23. package/dist/base/carousel.d.ts +2 -0
  24. package/dist/base/carousel.js +9 -0
  25. package/dist/base/chat-thread.d.ts +2 -0
  26. package/dist/base/chat-thread.js +7 -0
  27. package/dist/base/checkout.d.ts +2 -0
  28. package/dist/base/checkout.js +12 -0
  29. package/dist/base/color-picker.d.ts +2 -0
  30. package/dist/base/color-picker.js +9 -0
  31. package/dist/base/combobox.d.ts +2 -0
  32. package/dist/base/combobox.js +9 -0
  33. package/dist/base/comments.d.ts +2 -0
  34. package/dist/base/comments.js +11 -0
  35. package/dist/base/context-menu.d.ts +2 -0
  36. package/dist/base/context-menu.js +9 -0
  37. package/dist/base/copy-button.d.ts +2 -0
  38. package/dist/base/copy-button.js +9 -0
  39. package/dist/base/data-table.d.ts +2 -0
  40. package/dist/base/data-table.js +9 -0
  41. package/dist/base/date-picker.d.ts +2 -0
  42. package/dist/base/date-picker.js +9 -0
  43. package/dist/base/drawer.d.ts +2 -0
  44. package/dist/base/drawer.js +9 -0
  45. package/dist/base/empty-state.d.ts +2 -0
  46. package/dist/base/empty-state.js +10 -0
  47. package/dist/base/event-calendar.d.ts +2 -0
  48. package/dist/base/event-calendar.js +9 -0
  49. package/dist/base/file-upload.d.ts +2 -0
  50. package/dist/base/file-upload.js +11 -0
  51. package/dist/base/hover-card.d.ts +2 -0
  52. package/dist/base/hover-card.js +9 -0
  53. package/dist/base/image-compare.d.ts +2 -0
  54. package/dist/base/image-compare.js +9 -0
  55. package/dist/base/inline-edit.d.ts +2 -0
  56. package/dist/base/inline-edit.js +9 -0
  57. package/dist/base/kanban.d.ts +2 -0
  58. package/dist/base/kanban.js +10 -0
  59. package/dist/base/notification-center.d.ts +2 -0
  60. package/dist/base/notification-center.js +11 -0
  61. package/dist/base/notification-stack.d.ts +2 -0
  62. package/dist/base/notification-stack.js +7 -0
  63. package/dist/base/now-playing.d.ts +2 -0
  64. package/dist/base/now-playing.js +7 -0
  65. package/dist/base/onboarding.d.ts +2 -0
  66. package/dist/base/onboarding.js +10 -0
  67. package/dist/base/otp-input.d.ts +2 -0
  68. package/dist/base/otp-input.js +9 -0
  69. package/dist/base/pagination.d.ts +2 -0
  70. package/dist/base/pagination.js +11 -0
  71. package/dist/base/password-input.d.ts +2 -0
  72. package/dist/base/password-input.js +13 -0
  73. package/dist/base/payment-received.d.ts +2 -0
  74. package/dist/base/payment-received.js +7 -0
  75. package/dist/base/plan-switcher.d.ts +2 -0
  76. package/dist/base/plan-switcher.js +7 -0
  77. package/dist/base/popover.d.ts +2 -0
  78. package/dist/base/popover.js +9 -0
  79. package/dist/base/progress.d.ts +2 -0
  80. package/dist/base/progress.js +11 -0
  81. package/dist/base/range-slider.d.ts +2 -0
  82. package/dist/base/range-slider.js +9 -0
  83. package/dist/base/rating.d.ts +2 -0
  84. package/dist/base/rating.js +9 -0
  85. package/dist/base/seat-picker.d.ts +2 -0
  86. package/dist/base/seat-picker.js +7 -0
  87. package/dist/base/shipment-tracker.d.ts +2 -0
  88. package/dist/base/shipment-tracker.js +7 -0
  89. package/dist/base/sidebar.d.ts +2 -0
  90. package/dist/base/sidebar.js +10 -0
  91. package/dist/base/stat-card.d.ts +2 -0
  92. package/dist/base/stat-card.js +9 -0
  93. package/dist/base/stepper.d.ts +2 -0
  94. package/dist/base/stepper.js +9 -0
  95. package/dist/base/team-members.d.ts +2 -0
  96. package/dist/base/team-members.js +12 -0
  97. package/dist/base/timeline.d.ts +2 -0
  98. package/dist/base/timeline.js +9 -0
  99. package/dist/base/toggle-group.d.ts +2 -0
  100. package/dist/base/toggle-group.js +9 -0
  101. package/dist/base/token-swap.d.ts +2 -0
  102. package/dist/base/token-swap.js +7 -0
  103. package/dist/base/tree-view.d.ts +2 -0
  104. package/dist/base/tree-view.js +9 -0
  105. package/dist/base/wishlist.d.ts +2 -0
  106. package/dist/base/wishlist.js +7 -0
  107. package/dist/base.js +250 -46
  108. package/dist/booking-slots.d.ts +2 -0
  109. package/dist/booking-slots.js +7 -0
  110. package/dist/breadcrumb.d.ts +2 -0
  111. package/dist/breadcrumb.js +9 -0
  112. package/dist/carousel.d.ts +2 -0
  113. package/dist/carousel.js +9 -0
  114. package/dist/chat-thread.d.ts +2 -0
  115. package/dist/chat-thread.js +7 -0
  116. package/dist/checkout.d.ts +2 -0
  117. package/dist/checkout.js +12 -0
  118. package/dist/{chunk-VGBP42IZ.js → chunk-2LZM435Z.js} +3 -2
  119. package/dist/chunk-33N6SZB5.js +186 -0
  120. package/dist/chunk-3KS5EN3Q.js +134 -0
  121. package/dist/chunk-3RMCFFW2.js +228 -0
  122. package/dist/chunk-45VUWOHQ.js +299 -0
  123. package/dist/chunk-4FR6KJOJ.js +91 -0
  124. package/dist/chunk-4GF7WTR3.js +230 -0
  125. package/dist/chunk-4XM6DKEO.js +164 -0
  126. package/dist/chunk-57PESBSZ.js +97 -0
  127. package/dist/chunk-6HPSPZTF.js +232 -0
  128. package/dist/chunk-6VQTFRSP.js +435 -0
  129. package/dist/chunk-72UKXOMW.js +150 -0
  130. package/dist/chunk-7JNO265Q.js +431 -0
  131. package/dist/chunk-AYSC7AIC.js +322 -0
  132. package/dist/chunk-B5F775GP.js +339 -0
  133. package/dist/chunk-B5OESWCR.js +339 -0
  134. package/dist/chunk-BP3LXM3X.js +309 -0
  135. package/dist/chunk-CA7YQ5BJ.js +271 -0
  136. package/dist/chunk-DRX3KRNL.js +191 -0
  137. package/dist/chunk-EAUUUVUR.js +123 -0
  138. package/dist/chunk-EXX6YSUX.js +340 -0
  139. package/dist/chunk-F7LAUVDJ.js +97 -0
  140. package/dist/chunk-FDHU3RWR.js +213 -0
  141. package/dist/chunk-FJGGXXTT.js +109 -0
  142. package/dist/chunk-FKHNK5VC.js +172 -0
  143. package/dist/chunk-FY6BRODJ.js +230 -0
  144. package/dist/chunk-GDTSCUHY.js +234 -0
  145. package/dist/chunk-H7D6G3GQ.js +290 -0
  146. package/dist/chunk-HB7DFNZP.js +109 -0
  147. package/dist/{chunk-H5C7HOQJ.js → chunk-HNO6EUGJ.js} +3 -2
  148. package/dist/chunk-HPVPHWDM.js +197 -0
  149. package/dist/chunk-I5NZSWDW.js +431 -0
  150. package/dist/chunk-IMBCYI3F.js +114 -0
  151. package/dist/chunk-IS2VTYDA.js +235 -0
  152. package/dist/chunk-ISZ7O2Q6.js +245 -0
  153. package/dist/chunk-JAQKJBVJ.js +170 -0
  154. package/dist/chunk-KYFZ5TTK.js +271 -0
  155. package/dist/chunk-LBXIMJFU.js +170 -0
  156. package/dist/chunk-MSBN2O66.js +110 -0
  157. package/dist/chunk-NB7X26PY.js +388 -0
  158. package/dist/chunk-NIYIT2QU.js +118 -0
  159. package/dist/chunk-QJXPS55V.js +246 -0
  160. package/dist/chunk-RBTX7TVA.js +170 -0
  161. package/dist/chunk-RFVKRVTD.js +172 -0
  162. package/dist/chunk-RIWKIBEP.js +271 -0
  163. package/dist/chunk-RSUZHZCG.js +230 -0
  164. package/dist/chunk-S2DJLW6B.js +322 -0
  165. package/dist/chunk-SDL3JXFN.js +97 -0
  166. package/dist/chunk-SDOWCCM2.js +271 -0
  167. package/dist/chunk-SPKSRH6G.js +283 -0
  168. package/dist/chunk-TLODJONC.js +120 -0
  169. package/dist/chunk-TXRLBMFL.js +191 -0
  170. package/dist/chunk-UWQ26LYZ.js +133 -0
  171. package/dist/chunk-V3SPSN3A.js +308 -0
  172. package/dist/chunk-W57O4RLL.js +435 -0
  173. package/dist/chunk-WO36QUH3.js +188 -0
  174. package/dist/chunk-YLAL6ICI.js +142 -0
  175. package/dist/chunk-ZGMBQZDV.js +250 -0
  176. package/dist/chunk-ZKMEKSJZ.js +133 -0
  177. package/dist/color-picker.d.ts +2 -0
  178. package/dist/color-picker.js +9 -0
  179. package/dist/combobox.d.ts +2 -0
  180. package/dist/combobox.js +9 -0
  181. package/dist/comments.d.ts +2 -0
  182. package/dist/comments.js +11 -0
  183. package/dist/context-menu.d.ts +2 -0
  184. package/dist/context-menu.js +9 -0
  185. package/dist/copy-button.d.ts +2 -0
  186. package/dist/copy-button.js +9 -0
  187. package/dist/data-table.d.ts +2 -0
  188. package/dist/data-table.js +9 -0
  189. package/dist/date-picker.d.ts +2 -0
  190. package/dist/date-picker.js +9 -0
  191. package/dist/drawer.d.ts +2 -0
  192. package/dist/drawer.js +9 -0
  193. package/dist/empty-state.d.ts +2 -0
  194. package/dist/empty-state.js +10 -0
  195. package/dist/event-calendar.d.ts +2 -0
  196. package/dist/event-calendar.js +9 -0
  197. package/dist/file-upload.d.ts +2 -0
  198. package/dist/file-upload.js +11 -0
  199. package/dist/hover-card.d.ts +2 -0
  200. package/dist/hover-card.js +9 -0
  201. package/dist/image-compare.d.ts +2 -0
  202. package/dist/image-compare.js +9 -0
  203. package/dist/index.js +250 -46
  204. package/dist/inline-edit.d.ts +2 -0
  205. package/dist/inline-edit.js +9 -0
  206. package/dist/kanban.d.ts +2 -0
  207. package/dist/kanban.js +10 -0
  208. package/dist/notification-center.d.ts +2 -0
  209. package/dist/notification-center.js +11 -0
  210. package/dist/notification-stack.d.ts +2 -0
  211. package/dist/notification-stack.js +7 -0
  212. package/dist/now-playing.d.ts +2 -0
  213. package/dist/now-playing.js +7 -0
  214. package/dist/onboarding.d.ts +2 -0
  215. package/dist/onboarding.js +10 -0
  216. package/dist/otp-input.d.ts +2 -0
  217. package/dist/otp-input.js +9 -0
  218. package/dist/pagination.d.ts +2 -0
  219. package/dist/pagination.js +11 -0
  220. package/dist/password-input.d.ts +2 -0
  221. package/dist/password-input.js +13 -0
  222. package/dist/payment-received.d.ts +2 -0
  223. package/dist/payment-received.js +7 -0
  224. package/dist/plan-switcher.d.ts +2 -0
  225. package/dist/plan-switcher.js +7 -0
  226. package/dist/popover.d.ts +2 -0
  227. package/dist/popover.js +9 -0
  228. package/dist/progress.d.ts +2 -0
  229. package/dist/progress.js +11 -0
  230. package/dist/range-slider.d.ts +2 -0
  231. package/dist/range-slider.js +9 -0
  232. package/dist/rating.d.ts +2 -0
  233. package/dist/rating.js +9 -0
  234. package/dist/seat-picker.d.ts +2 -0
  235. package/dist/seat-picker.js +7 -0
  236. package/dist/shipment-tracker.d.ts +2 -0
  237. package/dist/shipment-tracker.js +7 -0
  238. package/dist/sidebar.d.ts +2 -0
  239. package/dist/sidebar.js +10 -0
  240. package/dist/stat-card.d.ts +2 -0
  241. package/dist/stat-card.js +9 -0
  242. package/dist/stepper.d.ts +2 -0
  243. package/dist/stepper.js +9 -0
  244. package/dist/team-members.d.ts +2 -0
  245. package/dist/team-members.js +12 -0
  246. package/dist/timeline.d.ts +2 -0
  247. package/dist/timeline.js +9 -0
  248. package/dist/toggle-group.d.ts +2 -0
  249. package/dist/toggle-group.js +9 -0
  250. package/dist/token-swap.d.ts +2 -0
  251. package/dist/token-swap.js +7 -0
  252. package/dist/tree-view.d.ts +2 -0
  253. package/dist/tree-view.js +9 -0
  254. package/dist/types/components/kit/ai-chat.d.ts +37 -0
  255. package/dist/types/components/kit/alert.d.ts +27 -0
  256. package/dist/types/components/kit/announcement-bar.d.ts +36 -0
  257. package/dist/types/components/kit/avatar-group.d.ts +22 -0
  258. package/dist/types/components/kit/avatar.d.ts +2 -0
  259. package/dist/types/components/kit/base/avatar-group.d.ts +22 -0
  260. package/dist/types/components/kit/base/avatar.d.ts +2 -0
  261. package/dist/types/components/kit/base/checkout.d.ts +68 -0
  262. package/dist/types/components/kit/base/comments.d.ts +30 -0
  263. package/dist/types/components/kit/base/empty-state.d.ts +29 -0
  264. package/dist/types/components/kit/base/kanban.d.ts +26 -0
  265. package/dist/types/components/kit/base/notification-center.d.ts +34 -0
  266. package/dist/types/components/kit/base/onboarding.d.ts +28 -0
  267. package/dist/types/components/kit/base/sidebar.d.ts +43 -0
  268. package/dist/types/components/kit/base/team-members.d.ts +46 -0
  269. package/dist/types/components/kit/breadcrumb.d.ts +29 -0
  270. package/dist/types/components/kit/carousel.d.ts +21 -0
  271. package/dist/types/components/kit/checkout.d.ts +68 -0
  272. package/dist/types/components/kit/color-picker.d.ts +28 -0
  273. package/dist/types/components/kit/combobox.d.ts +40 -0
  274. package/dist/types/components/kit/comments.d.ts +30 -0
  275. package/dist/types/components/kit/context-menu.d.ts +37 -0
  276. package/dist/types/components/kit/copy-button.d.ts +20 -0
  277. package/dist/types/components/kit/data-table.d.ts +47 -0
  278. package/dist/types/components/kit/date-picker.d.ts +40 -0
  279. package/dist/types/components/kit/drawer.d.ts +26 -0
  280. package/dist/types/components/kit/empty-state.d.ts +29 -0
  281. package/dist/types/components/kit/event-calendar.d.ts +34 -0
  282. package/dist/types/components/kit/file-upload.d.ts +37 -0
  283. package/dist/types/components/kit/hover-card.d.ts +31 -0
  284. package/dist/types/components/kit/image-compare.d.ts +29 -0
  285. package/dist/types/components/kit/inline-edit.d.ts +26 -0
  286. package/dist/types/components/kit/kanban.d.ts +26 -0
  287. package/dist/types/components/kit/notification-center.d.ts +34 -0
  288. package/dist/types/components/kit/onboarding.d.ts +28 -0
  289. package/dist/types/components/kit/otp-input.d.ts +28 -0
  290. package/dist/types/components/kit/pagination.d.ts +25 -0
  291. package/dist/types/components/kit/password-input.d.ts +32 -0
  292. package/dist/types/components/kit/popover.d.ts +40 -0
  293. package/dist/types/components/kit/progress.d.ts +37 -0
  294. package/dist/types/components/kit/range-slider.d.ts +27 -0
  295. package/dist/types/components/kit/rating.d.ts +23 -0
  296. package/dist/types/components/kit/sidebar.d.ts +43 -0
  297. package/dist/types/components/kit/stat-card.d.ts +24 -0
  298. package/dist/types/components/kit/stepper.d.ts +36 -0
  299. package/dist/types/components/kit/team-members.d.ts +46 -0
  300. package/dist/types/components/kit/timeline.d.ts +24 -0
  301. package/dist/types/components/kit/toggle-group.d.ts +42 -0
  302. package/dist/types/components/kit/tree-view.d.ts +31 -0
  303. package/dist/types/components/lab/blocks/BookingSlots.d.ts +2 -0
  304. package/dist/types/components/lab/blocks/ChatThread.d.ts +2 -0
  305. package/dist/types/components/lab/blocks/NotificationStack.d.ts +2 -0
  306. package/dist/types/components/lab/blocks/NowPlaying.d.ts +2 -0
  307. package/dist/types/components/lab/blocks/PaymentReceived.d.ts +2 -0
  308. package/dist/types/components/lab/blocks/PlanSwitcher.d.ts +2 -0
  309. package/dist/types/components/lab/blocks/SeatPicker.d.ts +2 -0
  310. package/dist/types/components/lab/blocks/ShipmentTracker.d.ts +2 -0
  311. package/dist/types/components/lab/blocks/TokenSwap.d.ts +2 -0
  312. package/dist/types/components/lab/blocks/Wishlist.d.ts +2 -0
  313. package/dist/types/packages/asta-ui/src/ai-chat.d.ts +2 -0
  314. package/dist/types/packages/asta-ui/src/alert.d.ts +2 -0
  315. package/dist/types/packages/asta-ui/src/announcement-bar.d.ts +2 -0
  316. package/dist/types/packages/asta-ui/src/avatar-group.d.ts +2 -0
  317. package/dist/types/packages/asta-ui/src/base/ai-chat.d.ts +2 -0
  318. package/dist/types/packages/asta-ui/src/base/alert.d.ts +2 -0
  319. package/dist/types/packages/asta-ui/src/base/announcement-bar.d.ts +2 -0
  320. package/dist/types/packages/asta-ui/src/base/avatar-group.d.ts +2 -0
  321. package/dist/types/packages/asta-ui/src/base/booking-slots.d.ts +2 -0
  322. package/dist/types/packages/asta-ui/src/base/breadcrumb.d.ts +2 -0
  323. package/dist/types/packages/asta-ui/src/base/carousel.d.ts +2 -0
  324. package/dist/types/packages/asta-ui/src/base/chat-thread.d.ts +2 -0
  325. package/dist/types/packages/asta-ui/src/base/checkout.d.ts +2 -0
  326. package/dist/types/packages/asta-ui/src/base/color-picker.d.ts +2 -0
  327. package/dist/types/packages/asta-ui/src/base/combobox.d.ts +2 -0
  328. package/dist/types/packages/asta-ui/src/base/comments.d.ts +2 -0
  329. package/dist/types/packages/asta-ui/src/base/context-menu.d.ts +2 -0
  330. package/dist/types/packages/asta-ui/src/base/copy-button.d.ts +2 -0
  331. package/dist/types/packages/asta-ui/src/base/data-table.d.ts +2 -0
  332. package/dist/types/packages/asta-ui/src/base/date-picker.d.ts +2 -0
  333. package/dist/types/packages/asta-ui/src/base/drawer.d.ts +2 -0
  334. package/dist/types/packages/asta-ui/src/base/empty-state.d.ts +2 -0
  335. package/dist/types/packages/asta-ui/src/base/event-calendar.d.ts +2 -0
  336. package/dist/types/packages/asta-ui/src/base/file-upload.d.ts +2 -0
  337. package/dist/types/packages/asta-ui/src/base/hover-card.d.ts +2 -0
  338. package/dist/types/packages/asta-ui/src/base/image-compare.d.ts +2 -0
  339. package/dist/types/packages/asta-ui/src/base/inline-edit.d.ts +2 -0
  340. package/dist/types/packages/asta-ui/src/base/kanban.d.ts +2 -0
  341. package/dist/types/packages/asta-ui/src/base/notification-center.d.ts +2 -0
  342. package/dist/types/packages/asta-ui/src/base/notification-stack.d.ts +2 -0
  343. package/dist/types/packages/asta-ui/src/base/now-playing.d.ts +2 -0
  344. package/dist/types/packages/asta-ui/src/base/onboarding.d.ts +2 -0
  345. package/dist/types/packages/asta-ui/src/base/otp-input.d.ts +2 -0
  346. package/dist/types/packages/asta-ui/src/base/pagination.d.ts +2 -0
  347. package/dist/types/packages/asta-ui/src/base/password-input.d.ts +2 -0
  348. package/dist/types/packages/asta-ui/src/base/payment-received.d.ts +2 -0
  349. package/dist/types/packages/asta-ui/src/base/plan-switcher.d.ts +2 -0
  350. package/dist/types/packages/asta-ui/src/base/popover.d.ts +2 -0
  351. package/dist/types/packages/asta-ui/src/base/progress.d.ts +2 -0
  352. package/dist/types/packages/asta-ui/src/base/range-slider.d.ts +2 -0
  353. package/dist/types/packages/asta-ui/src/base/rating.d.ts +2 -0
  354. package/dist/types/packages/asta-ui/src/base/seat-picker.d.ts +2 -0
  355. package/dist/types/packages/asta-ui/src/base/shipment-tracker.d.ts +2 -0
  356. package/dist/types/packages/asta-ui/src/base/sidebar.d.ts +2 -0
  357. package/dist/types/packages/asta-ui/src/base/stat-card.d.ts +2 -0
  358. package/dist/types/packages/asta-ui/src/base/stepper.d.ts +2 -0
  359. package/dist/types/packages/asta-ui/src/base/team-members.d.ts +2 -0
  360. package/dist/types/packages/asta-ui/src/base/timeline.d.ts +2 -0
  361. package/dist/types/packages/asta-ui/src/base/toggle-group.d.ts +2 -0
  362. package/dist/types/packages/asta-ui/src/base/token-swap.d.ts +2 -0
  363. package/dist/types/packages/asta-ui/src/base/tree-view.d.ts +2 -0
  364. package/dist/types/packages/asta-ui/src/base/wishlist.d.ts +2 -0
  365. package/dist/types/packages/asta-ui/src/base.d.ts +87 -1
  366. package/dist/types/packages/asta-ui/src/booking-slots.d.ts +2 -0
  367. package/dist/types/packages/asta-ui/src/breadcrumb.d.ts +2 -0
  368. package/dist/types/packages/asta-ui/src/carousel.d.ts +2 -0
  369. package/dist/types/packages/asta-ui/src/chat-thread.d.ts +2 -0
  370. package/dist/types/packages/asta-ui/src/checkout.d.ts +2 -0
  371. package/dist/types/packages/asta-ui/src/color-picker.d.ts +2 -0
  372. package/dist/types/packages/asta-ui/src/combobox.d.ts +2 -0
  373. package/dist/types/packages/asta-ui/src/comments.d.ts +2 -0
  374. package/dist/types/packages/asta-ui/src/context-menu.d.ts +2 -0
  375. package/dist/types/packages/asta-ui/src/copy-button.d.ts +2 -0
  376. package/dist/types/packages/asta-ui/src/data-table.d.ts +2 -0
  377. package/dist/types/packages/asta-ui/src/date-picker.d.ts +2 -0
  378. package/dist/types/packages/asta-ui/src/drawer.d.ts +2 -0
  379. package/dist/types/packages/asta-ui/src/empty-state.d.ts +2 -0
  380. package/dist/types/packages/asta-ui/src/event-calendar.d.ts +2 -0
  381. package/dist/types/packages/asta-ui/src/file-upload.d.ts +2 -0
  382. package/dist/types/packages/asta-ui/src/hover-card.d.ts +2 -0
  383. package/dist/types/packages/asta-ui/src/image-compare.d.ts +2 -0
  384. package/dist/types/packages/asta-ui/src/index.d.ts +87 -1
  385. package/dist/types/packages/asta-ui/src/inline-edit.d.ts +2 -0
  386. package/dist/types/packages/asta-ui/src/kanban.d.ts +2 -0
  387. package/dist/types/packages/asta-ui/src/notification-center.d.ts +2 -0
  388. package/dist/types/packages/asta-ui/src/notification-stack.d.ts +2 -0
  389. package/dist/types/packages/asta-ui/src/now-playing.d.ts +2 -0
  390. package/dist/types/packages/asta-ui/src/onboarding.d.ts +2 -0
  391. package/dist/types/packages/asta-ui/src/otp-input.d.ts +2 -0
  392. package/dist/types/packages/asta-ui/src/pagination.d.ts +2 -0
  393. package/dist/types/packages/asta-ui/src/password-input.d.ts +2 -0
  394. package/dist/types/packages/asta-ui/src/payment-received.d.ts +2 -0
  395. package/dist/types/packages/asta-ui/src/plan-switcher.d.ts +2 -0
  396. package/dist/types/packages/asta-ui/src/popover.d.ts +2 -0
  397. package/dist/types/packages/asta-ui/src/progress.d.ts +2 -0
  398. package/dist/types/packages/asta-ui/src/range-slider.d.ts +2 -0
  399. package/dist/types/packages/asta-ui/src/rating.d.ts +2 -0
  400. package/dist/types/packages/asta-ui/src/seat-picker.d.ts +2 -0
  401. package/dist/types/packages/asta-ui/src/shipment-tracker.d.ts +2 -0
  402. package/dist/types/packages/asta-ui/src/sidebar.d.ts +2 -0
  403. package/dist/types/packages/asta-ui/src/stat-card.d.ts +2 -0
  404. package/dist/types/packages/asta-ui/src/stepper.d.ts +2 -0
  405. package/dist/types/packages/asta-ui/src/team-members.d.ts +2 -0
  406. package/dist/types/packages/asta-ui/src/timeline.d.ts +2 -0
  407. package/dist/types/packages/asta-ui/src/toggle-group.d.ts +2 -0
  408. package/dist/types/packages/asta-ui/src/token-swap.d.ts +2 -0
  409. package/dist/types/packages/asta-ui/src/tree-view.d.ts +2 -0
  410. package/dist/types/packages/asta-ui/src/wishlist.d.ts +2 -0
  411. package/dist/wishlist.d.ts +2 -0
  412. package/dist/wishlist.js +7 -0
  413. package/package.json +1 -1
@@ -0,0 +1,164 @@
1
+ "use client";
2
+
3
+ // components/kit/password-input.tsx
4
+ import { useId, useState } from "react";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ var cx = (...c) => c.filter(Boolean).join(" ");
7
+ var DEFAULT_PASSWORD_RULES = [
8
+ { label: "At least 8 characters", test: (v) => v.length >= 8 },
9
+ { label: "One uppercase letter", test: (v) => /[A-Z]/.test(v) },
10
+ { label: "One number", test: (v) => /\d/.test(v) },
11
+ { label: "One symbol", test: (v) => /[^A-Za-z0-9]/.test(v) }
12
+ ];
13
+ var WORDS = ["Weak", "Weak", "Fair", "Good", "Strong"];
14
+ function passwordStrength(value, rules = DEFAULT_PASSWORD_RULES) {
15
+ const passed = rules.map((r) => r.test(value));
16
+ const score = passed.filter(Boolean).length;
17
+ const ratio = rules.length ? score / rules.length : 0;
18
+ const word = !value ? "" : WORDS[Math.round(ratio * 4)];
19
+ return { score, max: rules.length, passed, word, strong: score === rules.length };
20
+ }
21
+ function Eye({ hidden }) {
22
+ return /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 20 20", className: "h-[18px] w-[18px]", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: [
23
+ /* @__PURE__ */ jsx("path", { d: "M2.5 10s2.7-5 7.5-5 7.5 5 7.5 5-2.7 5-7.5 5-7.5-5-7.5-5Z" }),
24
+ /* @__PURE__ */ jsx(
25
+ "circle",
26
+ {
27
+ cx: "10",
28
+ cy: "10",
29
+ r: "2.2",
30
+ className: "origin-center transition-transform duration-300 ease-[cubic-bezier(.16,1,.3,1)] [transform-box:fill-box] motion-reduce:transition-none",
31
+ style: { transform: hidden ? "scale(.55)" : "scale(1)" }
32
+ }
33
+ ),
34
+ /* @__PURE__ */ jsx(
35
+ "path",
36
+ {
37
+ d: "M4 3.5 16 16.5",
38
+ pathLength: 1,
39
+ strokeDasharray: 1,
40
+ strokeDashoffset: hidden ? 0 : 1,
41
+ className: "transition-[stroke-dashoffset] duration-300 ease-[cubic-bezier(.16,1,.3,1)] motion-reduce:transition-none"
42
+ }
43
+ )
44
+ ] });
45
+ }
46
+ function Tick({ on }) {
47
+ return /* @__PURE__ */ jsx(
48
+ "span",
49
+ {
50
+ className: cx(
51
+ "relative flex h-4 w-4 shrink-0 items-center justify-center rounded-full transition-[background-color,box-shadow] duration-300",
52
+ on ? "bg-brand text-white" : "shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_20%,transparent)]"
53
+ ),
54
+ children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "h-2.5 w-2.5", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx(
55
+ "path",
56
+ {
57
+ d: "m3.5 8.5 3 3 6-7",
58
+ pathLength: 1,
59
+ strokeDasharray: 1,
60
+ strokeDashoffset: on ? 0 : 1,
61
+ className: "transition-[stroke-dashoffset] delay-100 duration-[400ms] ease-[cubic-bezier(.16,1,.3,1)] motion-reduce:transition-none"
62
+ }
63
+ ) })
64
+ }
65
+ );
66
+ }
67
+ function PasswordField({
68
+ value,
69
+ defaultValue = "",
70
+ onChange,
71
+ label = "Password",
72
+ rules = DEFAULT_PASSWORD_RULES,
73
+ meter = true,
74
+ checklist = true,
75
+ className,
76
+ id,
77
+ autoComplete = "new-password",
78
+ ...rest
79
+ }) {
80
+ const uid = useId();
81
+ const inputId = id ?? `${uid}-input`;
82
+ const [inner, setInner] = useState(defaultValue);
83
+ const [shown, setShown] = useState(false);
84
+ const current = value ?? inner;
85
+ const s = passwordStrength(current, rules);
86
+ return /* @__PURE__ */ jsxs("div", { className: cx("flex w-full flex-col gap-2", className), children: [
87
+ /* @__PURE__ */ jsx("label", { htmlFor: inputId, className: "text-[13px] font-medium text-ink", children: label }),
88
+ /* @__PURE__ */ jsxs(
89
+ "div",
90
+ {
91
+ className: cx(
92
+ "flex h-10 items-center gap-2 rounded-lg bg-paper pl-3 pr-1 transition-shadow duration-200",
93
+ "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)]",
94
+ "focus-within:!shadow-[inset_0_0_0_1px_var(--brand),0_0_0_4px_color-mix(in_srgb,var(--brand)_16%,transparent)]"
95
+ ),
96
+ children: [
97
+ /* @__PURE__ */ jsx(
98
+ "input",
99
+ {
100
+ ...rest,
101
+ id: inputId,
102
+ type: shown ? "text" : "password",
103
+ value: current,
104
+ autoComplete,
105
+ spellCheck: false,
106
+ autoCapitalize: "off",
107
+ "aria-describedby": checklist || meter ? `${uid}-help` : void 0,
108
+ onChange: (e) => {
109
+ const v = e.target.value;
110
+ if (value === void 0) setInner(v);
111
+ onChange?.(v, passwordStrength(v, rules));
112
+ },
113
+ className: "h-full min-w-0 flex-1 bg-transparent text-[14px] tracking-[0.01em] text-ink outline-none placeholder:text-mute"
114
+ }
115
+ ),
116
+ /* @__PURE__ */ jsx(
117
+ "button",
118
+ {
119
+ type: "button",
120
+ "aria-label": shown ? "Hide password" : "Show password",
121
+ "aria-pressed": shown,
122
+ "aria-controls": inputId,
123
+ onPointerDown: (e) => e.preventDefault(),
124
+ onClick: () => setShown((v) => !v),
125
+ className: "flex h-8 w-8 shrink-0 items-center justify-center rounded-md text-mute outline-none transition-colors duration-200 hover:text-ink focus-visible:ring-2 focus-visible:ring-brand/50",
126
+ children: /* @__PURE__ */ jsx(Eye, { hidden: !shown })
127
+ }
128
+ )
129
+ ]
130
+ }
131
+ ),
132
+ (meter || checklist) && /* @__PURE__ */ jsxs("div", { id: `${uid}-help`, className: "flex flex-col gap-3 pt-1", children: [
133
+ meter && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
134
+ /* @__PURE__ */ jsx("div", { "aria-hidden": true, className: "flex flex-1 gap-1.5", children: rules.map((r, i) => /* @__PURE__ */ jsx("span", { className: "relative h-1 flex-1 overflow-hidden rounded-full bg-[color-mix(in_srgb,var(--ink)_10%,transparent)]", children: /* @__PURE__ */ jsx(
135
+ "span",
136
+ {
137
+ className: cx(
138
+ "absolute inset-0 origin-left rounded-full transition-[transform,background-color] duration-500 ease-[cubic-bezier(.16,1,.3,1)] motion-reduce:transition-none",
139
+ s.strong ? "bg-brand" : "bg-ink"
140
+ ),
141
+ style: { transform: `scaleX(${i < s.score ? 1 : 0})`, transitionDelay: `${i * 40}ms` }
142
+ }
143
+ ) }, r.label)) }),
144
+ /* @__PURE__ */ jsxs("span", { "aria-live": "polite", className: cx("w-12 text-right text-[12px] tabular-nums transition-colors duration-300", s.strong ? "text-brand" : "text-mute"), children: [
145
+ s.word && /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Strength: " }),
146
+ s.word
147
+ ] })
148
+ ] }),
149
+ checklist && /* @__PURE__ */ jsx("ul", { className: "grid gap-1.5 sm:grid-cols-2", children: rules.map((r, i) => /* @__PURE__ */ jsxs("li", { className: cx("flex items-center gap-2 text-[12.5px] transition-colors duration-300", s.passed[i] ? "text-ink" : "text-mute"), children: [
150
+ /* @__PURE__ */ jsx(Tick, { on: s.passed[i] }),
151
+ r.label,
152
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: s.passed[i] ? ", done" : ", not yet" })
153
+ ] }, r.label)) })
154
+ ] })
155
+ ] });
156
+ }
157
+ var password_input_default = PasswordField;
158
+
159
+ export {
160
+ DEFAULT_PASSWORD_RULES,
161
+ passwordStrength,
162
+ PasswordField,
163
+ password_input_default
164
+ };
@@ -0,0 +1,97 @@
1
+ "use client";
2
+ import {
3
+ Button
4
+ } from "./chunk-WSL4JGEA.js";
5
+
6
+ // components/kit/base/empty-state.tsx
7
+ import { jsx, jsxs } from "react/jsx-runtime";
8
+ var cx = (...c) => c.filter(Boolean).join(" ");
9
+ var CURVE = "cubic-bezier(.16,1,.3,1)";
10
+ var ART = {
11
+ "no-data": [
12
+ { d: "M30 44 60 30l30 14-30 14Z" },
13
+ { d: "M30 44v22l30 14 30-14V44" },
14
+ { d: "M60 58v22" },
15
+ { d: "M30 44l-9 10 30 14 9-10" },
16
+ { d: "M90 44l9 10-30 14-9-10" },
17
+ { d: "M60 8v10M55 13h10", accent: true }
18
+ ],
19
+ "no-results": [
20
+ { d: "M26 14h40a4 4 0 0 1 4 4v46a4 4 0 0 1-4 4H26a4 4 0 0 1-4-4V18a4 4 0 0 1 4-4Z" },
21
+ { d: "M31 28h28M31 38h20M31 48h24" },
22
+ { d: "M94 56a14 14 0 1 1-28 0 14 14 0 1 1 28 0Z", accent: true },
23
+ { d: "M90 66l10 10", accent: true }
24
+ ],
25
+ error: [
26
+ { d: "M6 52h26" },
27
+ { d: "M32 42h12v20H32Z" },
28
+ { d: "M44 47h8M44 57h8" },
29
+ { d: "M72 40h12v24H72Z" },
30
+ { d: "M84 52h30" },
31
+ { d: "M66 47h6M66 57h6" },
32
+ { d: "M59 33v6M59 65v6", accent: true }
33
+ ]
34
+ };
35
+ function Drawing({ variant, size }) {
36
+ return /* @__PURE__ */ jsxs("div", { className: cx("relative flex items-center justify-center", size === "sm" ? "h-20 w-28" : "h-28 w-40"), "aria-hidden": true, children: [
37
+ /* @__PURE__ */ jsx("span", { className: "kit-es-disc absolute h-[78%] w-[66%] rounded-full bg-paper-2" }),
38
+ /* @__PURE__ */ jsx("svg", { viewBox: "0 0 120 88", className: "relative h-full w-full overflow-visible", fill: "none", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", children: ART[variant].map((s, i) => /* @__PURE__ */ jsx(
39
+ "path",
40
+ {
41
+ d: s.d,
42
+ pathLength: 1,
43
+ className: "kit-es-draw",
44
+ stroke: s.accent ? "var(--brand)" : "color-mix(in srgb, var(--ink) 34%, transparent)",
45
+ style: { "--d": `${120 + i * 90}ms` }
46
+ },
47
+ i
48
+ )) })
49
+ ] });
50
+ }
51
+ var COPY = {
52
+ "no-data": { title: () => "Nothing here yet", description: "Create your first item and it will show up here." },
53
+ "no-results": { title: (q) => q ? `No results for \u201C${q}\u201D` : "No results", description: "Try a shorter search or check the spelling." },
54
+ error: { title: () => "This didn\u2019t load", description: "Something went wrong on our side. Try again in a moment." }
55
+ };
56
+ var enter = (ms) => ({ animation: `kit-es-in .6s ${CURVE} ${ms}ms both` });
57
+ function EmptyState({ variant = "no-data", title, description, query, primary, secondary, illustration, size = "md", className }) {
58
+ const copy = COPY[variant];
59
+ const sm = size === "sm";
60
+ const action = (a, kind) => {
61
+ const look = { variant: kind === "primary" ? "solid" : "ghost", size: sm ? "xs" : "sm", iconLeft: a.icon };
62
+ return a.href ? /* @__PURE__ */ jsx(Button, { ...look, href: a.href, onClick: a.onClick, children: a.label }) : /* @__PURE__ */ jsx(Button, { ...look, onClick: a.onClick, children: a.label });
63
+ };
64
+ return /* @__PURE__ */ jsxs(
65
+ "div",
66
+ {
67
+ role: variant === "error" ? "alert" : "status",
68
+ className: cx("kit-es flex flex-col items-center text-center", sm ? "px-4 py-8" : "px-6 py-12", className),
69
+ children: [
70
+ /* @__PURE__ */ jsx("style", { href: "asta-empty-state", precedence: "asta", children: `
71
+ .kit-es-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: kit-es-draw 1s ${CURVE} var(--d, 0ms) forwards; }
72
+ .kit-es-disc { animation: kit-es-disc .8s ${CURVE} both; }
73
+ @keyframes kit-es-draw { to { stroke-dashoffset: 0; } }
74
+ @keyframes kit-es-disc { from { opacity: 0; transform: scale(.85); } }
75
+ @keyframes kit-es-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
76
+ @media (prefers-reduced-motion: reduce) {
77
+ .kit-es, .kit-es * { animation: none !important; }
78
+ .kit-es-draw { stroke-dashoffset: 0; }
79
+ }
80
+ ` }),
81
+ illustration ?? /* @__PURE__ */ jsx(Drawing, { variant, size }),
82
+ /* @__PURE__ */ jsx("h3", { className: cx("font-medium tracking-[-0.02em] text-ink", sm ? "mt-3 text-[14.5px]" : "mt-5 text-[17px]"), style: enter(380), children: title ?? copy.title(query) }),
83
+ /* @__PURE__ */ jsx("p", { className: cx("max-w-[34ch] leading-relaxed text-mute", sm ? "mt-1 text-[12.5px]" : "mt-1.5 text-[13.5px]"), style: enter(460), children: description ?? copy.description }),
84
+ (primary || secondary) && /* @__PURE__ */ jsxs("div", { className: cx("flex flex-wrap items-center justify-center gap-2", sm ? "mt-4" : "mt-6"), style: enter(540), children: [
85
+ primary && action(primary, "primary"),
86
+ secondary && action(secondary, "secondary")
87
+ ] })
88
+ ]
89
+ }
90
+ );
91
+ }
92
+ var empty_state_default = EmptyState;
93
+
94
+ export {
95
+ EmptyState,
96
+ empty_state_default
97
+ };
@@ -0,0 +1,232 @@
1
+ "use client";
2
+
3
+ // components/lab/blocks/NotificationStack.tsx
4
+ import { useEffect, useRef, useState } from "react";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ var EASE = "cubic-bezier(.16,1,.3,1)";
7
+ var RING = "shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent)]";
8
+ var H = 60;
9
+ var GAP = 8;
10
+ var SHOWN = 3;
11
+ var SWIPE = 72;
12
+ var POOL = [
13
+ { who: "Maya Chen", what: "Commented on Q4 roadmap", tag: "MC" },
14
+ { who: "Invoice #2041", what: "Paid by Juniper Studio", tag: "IN" },
15
+ { who: "Deploy", what: "web \xB7 main finished in 48s", tag: "DP" },
16
+ { who: "Tom\xE1s Rey", what: "Invited you to Harbor", tag: "TR" },
17
+ { who: "New sign-in", what: "Chrome on macOS \xB7 Lisbon", tag: "SI" },
18
+ { who: "Ines Park", what: "Approved your pull request", tag: "IP" }
19
+ ];
20
+ var STEPS = ["dismiss", "add", "add", "dismiss"];
21
+ function NotificationStack() {
22
+ const [items, setItems] = useState([
23
+ { id: 2, n: 2, out: 0 },
24
+ { id: 1, n: 1, out: 0 },
25
+ { id: 0, n: 0, out: 0 }
26
+ ]);
27
+ const [hover, setHover] = useState(false);
28
+ const [open, setOpen] = useState(false);
29
+ const [paused, setPaused] = useState(false);
30
+ const [drag, setDrag] = useState(null);
31
+ const seq = useRef(3);
32
+ const list = useRef([]);
33
+ const start = useRef(null);
34
+ const idle = useRef(null);
35
+ const timers = useRef(/* @__PURE__ */ new Set());
36
+ const still = () => window.matchMedia("(prefers-reduced-motion: reduce)").matches;
37
+ const takeOver = () => {
38
+ setPaused(true);
39
+ if (idle.current) clearTimeout(idle.current);
40
+ idle.current = setTimeout(() => setPaused(false), 8e3);
41
+ };
42
+ useEffect(
43
+ () => () => {
44
+ if (idle.current) clearTimeout(idle.current);
45
+ timers.current.forEach(clearTimeout);
46
+ },
47
+ []
48
+ );
49
+ const add = () => {
50
+ const id = seq.current++;
51
+ setItems((v) => [{ id, n: id % POOL.length, out: 0 }, ...v].slice(0, SHOWN + 2));
52
+ };
53
+ const dismiss = (id, dir = 1) => {
54
+ setItems((v) => v.map((it) => it.id === id ? { ...it, out: dir } : it));
55
+ const t = setTimeout(() => {
56
+ timers.current.delete(t);
57
+ setItems((v) => v.filter((it) => it.id !== id));
58
+ }, still() ? 0 : 340);
59
+ timers.current.add(t);
60
+ };
61
+ useEffect(() => {
62
+ if (paused || hover || open || still()) return;
63
+ let n = 0;
64
+ const id = setInterval(() => {
65
+ const step = STEPS[n++ % STEPS.length];
66
+ if (step === "add") add();
67
+ else {
68
+ const rest = list.current.filter((it) => !it.out);
69
+ if (rest.length > 1) dismiss(rest[0].id, 1);
70
+ }
71
+ }, 2200);
72
+ return () => clearInterval(id);
73
+ }, [paused, hover, open]);
74
+ useEffect(() => {
75
+ list.current = items;
76
+ }, [items]);
77
+ const live = items.filter((it) => !it.out);
78
+ const pos = [];
79
+ items.reduce((r, it) => {
80
+ pos.push(r);
81
+ return it.out ? r : r + 1;
82
+ }, 0);
83
+ const fan = hover || open;
84
+ const down = (e, id) => {
85
+ if (e.target.closest("button")) return;
86
+ start.current = { id, x: e.clientX, moved: false };
87
+ e.currentTarget.setPointerCapture(e.pointerId);
88
+ };
89
+ const move = (e) => {
90
+ const s = start.current;
91
+ if (!s) return;
92
+ const dx = e.clientX - s.x;
93
+ if (Math.abs(dx) > 4) s.moved = true;
94
+ if (s.moved) setDrag({ id: s.id, dx });
95
+ };
96
+ const up = (e) => {
97
+ const s = start.current;
98
+ start.current = null;
99
+ if (!s) return;
100
+ takeOver();
101
+ const dx = e.clientX - s.x;
102
+ setDrag(null);
103
+ if (Math.abs(dx) > SWIPE) dismiss(s.id, dx > 0 ? 1 : -1);
104
+ else if (!s.moved && e.pointerType !== "mouse") setOpen((o) => !o);
105
+ };
106
+ return /* @__PURE__ */ jsxs("div", { className: "flex h-full w-full items-center justify-center px-5 pb-5 pt-11", style: { containerType: "size" }, children: [
107
+ /* @__PURE__ */ jsx("style", { href: "asta-notificationstack", precedence: "asta", children: `
108
+ @keyframes lab-ns-in { from { transform: translateY(-10px) scale(.97); opacity: 0 } to { transform: none; opacity: 1 } }
109
+ @keyframes lab-ns-pop { 0% { transform: scale(.6) } 60% { transform: scale(1.12) } 100% { transform: scale(1) } }
110
+ .lab-ns-in { animation: lab-ns-in .55s ${EASE} both }
111
+ .lab-ns-pop { animation: lab-ns-pop .45s ${EASE} both }
112
+ @media (prefers-reduced-motion: reduce) { .lab-ns-in, .lab-ns-pop { animation: none } }
113
+ ` }),
114
+ /* @__PURE__ */ jsxs("div", { className: "flex w-full max-w-[380px] flex-col gap-[max(12px,4cqh)]", children: [
115
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
116
+ /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-2", children: [
117
+ /* @__PURE__ */ jsx("span", { className: "text-[clamp(15px,4.6cqmin,18px)] font-medium tracking-[-0.02em] text-ink", children: "Inbox" }),
118
+ /* @__PURE__ */ jsx(
119
+ "span",
120
+ {
121
+ role: "status",
122
+ "aria-label": `${live.length} unread`,
123
+ className: `flex h-[18px] min-w-[18px] items-center justify-center rounded-full bg-brand px-1.5 text-[10.5px] font-semibold tabular-nums text-paper transition-opacity duration-300 ${live.length ? "lab-ns-pop" : ""}`,
124
+ style: { opacity: live.length ? 1 : 0 },
125
+ children: live.length
126
+ },
127
+ live.length
128
+ )
129
+ ] }),
130
+ /* @__PURE__ */ jsx(
131
+ "button",
132
+ {
133
+ type: "button",
134
+ "aria-expanded": fan,
135
+ onClick: () => {
136
+ takeOver();
137
+ setOpen((o) => !o);
138
+ },
139
+ className: "rounded-[6px] px-1.5 py-1 text-[11.5px] text-mute outline-none transition-opacity hover:text-ink-2 focus-visible:ring-2 focus-visible:ring-brand/60",
140
+ children: fan ? "Collapse" : "Show all"
141
+ }
142
+ )
143
+ ] }),
144
+ /* @__PURE__ */ jsxs(
145
+ "ul",
146
+ {
147
+ "aria-label": "Notifications",
148
+ onPointerEnter: (e) => e.pointerType === "mouse" && setHover(true),
149
+ onPointerLeave: (e) => e.pointerType === "mouse" && setHover(false),
150
+ onFocus: () => setOpen(true),
151
+ onBlur: (e) => !e.currentTarget.contains(e.relatedTarget) && setOpen(false),
152
+ className: "relative",
153
+ style: { height: SHOWN * H + (SHOWN - 1) * GAP },
154
+ children: [
155
+ live.length === 0 && /* @__PURE__ */ jsx("li", { className: `flex items-center justify-center rounded-[12px] text-[12px] text-mute ${RING}`, style: { height: H }, children: "You\u2019re all caught up" }),
156
+ items.map((it, k) => {
157
+ const p = POOL[it.n];
158
+ const i = pos[k];
159
+ const hidden = i >= SHOWN;
160
+ const dx = drag?.id === it.id ? drag.dx : 0;
161
+ const y = fan ? i * (H + GAP) : Math.min(i, SHOWN - 1) * 9;
162
+ const s = fan ? 1 : 1 - Math.min(i, SHOWN - 1) * 0.05;
163
+ const o = it.out ? 0 : hidden ? 0 : fan ? 1 : i === 0 ? 1 : i === 1 ? 0.7 : 0.4;
164
+ const x = it.out ? `${it.out * 110}%` : `${dx}px`;
165
+ const reach = fan || i === 0;
166
+ return /* @__PURE__ */ jsx(
167
+ "li",
168
+ {
169
+ className: "absolute inset-x-0 top-0 origin-top",
170
+ style: {
171
+ height: H,
172
+ zIndex: 20 - i,
173
+ opacity: dx ? Math.max(0.3, 1 - Math.abs(dx) / 220) : o,
174
+ transform: `translate(${x}, ${y}px) scale(${s})`,
175
+ transition: dx ? "none" : `transform .55s ${EASE}, opacity .4s ${EASE}`,
176
+ pointerEvents: hidden || it.out ? "none" : "auto",
177
+ touchAction: "pan-y"
178
+ },
179
+ "aria-hidden": hidden || !!it.out,
180
+ onPointerDown: (e) => reach && down(e, it.id),
181
+ onPointerMove: move,
182
+ onPointerUp: up,
183
+ onPointerCancel: () => {
184
+ start.current = null;
185
+ setDrag(null);
186
+ },
187
+ onKeyDown: (e) => {
188
+ if (e.key === "Delete" || e.key === "Backspace") {
189
+ e.preventDefault();
190
+ takeOver();
191
+ dismiss(it.id);
192
+ }
193
+ },
194
+ children: /* @__PURE__ */ jsxs("div", { className: `lab-ns-in group flex h-full select-none items-center gap-3 rounded-[12px] bg-paper px-3 shadow-[0_8px_24px_-16px_rgb(0_0_0/0.45)] ${RING}`, children: [
195
+ /* @__PURE__ */ jsx("span", { className: "flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-paper-2 text-[10.5px] font-medium text-ink-2", children: p.tag }),
196
+ /* @__PURE__ */ jsxs("span", { className: "min-w-0 flex-1", children: [
197
+ /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-2", children: [
198
+ /* @__PURE__ */ jsx("span", { className: "truncate text-[13px] font-medium text-ink", children: p.who }),
199
+ /* @__PURE__ */ jsx("span", { className: "shrink-0 text-[11px] text-mute", children: i === 0 ? "now" : `${i * 2}m` })
200
+ ] }),
201
+ /* @__PURE__ */ jsx("span", { className: "block truncate text-[12px] text-mute", children: p.what })
202
+ ] }),
203
+ /* @__PURE__ */ jsx(
204
+ "button",
205
+ {
206
+ type: "button",
207
+ "aria-label": `Dismiss ${p.who}`,
208
+ tabIndex: reach && !hidden ? 0 : -1,
209
+ onClick: () => {
210
+ takeOver();
211
+ dismiss(it.id);
212
+ },
213
+ className: "flex h-7 w-7 shrink-0 items-center justify-center rounded-[7px] text-mute outline-none transition-opacity duration-300 hover:text-ink focus-visible:opacity-100 focus-visible:ring-2 focus-visible:ring-brand/60",
214
+ style: { opacity: reach ? fan ? 1 : 0.55 : 0 },
215
+ children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", className: "h-3.5 w-3.5", fill: "none", stroke: "currentColor", strokeWidth: "1.6", strokeLinecap: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "M4.5 4.5l7 7M11.5 4.5l-7 7" }) })
216
+ }
217
+ )
218
+ ] })
219
+ },
220
+ it.id
221
+ );
222
+ })
223
+ ]
224
+ }
225
+ )
226
+ ] })
227
+ ] });
228
+ }
229
+
230
+ export {
231
+ NotificationStack
232
+ };