@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,98 +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
- DialogStore,
12
- DialogTitle,
13
- DialogTrigger,
14
- DialogViewport,
15
- useRenderDialogRoot
16
- } from "./_chunk-htdj1jps.js";
17
- import"./_chunk-ytnp24gq.js";
18
- import"./_chunk-q5cg71p7.js";
19
- import"./_chunk-242gh8ph.js";
20
- import"./_chunk-5gaqyne5.js";
21
- import"./_chunk-t7ppm3t0.js";
22
- import"./_chunk-3cpd1vjz.js";
23
- import"./_chunk-2z044bba.js";
24
- import"./_chunk-1vw45v38.js";
25
- import"./_chunk-cgptgywc.js";
26
- import"./_chunk-pv7b791x.js";
27
- import"./_chunk-kw8nnq00.js";
28
- import"./_chunk-rrh8rt4v.js";
29
- import"./_chunk-b6dkjkbw.js";
30
- import"./_chunk-s5pwkz8v.js";
31
- import"./_chunk-dan0mva4.js";
32
- import"./_chunk-x11e1k9r.js";
33
- import"./_chunk-ase0ydtt.js";
34
- import"./_chunk-6kqramh9.js";
35
- import"./_chunk-451nqgsa.js";
36
- import"./_chunk-e56mpvk1.js";
37
- import"./_chunk-wdqynnjf.js";
38
- import"./_chunk-e13rsb6b.js";
39
- import"./_chunk-zk4mtm9m.js";
40
- import"./_chunk-8a9vv8am.js";
41
- import"./_chunk-6ejf1z1r.js";
42
- import"./_chunk-5xmdvndx.js";
43
- import"./_chunk-hm5h9vsk.js";
44
- import"./_chunk-cdgfsr3q.js";
45
- import"./_chunk-000kmre8.js";
46
- import"./_chunk-cwvtvwc7.js";
47
- import"./_chunk-5tze5c8q.js";
48
- import"./_chunk-x8xehj6d.js";
49
- import {
50
- __export
51
- } from "./_chunk-svxv97ph.js";
52
-
53
- // node_modules/@base-ui/react/esm/alert-dialog/index.parts.js
54
- var exports_index_parts = {};
55
- __export(exports_index_parts, {
56
- createHandle: () => createAlertDialogHandle,
57
- Viewport: () => DialogViewport,
58
- Trigger: () => AlertDialogTrigger,
59
- Title: () => DialogTitle,
60
- Root: () => AlertDialogRoot,
61
- Portal: () => DialogPortal,
62
- Popup: () => DialogPopup,
63
- Handle: () => AlertDialogHandle,
64
- Description: () => DialogDescription,
65
- Close: () => DialogClose,
66
- Backdrop: () => DialogBackdrop
67
- });
68
-
69
- // node_modules/@base-ui/react/esm/alert-dialog/root/AlertDialogRoot.js
70
- "use client";
71
- function AlertDialogRoot(props) {
72
- return useRenderDialogRoot(props, "alert-dialog");
73
- }
74
- // node_modules/@base-ui/react/esm/alert-dialog/trigger/AlertDialogTrigger.js
75
- "use client";
76
- var AlertDialogTrigger = DialogTrigger;
77
- // node_modules/@base-ui/react/esm/alert-dialog/handle.js
78
- var alertDialogState = {
79
- modal: true,
80
- disablePointerDismissal: true,
81
- role: "alertdialog"
82
- };
83
-
84
- class AlertDialogHandle extends DialogHandle {
85
- constructor(store) {
86
- const alertDialogStore = store ?? new DialogStore(alertDialogState);
87
- super(alertDialogStore);
88
- if (store) {
89
- this.store.update(alertDialogState);
90
- }
91
- }
92
- }
93
- function createAlertDialogHandle() {
94
- return new AlertDialogHandle;
95
- }
96
- export {
97
- exports_index_parts as AlertDialog
98
- };
@@ -1,123 +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
- export type HTMLProps<T = any> = React$1.HTMLAttributes<T> & {
7
- ref?: React$1.Ref<T> | undefined;
8
- };
9
- /**
10
- * 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.
11
- *
12
- * @template Props Props to be spread on the rendered element.
13
- * @template State Component's internal state.
14
- */
15
- export type ComponentRenderFn<Props, State> = (props: Props, state: State) => React$1.ReactElement<unknown>;
16
- export type BaseUIEvent<E extends React$1.SyntheticEvent<Element, Event>> = E & {
17
- preventBaseUIHandler: () => void;
18
- readonly baseUIHandlerPrevented?: boolean | undefined;
19
- };
20
- 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;
21
- /**
22
- * Adds a `preventBaseUIHandler` method to all event handlers.
23
- */
24
- export type WithBaseUIEvent<T> = {
25
- [K in keyof T]: WithPreventBaseUIHandler<T[K]>;
26
- };
27
- /**
28
- * Props shared by all Base UI components.
29
- * Contains `className` (string or callback taking the component's state as an argument) and `render` (function to customize rendering).
30
- */
31
- export type BaseUIComponentProps<ElementType extends React$1.ElementType, State, RenderFunctionProps = HTMLProps> = Omit<WithBaseUIEvent<React$1.ComponentPropsWithRef<ElementType>>, "className" | "color" | "defaultValue" | "defaultChecked" | "style"> & {
32
- /**
33
- * CSS class applied to the element, or a function that
34
- * returns a class based on the component's state.
35
- */
36
- className?: string | ((state: State) => string | undefined) | undefined;
37
- /**
38
- * Allows you to replace the component's HTML element
39
- * with a different tag, or compose it with another component.
40
- *
41
- * Accepts a `ReactElement` or a function that returns the element to render.
42
- */
43
- render?: React$1.ReactElement | ComponentRenderFn<RenderFunctionProps, State> | undefined;
44
- /**
45
- * Style applied to the element, or a function that
46
- * returns a style object based on the component's state.
47
- */
48
- style?: React$1.CSSProperties | ((state: State) => React$1.CSSProperties | undefined) | undefined;
49
- };
50
- /**
51
- * Displays a user's profile picture, initials, or fallback icon.
52
- * Renders a `<span>` element.
53
- *
54
- * Documentation: [Base UI Avatar](https://base-ui.com/react/components/avatar)
55
- */
56
- export declare const AvatarRoot: React$1.ForwardRefExoticComponent<Omit<AvatarRootProps, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
57
- export type ImageLoadingStatus = "idle" | "loading" | "loaded" | "error";
58
- export interface AvatarRootState {
59
- /**
60
- * The image loading status.
61
- */
62
- imageLoadingStatus: ImageLoadingStatus;
63
- }
64
- export interface AvatarRootProps extends BaseUIComponentProps<"span", AvatarRootState> {
65
- }
66
- export declare namespace AvatarRoot {
67
- type State = AvatarRootState;
68
- type Props = AvatarRootProps;
69
- }
70
- export type TransitionStatus = "starting" | "ending" | "idle" | undefined;
71
- type ImageLoadingStatus$1 = "idle" | "loading" | "loaded" | "error";
72
- /**
73
- * The image to be displayed in the avatar.
74
- * Renders an `<img>` element.
75
- *
76
- * Documentation: [Base UI Avatar](https://base-ui.com/react/components/avatar)
77
- */
78
- export declare const AvatarImage: React$1.ForwardRefExoticComponent<Omit<AvatarImageProps, "ref"> & React$1.RefAttributes<HTMLImageElement>>;
79
- export interface AvatarImageState extends AvatarRootState {
80
- /**
81
- * The transition status of the component.
82
- */
83
- transitionStatus: TransitionStatus;
84
- }
85
- export interface AvatarImageProps extends BaseUIComponentProps<"img", AvatarImageState> {
86
- /**
87
- * Callback fired when the loading status changes.
88
- */
89
- onLoadingStatusChange?: ((status: ImageLoadingStatus$1) => void) | undefined;
90
- }
91
- export declare namespace AvatarImage {
92
- type State = AvatarImageState;
93
- type Props = AvatarImageProps;
94
- }
95
- /**
96
- * Rendered when the image fails to load or when no image is provided.
97
- * Renders a `<span>` element.
98
- *
99
- * Documentation: [Base UI Avatar](https://base-ui.com/react/components/avatar)
100
- */
101
- export declare const AvatarFallback: React$1.ForwardRefExoticComponent<Omit<AvatarFallbackProps, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
102
- export interface AvatarFallbackState extends AvatarRootState {
103
- }
104
- export interface AvatarFallbackProps extends BaseUIComponentProps<"span", AvatarFallbackState> {
105
- /**
106
- * How long to wait before showing the fallback. Specified in milliseconds.
107
- */
108
- delay?: number | undefined;
109
- }
110
- export declare namespace AvatarFallback {
111
- type State = AvatarFallbackState;
112
- type Props = AvatarFallbackProps;
113
- }
114
-
115
- declare namespace Avatar {
116
- export { AvatarFallback as Fallback, AvatarImage as Image, AvatarRoot as Root };
117
- }
118
-
119
- export {
120
- Avatar,
121
- };
122
-
123
- export {};
@@ -1,235 +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"./_chunk-dzvjwv25.js";
5
- import {
6
- useTimeout
7
- } from "./_chunk-b6dkjkbw.js";
8
- import {
9
- transitionStatusMapping,
10
- useOpenChangeComplete,
11
- useTransitionStatus
12
- } from "./_chunk-e13rsb6b.js";
13
- import"./_chunk-zk4mtm9m.js";
14
- import"./_chunk-8a9vv8am.js";
15
- import"./_chunk-6ejf1z1r.js";
16
- import {
17
- useStableCallback
18
- } from "./_chunk-cwvtvwc7.js";
19
- import {
20
- useIsoLayoutEffect
21
- } from "./_chunk-5tze5c8q.js";
22
- import {
23
- NOOP,
24
- useRenderElement
25
- } from "./_chunk-x8xehj6d.js";
26
- import {
27
- __export
28
- } from "./_chunk-svxv97ph.js";
29
-
30
- // node_modules/@base-ui/react/esm/avatar/index.parts.js
31
- var exports_index_parts = {};
32
- __export(exports_index_parts, {
33
- Root: () => AvatarRoot,
34
- Image: () => AvatarImage,
35
- Fallback: () => AvatarFallback
36
- });
37
-
38
- // node_modules/@base-ui/react/esm/avatar/root/AvatarRoot.js
39
- import * as React2 from "react";
40
-
41
- // node_modules/@base-ui/react/esm/avatar/root/AvatarRootContext.js
42
- import * as React from "react";
43
- "use client";
44
- var AvatarRootContext = /* @__PURE__ */ React.createContext(undefined);
45
- if (true)
46
- AvatarRootContext.displayName = "AvatarRootContext";
47
- function useAvatarRootContext() {
48
- const context = React.useContext(AvatarRootContext);
49
- if (context === undefined) {
50
- throw new Error("Base UI: AvatarRootContext is missing. Avatar parts must be placed within <Avatar.Root>.");
51
- }
52
- return context;
53
- }
54
-
55
- // node_modules/@base-ui/react/esm/avatar/root/stateAttributesMapping.js
56
- var avatarStateAttributesMapping = {
57
- imageLoadingStatus: () => null
58
- };
59
-
60
- // node_modules/@base-ui/react/esm/avatar/root/AvatarRoot.js
61
- import { jsx as _jsx } from "react/jsx-runtime";
62
- "use client";
63
- var AvatarRoot = /* @__PURE__ */ React2.forwardRef(function AvatarRoot2(componentProps, forwardedRef) {
64
- const {
65
- className,
66
- render,
67
- style,
68
- ...elementProps
69
- } = componentProps;
70
- const [imageLoadingStatus, setImageLoadingStatus] = React2.useState("idle");
71
- const state = {
72
- imageLoadingStatus
73
- };
74
- const contextValue = React2.useMemo(() => ({
75
- imageLoadingStatus,
76
- setImageLoadingStatus
77
- }), [imageLoadingStatus, setImageLoadingStatus]);
78
- const element = useRenderElement("span", componentProps, {
79
- state,
80
- ref: forwardedRef,
81
- props: elementProps,
82
- stateAttributesMapping: avatarStateAttributesMapping
83
- });
84
- return /* @__PURE__ */ _jsx(AvatarRootContext.Provider, {
85
- value: contextValue,
86
- children: element
87
- });
88
- });
89
- if (true)
90
- AvatarRoot.displayName = "AvatarRoot";
91
- // node_modules/@base-ui/react/esm/avatar/image/AvatarImage.js
92
- import * as React4 from "react";
93
-
94
- // node_modules/@base-ui/react/esm/avatar/image/useImageLoadingStatus.js
95
- import * as React3 from "react";
96
- "use client";
97
- function useImageLoadingStatus(src, {
98
- referrerPolicy,
99
- crossOrigin
100
- }) {
101
- const [loadingStatus, setLoadingStatus] = React3.useState("idle");
102
- useIsoLayoutEffect(() => {
103
- if (!src) {
104
- setLoadingStatus("error");
105
- return NOOP;
106
- }
107
- let isMounted = true;
108
- const image = new window.Image;
109
- const updateStatus = (status) => () => {
110
- if (!isMounted) {
111
- return;
112
- }
113
- setLoadingStatus(status);
114
- };
115
- setLoadingStatus("loading");
116
- image.onload = updateStatus("loaded");
117
- image.onerror = updateStatus("error");
118
- if (referrerPolicy) {
119
- image.referrerPolicy = referrerPolicy;
120
- }
121
- image.crossOrigin = crossOrigin ?? null;
122
- image.src = src;
123
- if (image.complete) {
124
- setLoadingStatus(image.naturalWidth > 0 ? "loaded" : "error");
125
- }
126
- return () => {
127
- isMounted = false;
128
- };
129
- }, [src, crossOrigin, referrerPolicy]);
130
- return loadingStatus;
131
- }
132
-
133
- // node_modules/@base-ui/react/esm/avatar/image/AvatarImage.js
134
- "use client";
135
- var stateAttributesMapping = {
136
- ...avatarStateAttributesMapping,
137
- ...transitionStatusMapping
138
- };
139
- var AvatarImage = /* @__PURE__ */ React4.forwardRef(function AvatarImage2(componentProps, forwardedRef) {
140
- const {
141
- className,
142
- render,
143
- onLoadingStatusChange: onLoadingStatusChangeProp,
144
- referrerPolicy,
145
- crossOrigin,
146
- style,
147
- ...elementProps
148
- } = componentProps;
149
- const context = useAvatarRootContext();
150
- const imageLoadingStatus = useImageLoadingStatus(componentProps.src, {
151
- referrerPolicy,
152
- crossOrigin
153
- });
154
- const isVisible = imageLoadingStatus === "loaded";
155
- const {
156
- mounted,
157
- transitionStatus,
158
- setMounted
159
- } = useTransitionStatus(isVisible);
160
- const imageRef = React4.useRef(null);
161
- const handleLoadingStatusChange = useStableCallback((status) => {
162
- onLoadingStatusChangeProp?.(status);
163
- context.setImageLoadingStatus(status);
164
- });
165
- useIsoLayoutEffect(() => {
166
- if (imageLoadingStatus !== "idle") {
167
- handleLoadingStatusChange(imageLoadingStatus);
168
- }
169
- }, [imageLoadingStatus, handleLoadingStatusChange]);
170
- useOpenChangeComplete({
171
- open: isVisible,
172
- ref: imageRef,
173
- onComplete() {
174
- if (!isVisible) {
175
- setMounted(false);
176
- }
177
- }
178
- });
179
- const state = {
180
- imageLoadingStatus,
181
- transitionStatus
182
- };
183
- const element = useRenderElement("img", componentProps, {
184
- state,
185
- ref: [forwardedRef, imageRef],
186
- props: elementProps,
187
- stateAttributesMapping,
188
- enabled: mounted
189
- });
190
- if (!mounted) {
191
- return null;
192
- }
193
- return element;
194
- });
195
- if (true)
196
- AvatarImage.displayName = "AvatarImage";
197
- // node_modules/@base-ui/react/esm/avatar/fallback/AvatarFallback.js
198
- import * as React5 from "react";
199
- "use client";
200
- var AvatarFallback = /* @__PURE__ */ React5.forwardRef(function AvatarFallback2(componentProps, forwardedRef) {
201
- const {
202
- className,
203
- render,
204
- delay,
205
- style,
206
- ...elementProps
207
- } = componentProps;
208
- const {
209
- imageLoadingStatus
210
- } = useAvatarRootContext();
211
- const [delayPassed, setDelayPassed] = React5.useState(delay === undefined);
212
- const timeout = useTimeout();
213
- React5.useEffect(() => {
214
- if (delay !== undefined) {
215
- timeout.start(delay, () => setDelayPassed(true));
216
- }
217
- return timeout.clear;
218
- }, [timeout, delay]);
219
- const state = {
220
- imageLoadingStatus
221
- };
222
- const element = useRenderElement("span", componentProps, {
223
- state,
224
- ref: forwardedRef,
225
- props: elementProps,
226
- stateAttributesMapping: avatarStateAttributesMapping,
227
- enabled: imageLoadingStatus !== "loaded" && delayPassed
228
- });
229
- return element;
230
- });
231
- if (true)
232
- AvatarFallback.displayName = "AvatarFallback";
233
- export {
234
- exports_index_parts as Avatar
235
- };
@@ -1,84 +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
- export type HTMLProps<T = any> = React$1.HTMLAttributes<T> & {
7
- ref?: React$1.Ref<T> | undefined;
8
- };
9
- /**
10
- * 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.
11
- *
12
- * @template Props Props to be spread on the rendered element.
13
- * @template State Component's internal state.
14
- */
15
- export type ComponentRenderFn<Props, State> = (props: Props, state: State) => React$1.ReactElement<unknown>;
16
- export type BaseUIEvent<E extends React$1.SyntheticEvent<Element, Event>> = E & {
17
- preventBaseUIHandler: () => void;
18
- readonly baseUIHandlerPrevented?: boolean | undefined;
19
- };
20
- 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;
21
- /**
22
- * Adds a `preventBaseUIHandler` method to all event handlers.
23
- */
24
- export type WithBaseUIEvent<T> = {
25
- [K in keyof T]: WithPreventBaseUIHandler<T[K]>;
26
- };
27
- /**
28
- * Props shared by all Base UI components.
29
- * Contains `className` (string or callback taking the component's state as an argument) and `render` (function to customize rendering).
30
- */
31
- export type BaseUIComponentProps<ElementType extends React$1.ElementType, State, RenderFunctionProps = HTMLProps> = Omit<WithBaseUIEvent<React$1.ComponentPropsWithRef<ElementType>>, "className" | "color" | "defaultValue" | "defaultChecked" | "style"> & {
32
- /**
33
- * CSS class applied to the element, or a function that
34
- * returns a class based on the component's state.
35
- */
36
- className?: string | ((state: State) => string | undefined) | undefined;
37
- /**
38
- * Allows you to replace the component's HTML element
39
- * with a different tag, or compose it with another component.
40
- *
41
- * Accepts a `ReactElement` or a function that returns the element to render.
42
- */
43
- render?: React$1.ReactElement | ComponentRenderFn<RenderFunctionProps, State> | undefined;
44
- /**
45
- * Style applied to the element, or a function that
46
- * returns a style object based on the component's state.
47
- */
48
- style?: React$1.CSSProperties | ((state: State) => React$1.CSSProperties | undefined) | undefined;
49
- };
50
- export interface NativeButtonProps {
51
- /**
52
- * Whether the component renders a native `<button>` element when replacing it
53
- * via the `render` prop.
54
- * Set to `false` if the rendered element is not a button (for example, `<div>`).
55
- * @default true
56
- */
57
- nativeButton?: boolean | undefined;
58
- }
59
- /**
60
- * A button component that can be used to trigger actions.
61
- * Renders a `<button>` element.
62
- *
63
- * Documentation: [Base UI Button](https://base-ui.com/react/components/button)
64
- */
65
- export declare const Button: React$1.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React$1.RefAttributes<HTMLElement>>;
66
- export interface ButtonState {
67
- /**
68
- * Whether the button should ignore user interaction.
69
- */
70
- disabled: boolean;
71
- }
72
- export interface ButtonProps extends NativeButtonProps, BaseUIComponentProps<"button", ButtonState> {
73
- /**
74
- * Whether the button should be focusable when disabled.
75
- * @default false
76
- */
77
- focusableWhenDisabled?: boolean | undefined;
78
- }
79
- export declare namespace Button {
80
- type State = ButtonState;
81
- type Props = ButtonProps;
82
- }
83
-
84
- export {};
@@ -1,51 +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
- useButton
6
- } from "./_chunk-5xmdvndx.js";
7
- import"./_chunk-hm5h9vsk.js";
8
- import"./_chunk-cdgfsr3q.js";
9
- import"./_chunk-000kmre8.js";
10
- import"./_chunk-cwvtvwc7.js";
11
- import"./_chunk-5tze5c8q.js";
12
- import {
13
- useRenderElement
14
- } from "./_chunk-x8xehj6d.js";
15
- import"./_chunk-svxv97ph.js";
16
-
17
- // node_modules/@base-ui/react/esm/button/Button.js
18
- import * as React from "react";
19
- "use client";
20
- var Button = /* @__PURE__ */ React.forwardRef(function Button2(componentProps, forwardedRef) {
21
- const {
22
- render,
23
- className,
24
- disabled = false,
25
- focusableWhenDisabled = false,
26
- nativeButton = true,
27
- style,
28
- ...elementProps
29
- } = componentProps;
30
- const {
31
- getButtonProps,
32
- buttonRef
33
- } = useButton({
34
- disabled,
35
- focusableWhenDisabled,
36
- native: nativeButton
37
- });
38
- const state = {
39
- disabled
40
- };
41
- return useRenderElement("button", componentProps, {
42
- state,
43
- ref: [forwardedRef, buttonRef],
44
- props: [elementProps, getButtonProps]
45
- });
46
- });
47
- if (true)
48
- Button.displayName = "Button";
49
- export {
50
- Button
51
- };