@gv-tech/ui-web 2.19.0 → 2.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (287) hide show
  1. package/dist/accordion-Be1vGv6M.js +1 -0
  2. package/dist/accordion-DXnU0LgU.mjs +221 -0
  3. package/dist/accordion.cjs +1 -1
  4. package/dist/accordion.mjs +3 -259
  5. package/dist/alert-dialog-BXRY0Ghq.js +7 -0
  6. package/dist/alert-dialog-fcZ-sL7h.mjs +164 -0
  7. package/dist/alert-dialog.cjs +1 -7
  8. package/dist/alert-dialog.mjs +4 -171
  9. package/dist/alert.cjs +1 -1
  10. package/dist/alert.mjs +35 -32
  11. package/dist/aspect-ratio-BP5HarYZ.js +1 -0
  12. package/dist/aspect-ratio-Bp8HMg-1.mjs +33 -0
  13. package/dist/aspect-ratio.cjs +1 -1
  14. package/dist/aspect-ratio.mjs +3 -43
  15. package/dist/avatar-klFl8Sqa.js +1 -0
  16. package/dist/avatar-vGm9JN1a.mjs +184 -0
  17. package/dist/avatar.cjs +1 -1
  18. package/dist/avatar.mjs +3 -205
  19. package/dist/badge.cjs +1 -1
  20. package/dist/badge.mjs +21 -24
  21. package/dist/breadcrumb.cjs +1 -1
  22. package/dist/breadcrumb.mjs +60 -68
  23. package/dist/button.cjs +1 -1
  24. package/dist/button.mjs +40 -40
  25. package/dist/calendar-aIuSXzs7.js +1 -0
  26. package/dist/calendar-oitID53a.mjs +3154 -0
  27. package/dist/calendar.cjs +1 -1
  28. package/dist/calendar.mjs +4 -2976
  29. package/dist/card.cjs +1 -1
  30. package/dist/card.mjs +42 -32
  31. package/dist/carousel-BjTSkVh9.js +1 -0
  32. package/dist/carousel-CENzZCXN.mjs +1178 -0
  33. package/dist/carousel.cjs +1 -1
  34. package/dist/carousel.mjs +4 -1403
  35. package/dist/chart.cjs +4 -4
  36. package/dist/chart.d.ts +3 -35
  37. package/dist/chart.mjs +123 -182
  38. package/dist/checkbox-Bwq7mXA2.mjs +170 -0
  39. package/dist/checkbox-DzEO1q4R.js +1 -0
  40. package/dist/checkbox.cjs +1 -1
  41. package/dist/checkbox.mjs +3 -258
  42. package/dist/collapsible.cjs +1 -1
  43. package/dist/collapsible.mjs +6 -7
  44. package/dist/command-D7hksKY6.js +1 -0
  45. package/dist/command-Ws_iF1hM.mjs +531 -0
  46. package/dist/command.cjs +1 -1
  47. package/dist/command.mjs +3 -396
  48. package/dist/context-menu-DJbgNJ7N.js +1 -0
  49. package/dist/context-menu-fu39gePi.mjs +292 -0
  50. package/dist/context-menu.cjs +1 -1
  51. package/dist/context-menu.mjs +3 -328
  52. package/dist/dialog.cjs +1 -1
  53. package/dist/dialog.mjs +50 -66
  54. package/dist/dist-0FXx-pUX.js +1 -0
  55. package/dist/dist-4A0ut6a8.mjs +10 -0
  56. package/dist/dist-ALQAoSGx.mjs +10 -0
  57. package/dist/dist-B4N_7Tps.js +1 -0
  58. package/dist/dist-B5776DvK.js +5 -0
  59. package/dist/dist-B57mzJP3.mjs +28 -0
  60. package/dist/dist-B5VmV2K7.js +1 -0
  61. package/dist/dist-BBRD-Qfb.js +1 -0
  62. package/dist/dist-BC_VB6JL.mjs +25 -0
  63. package/dist/dist-BKFtvTm8.mjs +6 -0
  64. package/dist/dist-BUS_s_6N.js +1 -0
  65. package/dist/dist-BVKPqhkg.js +1 -0
  66. package/dist/dist-Ba7mQG9D.mjs +117 -0
  67. package/dist/dist-BeFCyPgD.js +1 -0
  68. package/dist/dist-Bf4P28CV.js +1 -0
  69. package/dist/dist-BfFVoFJN.js +1 -0
  70. package/dist/dist-BhtQH_6Z.js +1 -0
  71. package/dist/dist-BmjFh8i_.mjs +5 -0
  72. package/dist/dist-BrCTkQXt.mjs +62 -0
  73. package/dist/dist-BxmpAHsT.mjs +219 -0
  74. package/dist/dist-C2ArLRnq.js +1 -0
  75. package/dist/dist-C2pRTcV_.mjs +62 -0
  76. package/dist/dist-C9wnUiS4.mjs +27 -0
  77. package/dist/dist-CIRItnqs.js +1 -0
  78. package/dist/dist-CL1DhkaL.js +1 -0
  79. package/dist/dist-CRe7xawr.js +1 -0
  80. package/dist/dist-CUFjt0cI.js +1 -0
  81. package/dist/dist-CaaGWewc.mjs +557 -0
  82. package/dist/dist-Ci2whnVp.js +1 -0
  83. package/dist/dist-CmBtqW5f.js +1 -0
  84. package/dist/dist-CsEsK2jW.js +1 -0
  85. package/dist/dist-CscAxhT8.js +1 -0
  86. package/dist/dist-CvtF5JdF.mjs +95 -0
  87. package/dist/dist-Cvwtowos.mjs +77 -0
  88. package/dist/dist-D2f83VMO.mjs +73 -0
  89. package/dist/dist-Dh_jWJh-.mjs +11 -0
  90. package/dist/dist-DikyKBU3.mjs +12 -0
  91. package/dist/dist-DmmUjo_P.js +1 -0
  92. package/dist/dist-DqvQ5UFr.mjs +38 -0
  93. package/dist/dist-FGQAMrhH.mjs +29 -0
  94. package/dist/dist-Jtk3jeb9.mjs +18 -0
  95. package/dist/dist-Kqk0oQYU.js +1 -0
  96. package/dist/dist-VI9bl_Wk.mjs +45 -0
  97. package/dist/dist-Z7lEV5Nx.mjs +1282 -0
  98. package/dist/dist-_Osar3kp.js +1 -0
  99. package/dist/dist-bDoR0CBU.mjs +112 -0
  100. package/dist/dist-cRjbOZRf.js +1 -0
  101. package/dist/dist-d_pecHgw.mjs +66 -0
  102. package/dist/dist-r36zVVcK.js +1 -0
  103. package/dist/dist-sRlXdzvf.mjs +152 -0
  104. package/dist/drawer.cjs +1 -1
  105. package/dist/drawer.mjs +48 -54
  106. package/dist/dropdown-menu-BGkQXJ-r.mjs +288 -0
  107. package/dist/dropdown-menu-uGMnmGL-.js +1 -0
  108. package/dist/dropdown-menu.cjs +1 -1
  109. package/dist/dropdown-menu.mjs +3 -316
  110. package/dist/es2015-Cx0gpR1a.js +41 -0
  111. package/dist/es2015-a1b8kENC.mjs +701 -0
  112. package/dist/form.cjs +1 -1
  113. package/dist/form.mjs +76 -67
  114. package/dist/hover-card-DdIYJP-Q.mjs +167 -0
  115. package/dist/hover-card-Ua-2KlY-.js +1 -0
  116. package/dist/hover-card.cjs +1 -1
  117. package/dist/hover-card.mjs +3 -188
  118. package/dist/index.cjs +1 -1
  119. package/dist/index.d.ts +3 -35
  120. package/dist/index.mjs +56 -296
  121. package/dist/input.cjs +1 -1
  122. package/dist/input.mjs +14 -19
  123. package/dist/jsx-runtime-CN3qjQQx.js +6 -0
  124. package/dist/jsx-runtime-CW53Uo-e.mjs +189 -0
  125. package/dist/label-8YSUv4kt.js +1 -0
  126. package/dist/label-Bur66PVg.mjs +22 -0
  127. package/dist/label.cjs +1 -1
  128. package/dist/label.mjs +3 -22
  129. package/dist/menubar-Bq1Sfbf5.js +1 -0
  130. package/dist/menubar-D2fY6zkQ.mjs +410 -0
  131. package/dist/menubar.cjs +1 -1
  132. package/dist/menubar.mjs +3 -473
  133. package/dist/navigation-menu-BuOakbgA.mjs +602 -0
  134. package/dist/navigation-menu-so6EvLAY.js +1 -0
  135. package/dist/navigation-menu.cjs +1 -1
  136. package/dist/navigation-menu.mjs +3 -673
  137. package/dist/pagination.cjs +1 -1
  138. package/dist/pagination.mjs +63 -68
  139. package/dist/popover-BUADXRkO.mjs +201 -0
  140. package/dist/popover-nBrSPqHk.js +1 -0
  141. package/dist/popover.cjs +1 -1
  142. package/dist/popover.mjs +3 -242
  143. package/dist/progress-BTApMbqg.js +6 -0
  144. package/dist/progress-BbN-RNvs.mjs +81 -0
  145. package/dist/progress.cjs +1 -6
  146. package/dist/progress.mjs +3 -99
  147. package/dist/radio-group-C5oprOrt.mjs +193 -0
  148. package/dist/radio-group-FDXr6VLM.js +1 -0
  149. package/dist/radio-group.cjs +1 -1
  150. package/dist/radio-group.mjs +3 -253
  151. package/dist/resizable-ChdgCzzx.mjs +1534 -0
  152. package/dist/resizable-ztiFzq_y.js +1 -0
  153. package/dist/resizable.cjs +1 -1
  154. package/dist/resizable.mjs +3 -1990
  155. package/dist/scroll-area-3o0-cc3n.mjs +520 -0
  156. package/dist/scroll-area-DXZqIKXN.js +1 -0
  157. package/dist/scroll-area.cjs +1 -1
  158. package/dist/scroll-area.mjs +3 -546
  159. package/dist/scroll-to-top.cjs +1 -1
  160. package/dist/scroll-to-top.mjs +71 -84
  161. package/dist/search.cjs +1 -1
  162. package/dist/search.mjs +53 -63
  163. package/dist/select-B2qM503G.mjs +744 -0
  164. package/dist/select-BHCeW-MD.js +1 -0
  165. package/dist/select.cjs +1 -1
  166. package/dist/select.mjs +3 -908
  167. package/dist/separator-BZJ-SDvg.js +1 -0
  168. package/dist/separator-DJ_IwKUQ.mjs +31 -0
  169. package/dist/separator.cjs +1 -1
  170. package/dist/separator.mjs +3 -35
  171. package/dist/sheet.cjs +1 -1
  172. package/dist/sheet.mjs +59 -66
  173. package/dist/skeleton.cjs +1 -1
  174. package/dist/skeleton.mjs +13 -7
  175. package/dist/slider-CJJPQ0fH.mjs +366 -0
  176. package/dist/slider-DHccqrW2.js +1 -0
  177. package/dist/slider.cjs +1 -1
  178. package/dist/slider.mjs +3 -442
  179. package/dist/sonner.cjs +1 -1
  180. package/dist/sonner.mjs +21 -24
  181. package/dist/support-fab.cjs +1 -1
  182. package/dist/support-fab.mjs +81 -117
  183. package/dist/switch-BbcAUYjl.mjs +103 -0
  184. package/dist/switch-DZfRzgWs.js +1 -0
  185. package/dist/switch.cjs +1 -1
  186. package/dist/switch.mjs +3 -149
  187. package/dist/table-of-contents.cjs +1 -1
  188. package/dist/table-of-contents.mjs +159 -155
  189. package/dist/table.cjs +1 -1
  190. package/dist/table.mjs +58 -57
  191. package/dist/tabs-BEy0IIV0.js +1 -0
  192. package/dist/tabs-DqAKyl9T.mjs +136 -0
  193. package/dist/tabs.cjs +1 -1
  194. package/dist/tabs.mjs +3 -195
  195. package/dist/text.cjs +1 -1
  196. package/dist/text.mjs +41 -42
  197. package/dist/textarea.cjs +1 -1
  198. package/dist/textarea.mjs +12 -17
  199. package/dist/theme-provider.cjs +1 -1
  200. package/dist/theme-provider.mjs +15 -7
  201. package/dist/theme-toggle-DKQmD-FO.js +1 -0
  202. package/dist/theme-toggle-dQbFWNI8.mjs +65 -0
  203. package/dist/theme-toggle.cjs +1 -1
  204. package/dist/theme-toggle.mjs +3 -8
  205. package/dist/toast-C84Cpidq.js +1 -0
  206. package/dist/toast-CQbUslcw.mjs +427 -0
  207. package/dist/toast.cjs +1 -1
  208. package/dist/toast.mjs +3 -494
  209. package/dist/toaster-BpcpNRz1.js +1 -0
  210. package/dist/toaster-i6giQYiq.mjs +126 -0
  211. package/dist/toaster.cjs +1 -1
  212. package/dist/toaster.mjs +3 -6
  213. package/dist/toggle-group-B2S7fkhA.mjs +155 -0
  214. package/dist/toggle-group-BNn6MNiJ.js +1 -0
  215. package/dist/toggle-group.cjs +1 -1
  216. package/dist/toggle-group.mjs +3 -170
  217. package/dist/toggle.cjs +1 -1
  218. package/dist/toggle.mjs +19 -14
  219. package/dist/tooltip-CElrNodA.js +1 -0
  220. package/dist/tooltip-oKfTBTbv.mjs +364 -0
  221. package/dist/tooltip.cjs +1 -1
  222. package/dist/tooltip.mjs +3 -342
  223. package/dist/utils-BxDanjP7.js +1 -0
  224. package/dist/utils-yc5uc46c.mjs +11 -0
  225. package/package.json +2 -2
  226. package/src/chart.tsx +7 -7
  227. package/src/setupTests.ts +5 -4
  228. package/dist/index-0ioNhtNM.mjs +0 -10
  229. package/dist/index-3j-XAIXT.mjs +0 -55
  230. package/dist/index-B2XtpfGY.js +0 -1
  231. package/dist/index-B39Lzq0v.js +0 -1
  232. package/dist/index-B7n6fy75.js +0 -1
  233. package/dist/index-B8dxbSWX.js +0 -41
  234. package/dist/index-BGIK9FQF.js +0 -1
  235. package/dist/index-BZPx6jYI.mjs +0 -8
  236. package/dist/index-BoNjHhm4.js +0 -1
  237. package/dist/index-BtZvtDmp.js +0 -1
  238. package/dist/index-Bv7qrYW6.mjs +0 -180
  239. package/dist/index-ByiPJW53.js +0 -5
  240. package/dist/index-C0dlIQIi.js +0 -1
  241. package/dist/index-C1qb0595.mjs +0 -27
  242. package/dist/index-C7HEunrh.mjs +0 -15
  243. package/dist/index-C8ni3LLa.js +0 -1
  244. package/dist/index-CCKe-Mpx.mjs +0 -6
  245. package/dist/index-CD6_IrA-.mjs +0 -10
  246. package/dist/index-CRyCZJLa.mjs +0 -677
  247. package/dist/index-CVx1AgNG.mjs +0 -615
  248. package/dist/index-Ce5TOFAK.js +0 -1
  249. package/dist/index-CeSLNJ60.mjs +0 -32
  250. package/dist/index-CefEQe_4.js +0 -1
  251. package/dist/index-Cj5hzyBi.js +0 -1
  252. package/dist/index-Cjj_rUPu.js +0 -1
  253. package/dist/index-Cl3G0jzM.js +0 -1
  254. package/dist/index-CwfE56Ep.mjs +0 -1545
  255. package/dist/index-CwyAfCwY.js +0 -1
  256. package/dist/index-CzY-WZXL.js +0 -1
  257. package/dist/index-D2HnlO3y.js +0 -1
  258. package/dist/index-DFdF7K7v.mjs +0 -50
  259. package/dist/index-DIsg7zU7.js +0 -1
  260. package/dist/index-DKN_vhyX.mjs +0 -32
  261. package/dist/index-DLcqcWxM.mjs +0 -29
  262. package/dist/index-DSxf1gN6.mjs +0 -118
  263. package/dist/index-DYxWvftI.js +0 -1
  264. package/dist/index-DaILh3TV.mjs +0 -32
  265. package/dist/index-Dfzl8TxY.mjs +0 -136
  266. package/dist/index-Dko2XdTk.js +0 -1
  267. package/dist/index-DlY82G31.mjs +0 -245
  268. package/dist/index-DnFcfnA9.mjs +0 -13
  269. package/dist/index-IZ2gq03c.mjs +0 -68
  270. package/dist/index-K9FzbxYw.mjs +0 -93
  271. package/dist/index-Le8p9oP4.mjs +0 -60
  272. package/dist/index-MQ0c3ZX_.js +0 -1
  273. package/dist/index-_XxjJPRD.js +0 -1
  274. package/dist/index-_wdrnYim.js +0 -1
  275. package/dist/index-jv3B4mTd.js +0 -1
  276. package/dist/index-kaM0u2Q1.js +0 -1
  277. package/dist/index-p6xVFRb4.mjs +0 -52
  278. package/dist/index-rKs9bXHr.mjs +0 -6
  279. package/dist/index-vuPgkS0V.mjs +0 -70
  280. package/dist/jsx-runtime-nZSsnGb7.js +0 -6
  281. package/dist/jsx-runtime-tc70JA_2.mjs +0 -264
  282. package/dist/theme-toggle-DXQGNfCe.js +0 -1
  283. package/dist/theme-toggle-tHXIbr8W.mjs +0 -79
  284. package/dist/toaster-C_S9hnXa.js +0 -1
  285. package/dist/toaster-k5DnQSsh.mjs +0 -118
  286. package/dist/utils-DY6fhrgS.mjs +0 -12
  287. package/dist/utils-cdbZV8DZ.js +0 -1
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./jsx-runtime-nZSsnGb7.js"),De=require("react"),Oe=require("react-dom"),Le=require("./index-D2HnlO3y.js"),f=require("./index-BtZvtDmp.js"),te=require("./index-Ce5TOFAK.js"),D=require("./index-_XxjJPRD.js"),Ae=require("./index-Dko2XdTk.js"),F=require("./index-B2XtpfGY.js"),ne=require("./index-CefEQe_4.js"),oe=require("./index-BGIK9FQF.js"),Fe=require("./index-BoNjHhm4.js"),Ve=require("./index-DYxWvftI.js"),K=require("./index-MQ0c3ZX_.js"),_=require("./index-CzY-WZXL.js"),Ke=require("./index-Cl3G0jzM.js"),$e=require("class-variance-authority"),He=require("lucide-react"),S=require("./utils-cdbZV8DZ.js");function ze(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const r=ze(De);var k="NavigationMenu",[U,re,qe]=oe.createCollection(k),[$,Ge,Ue]=oe.createCollection(k),[B]=Le.createContextScope(k,[qe,Ue]),[Be,y]=B(k),[We,Ye]=B(k),ie=r.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:o,onValueChange:s,defaultValue:a,delayDuration:c=200,skipDelayDuration:d=300,orientation:l="horizontal",dir:w,...u}=e,[p,M]=r.useState(null),h=D.useComposedRefs(t,N=>M(N)),g=Ae.useDirection(w),R=r.useRef(0),C=r.useRef(0),j=r.useRef(0),[b,v]=r.useState(!0),[x,m]=te.useControllableState({prop:o,onChange:N=>{const I=N!=="",V=d>0;I?(window.clearTimeout(j.current),V&&v(!1)):(window.clearTimeout(j.current),j.current=window.setTimeout(()=>v(!0),d)),s?.(N)},defaultProp:a??"",caller:k}),E=r.useCallback(()=>{window.clearTimeout(C.current),C.current=window.setTimeout(()=>m(""),150)},[m]),T=r.useCallback(N=>{window.clearTimeout(C.current),m(N)},[m]),P=r.useCallback(N=>{x===N?window.clearTimeout(C.current):R.current=window.setTimeout(()=>{window.clearTimeout(C.current),m(N)},c)},[x,m,c]);return r.useEffect(()=>()=>{window.clearTimeout(R.current),window.clearTimeout(C.current),window.clearTimeout(j.current)},[]),i.jsxRuntimeExports.jsx(se,{scope:n,isRootMenu:!0,value:x,dir:g,orientation:l,rootNavigationMenu:p,onTriggerEnter:N=>{window.clearTimeout(R.current),b?P(N):T(N)},onTriggerLeave:()=>{window.clearTimeout(R.current),E()},onContentEnter:()=>window.clearTimeout(C.current),onContentLeave:E,onItemSelect:N=>{m(I=>I===N?"":N)},onItemDismiss:()=>m(""),children:i.jsxRuntimeExports.jsx(f.Primitive.nav,{"aria-label":"Main","data-orientation":l,dir:g,...u,ref:h})})});ie.displayName=k;var H="NavigationMenuSub",Xe=r.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:o,onValueChange:s,defaultValue:a,orientation:c="horizontal",...d}=e,l=y(H,n),[w,u]=te.useControllableState({prop:o,onChange:s,defaultProp:a??"",caller:H});return i.jsxRuntimeExports.jsx(se,{scope:n,isRootMenu:!1,value:w,dir:l.dir,orientation:c,rootNavigationMenu:l.rootNavigationMenu,onTriggerEnter:p=>u(p),onItemSelect:p=>u(p),onItemDismiss:()=>u(""),children:i.jsxRuntimeExports.jsx(f.Primitive.div,{"data-orientation":c,...d,ref:t})})});Xe.displayName=H;var se=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:o,dir:s,orientation:a,children:c,value:d,onItemSelect:l,onItemDismiss:w,onTriggerEnter:u,onTriggerLeave:p,onContentEnter:M,onContentLeave:h}=e,[g,R]=r.useState(null),[C,j]=r.useState(new Map),[b,v]=r.useState(null);return i.jsxRuntimeExports.jsx(Be,{scope:t,isRootMenu:n,rootNavigationMenu:o,value:d,previousValue:Ve.usePrevious(d),baseId:ne.useId(),dir:s,orientation:a,viewport:g,onViewportChange:R,indicatorTrack:b,onIndicatorTrackChange:v,onTriggerEnter:_.useCallbackRef(u),onTriggerLeave:_.useCallbackRef(p),onContentEnter:_.useCallbackRef(M),onContentLeave:_.useCallbackRef(h),onItemSelect:_.useCallbackRef(l),onItemDismiss:_.useCallbackRef(w),onViewportContentChange:r.useCallback((x,m)=>{j(E=>(E.set(x,m),new Map(E)))},[]),onViewportContentRemove:r.useCallback(x=>{j(m=>m.has(x)?(m.delete(x),new Map(m)):m)},[]),children:i.jsxRuntimeExports.jsx(U.Provider,{scope:t,children:i.jsxRuntimeExports.jsx(We,{scope:t,items:C,children:c})})})},ae="NavigationMenuList",ce=r.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...o}=e,s=y(ae,n),a=i.jsxRuntimeExports.jsx(f.Primitive.ul,{"data-orientation":s.orientation,...o,ref:t});return i.jsxRuntimeExports.jsx(f.Primitive.div,{style:{position:"relative"},ref:s.onIndicatorTrackChange,children:i.jsxRuntimeExports.jsx(U.Slot,{scope:n,children:s.isRootMenu?i.jsxRuntimeExports.jsx(Re,{asChild:!0,children:a}):a})})});ce.displayName=ae;var ue="NavigationMenuItem",[Je,le]=B(ue),de=r.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:o,...s}=e,a=ne.useId(),c=o||a||"LEGACY_REACT_AUTO_VALUE",d=r.useRef(null),l=r.useRef(null),w=r.useRef(null),u=r.useRef(()=>{}),p=r.useRef(!1),M=r.useCallback((g="start")=>{if(d.current){u.current();const R=q(d.current);R.length&&X(g==="start"?R:R.reverse())}},[]),h=r.useCallback(()=>{if(d.current){const g=q(d.current);g.length&&(u.current=rt(g))}},[]);return i.jsxRuntimeExports.jsx(Je,{scope:n,value:c,triggerRef:l,contentRef:d,focusProxyRef:w,wasEscapeCloseRef:p,onEntryKeyDown:M,onFocusProxyEnter:M,onRootContentClose:h,onContentFocusOutside:h,children:i.jsxRuntimeExports.jsx(f.Primitive.li,{...s,ref:t})})});de.displayName=ue;var z="NavigationMenuTrigger",ve=r.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:o,...s}=e,a=y(z,e.__scopeNavigationMenu),c=le(z,e.__scopeNavigationMenu),d=r.useRef(null),l=D.useComposedRefs(d,c.triggerRef,t),w=we(a.baseId,c.value),u=Ne(a.baseId,c.value),p=r.useRef(!1),M=r.useRef(!1),h=c.value===a.value;return i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[i.jsxRuntimeExports.jsx(U.ItemSlot,{scope:n,value:c.value,children:i.jsxRuntimeExports.jsx(Ee,{asChild:!0,children:i.jsxRuntimeExports.jsx(f.Primitive.button,{id:w,disabled:o,"data-disabled":o?"":void 0,"data-state":J(h),"aria-expanded":h,"aria-controls":u,...s,ref:l,onPointerEnter:f.composeEventHandlers(e.onPointerEnter,()=>{M.current=!1,c.wasEscapeCloseRef.current=!1}),onPointerMove:f.composeEventHandlers(e.onPointerMove,A(()=>{o||M.current||c.wasEscapeCloseRef.current||p.current||(a.onTriggerEnter(c.value),p.current=!0)})),onPointerLeave:f.composeEventHandlers(e.onPointerLeave,A(()=>{o||(a.onTriggerLeave(),p.current=!1)})),onClick:f.composeEventHandlers(e.onClick,()=>{a.onItemSelect(c.value),M.current=h}),onKeyDown:f.composeEventHandlers(e.onKeyDown,g=>{const C={horizontal:"ArrowDown",vertical:a.dir==="rtl"?"ArrowLeft":"ArrowRight"}[a.orientation];h&&g.key===C&&(c.onEntryKeyDown(),g.preventDefault())})})})}),h&&i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[i.jsxRuntimeExports.jsx(Ke.Root,{"aria-hidden":!0,tabIndex:0,ref:c.focusProxyRef,onFocus:g=>{const R=c.contentRef.current,C=g.relatedTarget,j=C===d.current,b=R?.contains(C);(j||!b)&&c.onFocusProxyEnter(j?"start":"end")}}),a.viewport&&i.jsxRuntimeExports.jsx("span",{"aria-owns":u})]})]})});ve.displayName=z;var Qe="NavigationMenuLink",Z="navigationMenu.linkSelect",fe=r.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:o,onSelect:s,...a}=e;return i.jsxRuntimeExports.jsx(Ee,{asChild:!0,children:i.jsxRuntimeExports.jsx(f.Primitive.a,{"data-active":o?"":void 0,"aria-current":o?"page":void 0,...a,ref:t,onClick:f.composeEventHandlers(e.onClick,c=>{const d=c.target,l=new CustomEvent(Z,{bubbles:!0,cancelable:!0});if(d.addEventListener(Z,w=>s?.(w),{once:!0}),f.dispatchDiscreteCustomEvent(d,l),!l.defaultPrevented&&!c.metaKey){const w=new CustomEvent(L,{bubbles:!0,cancelable:!0});f.dispatchDiscreteCustomEvent(d,w)}},{checkForDefaultPrevented:!1})})})});fe.displayName=Qe;var W="NavigationMenuIndicator",me=r.forwardRef((e,t)=>{const{forceMount:n,...o}=e,s=y(W,e.__scopeNavigationMenu),a=!!s.value;return s.indicatorTrack?Oe.createPortal(i.jsxRuntimeExports.jsx(F.Presence,{present:n||a,children:i.jsxRuntimeExports.jsx(Ze,{...o,ref:t})}),s.indicatorTrack):null});me.displayName=W;var Ze=r.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...o}=e,s=y(W,n),a=re(n),[c,d]=r.useState(null),[l,w]=r.useState(null),u=s.orientation==="horizontal",p=!!s.value;r.useEffect(()=>{const g=a().find(R=>R.value===s.value)?.ref.current;g&&d(g)},[a,s.value]);const M=()=>{c&&w({size:u?c.offsetWidth:c.offsetHeight,offset:u?c.offsetLeft:c.offsetTop})};return G(c,M),G(s.indicatorTrack,M),l?i.jsxRuntimeExports.jsx(f.Primitive.div,{"aria-hidden":!0,"data-state":p?"visible":"hidden","data-orientation":s.orientation,...o,ref:t,style:{position:"absolute",...u?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`},...o.style}}):null}),O="NavigationMenuContent",pe=r.forwardRef((e,t)=>{const{forceMount:n,...o}=e,s=y(O,e.__scopeNavigationMenu),a=le(O,e.__scopeNavigationMenu),c=D.useComposedRefs(a.contentRef,t),d=a.value===s.value,l={value:a.value,triggerRef:a.triggerRef,focusProxyRef:a.focusProxyRef,wasEscapeCloseRef:a.wasEscapeCloseRef,onContentFocusOutside:a.onContentFocusOutside,onRootContentClose:a.onRootContentClose,...o};return s.viewport?i.jsxRuntimeExports.jsx(et,{forceMount:n,...l,ref:c}):i.jsxRuntimeExports.jsx(F.Presence,{present:n||d,children:i.jsxRuntimeExports.jsx(xe,{"data-state":J(d),...l,ref:c,onPointerEnter:f.composeEventHandlers(e.onPointerEnter,s.onContentEnter),onPointerLeave:f.composeEventHandlers(e.onPointerLeave,A(s.onContentLeave)),style:{pointerEvents:!d&&s.isRootMenu?"none":void 0,...l.style}})})});pe.displayName=O;var et=r.forwardRef((e,t)=>{const n=y(O,e.__scopeNavigationMenu),{onViewportContentChange:o,onViewportContentRemove:s}=n;return K.useLayoutEffect2(()=>{o(e.value,{ref:t,...e})},[e,t,o]),K.useLayoutEffect2(()=>()=>s(e.value),[e.value,s]),null}),L="navigationMenu.rootContentDismiss",xe=r.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:o,triggerRef:s,focusProxyRef:a,wasEscapeCloseRef:c,onRootContentClose:d,onContentFocusOutside:l,...w}=e,u=y(O,n),p=r.useRef(null),M=D.useComposedRefs(p,t),h=we(u.baseId,o),g=Ne(u.baseId,o),R=re(n),C=r.useRef(null),{onItemDismiss:j}=u;r.useEffect(()=>{const v=p.current;if(u.isRootMenu&&v){const x=()=>{j(),d(),v.contains(document.activeElement)&&s.current?.focus()};return v.addEventListener(L,x),()=>v.removeEventListener(L,x)}},[u.isRootMenu,e.value,s,j,d]);const b=r.useMemo(()=>{const x=R().map(I=>I.value);u.dir==="rtl"&&x.reverse();const m=x.indexOf(u.value),E=x.indexOf(u.previousValue),T=o===u.value,P=E===x.indexOf(o);if(!T&&!P)return C.current;const N=(()=>{if(m!==E){if(T&&E!==-1)return m>E?"from-end":"from-start";if(P&&m!==-1)return m>E?"to-start":"to-end"}return null})();return C.current=N,N},[u.previousValue,u.value,u.dir,R,o]);return i.jsxRuntimeExports.jsx(Re,{asChild:!0,children:i.jsxRuntimeExports.jsx(Fe.DismissableLayer,{id:g,"aria-labelledby":h,"data-motion":b,"data-orientation":u.orientation,...w,ref:M,disableOutsidePointerEvents:!1,onDismiss:()=>{const v=new Event(L,{bubbles:!0,cancelable:!0});p.current?.dispatchEvent(v)},onFocusOutside:f.composeEventHandlers(e.onFocusOutside,v=>{l();const x=v.target;u.rootNavigationMenu?.contains(x)&&v.preventDefault()}),onPointerDownOutside:f.composeEventHandlers(e.onPointerDownOutside,v=>{const x=v.target,m=R().some(T=>T.ref.current?.contains(x)),E=u.isRootMenu&&u.viewport?.contains(x);(m||E||!u.isRootMenu)&&v.preventDefault()}),onKeyDown:f.composeEventHandlers(e.onKeyDown,v=>{const x=v.altKey||v.ctrlKey||v.metaKey;if(v.key==="Tab"&&!x){const E=q(v.currentTarget),T=document.activeElement,P=E.findIndex(V=>V===T),I=v.shiftKey?E.slice(0,P).reverse():E.slice(P+1,E.length);X(I)?v.preventDefault():a.current?.focus()}}),onEscapeKeyDown:f.composeEventHandlers(e.onEscapeKeyDown,v=>{c.current=!0})})})}),Y="NavigationMenuViewport",ge=r.forwardRef((e,t)=>{const{forceMount:n,...o}=e,a=!!y(Y,e.__scopeNavigationMenu).value;return i.jsxRuntimeExports.jsx(F.Presence,{present:n||a,children:i.jsxRuntimeExports.jsx(tt,{...o,ref:t})})});ge.displayName=Y;var tt=r.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:o,...s}=e,a=y(Y,n),c=D.useComposedRefs(t,a.onViewportChange),d=Ye(O,e.__scopeNavigationMenu),[l,w]=r.useState(null),[u,p]=r.useState(null),M=l?l?.width+"px":void 0,h=l?l?.height+"px":void 0,g=!!a.value,R=g?a.value:a.previousValue;return G(u,()=>{u&&w({width:u.offsetWidth,height:u.offsetHeight})}),i.jsxRuntimeExports.jsx(f.Primitive.div,{"data-state":J(g),"data-orientation":a.orientation,...s,ref:c,style:{pointerEvents:!g&&a.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":M,"--radix-navigation-menu-viewport-height":h,...s.style},onPointerEnter:f.composeEventHandlers(e.onPointerEnter,a.onContentEnter),onPointerLeave:f.composeEventHandlers(e.onPointerLeave,A(a.onContentLeave)),children:Array.from(d.items).map(([j,{ref:b,forceMount:v,...x}])=>{const m=R===j;return i.jsxRuntimeExports.jsx(F.Presence,{present:v||m,children:i.jsxRuntimeExports.jsx(xe,{...x,ref:D.composeRefs(b,E=>{m&&E&&p(E)})})},j)})})}),nt="FocusGroup",Re=r.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...o}=e,s=y(nt,n);return i.jsxRuntimeExports.jsx($.Provider,{scope:n,children:i.jsxRuntimeExports.jsx($.Slot,{scope:n,children:i.jsxRuntimeExports.jsx(f.Primitive.div,{dir:s.dir,...o,ref:t})})})}),ee=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],ot="FocusGroupItem",Ee=r.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...o}=e,s=Ge(n),a=y(ot,n);return i.jsxRuntimeExports.jsx($.ItemSlot,{scope:n,children:i.jsxRuntimeExports.jsx(f.Primitive.button,{...o,ref:t,onKeyDown:f.composeEventHandlers(e.onKeyDown,c=>{if(["Home","End",...ee].includes(c.key)){let l=s().map(p=>p.ref.current);if([a.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(c.key)&&l.reverse(),ee.includes(c.key)){const p=l.indexOf(c.currentTarget);l=l.slice(p+1)}setTimeout(()=>X(l)),c.preventDefault()}})})})});function q(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const s=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||s?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function X(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function rt(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function G(e,t){const n=_.useCallbackRef(t);K.useLayoutEffect2(()=>{let o=0;if(e){const s=new ResizeObserver(()=>{cancelAnimationFrame(o),o=window.requestAnimationFrame(n)});return s.observe(e),()=>{window.cancelAnimationFrame(o),s.unobserve(e)}}},[e,n])}function J(e){return e?"open":"closed"}function we(e,t){return`${e}-trigger-${t}`}function Ne(e,t){return`${e}-content-${t}`}function A(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Ce=ie,Me=ce,it=de,he=ve,st=fe,je=me,ye=pe,be=ge;const Te=r.forwardRef(({className:e,children:t,...n},o)=>i.jsxRuntimeExports.jsxs(Ce,{ref:o,className:S.cn("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...n,children:[t,i.jsxRuntimeExports.jsx(Q,{})]}));Te.displayName=Ce?.displayName||"NavigationMenu";const Ie=r.forwardRef(({className:e,...t},n)=>i.jsxRuntimeExports.jsx(Me,{ref:n,className:S.cn("group flex flex-1 list-none items-center justify-center space-x-1",e),...t}));Ie.displayName=Me?.displayName||"NavigationMenuList";const at=it,Pe=$e.cva("group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent"),_e=r.forwardRef(({className:e,children:t,...n},o)=>i.jsxRuntimeExports.jsxs(he,{ref:o,className:S.cn(Pe(),"group",e),...n,children:[t," ",i.jsxRuntimeExports.jsx(He.ChevronDown,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));_e.displayName=he?.displayName||"NavigationMenuTrigger";const Se=r.forwardRef(({className:e,...t},n)=>i.jsxRuntimeExports.jsx(ye,{ref:n,className:S.cn("data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full md:absolute md:w-auto",e),...t}));Se.displayName=ye?.displayName||"NavigationMenuContent";const ct=st,Q=r.forwardRef(({className:e,...t},n)=>i.jsxRuntimeExports.jsx("div",{className:S.cn("absolute top-full left-0 flex justify-center"),children:i.jsxRuntimeExports.jsx(be,{className:S.cn("origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:n,...t})}));Q.displayName=be?.displayName||"NavigationMenuViewport";const ke=r.forwardRef(({className:e,...t},n)=>i.jsxRuntimeExports.jsx(je,{ref:n,className:S.cn("data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden",e),...t,children:i.jsxRuntimeExports.jsx("div",{className:"bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md"})}));ke.displayName=je?.displayName||"NavigationMenuIndicator";exports.NavigationMenu=Te;exports.NavigationMenuContent=Se;exports.NavigationMenuIndicator=ke;exports.NavigationMenuItem=at;exports.NavigationMenuLink=ct;exports.NavigationMenuList=Ie;exports.NavigationMenuTrigger=_e;exports.NavigationMenuViewport=Q;exports.navigationMenuTriggerStyle=Pe;
1
+ "use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./navigation-menu-so6EvLAY.js`);exports.NavigationMenu=e.t,exports.NavigationMenuContent=e.n,exports.NavigationMenuIndicator=e.r,exports.NavigationMenuItem=e.i,exports.NavigationMenuLink=e.a,exports.NavigationMenuList=e.o,exports.NavigationMenuTrigger=e.s,exports.NavigationMenuViewport=e.c,exports.navigationMenuTriggerStyle=e.l;