@arolariu/components 0.0.30 → 0.0.31

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 (462) hide show
  1. package/dist/cjs/components/ui/accordion.cjs +1 -1
  2. package/dist/cjs/components/ui/accordion.cjs.map +1 -1
  3. package/dist/cjs/components/ui/alert-dialog.cjs +1 -1
  4. package/dist/cjs/components/ui/alert-dialog.cjs.map +1 -1
  5. package/dist/cjs/components/ui/alert.cjs +1 -1
  6. package/dist/cjs/components/ui/alert.cjs.map +1 -1
  7. package/dist/cjs/components/ui/aspect-ratio.cjs +1 -1
  8. package/dist/cjs/components/ui/aspect-ratio.cjs.map +1 -1
  9. package/dist/cjs/components/ui/avatar.cjs +1 -1
  10. package/dist/cjs/components/ui/avatar.cjs.map +1 -1
  11. package/dist/cjs/components/ui/badge.cjs +1 -1
  12. package/dist/cjs/components/ui/badge.cjs.map +1 -1
  13. package/dist/cjs/components/ui/breadcrumb.cjs +1 -1
  14. package/dist/cjs/components/ui/breadcrumb.cjs.map +1 -1
  15. package/dist/cjs/components/ui/button.cjs +1 -1
  16. package/dist/cjs/components/ui/button.cjs.map +1 -1
  17. package/dist/cjs/components/ui/calendar.cjs +1 -1
  18. package/dist/cjs/components/ui/calendar.cjs.map +1 -1
  19. package/dist/cjs/components/ui/card.cjs +1 -1
  20. package/dist/cjs/components/ui/card.cjs.map +1 -1
  21. package/dist/cjs/components/ui/carousel.cjs +1 -1
  22. package/dist/cjs/components/ui/carousel.cjs.map +1 -1
  23. package/dist/cjs/components/ui/chart.cjs +3 -3
  24. package/dist/cjs/components/ui/chart.cjs.map +1 -1
  25. package/dist/cjs/components/ui/checkbox.cjs +1 -1
  26. package/dist/cjs/components/ui/checkbox.cjs.map +1 -1
  27. package/dist/cjs/components/ui/collapsible.cjs +1 -1
  28. package/dist/cjs/components/ui/collapsible.cjs.map +1 -1
  29. package/dist/cjs/components/ui/command.cjs +1 -1
  30. package/dist/cjs/components/ui/command.cjs.map +1 -1
  31. package/dist/cjs/components/ui/context-menu.cjs +1 -1
  32. package/dist/cjs/components/ui/context-menu.cjs.map +1 -1
  33. package/dist/cjs/components/ui/dialog.cjs +1 -1
  34. package/dist/cjs/components/ui/dialog.cjs.map +1 -1
  35. package/dist/cjs/components/ui/drawer.cjs +1 -1
  36. package/dist/cjs/components/ui/drawer.cjs.map +1 -1
  37. package/dist/cjs/components/ui/dropdown-menu.cjs +1 -1
  38. package/dist/cjs/components/ui/dropdown-menu.cjs.map +1 -1
  39. package/dist/cjs/components/ui/form.cjs +1 -1
  40. package/dist/cjs/components/ui/form.cjs.map +1 -1
  41. package/dist/cjs/components/ui/hover-card.cjs +1 -1
  42. package/dist/cjs/components/ui/hover-card.cjs.map +1 -1
  43. package/dist/cjs/components/ui/input-otp.cjs +1 -1
  44. package/dist/cjs/components/ui/input-otp.cjs.map +1 -1
  45. package/dist/cjs/components/ui/input.cjs +1 -1
  46. package/dist/cjs/components/ui/input.cjs.map +1 -1
  47. package/dist/cjs/components/ui/label.cjs +1 -1
  48. package/dist/cjs/components/ui/label.cjs.map +1 -1
  49. package/dist/cjs/components/ui/menubar.cjs +1 -1
  50. package/dist/cjs/components/ui/menubar.cjs.map +1 -1
  51. package/dist/cjs/components/ui/navigation-menu.cjs +1 -1
  52. package/dist/cjs/components/ui/navigation-menu.cjs.map +1 -1
  53. package/dist/cjs/components/ui/pagination.cjs +1 -1
  54. package/dist/cjs/components/ui/pagination.cjs.map +1 -1
  55. package/dist/cjs/components/ui/popover.cjs +1 -1
  56. package/dist/cjs/components/ui/popover.cjs.map +1 -1
  57. package/dist/cjs/components/ui/progress.cjs +1 -1
  58. package/dist/cjs/components/ui/progress.cjs.map +1 -1
  59. package/dist/cjs/components/ui/radio-group.cjs +1 -1
  60. package/dist/cjs/components/ui/radio-group.cjs.map +1 -1
  61. package/dist/cjs/components/ui/resizable.cjs +1 -1
  62. package/dist/cjs/components/ui/resizable.cjs.map +1 -1
  63. package/dist/cjs/components/ui/scroll-area.cjs +1 -1
  64. package/dist/cjs/components/ui/scroll-area.cjs.map +1 -1
  65. package/dist/cjs/components/ui/select.cjs +1 -1
  66. package/dist/cjs/components/ui/select.cjs.map +1 -1
  67. package/dist/cjs/components/ui/separator.cjs +1 -1
  68. package/dist/cjs/components/ui/separator.cjs.map +1 -1
  69. package/dist/cjs/components/ui/sheet.cjs +1 -1
  70. package/dist/cjs/components/ui/sheet.cjs.map +1 -1
  71. package/dist/cjs/components/ui/sidebar.cjs +1 -1
  72. package/dist/cjs/components/ui/sidebar.cjs.map +1 -1
  73. package/dist/cjs/components/ui/skeleton.cjs +1 -1
  74. package/dist/cjs/components/ui/skeleton.cjs.map +1 -1
  75. package/dist/cjs/components/ui/slider.cjs +1 -1
  76. package/dist/cjs/components/ui/slider.cjs.map +1 -1
  77. package/dist/cjs/components/ui/sonner.cjs +1 -1
  78. package/dist/cjs/components/ui/sonner.cjs.map +1 -1
  79. package/dist/cjs/components/ui/switch.cjs +1 -1
  80. package/dist/cjs/components/ui/switch.cjs.map +1 -1
  81. package/dist/cjs/components/ui/table.cjs +1 -1
  82. package/dist/cjs/components/ui/table.cjs.map +1 -1
  83. package/dist/cjs/components/ui/tabs.cjs +1 -1
  84. package/dist/cjs/components/ui/tabs.cjs.map +1 -1
  85. package/dist/cjs/components/ui/textarea.cjs +1 -1
  86. package/dist/cjs/components/ui/textarea.cjs.map +1 -1
  87. package/dist/cjs/components/ui/toggle-group.cjs +1 -1
  88. package/dist/cjs/components/ui/toggle-group.cjs.map +1 -1
  89. package/dist/cjs/components/ui/toggle.cjs +1 -1
  90. package/dist/cjs/components/ui/toggle.cjs.map +1 -1
  91. package/dist/cjs/components/ui/tooltip.cjs +1 -1
  92. package/dist/cjs/components/ui/tooltip.cjs.map +1 -1
  93. package/dist/cjs/node_modules/@radix-ui/react-accordion/dist/index.cjs +1 -1
  94. package/dist/cjs/node_modules/@radix-ui/react-accordion/dist/index.cjs.map +1 -1
  95. package/dist/cjs/node_modules/@radix-ui/react-alert-dialog/dist/index.cjs +3 -3
  96. package/dist/cjs/node_modules/@radix-ui/react-alert-dialog/dist/index.cjs.map +1 -1
  97. package/dist/cjs/node_modules/@radix-ui/react-arrow/dist/index.cjs +1 -1
  98. package/dist/cjs/node_modules/@radix-ui/react-arrow/dist/index.cjs.map +1 -1
  99. package/dist/cjs/node_modules/@radix-ui/react-aspect-ratio/dist/index.cjs +1 -1
  100. package/dist/cjs/node_modules/@radix-ui/react-aspect-ratio/dist/index.cjs.map +1 -1
  101. package/dist/cjs/node_modules/@radix-ui/react-avatar/dist/index.cjs +1 -1
  102. package/dist/cjs/node_modules/@radix-ui/react-avatar/dist/index.cjs.map +1 -1
  103. package/dist/cjs/node_modules/@radix-ui/react-checkbox/dist/index.cjs +1 -1
  104. package/dist/cjs/node_modules/@radix-ui/react-checkbox/dist/index.cjs.map +1 -1
  105. package/dist/cjs/node_modules/@radix-ui/react-collapsible/dist/index.cjs +1 -1
  106. package/dist/cjs/node_modules/@radix-ui/react-collapsible/dist/index.cjs.map +1 -1
  107. package/dist/cjs/node_modules/@radix-ui/react-collection/dist/index.cjs +1 -1
  108. package/dist/cjs/node_modules/@radix-ui/react-collection/dist/index.cjs.map +1 -1
  109. package/dist/cjs/node_modules/@radix-ui/react-context/dist/index.cjs +1 -1
  110. package/dist/cjs/node_modules/@radix-ui/react-context/dist/index.cjs.map +1 -1
  111. package/dist/cjs/node_modules/@radix-ui/react-context-menu/dist/index.cjs +1 -1
  112. package/dist/cjs/node_modules/@radix-ui/react-context-menu/dist/index.cjs.map +1 -1
  113. package/dist/cjs/node_modules/@radix-ui/react-dialog/dist/index.cjs +2 -2
  114. package/dist/cjs/node_modules/@radix-ui/react-dialog/dist/index.cjs.map +1 -1
  115. package/dist/cjs/node_modules/@radix-ui/react-direction/dist/index.cjs +1 -1
  116. package/dist/cjs/node_modules/@radix-ui/react-direction/dist/index.cjs.map +1 -1
  117. package/dist/cjs/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +1 -1
  118. package/dist/cjs/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.map +1 -1
  119. package/dist/cjs/node_modules/@radix-ui/react-dropdown-menu/dist/index.cjs +1 -1
  120. package/dist/cjs/node_modules/@radix-ui/react-dropdown-menu/dist/index.cjs.map +1 -1
  121. package/dist/cjs/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +1 -1
  122. package/dist/cjs/node_modules/@radix-ui/react-focus-scope/dist/index.cjs.map +1 -1
  123. package/dist/cjs/node_modules/@radix-ui/react-hover-card/dist/index.cjs +1 -1
  124. package/dist/cjs/node_modules/@radix-ui/react-hover-card/dist/index.cjs.map +1 -1
  125. package/dist/cjs/node_modules/@radix-ui/react-label/dist/index.cjs +1 -1
  126. package/dist/cjs/node_modules/@radix-ui/react-label/dist/index.cjs.map +1 -1
  127. package/dist/cjs/node_modules/@radix-ui/react-menu/dist/index.cjs +1 -1
  128. package/dist/cjs/node_modules/@radix-ui/react-menu/dist/index.cjs.map +1 -1
  129. package/dist/cjs/node_modules/@radix-ui/react-menubar/dist/index.cjs +1 -1
  130. package/dist/cjs/node_modules/@radix-ui/react-menubar/dist/index.cjs.map +1 -1
  131. package/dist/cjs/node_modules/@radix-ui/react-navigation-menu/dist/index.cjs +1 -1
  132. package/dist/cjs/node_modules/@radix-ui/react-navigation-menu/dist/index.cjs.map +1 -1
  133. package/dist/cjs/node_modules/@radix-ui/react-popover/dist/index.cjs +1 -1
  134. package/dist/cjs/node_modules/@radix-ui/react-popover/dist/index.cjs.map +1 -1
  135. package/dist/cjs/node_modules/@radix-ui/react-popper/dist/index.cjs +1 -1
  136. package/dist/cjs/node_modules/@radix-ui/react-popper/dist/index.cjs.map +1 -1
  137. package/dist/cjs/node_modules/@radix-ui/react-portal/dist/index.cjs +1 -1
  138. package/dist/cjs/node_modules/@radix-ui/react-portal/dist/index.cjs.map +1 -1
  139. package/dist/cjs/node_modules/@radix-ui/react-primitive/dist/index.cjs +1 -1
  140. package/dist/cjs/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -1
  141. package/dist/cjs/node_modules/@radix-ui/react-progress/dist/index.cjs +2 -2
  142. package/dist/cjs/node_modules/@radix-ui/react-progress/dist/index.cjs.map +1 -1
  143. package/dist/cjs/node_modules/@radix-ui/react-radio-group/dist/index.cjs +1 -1
  144. package/dist/cjs/node_modules/@radix-ui/react-radio-group/dist/index.cjs.map +1 -1
  145. package/dist/cjs/node_modules/@radix-ui/react-roving-focus/dist/index.cjs +1 -1
  146. package/dist/cjs/node_modules/@radix-ui/react-roving-focus/dist/index.cjs.map +1 -1
  147. package/dist/cjs/node_modules/@radix-ui/react-scroll-area/dist/index.cjs +1 -1
  148. package/dist/cjs/node_modules/@radix-ui/react-scroll-area/dist/index.cjs.map +1 -1
  149. package/dist/cjs/node_modules/@radix-ui/react-select/dist/index.cjs +1 -1
  150. package/dist/cjs/node_modules/@radix-ui/react-select/dist/index.cjs.map +1 -1
  151. package/dist/cjs/node_modules/@radix-ui/react-separator/dist/index.cjs +1 -1
  152. package/dist/cjs/node_modules/@radix-ui/react-separator/dist/index.cjs.map +1 -1
  153. package/dist/cjs/node_modules/@radix-ui/react-slider/dist/index.cjs +1 -1
  154. package/dist/cjs/node_modules/@radix-ui/react-slider/dist/index.cjs.map +1 -1
  155. package/dist/cjs/node_modules/@radix-ui/react-slot/dist/index.cjs +1 -1
  156. package/dist/cjs/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -1
  157. package/dist/cjs/node_modules/@radix-ui/react-switch/dist/index.cjs +1 -1
  158. package/dist/cjs/node_modules/@radix-ui/react-switch/dist/index.cjs.map +1 -1
  159. package/dist/cjs/node_modules/@radix-ui/react-tabs/dist/index.cjs +1 -1
  160. package/dist/cjs/node_modules/@radix-ui/react-tabs/dist/index.cjs.map +1 -1
  161. package/dist/cjs/node_modules/@radix-ui/react-toggle/dist/index.cjs +1 -1
  162. package/dist/cjs/node_modules/@radix-ui/react-toggle/dist/index.cjs.map +1 -1
  163. package/dist/cjs/node_modules/@radix-ui/react-toggle-group/dist/index.cjs +1 -1
  164. package/dist/cjs/node_modules/@radix-ui/react-toggle-group/dist/index.cjs.map +1 -1
  165. package/dist/cjs/node_modules/@radix-ui/react-tooltip/dist/index.cjs +1 -1
  166. package/dist/cjs/node_modules/@radix-ui/react-tooltip/dist/index.cjs.map +1 -1
  167. package/dist/cjs/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs +1 -1
  168. package/dist/cjs/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs.map +1 -1
  169. package/dist/cjs/node_modules/react-day-picker/dist/index.esm.cjs +1 -1
  170. package/dist/cjs/node_modules/react-day-picker/dist/index.esm.cjs.map +1 -1
  171. package/dist/esm/components/ui/accordion.js +20 -20
  172. package/dist/esm/components/ui/accordion.js.map +1 -1
  173. package/dist/esm/components/ui/alert-dialog.js +53 -50
  174. package/dist/esm/components/ui/alert-dialog.js.map +1 -1
  175. package/dist/esm/components/ui/alert.js +6 -6
  176. package/dist/esm/components/ui/alert.js.map +1 -1
  177. package/dist/esm/components/ui/aspect-ratio.js +4 -4
  178. package/dist/esm/components/ui/aspect-ratio.js.map +1 -1
  179. package/dist/esm/components/ui/avatar.js +7 -7
  180. package/dist/esm/components/ui/avatar.js.map +1 -1
  181. package/dist/esm/components/ui/badge.js +9 -10
  182. package/dist/esm/components/ui/badge.js.map +1 -1
  183. package/dist/esm/components/ui/breadcrumb.js +36 -31
  184. package/dist/esm/components/ui/breadcrumb.js.map +1 -1
  185. package/dist/esm/components/ui/button.js +9 -10
  186. package/dist/esm/components/ui/button.js.map +1 -1
  187. package/dist/esm/components/ui/calendar.js +4 -4
  188. package/dist/esm/components/ui/calendar.js.map +1 -1
  189. package/dist/esm/components/ui/card.js +15 -12
  190. package/dist/esm/components/ui/card.js.map +1 -1
  191. package/dist/esm/components/ui/carousel.js +83 -83
  192. package/dist/esm/components/ui/carousel.js.map +1 -1
  193. package/dist/esm/components/ui/chart.js +80 -80
  194. package/dist/esm/components/ui/chart.js.map +1 -1
  195. package/dist/esm/components/ui/checkbox.js +4 -4
  196. package/dist/esm/components/ui/checkbox.js.map +1 -1
  197. package/dist/esm/components/ui/collapsible.js +10 -10
  198. package/dist/esm/components/ui/collapsible.js.map +1 -1
  199. package/dist/esm/components/ui/command.js +53 -53
  200. package/dist/esm/components/ui/command.js.map +1 -1
  201. package/dist/esm/components/ui/context-menu.js +80 -77
  202. package/dist/esm/components/ui/context-menu.js.map +1 -1
  203. package/dist/esm/components/ui/dialog.js +48 -45
  204. package/dist/esm/components/ui/dialog.js.map +1 -1
  205. package/dist/esm/components/ui/drawer.js +55 -49
  206. package/dist/esm/components/ui/drawer.js.map +1 -1
  207. package/dist/esm/components/ui/dropdown-menu.js +67 -64
  208. package/dist/esm/components/ui/dropdown-menu.js.map +1 -1
  209. package/dist/esm/components/ui/form.js +44 -38
  210. package/dist/esm/components/ui/form.js.map +1 -1
  211. package/dist/esm/components/ui/hover-card.js +6 -6
  212. package/dist/esm/components/ui/hover-card.js.map +1 -1
  213. package/dist/esm/components/ui/input-otp.js +19 -19
  214. package/dist/esm/components/ui/input-otp.js.map +1 -1
  215. package/dist/esm/components/ui/input.js +2 -2
  216. package/dist/esm/components/ui/input.js.map +1 -1
  217. package/dist/esm/components/ui/label.js +4 -4
  218. package/dist/esm/components/ui/label.js.map +1 -1
  219. package/dist/esm/components/ui/menubar.js +94 -91
  220. package/dist/esm/components/ui/menubar.js.map +1 -1
  221. package/dist/esm/components/ui/navigation-menu.js +44 -44
  222. package/dist/esm/components/ui/navigation-menu.js.map +1 -1
  223. package/dist/esm/components/ui/pagination.js +39 -39
  224. package/dist/esm/components/ui/pagination.js.map +1 -1
  225. package/dist/esm/components/ui/popover.js +9 -9
  226. package/dist/esm/components/ui/popover.js.map +1 -1
  227. package/dist/esm/components/ui/progress.js +9 -9
  228. package/dist/esm/components/ui/progress.js.map +1 -1
  229. package/dist/esm/components/ui/radio-group.js +8 -8
  230. package/dist/esm/components/ui/radio-group.js.map +1 -1
  231. package/dist/esm/components/ui/resizable.js +8 -8
  232. package/dist/esm/components/ui/resizable.js.map +1 -1
  233. package/dist/esm/components/ui/scroll-area.js +22 -22
  234. package/dist/esm/components/ui/scroll-area.js.map +1 -1
  235. package/dist/esm/components/ui/select.js +81 -78
  236. package/dist/esm/components/ui/select.js.map +1 -1
  237. package/dist/esm/components/ui/separator.js +4 -4
  238. package/dist/esm/components/ui/separator.js.map +1 -1
  239. package/dist/esm/components/ui/sheet.js +50 -44
  240. package/dist/esm/components/ui/sheet.js.map +1 -1
  241. package/dist/esm/components/ui/sidebar.js +178 -179
  242. package/dist/esm/components/ui/sidebar.js.map +1 -1
  243. package/dist/esm/components/ui/skeleton.js +8 -5
  244. package/dist/esm/components/ui/skeleton.js.map +1 -1
  245. package/dist/esm/components/ui/slider.js +21 -21
  246. package/dist/esm/components/ui/slider.js.map +1 -1
  247. package/dist/esm/components/ui/sonner.js +2 -2
  248. package/dist/esm/components/ui/sonner.js.map +1 -1
  249. package/dist/esm/components/ui/switch.js +3 -3
  250. package/dist/esm/components/ui/switch.js.map +1 -1
  251. package/dist/esm/components/ui/table.js +20 -17
  252. package/dist/esm/components/ui/table.js.map +1 -1
  253. package/dist/esm/components/ui/tabs.js +5 -5
  254. package/dist/esm/components/ui/tabs.js.map +1 -1
  255. package/dist/esm/components/ui/textarea.js +2 -2
  256. package/dist/esm/components/ui/textarea.js.map +1 -1
  257. package/dist/esm/components/ui/toggle-group.js +7 -7
  258. package/dist/esm/components/ui/toggle-group.js.map +1 -1
  259. package/dist/esm/components/ui/toggle.js +5 -5
  260. package/dist/esm/components/ui/toggle.js.map +1 -1
  261. package/dist/esm/components/ui/tooltip.js +19 -19
  262. package/dist/esm/components/ui/tooltip.js.map +1 -1
  263. package/dist/esm/node_modules/@radix-ui/react-accordion/dist/index.js +74 -74
  264. package/dist/esm/node_modules/@radix-ui/react-accordion/dist/index.js.map +1 -1
  265. package/dist/esm/node_modules/@radix-ui/react-alert-dialog/dist/index.js +69 -69
  266. package/dist/esm/node_modules/@radix-ui/react-alert-dialog/dist/index.js.map +1 -1
  267. package/dist/esm/node_modules/@radix-ui/react-arrow/dist/index.js +6 -6
  268. package/dist/esm/node_modules/@radix-ui/react-arrow/dist/index.js.map +1 -1
  269. package/dist/esm/node_modules/@radix-ui/react-aspect-ratio/dist/index.js +12 -12
  270. package/dist/esm/node_modules/@radix-ui/react-aspect-ratio/dist/index.js.map +1 -1
  271. package/dist/esm/node_modules/@radix-ui/react-avatar/dist/index.js +29 -29
  272. package/dist/esm/node_modules/@radix-ui/react-avatar/dist/index.js.map +1 -1
  273. package/dist/esm/node_modules/@radix-ui/react-checkbox/dist/index.js +62 -62
  274. package/dist/esm/node_modules/@radix-ui/react-checkbox/dist/index.js.map +1 -1
  275. package/dist/esm/node_modules/@radix-ui/react-collapsible/dist/index.js +46 -46
  276. package/dist/esm/node_modules/@radix-ui/react-collapsible/dist/index.js.map +1 -1
  277. package/dist/esm/node_modules/@radix-ui/react-collection/dist/index.js +26 -26
  278. package/dist/esm/node_modules/@radix-ui/react-collection/dist/index.js.map +1 -1
  279. package/dist/esm/node_modules/@radix-ui/react-context/dist/index.js +21 -21
  280. package/dist/esm/node_modules/@radix-ui/react-context/dist/index.js.map +1 -1
  281. package/dist/esm/node_modules/@radix-ui/react-context-menu/dist/index.js +115 -115
  282. package/dist/esm/node_modules/@radix-ui/react-context-menu/dist/index.js.map +1 -1
  283. package/dist/esm/node_modules/@radix-ui/react-dialog/dist/index.js +100 -100
  284. package/dist/esm/node_modules/@radix-ui/react-dialog/dist/index.js.map +1 -1
  285. package/dist/esm/node_modules/@radix-ui/react-direction/dist/index.js +1 -1
  286. package/dist/esm/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +38 -38
  287. package/dist/esm/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +1 -1
  288. package/dist/esm/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +105 -105
  289. package/dist/esm/node_modules/@radix-ui/react-dropdown-menu/dist/index.js.map +1 -1
  290. package/dist/esm/node_modules/@radix-ui/react-focus-scope/dist/index.js +9 -9
  291. package/dist/esm/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +1 -1
  292. package/dist/esm/node_modules/@radix-ui/react-hover-card/dist/index.js +41 -41
  293. package/dist/esm/node_modules/@radix-ui/react-hover-card/dist/index.js.map +1 -1
  294. package/dist/esm/node_modules/@radix-ui/react-label/dist/index.js +3 -3
  295. package/dist/esm/node_modules/@radix-ui/react-label/dist/index.js.map +1 -1
  296. package/dist/esm/node_modules/@radix-ui/react-menu/dist/index.js +198 -198
  297. package/dist/esm/node_modules/@radix-ui/react-menu/dist/index.js.map +1 -1
  298. package/dist/esm/node_modules/@radix-ui/react-menubar/dist/index.js +96 -96
  299. package/dist/esm/node_modules/@radix-ui/react-menubar/dist/index.js.map +1 -1
  300. package/dist/esm/node_modules/@radix-ui/react-navigation-menu/dist/index.js +236 -236
  301. package/dist/esm/node_modules/@radix-ui/react-navigation-menu/dist/index.js.map +1 -1
  302. package/dist/esm/node_modules/@radix-ui/react-popover/dist/index.js +90 -90
  303. package/dist/esm/node_modules/@radix-ui/react-popover/dist/index.js.map +1 -1
  304. package/dist/esm/node_modules/@radix-ui/react-popper/dist/index.js +49 -49
  305. package/dist/esm/node_modules/@radix-ui/react-popper/dist/index.js.map +1 -1
  306. package/dist/esm/node_modules/@radix-ui/react-portal/dist/index.js +8 -8
  307. package/dist/esm/node_modules/@radix-ui/react-portal/dist/index.js.map +1 -1
  308. package/dist/esm/node_modules/@radix-ui/react-primitive/dist/index.js +10 -10
  309. package/dist/esm/node_modules/@radix-ui/react-primitive/dist/index.js.map +1 -1
  310. package/dist/esm/node_modules/@radix-ui/react-progress/dist/index.js +18 -18
  311. package/dist/esm/node_modules/@radix-ui/react-progress/dist/index.js.map +1 -1
  312. package/dist/esm/node_modules/@radix-ui/react-radio-group/dist/index.js +86 -86
  313. package/dist/esm/node_modules/@radix-ui/react-radio-group/dist/index.js.map +1 -1
  314. package/dist/esm/node_modules/@radix-ui/react-roving-focus/dist/index.js +29 -29
  315. package/dist/esm/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +1 -1
  316. package/dist/esm/node_modules/@radix-ui/react-scroll-area/dist/index.js +170 -170
  317. package/dist/esm/node_modules/@radix-ui/react-scroll-area/dist/index.js.map +1 -1
  318. package/dist/esm/node_modules/@radix-ui/react-select/dist/index.js +350 -350
  319. package/dist/esm/node_modules/@radix-ui/react-select/dist/index.js.map +1 -1
  320. package/dist/esm/node_modules/@radix-ui/react-separator/dist/index.js +6 -6
  321. package/dist/esm/node_modules/@radix-ui/react-separator/dist/index.js.map +1 -1
  322. package/dist/esm/node_modules/@radix-ui/react-slider/dist/index.js +114 -114
  323. package/dist/esm/node_modules/@radix-ui/react-slider/dist/index.js.map +1 -1
  324. package/dist/esm/node_modules/@radix-ui/react-slot/dist/index.js +14 -14
  325. package/dist/esm/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -1
  326. package/dist/esm/node_modules/@radix-ui/react-switch/dist/index.js +48 -48
  327. package/dist/esm/node_modules/@radix-ui/react-switch/dist/index.js.map +1 -1
  328. package/dist/esm/node_modules/@radix-ui/react-tabs/dist/index.js +48 -48
  329. package/dist/esm/node_modules/@radix-ui/react-tabs/dist/index.js.map +1 -1
  330. package/dist/esm/node_modules/@radix-ui/react-toggle/dist/index.js +6 -6
  331. package/dist/esm/node_modules/@radix-ui/react-toggle/dist/index.js.map +1 -1
  332. package/dist/esm/node_modules/@radix-ui/react-toggle-group/dist/index.js +67 -71
  333. package/dist/esm/node_modules/@radix-ui/react-toggle-group/dist/index.js.map +1 -1
  334. package/dist/esm/node_modules/@radix-ui/react-tooltip/dist/index.js +97 -97
  335. package/dist/esm/node_modules/@radix-ui/react-tooltip/dist/index.js.map +1 -1
  336. package/dist/esm/node_modules/@radix-ui/react-visually-hidden/dist/index.js +4 -4
  337. package/dist/esm/node_modules/@radix-ui/react-visually-hidden/dist/index.js.map +1 -1
  338. package/dist/esm/node_modules/react-day-picker/dist/index.esm.js +483 -483
  339. package/dist/esm/node_modules/react-day-picker/dist/index.esm.js.map +1 -1
  340. package/dist/types/components/ui/accordion.d.ts.map +1 -1
  341. package/dist/types/components/ui/alert-dialog.d.ts.map +1 -1
  342. package/dist/types/components/ui/alert.d.ts.map +1 -1
  343. package/dist/types/components/ui/avatar.d.ts.map +1 -1
  344. package/dist/types/components/ui/badge.d.ts.map +1 -1
  345. package/dist/types/components/ui/breadcrumb.d.ts.map +1 -1
  346. package/dist/types/components/ui/button.d.ts.map +1 -1
  347. package/dist/types/components/ui/calendar.d.ts.map +1 -1
  348. package/dist/types/components/ui/card.d.ts +1 -1
  349. package/dist/types/components/ui/card.d.ts.map +1 -1
  350. package/dist/types/components/ui/carousel.d.ts +1 -1
  351. package/dist/types/components/ui/carousel.d.ts.map +1 -1
  352. package/dist/types/components/ui/chart.d.ts.map +1 -1
  353. package/dist/types/components/ui/checkbox.d.ts.map +1 -1
  354. package/dist/types/components/ui/command.d.ts +1 -1
  355. package/dist/types/components/ui/command.d.ts.map +1 -1
  356. package/dist/types/components/ui/context-menu.d.ts.map +1 -1
  357. package/dist/types/components/ui/dialog.d.ts.map +1 -1
  358. package/dist/types/components/ui/drawer.d.ts.map +1 -1
  359. package/dist/types/components/ui/dropdown-menu.d.ts.map +1 -1
  360. package/dist/types/components/ui/form.d.ts.map +1 -1
  361. package/dist/types/components/ui/hover-card.d.ts.map +1 -1
  362. package/dist/types/components/ui/input-otp.d.ts.map +1 -1
  363. package/dist/types/components/ui/input.d.ts.map +1 -1
  364. package/dist/types/components/ui/label.d.ts.map +1 -1
  365. package/dist/types/components/ui/menubar.d.ts.map +1 -1
  366. package/dist/types/components/ui/navigation-menu.d.ts.map +1 -1
  367. package/dist/types/components/ui/pagination.d.ts +1 -1
  368. package/dist/types/components/ui/pagination.d.ts.map +1 -1
  369. package/dist/types/components/ui/popover.d.ts.map +1 -1
  370. package/dist/types/components/ui/progress.d.ts.map +1 -1
  371. package/dist/types/components/ui/radio-group.d.ts.map +1 -1
  372. package/dist/types/components/ui/resizable.d.ts.map +1 -1
  373. package/dist/types/components/ui/scroll-area.d.ts.map +1 -1
  374. package/dist/types/components/ui/select.d.ts.map +1 -1
  375. package/dist/types/components/ui/separator.d.ts.map +1 -1
  376. package/dist/types/components/ui/sheet.d.ts.map +1 -1
  377. package/dist/types/components/ui/sidebar.d.ts +5 -5
  378. package/dist/types/components/ui/sidebar.d.ts.map +1 -1
  379. package/dist/types/components/ui/skeleton.d.ts.map +1 -1
  380. package/dist/types/components/ui/slider.d.ts.map +1 -1
  381. package/dist/types/components/ui/switch.d.ts.map +1 -1
  382. package/dist/types/components/ui/table.d.ts.map +1 -1
  383. package/dist/types/components/ui/tabs.d.ts.map +1 -1
  384. package/dist/types/components/ui/textarea.d.ts.map +1 -1
  385. package/dist/types/components/ui/toggle-group.d.ts +1 -1
  386. package/dist/types/components/ui/toggle-group.d.ts.map +1 -1
  387. package/dist/types/components/ui/toggle.d.ts.map +1 -1
  388. package/dist/types/components/ui/tooltip.d.ts.map +1 -1
  389. package/package.json +163 -399
  390. package/src/components/ui/accordion.tsx +10 -11
  391. package/src/components/ui/alert-dialog.tsx +21 -18
  392. package/src/components/ui/alert.tsx +10 -10
  393. package/src/components/ui/avatar.tsx +8 -9
  394. package/src/components/ui/badge.tsx +8 -9
  395. package/src/components/ui/breadcrumb.tsx +22 -17
  396. package/src/components/ui/button.tsx +11 -11
  397. package/src/components/ui/calendar.tsx +10 -10
  398. package/src/components/ui/card.tsx +20 -11
  399. package/src/components/ui/carousel.tsx +62 -63
  400. package/src/components/ui/chart.tsx +1 -2
  401. package/src/components/ui/checkbox.tsx +7 -8
  402. package/src/components/ui/command.tsx +18 -19
  403. package/src/components/ui/context-menu.tsx +29 -27
  404. package/src/components/ui/dialog.tsx +20 -18
  405. package/src/components/ui/drawer.tsx +23 -18
  406. package/src/components/ui/dropdown-menu.tsx +29 -27
  407. package/src/components/ui/form.tsx +49 -43
  408. package/src/components/ui/hover-card.tsx +8 -9
  409. package/src/components/ui/input-otp.tsx +1 -2
  410. package/src/components/ui/input.tsx +1 -2
  411. package/src/components/ui/label.tsx +6 -7
  412. package/src/components/ui/menubar.tsx +30 -28
  413. package/src/components/ui/navigation-menu.tsx +19 -19
  414. package/src/components/ui/pagination.tsx +14 -15
  415. package/src/components/ui/popover.tsx +9 -10
  416. package/src/components/ui/progress.tsx +6 -7
  417. package/src/components/ui/radio-group.tsx +8 -9
  418. package/src/components/ui/resizable.tsx +10 -11
  419. package/src/components/ui/scroll-area.tsx +7 -8
  420. package/src/components/ui/select.tsx +20 -18
  421. package/src/components/ui/separator.tsx +6 -7
  422. package/src/components/ui/sheet.tsx +25 -20
  423. package/src/components/ui/sidebar.tsx +119 -117
  424. package/src/components/ui/skeleton.tsx +7 -4
  425. package/src/components/ui/slider.tsx +9 -10
  426. package/src/components/ui/switch.tsx +6 -7
  427. package/src/components/ui/table.tsx +16 -14
  428. package/src/components/ui/tabs.tsx +9 -10
  429. package/src/components/ui/textarea.tsx +4 -4
  430. package/src/components/ui/toggle-group.tsx +11 -12
  431. package/src/components/ui/toggle.tsx +8 -9
  432. package/src/components/ui/tooltip.tsx +9 -10
  433. package/tsconfig.json +47 -0
  434. package/dist/cjs/_virtual/jsx-runtime.cjs +0 -2
  435. package/dist/cjs/_virtual/jsx-runtime.cjs.map +0 -1
  436. package/dist/cjs/_virtual/jsx-runtime2.cjs +0 -2
  437. package/dist/cjs/_virtual/jsx-runtime2.cjs.map +0 -1
  438. package/dist/cjs/_virtual/react-jsx-runtime.development.cjs +0 -2
  439. package/dist/cjs/_virtual/react-jsx-runtime.development.cjs.map +0 -1
  440. package/dist/cjs/_virtual/react-jsx-runtime.production.cjs +0 -2
  441. package/dist/cjs/_virtual/react-jsx-runtime.production.cjs.map +0 -1
  442. package/dist/cjs/node_modules/react/cjs/react-jsx-runtime.development.cjs +0 -24
  443. package/dist/cjs/node_modules/react/cjs/react-jsx-runtime.development.cjs.map +0 -1
  444. package/dist/cjs/node_modules/react/cjs/react-jsx-runtime.production.cjs +0 -10
  445. package/dist/cjs/node_modules/react/cjs/react-jsx-runtime.production.cjs.map +0 -1
  446. package/dist/cjs/node_modules/react/jsx-runtime.cjs +0 -2
  447. package/dist/cjs/node_modules/react/jsx-runtime.cjs.map +0 -1
  448. package/dist/esm/_virtual/jsx-runtime.js +0 -7
  449. package/dist/esm/_virtual/jsx-runtime.js.map +0 -1
  450. package/dist/esm/_virtual/jsx-runtime2.js +0 -6
  451. package/dist/esm/_virtual/jsx-runtime2.js.map +0 -1
  452. package/dist/esm/_virtual/react-jsx-runtime.development.js +0 -6
  453. package/dist/esm/_virtual/react-jsx-runtime.development.js.map +0 -1
  454. package/dist/esm/_virtual/react-jsx-runtime.production.js +0 -6
  455. package/dist/esm/_virtual/react-jsx-runtime.production.js.map +0 -1
  456. package/dist/esm/node_modules/react/cjs/react-jsx-runtime.development.js +0 -410
  457. package/dist/esm/node_modules/react/cjs/react-jsx-runtime.development.js.map +0 -1
  458. package/dist/esm/node_modules/react/cjs/react-jsx-runtime.production.js +0 -37
  459. package/dist/esm/node_modules/react/cjs/react-jsx-runtime.production.js.map +0 -1
  460. package/dist/esm/node_modules/react/jsx-runtime.js +0 -12
  461. package/dist/esm/node_modules/react/jsx-runtime.js.map +0 -1
  462. package/src/global.d.ts +0 -3
