asta-ui 0.2.1 → 0.4.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 (581) hide show
  1. package/dist/accordion.js +1 -1
  2. package/dist/ai-chat.d.ts +2 -0
  3. package/dist/ai-chat.js +9 -0
  4. package/dist/alert.d.ts +2 -0
  5. package/dist/alert.js +9 -0
  6. package/dist/announcement-bar.d.ts +2 -0
  7. package/dist/announcement-bar.js +9 -0
  8. package/dist/avatar-group.d.ts +2 -0
  9. package/dist/avatar-group.js +10 -0
  10. package/dist/avatar.js +3 -1
  11. package/dist/base/ai-chat.d.ts +2 -0
  12. package/dist/base/ai-chat.js +9 -0
  13. package/dist/base/alert.d.ts +2 -0
  14. package/dist/base/alert.js +9 -0
  15. package/dist/base/announcement-bar.d.ts +2 -0
  16. package/dist/base/announcement-bar.js +9 -0
  17. package/dist/base/avatar-group.d.ts +2 -0
  18. package/dist/base/avatar-group.js +10 -0
  19. package/dist/base/avatar.js +3 -1
  20. package/dist/base/booking-slots.d.ts +2 -0
  21. package/dist/base/booking-slots.js +7 -0
  22. package/dist/base/breadcrumb.d.ts +2 -0
  23. package/dist/base/breadcrumb.js +9 -0
  24. package/dist/base/card-checkout.js +1 -1
  25. package/dist/base/carousel.d.ts +2 -0
  26. package/dist/base/carousel.js +9 -0
  27. package/dist/base/chat-thread.d.ts +2 -0
  28. package/dist/base/chat-thread.js +7 -0
  29. package/dist/base/checkout.d.ts +2 -0
  30. package/dist/base/checkout.js +12 -0
  31. package/dist/base/color-picker.d.ts +2 -0
  32. package/dist/base/color-picker.js +9 -0
  33. package/dist/base/combobox.d.ts +2 -0
  34. package/dist/base/combobox.js +9 -0
  35. package/dist/base/comments.d.ts +2 -0
  36. package/dist/base/comments.js +11 -0
  37. package/dist/base/context-menu.d.ts +2 -0
  38. package/dist/base/context-menu.js +9 -0
  39. package/dist/base/copy-button.d.ts +2 -0
  40. package/dist/base/copy-button.js +9 -0
  41. package/dist/base/data-table.d.ts +2 -0
  42. package/dist/base/data-table.js +9 -0
  43. package/dist/base/date-picker.d.ts +2 -0
  44. package/dist/base/date-picker.js +9 -0
  45. package/dist/base/drawer.d.ts +2 -0
  46. package/dist/base/drawer.js +9 -0
  47. package/dist/base/empty-state.d.ts +2 -0
  48. package/dist/base/empty-state.js +10 -0
  49. package/dist/base/event-calendar.d.ts +2 -0
  50. package/dist/base/event-calendar.js +9 -0
  51. package/dist/base/file-upload.d.ts +2 -0
  52. package/dist/base/file-upload.js +11 -0
  53. package/dist/base/footer-aui-025.d.ts +2 -0
  54. package/dist/base/footer-aui-025.js +9 -0
  55. package/dist/base/footer-aui-026.d.ts +2 -0
  56. package/dist/base/footer-aui-026.js +9 -0
  57. package/dist/base/footer-aui-027.d.ts +2 -0
  58. package/dist/base/footer-aui-027.js +9 -0
  59. package/dist/base/footer-aui-028.d.ts +2 -0
  60. package/dist/base/footer-aui-028.js +9 -0
  61. package/dist/base/hover-card.d.ts +2 -0
  62. package/dist/base/hover-card.js +9 -0
  63. package/dist/base/image-compare.d.ts +2 -0
  64. package/dist/base/image-compare.js +9 -0
  65. package/dist/base/inline-edit.d.ts +2 -0
  66. package/dist/base/inline-edit.js +9 -0
  67. package/dist/base/kanban.d.ts +2 -0
  68. package/dist/base/kanban.js +10 -0
  69. package/dist/base/navbar-aui-009.d.ts +2 -0
  70. package/dist/base/navbar-aui-009.js +9 -0
  71. package/dist/base/navbar-aui-010.d.ts +2 -0
  72. package/dist/base/navbar-aui-010.js +9 -0
  73. package/dist/base/navbar-aui-011.d.ts +2 -0
  74. package/dist/base/navbar-aui-011.js +9 -0
  75. package/dist/base/navbar-aui-012.d.ts +2 -0
  76. package/dist/base/navbar-aui-012.js +9 -0
  77. package/dist/base/navbar-aui-013.d.ts +2 -0
  78. package/dist/base/navbar-aui-013.js +9 -0
  79. package/dist/base/navbar-aui-014.d.ts +2 -0
  80. package/dist/base/navbar-aui-014.js +9 -0
  81. package/dist/base/notification-center.d.ts +2 -0
  82. package/dist/base/notification-center.js +11 -0
  83. package/dist/base/notification-stack.d.ts +2 -0
  84. package/dist/base/notification-stack.js +7 -0
  85. package/dist/base/now-playing.d.ts +2 -0
  86. package/dist/base/now-playing.js +7 -0
  87. package/dist/base/onboarding.d.ts +2 -0
  88. package/dist/base/onboarding.js +10 -0
  89. package/dist/base/otp-input.d.ts +2 -0
  90. package/dist/base/otp-input.js +9 -0
  91. package/dist/base/pagination.d.ts +2 -0
  92. package/dist/base/pagination.js +11 -0
  93. package/dist/base/password-input.d.ts +2 -0
  94. package/dist/base/password-input.js +13 -0
  95. package/dist/base/payment-received.d.ts +2 -0
  96. package/dist/base/payment-received.js +7 -0
  97. package/dist/base/plan-switcher.d.ts +2 -0
  98. package/dist/base/plan-switcher.js +7 -0
  99. package/dist/base/popover.d.ts +2 -0
  100. package/dist/base/popover.js +9 -0
  101. package/dist/base/pricing-aui-021.d.ts +2 -0
  102. package/dist/base/pricing-aui-021.js +9 -0
  103. package/dist/base/pricing-aui-022.d.ts +2 -0
  104. package/dist/base/pricing-aui-022.js +9 -0
  105. package/dist/base/pricing-aui-023.d.ts +2 -0
  106. package/dist/base/pricing-aui-023.js +9 -0
  107. package/dist/base/pricing-aui-024.d.ts +2 -0
  108. package/dist/base/pricing-aui-024.js +9 -0
  109. package/dist/base/progress.d.ts +2 -0
  110. package/dist/base/progress.js +11 -0
  111. package/dist/base/range-slider.d.ts +2 -0
  112. package/dist/base/range-slider.js +9 -0
  113. package/dist/base/rating.d.ts +2 -0
  114. package/dist/base/rating.js +9 -0
  115. package/dist/base/seat-picker.d.ts +2 -0
  116. package/dist/base/seat-picker.js +7 -0
  117. package/dist/base/shipment-tracker.d.ts +2 -0
  118. package/dist/base/shipment-tracker.js +7 -0
  119. package/dist/base/sidebar.d.ts +2 -0
  120. package/dist/base/sidebar.js +10 -0
  121. package/dist/base/sign-in-aui-015.d.ts +2 -0
  122. package/dist/base/sign-in-aui-015.js +9 -0
  123. package/dist/base/sign-in-aui-016.d.ts +2 -0
  124. package/dist/base/sign-in-aui-016.js +9 -0
  125. package/dist/base/sign-in-aui-017.d.ts +2 -0
  126. package/dist/base/sign-in-aui-017.js +9 -0
  127. package/dist/base/sign-in-aui-018.d.ts +2 -0
  128. package/dist/base/sign-in-aui-018.js +9 -0
  129. package/dist/base/sign-in-aui-019.d.ts +2 -0
  130. package/dist/base/sign-in-aui-019.js +9 -0
  131. package/dist/base/sign-in-aui-020.d.ts +2 -0
  132. package/dist/base/sign-in-aui-020.js +9 -0
  133. package/dist/base/spinner.js +1 -1
  134. package/dist/base/stat-card.d.ts +2 -0
  135. package/dist/base/stat-card.js +9 -0
  136. package/dist/base/stepper.d.ts +2 -0
  137. package/dist/base/stepper.js +9 -0
  138. package/dist/base/team-members.d.ts +2 -0
  139. package/dist/base/team-members.js +12 -0
  140. package/dist/base/timeline.d.ts +2 -0
  141. package/dist/base/timeline.js +9 -0
  142. package/dist/base/toggle-group.d.ts +2 -0
  143. package/dist/base/toggle-group.js +9 -0
  144. package/dist/base/token-swap.d.ts +2 -0
  145. package/dist/base/token-swap.js +7 -0
  146. package/dist/base/tree-view.d.ts +2 -0
  147. package/dist/base/tree-view.js +9 -0
  148. package/dist/base/wishlist.d.ts +2 -0
  149. package/dist/base/wishlist.js +7 -0
  150. package/dist/base.js +371 -47
  151. package/dist/booking-slots.d.ts +2 -0
  152. package/dist/booking-slots.js +7 -0
  153. package/dist/breadcrumb.d.ts +2 -0
  154. package/dist/breadcrumb.js +9 -0
  155. package/dist/card-checkout.js +1 -1
  156. package/dist/carousel.d.ts +2 -0
  157. package/dist/carousel.js +9 -0
  158. package/dist/chat-thread.d.ts +2 -0
  159. package/dist/chat-thread.js +7 -0
  160. package/dist/checkout.d.ts +2 -0
  161. package/dist/checkout.js +12 -0
  162. package/dist/{chunk-VGBP42IZ.js → chunk-2LZM435Z.js} +3 -2
  163. package/dist/chunk-2SQQFICY.js +493 -0
  164. package/dist/chunk-33N6SZB5.js +186 -0
  165. package/dist/chunk-3KS5EN3Q.js +134 -0
  166. package/dist/chunk-3RMCFFW2.js +228 -0
  167. package/dist/chunk-45VUWOHQ.js +299 -0
  168. package/dist/chunk-4FR6KJOJ.js +91 -0
  169. package/dist/chunk-4GF7WTR3.js +230 -0
  170. package/dist/chunk-4XM6DKEO.js +164 -0
  171. package/dist/chunk-57PESBSZ.js +97 -0
  172. package/dist/chunk-5TSQZY34.js +246 -0
  173. package/dist/chunk-5U4H2CXC.js +308 -0
  174. package/dist/chunk-5WGDQ62P.js +122 -0
  175. package/dist/chunk-6B6NTRMC.js +293 -0
  176. package/dist/chunk-6HPSPZTF.js +232 -0
  177. package/dist/chunk-6NNHSXFD.js +539 -0
  178. package/dist/chunk-6VQTFRSP.js +435 -0
  179. package/dist/chunk-72UKXOMW.js +150 -0
  180. package/dist/chunk-746WX2DF.js +480 -0
  181. package/dist/chunk-7GKCX4IE.js +636 -0
  182. package/dist/chunk-7JNO265Q.js +431 -0
  183. package/dist/chunk-7SNVRPED.js +223 -0
  184. package/dist/chunk-AYSC7AIC.js +322 -0
  185. package/dist/chunk-B5F775GP.js +339 -0
  186. package/dist/chunk-B5OESWCR.js +339 -0
  187. package/dist/chunk-BGVAXPHD.js +305 -0
  188. package/dist/chunk-CA7YQ5BJ.js +271 -0
  189. package/dist/chunk-DRX3KRNL.js +191 -0
  190. package/dist/chunk-EAUUUVUR.js +123 -0
  191. package/dist/chunk-EXX6YSUX.js +340 -0
  192. package/dist/chunk-F526V5BA.js +254 -0
  193. package/dist/chunk-F7LAUVDJ.js +97 -0
  194. package/dist/chunk-FDHU3RWR.js +213 -0
  195. package/dist/chunk-FJGGXXTT.js +109 -0
  196. package/dist/chunk-FKHNK5VC.js +172 -0
  197. package/dist/chunk-FY6BRODJ.js +230 -0
  198. package/dist/chunk-GDTSCUHY.js +234 -0
  199. package/dist/chunk-H7D6G3GQ.js +290 -0
  200. package/dist/chunk-HB7DFNZP.js +109 -0
  201. package/dist/{chunk-H5C7HOQJ.js → chunk-HNO6EUGJ.js} +3 -2
  202. package/dist/chunk-HPVPHWDM.js +197 -0
  203. package/dist/chunk-I5NZSWDW.js +431 -0
  204. package/dist/chunk-IMBCYI3F.js +114 -0
  205. package/dist/chunk-IS2VTYDA.js +235 -0
  206. package/dist/chunk-ISZ7O2Q6.js +245 -0
  207. package/dist/chunk-JAQKJBVJ.js +170 -0
  208. package/dist/chunk-KYFZ5TTK.js +271 -0
  209. package/dist/chunk-LBXIMJFU.js +170 -0
  210. package/dist/chunk-LPTY5WXM.js +231 -0
  211. package/dist/chunk-MDI73RL6.js +245 -0
  212. package/dist/chunk-MSBN2O66.js +110 -0
  213. package/dist/chunk-MUDW65ZT.js +220 -0
  214. package/dist/chunk-NB7X26PY.js +388 -0
  215. package/dist/chunk-NIYIT2QU.js +118 -0
  216. package/dist/chunk-NZRQL3SA.js +201 -0
  217. package/dist/chunk-OFYGJUKP.js +278 -0
  218. package/dist/{chunk-NDBLIYMX.js → chunk-OKCSTMX3.js} +2 -2
  219. package/dist/chunk-P37H477M.js +236 -0
  220. package/dist/chunk-QSLS3ENY.js +469 -0
  221. package/dist/chunk-RBTX7TVA.js +170 -0
  222. package/dist/chunk-RFVKRVTD.js +172 -0
  223. package/dist/chunk-RIWKIBEP.js +271 -0
  224. package/dist/chunk-RRHQBGRO.js +327 -0
  225. package/dist/chunk-RSUZHZCG.js +230 -0
  226. package/dist/chunk-S2DJLW6B.js +322 -0
  227. package/dist/chunk-SDL3JXFN.js +97 -0
  228. package/dist/chunk-SDOWCCM2.js +271 -0
  229. package/dist/chunk-SPKSRH6G.js +283 -0
  230. package/dist/chunk-TLODJONC.js +120 -0
  231. package/dist/chunk-TXRLBMFL.js +191 -0
  232. package/dist/{chunk-2OGTIQVU.js → chunk-UEOEWP7L.js} +1 -1
  233. package/dist/chunk-UTGEGGSE.js +309 -0
  234. package/dist/chunk-UWQ26LYZ.js +133 -0
  235. package/dist/chunk-V3SPSN3A.js +308 -0
  236. package/dist/chunk-W57O4RLL.js +435 -0
  237. package/dist/chunk-WNPMHOXE.js +136 -0
  238. package/dist/chunk-WO36QUH3.js +188 -0
  239. package/dist/chunk-WTNNS7AX.js +362 -0
  240. package/dist/{chunk-AS6RA64I.js → chunk-XTP6ITUJ.js} +3 -1
  241. package/dist/chunk-YLAL6ICI.js +142 -0
  242. package/dist/chunk-ZGMBQZDV.js +250 -0
  243. package/dist/chunk-ZKMEKSJZ.js +133 -0
  244. package/dist/color-picker.d.ts +2 -0
  245. package/dist/color-picker.js +9 -0
  246. package/dist/combobox.d.ts +2 -0
  247. package/dist/combobox.js +9 -0
  248. package/dist/comments.d.ts +2 -0
  249. package/dist/comments.js +11 -0
  250. package/dist/context-menu.d.ts +2 -0
  251. package/dist/context-menu.js +9 -0
  252. package/dist/copy-button.d.ts +2 -0
  253. package/dist/copy-button.js +9 -0
  254. package/dist/data-table.d.ts +2 -0
  255. package/dist/data-table.js +9 -0
  256. package/dist/date-picker.d.ts +2 -0
  257. package/dist/date-picker.js +9 -0
  258. package/dist/drawer.d.ts +2 -0
  259. package/dist/drawer.js +9 -0
  260. package/dist/empty-state.d.ts +2 -0
  261. package/dist/empty-state.js +10 -0
  262. package/dist/event-calendar.d.ts +2 -0
  263. package/dist/event-calendar.js +9 -0
  264. package/dist/file-upload.d.ts +2 -0
  265. package/dist/file-upload.js +11 -0
  266. package/dist/footer-aui-025.d.ts +2 -0
  267. package/dist/footer-aui-025.js +9 -0
  268. package/dist/footer-aui-026.d.ts +2 -0
  269. package/dist/footer-aui-026.js +9 -0
  270. package/dist/footer-aui-027.d.ts +2 -0
  271. package/dist/footer-aui-027.js +9 -0
  272. package/dist/footer-aui-028.d.ts +2 -0
  273. package/dist/footer-aui-028.js +9 -0
  274. package/dist/hover-card.d.ts +2 -0
  275. package/dist/hover-card.js +9 -0
  276. package/dist/image-compare.d.ts +2 -0
  277. package/dist/image-compare.js +9 -0
  278. package/dist/index.js +372 -48
  279. package/dist/inline-edit.d.ts +2 -0
  280. package/dist/inline-edit.js +9 -0
  281. package/dist/kanban.d.ts +2 -0
  282. package/dist/kanban.js +10 -0
  283. package/dist/navbar-aui-009.d.ts +2 -0
  284. package/dist/navbar-aui-009.js +9 -0
  285. package/dist/navbar-aui-010.d.ts +2 -0
  286. package/dist/navbar-aui-010.js +9 -0
  287. package/dist/navbar-aui-011.d.ts +2 -0
  288. package/dist/navbar-aui-011.js +9 -0
  289. package/dist/navbar-aui-012.d.ts +2 -0
  290. package/dist/navbar-aui-012.js +9 -0
  291. package/dist/navbar-aui-013.d.ts +2 -0
  292. package/dist/navbar-aui-013.js +9 -0
  293. package/dist/navbar-aui-014.d.ts +2 -0
  294. package/dist/navbar-aui-014.js +9 -0
  295. package/dist/notification-center.d.ts +2 -0
  296. package/dist/notification-center.js +11 -0
  297. package/dist/notification-stack.d.ts +2 -0
  298. package/dist/notification-stack.js +7 -0
  299. package/dist/now-playing.d.ts +2 -0
  300. package/dist/now-playing.js +7 -0
  301. package/dist/onboarding.d.ts +2 -0
  302. package/dist/onboarding.js +10 -0
  303. package/dist/otp-input.d.ts +2 -0
  304. package/dist/otp-input.js +9 -0
  305. package/dist/pagination.d.ts +2 -0
  306. package/dist/pagination.js +11 -0
  307. package/dist/password-input.d.ts +2 -0
  308. package/dist/password-input.js +13 -0
  309. package/dist/payment-received.d.ts +2 -0
  310. package/dist/payment-received.js +7 -0
  311. package/dist/plan-switcher.d.ts +2 -0
  312. package/dist/plan-switcher.js +7 -0
  313. package/dist/popover.d.ts +2 -0
  314. package/dist/popover.js +9 -0
  315. package/dist/pricing-aui-021.d.ts +2 -0
  316. package/dist/pricing-aui-021.js +9 -0
  317. package/dist/pricing-aui-022.d.ts +2 -0
  318. package/dist/pricing-aui-022.js +9 -0
  319. package/dist/pricing-aui-023.d.ts +2 -0
  320. package/dist/pricing-aui-023.js +9 -0
  321. package/dist/pricing-aui-024.d.ts +2 -0
  322. package/dist/pricing-aui-024.js +9 -0
  323. package/dist/progress.d.ts +2 -0
  324. package/dist/progress.js +11 -0
  325. package/dist/range-slider.d.ts +2 -0
  326. package/dist/range-slider.js +9 -0
  327. package/dist/rating.d.ts +2 -0
  328. package/dist/rating.js +9 -0
  329. package/dist/seat-picker.d.ts +2 -0
  330. package/dist/seat-picker.js +7 -0
  331. package/dist/shipment-tracker.d.ts +2 -0
  332. package/dist/shipment-tracker.js +7 -0
  333. package/dist/sidebar.d.ts +2 -0
  334. package/dist/sidebar.js +10 -0
  335. package/dist/sign-in-aui-015.d.ts +2 -0
  336. package/dist/sign-in-aui-015.js +9 -0
  337. package/dist/sign-in-aui-016.d.ts +2 -0
  338. package/dist/sign-in-aui-016.js +9 -0
  339. package/dist/sign-in-aui-017.d.ts +2 -0
  340. package/dist/sign-in-aui-017.js +9 -0
  341. package/dist/sign-in-aui-018.d.ts +2 -0
  342. package/dist/sign-in-aui-018.js +9 -0
  343. package/dist/sign-in-aui-019.d.ts +2 -0
  344. package/dist/sign-in-aui-019.js +9 -0
  345. package/dist/sign-in-aui-020.d.ts +2 -0
  346. package/dist/sign-in-aui-020.js +9 -0
  347. package/dist/spinner.js +1 -1
  348. package/dist/stat-card.d.ts +2 -0
  349. package/dist/stat-card.js +9 -0
  350. package/dist/stepper.d.ts +2 -0
  351. package/dist/stepper.js +9 -0
  352. package/dist/team-members.d.ts +2 -0
  353. package/dist/team-members.js +12 -0
  354. package/dist/timeline.d.ts +2 -0
  355. package/dist/timeline.js +9 -0
  356. package/dist/toggle-group.d.ts +2 -0
  357. package/dist/toggle-group.js +9 -0
  358. package/dist/token-swap.d.ts +2 -0
  359. package/dist/token-swap.js +7 -0
  360. package/dist/tree-view.d.ts +2 -0
  361. package/dist/tree-view.js +9 -0
  362. package/dist/types/components/kit/ai-chat.d.ts +37 -0
  363. package/dist/types/components/kit/alert.d.ts +27 -0
  364. package/dist/types/components/kit/announcement-bar.d.ts +36 -0
  365. package/dist/types/components/kit/avatar-group.d.ts +22 -0
  366. package/dist/types/components/kit/avatar.d.ts +2 -0
  367. package/dist/types/components/kit/base/avatar-group.d.ts +22 -0
  368. package/dist/types/components/kit/base/avatar.d.ts +2 -0
  369. package/dist/types/components/kit/base/checkout.d.ts +68 -0
  370. package/dist/types/components/kit/base/comments.d.ts +30 -0
  371. package/dist/types/components/kit/base/empty-state.d.ts +29 -0
  372. package/dist/types/components/kit/base/kanban.d.ts +26 -0
  373. package/dist/types/components/kit/base/notification-center.d.ts +34 -0
  374. package/dist/types/components/kit/base/onboarding.d.ts +28 -0
  375. package/dist/types/components/kit/base/sidebar.d.ts +43 -0
  376. package/dist/types/components/kit/base/team-members.d.ts +46 -0
  377. package/dist/types/components/kit/breadcrumb.d.ts +29 -0
  378. package/dist/types/components/kit/carousel.d.ts +21 -0
  379. package/dist/types/components/kit/checkout.d.ts +68 -0
  380. package/dist/types/components/kit/color-picker.d.ts +28 -0
  381. package/dist/types/components/kit/combobox.d.ts +40 -0
  382. package/dist/types/components/kit/comments.d.ts +30 -0
  383. package/dist/types/components/kit/context-menu.d.ts +37 -0
  384. package/dist/types/components/kit/copy-button.d.ts +20 -0
  385. package/dist/types/components/kit/data-table.d.ts +47 -0
  386. package/dist/types/components/kit/date-picker.d.ts +40 -0
  387. package/dist/types/components/kit/drawer.d.ts +26 -0
  388. package/dist/types/components/kit/empty-state.d.ts +29 -0
  389. package/dist/types/components/kit/event-calendar.d.ts +34 -0
  390. package/dist/types/components/kit/file-upload.d.ts +37 -0
  391. package/dist/types/components/kit/hover-card.d.ts +31 -0
  392. package/dist/types/components/kit/image-compare.d.ts +29 -0
  393. package/dist/types/components/kit/inline-edit.d.ts +26 -0
  394. package/dist/types/components/kit/kanban.d.ts +26 -0
  395. package/dist/types/components/kit/notification-center.d.ts +34 -0
  396. package/dist/types/components/kit/onboarding.d.ts +28 -0
  397. package/dist/types/components/kit/otp-input.d.ts +28 -0
  398. package/dist/types/components/kit/pagination.d.ts +25 -0
  399. package/dist/types/components/kit/password-input.d.ts +32 -0
  400. package/dist/types/components/kit/popover.d.ts +40 -0
  401. package/dist/types/components/kit/progress.d.ts +37 -0
  402. package/dist/types/components/kit/range-slider.d.ts +27 -0
  403. package/dist/types/components/kit/rating.d.ts +23 -0
  404. package/dist/types/components/kit/sidebar.d.ts +43 -0
  405. package/dist/types/components/kit/stat-card.d.ts +24 -0
  406. package/dist/types/components/kit/stepper.d.ts +36 -0
  407. package/dist/types/components/kit/team-members.d.ts +46 -0
  408. package/dist/types/components/kit/timeline.d.ts +24 -0
  409. package/dist/types/components/kit/toggle-group.d.ts +42 -0
  410. package/dist/types/components/kit/tree-view.d.ts +31 -0
  411. package/dist/types/components/kit/variants/footer-aui-025.d.ts +22 -0
  412. package/dist/types/components/kit/variants/footer-aui-026.d.ts +21 -0
  413. package/dist/types/components/kit/variants/footer-aui-027.d.ts +36 -0
  414. package/dist/types/components/kit/variants/footer-aui-028.d.ts +34 -0
  415. package/dist/types/components/kit/variants/navbar-aui-009.d.ts +62 -0
  416. package/dist/types/components/kit/variants/navbar-aui-010.d.ts +30 -0
  417. package/dist/types/components/kit/variants/navbar-aui-011.d.ts +65 -0
  418. package/dist/types/components/kit/variants/navbar-aui-012.d.ts +50 -0
  419. package/dist/types/components/kit/variants/navbar-aui-013.d.ts +70 -0
  420. package/dist/types/components/kit/variants/navbar-aui-014.d.ts +31 -0
  421. package/dist/types/components/kit/variants/pricing-aui-021.d.ts +30 -0
  422. package/dist/types/components/kit/variants/pricing-aui-022.d.ts +34 -0
  423. package/dist/types/components/kit/variants/pricing-aui-023.d.ts +26 -0
  424. package/dist/types/components/kit/variants/pricing-aui-024.d.ts +29 -0
  425. package/dist/types/components/kit/variants/sign-in-aui-015.d.ts +21 -0
  426. package/dist/types/components/kit/variants/sign-in-aui-016.d.ts +28 -0
  427. package/dist/types/components/kit/variants/sign-in-aui-017.d.ts +21 -0
  428. package/dist/types/components/kit/variants/sign-in-aui-018.d.ts +22 -0
  429. package/dist/types/components/kit/variants/sign-in-aui-019.d.ts +22 -0
  430. package/dist/types/components/kit/variants/sign-in-aui-020.d.ts +27 -0
  431. package/dist/types/components/lab/blocks/BookingSlots.d.ts +2 -0
  432. package/dist/types/components/lab/blocks/ChatThread.d.ts +2 -0
  433. package/dist/types/components/lab/blocks/NotificationStack.d.ts +2 -0
  434. package/dist/types/components/lab/blocks/NowPlaying.d.ts +2 -0
  435. package/dist/types/components/lab/blocks/PaymentReceived.d.ts +2 -0
  436. package/dist/types/components/lab/blocks/PlanSwitcher.d.ts +2 -0
  437. package/dist/types/components/lab/blocks/SeatPicker.d.ts +2 -0
  438. package/dist/types/components/lab/blocks/ShipmentTracker.d.ts +2 -0
  439. package/dist/types/components/lab/blocks/TokenSwap.d.ts +2 -0
  440. package/dist/types/components/lab/blocks/Wishlist.d.ts +2 -0
  441. package/dist/types/packages/asta-ui/src/ai-chat.d.ts +2 -0
  442. package/dist/types/packages/asta-ui/src/alert.d.ts +2 -0
  443. package/dist/types/packages/asta-ui/src/announcement-bar.d.ts +2 -0
  444. package/dist/types/packages/asta-ui/src/avatar-group.d.ts +2 -0
  445. package/dist/types/packages/asta-ui/src/base/ai-chat.d.ts +2 -0
  446. package/dist/types/packages/asta-ui/src/base/alert.d.ts +2 -0
  447. package/dist/types/packages/asta-ui/src/base/announcement-bar.d.ts +2 -0
  448. package/dist/types/packages/asta-ui/src/base/avatar-group.d.ts +2 -0
  449. package/dist/types/packages/asta-ui/src/base/booking-slots.d.ts +2 -0
  450. package/dist/types/packages/asta-ui/src/base/breadcrumb.d.ts +2 -0
  451. package/dist/types/packages/asta-ui/src/base/carousel.d.ts +2 -0
  452. package/dist/types/packages/asta-ui/src/base/chat-thread.d.ts +2 -0
  453. package/dist/types/packages/asta-ui/src/base/checkout.d.ts +2 -0
  454. package/dist/types/packages/asta-ui/src/base/color-picker.d.ts +2 -0
  455. package/dist/types/packages/asta-ui/src/base/combobox.d.ts +2 -0
  456. package/dist/types/packages/asta-ui/src/base/comments.d.ts +2 -0
  457. package/dist/types/packages/asta-ui/src/base/context-menu.d.ts +2 -0
  458. package/dist/types/packages/asta-ui/src/base/copy-button.d.ts +2 -0
  459. package/dist/types/packages/asta-ui/src/base/data-table.d.ts +2 -0
  460. package/dist/types/packages/asta-ui/src/base/date-picker.d.ts +2 -0
  461. package/dist/types/packages/asta-ui/src/base/drawer.d.ts +2 -0
  462. package/dist/types/packages/asta-ui/src/base/empty-state.d.ts +2 -0
  463. package/dist/types/packages/asta-ui/src/base/event-calendar.d.ts +2 -0
  464. package/dist/types/packages/asta-ui/src/base/file-upload.d.ts +2 -0
  465. package/dist/types/packages/asta-ui/src/base/footer-aui-025.d.ts +2 -0
  466. package/dist/types/packages/asta-ui/src/base/footer-aui-026.d.ts +2 -0
  467. package/dist/types/packages/asta-ui/src/base/footer-aui-027.d.ts +2 -0
  468. package/dist/types/packages/asta-ui/src/base/footer-aui-028.d.ts +2 -0
  469. package/dist/types/packages/asta-ui/src/base/hover-card.d.ts +2 -0
  470. package/dist/types/packages/asta-ui/src/base/image-compare.d.ts +2 -0
  471. package/dist/types/packages/asta-ui/src/base/inline-edit.d.ts +2 -0
  472. package/dist/types/packages/asta-ui/src/base/kanban.d.ts +2 -0
  473. package/dist/types/packages/asta-ui/src/base/navbar-aui-009.d.ts +2 -0
  474. package/dist/types/packages/asta-ui/src/base/navbar-aui-010.d.ts +2 -0
  475. package/dist/types/packages/asta-ui/src/base/navbar-aui-011.d.ts +2 -0
  476. package/dist/types/packages/asta-ui/src/base/navbar-aui-012.d.ts +2 -0
  477. package/dist/types/packages/asta-ui/src/base/navbar-aui-013.d.ts +2 -0
  478. package/dist/types/packages/asta-ui/src/base/navbar-aui-014.d.ts +2 -0
  479. package/dist/types/packages/asta-ui/src/base/notification-center.d.ts +2 -0
  480. package/dist/types/packages/asta-ui/src/base/notification-stack.d.ts +2 -0
  481. package/dist/types/packages/asta-ui/src/base/now-playing.d.ts +2 -0
  482. package/dist/types/packages/asta-ui/src/base/onboarding.d.ts +2 -0
  483. package/dist/types/packages/asta-ui/src/base/otp-input.d.ts +2 -0
  484. package/dist/types/packages/asta-ui/src/base/pagination.d.ts +2 -0
  485. package/dist/types/packages/asta-ui/src/base/password-input.d.ts +2 -0
  486. package/dist/types/packages/asta-ui/src/base/payment-received.d.ts +2 -0
  487. package/dist/types/packages/asta-ui/src/base/plan-switcher.d.ts +2 -0
  488. package/dist/types/packages/asta-ui/src/base/popover.d.ts +2 -0
  489. package/dist/types/packages/asta-ui/src/base/pricing-aui-021.d.ts +2 -0
  490. package/dist/types/packages/asta-ui/src/base/pricing-aui-022.d.ts +2 -0
  491. package/dist/types/packages/asta-ui/src/base/pricing-aui-023.d.ts +2 -0
  492. package/dist/types/packages/asta-ui/src/base/pricing-aui-024.d.ts +2 -0
  493. package/dist/types/packages/asta-ui/src/base/progress.d.ts +2 -0
  494. package/dist/types/packages/asta-ui/src/base/range-slider.d.ts +2 -0
  495. package/dist/types/packages/asta-ui/src/base/rating.d.ts +2 -0
  496. package/dist/types/packages/asta-ui/src/base/seat-picker.d.ts +2 -0
  497. package/dist/types/packages/asta-ui/src/base/shipment-tracker.d.ts +2 -0
  498. package/dist/types/packages/asta-ui/src/base/sidebar.d.ts +2 -0
  499. package/dist/types/packages/asta-ui/src/base/sign-in-aui-015.d.ts +2 -0
  500. package/dist/types/packages/asta-ui/src/base/sign-in-aui-016.d.ts +2 -0
  501. package/dist/types/packages/asta-ui/src/base/sign-in-aui-017.d.ts +2 -0
  502. package/dist/types/packages/asta-ui/src/base/sign-in-aui-018.d.ts +2 -0
  503. package/dist/types/packages/asta-ui/src/base/sign-in-aui-019.d.ts +2 -0
  504. package/dist/types/packages/asta-ui/src/base/sign-in-aui-020.d.ts +2 -0
  505. package/dist/types/packages/asta-ui/src/base/stat-card.d.ts +2 -0
  506. package/dist/types/packages/asta-ui/src/base/stepper.d.ts +2 -0
  507. package/dist/types/packages/asta-ui/src/base/team-members.d.ts +2 -0
  508. package/dist/types/packages/asta-ui/src/base/timeline.d.ts +2 -0
  509. package/dist/types/packages/asta-ui/src/base/toggle-group.d.ts +2 -0
  510. package/dist/types/packages/asta-ui/src/base/token-swap.d.ts +2 -0
  511. package/dist/types/packages/asta-ui/src/base/tree-view.d.ts +2 -0
  512. package/dist/types/packages/asta-ui/src/base/wishlist.d.ts +2 -0
  513. package/dist/types/packages/asta-ui/src/base.d.ts +127 -1
  514. package/dist/types/packages/asta-ui/src/booking-slots.d.ts +2 -0
  515. package/dist/types/packages/asta-ui/src/breadcrumb.d.ts +2 -0
  516. package/dist/types/packages/asta-ui/src/carousel.d.ts +2 -0
  517. package/dist/types/packages/asta-ui/src/chat-thread.d.ts +2 -0
  518. package/dist/types/packages/asta-ui/src/checkout.d.ts +2 -0
  519. package/dist/types/packages/asta-ui/src/color-picker.d.ts +2 -0
  520. package/dist/types/packages/asta-ui/src/combobox.d.ts +2 -0
  521. package/dist/types/packages/asta-ui/src/comments.d.ts +2 -0
  522. package/dist/types/packages/asta-ui/src/context-menu.d.ts +2 -0
  523. package/dist/types/packages/asta-ui/src/copy-button.d.ts +2 -0
  524. package/dist/types/packages/asta-ui/src/data-table.d.ts +2 -0
  525. package/dist/types/packages/asta-ui/src/date-picker.d.ts +2 -0
  526. package/dist/types/packages/asta-ui/src/drawer.d.ts +2 -0
  527. package/dist/types/packages/asta-ui/src/empty-state.d.ts +2 -0
  528. package/dist/types/packages/asta-ui/src/event-calendar.d.ts +2 -0
  529. package/dist/types/packages/asta-ui/src/file-upload.d.ts +2 -0
  530. package/dist/types/packages/asta-ui/src/footer-aui-025.d.ts +2 -0
  531. package/dist/types/packages/asta-ui/src/footer-aui-026.d.ts +2 -0
  532. package/dist/types/packages/asta-ui/src/footer-aui-027.d.ts +2 -0
  533. package/dist/types/packages/asta-ui/src/footer-aui-028.d.ts +2 -0
  534. package/dist/types/packages/asta-ui/src/hover-card.d.ts +2 -0
  535. package/dist/types/packages/asta-ui/src/image-compare.d.ts +2 -0
  536. package/dist/types/packages/asta-ui/src/index.d.ts +127 -1
  537. package/dist/types/packages/asta-ui/src/inline-edit.d.ts +2 -0
  538. package/dist/types/packages/asta-ui/src/kanban.d.ts +2 -0
  539. package/dist/types/packages/asta-ui/src/navbar-aui-009.d.ts +2 -0
  540. package/dist/types/packages/asta-ui/src/navbar-aui-010.d.ts +2 -0
  541. package/dist/types/packages/asta-ui/src/navbar-aui-011.d.ts +2 -0
  542. package/dist/types/packages/asta-ui/src/navbar-aui-012.d.ts +2 -0
  543. package/dist/types/packages/asta-ui/src/navbar-aui-013.d.ts +2 -0
  544. package/dist/types/packages/asta-ui/src/navbar-aui-014.d.ts +2 -0
  545. package/dist/types/packages/asta-ui/src/notification-center.d.ts +2 -0
  546. package/dist/types/packages/asta-ui/src/notification-stack.d.ts +2 -0
  547. package/dist/types/packages/asta-ui/src/now-playing.d.ts +2 -0
  548. package/dist/types/packages/asta-ui/src/onboarding.d.ts +2 -0
  549. package/dist/types/packages/asta-ui/src/otp-input.d.ts +2 -0
  550. package/dist/types/packages/asta-ui/src/pagination.d.ts +2 -0
  551. package/dist/types/packages/asta-ui/src/password-input.d.ts +2 -0
  552. package/dist/types/packages/asta-ui/src/payment-received.d.ts +2 -0
  553. package/dist/types/packages/asta-ui/src/plan-switcher.d.ts +2 -0
  554. package/dist/types/packages/asta-ui/src/popover.d.ts +2 -0
  555. package/dist/types/packages/asta-ui/src/pricing-aui-021.d.ts +2 -0
  556. package/dist/types/packages/asta-ui/src/pricing-aui-022.d.ts +2 -0
  557. package/dist/types/packages/asta-ui/src/pricing-aui-023.d.ts +2 -0
  558. package/dist/types/packages/asta-ui/src/pricing-aui-024.d.ts +2 -0
  559. package/dist/types/packages/asta-ui/src/progress.d.ts +2 -0
  560. package/dist/types/packages/asta-ui/src/range-slider.d.ts +2 -0
  561. package/dist/types/packages/asta-ui/src/rating.d.ts +2 -0
  562. package/dist/types/packages/asta-ui/src/seat-picker.d.ts +2 -0
  563. package/dist/types/packages/asta-ui/src/shipment-tracker.d.ts +2 -0
  564. package/dist/types/packages/asta-ui/src/sidebar.d.ts +2 -0
  565. package/dist/types/packages/asta-ui/src/sign-in-aui-015.d.ts +2 -0
  566. package/dist/types/packages/asta-ui/src/sign-in-aui-016.d.ts +2 -0
  567. package/dist/types/packages/asta-ui/src/sign-in-aui-017.d.ts +2 -0
  568. package/dist/types/packages/asta-ui/src/sign-in-aui-018.d.ts +2 -0
  569. package/dist/types/packages/asta-ui/src/sign-in-aui-019.d.ts +2 -0
  570. package/dist/types/packages/asta-ui/src/sign-in-aui-020.d.ts +2 -0
  571. package/dist/types/packages/asta-ui/src/stat-card.d.ts +2 -0
  572. package/dist/types/packages/asta-ui/src/stepper.d.ts +2 -0
  573. package/dist/types/packages/asta-ui/src/team-members.d.ts +2 -0
  574. package/dist/types/packages/asta-ui/src/timeline.d.ts +2 -0
  575. package/dist/types/packages/asta-ui/src/toggle-group.d.ts +2 -0
  576. package/dist/types/packages/asta-ui/src/token-swap.d.ts +2 -0
  577. package/dist/types/packages/asta-ui/src/tree-view.d.ts +2 -0
  578. package/dist/types/packages/asta-ui/src/wishlist.d.ts +2 -0
  579. package/dist/wishlist.d.ts +2 -0
  580. package/dist/wishlist.js +7 -0
  581. package/package.json +1 -1
