@arolariu/components 0.0.30 → 0.0.32

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 (476) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/components/ui/accordion.cjs +1 -1
  3. package/dist/cjs/components/ui/accordion.cjs.map +1 -1
  4. package/dist/cjs/components/ui/alert-dialog.cjs +1 -1
  5. package/dist/cjs/components/ui/alert-dialog.cjs.map +1 -1
  6. package/dist/cjs/components/ui/alert.cjs +1 -1
  7. package/dist/cjs/components/ui/alert.cjs.map +1 -1
  8. package/dist/cjs/components/ui/aspect-ratio.cjs +1 -1
  9. package/dist/cjs/components/ui/aspect-ratio.cjs.map +1 -1
  10. package/dist/cjs/components/ui/avatar.cjs +1 -1
  11. package/dist/cjs/components/ui/avatar.cjs.map +1 -1
  12. package/dist/cjs/components/ui/badge.cjs +1 -1
  13. package/dist/cjs/components/ui/badge.cjs.map +1 -1
  14. package/dist/cjs/components/ui/breadcrumb.cjs +1 -1
  15. package/dist/cjs/components/ui/breadcrumb.cjs.map +1 -1
  16. package/dist/cjs/components/ui/button.cjs +1 -1
  17. package/dist/cjs/components/ui/button.cjs.map +1 -1
  18. package/dist/cjs/components/ui/calendar.cjs +1 -1
  19. package/dist/cjs/components/ui/calendar.cjs.map +1 -1
  20. package/dist/cjs/components/ui/card.cjs +1 -1
  21. package/dist/cjs/components/ui/card.cjs.map +1 -1
  22. package/dist/cjs/components/ui/carousel.cjs +1 -1
  23. package/dist/cjs/components/ui/carousel.cjs.map +1 -1
  24. package/dist/cjs/components/ui/chart.cjs +3 -3
  25. package/dist/cjs/components/ui/chart.cjs.map +1 -1
  26. package/dist/cjs/components/ui/checkbox.cjs +1 -1
  27. package/dist/cjs/components/ui/checkbox.cjs.map +1 -1
  28. package/dist/cjs/components/ui/collapsible.cjs +1 -1
  29. package/dist/cjs/components/ui/collapsible.cjs.map +1 -1
  30. package/dist/cjs/components/ui/command.cjs +1 -1
  31. package/dist/cjs/components/ui/command.cjs.map +1 -1
  32. package/dist/cjs/components/ui/context-menu.cjs +1 -1
  33. package/dist/cjs/components/ui/context-menu.cjs.map +1 -1
  34. package/dist/cjs/components/ui/dialog.cjs +1 -1
  35. package/dist/cjs/components/ui/dialog.cjs.map +1 -1
  36. package/dist/cjs/components/ui/drawer.cjs +1 -1
  37. package/dist/cjs/components/ui/drawer.cjs.map +1 -1
  38. package/dist/cjs/components/ui/dropdown-menu.cjs +1 -1
  39. package/dist/cjs/components/ui/dropdown-menu.cjs.map +1 -1
  40. package/dist/cjs/components/ui/form.cjs +1 -1
  41. package/dist/cjs/components/ui/form.cjs.map +1 -1
  42. package/dist/cjs/components/ui/hover-card.cjs +1 -1
  43. package/dist/cjs/components/ui/hover-card.cjs.map +1 -1
  44. package/dist/cjs/components/ui/input-otp.cjs +1 -1
  45. package/dist/cjs/components/ui/input-otp.cjs.map +1 -1
  46. package/dist/cjs/components/ui/input.cjs +1 -1
  47. package/dist/cjs/components/ui/input.cjs.map +1 -1
  48. package/dist/cjs/components/ui/label.cjs +1 -1
  49. package/dist/cjs/components/ui/label.cjs.map +1 -1
  50. package/dist/cjs/components/ui/menubar.cjs +1 -1
  51. package/dist/cjs/components/ui/menubar.cjs.map +1 -1
  52. package/dist/cjs/components/ui/navigation-menu.cjs +1 -1
  53. package/dist/cjs/components/ui/navigation-menu.cjs.map +1 -1
  54. package/dist/cjs/components/ui/pagination.cjs +1 -1
  55. package/dist/cjs/components/ui/pagination.cjs.map +1 -1
  56. package/dist/cjs/components/ui/popover.cjs +1 -1
  57. package/dist/cjs/components/ui/popover.cjs.map +1 -1
  58. package/dist/cjs/components/ui/progress.cjs +1 -1
  59. package/dist/cjs/components/ui/progress.cjs.map +1 -1
  60. package/dist/cjs/components/ui/radio-group.cjs +1 -1
  61. package/dist/cjs/components/ui/radio-group.cjs.map +1 -1
  62. package/dist/cjs/components/ui/resizable.cjs +1 -1
  63. package/dist/cjs/components/ui/resizable.cjs.map +1 -1
  64. package/dist/cjs/components/ui/scroll-area.cjs +1 -1
  65. package/dist/cjs/components/ui/scroll-area.cjs.map +1 -1
  66. package/dist/cjs/components/ui/select.cjs +1 -1
  67. package/dist/cjs/components/ui/select.cjs.map +1 -1
  68. package/dist/cjs/components/ui/separator.cjs +1 -1
  69. package/dist/cjs/components/ui/separator.cjs.map +1 -1
  70. package/dist/cjs/components/ui/sheet.cjs +1 -1
  71. package/dist/cjs/components/ui/sheet.cjs.map +1 -1
  72. package/dist/cjs/components/ui/sidebar.cjs +1 -1
  73. package/dist/cjs/components/ui/sidebar.cjs.map +1 -1
  74. package/dist/cjs/components/ui/skeleton.cjs +1 -1
  75. package/dist/cjs/components/ui/skeleton.cjs.map +1 -1
  76. package/dist/cjs/components/ui/slider.cjs +1 -1
  77. package/dist/cjs/components/ui/slider.cjs.map +1 -1
  78. package/dist/cjs/components/ui/sonner.cjs +1 -1
  79. package/dist/cjs/components/ui/sonner.cjs.map +1 -1
  80. package/dist/cjs/components/ui/switch.cjs +1 -1
  81. package/dist/cjs/components/ui/switch.cjs.map +1 -1
  82. package/dist/cjs/components/ui/table.cjs +1 -1
  83. package/dist/cjs/components/ui/table.cjs.map +1 -1
  84. package/dist/cjs/components/ui/tabs.cjs +1 -1
  85. package/dist/cjs/components/ui/tabs.cjs.map +1 -1
  86. package/dist/cjs/components/ui/textarea.cjs +1 -1
  87. package/dist/cjs/components/ui/textarea.cjs.map +1 -1
  88. package/dist/cjs/components/ui/toggle-group.cjs +1 -1
  89. package/dist/cjs/components/ui/toggle-group.cjs.map +1 -1
  90. package/dist/cjs/components/ui/toggle.cjs +1 -1
  91. package/dist/cjs/components/ui/toggle.cjs.map +1 -1
  92. package/dist/cjs/components/ui/tooltip.cjs +1 -1
  93. package/dist/cjs/components/ui/tooltip.cjs.map +1 -1
  94. package/dist/cjs/index.cjs +1 -1
  95. package/dist/cjs/index.css +1 -0
  96. package/dist/cjs/node_modules/@radix-ui/react-accordion/dist/index.cjs +1 -1
  97. package/dist/cjs/node_modules/@radix-ui/react-accordion/dist/index.cjs.map +1 -1
  98. package/dist/cjs/node_modules/@radix-ui/react-alert-dialog/dist/index.cjs +3 -3
  99. package/dist/cjs/node_modules/@radix-ui/react-alert-dialog/dist/index.cjs.map +1 -1
  100. package/dist/cjs/node_modules/@radix-ui/react-arrow/dist/index.cjs +1 -1
  101. package/dist/cjs/node_modules/@radix-ui/react-arrow/dist/index.cjs.map +1 -1
  102. package/dist/cjs/node_modules/@radix-ui/react-aspect-ratio/dist/index.cjs +1 -1
  103. package/dist/cjs/node_modules/@radix-ui/react-aspect-ratio/dist/index.cjs.map +1 -1
  104. package/dist/cjs/node_modules/@radix-ui/react-avatar/dist/index.cjs +1 -1
  105. package/dist/cjs/node_modules/@radix-ui/react-avatar/dist/index.cjs.map +1 -1
  106. package/dist/cjs/node_modules/@radix-ui/react-checkbox/dist/index.cjs +1 -1
  107. package/dist/cjs/node_modules/@radix-ui/react-checkbox/dist/index.cjs.map +1 -1
  108. package/dist/cjs/node_modules/@radix-ui/react-collapsible/dist/index.cjs +1 -1
  109. package/dist/cjs/node_modules/@radix-ui/react-collapsible/dist/index.cjs.map +1 -1
  110. package/dist/cjs/node_modules/@radix-ui/react-collection/dist/index.cjs +1 -1
  111. package/dist/cjs/node_modules/@radix-ui/react-collection/dist/index.cjs.map +1 -1
  112. package/dist/cjs/node_modules/@radix-ui/react-context/dist/index.cjs +1 -1
  113. package/dist/cjs/node_modules/@radix-ui/react-context/dist/index.cjs.map +1 -1
  114. package/dist/cjs/node_modules/@radix-ui/react-context-menu/dist/index.cjs +1 -1
  115. package/dist/cjs/node_modules/@radix-ui/react-context-menu/dist/index.cjs.map +1 -1
  116. package/dist/cjs/node_modules/@radix-ui/react-dialog/dist/index.cjs +2 -2
  117. package/dist/cjs/node_modules/@radix-ui/react-dialog/dist/index.cjs.map +1 -1
  118. package/dist/cjs/node_modules/@radix-ui/react-direction/dist/index.cjs +1 -1
  119. package/dist/cjs/node_modules/@radix-ui/react-direction/dist/index.cjs.map +1 -1
  120. package/dist/cjs/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +1 -1
  121. package/dist/cjs/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.map +1 -1
  122. package/dist/cjs/node_modules/@radix-ui/react-dropdown-menu/dist/index.cjs +1 -1
  123. package/dist/cjs/node_modules/@radix-ui/react-dropdown-menu/dist/index.cjs.map +1 -1
  124. package/dist/cjs/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +1 -1
  125. package/dist/cjs/node_modules/@radix-ui/react-focus-scope/dist/index.cjs.map +1 -1
  126. package/dist/cjs/node_modules/@radix-ui/react-hover-card/dist/index.cjs +1 -1
  127. package/dist/cjs/node_modules/@radix-ui/react-hover-card/dist/index.cjs.map +1 -1
  128. package/dist/cjs/node_modules/@radix-ui/react-label/dist/index.cjs +1 -1
  129. package/dist/cjs/node_modules/@radix-ui/react-label/dist/index.cjs.map +1 -1
  130. package/dist/cjs/node_modules/@radix-ui/react-menu/dist/index.cjs +1 -1
  131. package/dist/cjs/node_modules/@radix-ui/react-menu/dist/index.cjs.map +1 -1
  132. package/dist/cjs/node_modules/@radix-ui/react-menubar/dist/index.cjs +1 -1
  133. package/dist/cjs/node_modules/@radix-ui/react-menubar/dist/index.cjs.map +1 -1
  134. package/dist/cjs/node_modules/@radix-ui/react-navigation-menu/dist/index.cjs +1 -1
  135. package/dist/cjs/node_modules/@radix-ui/react-navigation-menu/dist/index.cjs.map +1 -1
  136. package/dist/cjs/node_modules/@radix-ui/react-popover/dist/index.cjs +1 -1
  137. package/dist/cjs/node_modules/@radix-ui/react-popover/dist/index.cjs.map +1 -1
  138. package/dist/cjs/node_modules/@radix-ui/react-popper/dist/index.cjs +1 -1
  139. package/dist/cjs/node_modules/@radix-ui/react-popper/dist/index.cjs.map +1 -1
  140. package/dist/cjs/node_modules/@radix-ui/react-portal/dist/index.cjs +1 -1
  141. package/dist/cjs/node_modules/@radix-ui/react-portal/dist/index.cjs.map +1 -1
  142. package/dist/cjs/node_modules/@radix-ui/react-primitive/dist/index.cjs +1 -1
  143. package/dist/cjs/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -1
  144. package/dist/cjs/node_modules/@radix-ui/react-progress/dist/index.cjs +2 -2
  145. package/dist/cjs/node_modules/@radix-ui/react-progress/dist/index.cjs.map +1 -1
  146. package/dist/cjs/node_modules/@radix-ui/react-radio-group/dist/index.cjs +1 -1
  147. package/dist/cjs/node_modules/@radix-ui/react-radio-group/dist/index.cjs.map +1 -1
  148. package/dist/cjs/node_modules/@radix-ui/react-roving-focus/dist/index.cjs +1 -1
  149. package/dist/cjs/node_modules/@radix-ui/react-roving-focus/dist/index.cjs.map +1 -1
  150. package/dist/cjs/node_modules/@radix-ui/react-scroll-area/dist/index.cjs +1 -1
  151. package/dist/cjs/node_modules/@radix-ui/react-scroll-area/dist/index.cjs.map +1 -1
  152. package/dist/cjs/node_modules/@radix-ui/react-select/dist/index.cjs +1 -1
  153. package/dist/cjs/node_modules/@radix-ui/react-select/dist/index.cjs.map +1 -1
  154. package/dist/cjs/node_modules/@radix-ui/react-separator/dist/index.cjs +1 -1
  155. package/dist/cjs/node_modules/@radix-ui/react-separator/dist/index.cjs.map +1 -1
  156. package/dist/cjs/node_modules/@radix-ui/react-slider/dist/index.cjs +1 -1
  157. package/dist/cjs/node_modules/@radix-ui/react-slider/dist/index.cjs.map +1 -1
  158. package/dist/cjs/node_modules/@radix-ui/react-slot/dist/index.cjs +1 -1
  159. package/dist/cjs/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -1
  160. package/dist/cjs/node_modules/@radix-ui/react-switch/dist/index.cjs +1 -1
  161. package/dist/cjs/node_modules/@radix-ui/react-switch/dist/index.cjs.map +1 -1
  162. package/dist/cjs/node_modules/@radix-ui/react-tabs/dist/index.cjs +1 -1
  163. package/dist/cjs/node_modules/@radix-ui/react-tabs/dist/index.cjs.map +1 -1
  164. package/dist/cjs/node_modules/@radix-ui/react-toggle/dist/index.cjs +1 -1
  165. package/dist/cjs/node_modules/@radix-ui/react-toggle/dist/index.cjs.map +1 -1
  166. package/dist/cjs/node_modules/@radix-ui/react-toggle-group/dist/index.cjs +1 -1
  167. package/dist/cjs/node_modules/@radix-ui/react-toggle-group/dist/index.cjs.map +1 -1
  168. package/dist/cjs/node_modules/@radix-ui/react-tooltip/dist/index.cjs +1 -1
  169. package/dist/cjs/node_modules/@radix-ui/react-tooltip/dist/index.cjs.map +1 -1
  170. package/dist/cjs/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs +1 -1
  171. package/dist/cjs/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs.map +1 -1
  172. package/dist/cjs/node_modules/react-day-picker/dist/index.esm.cjs +1 -1
  173. package/dist/cjs/node_modules/react-day-picker/dist/index.esm.cjs.map +1 -1
  174. package/dist/esm/components/ui/accordion.js +20 -20
  175. package/dist/esm/components/ui/accordion.js.map +1 -1
  176. package/dist/esm/components/ui/alert-dialog.js +53 -50
  177. package/dist/esm/components/ui/alert-dialog.js.map +1 -1
  178. package/dist/esm/components/ui/alert.js +10 -10
  179. package/dist/esm/components/ui/alert.js.map +1 -1
  180. package/dist/esm/components/ui/aspect-ratio.js +4 -4
  181. package/dist/esm/components/ui/aspect-ratio.js.map +1 -1
  182. package/dist/esm/components/ui/avatar.js +7 -7
  183. package/dist/esm/components/ui/avatar.js.map +1 -1
  184. package/dist/esm/components/ui/badge.js +9 -10
  185. package/dist/esm/components/ui/badge.js.map +1 -1
  186. package/dist/esm/components/ui/breadcrumb.js +36 -31
  187. package/dist/esm/components/ui/breadcrumb.js.map +1 -1
  188. package/dist/esm/components/ui/button.js +9 -10
  189. package/dist/esm/components/ui/button.js.map +1 -1
  190. package/dist/esm/components/ui/calendar.js +4 -4
  191. package/dist/esm/components/ui/calendar.js.map +1 -1
  192. package/dist/esm/components/ui/card.js +15 -12
  193. package/dist/esm/components/ui/card.js.map +1 -1
  194. package/dist/esm/components/ui/carousel.js +83 -83
  195. package/dist/esm/components/ui/carousel.js.map +1 -1
  196. package/dist/esm/components/ui/chart.js +80 -80
  197. package/dist/esm/components/ui/chart.js.map +1 -1
  198. package/dist/esm/components/ui/checkbox.js +4 -4
  199. package/dist/esm/components/ui/checkbox.js.map +1 -1
  200. package/dist/esm/components/ui/collapsible.js +10 -10
  201. package/dist/esm/components/ui/collapsible.js.map +1 -1
  202. package/dist/esm/components/ui/command.js +53 -53
  203. package/dist/esm/components/ui/command.js.map +1 -1
  204. package/dist/esm/components/ui/context-menu.js +80 -77
  205. package/dist/esm/components/ui/context-menu.js.map +1 -1
  206. package/dist/esm/components/ui/dialog.js +48 -45
  207. package/dist/esm/components/ui/dialog.js.map +1 -1
  208. package/dist/esm/components/ui/drawer.js +55 -49
  209. package/dist/esm/components/ui/drawer.js.map +1 -1
  210. package/dist/esm/components/ui/dropdown-menu.js +67 -64
  211. package/dist/esm/components/ui/dropdown-menu.js.map +1 -1
  212. package/dist/esm/components/ui/form.js +44 -38
  213. package/dist/esm/components/ui/form.js.map +1 -1
  214. package/dist/esm/components/ui/hover-card.js +6 -6
  215. package/dist/esm/components/ui/hover-card.js.map +1 -1
  216. package/dist/esm/components/ui/input-otp.js +19 -19
  217. package/dist/esm/components/ui/input-otp.js.map +1 -1
  218. package/dist/esm/components/ui/input.js +2 -2
  219. package/dist/esm/components/ui/input.js.map +1 -1
  220. package/dist/esm/components/ui/label.js +4 -4
  221. package/dist/esm/components/ui/label.js.map +1 -1
  222. package/dist/esm/components/ui/menubar.js +94 -91
  223. package/dist/esm/components/ui/menubar.js.map +1 -1
  224. package/dist/esm/components/ui/navigation-menu.js +44 -44
  225. package/dist/esm/components/ui/navigation-menu.js.map +1 -1
  226. package/dist/esm/components/ui/pagination.js +39 -39
  227. package/dist/esm/components/ui/pagination.js.map +1 -1
  228. package/dist/esm/components/ui/popover.js +9 -9
  229. package/dist/esm/components/ui/popover.js.map +1 -1
  230. package/dist/esm/components/ui/progress.js +9 -9
  231. package/dist/esm/components/ui/progress.js.map +1 -1
  232. package/dist/esm/components/ui/radio-group.js +8 -8
  233. package/dist/esm/components/ui/radio-group.js.map +1 -1
  234. package/dist/esm/components/ui/resizable.js +8 -8
  235. package/dist/esm/components/ui/resizable.js.map +1 -1
  236. package/dist/esm/components/ui/scroll-area.js +22 -22
  237. package/dist/esm/components/ui/scroll-area.js.map +1 -1
  238. package/dist/esm/components/ui/select.js +81 -78
  239. package/dist/esm/components/ui/select.js.map +1 -1
  240. package/dist/esm/components/ui/separator.js +4 -4
  241. package/dist/esm/components/ui/separator.js.map +1 -1
  242. package/dist/esm/components/ui/sheet.js +50 -44
  243. package/dist/esm/components/ui/sheet.js.map +1 -1
  244. package/dist/esm/components/ui/sidebar.js +178 -179
  245. package/dist/esm/components/ui/sidebar.js.map +1 -1
  246. package/dist/esm/components/ui/skeleton.js +8 -5
  247. package/dist/esm/components/ui/skeleton.js.map +1 -1
  248. package/dist/esm/components/ui/slider.js +21 -21
  249. package/dist/esm/components/ui/slider.js.map +1 -1
  250. package/dist/esm/components/ui/sonner.js +2 -2
  251. package/dist/esm/components/ui/sonner.js.map +1 -1
  252. package/dist/esm/components/ui/switch.js +3 -3
  253. package/dist/esm/components/ui/switch.js.map +1 -1
  254. package/dist/esm/components/ui/table.js +20 -17
  255. package/dist/esm/components/ui/table.js.map +1 -1
  256. package/dist/esm/components/ui/tabs.js +5 -5
  257. package/dist/esm/components/ui/tabs.js.map +1 -1
  258. package/dist/esm/components/ui/textarea.js +2 -2
  259. package/dist/esm/components/ui/textarea.js.map +1 -1
  260. package/dist/esm/components/ui/toggle-group.js +7 -7
  261. package/dist/esm/components/ui/toggle-group.js.map +1 -1
  262. package/dist/esm/components/ui/toggle.js +5 -5
  263. package/dist/esm/components/ui/toggle.js.map +1 -1
  264. package/dist/esm/components/ui/tooltip.js +19 -19
  265. package/dist/esm/components/ui/tooltip.js.map +1 -1
  266. package/dist/esm/index.css +1 -0
  267. package/dist/esm/index.js +294 -293
  268. package/dist/esm/index.js.map +1 -1
  269. package/dist/esm/node_modules/@radix-ui/react-accordion/dist/index.js +74 -74
  270. package/dist/esm/node_modules/@radix-ui/react-accordion/dist/index.js.map +1 -1
  271. package/dist/esm/node_modules/@radix-ui/react-alert-dialog/dist/index.js +69 -69
  272. package/dist/esm/node_modules/@radix-ui/react-alert-dialog/dist/index.js.map +1 -1
  273. package/dist/esm/node_modules/@radix-ui/react-arrow/dist/index.js +6 -6
  274. package/dist/esm/node_modules/@radix-ui/react-arrow/dist/index.js.map +1 -1
  275. package/dist/esm/node_modules/@radix-ui/react-aspect-ratio/dist/index.js +12 -12
  276. package/dist/esm/node_modules/@radix-ui/react-aspect-ratio/dist/index.js.map +1 -1
  277. package/dist/esm/node_modules/@radix-ui/react-avatar/dist/index.js +29 -29
  278. package/dist/esm/node_modules/@radix-ui/react-avatar/dist/index.js.map +1 -1
  279. package/dist/esm/node_modules/@radix-ui/react-checkbox/dist/index.js +62 -62
  280. package/dist/esm/node_modules/@radix-ui/react-checkbox/dist/index.js.map +1 -1
  281. package/dist/esm/node_modules/@radix-ui/react-collapsible/dist/index.js +46 -46
  282. package/dist/esm/node_modules/@radix-ui/react-collapsible/dist/index.js.map +1 -1
  283. package/dist/esm/node_modules/@radix-ui/react-collection/dist/index.js +26 -26
  284. package/dist/esm/node_modules/@radix-ui/react-collection/dist/index.js.map +1 -1
  285. package/dist/esm/node_modules/@radix-ui/react-context/dist/index.js +21 -21
  286. package/dist/esm/node_modules/@radix-ui/react-context/dist/index.js.map +1 -1
  287. package/dist/esm/node_modules/@radix-ui/react-context-menu/dist/index.js +115 -115
  288. package/dist/esm/node_modules/@radix-ui/react-context-menu/dist/index.js.map +1 -1
  289. package/dist/esm/node_modules/@radix-ui/react-dialog/dist/index.js +100 -100
  290. package/dist/esm/node_modules/@radix-ui/react-dialog/dist/index.js.map +1 -1
  291. package/dist/esm/node_modules/@radix-ui/react-direction/dist/index.js +1 -1
  292. package/dist/esm/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +38 -38
  293. package/dist/esm/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +1 -1
  294. package/dist/esm/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +105 -105
  295. package/dist/esm/node_modules/@radix-ui/react-dropdown-menu/dist/index.js.map +1 -1
  296. package/dist/esm/node_modules/@radix-ui/react-focus-scope/dist/index.js +9 -9
  297. package/dist/esm/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +1 -1
  298. package/dist/esm/node_modules/@radix-ui/react-hover-card/dist/index.js +41 -41
  299. package/dist/esm/node_modules/@radix-ui/react-hover-card/dist/index.js.map +1 -1
  300. package/dist/esm/node_modules/@radix-ui/react-label/dist/index.js +3 -3
  301. package/dist/esm/node_modules/@radix-ui/react-label/dist/index.js.map +1 -1
  302. package/dist/esm/node_modules/@radix-ui/react-menu/dist/index.js +198 -198
  303. package/dist/esm/node_modules/@radix-ui/react-menu/dist/index.js.map +1 -1
  304. package/dist/esm/node_modules/@radix-ui/react-menubar/dist/index.js +96 -96
  305. package/dist/esm/node_modules/@radix-ui/react-menubar/dist/index.js.map +1 -1
  306. package/dist/esm/node_modules/@radix-ui/react-navigation-menu/dist/index.js +236 -236
  307. package/dist/esm/node_modules/@radix-ui/react-navigation-menu/dist/index.js.map +1 -1
  308. package/dist/esm/node_modules/@radix-ui/react-popover/dist/index.js +90 -90
  309. package/dist/esm/node_modules/@radix-ui/react-popover/dist/index.js.map +1 -1
  310. package/dist/esm/node_modules/@radix-ui/react-popper/dist/index.js +49 -49
  311. package/dist/esm/node_modules/@radix-ui/react-popper/dist/index.js.map +1 -1
  312. package/dist/esm/node_modules/@radix-ui/react-portal/dist/index.js +8 -8
  313. package/dist/esm/node_modules/@radix-ui/react-portal/dist/index.js.map +1 -1
  314. package/dist/esm/node_modules/@radix-ui/react-primitive/dist/index.js +10 -10
  315. package/dist/esm/node_modules/@radix-ui/react-primitive/dist/index.js.map +1 -1
  316. package/dist/esm/node_modules/@radix-ui/react-progress/dist/index.js +18 -18
  317. package/dist/esm/node_modules/@radix-ui/react-progress/dist/index.js.map +1 -1
  318. package/dist/esm/node_modules/@radix-ui/react-radio-group/dist/index.js +86 -86
  319. package/dist/esm/node_modules/@radix-ui/react-radio-group/dist/index.js.map +1 -1
  320. package/dist/esm/node_modules/@radix-ui/react-roving-focus/dist/index.js +29 -29
  321. package/dist/esm/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +1 -1
  322. package/dist/esm/node_modules/@radix-ui/react-scroll-area/dist/index.js +170 -170
  323. package/dist/esm/node_modules/@radix-ui/react-scroll-area/dist/index.js.map +1 -1
  324. package/dist/esm/node_modules/@radix-ui/react-select/dist/index.js +350 -350
  325. package/dist/esm/node_modules/@radix-ui/react-select/dist/index.js.map +1 -1
  326. package/dist/esm/node_modules/@radix-ui/react-separator/dist/index.js +6 -6
  327. package/dist/esm/node_modules/@radix-ui/react-separator/dist/index.js.map +1 -1
  328. package/dist/esm/node_modules/@radix-ui/react-slider/dist/index.js +114 -114
  329. package/dist/esm/node_modules/@radix-ui/react-slider/dist/index.js.map +1 -1
  330. package/dist/esm/node_modules/@radix-ui/react-slot/dist/index.js +14 -14
  331. package/dist/esm/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -1
  332. package/dist/esm/node_modules/@radix-ui/react-switch/dist/index.js +48 -48
  333. package/dist/esm/node_modules/@radix-ui/react-switch/dist/index.js.map +1 -1
  334. package/dist/esm/node_modules/@radix-ui/react-tabs/dist/index.js +48 -48
  335. package/dist/esm/node_modules/@radix-ui/react-tabs/dist/index.js.map +1 -1
  336. package/dist/esm/node_modules/@radix-ui/react-toggle/dist/index.js +6 -6
  337. package/dist/esm/node_modules/@radix-ui/react-toggle/dist/index.js.map +1 -1
  338. package/dist/esm/node_modules/@radix-ui/react-toggle-group/dist/index.js +67 -71
  339. package/dist/esm/node_modules/@radix-ui/react-toggle-group/dist/index.js.map +1 -1
  340. package/dist/esm/node_modules/@radix-ui/react-tooltip/dist/index.js +97 -97
  341. package/dist/esm/node_modules/@radix-ui/react-tooltip/dist/index.js.map +1 -1
  342. package/dist/esm/node_modules/@radix-ui/react-visually-hidden/dist/index.js +4 -4
  343. package/dist/esm/node_modules/@radix-ui/react-visually-hidden/dist/index.js.map +1 -1
  344. package/dist/esm/node_modules/react-day-picker/dist/index.esm.js +483 -483
  345. package/dist/esm/node_modules/react-day-picker/dist/index.esm.js.map +1 -1
  346. package/dist/index.css +1 -0
  347. package/dist/index.js +298 -0
  348. package/dist/types/components/ui/accordion.d.ts.map +1 -1
  349. package/dist/types/components/ui/alert-dialog.d.ts.map +1 -1
  350. package/dist/types/components/ui/alert.d.ts.map +1 -1
  351. package/dist/types/components/ui/avatar.d.ts.map +1 -1
  352. package/dist/types/components/ui/badge.d.ts.map +1 -1
  353. package/dist/types/components/ui/breadcrumb.d.ts.map +1 -1
  354. package/dist/types/components/ui/button.d.ts.map +1 -1
  355. package/dist/types/components/ui/calendar.d.ts.map +1 -1
  356. package/dist/types/components/ui/card.d.ts +1 -1
  357. package/dist/types/components/ui/card.d.ts.map +1 -1
  358. package/dist/types/components/ui/carousel.d.ts +1 -1
  359. package/dist/types/components/ui/carousel.d.ts.map +1 -1
  360. package/dist/types/components/ui/chart.d.ts.map +1 -1
  361. package/dist/types/components/ui/checkbox.d.ts.map +1 -1
  362. package/dist/types/components/ui/command.d.ts +1 -1
  363. package/dist/types/components/ui/command.d.ts.map +1 -1
  364. package/dist/types/components/ui/context-menu.d.ts.map +1 -1
  365. package/dist/types/components/ui/dialog.d.ts.map +1 -1
  366. package/dist/types/components/ui/drawer.d.ts.map +1 -1
  367. package/dist/types/components/ui/dropdown-menu.d.ts.map +1 -1
  368. package/dist/types/components/ui/form.d.ts.map +1 -1
  369. package/dist/types/components/ui/hover-card.d.ts.map +1 -1
  370. package/dist/types/components/ui/input-otp.d.ts.map +1 -1
  371. package/dist/types/components/ui/input.d.ts.map +1 -1
  372. package/dist/types/components/ui/label.d.ts.map +1 -1
  373. package/dist/types/components/ui/menubar.d.ts.map +1 -1
  374. package/dist/types/components/ui/navigation-menu.d.ts.map +1 -1
  375. package/dist/types/components/ui/pagination.d.ts +1 -1
  376. package/dist/types/components/ui/pagination.d.ts.map +1 -1
  377. package/dist/types/components/ui/popover.d.ts.map +1 -1
  378. package/dist/types/components/ui/progress.d.ts.map +1 -1
  379. package/dist/types/components/ui/radio-group.d.ts.map +1 -1
  380. package/dist/types/components/ui/resizable.d.ts.map +1 -1
  381. package/dist/types/components/ui/scroll-area.d.ts.map +1 -1
  382. package/dist/types/components/ui/select.d.ts.map +1 -1
  383. package/dist/types/components/ui/separator.d.ts.map +1 -1
  384. package/dist/types/components/ui/sheet.d.ts.map +1 -1
  385. package/dist/types/components/ui/sidebar.d.ts +5 -5
  386. package/dist/types/components/ui/sidebar.d.ts.map +1 -1
  387. package/dist/types/components/ui/skeleton.d.ts.map +1 -1
  388. package/dist/types/components/ui/slider.d.ts.map +1 -1
  389. package/dist/types/components/ui/switch.d.ts.map +1 -1
  390. package/dist/types/components/ui/table.d.ts.map +1 -1
  391. package/dist/types/components/ui/tabs.d.ts.map +1 -1
  392. package/dist/types/components/ui/textarea.d.ts.map +1 -1
  393. package/dist/types/components/ui/toggle-group.d.ts +1 -1
  394. package/dist/types/components/ui/toggle-group.d.ts.map +1 -1
  395. package/dist/types/components/ui/toggle.d.ts.map +1 -1
  396. package/dist/types/components/ui/tooltip.d.ts.map +1 -1
  397. package/package.json +237 -442
  398. package/src/components/ui/accordion.tsx +10 -11
  399. package/src/components/ui/alert-dialog.tsx +160 -157
  400. package/src/components/ui/alert.tsx +11 -9
  401. package/src/components/ui/aspect-ratio.tsx +12 -12
  402. package/src/components/ui/avatar.tsx +52 -53
  403. package/src/components/ui/badge.tsx +47 -48
  404. package/src/components/ui/breadcrumb.tsx +116 -111
  405. package/src/components/ui/button.tsx +60 -60
  406. package/src/components/ui/calendar.tsx +75 -75
  407. package/src/components/ui/card.tsx +79 -70
  408. package/src/components/ui/carousel.tsx +240 -241
  409. package/src/components/ui/chart.tsx +352 -353
  410. package/src/components/ui/checkbox.tsx +31 -32
  411. package/src/components/ui/collapsible.tsx +34 -34
  412. package/src/components/ui/command.tsx +176 -177
  413. package/src/components/ui/context-menu.tsx +254 -252
  414. package/src/components/ui/dialog.tsx +20 -18
  415. package/src/components/ui/drawer.tsx +137 -132
  416. package/src/components/ui/dropdown-menu.tsx +259 -257
  417. package/src/components/ui/form.tsx +173 -167
  418. package/src/components/ui/hover-card.tsx +41 -42
  419. package/src/components/ui/input-otp.tsx +77 -78
  420. package/src/components/ui/input.tsx +22 -23
  421. package/src/components/ui/label.tsx +23 -24
  422. package/src/components/ui/menubar.tsx +278 -276
  423. package/src/components/ui/navigation-menu.tsx +170 -170
  424. package/src/components/ui/pagination.tsx +128 -129
  425. package/src/components/ui/popover.tsx +47 -48
  426. package/src/components/ui/progress.tsx +30 -31
  427. package/src/components/ui/radio-group.tsx +44 -45
  428. package/src/components/ui/resizable.tsx +55 -56
  429. package/src/components/ui/scroll-area.tsx +57 -58
  430. package/src/components/ui/select.tsx +183 -181
  431. package/src/components/ui/separator.tsx +27 -28
  432. package/src/components/ui/sheet.tsx +144 -139
  433. package/src/components/ui/sidebar.tsx +725 -723
  434. package/src/components/ui/skeleton.tsx +17 -14
  435. package/src/components/ui/slider.tsx +62 -63
  436. package/src/components/ui/sonner.tsx +30 -30
  437. package/src/components/ui/switch.tsx +30 -31
  438. package/src/components/ui/table.tsx +118 -116
  439. package/src/components/ui/tabs.tsx +65 -66
  440. package/src/components/ui/textarea.tsx +19 -19
  441. package/src/components/ui/toggle-group.tsx +72 -73
  442. package/src/components/ui/toggle.tsx +46 -47
  443. package/src/components/ui/tooltip.tsx +60 -61
  444. package/src/index.css +3 -107
  445. package/src/index.ts +2 -0
  446. package/tailwind.config.mjs +67 -0
  447. package/tsconfig.json +50 -0
  448. package/dist/cjs/_virtual/jsx-runtime.cjs +0 -2
  449. package/dist/cjs/_virtual/jsx-runtime.cjs.map +0 -1
  450. package/dist/cjs/_virtual/jsx-runtime2.cjs +0 -2
  451. package/dist/cjs/_virtual/jsx-runtime2.cjs.map +0 -1
  452. package/dist/cjs/_virtual/react-jsx-runtime.development.cjs +0 -2
  453. package/dist/cjs/_virtual/react-jsx-runtime.development.cjs.map +0 -1
  454. package/dist/cjs/_virtual/react-jsx-runtime.production.cjs +0 -2
  455. package/dist/cjs/_virtual/react-jsx-runtime.production.cjs.map +0 -1
  456. package/dist/cjs/node_modules/react/cjs/react-jsx-runtime.development.cjs +0 -24
  457. package/dist/cjs/node_modules/react/cjs/react-jsx-runtime.development.cjs.map +0 -1
  458. package/dist/cjs/node_modules/react/cjs/react-jsx-runtime.production.cjs +0 -10
  459. package/dist/cjs/node_modules/react/cjs/react-jsx-runtime.production.cjs.map +0 -1
  460. package/dist/cjs/node_modules/react/jsx-runtime.cjs +0 -2
  461. package/dist/cjs/node_modules/react/jsx-runtime.cjs.map +0 -1
  462. package/dist/esm/_virtual/jsx-runtime.js +0 -7
  463. package/dist/esm/_virtual/jsx-runtime.js.map +0 -1
  464. package/dist/esm/_virtual/jsx-runtime2.js +0 -6
  465. package/dist/esm/_virtual/jsx-runtime2.js.map +0 -1
  466. package/dist/esm/_virtual/react-jsx-runtime.development.js +0 -6
  467. package/dist/esm/_virtual/react-jsx-runtime.development.js.map +0 -1
  468. package/dist/esm/_virtual/react-jsx-runtime.production.js +0 -6
  469. package/dist/esm/_virtual/react-jsx-runtime.production.js.map +0 -1
  470. package/dist/esm/node_modules/react/cjs/react-jsx-runtime.development.js +0 -410
  471. package/dist/esm/node_modules/react/cjs/react-jsx-runtime.development.js.map +0 -1
  472. package/dist/esm/node_modules/react/cjs/react-jsx-runtime.production.js +0 -37
  473. package/dist/esm/node_modules/react/cjs/react-jsx-runtime.production.js.map +0 -1
  474. package/dist/esm/node_modules/react/jsx-runtime.js +0 -12
  475. package/dist/esm/node_modules/react/jsx-runtime.js.map +0 -1
  476. package/src/global.d.ts +0 -3
