@stevederico/skateboard-ui 3.12.0 → 4.0.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 (336) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +37 -31
  3. package/dist/shadcn/ui/accordion.d.ts +1 -6
  4. package/dist/shadcn/ui/accordion.js +3 -17
  5. package/dist/shadcn/ui/alert-dialog.d.ts +1 -18
  6. package/dist/shadcn/ui/alert-dialog.js +3 -43
  7. package/dist/shadcn/ui/alert.d.ts +1 -13
  8. package/dist/shadcn/ui/alert.js +3 -28
  9. package/dist/shadcn/ui/aspect-ratio.d.ts +1 -4
  10. package/dist/shadcn/ui/aspect-ratio.js +3 -8
  11. package/dist/shadcn/ui/avatar.d.ts +1 -11
  12. package/dist/shadcn/ui/avatar.js +3 -24
  13. package/dist/shadcn/ui/badge.d.ts +1 -14
  14. package/dist/shadcn/ui/badge.js +3 -33
  15. package/dist/shadcn/ui/breadcrumb.d.ts +1 -10
  16. package/dist/shadcn/ui/breadcrumb.js +3 -37
  17. package/dist/shadcn/ui/button-group.d.ts +1 -13
  18. package/dist/shadcn/ui/button-group.js +3 -36
  19. package/dist/shadcn/ui/button.d.ts +1 -34
  20. package/dist/shadcn/ui/button.js +3 -53
  21. package/dist/shadcn/ui/calendar.d.ts +1 -13
  22. package/dist/shadcn/ui/calendar.js +3 -75
  23. package/dist/shadcn/ui/card.d.ts +1 -11
  24. package/dist/shadcn/ui/card.js +3 -25
  25. package/dist/shadcn/ui/checkbox.d.ts +1 -3
  26. package/dist/shadcn/ui/checkbox.js +3 -9
  27. package/dist/shadcn/ui/collapsible.d.ts +1 -5
  28. package/dist/shadcn/ui/collapsible.js +3 -13
  29. package/dist/shadcn/ui/command.d.ts +1 -19
  30. package/dist/shadcn/ui/command.js +3 -35
  31. package/dist/shadcn/ui/context-menu.d.ts +1 -29
  32. package/dist/shadcn/ui/context-menu.js +3 -52
  33. package/dist/shadcn/ui/dialog.d.ts +1 -17
  34. package/dist/shadcn/ui/dialog.js +3 -38
  35. package/dist/shadcn/ui/drawer.d.ts +1 -13
  36. package/dist/shadcn/ui/drawer.js +3 -196
  37. package/dist/shadcn/ui/dropdown-menu.d.ts +1 -29
  38. package/dist/shadcn/ui/dropdown-menu.js +3 -52
  39. package/dist/shadcn/ui/empty.d.ts +1 -14
  40. package/dist/shadcn/ui/empty.js +3 -33
  41. package/dist/shadcn/ui/field.d.ts +1 -28
  42. package/dist/shadcn/ui/field.js +3 -68
  43. package/dist/shadcn/ui/hover-card.d.ts +1 -5
  44. package/dist/shadcn/ui/hover-card.js +3 -14
  45. package/dist/shadcn/ui/input-group.d.ts +1 -28
  46. package/dist/shadcn/ui/input-group.js +3 -58
  47. package/dist/shadcn/ui/input.d.ts +1 -3
  48. package/dist/shadcn/ui/input.js +3 -8
  49. package/dist/shadcn/ui/item.d.ts +1 -34
  50. package/dist/shadcn/ui/item.js +3 -79
  51. package/dist/shadcn/ui/kbd.d.ts +1 -3
  52. package/dist/shadcn/ui/kbd.js +3 -9
  53. package/dist/shadcn/ui/label.d.ts +1 -3
  54. package/dist/shadcn/ui/label.js +3 -8
  55. package/dist/shadcn/ui/menubar.d.ts +1 -29
  56. package/dist/shadcn/ui/menubar.js +3 -57
  57. package/dist/shadcn/ui/navigation-menu.d.ts +1 -13
  58. package/dist/shadcn/ui/navigation-menu.js +3 -31
  59. package/dist/shadcn/ui/pagination.d.ts +1 -17
  60. package/dist/shadcn/ui/pagination.js +3 -27
  61. package/dist/shadcn/ui/popover.d.ts +1 -9
  62. package/dist/shadcn/ui/popover.js +3 -24
  63. package/dist/shadcn/ui/progress.d.ts +1 -7
  64. package/dist/shadcn/ui/progress.js +3 -20
  65. package/dist/shadcn/ui/radio-group.d.ts +1 -5
  66. package/dist/shadcn/ui/radio-group.js +3 -12
  67. package/dist/shadcn/ui/scroll-area.d.ts +1 -5
  68. package/dist/shadcn/ui/scroll-area.js +3 -12
  69. package/dist/shadcn/ui/select.d.ts +1 -15
  70. package/dist/shadcn/ui/select.js +3 -35
  71. package/dist/shadcn/ui/separator.d.ts +1 -3
  72. package/dist/shadcn/ui/separator.js +3 -8
  73. package/dist/shadcn/ui/sheet.d.ts +1 -14
  74. package/dist/shadcn/ui/sheet.js +3 -38
  75. package/dist/shadcn/ui/sidebar.d.ts +1 -70
  76. package/dist/shadcn/ui/sidebar.js +3 -256
  77. package/dist/shadcn/ui/skeleton.d.ts +1 -2
  78. package/dist/shadcn/ui/skeleton.js +3 -6
  79. package/dist/shadcn/ui/slider.d.ts +1 -3
  80. package/dist/shadcn/ui/slider.js +3 -12
  81. package/dist/shadcn/ui/spinner.d.ts +1 -2
  82. package/dist/shadcn/ui/spinner.js +3 -7
  83. package/dist/shadcn/ui/switch.d.ts +1 -5
  84. package/dist/shadcn/ui/switch.js +3 -8
  85. package/dist/shadcn/ui/table.d.ts +1 -10
  86. package/dist/shadcn/ui/table.js +3 -29
  87. package/dist/shadcn/ui/tabs.d.ts +1 -13
  88. package/dist/shadcn/ui/tabs.js +3 -29
  89. package/dist/shadcn/ui/textarea.d.ts +1 -3
  90. package/dist/shadcn/ui/textarea.js +3 -7
  91. package/dist/shadcn/ui/toggle-group.d.ts +1 -11
  92. package/dist/shadcn/ui/toggle-group.js +3 -25
  93. package/dist/shadcn/ui/toggle.d.ts +1 -15
  94. package/dist/shadcn/ui/toggle.js +3 -26
  95. package/dist/shadcn/ui/tooltip.d.ts +1 -6
  96. package/dist/shadcn/ui/tooltip.js +3 -17
  97. package/dist/ui/accordion.d.ts +21 -0
  98. package/dist/ui/accordion.js +67 -0
  99. package/dist/ui/alert-dialog.d.ts +32 -0
  100. package/dist/ui/alert-dialog.js +102 -0
  101. package/dist/ui/alert.d.ts +13 -0
  102. package/dist/ui/alert.js +28 -0
  103. package/dist/ui/aspect-ratio.d.ts +5 -0
  104. package/dist/ui/aspect-ratio.js +9 -0
  105. package/dist/ui/avatar.d.ts +14 -0
  106. package/dist/ui/avatar.js +49 -0
  107. package/dist/ui/badge.d.ts +22 -0
  108. package/dist/ui/badge.js +26 -0
  109. package/dist/ui/breadcrumb.d.ts +13 -0
  110. package/dist/ui/breadcrumb.js +29 -0
  111. package/dist/ui/button-group.d.ts +21 -0
  112. package/dist/ui/button-group.js +29 -0
  113. package/dist/ui/button.d.ts +38 -0
  114. package/dist/ui/button.js +49 -0
  115. package/dist/ui/calendar.d.ts +13 -0
  116. package/dist/ui/calendar.js +75 -0
  117. package/dist/ui/card.d.ts +11 -0
  118. package/dist/ui/card.js +25 -0
  119. package/dist/ui/checkbox.d.ts +17 -0
  120. package/dist/ui/checkbox.js +25 -0
  121. package/dist/ui/collapsible.d.ts +11 -0
  122. package/dist/ui/collapsible.js +40 -0
  123. package/dist/ui/command.d.ts +19 -0
  124. package/dist/ui/command.js +35 -0
  125. package/dist/ui/context-menu.d.ts +53 -0
  126. package/dist/ui/context-menu.js +345 -0
  127. package/dist/ui/dialog.d.ts +40 -0
  128. package/dist/ui/dialog.js +109 -0
  129. package/dist/ui/drawer.d.ts +36 -0
  130. package/dist/ui/drawer.js +234 -0
  131. package/dist/ui/dropdown-menu.d.ts +61 -0
  132. package/dist/ui/dropdown-menu.js +323 -0
  133. package/dist/ui/empty.d.ts +14 -0
  134. package/dist/ui/empty.js +33 -0
  135. package/dist/ui/field.d.ts +28 -0
  136. package/dist/ui/field.js +68 -0
  137. package/dist/ui/hover-card.d.ts +32 -0
  138. package/dist/ui/hover-card.js +119 -0
  139. package/dist/ui/input-group.d.ts +28 -0
  140. package/dist/ui/input-group.js +58 -0
  141. package/dist/ui/input.d.ts +3 -0
  142. package/dist/ui/input.js +7 -0
  143. package/dist/ui/item.d.ts +41 -0
  144. package/dist/ui/item.js +69 -0
  145. package/dist/ui/kbd.d.ts +4 -0
  146. package/dist/ui/kbd.js +10 -0
  147. package/dist/ui/label.d.ts +3 -0
  148. package/dist/ui/label.js +8 -0
  149. package/dist/ui/menubar.d.ts +59 -0
  150. package/dist/ui/menubar.js +384 -0
  151. package/dist/ui/navigation-menu.d.ts +24 -0
  152. package/dist/ui/navigation-menu.js +134 -0
  153. package/dist/ui/pagination.d.ts +17 -0
  154. package/dist/ui/pagination.js +36 -0
  155. package/dist/ui/popover.d.ts +25 -0
  156. package/dist/ui/popover.js +68 -0
  157. package/dist/ui/portal.d.ts +7 -0
  158. package/dist/ui/portal.js +12 -0
  159. package/dist/ui/progress.d.ts +15 -0
  160. package/dist/ui/progress.js +36 -0
  161. package/dist/ui/radio-group.d.ts +17 -0
  162. package/dist/ui/radio-group.js +54 -0
  163. package/dist/ui/scroll-area.d.ts +9 -0
  164. package/dist/ui/scroll-area.js +72 -0
  165. package/dist/ui/select.d.ts +37 -0
  166. package/dist/ui/select.js +216 -0
  167. package/dist/ui/separator.d.ts +14 -0
  168. package/dist/ui/separator.js +13 -0
  169. package/dist/ui/sheet.d.ts +31 -0
  170. package/dist/ui/sheet.js +121 -0
  171. package/dist/ui/sidebar.d.ts +86 -0
  172. package/dist/ui/sidebar.js +211 -0
  173. package/dist/ui/skeleton.d.ts +3 -0
  174. package/dist/ui/skeleton.js +7 -0
  175. package/dist/ui/slider.d.ts +18 -0
  176. package/dist/ui/slider.js +94 -0
  177. package/dist/ui/slot.d.ts +27 -0
  178. package/dist/ui/slot.js +62 -0
  179. package/dist/ui/spinner.d.ts +3 -0
  180. package/dist/ui/spinner.js +8 -0
  181. package/dist/ui/switch.d.ts +17 -0
  182. package/dist/ui/switch.js +23 -0
  183. package/dist/ui/table.d.ts +10 -0
  184. package/dist/ui/table.js +29 -0
  185. package/dist/ui/tabs.d.ts +29 -0
  186. package/dist/ui/tabs.js +82 -0
  187. package/dist/ui/textarea.d.ts +3 -0
  188. package/dist/ui/textarea.js +7 -0
  189. package/dist/ui/toggle-group.d.ts +23 -0
  190. package/dist/ui/toggle-group.js +52 -0
  191. package/dist/ui/toggle.d.ts +25 -0
  192. package/dist/ui/toggle.js +41 -0
  193. package/dist/ui/tooltip.d.ts +25 -0
  194. package/dist/ui/tooltip.js +90 -0
  195. package/dist/ui/use-controllable-state.d.ts +10 -0
  196. package/dist/ui/use-controllable-state.js +17 -0
  197. package/dist/ui/use-dismiss.d.ts +10 -0
  198. package/dist/ui/use-dismiss.js +51 -0
  199. package/dist/ui/use-floating.d.ts +38 -0
  200. package/dist/ui/use-floating.js +128 -0
  201. package/dist/ui/use-presence.d.ts +8 -0
  202. package/dist/ui/use-presence.js +48 -0
  203. package/package.json +6 -1
  204. package/dist/shadcn/lib/base-ui/LICENSE +0 -21
  205. package/dist/shadcn/lib/base-ui/_chunk-000kmre8.js +0 -150
  206. package/dist/shadcn/lib/base-ui/_chunk-1vw45v38.js +0 -64
  207. package/dist/shadcn/lib/base-ui/_chunk-23rx7haq.js +0 -81
  208. package/dist/shadcn/lib/base-ui/_chunk-242gh8ph.js +0 -230
  209. package/dist/shadcn/lib/base-ui/_chunk-26cc610z.js +0 -6
  210. package/dist/shadcn/lib/base-ui/_chunk-2z044bba.js +0 -5890
  211. package/dist/shadcn/lib/base-ui/_chunk-3cpd1vjz.js +0 -13
  212. package/dist/shadcn/lib/base-ui/_chunk-3enq1vat.js +0 -82
  213. package/dist/shadcn/lib/base-ui/_chunk-3xpke33f.js +0 -23
  214. package/dist/shadcn/lib/base-ui/_chunk-451nqgsa.js +0 -6
  215. package/dist/shadcn/lib/base-ui/_chunk-4maf6pas.js +0 -11
  216. package/dist/shadcn/lib/base-ui/_chunk-4zhfq4d3.js +0 -16
  217. package/dist/shadcn/lib/base-ui/_chunk-5gaqyne5.js +0 -21
  218. package/dist/shadcn/lib/base-ui/_chunk-5tt5hk59.js +0 -4
  219. package/dist/shadcn/lib/base-ui/_chunk-5tze5c8q.js +0 -13
  220. package/dist/shadcn/lib/base-ui/_chunk-5xmdvndx.js +0 -225
  221. package/dist/shadcn/lib/base-ui/_chunk-6adaer33.js +0 -435
  222. package/dist/shadcn/lib/base-ui/_chunk-6ejf1z1r.js +0 -9
  223. package/dist/shadcn/lib/base-ui/_chunk-6kqramh9.js +0 -27
  224. package/dist/shadcn/lib/base-ui/_chunk-7b9dc493.js +0 -14
  225. package/dist/shadcn/lib/base-ui/_chunk-8a9vv8am.js +0 -89
  226. package/dist/shadcn/lib/base-ui/_chunk-8ctgmf06.js +0 -129
  227. package/dist/shadcn/lib/base-ui/_chunk-8ganmsbg.js +0 -54
  228. package/dist/shadcn/lib/base-ui/_chunk-8xaqxgck.js +0 -15
  229. package/dist/shadcn/lib/base-ui/_chunk-95tf2rxq.js +0 -62
  230. package/dist/shadcn/lib/base-ui/_chunk-9x63vfqj.js +0 -70
  231. package/dist/shadcn/lib/base-ui/_chunk-ase0ydtt.js +0 -9
  232. package/dist/shadcn/lib/base-ui/_chunk-b0nc8wq7.js +0 -34
  233. package/dist/shadcn/lib/base-ui/_chunk-b5ya6xds.js +0 -10
  234. package/dist/shadcn/lib/base-ui/_chunk-b6dkjkbw.js +0 -43
  235. package/dist/shadcn/lib/base-ui/_chunk-c2bz952e.js +0 -19
  236. package/dist/shadcn/lib/base-ui/_chunk-cdgfsr3q.js +0 -15
  237. package/dist/shadcn/lib/base-ui/_chunk-cdj8cpx5.js +0 -347
  238. package/dist/shadcn/lib/base-ui/_chunk-cgptgywc.js +0 -104
  239. package/dist/shadcn/lib/base-ui/_chunk-cwvtvwc7.js +0 -35
  240. package/dist/shadcn/lib/base-ui/_chunk-dan0mva4.js +0 -23
  241. package/dist/shadcn/lib/base-ui/_chunk-dzvjwv25.js +0 -0
  242. package/dist/shadcn/lib/base-ui/_chunk-e13rsb6b.js +0 -184
  243. package/dist/shadcn/lib/base-ui/_chunk-e56mpvk1.js +0 -118
  244. package/dist/shadcn/lib/base-ui/_chunk-e6k2ecs7.js +0 -48
  245. package/dist/shadcn/lib/base-ui/_chunk-ebyxgtb4.js +0 -29
  246. package/dist/shadcn/lib/base-ui/_chunk-f2wttwrf.js +0 -39
  247. package/dist/shadcn/lib/base-ui/_chunk-fdzctasg.js +0 -38
  248. package/dist/shadcn/lib/base-ui/_chunk-ffpjy0ta.js +0 -39
  249. package/dist/shadcn/lib/base-ui/_chunk-fqry7pew.js +0 -603
  250. package/dist/shadcn/lib/base-ui/_chunk-ghn1tzt8.js +0 -84
  251. package/dist/shadcn/lib/base-ui/_chunk-gy0bpkmx.js +0 -12
  252. package/dist/shadcn/lib/base-ui/_chunk-hm5h9vsk.js +0 -16
  253. package/dist/shadcn/lib/base-ui/_chunk-htdj1jps.js +0 -833
  254. package/dist/shadcn/lib/base-ui/_chunk-j29xjete.js +0 -146
  255. package/dist/shadcn/lib/base-ui/_chunk-j3qkyd10.js +0 -50
  256. package/dist/shadcn/lib/base-ui/_chunk-ktvsd5k6.js +0 -2386
  257. package/dist/shadcn/lib/base-ui/_chunk-kw8nnq00.js +0 -546
  258. package/dist/shadcn/lib/base-ui/_chunk-m307wpdj.js +0 -18
  259. package/dist/shadcn/lib/base-ui/_chunk-mnd0j7v9.js +0 -15
  260. package/dist/shadcn/lib/base-ui/_chunk-n11h505c.js +0 -32
  261. package/dist/shadcn/lib/base-ui/_chunk-p0e2qacz.js +0 -26
  262. package/dist/shadcn/lib/base-ui/_chunk-pv7b791x.js +0 -106
  263. package/dist/shadcn/lib/base-ui/_chunk-q5cg71p7.js +0 -83
  264. package/dist/shadcn/lib/base-ui/_chunk-qbezxj1g.js +0 -385
  265. package/dist/shadcn/lib/base-ui/_chunk-qmsqz6nt.js +0 -15
  266. package/dist/shadcn/lib/base-ui/_chunk-rrh8rt4v.js +0 -65
  267. package/dist/shadcn/lib/base-ui/_chunk-s5pwkz8v.js +0 -25
  268. package/dist/shadcn/lib/base-ui/_chunk-svxv97ph.js +0 -218
  269. package/dist/shadcn/lib/base-ui/_chunk-t7ppm3t0.js +0 -68
  270. package/dist/shadcn/lib/base-ui/_chunk-vg16xxmb.js +0 -52
  271. package/dist/shadcn/lib/base-ui/_chunk-vgkfmtbe.js +0 -21
  272. package/dist/shadcn/lib/base-ui/_chunk-watha94s.js +0 -14
  273. package/dist/shadcn/lib/base-ui/_chunk-wdqynnjf.js +0 -35
  274. package/dist/shadcn/lib/base-ui/_chunk-wx2nxg0p.js +0 -15
  275. package/dist/shadcn/lib/base-ui/_chunk-x11e1k9r.js +0 -0
  276. package/dist/shadcn/lib/base-ui/_chunk-x8xehj6d.js +0 -302
  277. package/dist/shadcn/lib/base-ui/_chunk-xcqbtm2f.js +0 -28
  278. package/dist/shadcn/lib/base-ui/_chunk-ytnp24gq.js +0 -328
  279. package/dist/shadcn/lib/base-ui/_chunk-yzr7eg4b.js +0 -6
  280. package/dist/shadcn/lib/base-ui/_chunk-zk4mtm9m.js +0 -9
  281. package/dist/shadcn/lib/base-ui/accordion.d.ts +0 -447
  282. package/dist/shadcn/lib/base-ui/accordion.js +0 -630
  283. package/dist/shadcn/lib/base-ui/alert-dialog.d.ts +0 -1467
  284. package/dist/shadcn/lib/base-ui/alert-dialog.js +0 -98
  285. package/dist/shadcn/lib/base-ui/avatar.d.ts +0 -123
  286. package/dist/shadcn/lib/base-ui/avatar.js +0 -235
  287. package/dist/shadcn/lib/base-ui/button.d.ts +0 -84
  288. package/dist/shadcn/lib/base-ui/button.js +0 -51
  289. package/dist/shadcn/lib/base-ui/checkbox.d.ts +0 -341
  290. package/dist/shadcn/lib/base-ui/checkbox.js +0 -501
  291. package/dist/shadcn/lib/base-ui/collapsible.d.ts +0 -291
  292. package/dist/shadcn/lib/base-ui/collapsible.js +0 -264
  293. package/dist/shadcn/lib/base-ui/context-menu.d.ts +0 -2213
  294. package/dist/shadcn/lib/base-ui/context-menu.js +0 -323
  295. package/dist/shadcn/lib/base-ui/dialog.d.ts +0 -1448
  296. package/dist/shadcn/lib/base-ui/dialog.js +0 -79
  297. package/dist/shadcn/lib/base-ui/input.d.ts +0 -506
  298. package/dist/shadcn/lib/base-ui/input.js +0 -1027
  299. package/dist/shadcn/lib/base-ui/menu.d.ts +0 -2275
  300. package/dist/shadcn/lib/base-ui/menu.js +0 -60
  301. package/dist/shadcn/lib/base-ui/menubar.d.ts +0 -48
  302. package/dist/shadcn/lib/base-ui/menubar.js +0 -156
  303. package/dist/shadcn/lib/base-ui/merge-props.d.ts +0 -70
  304. package/dist/shadcn/lib/base-ui/merge-props.js +0 -15
  305. package/dist/shadcn/lib/base-ui/navigation-menu.d.ts +0 -825
  306. package/dist/shadcn/lib/base-ui/navigation-menu.js +0 -1849
  307. package/dist/shadcn/lib/base-ui/popover.d.ts +0 -1743
  308. package/dist/shadcn/lib/base-ui/popover.js +0 -1089
  309. package/dist/shadcn/lib/base-ui/preview-card.d.ts +0 -1608
  310. package/dist/shadcn/lib/base-ui/preview-card.js +0 -919
  311. package/dist/shadcn/lib/base-ui/progress.d.ts +0 -172
  312. package/dist/shadcn/lib/base-ui/progress.js +0 -272
  313. package/dist/shadcn/lib/base-ui/radio-group.d.ts +0 -260
  314. package/dist/shadcn/lib/base-ui/radio-group.js +0 -239
  315. package/dist/shadcn/lib/base-ui/radio.d.ts +0 -176
  316. package/dist/shadcn/lib/base-ui/radio.js +0 -387
  317. package/dist/shadcn/lib/base-ui/scroll-area.d.ts +0 -241
  318. package/dist/shadcn/lib/base-ui/scroll-area.js +0 -1055
  319. package/dist/shadcn/lib/base-ui/select.d.ts +0 -1266
  320. package/dist/shadcn/lib/base-ui/select.js +0 -2450
  321. package/dist/shadcn/lib/base-ui/separator.d.ts +0 -76
  322. package/dist/shadcn/lib/base-ui/separator.js +0 -11
  323. package/dist/shadcn/lib/base-ui/slider.d.ts +0 -551
  324. package/dist/shadcn/lib/base-ui/slider.js +0 -1583
  325. package/dist/shadcn/lib/base-ui/switch.d.ts +0 -313
  326. package/dist/shadcn/lib/base-ui/switch.js +0 -326
  327. package/dist/shadcn/lib/base-ui/tabs.d.ts +0 -406
  328. package/dist/shadcn/lib/base-ui/tabs.js +0 -915
  329. package/dist/shadcn/lib/base-ui/toggle-group.d.ts +0 -235
  330. package/dist/shadcn/lib/base-ui/toggle-group.js +0 -145
  331. package/dist/shadcn/lib/base-ui/toggle.d.ts +0 -224
  332. package/dist/shadcn/lib/base-ui/toggle.js +0 -127
  333. package/dist/shadcn/lib/base-ui/tooltip.d.ts +0 -1656
  334. package/dist/shadcn/lib/base-ui/tooltip.js +0 -920
  335. package/dist/shadcn/lib/base-ui/use-render.d.ts +0 -87
  336. package/dist/shadcn/lib/base-ui/use-render.js +0 -15