@@ -1,9 +1,8 @@
1
- "use client"
1
+ "use client";
2
2
 
3
- import * as React from "react"
4
- import * as SeparatorPrimitive from "@radix-ui/react-separator"
5
-
6
- import { cn } from "@/lib/utils"
3
+ import * as React from "react";
4
+ import * as SeparatorPrimitive from "@radix-ui/react-separator";
5
+ import { cn } from "./../../lib/utils";
7
6
 
8
7
  function Separator({
9
8
  className,
@@ -22,7 +21,7 @@ function Separator({
22
21
  )}
23
22
  {...props}
24
23
  />
25
- )
24
+ );
26
25
  }
27
26
 
28
- export { Separator }
27
+ export { Separator };
@@ -1,31 +1,30 @@
1
- "use client"
1
+ "use client";
2
2
 
3
- import * as React from "react"
4
- import * as SheetPrimitive from "@radix-ui/react-dialog"
5
- import { XIcon } from "lucide-react"
6
-
7
- import { cn } from "@/lib/utils"
3
+ import * as React from "react";
4
+ import * as SheetPrimitive from "@radix-ui/react-dialog";
5
+ import { XIcon } from "lucide-react";
6
+ import { cn } from "./../../lib/utils";
8
7
 
9
8
  function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>) {
10
- return <SheetPrimitive.Root data-slot="sheet" {...props} />
9
+ return <SheetPrimitive.Root data-slot="sheet" {...props} />;
11
10
  }