@@ -1,25 +1,25 @@
1
1
  "use client";
2
2
  import * as a from "react";
3
- import Ne from "react-dom";
4
- import { createContextScope as he } from "../../react-context/dist/index.js";
5
- import { composeEventHandlers as T } from "../../primitive/dist/index.js";
6
- import { Primitive as y, dispatchDiscreteCustomEvent as J } from "../../react-primitive/dist/index.js";
7
- import { useControllableState as ee } from "../../react-use-controllable-state/dist/index.js";
8
- import { useComposedRefs as O, composeRefs as Ee } from "../../react-compose-refs/dist/index.js";
9
- import { useDirection as Te } from "../../react-direction/dist/index.js";
10
- import { Presence as L } from "../../react-presence/dist/index.js";
11
- import { useId as te } from "../../react-id/dist/index.js";
12
- import { createCollection as ne } from "../../react-collection/dist/index.js";
13
- import { DismissableLayer as Ie } from "../../react-dismissable-layer/dist/index.js";
14
- import { usePrevious as ye } from "../../react-use-previous/dist/index.js";
15
- import { useLayoutEffect as V } from "../../react-use-layout-effect/dist/index.js";
3
+ import Te from "react-dom";
4
+ import { createContextScope as Ie } from "../../react-context/dist/index.js";
5
+ import { composeEventHandlers as I } from "../../primitive/dist/index.js";
6
+ import { Primitive as b, dispatchDiscreteCustomEvent as J } from "../../react-primitive/dist/index.js";
7
+ import { useControllableState as ne } from "../../react-use-controllable-state/dist/index.js";
8
+ import { useComposedRefs as k, composeRefs as ye } from "../../react-compose-refs/dist/index.js";
9
+ import { useDirection as be } from "../../react-direction/dist/index.js";
10
+ import { Presence as K } from "../../react-presence/dist/index.js";
11
+ import { useId as oe } from "../../react-id/dist/index.js";
12
+ import { createCollection as re } from "../../react-collection/dist/index.js";
13
+ import { DismissableLayer as _e } from "../../react-dismissable-layer/dist/index.js";
14
+ import { usePrevious as Pe } from "../../react-use-previous/dist/index.js";
15
+ import { useLayoutEffect as z } from "../../react-use-layout-effect/dist/index.js";
16
16
  import { useCallbackRef as D } from "../../react-use-callback-ref/dist/index.js";