@@ -1,447 +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
- export type HTMLProps<T = any> = React$1.HTMLAttributes<T> & {
117
- ref?: React$1.Ref<T> | undefined;
118
- };
119
- /**
120
- * 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.
121
- *
122
- * @template Props Props to be spread on the rendered element.
123
- * @template State Component's internal state.
124
- */
125
- export type ComponentRenderFn<Props, State> = (props: Props, state: State) => React$1.ReactElement<unknown>;
126
- export type BaseUIEvent<E extends React$1.SyntheticEvent<Element, Event>> = E & {
127
- preventBaseUIHandler: () => void;
128
- readonly baseUIHandlerPrevented?: boolean | undefined;
129
- };
130
- 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;
131
- /**
132
- * Adds a `preventBaseUIHandler` method to all event handlers.
133
- */
134
- export type WithBaseUIEvent<T> = {
135
- [K in keyof T]: WithPreventBaseUIHandler<T[K]>;
136
- };
137
- /**
138
- * Props shared by all Base UI components.
139
- * Contains `className` (string or callback taking the component's state as an argument) and `render` (function to customize rendering).
140
- */
141
- export type BaseUIComponentProps<ElementType extends React$1.ElementType, State, RenderFunctionProps = HTMLProps> = Omit<WithBaseUIEvent<React$1.ComponentPropsWithRef<ElementType>>, "className" | "color" | "defaultValue" | "defaultChecked" | "style"> & {
142
- /**
143
- * CSS class applied to the element, or a function that
144
- * returns a class based on the component's state.
145
- */
146
- className?: string | ((state: State) => string | undefined) | undefined;
147
- /**
148
- * Allows you to replace the component's HTML element
149
- * with a different tag, or compose it with another component.
150
- *
151
- * Accepts a `ReactElement` or a function that returns the element to render.
152
- */
153
- render?: React$1.ReactElement | ComponentRenderFn<RenderFunctionProps, State> | undefined;
154
- /**
155
- * Style applied to the element, or a function that
156
- * returns a style object based on the component's state.
157
- */
158
- style?: React$1.CSSProperties | ((state: State) => React$1.CSSProperties | undefined) | undefined;
159
- };
160
- export interface NativeButtonProps {
161
- /**
162
- * Whether the component renders a native `<button>` element when replacing it
163
- * via the `render` prop.
164
- * Set to `false` if the rendered element is not a button (for example, `<div>`).
165
- * @default true
166
- */
167
- nativeButton?: boolean | undefined;
168
- }
169
- export type Orientation = "horizontal" | "vertical";
170
- /**
171
- * Groups all parts of the accordion.
172
- * Renders a `<div>` element.
173
- *
174
- * Documentation: [Base UI Accordion](https://base-ui.com/react/components/accordion)
175
- */
176
- export declare const AccordionRoot: {
177
- <Value = any>(props: AccordionRoot.Props<Value>): React$1.JSX.Element;
178
- };
179
- export type AccordionValue<Value = any> = Value[];
180
- export interface AccordionRootState<Value = any> {
181
- /**
182
- * The current value.
183
- */
184
- value: AccordionValue<Value>;
185
- /**
186
- * Whether the component should ignore user interaction.
187
- */
188
- disabled: boolean;
189
- /**
190
- * The component orientation.
191
- */
192
- orientation: Orientation;
193
- }
194
- export interface AccordionRootProps<Value = any> extends BaseUIComponentProps<"div", AccordionRoot.State<Value>> {
195
- /**
196
- * The controlled value of the item(s) that should be expanded.
197
- *
198
- * To render an uncontrolled accordion, use the `defaultValue` prop instead.
199
- */
200
- value?: AccordionValue<Value> | undefined;
201
- /**
202
- * The uncontrolled value of the item(s) that should be initially expanded.
203
- *
204
- * To render a controlled accordion, use the `value` prop instead.
205
- */
206
- defaultValue?: AccordionValue<Value> | undefined;
207
- /**
208
- * Whether the component should ignore user interaction.
209
- * @default false
210
- */
211
- disabled?: boolean | undefined;
212
- /**
213
- * Allows the browser's built-in page search to find and expand the panel contents.
214
- *
215
- * Overrides the `keepMounted` prop and uses `hidden="until-found"`
216
- * to hide the element without removing it from the DOM.
217
- * @default false
218
- */
219
- hiddenUntilFound?: boolean | undefined;
220
- /**
221
- * Whether to keep the element in the DOM while the panel is closed.
222
- * This prop is ignored when `hiddenUntilFound` is used.
223
- * @default false
224
- */
225
- keepMounted?: boolean | undefined;
226
- /**
227
- * Whether to loop keyboard focus back to the first item
228
- * when the end of the list is reached while using the arrow keys.
229
- * @default true
230
- */
231
- loopFocus?: boolean | undefined;
232
- /**
233
- * Event handler called when an accordion item is expanded or collapsed.
234
- * Provides the new value as an argument.
235
- */
236
- onValueChange?: ((value: AccordionValue<Value>, eventDetails: AccordionRootChangeEventDetails) => void) | undefined;
237
- /**
238
- * Whether multiple items can be open at the same time.
239
- * @default false
240
- */
241
- multiple?: boolean | undefined;
242
- /**
243
- * The visual orientation of the accordion.
244
- * Controls whether roving focus uses left/right or up/down arrow keys.
245
- * @default 'vertical'
246
- */
247
- orientation?: Orientation | undefined;
248
- }
249
- export type AccordionRootChangeEventReason = typeof triggerPress | typeof none;
250
- export type AccordionRootChangeEventDetails = BaseUIChangeEventDetails<AccordionRoot.ChangeEventReason>;
251
- export declare namespace AccordionRoot {
252
- type Value<TValue = any> = AccordionValue<TValue>;
253
- type State<TValue = any> = AccordionRootState<TValue>;
254
- type Props<TValue = any> = AccordionRootProps<TValue>;
255
- type ChangeEventReason = AccordionRootChangeEventReason;
256
- type ChangeEventDetails = AccordionRootChangeEventDetails;
257
- }
258
- export type TransitionStatus = "starting" | "ending" | "idle" | undefined;
259
- declare const CollapsibleRoot: React$1.ForwardRefExoticComponent<Omit<CollapsibleRootProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
260
- export interface CollapsibleRootState extends Pick<UseCollapsibleRootReturnValue, "open" | "disabled" | "transitionStatus"> {
261
- }
262
- export interface CollapsibleRootProps extends BaseUIComponentProps<"div", CollapsibleRootState> {
263
- /**
264
- * Whether the collapsible panel is currently open.
265
- *
266
- * To render an uncontrolled collapsible, use the `defaultOpen` prop instead.
267
- */
268
- open?: boolean | undefined;
269
- /**
270
- * Whether the collapsible panel is initially open.
271
- *
272
- * To render a controlled collapsible, use the `open` prop instead.
273
- * @default false
274
- */
275
- defaultOpen?: boolean | undefined;
276
- /**
277
- * Event handler called when the panel is opened or closed.
278
- */
279
- onOpenChange?: ((open: boolean, eventDetails: CollapsibleRootChangeEventDetails) => void) | undefined;
280
- /**
281
- * Whether the component should ignore user interaction.
282
- * @default false
283
- */
284
- disabled?: boolean | undefined;
285
- }
286
- export type CollapsibleRootChangeEventReason = typeof triggerPress | typeof none;
287
- export type CollapsibleRootChangeEventDetails = BaseUIChangeEventDetails<CollapsibleRootChangeEventReason>;
288
- declare namespace CollapsibleRoot {
289
- type State = CollapsibleRootState;
290
- type Props = CollapsibleRootProps;
291
- type ChangeEventReason = CollapsibleRootChangeEventReason;
292
- type ChangeEventDetails = CollapsibleRootChangeEventDetails;
293
- }
294
- export interface UseCollapsibleRootParameters {
295
- /**
296
- * Whether the collapsible panel is currently open.
297
- *
298
- * To render an uncontrolled collapsible, use the `defaultOpen` prop instead.
299
- */
300
- open?: boolean | undefined;
301
- /**
302
- * Whether the collapsible panel is initially open.
303
- *
304
- * To render a controlled collapsible, use the `open` prop instead.
305
- * @default false
306
- */
307
- defaultOpen?: boolean | undefined;
308
- /**
309
- * Event handler called when the panel is opened or closed.
310
- */
311
- onOpenChange: (open: boolean, eventDetails: CollapsibleRoot.ChangeEventDetails) => void;
312
- /**
313
- * Whether the component should ignore user interaction.
314
- * @default false
315
- */
316
- disabled: boolean;
317
- }
318
- export interface UseCollapsibleRootReturnValue {
319
- /**
320
- * Whether the component should ignore user interaction.
321
- */
322
- disabled: boolean;
323
- handleTrigger: (event: React$1.MouseEvent | React$1.KeyboardEvent) => void;
324
- /**
325
- * Whether the collapsible panel is mounted for transition and hidden-state
326
- * purposes. This can be `false` while the element remains in the DOM when
327
- * `keepMounted` or `hiddenUntilFound` is enabled.
328
- */
329
- mounted: boolean;
330
- /**
331
- * Whether the collapsible panel is currently open.
332
- */
333
- open: boolean;
334
- panelId: React$1.HTMLAttributes<Element>["id"];
335
- setMounted: (nextMounted: boolean) => void;
336
- setOpen: (open: boolean) => void;
337
- setPanelIdState: (id: string | undefined) => void;
338
- transitionStatus: TransitionStatus;
339
- }
340
- /**
341
- * Groups an accordion header with the corresponding panel.
342
- * Renders a `<div>` element.
343
- *
344
- * Documentation: [Base UI Accordion](https://base-ui.com/react/components/accordion)
345
- */
346
- export declare const AccordionItem: React$1.ForwardRefExoticComponent<Omit<AccordionItemProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
347
- export interface AccordionItemState extends AccordionRootState {
348
- /**
349
- * Whether the accordion item's panel is currently hidden.
350
- */
351
- hidden: boolean;
352
- /**
353
- * The item index.
354
- */
355
- index: number;
356
- /**
357
- * Whether the component is open.
358
- */
359
- open: boolean;
360
- }
361
- export interface AccordionItemProps extends BaseUIComponentProps<"div", AccordionItemState>, Partial<Pick<UseCollapsibleRootParameters, "disabled">> {
362
- /**
363
- * A unique value that identifies this accordion item.
364
- * If no value is provided, a unique ID will be generated automatically.
365
- * Use when controlling the accordion programmatically, or to set an initial
366
- * open state.
367
- * @example
368
- * ```tsx
369
- * <Accordion.Root value={['a']}>
370
- * <Accordion.Item value="a" /> // initially open
371
- * <Accordion.Item value="b" /> // initially closed
372
- * </Accordion.Root>
373
- * ```
374
- */
375
- value?: any;
376
- /**
377
- * Event handler called when the panel is opened or closed.
378
- */
379
- onOpenChange?: ((open: boolean, eventDetails: AccordionItem.ChangeEventDetails) => void) | undefined;
380
- }
381
- export type AccordionItemChangeEventReason = typeof triggerPress | typeof none;
382
- export type AccordionItemChangeEventDetails = BaseUIChangeEventDetails<AccordionItem.ChangeEventReason>;
383
- export declare namespace AccordionItem {
384
- type State = AccordionItemState;
385
- type Props = AccordionItemProps;
386
- type ChangeEventReason = AccordionItemChangeEventReason;
387
- type ChangeEventDetails = AccordionItemChangeEventDetails;
388
- }
389
- /**
390
- * A heading that labels the corresponding panel.
391
- * Renders an `<h3>` element.
392
- *
393
- * Documentation: [Base UI Accordion](https://base-ui.com/react/components/accordion)
394
- */
395
- export declare const AccordionHeader: React$1.ForwardRefExoticComponent<Omit<AccordionHeaderProps, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
396
- export interface AccordionHeaderState extends AccordionItemState {
397
- }
398
- export interface AccordionHeaderProps extends BaseUIComponentProps<"h3", AccordionHeaderState> {
399
- }
400
- export declare namespace AccordionHeader {
401
- type State = AccordionHeaderState;
402
- type Props = AccordionHeaderProps;
403
- }
404
- /**
405
- * A button that opens and closes the corresponding panel.
406
- * Renders a `<button>` element.
407
- *
408
- * Documentation: [Base UI Accordion](https://base-ui.com/react/components/accordion)
409
- */
410
- export declare const AccordionTrigger: React$1.ForwardRefExoticComponent<Omit<AccordionTriggerProps, "ref"> & React$1.RefAttributes<HTMLElement>>;
411
- export interface AccordionTriggerState extends AccordionItemState {
412
- }
413
- export interface AccordionTriggerProps extends NativeButtonProps, BaseUIComponentProps<"button", AccordionTriggerState> {
414
- }
415
- export declare namespace AccordionTrigger {
416
- type State = AccordionTriggerState;
417
- type Props = AccordionTriggerProps;
418
- }
419
- /**
420
- * A collapsible panel with the accordion item contents.
421
- * Renders a `<div>` element.
422
- *
423
- * Documentation: [Base UI Accordion](https://base-ui.com/react/components/accordion)
424
- */
425
- export declare const AccordionPanel: React$1.ForwardRefExoticComponent<Omit<AccordionPanelProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
426
- export interface AccordionPanelState extends AccordionItemState {
427
- /**
428
- * The transition status of the component.
429
- */
430
- transitionStatus: TransitionStatus;
431
- }
432
- export interface AccordionPanelProps extends BaseUIComponentProps<"div", AccordionPanelState>, Pick<AccordionRoot.Props, "hiddenUntilFound" | "keepMounted"> {
433
- }
434
- export declare namespace AccordionPanel {
435
- type State = AccordionPanelState;
436
- type Props = AccordionPanelProps;
437
- }
438
-
439
- declare namespace Accordion {
440
- export { AccordionHeader as Header, AccordionItem as Item, AccordionPanel as Panel, AccordionRoot as Root, AccordionTrigger as Trigger };
441
- }
442
-
443
- export {
444
- Accordion,
445
- };
446
-
447
- export {};