@stevederico/skateboard-ui 3.12.0 → 4.1.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 (339) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +37 -31
  3. package/dist/components/core/Command.js +33 -7
  4. package/dist/shadcn/ui/accordion.d.ts +1 -6
  5. package/dist/shadcn/ui/accordion.js +3 -17
  6. package/dist/shadcn/ui/alert-dialog.d.ts +1 -18
  7. package/dist/shadcn/ui/alert-dialog.js +3 -43
  8. package/dist/shadcn/ui/alert.d.ts +1 -13
  9. package/dist/shadcn/ui/alert.js +3 -28
  10. package/dist/shadcn/ui/aspect-ratio.d.ts +1 -4
  11. package/dist/shadcn/ui/aspect-ratio.js +3 -8
  12. package/dist/shadcn/ui/avatar.d.ts +1 -11
  13. package/dist/shadcn/ui/avatar.js +3 -24
  14. package/dist/shadcn/ui/badge.d.ts +1 -14
  15. package/dist/shadcn/ui/badge.js +3 -33
  16. package/dist/shadcn/ui/breadcrumb.d.ts +1 -10
  17. package/dist/shadcn/ui/breadcrumb.js +3 -37
  18. package/dist/shadcn/ui/button-group.d.ts +1 -13
  19. package/dist/shadcn/ui/button-group.js +3 -36
  20. package/dist/shadcn/ui/button.d.ts +1 -34
  21. package/dist/shadcn/ui/button.js +3 -53
  22. package/dist/shadcn/ui/calendar.d.ts +1 -13
  23. package/dist/shadcn/ui/calendar.js +3 -75
  24. package/dist/shadcn/ui/card.d.ts +1 -11
  25. package/dist/shadcn/ui/card.js +3 -25
  26. package/dist/shadcn/ui/checkbox.d.ts +1 -3
  27. package/dist/shadcn/ui/checkbox.js +3 -9
  28. package/dist/shadcn/ui/collapsible.d.ts +1 -5
  29. package/dist/shadcn/ui/collapsible.js +3 -13
  30. package/dist/shadcn/ui/command.d.ts +1 -19
  31. package/dist/shadcn/ui/command.js +3 -35
  32. package/dist/shadcn/ui/context-menu.d.ts +1 -29
  33. package/dist/shadcn/ui/context-menu.js +3 -52
  34. package/dist/shadcn/ui/dialog.d.ts +1 -17
  35. package/dist/shadcn/ui/dialog.js +3 -38
  36. package/dist/shadcn/ui/drawer.d.ts +1 -13
  37. package/dist/shadcn/ui/drawer.js +3 -196
  38. package/dist/shadcn/ui/dropdown-menu.d.ts +1 -29
  39. package/dist/shadcn/ui/dropdown-menu.js +3 -52
  40. package/dist/shadcn/ui/empty.d.ts +1 -14
  41. package/dist/shadcn/ui/empty.js +3 -33
  42. package/dist/shadcn/ui/field.d.ts +1 -28
  43. package/dist/shadcn/ui/field.js +3 -68
  44. package/dist/shadcn/ui/hover-card.d.ts +1 -5
  45. package/dist/shadcn/ui/hover-card.js +3 -14
  46. package/dist/shadcn/ui/input-group.d.ts +1 -28
  47. package/dist/shadcn/ui/input-group.js +3 -58
  48. package/dist/shadcn/ui/input.d.ts +1 -3
  49. package/dist/shadcn/ui/input.js +3 -8
  50. package/dist/shadcn/ui/item.d.ts +1 -34
  51. package/dist/shadcn/ui/item.js +3 -79
  52. package/dist/shadcn/ui/kbd.d.ts +1 -3
  53. package/dist/shadcn/ui/kbd.js +3 -9
  54. package/dist/shadcn/ui/label.d.ts +1 -3
  55. package/dist/shadcn/ui/label.js +3 -8
  56. package/dist/shadcn/ui/menubar.d.ts +1 -29
  57. package/dist/shadcn/ui/menubar.js +3 -57
  58. package/dist/shadcn/ui/navigation-menu.d.ts +1 -13
  59. package/dist/shadcn/ui/navigation-menu.js +3 -31
  60. package/dist/shadcn/ui/pagination.d.ts +1 -17
  61. package/dist/shadcn/ui/pagination.js +3 -27
  62. package/dist/shadcn/ui/popover.d.ts +1 -9
  63. package/dist/shadcn/ui/popover.js +3 -24
  64. package/dist/shadcn/ui/progress.d.ts +1 -7
  65. package/dist/shadcn/ui/progress.js +3 -20
  66. package/dist/shadcn/ui/radio-group.d.ts +1 -5
  67. package/dist/shadcn/ui/radio-group.js +3 -12
  68. package/dist/shadcn/ui/scroll-area.d.ts +1 -5
  69. package/dist/shadcn/ui/scroll-area.js +3 -12
  70. package/dist/shadcn/ui/select.d.ts +1 -15
  71. package/dist/shadcn/ui/select.js +3 -35
  72. package/dist/shadcn/ui/separator.d.ts +1 -3
  73. package/dist/shadcn/ui/separator.js +3 -8
  74. package/dist/shadcn/ui/sheet.d.ts +1 -14
  75. package/dist/shadcn/ui/sheet.js +3 -38
  76. package/dist/shadcn/ui/sidebar.d.ts +1 -70
  77. package/dist/shadcn/ui/sidebar.js +3 -256
  78. package/dist/shadcn/ui/skeleton.d.ts +1 -2
  79. package/dist/shadcn/ui/skeleton.js +3 -6
  80. package/dist/shadcn/ui/slider.d.ts +1 -3
  81. package/dist/shadcn/ui/slider.js +3 -12
  82. package/dist/shadcn/ui/spinner.d.ts +1 -2
  83. package/dist/shadcn/ui/spinner.js +3 -7
  84. package/dist/shadcn/ui/switch.d.ts +1 -5
  85. package/dist/shadcn/ui/switch.js +3 -8
  86. package/dist/shadcn/ui/table.d.ts +1 -10
  87. package/dist/shadcn/ui/table.js +3 -29
  88. package/dist/shadcn/ui/tabs.d.ts +1 -13
  89. package/dist/shadcn/ui/tabs.js +3 -29
  90. package/dist/shadcn/ui/textarea.d.ts +1 -3
  91. package/dist/shadcn/ui/textarea.js +3 -7
  92. package/dist/shadcn/ui/toggle-group.d.ts +1 -11
  93. package/dist/shadcn/ui/toggle-group.js +3 -25
  94. package/dist/shadcn/ui/toggle.d.ts +1 -15
  95. package/dist/shadcn/ui/toggle.js +3 -26
  96. package/dist/shadcn/ui/tooltip.d.ts +1 -6
  97. package/dist/shadcn/ui/tooltip.js +3 -17
  98. package/dist/ui/accordion.d.ts +21 -0
  99. package/dist/ui/accordion.js +67 -0
  100. package/dist/ui/alert-dialog.d.ts +32 -0
  101. package/dist/ui/alert-dialog.js +102 -0
  102. package/dist/ui/alert.d.ts +13 -0
  103. package/dist/ui/alert.js +28 -0
  104. package/dist/ui/aspect-ratio.d.ts +5 -0
  105. package/dist/ui/aspect-ratio.js +9 -0
  106. package/dist/ui/avatar.d.ts +14 -0
  107. package/dist/ui/avatar.js +49 -0
  108. package/dist/ui/badge.d.ts +22 -0
  109. package/dist/ui/badge.js +26 -0
  110. package/dist/ui/breadcrumb.d.ts +13 -0
  111. package/dist/ui/breadcrumb.js +29 -0
  112. package/dist/ui/button-group.d.ts +21 -0
  113. package/dist/ui/button-group.js +29 -0
  114. package/dist/ui/button.d.ts +38 -0
  115. package/dist/ui/button.js +49 -0
  116. package/dist/ui/calendar.d.ts +13 -0
  117. package/dist/ui/calendar.js +75 -0
  118. package/dist/ui/card.d.ts +11 -0
  119. package/dist/ui/card.js +25 -0
  120. package/dist/ui/checkbox.d.ts +17 -0
  121. package/dist/ui/checkbox.js +25 -0
  122. package/dist/ui/collapsible.d.ts +11 -0
  123. package/dist/ui/collapsible.js +40 -0
  124. package/dist/ui/command.d.ts +19 -0
  125. package/dist/ui/command.js +35 -0
  126. package/dist/ui/context-menu.d.ts +53 -0
  127. package/dist/ui/context-menu.js +372 -0
  128. package/dist/ui/dialog.d.ts +40 -0
  129. package/dist/ui/dialog.js +109 -0
  130. package/dist/ui/drawer.d.ts +36 -0
  131. package/dist/ui/drawer.js +243 -0
  132. package/dist/ui/dropdown-menu.d.ts +61 -0
  133. package/dist/ui/dropdown-menu.js +347 -0
  134. package/dist/ui/empty.d.ts +14 -0
  135. package/dist/ui/empty.js +33 -0
  136. package/dist/ui/field.d.ts +28 -0
  137. package/dist/ui/field.js +68 -0
  138. package/dist/ui/hover-card.d.ts +32 -0
  139. package/dist/ui/hover-card.js +119 -0
  140. package/dist/ui/input-group.d.ts +28 -0
  141. package/dist/ui/input-group.js +58 -0
  142. package/dist/ui/input.d.ts +3 -0
  143. package/dist/ui/input.js +7 -0
  144. package/dist/ui/item.d.ts +41 -0
  145. package/dist/ui/item.js +69 -0
  146. package/dist/ui/kbd.d.ts +4 -0
  147. package/dist/ui/kbd.js +10 -0
  148. package/dist/ui/label.d.ts +3 -0
  149. package/dist/ui/label.js +8 -0
  150. package/dist/ui/menubar.d.ts +59 -0
  151. package/dist/ui/menubar.js +397 -0
  152. package/dist/ui/navigation-menu.d.ts +24 -0
  153. package/dist/ui/navigation-menu.js +203 -0
  154. package/dist/ui/pagination.d.ts +17 -0
  155. package/dist/ui/pagination.js +36 -0
  156. package/dist/ui/popover.d.ts +25 -0
  157. package/dist/ui/popover.js +126 -0
  158. package/dist/ui/portal.d.ts +7 -0
  159. package/dist/ui/portal.js +12 -0
  160. package/dist/ui/progress.d.ts +15 -0
  161. package/dist/ui/progress.js +36 -0
  162. package/dist/ui/radio-group.d.ts +17 -0
  163. package/dist/ui/radio-group.js +66 -0
  164. package/dist/ui/scroll-area.d.ts +9 -0
  165. package/dist/ui/scroll-area.js +72 -0
  166. package/dist/ui/select.d.ts +37 -0
  167. package/dist/ui/select.js +226 -0
  168. package/dist/ui/separator.d.ts +14 -0
  169. package/dist/ui/separator.js +13 -0
  170. package/dist/ui/sheet.d.ts +31 -0
  171. package/dist/ui/sheet.js +121 -0
  172. package/dist/ui/sidebar.d.ts +86 -0
  173. package/dist/ui/sidebar.js +211 -0
  174. package/dist/ui/skeleton.d.ts +3 -0
  175. package/dist/ui/skeleton.js +7 -0
  176. package/dist/ui/slider.d.ts +18 -0
  177. package/dist/ui/slider.js +94 -0
  178. package/dist/ui/slot.d.ts +27 -0
  179. package/dist/ui/slot.js +62 -0
  180. package/dist/ui/spinner.d.ts +3 -0
  181. package/dist/ui/spinner.js +8 -0
  182. package/dist/ui/switch.d.ts +17 -0
  183. package/dist/ui/switch.js +23 -0
  184. package/dist/ui/table.d.ts +10 -0
  185. package/dist/ui/table.js +29 -0
  186. package/dist/ui/tabs.d.ts +29 -0
  187. package/dist/ui/tabs.js +96 -0
  188. package/dist/ui/textarea.d.ts +3 -0
  189. package/dist/ui/textarea.js +7 -0
  190. package/dist/ui/toggle-group.d.ts +23 -0
  191. package/dist/ui/toggle-group.js +52 -0
  192. package/dist/ui/toggle.d.ts +25 -0
  193. package/dist/ui/toggle.js +41 -0
  194. package/dist/ui/tooltip.d.ts +25 -0
  195. package/dist/ui/tooltip.js +90 -0
  196. package/dist/ui/use-controllable-state.d.ts +10 -0
  197. package/dist/ui/use-controllable-state.js +17 -0
  198. package/dist/ui/use-dismiss.d.ts +10 -0
  199. package/dist/ui/use-dismiss.js +51 -0
  200. package/dist/ui/use-floating.d.ts +42 -0
  201. package/dist/ui/use-floating.js +136 -0
  202. package/dist/ui/use-presence.d.ts +8 -0
  203. package/dist/ui/use-presence.js +48 -0
  204. package/dist/ui/use-typeahead.d.ts +19 -0
  205. package/dist/ui/use-typeahead.js +64 -0
  206. package/package.json +6 -1
  207. package/dist/shadcn/lib/base-ui/LICENSE +0 -21
  208. package/dist/shadcn/lib/base-ui/_chunk-000kmre8.js +0 -150
  209. package/dist/shadcn/lib/base-ui/_chunk-1vw45v38.js +0 -64
  210. package/dist/shadcn/lib/base-ui/_chunk-23rx7haq.js +0 -81
  211. package/dist/shadcn/lib/base-ui/_chunk-242gh8ph.js +0 -230
  212. package/dist/shadcn/lib/base-ui/_chunk-26cc610z.js +0 -6
  213. package/dist/shadcn/lib/base-ui/_chunk-2z044bba.js +0 -5890
  214. package/dist/shadcn/lib/base-ui/_chunk-3cpd1vjz.js +0 -13
  215. package/dist/shadcn/lib/base-ui/_chunk-3enq1vat.js +0 -82
  216. package/dist/shadcn/lib/base-ui/_chunk-3xpke33f.js +0 -23
  217. package/dist/shadcn/lib/base-ui/_chunk-451nqgsa.js +0 -6
  218. package/dist/shadcn/lib/base-ui/_chunk-4maf6pas.js +0 -11
  219. package/dist/shadcn/lib/base-ui/_chunk-4zhfq4d3.js +0 -16
  220. package/dist/shadcn/lib/base-ui/_chunk-5gaqyne5.js +0 -21
  221. package/dist/shadcn/lib/base-ui/_chunk-5tt5hk59.js +0 -4
  222. package/dist/shadcn/lib/base-ui/_chunk-5tze5c8q.js +0 -13
  223. package/dist/shadcn/lib/base-ui/_chunk-5xmdvndx.js +0 -225
  224. package/dist/shadcn/lib/base-ui/_chunk-6adaer33.js +0 -435
  225. package/dist/shadcn/lib/base-ui/_chunk-6ejf1z1r.js +0 -9
  226. package/dist/shadcn/lib/base-ui/_chunk-6kqramh9.js +0 -27
  227. package/dist/shadcn/lib/base-ui/_chunk-7b9dc493.js +0 -14
  228. package/dist/shadcn/lib/base-ui/_chunk-8a9vv8am.js +0 -89
  229. package/dist/shadcn/lib/base-ui/_chunk-8ctgmf06.js +0 -129
  230. package/dist/shadcn/lib/base-ui/_chunk-8ganmsbg.js +0 -54
  231. package/dist/shadcn/lib/base-ui/_chunk-8xaqxgck.js +0 -15
  232. package/dist/shadcn/lib/base-ui/_chunk-95tf2rxq.js +0 -62
  233. package/dist/shadcn/lib/base-ui/_chunk-9x63vfqj.js +0 -70
  234. package/dist/shadcn/lib/base-ui/_chunk-ase0ydtt.js +0 -9
  235. package/dist/shadcn/lib/base-ui/_chunk-b0nc8wq7.js +0 -34
  236. package/dist/shadcn/lib/base-ui/_chunk-b5ya6xds.js +0 -10
  237. package/dist/shadcn/lib/base-ui/_chunk-b6dkjkbw.js +0 -43
  238. package/dist/shadcn/lib/base-ui/_chunk-c2bz952e.js +0 -19
  239. package/dist/shadcn/lib/base-ui/_chunk-cdgfsr3q.js +0 -15
  240. package/dist/shadcn/lib/base-ui/_chunk-cdj8cpx5.js +0 -347
  241. package/dist/shadcn/lib/base-ui/_chunk-cgptgywc.js +0 -104
  242. package/dist/shadcn/lib/base-ui/_chunk-cwvtvwc7.js +0 -35
  243. package/dist/shadcn/lib/base-ui/_chunk-dan0mva4.js +0 -23
  244. package/dist/shadcn/lib/base-ui/_chunk-dzvjwv25.js +0 -0
  245. package/dist/shadcn/lib/base-ui/_chunk-e13rsb6b.js +0 -184
  246. package/dist/shadcn/lib/base-ui/_chunk-e56mpvk1.js +0 -118
  247. package/dist/shadcn/lib/base-ui/_chunk-e6k2ecs7.js +0 -48
  248. package/dist/shadcn/lib/base-ui/_chunk-ebyxgtb4.js +0 -29
  249. package/dist/shadcn/lib/base-ui/_chunk-f2wttwrf.js +0 -39
  250. package/dist/shadcn/lib/base-ui/_chunk-fdzctasg.js +0 -38
  251. package/dist/shadcn/lib/base-ui/_chunk-ffpjy0ta.js +0 -39
  252. package/dist/shadcn/lib/base-ui/_chunk-fqry7pew.js +0 -603
  253. package/dist/shadcn/lib/base-ui/_chunk-ghn1tzt8.js +0 -84
  254. package/dist/shadcn/lib/base-ui/_chunk-gy0bpkmx.js +0 -12
  255. package/dist/shadcn/lib/base-ui/_chunk-hm5h9vsk.js +0 -16
  256. package/dist/shadcn/lib/base-ui/_chunk-htdj1jps.js +0 -833
  257. package/dist/shadcn/lib/base-ui/_chunk-j29xjete.js +0 -146
  258. package/dist/shadcn/lib/base-ui/_chunk-j3qkyd10.js +0 -50
  259. package/dist/shadcn/lib/base-ui/_chunk-ktvsd5k6.js +0 -2386
  260. package/dist/shadcn/lib/base-ui/_chunk-kw8nnq00.js +0 -546
  261. package/dist/shadcn/lib/base-ui/_chunk-m307wpdj.js +0 -18
  262. package/dist/shadcn/lib/base-ui/_chunk-mnd0j7v9.js +0 -15
  263. package/dist/shadcn/lib/base-ui/_chunk-n11h505c.js +0 -32
  264. package/dist/shadcn/lib/base-ui/_chunk-p0e2qacz.js +0 -26
  265. package/dist/shadcn/lib/base-ui/_chunk-pv7b791x.js +0 -106
  266. package/dist/shadcn/lib/base-ui/_chunk-q5cg71p7.js +0 -83
  267. package/dist/shadcn/lib/base-ui/_chunk-qbezxj1g.js +0 -385
  268. package/dist/shadcn/lib/base-ui/_chunk-qmsqz6nt.js +0 -15
  269. package/dist/shadcn/lib/base-ui/_chunk-rrh8rt4v.js +0 -65
  270. package/dist/shadcn/lib/base-ui/_chunk-s5pwkz8v.js +0 -25
  271. package/dist/shadcn/lib/base-ui/_chunk-svxv97ph.js +0 -218
  272. package/dist/shadcn/lib/base-ui/_chunk-t7ppm3t0.js +0 -68
  273. package/dist/shadcn/lib/base-ui/_chunk-vg16xxmb.js +0 -52
  274. package/dist/shadcn/lib/base-ui/_chunk-vgkfmtbe.js +0 -21
  275. package/dist/shadcn/lib/base-ui/_chunk-watha94s.js +0 -14
  276. package/dist/shadcn/lib/base-ui/_chunk-wdqynnjf.js +0 -35
  277. package/dist/shadcn/lib/base-ui/_chunk-wx2nxg0p.js +0 -15
  278. package/dist/shadcn/lib/base-ui/_chunk-x11e1k9r.js +0 -0
  279. package/dist/shadcn/lib/base-ui/_chunk-x8xehj6d.js +0 -302
  280. package/dist/shadcn/lib/base-ui/_chunk-xcqbtm2f.js +0 -28
  281. package/dist/shadcn/lib/base-ui/_chunk-ytnp24gq.js +0 -328
  282. package/dist/shadcn/lib/base-ui/_chunk-yzr7eg4b.js +0 -6
  283. package/dist/shadcn/lib/base-ui/_chunk-zk4mtm9m.js +0 -9
  284. package/dist/shadcn/lib/base-ui/accordion.d.ts +0 -447
  285. package/dist/shadcn/lib/base-ui/accordion.js +0 -630
  286. package/dist/shadcn/lib/base-ui/alert-dialog.d.ts +0 -1467
  287. package/dist/shadcn/lib/base-ui/alert-dialog.js +0 -98
  288. package/dist/shadcn/lib/base-ui/avatar.d.ts +0 -123
  289. package/dist/shadcn/lib/base-ui/avatar.js +0 -235
  290. package/dist/shadcn/lib/base-ui/button.d.ts +0 -84
  291. package/dist/shadcn/lib/base-ui/button.js +0 -51
  292. package/dist/shadcn/lib/base-ui/checkbox.d.ts +0 -341
  293. package/dist/shadcn/lib/base-ui/checkbox.js +0 -501
  294. package/dist/shadcn/lib/base-ui/collapsible.d.ts +0 -291
  295. package/dist/shadcn/lib/base-ui/collapsible.js +0 -264
  296. package/dist/shadcn/lib/base-ui/context-menu.d.ts +0 -2213
  297. package/dist/shadcn/lib/base-ui/context-menu.js +0 -323
  298. package/dist/shadcn/lib/base-ui/dialog.d.ts +0 -1448
  299. package/dist/shadcn/lib/base-ui/dialog.js +0 -79
  300. package/dist/shadcn/lib/base-ui/input.d.ts +0 -506
  301. package/dist/shadcn/lib/base-ui/input.js +0 -1027
  302. package/dist/shadcn/lib/base-ui/menu.d.ts +0 -2275
  303. package/dist/shadcn/lib/base-ui/menu.js +0 -60
  304. package/dist/shadcn/lib/base-ui/menubar.d.ts +0 -48
  305. package/dist/shadcn/lib/base-ui/menubar.js +0 -156
  306. package/dist/shadcn/lib/base-ui/merge-props.d.ts +0 -70
  307. package/dist/shadcn/lib/base-ui/merge-props.js +0 -15
  308. package/dist/shadcn/lib/base-ui/navigation-menu.d.ts +0 -825
  309. package/dist/shadcn/lib/base-ui/navigation-menu.js +0 -1849
  310. package/dist/shadcn/lib/base-ui/popover.d.ts +0 -1743
  311. package/dist/shadcn/lib/base-ui/popover.js +0 -1089
  312. package/dist/shadcn/lib/base-ui/preview-card.d.ts +0 -1608
  313. package/dist/shadcn/lib/base-ui/preview-card.js +0 -919
  314. package/dist/shadcn/lib/base-ui/progress.d.ts +0 -172
  315. package/dist/shadcn/lib/base-ui/progress.js +0 -272
  316. package/dist/shadcn/lib/base-ui/radio-group.d.ts +0 -260
  317. package/dist/shadcn/lib/base-ui/radio-group.js +0 -239
  318. package/dist/shadcn/lib/base-ui/radio.d.ts +0 -176
  319. package/dist/shadcn/lib/base-ui/radio.js +0 -387
  320. package/dist/shadcn/lib/base-ui/scroll-area.d.ts +0 -241
  321. package/dist/shadcn/lib/base-ui/scroll-area.js +0 -1055
  322. package/dist/shadcn/lib/base-ui/select.d.ts +0 -1266
  323. package/dist/shadcn/lib/base-ui/select.js +0 -2450
  324. package/dist/shadcn/lib/base-ui/separator.d.ts +0 -76
  325. package/dist/shadcn/lib/base-ui/separator.js +0 -11
  326. package/dist/shadcn/lib/base-ui/slider.d.ts +0 -551
  327. package/dist/shadcn/lib/base-ui/slider.js +0 -1583
  328. package/dist/shadcn/lib/base-ui/switch.d.ts +0 -313
  329. package/dist/shadcn/lib/base-ui/switch.js +0 -326
  330. package/dist/shadcn/lib/base-ui/tabs.d.ts +0 -406
  331. package/dist/shadcn/lib/base-ui/tabs.js +0 -915
  332. package/dist/shadcn/lib/base-ui/toggle-group.d.ts +0 -235
  333. package/dist/shadcn/lib/base-ui/toggle-group.js +0 -145
  334. package/dist/shadcn/lib/base-ui/toggle.d.ts +0 -224
  335. package/dist/shadcn/lib/base-ui/toggle.js +0 -127
  336. package/dist/shadcn/lib/base-ui/tooltip.d.ts +0 -1656
  337. package/dist/shadcn/lib/base-ui/tooltip.js +0 -920
  338. package/dist/shadcn/lib/base-ui/use-render.d.ts +0 -87
  339. package/dist/shadcn/lib/base-ui/use-render.js +0 -15