@@ -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;
@@ -0,0 +1,26 @@
1
+ export interface InlineEditProps {
2
+ value?: string;
3
+ defaultValue?: string;
4
+ /** Called with the new text. Return a promise to show a saving state. If it rejects, editing stays open. */
5
+ onSave?: (value: string) => void | Promise<void>;
6
+ /** Called when an edit is dropped with Esc. */
7
+ onCancel?: () => void;
8
+ /** Shown when the value is empty. */
9
+ placeholder?: string;
10
+ /** Accessible name, e.g. "Project name". */
11
+ label: string;
12
+ /** Empty text can't be saved. Esc or blur puts the old text back. */
13
+ required?: boolean;
14
+ maxLength?: number;
15
+ /** Save when focus leaves the field. Off means blur cancels. */
16
+ saveOnBlur?: boolean;
17
+ size?: "sm" | "md" | "lg";
18
+ disabled?: boolean;
19
+ className?: string;
20
+ }
21
+ /**
22
+ * Text that turns into a field when you click it or press Enter. Enter saves, Esc puts the old text back,
23
+ * and a small tick fades in beside the text once it's saved. Async saves keep the field open until they land.
24
+ */
25
+ export declare function InlineEdit({ value, defaultValue, onSave, onCancel, placeholder, label, required, maxLength, saveOnBlur, size, disabled, className }: InlineEditProps): import("react").JSX.Element;
26
+ export default InlineEdit;
@@ -0,0 +1,26 @@
1
+ export interface KanbanColumn {
2
+ id: string;
3
+ title: string;
4
+ }
5
+ export interface KanbanCard {
6
+ id: string;
7
+ column: string;
8
+ title: string;
9
+ tag?: string;
10
+ assignee?: string;
11
+ due?: string;
12
+ }
13
+ export interface KanbanProps {
14
+ columns: KanbanColumn[];
15
+ defaultCards: KanbanCard[];
16
+ /** Called with the new order after every drop. */
17
+ onChange?: (cards: KanbanCard[]) => void;
18
+ className?: string;
19
+ }
20
+ /**
21
+ * A board with columns of cards. Drag a card with the pointer and the gap opens where it will land.
22
+ * With the keyboard: focus a card, press Space to pick it up, arrows to move it, Space to drop and
23
+ * Escape to cancel. Counts follow along and every move is announced.
24
+ */
25
+ export declare function Kanban({ columns, defaultCards, onChange, className }: KanbanProps): import("react").JSX.Element;
26
+ export default Kanban;
@@ -0,0 +1,34 @@
1
+ import { type PopoverAlign } from "./popover";
2
+ export interface NotificationEntry {
3
+ id: string;
4
+ title: string;
5
+ body?: string;
6
+ time: Date;
7
+ read?: boolean;
8
+ /** Who did it. Shows their avatar; without it a neutral bell is shown. */
9
+ actor?: {
10
+ name: string;
11
+ src?: string;
12
+ };
13
+ }
14
+ export interface NotificationCenterProps {
15
+ /** Controlled list. Pass with `onNotificationsChange`. */
16
+ notifications?: NotificationEntry[];
17
+ defaultNotifications?: NotificationEntry[];
18
+ onNotificationsChange?: (notifications: NotificationEntry[]) => void;
19
+ /** Called when a notification is clicked. It's marked read first. */
20
+ onOpenItem?: (notification: NotificationEntry) => void;
21
+ /** Override "now" for grouping and relative times. */
22
+ now?: Date;
23
+ locale?: string;
24
+ align?: PopoverAlign;
25
+ label?: string;
26
+ className?: string;
27
+ }
28
+ /**
29
+ * A bell with an unread count that opens a notification panel. Switch between All and Unread, read
30
+ * them grouped by day, and mark one or all as read: the blue dot fades out. The bell rings when new
31
+ * ones arrive. Arrow keys move through the list.
32
+ */
33
+ export declare function NotificationCenter({ notifications, defaultNotifications, onNotificationsChange, onOpenItem, now: nowProp, locale, align, label, className, }: NotificationCenterProps): import("react").JSX.Element;
34
+ export default NotificationCenter;
@@ -0,0 +1,28 @@
1
+ import { type ReactNode } from "react";
2
+ export interface OnboardingStep {
3
+ id: string;
4
+ title: string;
5
+ description: ReactNode;
6
+ /** Label of the button that completes the step. */
7
+ action?: string;
8
+ /** Rough time, e.g. "2 min". */
9
+ duration?: string;
10
+ }
11
+ export interface OnboardingProps {
12
+ title?: string;
13
+ subtitle?: string;
14
+ steps: OnboardingStep[];
15
+ defaultCompleted?: string[];
16
+ /** Runs when a step's button is pressed. Return a promise and the button shows progress until it resolves. */
17
+ onStep?: (id: string) => void | Promise<void>;
18
+ /** The done state's button. Leave it out to hide the button. */
19
+ onFinish?: () => void;
20
+ finishLabel?: string;
21
+ className?: string;
22
+ }
23
+ /**
24
+ * A setup checklist. One step is open at a time. Completing it ticks the mark, fills the bar and opens
25
+ * the next step that is still to do. When everything is done the card turns into a short done state.
26
+ */
27
+ export declare function Onboarding({ title, subtitle, steps, defaultCompleted, onStep, onFinish, finishLabel, className }: OnboardingProps): import("react").JSX.Element;
28
+ export default Onboarding;
@@ -0,0 +1,28 @@
1
+ export interface OtpInputProps {
2
+ /** Number of boxes. */
3
+ length?: number;
4
+ value?: string;
5
+ defaultValue?: string;
6
+ onChange?: (value: string) => void;
7
+ /** Called once every box is filled. */
8
+ onComplete?: (code: string) => void;
9
+ /** Accept digits only (default). Off allows letters too, upper-cased. */
10
+ digitsOnly?: boolean;
11
+ /** Mark the code as wrong. The boxes shake each time this turns true. */
12
+ error?: boolean;
13
+ disabled?: boolean;
14
+ autoFocus?: boolean;
15
+ /** Put a small dash after every N boxes, e.g. 3 for "123–456". */
16
+ groupSize?: number;
17
+ /** Accessible name. */
18
+ label?: string;
19
+ name?: string;
20
+ className?: string;
21
+ }
22
+ /**
23
+ * A one-time code input. One real input sits over the boxes, so typing, Backspace, paste and the phone's
24
+ * SMS autofill all just work. Digits drop in, the active box blinks a caret, a full code makes the boxes
25
+ * wave, and `error` shakes them once.
26
+ */
27
+ export declare function OtpInput({ length, value, defaultValue, onChange, onComplete, digitsOnly, error, disabled, autoFocus, groupSize, label, name, className, }: OtpInputProps): import("react").JSX.Element;
28
+ export default OtpInput;
@@ -0,0 +1,25 @@
1
+ export interface PaginationProps {
2
+ /** Total number of pages. */
3
+ count: number;
4
+ /** Current page, 1-based. */
5
+ page?: number;
6
+ defaultPage?: number;
7
+ onPageChange?: (page: number) => void;
8
+ /** Pages shown on each side of the current one. */
9
+ siblings?: number;
10
+ /** Pages always shown at the start and end. */
11
+ boundaries?: number;
12
+ size?: "sm" | "md";
13
+ /** Accessible name, e.g. "Orders pages". */
14
+ label?: string;
15
+ className?: string;
16
+ }
17
+ type Slot = number | "start-gap" | "end-gap";
18
+ /** The page numbers to show, with gaps where pages are skipped. A gap never hides just one page. */
19
+ export declare function pageRange(page: number, count: number, siblings?: number, boundaries?: number): Slot[];
20
+ /**
21
+ * Page numbers with previous and next. Skipped pages collapse into an ellipsis, and the active marker slides
22
+ * from the old page to the new one. Arrow keys move a page while focus is inside.
23
+ */
24
+ export declare function Pagination({ count, page, defaultPage, onPageChange, siblings, boundaries, size, label, className }: PaginationProps): import("react").JSX.Element;
25
+ export default Pagination;
@@ -0,0 +1,32 @@
1
+ import { type InputHTMLAttributes } from "react";
2
+ export interface PasswordRule {
3
+ label: string;
4
+ test: (value: string) => boolean;
5
+ }
6
+ export declare const DEFAULT_PASSWORD_RULES: PasswordRule[];
7
+ /** How many rules a password passes, and the matching word. */
8
+ export declare function passwordStrength(value: string, rules?: PasswordRule[]): {
9
+ score: number;
10
+ max: number;
11
+ passed: boolean[];
12
+ word: string;
13
+ strong: boolean;
14
+ };
15
+ export interface PasswordFieldProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "value" | "defaultValue" | "onChange" | "size"> {
16
+ value?: string;
17
+ defaultValue?: string;
18
+ onChange?: (value: string, strength: ReturnType<typeof passwordStrength>) => void;
19
+ label?: string;
20
+ rules?: PasswordRule[];
21
+ /** Show the segmented strength meter. */
22
+ meter?: boolean;
23
+ /** Show the rule checklist under the meter. */
24
+ checklist?: boolean;
25
+ className?: string;
26
+ }
27
+ /**
28
+ * A new-password field. The eye morphs when you reveal the text, the meter segments fill as more rules pass
29
+ * (they turn blue once every rule passes) and each rule ticks itself off. Rules are plain `{ label, test }`.
30
+ */
31
+ export declare function PasswordField({ value, defaultValue, onChange, label, rules, meter, checklist, className, id, autoComplete, ...rest }: PasswordFieldProps): import("react").JSX.Element;
32
+ export default PasswordField;
@@ -0,0 +1,40 @@
1
+ import { type MouseEvent, type ReactElement, type ReactNode } from "react";
2
+ export type PopoverSide = "top" | "right" | "bottom" | "left";
3
+ export type PopoverAlign = "start" | "center" | "end";
4
+ /** Props to spread on your own trigger when you pass `trigger` as a function. */
5
+ export interface PopoverTriggerProps {
6
+ ref: (el: HTMLElement | null) => void;
7
+ onClick: (e: MouseEvent<HTMLElement>) => void;
8
+ "aria-haspopup": "dialog";
9
+ "aria-expanded": boolean;
10
+ "aria-controls": string | undefined;
11
+ "data-state": "open" | "closed";
12
+ }
13
+ export interface PopoverProps {
14
+ /** A focusable element (it gets the props merged in), or a function that receives the props to spread. */
15
+ trigger: ReactElement | ((props: PopoverTriggerProps, open: boolean) => ReactNode);
16
+ /** Panel content, or a function that gets `close`. */
17
+ children: ReactNode | ((api: {
18
+ close: () => void;
19
+ }) => ReactNode);
20
+ open?: boolean;
21
+ defaultOpen?: boolean;
22
+ onOpenChange?: (open: boolean) => void;
23
+ side?: PopoverSide;
24
+ align?: PopoverAlign;
25
+ /** Gap between trigger and panel, in px. */
26
+ offset?: number;
27
+ /** Draw a small arrow pointing at the trigger. */
28
+ arrow?: boolean;
29
+ /** Accessible name for the panel. */
30
+ label?: string;
31
+ /** Extra classes for the panel (padding, width). */
32
+ className?: string;
33
+ }
34
+ /**
35
+ * A click-to-open panel anchored to its trigger. Pick a side and an alignment; it flips when there is no
36
+ * room and slides to stay on screen. It grows out of the trigger, closes on an outside click, Escape or
37
+ * when focus leaves, and hands focus back to the trigger.
38
+ */
39
+ export declare function Popover({ trigger, children, open, defaultOpen, onOpenChange, side, align, offset, arrow, label, className }: PopoverProps): import("react").JSX.Element;
40
+ export default Popover;
@@ -0,0 +1,37 @@
1
+ import type { ReactNode } from "react";
2
+ interface Shared {
3
+ /** Current amount. Leave it out for an indeterminate state. */
4
+ value?: number;
5
+ max?: number;
6
+ /** Accessible name, also shown above the bar. */
7
+ label?: string;
8
+ /** Show the percentage. */
9
+ showValue?: boolean;
10
+ /** Custom text for the value, e.g. "3 of 8 files". */
11
+ valueText?: string;
12
+ className?: string;
13
+ }
14
+ export interface ProgressBarProps extends Shared {
15
+ size?: "sm" | "md";
16
+ /** Keep the label visually hidden (it stays for screen readers). */
17
+ hideLabel?: boolean;
18
+ }
19
+ /**
20
+ * A linear progress bar. The fill eases to each new value. Without `value` a short segment sweeps
21
+ * across the track, and with reduced motion it breathes in place instead.
22
+ */
23
+ export declare function ProgressBar({ value, max, label, showValue, valueText, size, hideLabel, className }: ProgressBarProps): import("react").JSX.Element;
24
+ export interface ProgressRingProps extends Shared {
25
+ /** Diameter in px. */
26
+ size?: number;
27
+ /** Ring thickness in px. */
28
+ thickness?: number;
29
+ /** Shown in the middle. Defaults to the percentage when `showValue` is on. */
30
+ children?: ReactNode;
31
+ }
32
+ /**
33
+ * A circular progress ring. The arc eases to each new value. Without `value` a quarter arc spins,
34
+ * and with reduced motion it breathes in place instead.
35
+ */
36
+ export declare function ProgressRing({ value, max, label, showValue, valueText, size, thickness, children, className }: ProgressRingProps): import("react").JSX.Element;
37
+ export default ProgressBar;
@@ -0,0 +1,27 @@
1
+ export type RangeSliderValue = [number, number];
2
+ export interface RangeSliderProps {
3
+ value?: RangeSliderValue;
4
+ defaultValue?: RangeSliderValue;
5
+ onValueChange?: (value: RangeSliderValue) => void;
6
+ /** Fires once when the user lets go (pointer up or a key press). */
7
+ onValueCommit?: (value: RangeSliderValue) => void;
8
+ min?: number;
9
+ max?: number;
10
+ step?: number;
11
+ /** The smallest distance the two thumbs keep between them. */
12
+ minGap?: number;
13
+ /** Format the bubbles and the value read to screen readers. */
14
+ format?: (v: number) => string;
15
+ disabled?: boolean;
16
+ /** Form field names for the low and high values. */
17
+ names?: [string, string];
18
+ /** Accessible names for the two thumbs. */
19
+ labels?: [string, string];
20
+ className?: string;
21
+ }
22
+ /**
23
+ * Two thumbs on one track for picking a range. The thumbs never cross and keep `minGap` apart. A value bubble
24
+ * rises over the thumb you drag, hover or focus. Clicks and keys glide, drags follow the pointer exactly.
25
+ */
26
+ export declare function RangeSlider({ value, defaultValue, onValueChange, onValueCommit, min, max, step, minGap, format, disabled, names, labels, className, }: RangeSliderProps): import("react").JSX.Element;
27
+ export default RangeSlider;
@@ -0,0 +1,23 @@
1
+ export interface RatingProps {
2
+ value?: number;
3
+ defaultValue?: number;
4
+ onChange?: (value: number) => void;
5
+ /** Number of stars. */
6
+ max?: number;
7
+ /** Allow half stars (3.5). */
8
+ allowHalf?: boolean;
9
+ /** Clicking the current value again clears it to 0. */
10
+ allowClear?: boolean;
11
+ /** Show the value without letting anyone change it. */
12
+ readOnly?: boolean;
13
+ size?: "sm" | "md";
14
+ /** Accessible name, e.g. "Rate this course". */
15
+ label?: string;
16
+ className?: string;
17
+ }
18
+ /**
19
+ * A star rating. Hover to preview, click to set, and with `allowHalf` the left half of a star sets a half.
20
+ * The filled stars pop one after another when the value changes. Arrow keys step, Home/End jump, digits set.
21
+ */
22
+ export declare function Rating({ value, defaultValue, onChange, max, allowHalf, allowClear, readOnly, size, label, className }: RatingProps): import("react").JSX.Element;
23
+ export default Rating;