@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,76 +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 type Orientation = "horizontal" | "vertical";
51
- /**
52
- * A separator element accessible to screen readers.
53
- * Renders a `<div>` element.
54
- *
55
- * Documentation: [Base UI Separator](https://base-ui.com/react/components/separator)
56
- */
57
- export declare const Separator: React$1.ForwardRefExoticComponent<Omit<SeparatorProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
58
- export interface SeparatorProps extends BaseUIComponentProps<"div", SeparatorState> {
59
- /**
60
- * The orientation of the separator.
61
- * @default 'horizontal'
62
- */
63
- orientation?: Orientation | undefined;
64
- }
65
- export interface SeparatorState {
66
- /**
67
- * The orientation of the separator.
68
- */
69
- orientation: Orientation;
70
- }
71
- export declare namespace Separator {
72
- type Props = SeparatorProps;
73
- type State = SeparatorState;
74
- }
75
-
76
- export {};
@@ -1,11 +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
- Separator
6
- } from "./_chunk-n11h505c.js";
7
- import"./_chunk-x8xehj6d.js";
8
- import"./_chunk-svxv97ph.js";
9
- export {
10
- Separator
11
- };
@@ -1,551 +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 Orientation = "horizontal" | "vertical";
175
- export interface FieldRootState {
176
- /**
177
- * Whether the component should ignore user interaction.
178
- */
179
- disabled: boolean;
180
- /**
181
- * Whether the field has been touched.
182
- */
183
- touched: boolean;
184
- /**
185
- * Whether the field value has changed from its initial value.
186
- */
187
- dirty: boolean;
188
- /**
189
- * Whether the field is valid.
190
- */
191
- valid: boolean | null;
192
- /**
193
- * Whether the field has a value.
194
- */
195
- filled: boolean;
196
- /**
197
- * Whether the field is focused.
198
- */
199
- focused: boolean;
200
- }
201
- /**
202
- * Groups all parts of the slider.
203
- * Renders a `<div>` element.
204
- *
205
- * Documentation: [Base UI Slider](https://base-ui.com/react/components/slider)
206
- */
207
- export declare const SliderRoot: {
208
- <Value extends number | readonly number[]>(props: SliderRoot.Props<Value> & {
209
- ref?: React$1.Ref<HTMLDivElement> | undefined;
210
- }): React$1.JSX.Element;
211
- };
212
- export interface SliderRootState extends FieldRootState {
213
- /**
214
- * The index of the active thumb.
215
- */
216
- activeThumbIndex: number;
217
- /**
218
- * Whether the component should ignore user interaction.
219
- */
220
- disabled: boolean;
221
- /**
222
- * Whether the thumb is currently being dragged.
223
- */
224
- dragging: boolean;
225
- /**
226
- * The maximum value.
227
- */
228
- max: number;
229
- /**
230
- * The minimum value.
231
- */
232
- min: number;
233
- /**
234
- * The minimum steps between values in a range slider.
235
- * @default 0
236
- */
237
- minStepsBetweenValues: number;
238
- /**
239
- * The component orientation.
240
- */
241
- orientation: Orientation;
242
- /**
243
- * The step increment of the slider when incrementing or decrementing. It will snap
244
- * to multiples of this value. Decimal values are supported.
245
- * @default 1
246
- */
247
- step: number;
248
- /**
249
- * The raw number value of the slider.
250
- */
251
- values: readonly number[];
252
- }
253
- export interface SliderRootProps<Value extends number | readonly number[] = number | readonly number[]> extends BaseUIComponentProps<"div", SliderRootState> {
254
- /**
255
- * The uncontrolled value of the slider when it's initially rendered.
256
- *
257
- * To render a controlled slider, use the `value` prop instead.
258
- */
259
- defaultValue?: Value | undefined;
260
- /**
261
- * Whether the slider should ignore user interaction.
262
- * @default false
263
- */
264
- disabled?: boolean | undefined;
265
- /**
266
- * Options to format the input value.
267
- */
268
- format?: Intl.NumberFormatOptions | undefined;
269
- /**
270
- * The locale used by `Intl.NumberFormat` when formatting the value.
271
- * Defaults to the user's runtime locale.
272
- */
273
- locale?: Intl.LocalesArgument | undefined;
274
- /**
275
- * The maximum allowed value of the slider.
276
- * Should not be equal to min.
277
- * @default 100
278
- */
279
- max?: number | undefined;
280
- /**
281
- * The minimum allowed value of the slider.
282
- * Should not be equal to max.
283
- * @default 0
284
- */
285
- min?: number | undefined;
286
- /**
287
- * The minimum steps between values in a range slider.
288
- * @default 0
289
- */
290
- minStepsBetweenValues?: number | undefined;
291
- /**
292
- * Identifies the field when a form is submitted.
293
- */
294
- name?: string | undefined;
295
- /**
296
- * Identifies the form that owns the slider inputs.
297
- * Useful when the slider is rendered outside the form.
298
- */
299
- form?: string | undefined;
300
- /**
301
- * The component orientation.
302
- * @default 'horizontal'
303
- */
304
- orientation?: Orientation | undefined;
305
- /**
306
- * The granularity with which the slider can step through values. (A "discrete" slider.)
307
- * The `min` prop serves as the origin for the valid values.
308
- * We recommend (max - min) to be evenly divisible by the step.
309
- * @default 1
310
- */
311
- step?: number | undefined;
312
- /**
313
- * The granularity with which the slider can step through values when using Page Up/Page Down or Shift + Arrow Up/Arrow Down.
314
- * @default 10
315
- */
316
- largeStep?: number | undefined;
317
- /**
318
- * How the thumb(s) are aligned relative to `Slider.Control` when the value is at `min` or `max`:
319
- * - `center`: The center of the thumb is aligned with the control edge
320
- * - `edge`: The thumb is inset within the control such that its edge is aligned with the control edge
321
- * - `edge-client-only`: Same as `edge` but renders after React hydration on the client, reducing bundle size in return
322
- * @default 'center'
323
- */
324
- thumbAlignment?: "center" | "edge" | "edge-client-only" | undefined;
325
- /**
326
- * Controls how thumbs behave when they collide during pointer interactions.
327
- *
328
- * - `'push'` (default): Thumbs push each other without restoring their previous positions when dragged back.
329
- * - `'swap'`: Thumbs swap places when dragged past each other.
330
- * - `'none'`: Thumbs cannot move past each other; excess movement is ignored.
331
- *
332
- * @default 'push'
333
- */
334
- thumbCollisionBehavior?: "push" | "swap" | "none" | undefined;
335
- /**
336
- * The value of the slider.
337
- * For ranged sliders, provide an array with two values.
338
- */
339
- value?: Value | undefined;
340
- /**
341
- * Callback function that is fired when the slider's value changed.
342
- * You can pull out the new value by accessing `event.target.value` (any).
343
- *
344
- * The `eventDetails.reason` indicates what triggered the change:
345
- *
346
- * - `'input-change'` when the hidden range input emits a change event (for example, via form integration)
347
- * - `'track-press'` when the control track is pressed
348
- * - `'drag'` while dragging a thumb
349
- * - `'keyboard'` for keyboard input
350
- * - `'none'` when the change is triggered without a specific interaction
351
- */
352
- onValueChange?: ((value: Value extends number ? number : Value, eventDetails: SliderRoot.ChangeEventDetails) => void) | undefined;
353
- /**
354
- * Callback function that is fired when the `pointerup` is triggered.
355
- * **Warning**: This is a generic event not a change event.
356
- *
357
- * The `eventDetails.reason` indicates what triggered the commit:
358
- *
359
- * - `'drag'` while dragging a thumb
360
- * - `'track-press'` when the control track is pressed
361
- * - `'keyboard'` for keyboard input
362
- * - `'input-change'` when the hidden range input emits a change event (for example, via form integration)
363
- * - `'none'` when the commit occurs without a specific interaction
364
- */
365
- onValueCommitted?: ((value: Value extends number ? number : Value, eventDetails: SliderRoot.CommitEventDetails) => void) | undefined;
366
- }
367
- export interface SliderRootChangeEventCustomProperties {
368
- /**
369
- * The index of the active thumb at the time of the change.
370
- */
371
- activeThumbIndex: number;
372
- }
373
- export type SliderRootChangeEventReason = typeof inputChange | typeof trackPress | typeof drag | typeof keyboard | typeof none;
374
- export type SliderRootChangeEventDetails = BaseUIChangeEventDetails<SliderRoot.ChangeEventReason, SliderRootChangeEventCustomProperties>;
375
- export type SliderRootCommitEventReason = typeof inputChange | typeof trackPress | typeof drag | typeof keyboard | typeof none;
376
- export type SliderRootCommitEventDetails = BaseUIGenericEventDetails<SliderRoot.CommitEventReason>;
377
- export declare namespace SliderRoot {
378
- type State = SliderRootState;
379
- type Props<Value extends number | readonly number[] = number | readonly number[]> = SliderRootProps<Value>;
380
- type ChangeEventReason = SliderRootChangeEventReason;
381
- type ChangeEventDetails = SliderRootChangeEventDetails;
382
- type CommitEventReason = SliderRootCommitEventReason;
383
- type CommitEventDetails = SliderRootCommitEventDetails;
384
- }
385
- /**
386
- * An accessible label that is automatically associated with the slider thumbs.
387
- * Renders a `<div>` element.
388
- *
389
- * Documentation: [Base UI Slider](https://base-ui.com/react/components/slider)
390
- */
391
- export declare const SliderLabel: React$1.ForwardRefExoticComponent<Omit<SliderLabelProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
392
- export type SliderLabelState = SliderRoot.State;
393
- export interface SliderLabelProps extends Omit<BaseUIComponentProps<"div", SliderLabel.State>, "id"> {
394
- }
395
- export declare namespace SliderLabel {
396
- type State = SliderLabelState;
397
- type Props = SliderLabelProps;
398
- }
399
- /**
400
- * Displays the current value of the slider as text.
401
- * Renders an `<output>` element.
402
- *
403
- * Documentation: [Base UI Slider](https://base-ui.com/react/components/slider)
404
- */
405
- export declare const SliderValue: React$1.ForwardRefExoticComponent<Omit<SliderValueProps, "ref"> & React$1.RefAttributes<HTMLOutputElement>>;
406
- export interface SliderValueState extends SliderRootState {
407
- }
408
- export interface SliderValueProps extends Omit<BaseUIComponentProps<"output", SliderValueState>, "children"> {
409
- children?: null | ((formattedValues: readonly string[], values: readonly number[]) => React$1.ReactNode) | undefined;
410
- }
411
- export declare namespace SliderValue {
412
- type State = SliderValueState;
413
- type Props = SliderValueProps;
414
- }
415
- /**
416
- * The clickable, interactive part of the slider.
417
- * Renders a `<div>` element.
418
- *
419
- * Documentation: [Base UI Slider](https://base-ui.com/react/components/slider)
420
- */
421
- export declare const SliderControl: React$1.ForwardRefExoticComponent<Omit<SliderControlProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
422
- export interface SliderControlState extends SliderRootState {
423
- }
424
- export interface SliderControlProps extends BaseUIComponentProps<"div", SliderControlState> {
425
- }
426
- export declare namespace SliderControl {
427
- type State = SliderControlState;
428
- type Props = SliderControlProps;
429
- }
430
- /**
431
- * Contains the slider indicator and represents the entire range of the slider.
432
- * Renders a `<div>` element.
433
- *
434
- * Documentation: [Base UI Slider](https://base-ui.com/react/components/slider)
435
- */
436
- export declare const SliderTrack: React$1.ForwardRefExoticComponent<Omit<SliderTrackProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
437
- export interface SliderTrackState extends SliderRootState {
438
- }
439
- export interface SliderTrackProps extends BaseUIComponentProps<"div", SliderTrackState> {
440
- }
441
- export declare namespace SliderTrack {
442
- type State = SliderTrackState;
443
- type Props = SliderTrackProps;
444
- }
445
- export interface LabelableContext {
446
- /**
447
- * The `id` of the labelable element.
448
- * When `null` the association is implicit.
449
- */
450
- controlId: string | null | undefined;
451
- registerControlId: (source: symbol, id: string | null | undefined) => void;
452
- /**
453
- * The `id` of the label.
454
- */
455
- labelId: string | undefined;
456
- setLabelId: React$1.Dispatch<React$1.SetStateAction<string | undefined>>;
457
- /**
458
- * An array of `id`s of elements that provide an accessible description.
459
- */
460
- messageIds: string[];
461
- setMessageIds: React$1.Dispatch<React$1.SetStateAction<string[]>>;
462
- getDescriptionProps: (externalProps: HTMLProps) => HTMLProps;
463
- }
464
- declare const LabelableContext: React$1.Context<LabelableContext>;
465
- /**
466
- * The draggable part of the slider at the tip of the indicator.
467
- * Renders a `<div>` element and a nested `<input type="range">`.
468
- *
469
- * Documentation: [Base UI Slider](https://base-ui.com/react/components/slider)
470
- */
471
- export declare const SliderThumb: React$1.ForwardRefExoticComponent<Omit<SliderThumbProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
472
- export interface ThumbMetadata {
473
- inputId: LabelableContext["controlId"];
474
- }
475
- export interface SliderThumbState extends SliderRootState {
476
- }
477
- export interface SliderThumbProps extends Omit<BaseUIComponentProps<"div", SliderThumbState>, "onBlur" | "onFocus"> {
478
- /**
479
- * Whether the thumb should ignore user interaction.
480
- * @default false
481
- */
482
- disabled?: boolean | undefined;
483
- /**
484
- * A function which returns a string value for the [`aria-label`](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-label) attribute of the `input`.
485
- */
486
- getAriaLabel?: ((index: number) => string) | null | undefined;
487
- /**
488
- * A function which returns a string value for the [`aria-valuetext`](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-valuetext) attribute of the `input`.
489
- * This is important for screen reader users.
490
- */
491
- getAriaValueText?: ((formattedValue: string, value: number, index: number) => string) | null | undefined;
492
- /**
493
- * The index of the thumb which corresponds to the index of its value in the
494
- * `value` or `defaultValue` array.
495
- * This prop is required to support server-side rendering for range sliders
496
- * with multiple thumbs.
497
- * @example
498
- * ```tsx
499
- * <Slider.Root value={[10, 20]}>
500
- * <Slider.Thumb index={0} />
501
- * <Slider.Thumb index={1} />
502
- * </Slider.Root>
503
- * ```
504
- */
505
- index?: number | undefined;
506
- /**
507
- * A ref to access the nested input element.
508
- */
509
- inputRef?: React$1.Ref<HTMLInputElement> | undefined;
510
- /**
511
- * A blur handler forwarded to the `input`.
512
- */
513
- onBlur?: React$1.FocusEventHandler<HTMLInputElement> | undefined;
514
- /**
515
- * A focus handler forwarded to the `input`.
516
- */
517
- onFocus?: React$1.FocusEventHandler<HTMLInputElement> | undefined;
518
- /**
519
- * Optional tab index attribute forwarded to the `input`.
520
- */
521
- tabIndex?: number | undefined;
522
- }
523
- export declare namespace SliderThumb {
524
- type State = SliderThumbState;
525
- type Props = SliderThumbProps;
526
- }
527
- /**
528
- * Visualizes the current value of the slider.
529
- * Renders a `<div>` element.
530
- *
531
- * Documentation: [Base UI Slider](https://base-ui.com/react/components/slider)
532
- */
533
- export declare const SliderIndicator: React$1.ForwardRefExoticComponent<Omit<SliderIndicatorProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
534
- export interface SliderIndicatorState extends SliderRootState {
535
- }
536
- export interface SliderIndicatorProps extends BaseUIComponentProps<"div", SliderIndicatorState> {
537
- }
538
- export declare namespace SliderIndicator {
539
- type State = SliderIndicatorState;
540
- type Props = SliderIndicatorProps;
541
- }
542
-
543
- declare namespace Slider {
544
- export { SliderControl as Control, SliderIndicator as Indicator, SliderLabel as Label, SliderRoot as Root, SliderThumb as Thumb, SliderTrack as Track, SliderValue as Value };
545
- }
546
-
547
- export {
548
- Slider,
549
- };
550
-
551
- export {};