@@ -1,79 +0,0 @@
1
- /* @base-ui/react 1.5.0 — vendored (MIT — MUI Inc).
2
- * Refresh: scripts/vendor-base-ui.js (see header for instructions).
3
- * Do not edit by hand. */
4
- import {
5
- DialogBackdrop,
6
- DialogClose,
7
- DialogDescription,
8
- DialogHandle,
9
- DialogPopup,
10
- DialogPortal,
11
- DialogTitle,
12
- DialogTrigger,
13
- DialogViewport,
14
- IsDrawerContext,
15
- createDialogHandle,
16
- useRenderDialogRoot
17
- } from "./_chunk-htdj1jps.js";
18
- import"./_chunk-ytnp24gq.js";
19
- import"./_chunk-q5cg71p7.js";
20
- import"./_chunk-242gh8ph.js";
21
- import"./_chunk-5gaqyne5.js";
22
- import"./_chunk-t7ppm3t0.js";
23
- import"./_chunk-3cpd1vjz.js";
24
- import"./_chunk-2z044bba.js";
25
- import"./_chunk-1vw45v38.js";
26
- import"./_chunk-cgptgywc.js";
27
- import"./_chunk-pv7b791x.js";
28
- import"./_chunk-kw8nnq00.js";
29
- import"./_chunk-rrh8rt4v.js";
30
- import"./_chunk-b6dkjkbw.js";
31
- import"./_chunk-s5pwkz8v.js";
32
- import"./_chunk-dan0mva4.js";
33
- import"./_chunk-x11e1k9r.js";
34
- import"./_chunk-ase0ydtt.js";
35
- import"./_chunk-6kqramh9.js";
36
- import"./_chunk-451nqgsa.js";
37
- import"./_chunk-e56mpvk1.js";
38
- import"./_chunk-wdqynnjf.js";
39
- import"./_chunk-e13rsb6b.js";
40
- import"./_chunk-zk4mtm9m.js";
41
- import"./_chunk-8a9vv8am.js";
42
- import"./_chunk-6ejf1z1r.js";
43
- import"./_chunk-5xmdvndx.js";
44
- import"./_chunk-hm5h9vsk.js";
45
- import"./_chunk-cdgfsr3q.js";
46
- import"./_chunk-000kmre8.js";
47
- import"./_chunk-cwvtvwc7.js";
48
- import"./_chunk-5tze5c8q.js";
49
- import"./_chunk-x8xehj6d.js";
50
- import {
51
- __export
52
- } from "./_chunk-svxv97ph.js";
53
-
54
- // node_modules/@base-ui/react/esm/dialog/index.parts.js
55
- var exports_index_parts = {};
56
- __export(exports_index_parts, {
57
- createHandle: () => createDialogHandle,
58
- Viewport: () => DialogViewport,
59
- Trigger: () => DialogTrigger,
60
- Title: () => DialogTitle,
61
- Root: () => DialogRoot,
62
- Portal: () => DialogPortal,
63
- Popup: () => DialogPopup,
64
- Handle: () => DialogHandle,
65
- Description: () => DialogDescription,
66
- Close: () => DialogClose,
67
- Backdrop: () => DialogBackdrop
68
- });
69
-
70
- // node_modules/@base-ui/react/esm/dialog/root/DialogRoot.js
71
- import * as React from "react";
72
- "use client";
73
- function DialogRoot(props) {
74
- const mode = React.useContext(IsDrawerContext) ? "drawer" : "dialog";
75
- return useRenderDialogRoot(props, mode);
76
- }
77
- export {
78
- exports_index_parts as Dialog
79
- };
@@ -1,506 +0,0 @@
1
- /* @base-ui/react 1.5.0 — vendored (MIT — MUI Inc).
2
- * Refresh: scripts/vendor-base-ui.js (see header for instructions).
3
- * Do not edit by hand. */
4
- import * as React$1 from 'react';
5
-
6
- declare const none: "none";
7
- declare const triggerPress: "trigger-press";
8
- declare const triggerHover: "trigger-hover";
9
- declare const triggerFocus: "trigger-focus";
10
- declare const outsidePress: "outside-press";
11
- declare const itemPress: "item-press";
12
- declare const closePress: "close-press";
13
- declare const linkPress: "link-press";
14
- declare const clearPress: "clear-press";
15
- declare const chipRemovePress: "chip-remove-press";
16
- declare const trackPress: "track-press";
17
- declare const incrementPress: "increment-press";
18
- declare const decrementPress: "decrement-press";
19
- declare const inputChange: "input-change";
20
- declare const inputClear: "input-clear";
21
- declare const inputBlur: "input-blur";
22
- declare const inputPaste: "input-paste";
23
- declare const inputPress: "input-press";
24
- declare const focusOut: "focus-out";
25
- declare const escapeKey: "escape-key";
26
- declare const closeWatcher: "close-watcher";
27
- declare const listNavigation: "list-navigation";
28
- declare const keyboard: "keyboard";
29
- declare const pointer: "pointer";
30
- declare const drag: "drag";
31
- declare const wheel: "wheel";
32
- declare const scrub: "scrub";
33
- declare const cancelOpen: "cancel-open";
34
- declare const siblingOpen: "sibling-open";
35
- declare const disabled: "disabled";
36
- declare const missing: "missing";
37
- declare const initial: "initial";
38
- declare const imperativeAction: "imperative-action";
39
- declare const swipe: "swipe";
40
- declare const windowResize: "window-resize";
41
- export interface ReasonToEventMap {
42
- [none]: Event;
43
- [triggerPress]: MouseEvent | PointerEvent | TouchEvent | KeyboardEvent;
44
- [triggerHover]: MouseEvent;
45
- [triggerFocus]: FocusEvent;
46
- [outsidePress]: MouseEvent | PointerEvent | TouchEvent;
47
- [itemPress]: MouseEvent | KeyboardEvent | PointerEvent;
48
- [closePress]: MouseEvent | KeyboardEvent | PointerEvent;
49
- [linkPress]: MouseEvent | PointerEvent;
50
- [clearPress]: PointerEvent | MouseEvent | KeyboardEvent;
51
- [chipRemovePress]: PointerEvent | MouseEvent | KeyboardEvent;
52
- [trackPress]: PointerEvent | MouseEvent | TouchEvent;
53
- [incrementPress]: PointerEvent | MouseEvent | TouchEvent;
54
- [decrementPress]: PointerEvent | MouseEvent | TouchEvent;
55
- [inputChange]: InputEvent | Event;
56
- [inputClear]: InputEvent | FocusEvent | Event;
57
- [inputBlur]: FocusEvent;
58
- [inputPaste]: ClipboardEvent;
59
- [inputPress]: MouseEvent | PointerEvent | TouchEvent | KeyboardEvent;
60
- [focusOut]: FocusEvent | KeyboardEvent;
61
- [escapeKey]: KeyboardEvent;
62
- [closeWatcher]: Event;
63
- [listNavigation]: KeyboardEvent;
64
- [keyboard]: KeyboardEvent;
65
- [pointer]: PointerEvent;
66
- [drag]: PointerEvent | TouchEvent;
67
- [swipe]: PointerEvent | TouchEvent;
68
- [wheel]: WheelEvent;
69
- [scrub]: PointerEvent;
70
- [cancelOpen]: MouseEvent;
71
- [siblingOpen]: Event;
72
- [disabled]: Event;
73
- [missing]: Event;
74
- [initial]: Event;
75
- [imperativeAction]: Event;
76
- [windowResize]: UIEvent;
77
- }
78
- /**
79
- * Maps a change `reason` string to the corresponding native event type.
80
- */
81
- export type ReasonToEvent<Reason extends string> = Reason extends keyof ReasonToEventMap ? ReasonToEventMap[Reason] : Event;
82
- export type BaseUIChangeEventDetail<Reason extends string, CustomProperties extends object> = {
83
- /**
84
- * The reason for the event.
85
- */
86
- reason: Reason;
87
- /**
88
- * The native event associated with the custom event.
89
- */
90
- event: ReasonToEvent<Reason>;
91
- /**
92
- * Cancels Base UI from handling the event.
93
- */
94
- cancel: () => void;
95
- /**
96
- * Allows the event to propagate in cases where Base UI will stop the propagation.
97
- */
98
- allowPropagation: () => void;
99
- /**
100
- * Indicates whether the event has been canceled.
101
- */
102
- isCanceled: boolean;
103
- /**
104
- * Indicates whether the event is allowed to propagate.
105
- */
106
- isPropagationAllowed: boolean;
107
- /**
108
- * The element that triggered the event, if applicable.
109
- */
110
- trigger: Element | undefined;
111
- } & CustomProperties;
112
- /**
113
- * Details of custom change events emitted by Base UI components.
114
- */
115
- export type BaseUIChangeEventDetails<Reason extends string, CustomProperties extends object = {}> = Reason extends string ? BaseUIChangeEventDetail<Reason, CustomProperties> & {} : never;
116
- /**
117
- * Details of custom generic events emitted by Base UI components.
118
- */
119
- export type BaseUIGenericEventDetail<Reason extends string, CustomProperties extends object> = {
120
- /**
121
- * The reason for the event.
122
- */
123
- reason: Reason;
124
- /**
125
- * The native event associated with the custom event.
126
- */
127
- event: ReasonToEvent<Reason>;
128
- } & CustomProperties;
129
- export type BaseUIGenericEventDetails<Reason extends string, CustomProperties extends object = {}> = Reason extends string ? BaseUIGenericEventDetail<Reason, CustomProperties> & {} : never;
130
- export type HTMLProps<T = any> = React$1.HTMLAttributes<T> & {
131
- ref?: React$1.Ref<T> | undefined;
132
- };
133
- /**
134
- * Shape of the render prop: a function that takes props to be spread on the element and component's state and returns a React element.
135
- *
136
- * @template Props Props to be spread on the rendered element.
137
- * @template State Component's internal state.
138
- */
139
- export type ComponentRenderFn<Props, State> = (props: Props, state: State) => React$1.ReactElement<unknown>;
140
- export type BaseUIEvent<E extends React$1.SyntheticEvent<Element, Event>> = E & {
141
- preventBaseUIHandler: () => void;
142
- readonly baseUIHandlerPrevented?: boolean | undefined;
143
- };
144
- export type WithPreventBaseUIHandler<T> = T extends ((event: infer E) => any) ? E extends React$1.SyntheticEvent<Element, Event> ? (event: BaseUIEvent<E>) => ReturnType<T> : T : T extends undefined ? undefined : T;
145
- /**
146
- * Adds a `preventBaseUIHandler` method to all event handlers.
147
- */
148
- export type WithBaseUIEvent<T> = {
149
- [K in keyof T]: WithPreventBaseUIHandler<T[K]>;
150
- };
151
- /**
152
- * Props shared by all Base UI components.
153
- * Contains `className` (string or callback taking the component's state as an argument) and `render` (function to customize rendering).
154
- */
155
- export type BaseUIComponentProps<ElementType extends React$1.ElementType, State, RenderFunctionProps = HTMLProps> = Omit<WithBaseUIEvent<React$1.ComponentPropsWithRef<ElementType>>, "className" | "color" | "defaultValue" | "defaultChecked" | "style"> & {
156
- /**
157
- * CSS class applied to the element, or a function that
158
- * returns a class based on the component's state.
159
- */
160
- className?: string | ((state: State) => string | undefined) | undefined;
161
- /**
162
- * Allows you to replace the component's HTML element
163
- * with a different tag, or compose it with another component.
164
- *
165
- * Accepts a `ReactElement` or a function that returns the element to render.
166
- */
167
- render?: React$1.ReactElement | ComponentRenderFn<RenderFunctionProps, State> | undefined;
168
- /**
169
- * Style applied to the element, or a function that
170
- * returns a style object based on the component's state.
171
- */
172
- style?: React$1.CSSProperties | ((state: State) => React$1.CSSProperties | undefined) | undefined;
173
- };
174
- export type Errors = Record<string, string | string[]>;
175
- export interface FormContext {
176
- errors: Errors;
177
- clearErrors: (name: string | undefined) => void;
178
- formRef: React$1.RefObject<{
179
- fields: Map<string, {
180
- name: string | undefined;
181
- /**
182
- * After this returns, the field registry entry reflects the latest synchronous
183
- * validity verdict. Async validators do not block submit.
184
- */
185
- validate: () => void;
186
- validityData: FieldValidityData;
187
- controlRef: React$1.RefObject<HTMLElement | null>;
188
- getValue: () => unknown;
189
- }>;
190
- }>;
191
- validationMode: Form.ValidationMode;
192
- submitAttemptedRef: React$1.RefObject<boolean>;
193
- }
194
- declare const FormContext: React$1.Context<FormContext>;
195
- declare const Form: {
196
- <FormValues extends Record<string, any> = Record<string, any>>(props: Form.Props<FormValues> & {
197
- ref?: React$1.Ref<HTMLFormElement> | undefined;
198
- }): React$1.JSX.Element;
199
- };
200
- export type FormSubmitEventReason = typeof none;
201
- export type FormSubmitEventDetails = BaseUIGenericEventDetails<Form.SubmitEventReason>;
202
- export type FormValidationMode = "onSubmit" | "onBlur" | "onChange";
203
- export interface FormActions {
204
- validate: (fieldName?: string | undefined) => void;
205
- }
206
- export interface FormState {
207
- }
208
- export interface FormProps<FormValues extends Record<string, any> = Record<string, any>> extends BaseUIComponentProps<"form", FormState> {
209
- /**
210
- * Determines when the form should be validated.
211
- * The `validationMode` prop on `<Field.Root>` takes precedence over this.
212
- *
213
- * - `onSubmit` (default): validates the field when the form is submitted, afterwards fields will re-validate on change.
214
- * - `onBlur`: validates a field when it loses focus.
215
- * - `onChange`: validates the field on every change to its value.
216
- *
217
- * @default 'onSubmit'
218
- */
219
- validationMode?: FormValidationMode | undefined;
220
- /**
221
- * Validation errors returned externally, typically after submission by a server or a form action.
222
- * This should be an object where keys correspond to the `name` attribute on `<Field.Root>`,
223
- * and values correspond to error(s) related to that field.
224
- */
225
- errors?: FormContext["errors"] | undefined;
226
- /**
227
- * Event handler called when the form is submitted.
228
- * `preventDefault()` is called on the native submit event when used.
229
- */
230
- onFormSubmit?: ((formValues: FormValues, eventDetails: Form.SubmitEventDetails) => void) | undefined;
231
- /**
232
- * A ref to imperative actions.
233
- * - `validate`: Validates all fields when called. Optionally pass a field name to validate a single field.
234
- * @example
235
- * ```tsx
236
- * // validate all fields
237
- * actionsRef.current.validate();
238
- *
239
- * // validate one field
240
- * actionsRef.current.validate('email');
241
- * ```
242
- */
243
- actionsRef?: React$1.RefObject<Form.Actions | null> | undefined;
244
- }
245
- declare namespace Form {
246
- type Props<FormValues extends Record<string, any> = Record<string, any>> = FormProps<FormValues>;
247
- type State = FormState;
248
- type Actions = FormActions;
249
- type ValidationMode = FormValidationMode;
250
- type SubmitEventReason = FormSubmitEventReason;
251
- type SubmitEventDetails = FormSubmitEventDetails;
252
- type Values<FormValues extends Record<string, any> = Record<string, any>> = FormValues;
253
- }
254
- declare const FieldRoot: React$1.ForwardRefExoticComponent<Omit<FieldRootProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
255
- export interface FieldValidityData {
256
- state: {
257
- badInput: boolean;
258
- customError: boolean;
259
- patternMismatch: boolean;
260
- rangeOverflow: boolean;
261
- rangeUnderflow: boolean;
262
- stepMismatch: boolean;
263
- tooLong: boolean;
264
- tooShort: boolean;
265
- typeMismatch: boolean;
266
- valueMissing: boolean;
267
- valid: boolean | null;
268
- };
269
- error: string;
270
- errors: string[];
271
- value: unknown;
272
- initialValue: unknown;
273
- }
274
- export interface FieldRootActions {
275
- validate: () => void;
276
- }
277
- export interface FieldRootState {
278
- /**
279
- * Whether the component should ignore user interaction.
280
- */
281
- disabled: boolean;
282
- /**
283
- * Whether the field has been touched.
284
- */
285
- touched: boolean;
286
- /**
287
- * Whether the field value has changed from its initial value.
288
- */
289
- dirty: boolean;
290
- /**
291
- * Whether the field is valid.
292
- */
293
- valid: boolean | null;
294
- /**
295
- * Whether the field has a value.
296
- */
297
- filled: boolean;
298
- /**
299
- * Whether the field is focused.
300
- */
301
- focused: boolean;
302
- }
303
- export interface FieldRootProps extends BaseUIComponentProps<"div", FieldRootState> {
304
- /**
305
- * Whether the component should ignore user interaction.
306
- * Takes precedence over the `disabled` prop on the `<Field.Control>` component.
307
- * @default false
308
- */
309
- disabled?: boolean | undefined;
310
- /**
311
- * Identifies the field when a form is submitted.
312
- * Takes precedence over the `name` prop on the `<Field.Control>` component.
313
- */
314
- name?: string | undefined;
315
- /**
316
- * A function for custom validation. Return a string or an array of strings with
317
- * the error message(s) if the value is invalid, or `null` if the value is valid.
318
- * Asynchronous functions are supported, but they do not prevent form submission
319
- * when using `validationMode="onSubmit"`.
320
- */
321
- validate?: ((value: unknown, formValues: Form.Values) => string | string[] | null | Promise<string | string[] | null>) | undefined;
322
- /**
323
- * Determines when the field should be validated.
324
- * This takes precedence over the `validationMode` prop on `<Form>`.
325
- *
326
- * - `onSubmit`: triggers validation when the form is submitted, and re-validates on change after submission.
327
- * - `onBlur`: triggers validation when the control loses focus.
328
- * - `onChange`: triggers validation on every change to the control value.
329
- *
330
- * @default 'onSubmit'
331
- */
332
- validationMode?: Form.ValidationMode | undefined;
333
- /**
334
- * How long to wait between `validate` callbacks if
335
- * `validationMode="onChange"` is used. Specified in milliseconds.
336
- * @default 0
337
- */
338
- validationDebounceTime?: number | undefined;
339
- /**
340
- * Whether the field is invalid.
341
- * Useful when the field state is controlled by an external library.
342
- */
343
- invalid?: boolean | undefined;
344
- /**
345
- * Whether the field's value has been changed from its initial value.
346
- * Useful when the field state is controlled by an external library.
347
- */
348
- dirty?: boolean | undefined;
349
- /**
350
- * Whether the field has been touched.
351
- * Useful when the field state is controlled by an external library.
352
- */
353
- touched?: boolean | undefined;
354
- /**
355
- * A ref to imperative actions.
356
- * - `validate`: Validates the field when called.
357
- */
358
- actionsRef?: React$1.RefObject<FieldRoot.Actions | null> | undefined;
359
- }
360
- declare namespace FieldRoot {
361
- type State = FieldRootState;
362
- type Props = FieldRootProps;
363
- type Actions = FieldRootActions;
364
- }
365
- declare const FieldLabel: React$1.ForwardRefExoticComponent<Omit<FieldLabelProps, "ref"> & React$1.RefAttributes<HTMLElement>>;
366
- export interface FieldLabelState extends FieldRootState {
367
- }
368
- export interface FieldLabelProps extends BaseUIComponentProps<"label", FieldLabelState> {
369
- /**
370
- * Whether the component renders a native `<label>` element when replacing it via the `render` prop.
371
- * Set to `false` if the rendered element is not a label (for example, `<div>`).
372
- *
373
- * This is useful to avoid inheriting label behaviors on `<button>` controls (such as `<Select.Trigger>` and `<Combobox.Trigger>`), including avoiding `:hover` on the button when hovering the label, and preventing clicks on the label from firing on the button.
374
- * @default true
375
- */
376
- nativeLabel?: boolean | undefined;
377
- }
378
- declare namespace FieldLabel {
379
- type State = FieldLabelState;
380
- type Props = FieldLabelProps;
381
- }
382
- export type TransitionStatus = "starting" | "ending" | "idle" | undefined;
383
- declare const FieldError: React$1.ForwardRefExoticComponent<Omit<FieldErrorProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
384
- export interface FieldErrorState extends FieldRootState {
385
- /**
386
- * The transition status of the component.
387
- */
388
- transitionStatus: TransitionStatus;
389
- }
390
- export interface FieldErrorProps extends BaseUIComponentProps<"div", FieldErrorState> {
391
- /**
392
- * Determines whether to show the error message according to the field's
393
- * [ValidityState](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState).
394
- * Specifying `true` will always show the error message, and lets external libraries
395
- * control the visibility.
396
- */
397
- match?: boolean | keyof ValidityState | undefined;
398
- }
399
- declare namespace FieldError {
400
- type State = FieldErrorState;
401
- type Props = FieldErrorProps;
402
- }
403
- declare const FieldDescription: React$1.ForwardRefExoticComponent<Omit<FieldDescriptionProps, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
404
- export interface FieldDescriptionState extends FieldRootState {
405
- }
406
- export interface FieldDescriptionProps extends BaseUIComponentProps<"p", FieldDescriptionState> {
407
- }
408
- declare namespace FieldDescription {
409
- type State = FieldDescriptionState;
410
- type Props = FieldDescriptionProps;
411
- }
412
- declare const FieldControl: React$1.ForwardRefExoticComponent<Omit<FieldControlProps, "ref"> & React$1.RefAttributes<HTMLElement>>;
413
- export interface FieldControlState extends FieldRootState {
414
- }
415
- export interface FieldControlProps extends BaseUIComponentProps<"input", FieldControlState> {
416
- /**
417
- * Callback fired when the `value` changes. Use when controlled.
418
- */
419
- onValueChange?: ((value: string, eventDetails: FieldControl.ChangeEventDetails) => void) | undefined;
420
- defaultValue?: React$1.ComponentProps<"input">["defaultValue"] | undefined;
421
- }
422
- export type FieldControlChangeEventReason = typeof none;
423
- export type FieldControlChangeEventDetails = BaseUIChangeEventDetails<FieldControl.ChangeEventReason>;
424
- declare namespace FieldControl {
425
- type State = FieldControlState;
426
- type Props = FieldControlProps;
427
- type ChangeEventReason = FieldControlChangeEventReason;
428
- type ChangeEventDetails = FieldControlChangeEventDetails;
429
- }
430
- declare const FieldValidity: React$1.FC<FieldValidity.Props>;
431
- export interface FieldValidityState extends Omit<FieldValidityData, "state"> {
432
- /**
433
- * The validity state.
434
- */
435
- validity: FieldValidityData["state"];
436
- /**
437
- * The transition status of the component.
438
- */
439
- transitionStatus: TransitionStatus;
440
- }
441
- export interface FieldValidityProps {
442
- /**
443
- * A function that accepts the field validity state as an argument.
444
- *
445
- * ```jsx
446
- * <Field.Validity>
447
- * {(validity) => {
448
- * return <div>...</div>
449
- * }}
450
- * </Field.Validity>
451
- * ```
452
- */
453
- children: (state: FieldValidityState) => React$1.ReactNode;
454
- }
455
- declare namespace FieldValidity {
456
- type State = FieldValidityState;
457
- type Props = FieldValidityProps;
458
- }
459
- declare const FieldItem: React$1.ForwardRefExoticComponent<Omit<FieldItemProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
460
- export interface FieldItemState extends FieldRootState {
461
- }
462
- export interface FieldItemProps extends BaseUIComponentProps<"div", FieldItemState> {
463
- /**
464
- * Whether the wrapped control should ignore user interaction.
465
- * The `disabled` prop on `<Field.Root>` takes precedence over this.
466
- * @default false
467
- */
468
- disabled?: boolean | undefined;
469
- }
470
- declare namespace FieldItem {
471
- type State = FieldItemState;
472
- type Props = FieldItemProps;
473
- }
474
- /**
475
- * A native input element that automatically works with [Field](https://base-ui.com/react/components/field).
476
- * Renders an `<input>` element.
477
- *
478
- * Documentation: [Base UI Input](https://base-ui.com/react/components/input)
479
- */
480
- export declare const Input: React$1.ForwardRefExoticComponent<Omit<InputProps, "ref"> & React$1.RefAttributes<HTMLElement>>;
481
- export interface InputProps extends BaseUIComponentProps<"input", InputState> {
482
- /**
483
- * Callback fired when the `value` changes. Use when controlled.
484
- */
485
- onValueChange?: ((value: string, eventDetails: Input.ChangeEventDetails) => void) | undefined;
486
- /**
487
- * The default value of the input. Use when uncontrolled.
488
- */
489
- defaultValue?: FieldControl.Props["defaultValue"] | undefined;
490
- /**
491
- * The value of the input. Use when controlled.
492
- */
493
- value?: React$1.ComponentProps<"input">["value"] | undefined;
494
- }
495
- export interface InputState extends FieldControlState {
496
- }
497
- export type InputChangeEventReason = FieldControl.ChangeEventReason;
498
- export type InputChangeEventDetails = FieldControl.ChangeEventDetails;
499
- export declare namespace Input {
500
- type Props = InputProps;
501
- type State = InputState;
502
- type ChangeEventReason = InputChangeEventReason;
503
- type ChangeEventDetails = InputChangeEventDetails;
504
- }
505
-
506
- export {};