12
11
 
13
12
  function SheetTrigger({
14
13
  ...props
15
14
  }: React.ComponentProps<typeof SheetPrimitive.Trigger>) {
16
- return <SheetPrimitive.Trigger data-slot="sheet-trigger" {...props} />
15
+ return <SheetPrimitive.Trigger data-slot="sheet-trigger" {...props} />;
17
16
  }
18
17
 
19
18
  function SheetClose({
20
19
  ...props
21
20
  }: React.ComponentProps<typeof SheetPrimitive.Close>) {
22
- return <SheetPrimitive.Close data-slot="sheet-close" {...props} />
21
+ return <SheetPrimitive.Close data-slot="sheet-close" {...props} />;
23
22
  }
24
23
 
25
24
  function SheetPortal({
26
25
  ...props
27
26
  }: React.ComponentProps<typeof SheetPrimitive.Portal>) {
28
- return <SheetPrimitive.Portal data-slot="sheet-portal" {...props} />
27
+ return <SheetPrimitive.Portal data-slot="sheet-portal" {...props} />;
29
28
  }
30
29
 
31
30
  function SheetOverlay({
@@ -41,7 +40,7 @@ function SheetOverlay({
41
40
  )}
42
41
  {...props}
43
42
  />
44
- )
43
+ );
45
44
  }