17
- import { Root as be } from "../../react-visually-hidden/dist/index.js";
18
- import { j as c } from "../../../../_virtual/jsx-runtime.js";
19
- var A = "NavigationMenu", [B, oe, _e] = ne(A), [z, Pe, Se] = ne(A), [W, at] = he(
20
- A,
21
- [_e, Se]
22
- ), [De, I] = W(A), [je, Ae] = W(A), re = a.forwardRef(
17
+ import { Root as xe } from "../../react-visually-hidden/dist/index.js";
18
+ import { jsx as u, jsxs as Q, Fragment as Z } from "react/jsx-runtime";
19
+ var O = "NavigationMenu", [W, ie, Se] = re(O), [G, De, Ae] = re(O), [$, ct] = Ie(
20
+ O,
21
+ [Se, Ae]
22
+ ), [Oe, y] = $(O), [ke, Le] = $(O), ae = a.forwardRef(
23
23
  (e, t) => {
24
24
  const {
25
25
  __scopeNavigationMenu: r,
@@ -30,36 +30,36 @@ var A = "NavigationMenu", [B, oe, _e] = ne(A), [z, Pe, Se] = ne(A), [W, at] = he
30
30
  skipDelayDuration: d = 300,
31
31
  orientation: l = "horizontal",
32
32
  dir: R,
33
- ...u
34
- } = e, [m, N] = a.useState(null), h = O(t, (x) => N(x)), p = Te(R), w = a.useRef(0), M = a.useRef(0), E = a.useRef(0), [b, v] = a.useState(!0), [g = "", f] = ee({
33
+ ...c
34
+ } = e, [m, h] = a.useState(null), E = k(t, (M) => h(M)), p = be(R), w = a.useRef(0), N = a.useRef(0), T = a.useRef(0), [_, v] = a.useState(!0), [g = "", f] = ne({
35
35
  prop: i,
36
- onChange: (x) => {
37
- const P = x !== "", K = d > 0;
38
- P ? (window.clearTimeout(E.current), K && v(!1)) : (window.clearTimeout(E.current), E.current = window.setTimeout(
36
+ onChange: (M) => {
37
+ const x = M !== "", V = d > 0;
38
+ x ? (window.clearTimeout(T.current), V && v(!1)) : (window.clearTimeout(T.current), T.current = window.setTimeout(
39
39
  () => v(!0),
40
40
  d
41
- )), n?.(x);
41
+ )), n?.(M);
42
42
  },
43
43
  defaultProp: o
44
44
  }), C = a.useCallback(() => {
45
- window.clearTimeout(M.current), M.current = window.setTimeout(() => f(""), 150);
46
- }, [f]), _ = a.useCallback(
47
- (x) => {
48
- window.clearTimeout(M.current), f(x);
45
+ window.clearTimeout(N.current), N.current = window.setTimeout(() => f(""), 150);
46
+ }, [f]), P = a.useCallback(
47
+ (M) => {
48
+ window.clearTimeout(N.current), f(M);
49
49
  },
50
50
  [f]
51
51
  ), S = a.useCallback(
52
- (x) => {
53
- g === x ? window.clearTimeout(M.current) : w.current = window.setTimeout(() => {
54
- window.clearTimeout(M.current), f(x);
52
+ (M) => {
53
+ g === M ? window.clearTimeout(N.current) : w.current = window.setTimeout(() => {
54
+ window.clearTimeout(N.current), f(M);
55
55
  }, s);
56
56
  },
57
57
  [g, f, s]
58
58
  );
59
59
  return a.useEffect(() => () => {
60
- window.clearTimeout(w.current), window.clearTimeout(M.current), window.clearTimeout(E.current);
61
- }, []), /* @__PURE__ */ c.jsx(
62
- ae,
60
+ window.clearTimeout(w.current), window.clearTimeout(N.current), window.clearTimeout(T.current);
61
+ }, []), /* @__PURE__ */ u(
62
+ ce,
63
63
  {
64
64
  scope: r,
65
65
  isRootMenu: !0,
@@ -67,34 +67,34 @@ var A = "NavigationMenu", [B, oe, _e] = ne(A), [z, Pe, Se] = ne(A), [W, at] = he
67
67
  dir: p,
68
68
  orientation: l,
69
69
  rootNavigationMenu: m,
70
- onTriggerEnter: (x) => {
71
- window.clearTimeout(w.current), b ? S(x) : _(x);
70
+ onTriggerEnter: (M) => {
71
+ window.clearTimeout(w.current), _ ? S(M) : P(M);
72
72
  },
73
73
  onTriggerLeave: () => {
74
74
  window.clearTimeout(w.current), C();
75
75
  },
76
- onContentEnter: () => window.clearTimeout(M.current),
76
+ onContentEnter: () => window.clearTimeout(N.current),
77
77
  onContentLeave: C,
78
- onItemSelect: (x) => {
79
- f((P) => P === x ? "" : x);
78
+ onItemSelect: (M) => {
79
+ f((x) => x === M ? "" : M);
80
80
  },
81
81
  onItemDismiss: () => f(""),
82
- children: /* @__PURE__ */ c.jsx(
83
- y.nav,
82
+ children: /* @__PURE__ */ u(
83
+ b.nav,
84
84
  {
85
85
  "aria-label": "Main",
86
86
  "data-orientation": l,
87
87
  dir: p,
88
- ...u,
89
- ref: h
88
+ ...c,
89
+ ref: E
90
90
  }
91
91
  )
92
92
  }
93
93
  );
94
94
  }
95
95
  );
96
- re.displayName = A;
97
- var ie = "NavigationMenuSub", Oe = a.forwardRef(
96
+ ae.displayName = O;
97
+ var se = "NavigationMenuSub", Fe = a.forwardRef(
98
98
  (e, t) => {
99
99
  const {
100
100
  __scopeNavigationMenu: r,
@@ -103,13 +103,13 @@ var ie = "NavigationMenuSub", Oe = a.forwardRef(
103
103
  defaultValue: o,
104
104
  orientation: s = "horizontal",
105
105
  ...d
106
- } = e, l = I(ie, r), [R = "", u] = ee({
106
+ } = e, l = y(se, r), [R = "", c] = ne({
107
107
  prop: i,
108
108
  onChange: n,
109
109
  defaultProp: o
110
110
  });
111
- return /* @__PURE__ */ c.jsx(
112
- ae,
111
+ return /* @__PURE__ */ u(
112
+ ce,
113
113
  {
114
114
  scope: r,
115
115
  isRootMenu: !1,
@@ -117,16 +117,16 @@ var ie = "NavigationMenuSub", Oe = a.forwardRef(
117
117
  dir: l.dir,
118
118
  orientation: s,
119
119
  rootNavigationMenu: l.rootNavigationMenu,
120
- onTriggerEnter: (m) => u(m),
121
- onItemSelect: (m) => u(m),
122
- onItemDismiss: () => u(""),
123
- children: /* @__PURE__ */ c.jsx(y.div, { "data-orientation": s, ...d, ref: t })
120
+ onTriggerEnter: (m) => c(m),
121
+ onItemSelect: (m) => c(m),
122
+ onItemDismiss: () => c(""),
123
+ children: /* @__PURE__ */ u(b.div, { "data-orientation": s, ...d, ref: t })
124
124
  }
125
125
  );
126
126
  }
127
127
  );
128
- Oe.displayName = ie;
129
- var ae = (e) => {
128
+ Fe.displayName = se;
129
+ var ce = (e) => {
130
130
  const {
131
131
  scope: t,
132
132
  isRootMenu: r,
@@ -137,65 +137,65 @@ var ae = (e) => {
137
137
  value: d,
138
138
  onItemSelect: l,
139
139
  onItemDismiss: R,
140
- onTriggerEnter: u,
140
+ onTriggerEnter: c,
141
141
  onTriggerLeave: m,
142
- onContentEnter: N,
143
- onContentLeave: h
144
- } = e, [p, w] = a.useState(null), [M, E] = a.useState(/* @__PURE__ */ new Map()), [b, v] = a.useState(null);
145
- return /* @__PURE__ */ c.jsx(
146
- De,
142
+ onContentEnter: h,
143
+ onContentLeave: E
144
+ } = e, [p, w] = a.useState(null), [N, T] = a.useState(/* @__PURE__ */ new Map()), [_, v] = a.useState(null);
145
+ return /* @__PURE__ */ u(
146
+ Oe,
147
147
  {
148
148
  scope: t,
149
149
  isRootMenu: r,
150
150
  rootNavigationMenu: i,
151
151
  value: d,
152
- previousValue: ye(d),
153
- baseId: te(),
152
+ previousValue: Pe(d),
153
+ baseId: oe(),
154
154
  dir: n,
155
155
  orientation: o,
156
156
  viewport: p,
157
157
  onViewportChange: w,
158
- indicatorTrack: b,
158
+ indicatorTrack: _,
159
159
  onIndicatorTrackChange: v,
160
- onTriggerEnter: D(u),
160
+ onTriggerEnter: D(c),
161
161
  onTriggerLeave: D(m),
162
- onContentEnter: D(N),
163
- onContentLeave: D(h),
162
+ onContentEnter: D(h),
163
+ onContentLeave: D(E),
164
164
  onItemSelect: D(l),
165
165
  onItemDismiss: D(R),
166
166
  onViewportContentChange: a.useCallback((g, f) => {
167
- E((C) => (C.set(g, f), new Map(C)));
167
+ T((C) => (C.set(g, f), new Map(C)));
168
168
  }, []),
169
169
  onViewportContentRemove: a.useCallback((g) => {
170
- E((f) => f.has(g) ? (f.delete(g), new Map(f)) : f);
170
+ T((f) => f.has(g) ? (f.delete(g), new Map(f)) : f);
171
171
  }, []),
172
- children: /* @__PURE__ */ c.jsx(B.Provider, { scope: t, children: /* @__PURE__ */ c.jsx(je, { scope: t, items: M, children: s }) })
172
+ children: /* @__PURE__ */ u(W.Provider, { scope: t, children: /* @__PURE__ */ u(ke, { scope: t, items: N, children: s }) })
173
173
  }
174
174
  );
175
- }, se = "NavigationMenuList", ce = a.forwardRef(
175
+ }, ue = "NavigationMenuList", le = a.forwardRef(
176
176
  (e, t) => {
177
- const { __scopeNavigationMenu: r, ...i } = e, n = I(se, r), o = /* @__PURE__ */ c.jsx(y.ul, { "data-orientation": n.orientation, ...i, ref: t });
178
- return /* @__PURE__ */ c.jsx(y.div, { style: { position: "relative" }, ref: n.onIndicatorTrackChange, children: /* @__PURE__ */ c.jsx(B.Slot, { scope: r, children: n.isRootMenu ? /* @__PURE__ */ c.jsx(Ce, { asChild: !0, children: o }) : o }) });
177
+ const { __scopeNavigationMenu: r, ...i } = e, n = y(ue, r), o = /* @__PURE__ */ u(b.ul, { "data-orientation": n.orientation, ...i, ref: t });
178
+ return /* @__PURE__ */ u(b.div, { style: { position: "relative" }, ref: n.onIndicatorTrackChange, children: /* @__PURE__ */ u(W.Slot, { scope: r, children: n.isRootMenu ? /* @__PURE__ */ u(Me, { asChild: !0, children: o }) : o }) });
179
179
  }
180
180
  );
181
- ce.displayName = se;
182
- var ue = "NavigationMenuItem", [ke, le] = W(ue), de = a.forwardRef(
181
+ le.displayName = ue;
182
+ var de = "NavigationMenuItem", [Ke, ve] = $(de), fe = a.forwardRef(
183
183
  (e, t) => {
184
- const { __scopeNavigationMenu: r, value: i, ...n } = e, o = te(), s = i || o || "LEGACY_REACT_AUTO_VALUE", d = a.useRef(null), l = a.useRef(null), R = a.useRef(null), u = a.useRef(() => {
185
- }), m = a.useRef(!1), N = a.useCallback((p = "start") => {
184
+ const { __scopeNavigationMenu: r, value: i, ...n } = e, o = oe(), s = i || o || "LEGACY_REACT_AUTO_VALUE", d = a.useRef(null), l = a.useRef(null), R = a.useRef(null), c = a.useRef(() => {
185
+ }), m = a.useRef(!1), h = a.useCallback((p = "start") => {
186
186
  if (d.current) {
187
- u.current();
188
- const w = U(d.current);
187
+ c.current();
188
+ const w = H(d.current);
189
189
  w.length && q(p === "start" ? w : w.reverse());
190
190
  }
191
- }, []), h = a.useCallback(() => {
191
+ }, []), E = a.useCallback(() => {
192
192
  if (d.current) {
193
- const p = U(d.current);
194
- p.length && (u.current = Ue(p));
193
+ const p = H(d.current);
194
+ p.length && (c.current = We(p));
195
195
  }
196
196
  }, []);
197
- return /* @__PURE__ */ c.jsx(
198
- ke,
197
+ return /* @__PURE__ */ u(
198
+ Ke,
199
199
  {
200
200
  scope: r,
201
201
  value: s,
@@ -203,91 +203,91 @@ var ue = "NavigationMenuItem", [ke, le] = W(ue), de = a.forwardRef(
203
203
  contentRef: d,
204
204
  focusProxyRef: R,
205
205
  wasEscapeCloseRef: m,
206
- onEntryKeyDown: N,
207
- onFocusProxyEnter: N,
208
- onRootContentClose: h,
209
- onContentFocusOutside: h,
210
- children: /* @__PURE__ */ c.jsx(y.li, { ...n, ref: t })
206
+ onEntryKeyDown: h,
207
+ onFocusProxyEnter: h,
208
+ onRootContentClose: E,
209
+ onContentFocusOutside: E,
210
+ children: /* @__PURE__ */ u(b.li, { ...n, ref: t })
211
211
  }
212
212
  );
213
213
  }
214
214
  );
215
- de.displayName = ue;
216
- var G = "NavigationMenuTrigger", ve = a.forwardRef((e, t) => {
217
- const { __scopeNavigationMenu: r, disabled: i, ...n } = e, o = I(G, e.__scopeNavigationMenu), s = le(G, e.__scopeNavigationMenu), d = a.useRef(null), l = O(d, s.triggerRef, t), R = xe(o.baseId, s.value), u = Me(o.baseId, s.value), m = a.useRef(!1), N = a.useRef(!1), h = s.value === o.value;
218
- return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
219
- /* @__PURE__ */ c.jsx(B.ItemSlot, { scope: r, value: s.value, children: /* @__PURE__ */ c.jsx(Re, { asChild: !0, children: /* @__PURE__ */ c.jsx(
220
- y.button,
215
+ fe.displayName = de;
216
+ var U = "NavigationMenuTrigger", me = a.forwardRef((e, t) => {
217
+ const { __scopeNavigationMenu: r, disabled: i, ...n } = e, o = y(U, e.__scopeNavigationMenu), s = ve(U, e.__scopeNavigationMenu), d = a.useRef(null), l = k(d, s.triggerRef, t), R = he(o.baseId, s.value), c = Ee(o.baseId, s.value), m = a.useRef(!1), h = a.useRef(!1), E = s.value === o.value;
218
+ return /* @__PURE__ */ Q(Z, { children: [
219
+ /* @__PURE__ */ u(W.ItemSlot, { scope: r, value: s.value, children: /* @__PURE__ */ u(Ne, { asChild: !0, children: /* @__PURE__ */ u(
220
+ b.button,
221
221
  {
222
222
  id: R,
223
223
  disabled: i,
224
224
  "data-disabled": i ? "" : void 0,
225
- "data-state": X(h),
226
- "aria-expanded": h,
227
- "aria-controls": u,
225
+ "data-state": X(E),
226
+ "aria-expanded": E,
227
+ "aria-controls": c,
228
228
  ...n,
229
229
  ref: l,
230
- onPointerEnter: T(e.onPointerEnter, () => {
231
- N.current = !1, s.wasEscapeCloseRef.current = !1;
230
+ onPointerEnter: I(e.onPointerEnter, () => {
231
+ h.current = !1, s.wasEscapeCloseRef.current = !1;
232
232
  }),
233
- onPointerMove: T(
233
+ onPointerMove: I(
234
234
  e.onPointerMove,
235
235
  F(() => {
236
- i || N.current || s.wasEscapeCloseRef.current || m.current || (o.onTriggerEnter(s.value), m.current = !0);
236
+ i || h.current || s.wasEscapeCloseRef.current || m.current || (o.onTriggerEnter(s.value), m.current = !0);
237
237
  })
238
238
  ),
239
- onPointerLeave: T(
239
+ onPointerLeave: I(
240
240
  e.onPointerLeave,
241
241
  F(() => {
242
242
  i || (o.onTriggerLeave(), m.current = !1);
243
243
  })
244
244
  ),
245
- onClick: T(e.onClick, () => {
246
- o.onItemSelect(s.value), N.current = h;
245
+ onClick: I(e.onClick, () => {
246
+ o.onItemSelect(s.value), h.current = E;
247
247
  }),
248
- onKeyDown: T(e.onKeyDown, (p) => {
249
- const M = { horizontal: "ArrowDown", vertical: o.dir === "rtl" ? "ArrowLeft" : "ArrowRight" }[o.orientation];
250
- h && p.key === M && (s.onEntryKeyDown(), p.preventDefault());
248
+ onKeyDown: I(e.onKeyDown, (p) => {
249
+ const N = { horizontal: "ArrowDown", vertical: o.dir === "rtl" ? "ArrowLeft" : "ArrowRight" }[o.orientation];
250
+ E && p.key === N && (s.onEntryKeyDown(), p.preventDefault());
251
251
  })
252
252
  }
253
253
  ) }) }),
254
- h && /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
255
- /* @__PURE__ */ c.jsx(
256
- be,
254
+ E && /* @__PURE__ */ Q(Z, { children: [
255
+ /* @__PURE__ */ u(
256
+ xe,
257
257
  {
258
258
  "aria-hidden": !0,
259
259
  tabIndex: 0,
260
260
  ref: s.focusProxyRef,
261
261
  onFocus: (p) => {
262
- const w = s.contentRef.current, M = p.relatedTarget, E = M === d.current, b = w?.contains(M);
263
- (E || !b) && s.onFocusProxyEnter(E ? "start" : "end");
262
+ const w = s.contentRef.current, N = p.relatedTarget, T = N === d.current, _ = w?.contains(N);
263
+ (T || !_) && s.onFocusProxyEnter(T ? "start" : "end");
264
264
  }
265
265
  }
266
266
  ),
267
- o.viewport && /* @__PURE__ */ c.jsx("span", { "aria-owns": u })
267
+ o.viewport && /* @__PURE__ */ u("span", { "aria-owns": c })
268
268
  ] })
269
269
  ] });
270
270
  });
271
- ve.displayName = G;
272
- var Fe = "NavigationMenuLink", Q = "navigationMenu.linkSelect", fe = a.forwardRef(
271
+ me.displayName = U;
272
+ var Ve = "NavigationMenuLink", ee = "navigationMenu.linkSelect", ge = a.forwardRef(
273
273
  (e, t) => {
274
274
  const { __scopeNavigationMenu: r, active: i, onSelect: n, ...o } = e;
275
- return /* @__PURE__ */ c.jsx(Re, { asChild: !0, children: /* @__PURE__ */ c.jsx(
276
- y.a,
275
+ return /* @__PURE__ */ u(Ne, { asChild: !0, children: /* @__PURE__ */ u(
276
+ b.a,
277
277
  {
278
278
  "data-active": i ? "" : void 0,
279
279
  "aria-current": i ? "page" : void 0,
280
280
  ...o,
281
281
  ref: t,
282
- onClick: T(
282
+ onClick: I(
283
283
  e.onClick,
284
284
  (s) => {
285
- const d = s.target, l = new CustomEvent(Q, {
285
+ const d = s.target, l = new CustomEvent(ee, {
286
286
  bubbles: !0,
287
287
  cancelable: !0
288
288
  });
289
- if (d.addEventListener(Q, (R) => n?.(R), { once: !0 }), J(d, l), !l.defaultPrevented && !s.metaKey) {
290
- const R = new CustomEvent(k, {
289
+ if (d.addEventListener(ee, (R) => n?.(R), { once: !0 }), J(d, l), !l.defaultPrevented && !s.metaKey) {
290
+ const R = new CustomEvent(L, {
291
291
  bubbles: !0,
292
292
  cancelable: !0
293
293
  });
@@ -300,31 +300,31 @@ var Fe = "NavigationMenuLink", Q = "navigationMenu.linkSelect", fe = a.forwardRe
300
300
  ) });
301
301
  }
302
302
  );
303
- fe.displayName = Fe;
304
- var $ = "NavigationMenuIndicator", me = a.forwardRef((e, t) => {
305
- const { forceMount: r, ...i } = e, n = I($, e.__scopeNavigationMenu), o = !!n.value;
306
- return n.indicatorTrack ? Ne.createPortal(
307
- /* @__PURE__ */ c.jsx(L, { present: r || o, children: /* @__PURE__ */ c.jsx(Le, { ...i, ref: t }) }),
303
+ ge.displayName = Ve;
304
+ var Y = "NavigationMenuIndicator", pe = a.forwardRef((e, t) => {
305
+ const { forceMount: r, ...i } = e, n = y(Y, e.__scopeNavigationMenu), o = !!n.value;
306
+ return n.indicatorTrack ? Te.createPortal(
307
+ /* @__PURE__ */ u(K, { present: r || o, children: /* @__PURE__ */ u(ze, { ...i, ref: t }) }),
308
308
  n.indicatorTrack
309
309
  ) : null;
310
310
  });
311
- me.displayName = $;
312
- var Le = a.forwardRef((e, t) => {
313
- const { __scopeNavigationMenu: r, ...i } = e, n = I($, r), o = oe(r), [s, d] = a.useState(
311
+ pe.displayName = Y;
312
+ var ze = a.forwardRef((e, t) => {
313
+ const { __scopeNavigationMenu: r, ...i } = e, n = y(Y, r), o = ie(r), [s, d] = a.useState(
314
314
  null
315
- ), [l, R] = a.useState(null), u = n.orientation === "horizontal", m = !!n.value;
315
+ ), [l, R] = a.useState(null), c = n.orientation === "horizontal", m = !!n.value;
316
316
  a.useEffect(() => {
317
317
  const p = o().find((w) => w.value === n.value)?.ref.current;
318
318
  p && d(p);
319
319
  }, [o, n.value]);
320
- const N = () => {
320
+ const h = () => {
321
321
  s && R({
322
- size: u ? s.offsetWidth : s.offsetHeight,
323
- offset: u ? s.offsetLeft : s.offsetTop
322
+ size: c ? s.offsetWidth : s.offsetHeight,
323
+ offset: c ? s.offsetLeft : s.offsetTop
324
324
  });
325
325
  };
326
- return H(s, N), H(n.indicatorTrack, N), l ? /* @__PURE__ */ c.jsx(
327
- y.div,
326
+ return B(s, h), B(n.indicatorTrack, h), l ? /* @__PURE__ */ u(
327
+ b.div,
328
328
  {
329
329
  "aria-hidden": !0,
330
330
  "data-state": m ? "visible" : "hidden",
@@ -333,7 +333,7 @@ var Le = a.forwardRef((e, t) => {
333
333
  ref: t,
334
334
  style: {
335
335
  position: "absolute",
336
- ...u ? {
336
+ ...c ? {
337
337
  left: 0,
338
338
  width: l.size + "px",
339
339
  transform: `translateX(${l.offset}px)`
@@ -346,8 +346,8 @@ var Le = a.forwardRef((e, t) => {
346
346
  }
347
347
  }
348
348
  ) : null;
349
- }), j = "NavigationMenuContent", ge = a.forwardRef((e, t) => {
350
- const { forceMount: r, ...i } = e, n = I(j, e.__scopeNavigationMenu), o = le(j, e.__scopeNavigationMenu), s = O(o.contentRef, t), d = o.value === n.value, l = {
349
+ }), A = "NavigationMenuContent", we = a.forwardRef((e, t) => {
350
+ const { forceMount: r, ...i } = e, n = y(A, e.__scopeNavigationMenu), o = ve(A, e.__scopeNavigationMenu), s = k(o.contentRef, t), d = o.value === n.value, l = {
351
351
  value: o.value,
352
352
  triggerRef: o.triggerRef,
353
353
  focusProxyRef: o.focusProxyRef,
@@ -356,14 +356,14 @@ var Le = a.forwardRef((e, t) => {
356
356
  onRootContentClose: o.onRootContentClose,
357
357
  ...i
358
358
  };
359
- return n.viewport ? /* @__PURE__ */ c.jsx(Ke, { forceMount: r, ...l, ref: s }) : /* @__PURE__ */ c.jsx(L, { present: r || d, children: /* @__PURE__ */ c.jsx(
360
- pe,
359
+ return n.viewport ? /* @__PURE__ */ u(Ge, { forceMount: r, ...l, ref: s }) : /* @__PURE__ */ u(K, { present: r || d, children: /* @__PURE__ */ u(
360
+ Ce,
361
361
  {
362
362
  "data-state": X(d),
363
363
  ...l,
364
364
  ref: s,
365
- onPointerEnter: T(e.onPointerEnter, n.onContentEnter),
366
- onPointerLeave: T(
365
+ onPointerEnter: I(e.onPointerEnter, n.onContentEnter),
366
+ onPointerLeave: I(
367
367
  e.onPointerLeave,
368
368
  F(n.onContentLeave)
369
369
  ),
@@ -375,16 +375,16 @@ var Le = a.forwardRef((e, t) => {
375
375
  }
376
376
  ) });
377
377
  });
378
- ge.displayName = j;
379
- var Ke = a.forwardRef((e, t) => {
380
- const r = I(j, e.__scopeNavigationMenu), { onViewportContentChange: i, onViewportContentRemove: n } = r;
381
- return V(() => {
378
+ we.displayName = A;
379
+ var Ge = a.forwardRef((e, t) => {
380
+ const r = y(A, e.__scopeNavigationMenu), { onViewportContentChange: i, onViewportContentRemove: n } = r;
381
+ return z(() => {
382
382
  i(e.value, {
383
383
  ref: t,
384
384
  ...e
385
385
  });
386
- }, [e, t, i]), V(() => () => n(e.value), [e.value, n]), null;
387
- }), k = "navigationMenu.rootContentDismiss", pe = a.forwardRef((e, t) => {
386
+ }, [e, t, i]), z(() => () => n(e.value), [e.value, n]), null;
387
+ }), L = "navigationMenu.rootContentDismiss", Ce = a.forwardRef((e, t) => {
388
388
  const {
389
389
  __scopeNavigationMenu: r,
390
390
  value: i,
@@ -394,82 +394,82 @@ var Ke = a.forwardRef((e, t) => {
394
394
  onRootContentClose: d,
395
395
  onContentFocusOutside: l,
396
396
  ...R
397
- } = e, u = I(j, r), m = a.useRef(null), N = O(m, t), h = xe(u.baseId, i), p = Me(u.baseId, i), w = oe(r), M = a.useRef(null), { onItemDismiss: E } = u;
397
+ } = e, c = y(A, r), m = a.useRef(null), h = k(m, t), E = he(c.baseId, i), p = Ee(c.baseId, i), w = ie(r), N = a.useRef(null), { onItemDismiss: T } = c;
398
398
  a.useEffect(() => {
399
399
  const v = m.current;
400
- if (u.isRootMenu && v) {
400
+ if (c.isRootMenu && v) {
401
401
  const g = () => {
402
- E(), d(), v.contains(document.activeElement) && n.current?.focus();
402
+ T(), d(), v.contains(document.activeElement) && n.current?.focus();
403
403
  };
404
- return v.addEventListener(k, g), () => v.removeEventListener(k, g);
404
+ return v.addEventListener(L, g), () => v.removeEventListener(L, g);
405
405
  }
406
- }, [u.isRootMenu, e.value, n, E, d]);
407
- const b = a.useMemo(() => {
408
- const g = w().map((P) => P.value);
409
- u.dir === "rtl" && g.reverse();
410
- const f = g.indexOf(u.value), C = g.indexOf(u.previousValue), _ = i === u.value, S = C === g.indexOf(i);
411
- if (!_ && !S) return M.current;
412
- const x = (() => {
406
+ }, [c.isRootMenu, e.value, n, T, d]);
407
+ const _ = a.useMemo(() => {
408
+ const g = w().map((x) => x.value);
409
+ c.dir === "rtl" && g.reverse();
410
+ const f = g.indexOf(c.value), C = g.indexOf(c.previousValue), P = i === c.value, S = C === g.indexOf(i);
411
+ if (!P && !S) return N.current;
412
+ const M = (() => {
413
413
  if (f !== C) {
414
- if (_ && C !== -1) return f > C ? "from-end" : "from-start";
414
+ if (P && C !== -1) return f > C ? "from-end" : "from-start";
415
415
  if (S && f !== -1) return f > C ? "to-start" : "to-end";
416
416
  }
417
417
  return null;
418
418
  })();
419
- return M.current = x, x;
420
- }, [u.previousValue, u.value, u.dir, w, i]);
421
- return /* @__PURE__ */ c.jsx(Ce, { asChild: !0, children: /* @__PURE__ */ c.jsx(
422
- Ie,
419
+ return N.current = M, M;
420
+ }, [c.previousValue, c.value, c.dir, w, i]);
421
+ return /* @__PURE__ */ u(Me, { asChild: !0, children: /* @__PURE__ */ u(
422
+ _e,
423
423
  {
424
424
  id: p,
425
- "aria-labelledby": h,
426
- "data-motion": b,
427
- "data-orientation": u.orientation,
425
+ "aria-labelledby": E,
426
+ "data-motion": _,
427
+ "data-orientation": c.orientation,
428
428
  ...R,
429
- ref: N,
429
+ ref: h,
430
430
  disableOutsidePointerEvents: !1,
431
431
  onDismiss: () => {
432
- const v = new Event(k, {
432
+ const v = new Event(L, {
433
433
  bubbles: !0,
434
434
  cancelable: !0
435
435
  });
436
436
  m.current?.dispatchEvent(v);
437
437
  },
438
- onFocusOutside: T(e.onFocusOutside, (v) => {
438
+ onFocusOutside: I(e.onFocusOutside, (v) => {
439
439
  l();
440
440
  const g = v.target;
441
- u.rootNavigationMenu?.contains(g) && v.preventDefault();
441
+ c.rootNavigationMenu?.contains(g) && v.preventDefault();
442
442
  }),
443
- onPointerDownOutside: T(e.onPointerDownOutside, (v) => {
444
- const g = v.target, f = w().some((_) => _.ref.current?.contains(g)), C = u.isRootMenu && u.viewport?.contains(g);
445
- (f || C || !u.isRootMenu) && v.preventDefault();
443
+ onPointerDownOutside: I(e.onPointerDownOutside, (v) => {
444
+ const g = v.target, f = w().some((P) => P.ref.current?.contains(g)), C = c.isRootMenu && c.viewport?.contains(g);
445
+ (f || C || !c.isRootMenu) && v.preventDefault();
446
446
  }),
447
- onKeyDown: T(e.onKeyDown, (v) => {
447
+ onKeyDown: I(e.onKeyDown, (v) => {
448
448
  const g = v.altKey || v.ctrlKey || v.metaKey;
449
449
  if (v.key === "Tab" && !g) {
450
- const C = U(v.currentTarget), _ = document.activeElement, S = C.findIndex((K) => K === _), P = v.shiftKey ? C.slice(0, S).reverse() : C.slice(S + 1, C.length);
451
- q(P) ? v.preventDefault() : o.current?.focus();
450
+ const C = H(v.currentTarget), P = document.activeElement, S = C.findIndex((V) => V === P), x = v.shiftKey ? C.slice(0, S).reverse() : C.slice(S + 1, C.length);
451
+ q(x) ? v.preventDefault() : o.current?.focus();
452
452
  }
453
453
  }),
454
- onEscapeKeyDown: T(e.onEscapeKeyDown, (v) => {
454
+ onEscapeKeyDown: I(e.onEscapeKeyDown, (v) => {
455
455
  s.current = !0;
456
456
  })
457
457
  }
458
458
  ) });
459
- }), Y = "NavigationMenuViewport", we = a.forwardRef((e, t) => {
460
- const { forceMount: r, ...i } = e, o = !!I(Y, e.__scopeNavigationMenu).value;
461
- return /* @__PURE__ */ c.jsx(L, { present: r || o, children: /* @__PURE__ */ c.jsx(Ve, { ...i, ref: t }) });
459
+ }), j = "NavigationMenuViewport", Re = a.forwardRef((e, t) => {
460
+ const { forceMount: r, ...i } = e, o = !!y(j, e.__scopeNavigationMenu).value;
461
+ return /* @__PURE__ */ u(K, { present: r || o, children: /* @__PURE__ */ u(Ue, { ...i, ref: t }) });
462
462
  });
463
- we.displayName = Y;
464
- var Ve = a.forwardRef((e, t) => {
465
- const { __scopeNavigationMenu: r, children: i, ...n } = e, o = I(Y, r), s = O(t, o.onViewportChange), d = Ae(
466
- j,
463
+ Re.displayName = j;
464
+ var Ue = a.forwardRef((e, t) => {
465
+ const { __scopeNavigationMenu: r, children: i, ...n } = e, o = y(j, r), s = k(t, o.onViewportChange), d = Le(
466
+ A,
467
467
  e.__scopeNavigationMenu
468
- ), [l, R] = a.useState(null), [u, m] = a.useState(null), N = l ? l?.width + "px" : void 0, h = l ? l?.height + "px" : void 0, p = !!o.value, w = p ? o.value : o.previousValue;
469
- return H(u, () => {
470
- u && R({ width: u.offsetWidth, height: u.offsetHeight });
471
- }), /* @__PURE__ */ c.jsx(
472
- y.div,
468
+ ), [l, R] = a.useState(null), [c, m] = a.useState(null), h = l ? l?.width + "px" : void 0, E = l ? l?.height + "px" : void 0, p = !!o.value, w = p ? o.value : o.previousValue;
469
+ return B(c, () => {
470
+ c && R({ width: c.offsetWidth, height: c.offsetHeight });
471
+ }), /* @__PURE__ */ u(
472
+ b.div,
473
473
  {
474
474
  "data-state": X(p),
475
475
  "data-orientation": o.orientation,
@@ -478,43 +478,43 @@ var Ve = a.forwardRef((e, t) => {
478
478
  style: {
479
479
  // Prevent interaction when animating out
480
480
  pointerEvents: !p && o.isRootMenu ? "none" : void 0,
481
- "--radix-navigation-menu-viewport-width": N,
482
- "--radix-navigation-menu-viewport-height": h,
481
+ "--radix-navigation-menu-viewport-width": h,
482
+ "--radix-navigation-menu-viewport-height": E,
483
483
  ...n.style
484
484
  },
485
- onPointerEnter: T(e.onPointerEnter, o.onContentEnter),
486
- onPointerLeave: T(e.onPointerLeave, F(o.onContentLeave)),
487
- children: Array.from(d.items).map(([E, { ref: b, forceMount: v, ...g }]) => {
488
- const f = w === E;
489
- return /* @__PURE__ */ c.jsx(L, { present: v || f, children: /* @__PURE__ */ c.jsx(
490
- pe,
485
+ onPointerEnter: I(e.onPointerEnter, o.onContentEnter),
486
+ onPointerLeave: I(e.onPointerLeave, F(o.onContentLeave)),
487
+ children: Array.from(d.items).map(([T, { ref: _, forceMount: v, ...g }]) => {
488
+ const f = w === T;
489
+ return /* @__PURE__ */ u(K, { present: v || f, children: /* @__PURE__ */ u(
490
+ Ce,
491
491
  {
492
492
  ...g,
493
- ref: Ee(b, (C) => {
493
+ ref: ye(_, (C) => {
494
494
  f && C && m(C);
495
495
  })
496
496
  }
497
- ) }, E);
497
+ ) }, T);
498
498
  })
499
499
  }
500
500
  );
501
- }), ze = "FocusGroup", Ce = a.forwardRef(
501
+ }), He = "FocusGroup", Me = a.forwardRef(
502
502
  (e, t) => {
503
- const { __scopeNavigationMenu: r, ...i } = e, n = I(ze, r);
504
- return /* @__PURE__ */ c.jsx(z.Provider, { scope: r, children: /* @__PURE__ */ c.jsx(z.Slot, { scope: r, children: /* @__PURE__ */ c.jsx(y.div, { dir: n.dir, ...i, ref: t }) }) });
503
+ const { __scopeNavigationMenu: r, ...i } = e, n = y(He, r);
504
+ return /* @__PURE__ */ u(G.Provider, { scope: r, children: /* @__PURE__ */ u(G.Slot, { scope: r, children: /* @__PURE__ */ u(b.div, { dir: n.dir, ...i, ref: t }) }) });
505
505
  }
506
- ), Z = ["ArrowRight", "ArrowLeft", "ArrowUp", "ArrowDown"], Ge = "FocusGroupItem", Re = a.forwardRef(
506
+ ), te = ["ArrowRight", "ArrowLeft", "ArrowUp", "ArrowDown"], Be = "FocusGroupItem", Ne = a.forwardRef(
507
507
  (e, t) => {
508
- const { __scopeNavigationMenu: r, ...i } = e, n = Pe(r), o = I(Ge, r);
509
- return /* @__PURE__ */ c.jsx(z.ItemSlot, { scope: r, children: /* @__PURE__ */ c.jsx(
510
- y.button,
508
+ const { __scopeNavigationMenu: r, ...i } = e, n = De(r), o = y(Be, r);
509
+ return /* @__PURE__ */ u(G.ItemSlot, { scope: r, children: /* @__PURE__ */ u(
510
+ b.button,
511
511
  {
512
512
  ...i,
513
513
  ref: t,
514
- onKeyDown: T(e.onKeyDown, (s) => {
515
- if (["Home", "End", ...Z].includes(s.key)) {
514
+ onKeyDown: I(e.onKeyDown, (s) => {
515
+ if (["Home", "End", ...te].includes(s.key)) {
516
516
  let l = n().map((m) => m.ref.current);
517
- if ([o.dir === "rtl" ? "ArrowRight" : "ArrowLeft", "ArrowUp", "End"].includes(s.key) && l.reverse(), Z.includes(s.key)) {
517
+ if ([o.dir === "rtl" ? "ArrowRight" : "ArrowLeft", "ArrowUp", "End"].includes(s.key) && l.reverse(), te.includes(s.key)) {
518
518
  const m = l.indexOf(s.currentTarget);
519
519
  l = l.slice(m + 1);
520
520
  }
@@ -525,7 +525,7 @@ var Ve = a.forwardRef((e, t) => {
525
525
  ) });
526
526
  }
527
527
  );
528
- function U(e) {
528
+ function H(e) {
529
529
  const t = [], r = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
530
530
  acceptNode: (i) => {
531
531
  const n = i.tagName === "INPUT" && i.type === "hidden";
@@ -539,7 +539,7 @@ function q(e) {
539
539
  const t = document.activeElement;
540
540
  return e.some((r) => r === t ? !0 : (r.focus(), document.activeElement !== t));
541
541
  }
542
- function Ue(e) {
542
+ function We(e) {
543
543
  return e.forEach((t) => {
544
544
  t.dataset.tabindex = t.getAttribute("tabindex") || "", t.setAttribute("tabindex", "-1");
545
545
  }), () => {
@@ -549,9 +549,9 @@ function Ue(e) {
549
549
  });
550
550
  };
551
551
  }
552
- function H(e, t) {
552
+ function B(e, t) {
553
553
  const r = D(t);
554
- V(() => {
554
+ z(() => {
555
555
  let i = 0;
556
556
  if (e) {
557
557
  const n = new ResizeObserver(() => {
@@ -566,34 +566,34 @@ function H(e, t) {
566
566
  function X(e) {
567
567
  return e ? "open" : "closed";
568
568
  }
569
- function xe(e, t) {
569
+ function he(e, t) {
570
570
  return `${e}-trigger-${t}`;
571
571
  }
572
- function Me(e, t) {
572
+ function Ee(e, t) {
573
573
  return `${e}-content-${t}`;
574
574
  }
575
575
  function F(e) {
576
576
  return (t) => t.pointerType === "mouse" ? e(t) : void 0;
577
577
  }
578
- var st = re, ct = ce, ut = de, lt = ve, dt = fe, vt = me, ft = ge, mt = we;
578
+ var ut = ae, lt = le, dt = fe, vt = me, ft = ge, mt = pe, gt = we, pt = Re;
579
579
  export {
580
- ft as Content,
581
- vt as Indicator,
582
- ut as Item,
583
- dt as Link,
584
- ct as List,
585
- re as NavigationMenu,
586
- ge as NavigationMenuContent,
587
- me as NavigationMenuIndicator,
588
- de as NavigationMenuItem,
589
- fe as NavigationMenuLink,
590
- ce as NavigationMenuList,
591
- Oe as NavigationMenuSub,
592
- ve as NavigationMenuTrigger,
593
- we as NavigationMenuViewport,
594
- st as Root,
595
- lt as Trigger,
596
- mt as Viewport,
597
- at as createNavigationMenuScope
580
+ gt as Content,
581
+ mt as Indicator,
582
+ dt as Item,
583
+ ft as Link,
584
+ lt as List,
585
+ ae as NavigationMenu,
586
+ we as NavigationMenuContent,
587
+ pe as NavigationMenuIndicator,
588
+ fe as NavigationMenuItem,
589
+ ge as NavigationMenuLink,
590
+ le as NavigationMenuList,
591
+ Fe as NavigationMenuSub,
592
+ me as NavigationMenuTrigger,
593
+ Re as NavigationMenuViewport,
594
+ ut as Root,
595
+ vt as Trigger,
596
+ pt as Viewport,
597
+ ct as createNavigationMenuScope
598
598
  };
599
599
  //# sourceMappingURL=index.js.map