asta-ui 0.2.1 → 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,43 @@
1
+ import { type ReactNode } from "react";
2
+ export interface SidebarItem {
3
+ id: string;
4
+ label: string;
5
+ icon: ReactNode;
6
+ /** Small count on the right. In the icon rail it becomes a dot. */
7
+ badge?: number;
8
+ }
9
+ export interface SidebarGroup {
10
+ label?: string;
11
+ items: SidebarItem[];
12
+ }
13
+ export interface SidebarWorkspace {
14
+ id: string;
15
+ name: string;
16
+ plan?: string;
17
+ }
18
+ export interface SidebarProps {
19
+ workspaces: SidebarWorkspace[];
20
+ defaultWorkspace?: string;
21
+ onWorkspaceChange?: (id: string) => void;
22
+ groups: SidebarGroup[];
23
+ /** Controlled active item. Leave it out and the sidebar tracks clicks itself. */
24
+ active?: string;
25
+ defaultActive?: string;
26
+ onNavigate?: (id: string) => void;
27
+ collapsed?: boolean;
28
+ defaultCollapsed?: boolean;
29
+ onCollapsedChange?: (collapsed: boolean) => void;
30
+ user: {
31
+ name: string;
32
+ email: string;
33
+ src?: string;
34
+ };
35
+ className?: string;
36
+ }
37
+ /**
38
+ * App sidebar: a workspace switcher, grouped navigation with a sliding active indicator, and the
39
+ * signed-in user at the bottom. It folds to a 64px icon rail where labels fade out and tooltips take
40
+ * over. Arrow keys move between items.
41
+ */
42
+ export declare function Sidebar({ workspaces, defaultWorkspace, onWorkspaceChange, groups, active: activeProp, defaultActive, onNavigate, collapsed: collapsedProp, defaultCollapsed, onCollapsedChange, user, className, }: SidebarProps): import("react").JSX.Element;
43
+ export default Sidebar;
@@ -0,0 +1,46 @@
1
+ export interface TeamMember {
2
+ id: string;
3
+ name: string;
4
+ email: string;
5
+ role: string;
6
+ src?: string;
7
+ /** The signed-in person. Their role is locked and they can't be removed. */
8
+ you?: boolean;
9
+ }
10
+ export interface TeamMemberInvite {
11
+ id: string;
12
+ email: string;
13
+ role: string;
14
+ /** Already formatted, e.g. "2d ago". */
15
+ sent?: string;
16
+ }
17
+ export interface TeamMemberRoleOption {
18
+ value: string;
19
+ label: string;
20
+ hint?: string;
21
+ }
22
+ export interface TeamMembersProps {
23
+ defaultMembers: TeamMember[];
24
+ defaultInvites?: TeamMemberInvite[];
25
+ roles?: TeamMemberRoleOption[];
26
+ /** Role picked for new invites. Defaults to the last role. */
27
+ defaultInviteRole?: string;
28
+ /** Send invites. Reject to keep the addresses and show an error. */
29
+ onInvite?: (emails: string[], role: string) => Promise<unknown> | void;
30
+ onRoleChange?: (memberId: string, role: string) => void;
31
+ /** Called once the undo window has passed. */
32
+ onRemove?: (memberId: string) => void;
33
+ onRevoke?: (inviteId: string) => void;
34
+ onResend?: (inviteId: string) => void;
35
+ /** How long a removal can be undone, in ms. */
36
+ undoMs?: number;
37
+ title?: string;
38
+ className?: string;
39
+ }
40
+ /**
41
+ * A team list: avatar, name, email and a role picker per person. Invite several people at once by typing
42
+ * or pasting addresses; bad or duplicate ones are flagged before you send. Removing someone leaves an
43
+ * Undo row for a few seconds. Pending invites can be resent or revoked.
44
+ */
45
+ export declare function TeamMembers({ defaultMembers, defaultInvites, roles, defaultInviteRole, onInvite, onRoleChange, onRemove, onRevoke, onResend, undoMs, title, className, }: TeamMembersProps): import("react").JSX.Element;
46
+ export default TeamMembers;
@@ -0,0 +1,29 @@
1
+ import { type ReactNode } from "react";
2
+ export interface Crumb {
3
+ label: string;
4
+ href?: string;
5
+ onClick?: () => void;
6
+ icon?: ReactNode;
7
+ }
8
+ export interface BreadcrumbProps {
9
+ /** Root first, current page last. The last one is marked as the current page. */
10
+ items: Crumb[];
11
+ /** Between items. Defaults to a slim chevron. */
12
+ separator?: ReactNode;
13
+ /** "auto" folds middle items into a menu when the row overflows. A number caps the visible items. `false` never folds. */
14
+ collapse?: "auto" | number | false;
15
+ /** Render links your way, e.g. with next/link. */
16
+ renderLink?: (props: {
17
+ href: string;
18
+ className: string;
19
+ children: ReactNode;
20
+ onClick?: () => void;
21
+ }) => ReactNode;
22
+ className?: string;
23
+ }
24
+ /**
25
+ * A trail back to the root. The last item is the current page. When the row runs out of room the middle
26
+ * items fold into a menu behind an ellipsis, keeping the root and the nearest parents in view.
27
+ */
28
+ export declare function Breadcrumb({ items, separator, collapse, renderLink, className }: BreadcrumbProps): import("react").JSX.Element;
29
+ export default Breadcrumb;
@@ -0,0 +1,21 @@
1
+ import { type ReactNode } from "react";
2
+ export interface CarouselProps {
3
+ /** One child per slide. */
4
+ children: ReactNode;
5
+ index?: number;
6
+ defaultIndex?: number;
7
+ onIndexChange?: (index: number) => void;
8
+ /** Wrap from the last slide to the first and back. */
9
+ loop?: boolean;
10
+ /** Milliseconds per slide. Pauses on hover, focus and drag, and stays off for reduced motion. */
11
+ autoplay?: number;
12
+ /** Accessible name, e.g. "Featured products". */
13
+ label?: string;
14
+ className?: string;
15
+ }
16
+ /**
17
+ * Slides you swipe or drag, step with the arrows, or jump to with the dots. The active dot stretches into a
18
+ * bar (with autoplay, the bar fills as the slide's time runs out). Arrow keys work once the carousel has focus.
19
+ */
20
+ export declare function Carousel({ children, index, defaultIndex, onIndexChange, loop, autoplay, label, className }: CarouselProps): import("react").JSX.Element;
21
+ export default Carousel;
@@ -0,0 +1,68 @@
1
+ export interface CheckoutLineItem {
2
+ id: string;
3
+ name: string;
4
+ /** Size, colour or plan, e.g. "Oat · M". */
5
+ variant?: string;
6
+ /** Unit price in major units, e.g. 48 or 12.5. */
7
+ price: number;
8
+ qty: number;
9
+ image?: string;
10
+ }
11
+ export interface CheckoutShippingOption {
12
+ id: string;
13
+ label: string;
14
+ /** e.g. "2–4 business days". */
15
+ eta: string;
16
+ price: number;
17
+ }
18
+ export interface CheckoutDetails {
19
+ email: string;
20
+ name: string;
21
+ address: string;
22
+ city: string;
23
+ postal: string;
24
+ country: string;
25
+ shipping: string;
26
+ /** Digits only. */
27
+ cardNumber: string;
28
+ /** "MM/YY". */
29
+ cardExpiry: string;
30
+ cardCvc: string;
31
+ }
32
+ export interface CheckoutProps {
33
+ /**
34
+ * The cart. The buyer can change quantities inside the checkout, and `onItemsChange` reports each change.
35
+ * Pass a new array (a new identity) to replace the cart: the internal copy resets to it. Keep the same
36
+ * array identity between renders if you don't want to discard the buyer's quantity changes.
37
+ */
38
+ items: CheckoutLineItem[];
39
+ /** Runs when Pay is pressed and every field is valid. Reject to show the error and let the buyer retry. */
40
+ onPay: (order: {
41
+ details: CheckoutDetails;
42
+ items: CheckoutLineItem[];
43
+ total: number;
44
+ }) => Promise<unknown>;
45
+ shippingOptions?: CheckoutShippingOption[];
46
+ countries?: {
47
+ value: string;
48
+ label: string;
49
+ }[];
50
+ /** Tax as a fraction of the discounted subtotal, e.g. 0.11. */
51
+ taxRate?: number;
52
+ /** Promo code → discount as a fraction, e.g. { WELCOME10: 0.1 }. Codes are matched case-insensitively. */
53
+ promoCodes?: Record<string, number>;
54
+ /** ISO 4217 code. */
55
+ currency?: string;
56
+ locale?: string;
57
+ defaultDetails?: Partial<CheckoutDetails>;
58
+ /** Called when quantities change. */
59
+ onItemsChange?: (items: CheckoutLineItem[]) => void;
60
+ className?: string;
61
+ }
62
+ /**
63
+ * A one-page checkout: contact, shipping and payment on the left, the order on the right. Card fields
64
+ * format as you type. Change a quantity, the shipping speed or add a promo code and the totals roll to
65
+ * the new amount. Pay shows a pending state, then a receipt. A failed payment keeps everything filled in.
66
+ */
67
+ export declare function Checkout({ items: initialItems, onPay, shippingOptions, countries, taxRate, promoCodes, currency, locale, defaultDetails, onItemsChange, className, }: CheckoutProps): import("react").JSX.Element;
68
+ export default Checkout;
@@ -0,0 +1,28 @@
1
+ export interface ColorPickerSwatch {
2
+ /** A hex colour, e.g. "#2f54eb". */
3
+ value: string;
4
+ /** Name read to screen readers and shown on hover, e.g. "Ocean". */
5
+ name?: string;
6
+ }
7
+ export interface ColorPickerProps {
8
+ /** The picked colour as lowercase `#rrggbb`. */
9
+ value?: string;
10
+ defaultValue?: string;
11
+ onValueChange?: (hex: string) => void;
12
+ swatches?: (string | ColorPickerSwatch)[];
13
+ /** Show the hex field for a custom colour. */
14
+ custom?: boolean;
15
+ /** Swatches per row. */
16
+ columns?: number;
17
+ size?: "sm" | "md";
18
+ /** Accessible name, e.g. "Label colour". */
19
+ label?: string;
20
+ disabled?: boolean;
21
+ className?: string;
22
+ }
23
+ /**
24
+ * A calm swatch picker. The ring around the picked swatch scales in, arrow keys move through the grid, and an
25
+ * optional hex field takes any colour. The field previews as you type and only commits a valid hex.
26
+ */
27
+ export declare function ColorPicker({ value, defaultValue, onValueChange, swatches, custom, columns, size, label, disabled, className }: ColorPickerProps): import("react").JSX.Element;
28
+ export default ColorPicker;
@@ -0,0 +1,40 @@
1
+ import { type ReactNode } from "react";
2
+ export interface ComboboxOption {
3
+ value: string;
4
+ label: string;
5
+ /** Muted text on the right, e.g. a count or a shortcut. */
6
+ hint?: string;
7
+ icon?: ReactNode;
8
+ disabled?: boolean;
9
+ }
10
+ interface CommonProps {
11
+ options: ComboboxOption[];
12
+ placeholder?: string;
13
+ label?: string;
14
+ /** Shown when nothing matches what was typed. */
15
+ emptyText?: ReactNode;
16
+ /** Form field name. Multiple values submit as one hidden input each. */
17
+ name?: string;
18
+ disabled?: boolean;
19
+ className?: string;
20
+ }
21
+ export interface SingleComboboxProps extends CommonProps {
22
+ multiple?: false;
23
+ value?: string | null;
24
+ defaultValue?: string | null;
25
+ onChange?: (value: string | null) => void;
26
+ }
27
+ export interface MultipleComboboxProps extends CommonProps {
28
+ multiple: true;
29
+ value?: string[];
30
+ defaultValue?: string[];
31
+ onChange?: (value: string[]) => void;
32
+ }
33
+ export type ComboboxProps = SingleComboboxProps | MultipleComboboxProps;
34
+ /**
35
+ * Type to filter, arrows to move, Enter to pick, Escape to close. Matches are substring, case-insensitive,
36
+ * with the typed part in bold. With `multiple`, picks become chips inside the field: click × or press
37
+ * Backspace on an empty field to remove the last one.
38
+ */
39
+ export declare function Combobox(props: ComboboxProps): import("react").JSX.Element;
40
+ export default Combobox;
@@ -0,0 +1,30 @@
1
+ export interface CommentAuthor {
2
+ name: string;
3
+ src?: string;
4
+ }
5
+ export interface CommentItem {
6
+ id: string;
7
+ author: CommentAuthor;
8
+ /** Already formatted, e.g. "2h" or "Yesterday". */
9
+ time: string;
10
+ body: string;
11
+ likes?: number;
12
+ liked?: boolean;
13
+ /** One level only. Replying to a reply adds to the same list. */
14
+ replies?: CommentItem[];
15
+ }
16
+ export interface CommentsProps {
17
+ defaultComments: CommentItem[];
18
+ currentUser: CommentAuthor;
19
+ title?: string;
20
+ /** Called after a comment is added. `parentId` is set for replies. */
21
+ onPost?: (body: string, parentId?: string) => void;
22
+ className?: string;
23
+ }
24
+ /**
25
+ * A discussion thread: avatar, name and time on each comment, replies one level deep, a like pill that
26
+ * pops, and a composer that grows with its text. New comments slide in. ⌘/Ctrl + Enter posts and
27
+ * Escape closes a reply box.
28
+ */
29
+ export declare function Comments({ defaultComments, currentUser, title, onPost, className }: CommentsProps): import("react").JSX.Element;
30
+ export default Comments;
@@ -0,0 +1,37 @@
1
+ import { type ReactNode } from "react";
2
+ export interface ContextMenuItem {
3
+ label: string;
4
+ icon?: ReactNode;
5
+ /** Shown on the right, e.g. "⌘C". Display only. */
6
+ shortcut?: string;
7
+ disabled?: boolean;
8
+ onSelect?: () => void;
9
+ /** Nested items open as a submenu to the side. */
10
+ items?: ContextMenuEntry[];
11
+ }
12
+ /** An item, or the string "separator" for a thin rule between groups. */
13
+ export type ContextMenuEntry = ContextMenuItem | "separator";
14
+ export interface ContextMenuProps {
15
+ items: ContextMenuEntry[];
16
+ /** The area that listens for right-click, long-press and Shift+F10. */
17
+ children: ReactNode;
18
+ /** Accessible name for the menu. */
19
+ label?: string;
20
+ /** Keep the menu inside this area instead of the viewport. */
21
+ contained?: boolean;
22
+ disabled?: boolean;
23
+ /** Long-press time on touch, in ms. */
24
+ longPress?: number;
25
+ onOpenChange?: (open: boolean) => void;
26
+ /** Classes for the target area. */
27
+ className?: string;
28
+ /** Classes for the menu panel. */
29
+ menuClassName?: string;
30
+ }
31
+ /**
32
+ * Right-click, long-press on touch, or Shift+F10 / the Menu key opens a menu at the pointer. It scales in
33
+ * from the corner nearest the pointer, flips to stay inside the viewport (or the area, with `contained`),
34
+ * and can nest one level of submenu. Arrows, Home/End, type-ahead, Enter, Escape and focus return all work.
35
+ */
36
+ export declare function ContextMenu({ items, children, label, contained, disabled, longPress, onOpenChange, className, menuClassName }: ContextMenuProps): import("react").JSX.Element;
37
+ export default ContextMenu;
@@ -0,0 +1,20 @@
1
+ import { type ButtonHTMLAttributes } from "react";
2
+ export interface ClipboardButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "value" | "onCopy" | "children"> {
3
+ /** Text to copy, or a function that returns it at click time. */
4
+ value: string | (() => string);
5
+ /** Visible label. Leave it out for an icon-only button. */
6
+ label?: string;
7
+ /** Label while the check shows. */
8
+ copiedLabel?: string;
9
+ /** How long the check stays, in ms. */
10
+ timeout?: number;
11
+ onCopy?: (text: string) => void;
12
+ variant?: "ghost" | "outline" | "soft";
13
+ size?: "sm" | "md";
14
+ }
15
+ /**
16
+ * Copies text on click. The copy icon turns and fades as a check draws itself in, the label rolls to
17
+ * "Copied", and both settle back after a moment. Screen readers hear the result.
18
+ */
19
+ export declare function ClipboardButton({ value, label, copiedLabel, timeout, onCopy, variant, size, className, onClick, ...rest }: ClipboardButtonProps): import("react").JSX.Element;
20
+ export default ClipboardButton;
@@ -0,0 +1,47 @@
1
+ import { type ReactNode } from "react";
2
+ export interface DataTableColumn<T> {
3
+ /** A field of the row, or any id when you render the cell yourself. */
4
+ key: string;
5
+ header: ReactNode;
6
+ /** Custom cell. Defaults to the field's value as text. */
7
+ cell?: (row: T) => ReactNode;
8
+ sortable?: boolean;
9
+ /** What to sort by when the field isn't a plain string or number. */
10
+ sortValue?: (row: T) => string | number;
11
+ align?: "left" | "center" | "right";
12
+ /** CSS width, e.g. "120px" or "30%". */
13
+ width?: string;
14
+ }
15
+ export interface DataTableProps<T> {
16
+ columns: DataTableColumn<T>[];
17
+ data: T[];
18
+ /** A stable id per row (used for selection). */
19
+ getRowId: (row: T) => string;
20
+ /** Show checkboxes and a select-all. */
21
+ selectable?: boolean;
22
+ selected?: string[];
23
+ defaultSelected?: string[];
24
+ onSelectedChange?: (ids: string[]) => void;
25
+ /** Show a search box. Matches any column's text, or your own `filter`. */
26
+ searchable?: boolean;
27
+ searchPlaceholder?: string;
28
+ filter?: (row: T, query: string) => boolean;
29
+ /** Rows per page. 0 shows everything. */
30
+ pageSize?: number;
31
+ /** Right side of the toolbar. Gets the selected rows. */
32
+ actions?: (selected: T[]) => ReactNode;
33
+ /** Shown when there is no data at all. */
34
+ empty?: ReactNode;
35
+ /** Scroll height of the body. The header sticks while you scroll. */
36
+ maxHeight?: number | string;
37
+ /** Accessible name for the table. */
38
+ label?: string;
39
+ className?: string;
40
+ }
41
+ /**
42
+ * A data table: click a header to sort (ascending, descending, off), search across columns, select rows
43
+ * with a select-all that covers the current page, and page through. Rows slide in on every sort, search or
44
+ * page change, the header sticks while the body scrolls, and an empty search says so.
45
+ */
46
+ export declare function DataTable<T>({ columns, data, getRowId, selectable, selected, defaultSelected, onSelectedChange, searchable, searchPlaceholder, filter, pageSize, actions, empty, maxHeight, label, className, }: DataTableProps<T>): import("react").JSX.Element;
47
+ export default DataTable;
@@ -0,0 +1,40 @@
1
+ export interface DateRange {
2
+ start: Date | null;
3
+ end: Date | null;
4
+ }
5
+ interface CommonProps {
6
+ /** BCP 47 locale for month and weekday names, e.g. "en-GB" or "id-ID". */
7
+ locale?: string;
8
+ /** 0 = Sunday, 1 = Monday. */
9
+ weekStartsOn?: 0 | 1;
10
+ /** Days before `min` or after `max` can't be picked. */
11
+ min?: Date;
12
+ max?: Date;
13
+ placeholder?: string;
14
+ label?: string;
15
+ /** Form field name. Submits `yyyy-mm-dd` (or `start/end` in range mode). */
16
+ name?: string;
17
+ disabled?: boolean;
18
+ size?: "sm" | "md";
19
+ className?: string;
20
+ }
21
+ export interface SingleDatePickerProps extends CommonProps {
22
+ mode?: "single";
23
+ value?: Date | null;
24
+ defaultValue?: Date | null;
25
+ onChange?: (value: Date | null) => void;
26
+ }
27
+ export interface RangeDatePickerProps extends CommonProps {
28
+ mode: "range";
29
+ value?: DateRange;
30
+ defaultValue?: DateRange;
31
+ onChange?: (value: DateRange) => void;
32
+ }
33
+ export type DatePickerProps = SingleDatePickerProps | RangeDatePickerProps;
34
+ /**
35
+ * A date field that opens a month calendar. Arrow keys move by day and week, Page Up/Down by month
36
+ * (Shift for a year), Home/End to the week's edges, Enter picks and Escape closes. `mode="range"` picks a
37
+ * start and an end with a soft band between them.
38
+ */
39
+ export declare function DatePicker(props: DatePickerProps): import("react").JSX.Element;
40
+ export default DatePicker;
@@ -0,0 +1,26 @@
1
+ import { type ReactNode } from "react";
2
+ export type DrawerSide = "right" | "left" | "bottom";
3
+ export interface DrawerProps {
4
+ open: boolean;
5
+ onOpenChange: (open: boolean) => void;
6
+ /** Which edge the sheet slides in from. */
7
+ side?: DrawerSide;
8
+ title: ReactNode;
9
+ description?: ReactNode;
10
+ children?: ReactNode;
11
+ /** Buttons row pinned to the bottom of the sheet. */
12
+ footer?: ReactNode;
13
+ /** Keep the overlay inside the nearest positioned parent instead of the whole viewport. */
14
+ contained?: boolean;
15
+ /** Bottom sheets can be dragged down to close. Set false to turn that off. */
16
+ draggable?: boolean;
17
+ className?: string;
18
+ }
19
+ /**
20
+ * A side sheet that slides in from the right, the left or the bottom over a fading overlay. Escape or a click
21
+ * on the overlay closes it, Tab stays inside while it's open, and focus goes back to whatever opened it.
22
+ * Bottom sheets have a handle you can drag down to dismiss. Put `data-autofocus` on the field that should
23
+ * take focus first.
24
+ */
25
+ export declare function Drawer({ open, onOpenChange, side, title, description, children, footer, contained, draggable, className }: DrawerProps): import("react").JSX.Element | null;
26
+ export default Drawer;
@@ -0,0 +1,29 @@
1
+ import type { ReactNode } from "react";
2
+ export type EmptyStateVariant = "no-data" | "no-results" | "error";
3
+ export interface EmptyStateAction {
4
+ label: string;
5
+ onClick?: () => void;
6
+ href?: string;
7
+ icon?: ReactNode;
8
+ }
9
+ export interface EmptyStateProps {
10
+ variant?: EmptyStateVariant;
11
+ /** Overrides the variant's default title. */
12
+ title?: ReactNode;
13
+ description?: ReactNode;
14
+ /** For "no-results": the search, shown in the default title. */
15
+ query?: string;
16
+ primary?: EmptyStateAction;
17
+ secondary?: EmptyStateAction;
18
+ /** Your own drawing instead of the built-in one. */
19
+ illustration?: ReactNode;
20
+ size?: "sm" | "md";
21
+ className?: string;
22
+ }
23
+ /**
24
+ * What a list shows when it has nothing to show. A small line drawing draws itself in, then the title,
25
+ * the text and up to two actions rise in. Three variants: no data yet, no search results and a neutral
26
+ * error. Re-mount it (change its `key`) to play it again.
27
+ */
28
+ export declare function EmptyState({ variant, title, description, query, primary, secondary, illustration, size, className }: EmptyStateProps): import("react").JSX.Element;
29
+ export default EmptyState;
@@ -0,0 +1,34 @@
1
+ export interface EventCalendarItem {
2
+ id: string;
3
+ title: string;
4
+ /** The day it happens. Only the date part is used. */
5
+ date: Date;
6
+ /** Already formatted, e.g. "09:30" or "All day". */
7
+ time?: string;
8
+ /** Highlight it in the accent colour. */
9
+ accent?: boolean;
10
+ /** Optional detail shown in the day list. */
11
+ note?: string;
12
+ }
13
+ export interface EventCalendarProps {
14
+ events: EventCalendarItem[];
15
+ /** The selected day. Pass with `onSelect` to control it. */
16
+ selected?: Date;
17
+ defaultSelected?: Date;
18
+ onSelect?: (day: Date) => void;
19
+ /** Override "today", handy for demos and tests. */
20
+ today?: Date;
21
+ /** BCP 47 locale for month and weekday names. */
22
+ locale?: string;
23
+ /** 0 = Sunday, 1 = Monday. */
24
+ weekStartsOn?: 0 | 1;
25
+ onEventClick?: (event: EventCalendarItem) => void;
26
+ className?: string;
27
+ }
28
+ /**
29
+ * A month calendar with event pills and a list for the selected day. Months slide in from the side you
30
+ * moved to. Arrow keys move by day and week, Home and End jump to the week's ends, Page Up and Page
31
+ * Down change the month, and Enter selects.
32
+ */
33
+ export declare function EventCalendar({ events, selected, defaultSelected, onSelect, today: todayProp, locale, weekStartsOn, onEventClick, className }: EventCalendarProps): import("react").JSX.Element;
34
+ export default EventCalendar;
@@ -0,0 +1,37 @@
1
+ import { type ReactNode } from "react";
2
+ export interface UploadItem {
3
+ id: string;
4
+ file: File;
5
+ /** 0 to 1. */
6
+ progress: number;
7
+ status: "uploading" | "done" | "error";
8
+ }
9
+ export interface FileUploadProps {
10
+ /** Same format as the input's `accept`: "image/*", "application/pdf", ".csv". */
11
+ accept?: string;
12
+ /** Largest file in bytes. */
13
+ maxSize?: number;
14
+ maxFiles?: number;
15
+ multiple?: boolean;
16
+ /**
17
+ * Upload one file and report progress (0–1) as you go. Throw to mark it failed. Without it, files are
18
+ * added as done straight away. The signal aborts when the row is removed or replaced.
19
+ */
20
+ onUpload?: (file: File, setProgress: (progress: number) => void, signal: AbortSignal) => Promise<void>;
21
+ /** Called with every file that finished uploading, whenever that list changes. */
22
+ onChange?: (files: File[]) => void;
23
+ /** Main line in the drop zone. */
24
+ label?: ReactNode;
25
+ /** Small line under it. Defaults to the accepted types and size limit. */
26
+ hint?: ReactNode;
27
+ disabled?: boolean;
28
+ className?: string;
29
+ }
30
+ export declare const formatBytes: (n: number) => string;
31
+ /**
32
+ * A drop zone and a file list. Drag files over it (it lifts and turns blue), or click / press Enter to
33
+ * browse. Each file gets a row with a progress bar and a remove button. `accept`, `maxSize` and `maxFiles`
34
+ * reject what doesn't fit and say why.
35
+ */
36
+ export declare function FileUpload({ accept, maxSize, maxFiles, multiple, onUpload, onChange, label, hint, disabled, className }: FileUploadProps): import("react").JSX.Element;
37
+ export default FileUpload;
@@ -0,0 +1,31 @@
1
+ import { type ReactElement, type ReactNode } from "react";
2
+ export type HoverCardSide = "top" | "bottom";
3
+ export type HoverCardAlign = "start" | "center" | "end";
4
+ export interface HoverCardProps {
5
+ /** A focusable element, usually a link. It gets the hover and focus handlers merged in. */
6
+ trigger: ReactElement;
7
+ /** Card content. */
8
+ children: ReactNode;
9
+ open?: boolean;
10
+ defaultOpen?: boolean;
11
+ onOpenChange?: (open: boolean) => void;
12
+ /** Wait this long on hover or focus before opening, in ms. */
13
+ openDelay?: number;
14
+ /** Wait this long after the pointer leaves before closing, in ms. */
15
+ closeDelay?: number;
16
+ side?: HoverCardSide;
17
+ align?: HoverCardAlign;
18
+ /** Gap between the trigger and the card, in px. */
19
+ offset?: number;
20
+ /** Accessible name for the card. */
21
+ label?: string;
22
+ /** Extra classes for the card (width, padding). */
23
+ className?: string;
24
+ }
25
+ /**
26
+ * A preview card for a link, like a profile peek. It opens after a short hover or on keyboard focus, and
27
+ * stays open while the pointer travels into it, so you can use what's inside. It fades and lifts in, flips
28
+ * when there's no room, and closes on leave, blur or Escape. Touch taps just follow the link.
29
+ */
30
+ export declare function HoverCard({ trigger, children, open, defaultOpen, onOpenChange, openDelay, closeDelay, side, align, offset, label, className }: HoverCardProps): import("react").JSX.Element;
31
+ export default HoverCard;
@@ -0,0 +1,29 @@
1
+ import { type ReactNode } from "react";
2
+ export interface ImageCompareProps {
3
+ /** Shown left of the handle. An image URL, or any node that fills the frame. */
4
+ before: string | ReactNode;
5
+ /** Shown right of the handle. */
6
+ after: string | ReactNode;
7
+ beforeLabel?: string;
8
+ afterLabel?: string;
9
+ /** Alt text when `before` / `after` are URLs. */
10
+ beforeAlt?: string;
11
+ afterAlt?: string;
12
+ /** Handle position from the left, 0–100. */
13
+ value?: number;
14
+ defaultValue?: number;
15
+ onValueChange?: (value: number) => void;
16
+ /** Arrow-key step, in percent. PageUp/PageDown move ten steps. */
17
+ step?: number;
18
+ /** Accessible name for the handle. */
19
+ label?: string;
20
+ /** Classes for the frame (aspect ratio, radius, width). */
21
+ className?: string;
22
+ }
23
+ /**
24
+ * A before/after slider. Drag anywhere on the frame, or focus the handle and use the arrows, Home and End.
25
+ * Nothing is clipped with clip-path: the before layer sits in a window that slides with the handle while
26
+ * the picture inside slides the other way, so only transforms move. Vertical swipes still scroll the page.
27
+ */
28
+ export declare function ImageCompare({ before, after, beforeLabel, afterLabel, beforeAlt, afterAlt, value, defaultValue, onValueChange, step, label, className }: ImageCompareProps): import("react").JSX.Element;
29
+ export default ImageCompare;