46
45
 
47
46
  function SheetContent({
@@ -50,7 +49,7 @@ function SheetContent({
50
49
  side = "right",
51
50
  ...props
52
51
  }: React.ComponentProps<typeof SheetPrimitive.Content> & {
53
- side?: "top" | "right" | "bottom" | "left"
52
+ side?: "top" | "right" | "bottom" | "left";
54
53
  }) {
55
54
  return (
56
55
  <SheetPortal>
@@ -78,7 +77,7 @@ function SheetContent({
78
77
  </SheetPrimitive.Close>
79
78
  </SheetPrimitive.Content>
80
79
  </SheetPortal>
81
- )
80
+ );
82
81
  }
83
82
 
84
83
  function SheetHeader({ className, ...props }: React.ComponentProps<"div">) {
@@ -88,7 +87,7 @@ function SheetHeader({ className, ...props }: React.ComponentProps<"div">) {
88
87
  className={cn("flex flex-col gap-1.5 p-4", className)}
89
88
  {...props}
90
89
  />
91
- )
90
+ );
92
91
  }
93
92
 
94
93
  function SheetFooter({ className, ...props }: React.ComponentProps<"div">) {
@@ -98,7 +97,7 @@ function SheetFooter({ className, ...props }: React.ComponentProps<"div">) {
98
97
  className={cn("mt-auto flex flex-col gap-2 p-4", className)}
99
98
  {...props}
100
99
  />
101
- )
100
+ );
102
101
  }
103
102
 
104
103
  function SheetTitle({
@@ -108,10 +107,13 @@ function SheetTitle({
108
107
  return (
109
108
  <SheetPrimitive.Title
110
109
  data-slot="sheet-title"
111
- className={cn("text-neutral-950 font-semibold dark:text-neutral-50", className)}
110
+ className={cn(
111
+ "text-neutral-950 font-semibold dark:text-neutral-50",
112
+ className
113
+ )}
112
114
  {...props}
113
115
  />
114
- )
116
+ );
115
117
  }
116
118
 
117
119
  function SheetDescription({
@@ -121,10 +123,13 @@ function SheetDescription({
121
123
  return (
122
124
  <SheetPrimitive.Description
123
125
  data-slot="sheet-description"
124
- className={cn("text-neutral-500 text-sm dark:text-neutral-400", className)}
126
+ className={cn(
127
+ "text-neutral-500 text-sm dark:text-neutral-400",
128
+ className
129
+ )}
125
130
  {...props}
126
131
  />
127
- )
132
+ );
128
133
  }
129
134
 
130
135
  export {
@@ -136,4 +141,4 @@ export {
136
141
  SheetFooter,
137
142
  SheetTitle,
138
143
  SheetDescription,
139
- }
144
+ };
@@ -1,56 +1,55 @@
1
- "use client"
2
-
3
- import * as React from "react"
4
- import { Slot } from "@radix-ui/react-slot"
5
- import { VariantProps, cva } from "class-variance-authority"
6
- import { PanelLeftIcon } from "lucide-react"
7
-
8
- import { useIsMobile } from "@/hooks/use-mobile"
9
- import { cn } from "@/lib/utils"
10
- import { Button } from "@/components/ui/button"
11
- import { Input } from "@/components/ui/input"
12
- import { Separator } from "@/components/ui/separator"
1
+ "use client";
2
+
3
+ import * as React from "react";
4
+ import { PanelLeftIcon } from "lucide-react";
5
+ import { useIsMobile } from "./../../hooks/use-mobile";
6
+ import {
7
+ Tooltip,
8
+ TooltipContent,
9
+ TooltipProvider,
10
+ TooltipTrigger,
11
+ } from "./tooltip";
12
+ import { cn } from "./../../lib/utils";
13
13
  import {
14
14
  Sheet,
15
15
  SheetContent,
16
16
  SheetDescription,
17
17
  SheetHeader,
18
18
  SheetTitle,
19
- } from "@/components/ui/sheet"
20
- import { Skeleton } from "@/components/ui/skeleton"
21
- import {
22
- Tooltip,
23
- TooltipContent,
24
- TooltipProvider,
25
- TooltipTrigger,
26
- } from "@/components/ui/tooltip"
27
-
28
- const SIDEBAR_COOKIE_NAME = "sidebar_state"
29
- const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7
30
- const SIDEBAR_WIDTH = "16rem"
31
- const SIDEBAR_WIDTH_MOBILE = "18rem"
32
- const SIDEBAR_WIDTH_ICON = "3rem"
33
- const SIDEBAR_KEYBOARD_SHORTCUT = "b"
19
+ } from "./sheet";
20
+ import { Input } from "./input";
21
+ import { Skeleton } from "./skeleton";
22
+ import { Button } from "./button";
23
+ import { Separator } from "./separator";
24
+ import { Slot } from "@radix-ui/react-slot";
25
+ import { cva, type VariantProps } from "class-variance-authority";
26
+
27
+ const SIDEBAR_COOKIE_NAME = "sidebar_state";
28
+ const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
29
+ const SIDEBAR_WIDTH = "16rem";
30
+ const SIDEBAR_WIDTH_MOBILE = "18rem";
31
+ const SIDEBAR_WIDTH_ICON = "3rem";
32
+ const SIDEBAR_KEYBOARD_SHORTCUT = "b";
34
33
 
35
34
  type SidebarContext = {
36
- state: "expanded" | "collapsed"
37
- open: boolean
38
- setOpen: (open: boolean) => void
39
- openMobile: boolean
40
- setOpenMobile: (open: boolean) => void
41
- isMobile: boolean
42
- toggleSidebar: () => void
43
- }
35
+ state: "expanded" | "collapsed";
36
+ open: boolean;
37
+ setOpen: (open: boolean) => void;
38
+ openMobile: boolean;
39
+ setOpenMobile: (open: boolean) => void;
40
+ isMobile: boolean;
41
+ toggleSidebar: () => void;
42
+ };
44
43
 
45
- const SidebarContext = React.createContext<SidebarContext | null>(null)
44
+ const SidebarContext = React.createContext<SidebarContext | null>(null);
46
45
 
47
46
  function useSidebar() {
48
- const context = React.useContext(SidebarContext)
47
+ const context = React.useContext(SidebarContext);
49
48
  if (!context) {
50
- throw new Error("useSidebar must be used within a SidebarProvider.")
49
+ throw new Error("useSidebar must be used within a SidebarProvider.");
51
50
  }
52
51
 
53
- return context
52
+ return context;
54
53
  }
55
54
 
56
55
  function SidebarProvider({
@@ -62,36 +61,36 @@ function SidebarProvider({
62
61
  children,
63
62
  ...props
64
63
  }: React.ComponentProps<"div"> & {
65
- defaultOpen?: boolean
66
- open?: boolean
67
- onOpenChange?: (open: boolean) => void
64
+ defaultOpen?: boolean;
65
+ open?: boolean;
66
+ onOpenChange?: (open: boolean) => void;
68
67
  }) {
69
- const isMobile = useIsMobile()
70
- const [openMobile, setOpenMobile] = React.useState(false)
68
+ const isMobile = useIsMobile();
69
+ const [openMobile, setOpenMobile] = React.useState(false);
71
70
 
72
71
  // This is the internal state of the sidebar.
73
72
  // We use openProp and setOpenProp for control from outside the component.
74
- const [_open, _setOpen] = React.useState(defaultOpen)
75
- const open = openProp ?? _open
73
+ const [_open, _setOpen] = React.useState(defaultOpen);
74
+ const open = openProp ?? _open;
76
75
  const setOpen = React.useCallback(
77
76
  (value: boolean | ((value: boolean) => boolean)) => {
78
- const openState = typeof value === "function" ? value(open) : value
77
+ const openState = typeof value === "function" ? value(open) : value;
79
78
  if (setOpenProp) {
80
- setOpenProp(openState)
79
+ setOpenProp(openState);
81
80
  } else {
82
- _setOpen(openState)
81
+ _setOpen(openState);
83
82
  }
84
83
 
85
84
  // This sets the cookie to keep the sidebar state.
86
- document.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`
85
+ document.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;
87
86
  },
88
87
  [setOpenProp, open]
89
- )
88
+ );
90
89
 
91
90
  // Helper to toggle the sidebar.
92
91
  const toggleSidebar = React.useCallback(() => {
93
- return isMobile ? setOpenMobile((open) => !open) : setOpen((open) => !open)
94
- }, [isMobile, setOpen, setOpenMobile])
92
+ return isMobile ? setOpenMobile((open) => !open) : setOpen((open) => !open);
93
+ }, [isMobile, setOpen, setOpenMobile]);
95
94
 
96
95
  // Adds a keyboard shortcut to toggle the sidebar.
97
96
  React.useEffect(() => {
@@ -100,18 +99,18 @@ function SidebarProvider({
100
99
  event.key === SIDEBAR_KEYBOARD_SHORTCUT &&
101
100
  (event.metaKey || event.ctrlKey)
102
101
  ) {
103
- event.preventDefault()
104
- toggleSidebar()
102
+ event.preventDefault();
103
+ toggleSidebar();
105
104
  }
106
- }
105
+ };
107
106
 
108
- window.addEventListener("keydown", handleKeyDown)
109
- return () => window.removeEventListener("keydown", handleKeyDown)
110
- }, [toggleSidebar])
107
+ window.addEventListener("keydown", handleKeyDown);
108
+ return () => window.removeEventListener("keydown", handleKeyDown);
109
+ }, [toggleSidebar]);
111
110
 
112
111
  // We add a state so that we can do data-state="expanded" or "collapsed".
113
112
  // This makes it easier to style the sidebar with Tailwind classes.
114
- const state = open ? "expanded" : "collapsed"
113
+ const state = open ? "expanded" : "collapsed";
115
114
 
116
115
  const contextValue = React.useMemo<SidebarContext>(
117
116
  () => ({
@@ -124,7 +123,7 @@ function SidebarProvider({
124
123
  toggleSidebar,
125
124
  }),
126
125
  [state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
127
- )
126
+ );
128
127
 
129
128
  return (
130
129
  <SidebarContext.Provider value={contextValue}>
@@ -148,7 +147,7 @@ function SidebarProvider({
148
147
  </div>
149
148
  </TooltipProvider>
150
149
  </SidebarContext.Provider>
151
- )
150
+ );
152
151
  }
153
152
 
154
153
  function Sidebar({
@@ -159,11 +158,11 @@ function Sidebar({
159
158
  children,
160
159
  ...props
161
160
  }: React.ComponentProps<"div"> & {
162
- side?: "left" | "right"
163
- variant?: "sidebar" | "floating" | "inset"
164
- collapsible?: "offcanvas" | "icon" | "none"
161
+ side?: "left" | "right";
162
+ variant?: "sidebar" | "floating" | "inset";
163
+ collapsible?: "offcanvas" | "icon" | "none";
165
164
  }) {
166
- const { isMobile, state, openMobile, setOpenMobile } = useSidebar()
165
+ const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
167
166
 
168
167
  if (collapsible === "none") {
169
168
  return (
@@ -177,7 +176,7 @@ function Sidebar({
177
176
  >
178
177
  {children}
179
178
  </div>
180
- )
179
+ );
181
180
  }
182
181
 
183
182
  if (isMobile) {
@@ -202,7 +201,7 @@ function Sidebar({
202
201
  <div className="flex h-full w-full flex-col">{children}</div>
203
202
  </SheetContent>
204
203
  </Sheet>
205
- )
204
+ );
206
205
  }
207
206
 
208
207
  return (
@@ -247,7 +246,7 @@ function Sidebar({
247
246
  </div>
248
247
  </div>
249
248
  </div>
250
- )
249
+ );
251
250
  }
252
251
 
253
252
  function SidebarTrigger({
@@ -255,7 +254,7 @@ function SidebarTrigger({
255
254
  onClick,
256
255
  ...props
257
256
  }: React.ComponentProps<typeof Button>) {
258
- const { toggleSidebar } = useSidebar()
257
+ const { toggleSidebar } = useSidebar();
259
258
 
260
259
  return (
261
260
  <Button
@@ -265,19 +264,19 @@ function SidebarTrigger({
265
264
  size="icon"
266
265
  className={cn("h-7 w-7", className)}
267
266
  onClick={(event) => {
268
- onClick?.(event)
269
- toggleSidebar()
267
+ onClick?.(event);
268
+ toggleSidebar();
270
269
  }}
271
270
  {...props}
272
271
  >
273
272
  <PanelLeftIcon />
274
273
  <span className="sr-only">Toggle Sidebar</span>
275
274
  </Button>
276
- )
275
+ );
277
276
  }
278
277
 
279
278
  function SidebarRail({ className, ...props }: React.ComponentProps<"button">) {
280
- const { toggleSidebar } = useSidebar()
279
+ const { toggleSidebar } = useSidebar();
281
280
 
282
281
  return (
283
282
  <button
@@ -298,7 +297,7 @@ function SidebarRail({ className, ...props }: React.ComponentProps<"button">) {
298
297
  )}
299
298
  {...props}
300
299
  />
301
- )
300
+ );
302
301
  }
303
302
 
304
303
  function SidebarInset({ className, ...props }: React.ComponentProps<"main">) {
@@ -312,7 +311,7 @@ function SidebarInset({ className, ...props }: React.ComponentProps<"main">) {
312
311
  )}
313
312
  {...props}
314
313
  />
315
- )
314
+ );
316
315
  }
317
316
 
318
317
  function SidebarInput({
@@ -323,10 +322,13 @@ function SidebarInput({
323
322
  <Input
324
323
  data-slot="sidebar-input"
325
324
  data-sidebar="input"
326
- className={cn("bg-white h-8 w-full shadow-none dark:bg-neutral-950", className)}
325
+ className={cn(
326
+ "bg-white h-8 w-full shadow-none dark:bg-neutral-950",
327
+ className
328
+ )}
327
329
  {...props}
328
330
  />
329
- )
331
+ );
330
332
  }
331
333
 
332
334
  function SidebarHeader({ className, ...props }: React.ComponentProps<"div">) {
@@ -337,7 +339,7 @@ function SidebarHeader({ className, ...props }: React.ComponentProps<"div">) {
337
339
  className={cn("flex flex-col gap-2 p-2", className)}
338
340
  {...props}
339
341
  />
340
- )
342
+ );
341
343
  }
342
344
 
343
345
  function SidebarFooter({ className, ...props }: React.ComponentProps<"div">) {
@@ -348,7 +350,7 @@ function SidebarFooter({ className, ...props }: React.ComponentProps<"div">) {
348
350
  className={cn("flex flex-col gap-2 p-2", className)}
349
351
  {...props}
350
352
  />
351
- )
353
+ );
352
354
  }
353
355
 
354
356
  function SidebarSeparator({
@@ -362,7 +364,7 @@ function SidebarSeparator({
362
364
  className={cn("bg-sidebar-border mx-2 w-auto", className)}
363
365
  {...props}
364
366
  />
365
- )
367
+ );
366
368
  }
367
369
 
368
370
  function SidebarContent({ className, ...props }: React.ComponentProps<"div">) {
@@ -376,7 +378,7 @@ function SidebarContent({ className, ...props }: React.ComponentProps<"div">) {
376
378
  )}
377
379
  {...props}
378
380
  />
379
- )
381
+ );
380
382
  }
381
383
 
382
384
  function SidebarGroup({ className, ...props }: React.ComponentProps<"div">) {
@@ -387,7 +389,7 @@ function SidebarGroup({ className, ...props }: React.ComponentProps<"div">) {
387
389
  className={cn("relative flex w-full min-w-0 flex-col p-2", className)}
388
390
  {...props}
389
391
  />
390
- )
392
+ );
391
393
  }
392
394
 
393
395
  function SidebarGroupLabel({
@@ -395,7 +397,7 @@ function SidebarGroupLabel({
395
397
  asChild = false,
396
398
  ...props
397
399
  }: React.ComponentProps<"div"> & { asChild?: boolean }) {
398
- const Comp = asChild ? Slot : "div"
400
+ const Comp = asChild ? Slot : "div";
399
401
 
400
402
  return (
401
403
  <Comp
@@ -408,7 +410,7 @@ function SidebarGroupLabel({
408
410
  )}
409
411
  {...props}
410
412
  />
411
- )
413
+ );
412
414
  }
413
415
 
414
416
  function SidebarGroupAction({
@@ -416,7 +418,7 @@ function SidebarGroupAction({
416
418
  asChild = false,
417
419
  ...props
418
420
  }: React.ComponentProps<"button"> & { asChild?: boolean }) {
419
- const Comp = asChild ? Slot : "button"
421
+ const Comp = asChild ? Slot : "button";
420
422
 
421
423
  return (
422
424
  <Comp
@@ -431,7 +433,7 @@ function SidebarGroupAction({
431
433
  )}
432
434
  {...props}
433
435
  />
434
- )
436
+ );
435
437
  }
436
438
 
437
439
  function SidebarGroupContent({
@@ -445,7 +447,7 @@ function SidebarGroupContent({
445
447
  className={cn("w-full text-sm", className)}
446
448
  {...props}
447
449
  />
448
- )
450
+ );
449
451
  }
450
452
 
451
453
  function SidebarMenu({ className, ...props }: React.ComponentProps<"ul">) {
@@ -456,7 +458,7 @@ function SidebarMenu({ className, ...props }: React.ComponentProps<"ul">) {
456
458
  className={cn("flex w-full min-w-0 flex-col gap-1", className)}
457
459
  {...props}
458
460
  />
459
- )
461
+ );
460
462
  }
461
463
 
462
464
  function SidebarMenuItem({ className, ...props }: React.ComponentProps<"li">) {
@@ -467,7 +469,7 @@ function SidebarMenuItem({ className, ...props }: React.ComponentProps<"li">) {
467
469
  className={cn("group/menu-item relative", className)}
468
470
  {...props}
469
471
  />
470
- )
472
+ );
471
473
  }
472
474
 
473
475
  const sidebarMenuButtonVariants = cva(
@@ -490,7 +492,7 @@ const sidebarMenuButtonVariants = cva(
490
492
  size: "default",
491
493
  },
492
494
  }
493
- )
495
+ );
494
496
 
495
497
  function SidebarMenuButton({
496
498
  asChild = false,
@@ -501,12 +503,12 @@ function SidebarMenuButton({
501
503
  className,
502
504
  ...props
503
505
  }: React.ComponentProps<"button"> & {
504
- asChild?: boolean
505
- isActive?: boolean
506
- tooltip?: string | React.ComponentProps<typeof TooltipContent>
506
+ asChild?: boolean;
507
+ isActive?: boolean;
508
+ tooltip?: string | React.ComponentProps<typeof TooltipContent>;
507
509
  } & VariantProps<typeof sidebarMenuButtonVariants>) {
508
- const Comp = asChild ? Slot : "button"
509
- const { isMobile, state } = useSidebar()
510
+ const Comp = asChild ? Slot : "button";
511
+ const { isMobile, state } = useSidebar();
510
512
 
511
513
  const button = (
512
514
  <Comp
@@ -517,16 +519,16 @@ function SidebarMenuButton({
517
519
  className={cn(sidebarMenuButtonVariants({ variant, size }), className)}
518
520
  {...props}
519
521
  />
520
- )
522
+ );
521
523
 
522
524
  if (!tooltip) {
523
- return button
525
+ return button;
524
526
  }
525
527
 
526
528
  if (typeof tooltip === "string") {
527
529
  tooltip = {
528
530
  children: tooltip,
529
- }
531
+ };
530
532
  }
531
533
 
532
534
  return (
@@ -539,7 +541,7 @@ function SidebarMenuButton({
539
541
  {...tooltip}
540
542
  />
541
543
  </Tooltip>
542
- )
544
+ );
543
545
  }
544
546
 
545
547
  function SidebarMenuAction({
@@ -548,10 +550,10 @@ function SidebarMenuAction({
548
550
  showOnHover = false,
549
551
  ...props
550
552
  }: React.ComponentProps<"button"> & {
551
- asChild?: boolean
552
- showOnHover?: boolean
553
+ asChild?: boolean;
554
+ showOnHover?: boolean;
553
555
  }) {
554
- const Comp = asChild ? Slot : "button"
556
+ const Comp = asChild ? Slot : "button";
555
557
 
556
558
  return (
557
559
  <Comp
@@ -571,7 +573,7 @@ function SidebarMenuAction({
571
573
  )}
572
574
  {...props}
573
575
  />
574
- )
576
+ );
575
577
  }
576
578
 
577
579
  function SidebarMenuBadge({
@@ -593,7 +595,7 @@ function SidebarMenuBadge({
593
595
  )}
594
596
  {...props}
595
597
  />
596
- )
598
+ );
597
599
  }
598
600
 
599
601
  function SidebarMenuSkeleton({
@@ -601,12 +603,12 @@ function SidebarMenuSkeleton({
601
603
  showIcon = false,
602
604
  ...props
603
605
  }: React.ComponentProps<"div"> & {
604
- showIcon?: boolean
606
+ showIcon?: boolean;
605
607
  }) {
606
608
  // Random width between 50 to 90%.
607
609
  const width = React.useMemo(() => {
608
- return `${Math.floor(Math.random() * 40) + 50}%`
609
- }, [])
610
+ return `${Math.floor(Math.random() * 40) + 50}%`;
611
+ }, []);
610
612
 
611
613
  return (
612
614
  <div
@@ -631,7 +633,7 @@ function SidebarMenuSkeleton({
631
633
  }
632
634
  />
633
635
  </div>
634
- )
636
+ );
635
637
  }
636
638
 
637
639
  function SidebarMenuSub({ className, ...props }: React.ComponentProps<"ul">) {
@@ -646,7 +648,7 @@ function SidebarMenuSub({ className, ...props }: React.ComponentProps<"ul">) {
646
648
  )}
647
649
  {...props}
648
650
  />
649
- )
651
+ );
650
652
  }
651
653
 
652
654
  function SidebarMenuSubItem({
@@ -660,7 +662,7 @@ function SidebarMenuSubItem({
660
662
  className={cn("group/menu-sub-item relative", className)}
661
663
  {...props}
662
664
  />
663
- )
665
+ );
664
666
  }
665
667
 
666
668
  function SidebarMenuSubButton({
@@ -670,11 +672,11 @@ function SidebarMenuSubButton({
670
672
  className,
671
673
  ...props
672
674
  }: React.ComponentProps<"a"> & {
673
- asChild?: boolean
674
- size?: "sm" | "md"
675
- isActive?: boolean
675
+ asChild?: boolean;
676
+ size?: "sm" | "md";
677
+ isActive?: boolean;
676
678
  }) {
677
- const Comp = asChild ? Slot : "a"
679
+ const Comp = asChild ? Slot : "a";
678
680
 
679
681
  return (
680
682
  <Comp
@@ -692,7 +694,7 @@ function SidebarMenuSubButton({
692
694
  )}
693
695
  {...props}
694
696
  />
695
- )
697
+ );
696
698
  }
697
699
 
698
700
  export {
@@ -720,4 +722,4 @@ export {
720
722
  SidebarSeparator,
721
723
  SidebarTrigger,
722
724
  useSidebar,
723
- }
725
+ };