@voidzero-dev/vitepress-theme 0.1.44 → 0.1.45

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 (374) hide show
  1. package/dist/index.d.ts +2 -0
  2. package/dist/index100.js +12 -12
  3. package/dist/index102.js +7 -7
  4. package/dist/index104.js +8 -8
  5. package/dist/index108.js +4 -4
  6. package/dist/index122.js +5 -5
  7. package/dist/index131.js +4 -4
  8. package/dist/index138.js +2 -2
  9. package/dist/index140.js +1 -1
  10. package/dist/index150.js +1 -1
  11. package/dist/index151.js +26 -3
  12. package/dist/index152.js +30 -5324
  13. package/dist/index153.js +26 -2
  14. package/dist/index154.js +23 -81
  15. package/dist/index155.js +23 -63
  16. package/dist/index156.js +22 -49
  17. package/dist/index157.js +195 -74
  18. package/dist/index158.js +28 -26
  19. package/dist/index159.js +41 -29
  20. package/dist/index160.js +5 -26
  21. package/dist/index161.js +3 -26
  22. package/dist/index162.js +5 -26
  23. package/dist/index163.js +34 -22
  24. package/dist/index164.js +5 -197
  25. package/dist/index165.js +2 -2
  26. package/dist/index166.js +2 -2
  27. package/dist/index167.js +2 -2
  28. package/dist/index169.js +135 -2
  29. package/dist/index171.js +2 -2
  30. package/dist/index172.js +2 -2
  31. package/dist/index173.js +2 -5
  32. package/dist/index174.js +2 -129
  33. package/dist/index175.js +54 -0
  34. package/dist/index176.js +2 -2
  35. package/dist/index177.js +2 -2
  36. package/dist/index178.js +2 -2
  37. package/dist/index179.js +2 -2
  38. package/dist/index180.js +65536 -2
  39. package/dist/index181.js +7 -0
  40. package/dist/index182.js +2 -135
  41. package/dist/index183.js +4 -0
  42. package/dist/index184.js +2 -3
  43. package/dist/index185.js +2 -2
  44. package/dist/index186.js +2 -2
  45. package/dist/index187.js +1 -1
  46. package/dist/index188.js +2 -2
  47. package/dist/index189.js +2 -2
  48. package/dist/index190.js +2 -2
  49. package/dist/index191.js +2 -2
  50. package/dist/index192.js +2 -2
  51. package/dist/index193.js +1 -1
  52. package/dist/index194.js +2 -2
  53. package/dist/index195.js +5 -34
  54. package/dist/index196.js +4 -1
  55. package/dist/index197.js +5 -2
  56. package/dist/index198.js +75 -2
  57. package/dist/index200.js +5 -2
  58. package/dist/index201.js +2 -2
  59. package/dist/index202.js +2 -2
  60. package/dist/index203.js +2 -2
  61. package/dist/index204.js +2 -2
  62. package/dist/index205.js +2 -2
  63. package/dist/index206.js +2 -2
  64. package/dist/index207.js +2 -2
  65. package/dist/index208.js +2 -22
  66. package/dist/index209.js +2 -124
  67. package/dist/index210.js +2 -2
  68. package/dist/index211.js +2 -33
  69. package/dist/index212.js +2 -1202
  70. package/dist/index213.js +2 -52
  71. package/dist/index214.js +3 -44
  72. package/dist/index215.js +2 -53
  73. package/dist/index216.js +2 -2587
  74. package/dist/index217.js +1 -1
  75. package/dist/index218.js +2 -2
  76. package/dist/index219.js +34 -2
  77. package/dist/index220.js +2 -2
  78. package/dist/index221.js +2 -7207
  79. package/dist/index222.js +2 -1735
  80. package/dist/index223.js +2 -439
  81. package/dist/index224.js +2 -14
  82. package/dist/index225.js +2 -65536
  83. package/dist/index226.js +2 -5
  84. package/dist/index227.js +5 -2
  85. package/dist/index228.js +1 -1
  86. package/dist/index229.js +2 -4
  87. package/dist/index23.js +31 -34
  88. package/dist/index230.js +71 -315
  89. package/dist/index231.js +82 -2
  90. package/dist/index232.js +2 -1014
  91. package/dist/index233.js +2 -2
  92. package/dist/index234.js +2 -2
  93. package/dist/index235.js +2 -2
  94. package/dist/index236.js +2 -2
  95. package/dist/index237.js +2 -2
  96. package/dist/index238.js +2 -2
  97. package/dist/index239.js +83 -2
  98. package/dist/index240.js +2 -2
  99. package/dist/index241.js +35 -2
  100. package/dist/index243.js +16 -5
  101. package/dist/index245.js +28 -72
  102. package/dist/index247.js +2 -4
  103. package/dist/index248.js +13 -33
  104. package/dist/index25.js +17 -17
  105. package/dist/index250.js +3 -16
  106. package/dist/index251.js +317 -0
  107. package/dist/index252.js +2 -31
  108. package/dist/index253.js +6 -0
  109. package/dist/index254.js +7207 -3
  110. package/dist/index255.js +1735 -15
  111. package/dist/index256.js +131 -0
  112. package/dist/index258.js +446 -2
  113. package/dist/index259.js +2 -2
  114. package/dist/index260.js +70 -2
  115. package/dist/index261.js +5 -2
  116. package/dist/index262.js +2 -2
  117. package/dist/index263.js +29 -2
  118. package/dist/index265.js +30 -28
  119. package/dist/index266.js +25 -41
  120. package/dist/index267.js +5 -3
  121. package/dist/index268.js +4 -4
  122. package/dist/index269.js +5 -71
  123. package/dist/index270.js +32 -5
  124. package/dist/index271.js +5 -82
  125. package/dist/index272.js +5 -38
  126. package/dist/index273.js +5 -2
  127. package/dist/index274.js +5 -5
  128. package/dist/index275.js +5 -83
  129. package/dist/index276.js +5 -10
  130. package/dist/index277.js +61 -6
  131. package/dist/index278.js +3 -5
  132. package/dist/index279.js +407 -4
  133. package/dist/index28.js +1 -1
  134. package/dist/index281.js +61 -32
  135. package/dist/index282.js +26 -9
  136. package/dist/index284.js +2 -58
  137. package/dist/index285.js +2 -39
  138. package/dist/index286.js +46 -20
  139. package/dist/index287.js +110 -23
  140. package/dist/index288.js +62 -10
  141. package/dist/index29.js +2 -2
  142. package/dist/index290.js +32 -36
  143. package/dist/index292.js +15 -88
  144. package/dist/index294.js +94 -5
  145. package/dist/index296.js +27 -5
  146. package/dist/index298.js +50 -5
  147. package/dist/index30.js +4 -4
  148. package/dist/index300.js +54 -61
  149. package/dist/{index311.js → index302.js} +1 -1
  150. package/dist/{index362.js → index304.js} +1 -1
  151. package/dist/index305.js +18 -26
  152. package/dist/{index361.js → index306.js} +1 -1
  153. package/dist/index307.js +22 -50
  154. package/dist/index309.js +27 -54
  155. package/dist/{index358.js → index310.js} +1 -1
  156. package/dist/{index359.js → index312.js} +2 -2
  157. package/dist/index314.js +5 -112
  158. package/dist/index315.js +5 -30
  159. package/dist/index316.js +5 -26
  160. package/dist/index317.js +13 -2
  161. package/dist/index318.js +5 -2
  162. package/dist/index319.js +3 -3
  163. package/dist/index320.js +5 -26
  164. package/dist/index321.js +30 -0
  165. package/dist/index323.js +83 -5
  166. package/dist/index325.js +21 -59
  167. package/dist/index327.js +73 -28
  168. package/dist/index329.js +50 -5
  169. package/dist/index331.js +24 -27
  170. package/dist/index333.js +4 -2
  171. package/dist/index334.js +5 -407
  172. package/dist/{index365.js → index335.js} +1 -1
  173. package/dist/index336.js +5 -62
  174. package/dist/index337.js +97 -69
  175. package/dist/index339.js +29 -5
  176. package/dist/index341.js +25 -13
  177. package/dist/{index369.js → index343.js} +4 -4
  178. package/dist/{index380.js → index345.js} +1 -1
  179. package/dist/index346.js +12 -48
  180. package/dist/{index385.js → index347.js} +1 -1
  181. package/dist/index348.js +28 -5
  182. package/dist/index349.js +5 -83
  183. package/dist/{index382.js → index350.js} +3 -3
  184. package/dist/index352.js +2 -28
  185. package/dist/{index388.js → index353.js} +1 -1
  186. package/dist/index355.js +3 -20
  187. package/dist/{index391.js → index356.js} +2 -2
  188. package/dist/index42.js +4 -4
  189. package/dist/index44.js +1 -1
  190. package/dist/index48.js +4 -4
  191. package/dist/index50.js +2 -2
  192. package/dist/index52.js +8 -8
  193. package/dist/index54.js +2 -2
  194. package/dist/index59.js +1 -1
  195. package/dist/index6.js +1 -1
  196. package/dist/index64.js +1 -1
  197. package/dist/index7.js +2 -2
  198. package/dist/index70.js +4 -4
  199. package/dist/index8.js +2 -2
  200. package/dist/index80.js +1 -1
  201. package/dist/index9.js +1 -1
  202. package/dist/index94.js +2 -2
  203. package/dist/index96.js +8 -8
  204. package/dist/vitepress/components/oss/Footer.vue.d.ts +2 -0
  205. package/dist/vitepress/components/oss/Header.vue.d.ts +2 -0
  206. package/dist/vitepress/components/oss/HeadingSection.vue.d.ts +6 -0
  207. package/dist/vitepress/components/oss/Hero.vue.d.ts +2 -0
  208. package/dist/vitepress/components/oss/TrustedBy.vue.d.ts +2 -0
  209. package/dist/vitepress/components/shared/CodeGroup.vue.d.ts +10 -0
  210. package/dist/vitepress/components/shared/Eyebrow.vue.d.ts +5 -0
  211. package/dist/vitepress/components/shared/LogoGrid.vue.d.ts +11 -0
  212. package/dist/vitepress/components/shared/RiveAnimation.vue.d.ts +22 -0
  213. package/dist/vitepress/components/shared/ShaderBackground.vue.d.ts +2 -0
  214. package/dist/vitepress/components/shared/Spacer.vue.d.ts +2 -0
  215. package/dist/vitepress/components/shared/Terminal.vue.d.ts +4 -0
  216. package/dist/vitepress/components/shared/terminal-animations/TerminalAnimation1.vue.d.ts +5 -0
  217. package/dist/vitepress/components/shared/terminal-animations/TerminalAnimation2.vue.d.ts +5 -0
  218. package/dist/vitepress/components/shared/terminal-animations/TerminalAnimation3.vue.d.ts +5 -0
  219. package/dist/vitepress/components/shared/terminal-animations/TerminalAnimation4.vue.d.ts +5 -0
  220. package/dist/vitepress/components/shared/terminal-animations/TerminalAnimation5.vue.d.ts +5 -0
  221. package/dist/vitepress/components/shared/terminal-animations/TerminalAnimation6.vue.d.ts +5 -0
  222. package/dist/vitepress/components/vite/Community.vue.d.ts +2 -0
  223. package/dist/vitepress/components/vite/FeatureGrid.vue.d.ts +2 -0
  224. package/dist/vitepress/components/vite/FeaturePanel1.vue.d.ts +2 -0
  225. package/dist/vitepress/components/vite/FeaturePanel2.vue.d.ts +2 -0
  226. package/dist/vitepress/components/vite/FeaturePanel3.vue.d.ts +2 -0
  227. package/dist/vitepress/components/vite/FeaturePanel4.vue.d.ts +2 -0
  228. package/dist/vitepress/components/vite/Frameworks.vue.d.ts +2 -0
  229. package/dist/vitepress/components/vite/Sponsors.vue.d.ts +9 -0
  230. package/dist/vitepress/components/viteplus/Header.vue.d.ts +17 -0
  231. package/dist/vitepress/components/vitepress-default/Layout.vue.d.ts +43 -0
  232. package/dist/vitepress/components/vitepress-default/NotFound.vue.d.ts +2 -0
  233. package/dist/vitepress/components/vitepress-default/VPAlgoliaSearchBox.vue.d.ts +6 -0
  234. package/dist/vitepress/components/vitepress-default/VPBackdrop.vue.d.ts +5 -0
  235. package/dist/vitepress/components/vitepress-default/VPBadge.vue.d.ts +23 -0
  236. package/dist/vitepress/components/vitepress-default/VPButton.vue.d.ts +29 -0
  237. package/dist/vitepress/components/vitepress-default/VPCarbonAds.vue.d.ts +8 -0
  238. package/dist/vitepress/components/vitepress-default/VPContent.vue.d.ts +39 -0
  239. package/dist/vitepress/components/vitepress-default/VPDoc.vue.d.ts +27 -0
  240. package/dist/vitepress/components/vitepress-default/VPDocAside.vue.d.ts +22 -0
  241. package/dist/vitepress/components/vitepress-default/VPDocAsideCarbonAds.vue.d.ts +6 -0
  242. package/dist/vitepress/components/vitepress-default/VPDocAsideOutline.vue.d.ts +5 -0
  243. package/dist/vitepress/components/vitepress-default/VPDocAsideSponsors.vue.d.ts +9 -0
  244. package/dist/vitepress/components/vitepress-default/VPDocFooter.vue.d.ts +17 -0
  245. package/dist/vitepress/components/vitepress-default/VPDocFooterLastUpdated.vue.d.ts +4 -0
  246. package/dist/vitepress/components/vitepress-default/VPDocOutlineItem.vue.d.ts +7 -0
  247. package/dist/vitepress/components/vitepress-default/VPFeature.vue.d.ts +12 -0
  248. package/dist/vitepress/components/vitepress-default/VPFeatures.vue.d.ts +15 -0
  249. package/dist/vitepress/components/vitepress-default/VPFlyout.vue.d.ts +21 -0
  250. package/dist/vitepress/components/vitepress-default/VPFooter.vue.d.ts +2 -0
  251. package/dist/vitepress/components/vitepress-default/VPHero.vue.d.ts +36 -0
  252. package/dist/vitepress/components/vitepress-default/VPHome.vue.d.ts +25 -0
  253. package/dist/vitepress/components/vitepress-default/VPHomeContent.vue.d.ts +17 -0
  254. package/dist/vitepress/components/vitepress-default/VPHomeFeatures.vue.d.ts +2 -0
  255. package/dist/vitepress/components/vitepress-default/VPHomeHero.vue.d.ts +21 -0
  256. package/dist/vitepress/components/vitepress-default/VPHomeSponsors.vue.d.ts +20 -0
  257. package/dist/vitepress/components/vitepress-default/VPImage.vue.d.ts +7 -0
  258. package/dist/vitepress/components/vitepress-default/VPLink.vue.d.ts +24 -0
  259. package/dist/vitepress/components/vitepress-default/VPLocalNav.vue.d.ts +9 -0
  260. package/dist/vitepress/components/vitepress-default/VPLocalNavOutlineDropdown.vue.d.ts +10 -0
  261. package/dist/vitepress/components/vitepress-default/VPLocalSearchBox.vue.d.ts +10 -0
  262. package/dist/vitepress/components/vitepress-default/VPMenu.vue.d.ts +18 -0
  263. package/dist/vitepress/components/vitepress-default/VPMenuGroup.vue.d.ts +17 -0
  264. package/dist/vitepress/components/vitepress-default/VPMenuLink.vue.d.ts +16 -0
  265. package/dist/vitepress/components/vitepress-default/VPNavBarAppearance.vue.d.ts +2 -0
  266. package/dist/vitepress/components/vitepress-default/VPNavBarMenu.vue.d.ts +2 -0
  267. package/dist/vitepress/components/vitepress-default/VPNavBarMenuGroup.vue.d.ts +6 -0
  268. package/dist/vitepress/components/vitepress-default/VPNavBarMenuLink.vue.d.ts +6 -0
  269. package/dist/vitepress/components/vitepress-default/VPNavBarSearch.vue.d.ts +2 -0
  270. package/dist/vitepress/components/vitepress-default/VPNavBarSearchButton.vue.d.ts +2 -0
  271. package/dist/vitepress/components/vitepress-default/VPNavBarSocialLinks.vue.d.ts +2 -0
  272. package/dist/vitepress/components/vitepress-default/VPNavBarTranslations.vue.d.ts +2 -0
  273. package/dist/vitepress/components/vitepress-default/VPPage.vue.d.ts +18 -0
  274. package/dist/vitepress/components/vitepress-default/VPSidebar.vue.d.ts +25 -0
  275. package/dist/vitepress/components/vitepress-default/VPSidebarGroup.vue.d.ts +6 -0
  276. package/dist/vitepress/components/vitepress-default/VPSidebarItem.vue.d.ts +7 -0
  277. package/dist/vitepress/components/vitepress-default/VPSkipLink.vue.d.ts +4 -0
  278. package/dist/vitepress/components/vitepress-default/VPSocialLink.vue.d.ts +11 -0
  279. package/dist/vitepress/components/vitepress-default/VPSocialLinks.vue.d.ts +9 -0
  280. package/dist/vitepress/components/vitepress-default/VPSponsors.vue.d.ts +17 -0
  281. package/dist/vitepress/components/vitepress-default/VPSponsorsGrid.vue.d.ts +16 -0
  282. package/dist/vitepress/components/vitepress-default/VPSwitch.vue.d.ts +17 -0
  283. package/dist/vitepress/components/vitepress-default/VPSwitchAppearance.vue.d.ts +2 -0
  284. package/dist/vitepress/components/vitepress-default/VPTeamMembers.vue.d.ts +9 -0
  285. package/dist/vitepress/components/vitepress-default/VPTeamMembersItem.vue.d.ts +9 -0
  286. package/dist/vitepress/components/vitepress-default/VPTeamPage.vue.d.ts +17 -0
  287. package/dist/vitepress/components/vitepress-default/VPTeamPageSection.vue.d.ts +19 -0
  288. package/dist/vitepress/components/vitepress-default/VPTeamPageTitle.vue.d.ts +18 -0
  289. package/dist/vitepress/components/voidzero/Footer.vue.d.ts +2 -0
  290. package/dist/vitepress/components/voidzero/Header.vue.d.ts +23 -0
  291. package/dist/vitepress/components/voidzero/Megamenu.vue.d.ts +16 -0
  292. package/dist/vitepress/components/voidzero/about/CareerCTA.vue.d.ts +2 -0
  293. package/dist/vitepress/components/voidzero/about/Hero.vue.d.ts +2 -0
  294. package/dist/vitepress/components/voidzero/about/Investors.vue.d.ts +2 -0
  295. package/dist/vitepress/components/voidzero/about/TeamGrid.vue.d.ts +16 -0
  296. package/dist/vitepress/components/voidzero/about/TeamSectionHeading.vue.d.ts +2 -0
  297. package/dist/vitepress/components/voidzero/blog/FeaturedArticles.vue.d.ts +29 -0
  298. package/dist/vitepress/components/voidzero/home/CaseStudySlider.vue.d.ts +5 -0
  299. package/dist/vitepress/components/voidzero/home/CustomersSectionHeading.vue.d.ts +2 -0
  300. package/dist/vitepress/components/voidzero/home/GitHubStats.vue.d.ts +7 -0
  301. package/dist/vitepress/components/voidzero/home/Hero.vue.d.ts +2 -0
  302. package/dist/vitepress/components/voidzero/home/Investors.vue.d.ts +2 -0
  303. package/dist/vitepress/components/voidzero/home/OpenSourceSectionHeading.vue.d.ts +2 -0
  304. package/dist/vitepress/components/voidzero/home/OpenSourceSectionProjects.vue.d.ts +2 -0
  305. package/dist/vitepress/components/voidzero/home/Resources.vue.d.ts +31 -0
  306. package/dist/vitepress/components/voidzero/home/Statistics.vue.d.ts +16 -0
  307. package/dist/vitepress/components/voidzero/home/StatisticsSectionHeading.vue.d.ts +2 -0
  308. package/dist/vitepress/components/voidzero/home/TeamCTA.vue.d.ts +2 -0
  309. package/dist/vitepress/components/voidzero/home/TrustedBy.vue.d.ts +2 -0
  310. package/dist/vitepress/components/voidzero/home/VitePlusSectionFeatures.vue.d.ts +2 -0
  311. package/dist/vitepress/components/voidzero/home/VitePlusSectionHeading.vue.d.ts +2 -0
  312. package/dist/vitepress/composables/vitepress-default/aside.d.ts +3 -0
  313. package/dist/vitepress/composables/vitepress-default/data.d.ts +3 -0
  314. package/dist/vitepress/composables/vitepress-default/edit-link.d.ts +4 -0
  315. package/dist/vitepress/composables/vitepress-default/flyout.d.ts +9 -0
  316. package/dist/vitepress/composables/vitepress-default/langs.d.ts +14 -0
  317. package/dist/vitepress/composables/vitepress-default/layout.d.ts +12 -0
  318. package/dist/vitepress/composables/vitepress-default/nav.d.ts +11 -0
  319. package/dist/vitepress/composables/vitepress-default/outline.d.ts +6 -0
  320. package/dist/vitepress/composables/vitepress-default/prev-next.d.ts +10 -0
  321. package/dist/vitepress/composables/vitepress-default/sidebar.d.ts +22 -0
  322. package/dist/vitepress/composables/vitepress-default/sponsor-grid.d.ts +10 -0
  323. package/dist/vitepress/index.d.ts +23 -0
  324. package/dist/vitepress/layouts/VPLayout.vue.d.ts +2 -0
  325. package/dist/vitepress/support/vitepress-default/app-utils.d.ts +10 -0
  326. package/dist/vitepress/support/vitepress-default/lru.d.ts +9 -0
  327. package/dist/vitepress/support/vitepress-default/shared-utils.d.ts +13 -0
  328. package/dist/vitepress/support/vitepress-default/sidebar.d.ts +24 -0
  329. package/dist/vitepress/support/vitepress-default/translation.d.ts +4 -0
  330. package/dist/vitepress/support/vitepress-default/utils.d.ts +3 -0
  331. package/package.json +1 -1
  332. package/dist/index168.js +0 -4
  333. package/dist/index170.js +0 -4
  334. package/dist/index199.js +0 -4
  335. package/dist/index242.js +0 -7
  336. package/dist/index244.js +0 -7
  337. package/dist/index257.js +0 -4
  338. package/dist/index264.js +0 -4
  339. package/dist/index280.js +0 -9
  340. package/dist/index283.js +0 -16
  341. package/dist/index289.js +0 -59
  342. package/dist/index291.js +0 -121
  343. package/dist/index293.js +0 -10
  344. package/dist/index295.js +0 -7
  345. package/dist/index297.js +0 -7
  346. package/dist/index299.js +0 -7
  347. package/dist/index301.js +0 -21
  348. package/dist/index303.js +0 -96
  349. package/dist/index313.js +0 -49
  350. package/dist/index322.js +0 -7
  351. package/dist/index324.js +0 -34
  352. package/dist/index330.js +0 -4
  353. package/dist/index338.js +0 -7
  354. package/dist/index340.js +0 -7
  355. package/dist/index342.js +0 -26
  356. package/dist/index344.js +0 -79
  357. package/dist/index351.js +0 -7
  358. package/dist/index357.js +0 -30
  359. package/dist/index363.js +0 -21
  360. package/dist/index364.js +0 -448
  361. package/dist/index366.js +0 -7
  362. package/dist/index367.js +0 -27
  363. package/dist/index371.js +0 -7
  364. package/dist/index372.js +0 -31
  365. package/dist/index374.js +0 -7
  366. package/dist/index375.js +0 -100
  367. package/dist/index377.js +0 -7
  368. package/dist/index378.js +0 -28
  369. package/dist/index381.js +0 -16
  370. package/dist/index384.js +0 -4
  371. package/dist/index386.js +0 -30
  372. package/dist/index387.js +0 -7
  373. package/dist/index390.js +0 -7
  374. /package/dist/{index354.js → index308.js} +0 -0
package/dist/index286.js CHANGED
@@ -1,23 +1,49 @@
1
- import { renderSlotFragments as s } from "./index278.js";
2
- import { defineComponent as d, Comment as l, mergeProps as f, cloneVNode as c } from "vue";
3
- const a = d({
4
- name: "PrimitiveSlot",
5
- inheritAttrs: !1,
6
- setup(u, { attrs: t, slots: o }) {
7
- return () => {
8
- if (!o.default) return null;
9
- const e = s(o.default()), n = e.findIndex((p) => p.type !== l);
10
- if (n === -1) return e;
11
- const r = e[n];
12
- delete r.props?.ref;
13
- const m = r.props ? f(t, r.props) : t, i = c({
14
- ...r,
15
- props: {}
16
- }, m);
17
- return e.length === 1 ? i : (e[n] = i, e);
18
- };
1
+ import { isActive as f } from "./index159.js";
2
+ import { ensureStartingSlash as o } from "./index158.js";
3
+ function m(r, t) {
4
+ if (Array.isArray(r)) return s(r);
5
+ if (r == null) return [];
6
+ t = o(t);
7
+ const i = Object.keys(r).sort((e, c) => c.split("/").length - e.split("/").length).find((e) => t.startsWith(o(e))), n = i ? r[i] : [];
8
+ return Array.isArray(n) ? s(n) : s(n.items, n.base);
9
+ }
10
+ function k(r) {
11
+ const t = [];
12
+ let i = 0;
13
+ for (const n in r) {
14
+ const e = r[n];
15
+ if (e.items) {
16
+ i = t.push(e);
17
+ continue;
18
+ }
19
+ t[i] || t.push({ items: [] }), t[i].items.push(e);
19
20
  }
20
- });
21
+ return t;
22
+ }
23
+ function p(r) {
24
+ const t = [];
25
+ function i(n) {
26
+ for (const e of n)
27
+ e.text && e.link && t.push({
28
+ text: e.text,
29
+ link: e.link,
30
+ docFooterText: e.docFooterText
31
+ }), e.items && i(e.items);
32
+ }
33
+ return i(r), t;
34
+ }
35
+ function u(r, t) {
36
+ return Array.isArray(t) ? t.some((i) => u(r, i)) : f(r, t.link) ? !0 : t.items ? u(r, t.items) : !1;
37
+ }
38
+ function s(r, t) {
39
+ return [...r].map((i) => {
40
+ const n = { ...i }, e = n.base || t;
41
+ return e && n.link && (n.link = e + n.link.replace(/^\//, e.endsWith("/") ? "" : "/")), n.items && (n.items = s(n.items, e)), n;
42
+ });
43
+ }
21
44
  export {
22
- a as Slot
45
+ p as getFlatSideBarLinks,
46
+ m as getSidebar,
47
+ k as getSidebarGroups,
48
+ u as hasActiveLink
23
49
  };
package/dist/index287.js CHANGED
@@ -1,27 +1,114 @@
1
- import { Slot as r } from "./index286.js";
2
- import { defineComponent as f, h as a } from "vue";
3
- const l = [
4
- "area",
5
- "img",
6
- "input"
7
- ], d = f({
8
- name: "Primitive",
9
- inheritAttrs: !1,
10
- props: {
11
- asChild: {
12
- type: Boolean,
13
- default: !1
14
- },
15
- as: {
16
- type: [String, Object],
17
- default: "div"
1
+ import { getScrollOffset as m } from "vitepress";
2
+ import { onMounted as y, onUpdated as g, onUnmounted as b } from "vue";
3
+ import { throttleAndDebounce as A } from "./index158.js";
4
+ import { useAside as w } from "./index308.js";
5
+ const L = /\b(?:VPBadge|header-anchor|footnote-ref|ignore-header)\b/, d = [];
6
+ function E(o) {
7
+ return typeof o.outline == "object" && !Array.isArray(o.outline) && o.outline.label || o.outlineTitle || "On this page";
8
+ }
9
+ function C(o) {
10
+ const t = [
11
+ ...document.querySelectorAll(
12
+ ".VPDoc h1, .VPDoc h2, .VPDoc h3, .VPDoc h4, .VPDoc h5, .VPDoc h6"
13
+ )
14
+ ].filter((e) => e.id && e.hasChildNodes()).map((e) => {
15
+ const r = Number(e.tagName[1]);
16
+ return {
17
+ element: e,
18
+ title: N(e),
19
+ link: "#" + e.id,
20
+ level: r
21
+ };
22
+ });
23
+ return k(t, o);
24
+ }
25
+ function N(o) {
26
+ let t = "";
27
+ for (const e of o.childNodes)
28
+ if (e.nodeType === 1) {
29
+ if (L.test(e.className)) continue;
30
+ t += e.textContent;
31
+ } else e.nodeType === 3 && (t += e.textContent);
32
+ return t.trim();
33
+ }
34
+ function k(o, t) {
35
+ if (t === !1)
36
+ return [];
37
+ const e = (typeof t == "object" && !Array.isArray(t) ? t.level : t) || 2, [r, l] = typeof e == "number" ? [e, e] : e === "deep" ? [2, 6] : e;
38
+ return H(o, r, l);
39
+ }
40
+ function S(o, t) {
41
+ const { isAsideEnabled: e } = w(), r = A(f, 100);
42
+ let l = null;
43
+ y(() => {
44
+ requestAnimationFrame(f), window.addEventListener("scroll", r);
45
+ }), g(() => {
46
+ n(location.hash);
47
+ }), b(() => {
48
+ window.removeEventListener("scroll", r);
49
+ });
50
+ function f() {
51
+ if (!e.value)
52
+ return;
53
+ const i = window.scrollY, c = window.innerHeight, p = document.body.offsetHeight, v = Math.abs(i + c - p) < 1, a = d.map(({ element: s, link: u }) => ({
54
+ link: u,
55
+ top: T(s)
56
+ })).filter(({ top: s }) => !Number.isNaN(s)).sort((s, u) => s.top - u.top);
57
+ if (!a.length) {
58
+ n(null);
59
+ return;
18
60
  }
19
- },
20
- setup(t, { attrs: i, slots: n }) {
21
- const e = t.asChild ? "template" : t.as;
22
- return typeof e == "string" && l.includes(e) ? () => a(e, i) : e !== "template" ? () => a(t.as, i, { default: n.default }) : () => a(r, i, { default: n.default });
61
+ if (i < 1) {
62
+ n(null);
63
+ return;
64
+ }
65
+ if (v) {
66
+ n(a[a.length - 1].link);
67
+ return;
68
+ }
69
+ let h = null;
70
+ for (const { link: s, top: u } of a) {
71
+ if (u > i + m() + 4)
72
+ break;
73
+ h = s;
74
+ }
75
+ n(h);
23
76
  }
24
- });
77
+ function n(i) {
78
+ l && l.classList.remove("active"), i == null ? l = null : l = o.value.querySelector(
79
+ `a[href="${decodeURIComponent(i)}"]`
80
+ );
81
+ const c = l;
82
+ c ? (c.classList.add("active"), t.value.style.top = c.offsetTop + 39 + "px", t.value.style.opacity = "1") : (t.value.style.top = "33px", t.value.style.opacity = "0");
83
+ }
84
+ }
85
+ function T(o) {
86
+ let t = 0;
87
+ for (; o !== document.body; ) {
88
+ if (o === null)
89
+ return NaN;
90
+ t += o.offsetTop, o = o.offsetParent;
91
+ }
92
+ return t;
93
+ }
94
+ function H(o, t, e) {
95
+ d.length = 0;
96
+ const r = [], l = [];
97
+ return o.forEach((f) => {
98
+ const n = { ...f, children: [] };
99
+ let i = l[l.length - 1];
100
+ for (; i && i.level >= n.level; )
101
+ l.pop(), i = l[l.length - 1];
102
+ if (n.element.classList.contains("ignore-header") || i && "shouldIgnore" in i) {
103
+ l.push({ level: n.level, shouldIgnore: !0 });
104
+ return;
105
+ }
106
+ n.level > e || n.level < t || (d.push({ element: n.element, link: n.link }), i ? i.children.push(n) : r.push(n), l.push(n));
107
+ }), r;
108
+ }
25
109
  export {
26
- d as Primitive
110
+ C as getHeaders,
111
+ k as resolveHeaders,
112
+ E as resolveTitle,
113
+ S as useActiveAnchor
27
114
  };
package/dist/index288.js CHANGED
@@ -1,12 +1,64 @@
1
- import { ref as n, computed as m } from "vue";
2
- import { unrefElement as r } from "@vueuse/core";
3
- function o() {
4
- const e = n(), t = m(() => ["#text", "#comment"].includes(e.value?.$el.nodeName) ? e.value?.$el.nextElementSibling : r(e));
5
- return {
6
- primitiveElement: e,
7
- currentElement: t
8
- };
9
- }
1
+ import { defineComponent as c, ref as r, createElementBlock as o, openBlock as l, createElementVNode as a, createCommentVNode as u, normalizeClass as f, createVNode as v, withCtx as p, renderSlot as x } from "vue";
2
+ import { useFlyout as y } from "./index309.js";
3
+ import b from "./index310.js";
4
+ const k = ["aria-expanded", "aria-label"], V = {
5
+ key: 0,
6
+ class: "flex items-center gap-1 leading-normal"
7
+ }, C = ["innerHTML"], M = {
8
+ key: 1,
9
+ class: "vpi-more-horizontal text-xl"
10
+ }, h = { class: "menu" }, F = /* @__PURE__ */ c({
11
+ __name: "VPFlyout",
12
+ props: {
13
+ icon: {},
14
+ button: {},
15
+ label: {},
16
+ items: {}
17
+ },
18
+ setup(e) {
19
+ const n = r(!1), s = r();
20
+ y({ el: s, onBlur: m });
21
+ function m() {
22
+ n.value = !1;
23
+ }
24
+ return (d, t) => (l(), o("div", {
25
+ class: "VPFlyout relative flex items-center",
26
+ ref_key: "el",
27
+ ref: s,
28
+ onMouseenter: t[1] || (t[1] = (i) => n.value = !0),
29
+ onMouseleave: t[2] || (t[2] = (i) => n.value = !1)
30
+ }, [
31
+ a("button", {
32
+ type: "button",
33
+ class: "flex items-center px-3 py-2 text-base font-sans text-primary dark:text-white hover:opacity-70 transition-opacity",
34
+ "aria-haspopup": "true",
35
+ "aria-expanded": n.value,
36
+ "aria-label": e.label,
37
+ onClick: t[0] || (t[0] = (i) => n.value = !n.value)
38
+ }, [
39
+ e.button || e.icon ? (l(), o("span", V, [
40
+ e.icon ? (l(), o("span", {
41
+ key: 0,
42
+ class: f(e.icon)
43
+ }, null, 2)) : u("", !0),
44
+ e.button ? (l(), o("span", {
45
+ key: 1,
46
+ innerHTML: e.button
47
+ }, null, 8, C)) : u("", !0),
48
+ t[3] || (t[3] = a("span", { class: "vpi-chevron-down text-sm" }, null, -1))
49
+ ])) : (l(), o("span", M))
50
+ ], 8, k),
51
+ a("div", h, [
52
+ v(b, { items: e.items }, {
53
+ default: p(() => [
54
+ x(d.$slots, "default", {}, void 0, !0)
55
+ ]),
56
+ _: 3
57
+ }, 8, ["items"])
58
+ ])
59
+ ], 544));
60
+ }
61
+ });
10
62
  export {
11
- o as usePrimitiveElement
63
+ F as default
12
64
  };
package/dist/index29.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as r, createElementBlock as s, openBlock as l, createStaticVNode as a, createElementVNode as t, createTextVNode as o, toDisplayString as i } from "vue";
2
- import n from "./index185.js";
3
- import p from "./index186.js";
2
+ import n from "./index171.js";
3
+ import p from "./index172.js";
4
4
  import c from "./index117.js";
5
5
  import d from "./index119.js";
6
6
  import x from "./index120.js";
package/dist/index290.js CHANGED
@@ -1,38 +1,34 @@
1
- import { getActiveElement as n } from "./index277.js";
2
- const u = "rovingFocusGroup.onEntryFocus", s = {
3
- bubbles: !1,
4
- cancelable: !0
5
- }, i = {
6
- ArrowLeft: "prev",
7
- ArrowUp: "prev",
8
- ArrowRight: "next",
9
- ArrowDown: "next",
10
- PageUp: "first",
11
- Home: "first",
12
- PageDown: "last",
13
- End: "last"
14
- };
15
- function c(r, t) {
16
- return t !== "rtl" ? r : r === "ArrowLeft" ? "ArrowRight" : r === "ArrowRight" ? "ArrowLeft" : r;
17
- }
18
- function w(r, t, e) {
19
- const o = c(r.key, e);
20
- if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(o)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(o)))
21
- return i[o];
22
- }
23
- function A(r, t = !1) {
24
- const e = n();
25
- for (const o of r)
26
- if (o === e || (o.focus({ preventScroll: t }), n() !== e)) return;
27
- }
28
- function l(r, t) {
29
- return r.map((e, o) => r[(t + o) % r.length]);
30
- }
1
+ import { defineComponent as r, computed as a, createElementBlock as s, openBlock as c, createVNode as m, mergeProps as l, withCtx as f, createElementVNode as p } from "vue";
2
+ import { useData as u } from "./index161.js";
3
+ import d from "./index8.js";
4
+ const h = { class: "VPMenuLink" }, x = ["innerHTML"], v = /* @__PURE__ */ r({
5
+ inheritAttrs: !1,
6
+ __name: "VPMenuLink",
7
+ props: {
8
+ item: {}
9
+ },
10
+ setup(e) {
11
+ const t = e, { page: n } = u(), i = a(
12
+ () => typeof t.item.link == "function" ? t.item.link(n.value) : t.item.link
13
+ );
14
+ return (o, k) => (c(), s("div", h, [
15
+ m(d, l(o.$attrs, {
16
+ class: "flex items-center justify-between rounded-md px-3 py-2 text-base font-sans text-primary dark:text-white text-left whitespace-nowrap hover:opacity-70 transition-opacity",
17
+ href: i.value,
18
+ target: e.item.target,
19
+ rel: e.item.rel,
20
+ "no-icon": e.item.noIcon
21
+ }), {
22
+ default: f(() => [
23
+ p("span", {
24
+ innerHTML: e.item.text
25
+ }, null, 8, x)
26
+ ]),
27
+ _: 1
28
+ }, 16, ["href", "target", "rel", "no-icon"])
29
+ ]));
30
+ }
31
+ });
31
32
  export {
32
- u as ENTRY_FOCUS,
33
- s as EVENT_OPTIONS,
34
- i as MAP_KEY_TO_FOCUS_INTENT,
35
- A as focusFirst,
36
- w as getFocusIntent,
37
- l as wrapArray
33
+ v as default
38
34
  };
package/dist/index292.js CHANGED
@@ -1,94 +1,21 @@
1
- import { useId as b } from "./index282.js";
2
- import { Primitive as y } from "./index287.js";
3
- import { useCollection as I } from "./index289.js";
4
- import { getFocusIntent as g, wrapArray as F, focusFirst as K } from "./index290.js";
5
- import { injectRovingFocusGroupContext as S } from "./index291.js";
6
- import { defineComponent as h, computed as u, onMounted as C, onUnmounted as w, createBlock as T, openBlock as q, unref as i, withCtx as s, createVNode as B, renderSlot as x, nextTick as R } from "vue";
7
- var _ = /* @__PURE__ */ h({
8
- __name: "RovingFocusItem",
1
+ import { defineComponent as t, createBlock as a, openBlock as e, Transition as n, withCtx as c, createElementBlock as r, createCommentVNode as s } from "vue";
2
+ const p = {
3
+ key: 0,
4
+ class: "VPBackdrop"
5
+ }, i = /* @__PURE__ */ t({
6
+ __name: "VPBackdrop",
9
7
  props: {
10
- tabStopId: {
11
- type: String,
12
- required: !1
13
- },
14
- focusable: {
15
- type: Boolean,
16
- required: !1,
17
- default: !0
18
- },
19
- active: {
20
- type: Boolean,
21
- required: !1
22
- },
23
- allowShiftKey: {
24
- type: Boolean,
25
- required: !1
26
- },
27
- asChild: {
28
- type: Boolean,
29
- required: !1
30
- },
31
- as: {
32
- type: null,
33
- required: !1,
34
- default: "span"
35
- }
8
+ show: { type: Boolean }
36
9
  },
37
- setup(d) {
38
- const n = d, t = S(), f = b(), l = u(() => n.tabStopId || f), c = u(() => t.currentTabStopId.value === l.value), { getItems: p, CollectionItem: m } = I();
39
- C(() => {
40
- n.focusable && t.onFocusableItemAdd();
41
- }), w(() => {
42
- n.focusable && t.onFocusableItemRemove();
43
- });
44
- function v(e) {
45
- if (e.key === "Tab" && e.shiftKey) {
46
- t.onItemShiftTab();
47
- return;
48
- }
49
- if (e.target !== e.currentTarget) return;
50
- const o = g(e, t.orientation.value, t.dir.value);
51
- if (o !== void 0) {
52
- if (e.metaKey || e.ctrlKey || e.altKey || !n.allowShiftKey && e.shiftKey) return;
53
- e.preventDefault();
54
- let a = [...p().map((r) => r.ref).filter((r) => r.dataset.disabled !== "")];
55
- if (o === "last") a.reverse();
56
- else if (o === "prev" || o === "next") {
57
- o === "prev" && a.reverse();
58
- const r = a.indexOf(e.currentTarget);
59
- a = t.loop.value ? F(a, r + 1) : a.slice(r + 1);
60
- }
61
- R(() => K(a));
62
- }
63
- }
64
- return (e, o) => (q(), T(i(m), null, {
65
- default: s(() => [B(i(y), {
66
- tabindex: c.value ? 0 : -1,
67
- "data-orientation": i(t).orientation.value,
68
- "data-active": e.active ? "" : void 0,
69
- "data-disabled": e.focusable ? void 0 : "",
70
- as: e.as,
71
- "as-child": e.asChild,
72
- onMousedown: o[0] || (o[0] = (a) => {
73
- e.focusable ? i(t).onItemFocus(l.value) : a.preventDefault();
74
- }),
75
- onFocus: o[1] || (o[1] = (a) => i(t).onItemFocus(l.value)),
76
- onKeydown: v
77
- }, {
78
- default: s(() => [x(e.$slots, "default")]),
79
- _: 3
80
- }, 8, [
81
- "tabindex",
82
- "data-orientation",
83
- "data-active",
84
- "data-disabled",
85
- "as",
86
- "as-child"
87
- ])]),
88
- _: 3
10
+ setup(o) {
11
+ return (d, m) => (e(), a(n, { name: "fade" }, {
12
+ default: c(() => [
13
+ o.show ? (e(), r("div", p)) : s("", !0)
14
+ ]),
15
+ _: 1
89
16
  }));
90
17
  }
91
- }), j = _;
18
+ });
92
19
  export {
93
- j as RovingFocusItem_default
20
+ i as default
94
21
  };
package/dist/index294.js CHANGED
@@ -1,7 +1,96 @@
1
- import o from "./index301.js";
2
- /* empty css */
3
- import r from "./index82.js";
4
- const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-6be01745"]]);
1
+ import { defineComponent as u, createElementBlock as l, openBlock as a, normalizeClass as n, unref as r, renderSlot as e, createBlock as i, createVNode as h, withCtx as t, resolveDynamicComponent as p } from "vue";
2
+ import v from "./index314.js";
3
+ import { useData as $ } from "./index161.js";
4
+ import { useLayout as b } from "./index70.js";
5
+ import y from "./index315.js";
6
+ import g from "./index316.js";
7
+ import k from "./index317.js";
8
+ const S = /* @__PURE__ */ u({
9
+ __name: "VPContent",
10
+ setup(C) {
11
+ const { page: d, frontmatter: s } = $(), { isHome: f, hasSidebar: m } = b();
12
+ return (o, P) => (a(), l("div", {
13
+ class: n(["VPContent", { "has-sidebar": r(m), "is-home": r(f) }]),
14
+ id: "VPContent"
15
+ }, [
16
+ r(d).isNotFound ? e(o.$slots, "not-found", { key: 0 }, () => [
17
+ h(v)
18
+ ], !0) : r(s).layout === "page" ? (a(), i(k, { key: 1 }, {
19
+ "page-top": t(() => [
20
+ e(o.$slots, "page-top", {}, void 0, !0)
21
+ ]),
22
+ "page-bottom": t(() => [
23
+ e(o.$slots, "page-bottom", {}, void 0, !0)
24
+ ]),
25
+ _: 3
26
+ })) : r(s).layout === "home" ? (a(), i(g, { key: 2 }, {
27
+ "home-hero-before": t(() => [
28
+ e(o.$slots, "home-hero-before", {}, void 0, !0)
29
+ ]),
30
+ "home-hero-info-before": t(() => [
31
+ e(o.$slots, "home-hero-info-before", {}, void 0, !0)
32
+ ]),
33
+ "home-hero-info": t(() => [
34
+ e(o.$slots, "home-hero-info", {}, void 0, !0)
35
+ ]),
36
+ "home-hero-info-after": t(() => [
37
+ e(o.$slots, "home-hero-info-after", {}, void 0, !0)
38
+ ]),
39
+ "home-hero-actions-after": t(() => [
40
+ e(o.$slots, "home-hero-actions-after", {}, void 0, !0)
41
+ ]),
42
+ "home-hero-image": t(() => [
43
+ e(o.$slots, "home-hero-image", {}, void 0, !0)
44
+ ]),
45
+ "home-hero-after": t(() => [
46
+ e(o.$slots, "home-hero-after", {}, void 0, !0)
47
+ ]),
48
+ "home-features-before": t(() => [
49
+ e(o.$slots, "home-features-before", {}, void 0, !0)
50
+ ]),
51
+ "home-features-after": t(() => [
52
+ e(o.$slots, "home-features-after", {}, void 0, !0)
53
+ ]),
54
+ _: 3
55
+ })) : r(s).layout && r(s).layout !== "doc" ? (a(), i(p(r(s).layout), { key: 3 })) : (a(), i(y, { key: 4 }, {
56
+ "doc-top": t(() => [
57
+ e(o.$slots, "doc-top", {}, void 0, !0)
58
+ ]),
59
+ "doc-bottom": t(() => [
60
+ e(o.$slots, "doc-bottom", {}, void 0, !0)
61
+ ]),
62
+ "doc-footer-before": t(() => [
63
+ e(o.$slots, "doc-footer-before", {}, void 0, !0)
64
+ ]),
65
+ "doc-before": t(() => [
66
+ e(o.$slots, "doc-before", {}, void 0, !0)
67
+ ]),
68
+ "doc-after": t(() => [
69
+ e(o.$slots, "doc-after", {}, void 0, !0)
70
+ ]),
71
+ "aside-top": t(() => [
72
+ e(o.$slots, "aside-top", {}, void 0, !0)
73
+ ]),
74
+ "aside-outline-before": t(() => [
75
+ e(o.$slots, "aside-outline-before", {}, void 0, !0)
76
+ ]),
77
+ "aside-outline-after": t(() => [
78
+ e(o.$slots, "aside-outline-after", {}, void 0, !0)
79
+ ]),
80
+ "aside-ads-before": t(() => [
81
+ e(o.$slots, "aside-ads-before", {}, void 0, !0)
82
+ ]),
83
+ "aside-ads-after": t(() => [
84
+ e(o.$slots, "aside-ads-after", {}, void 0, !0)
85
+ ]),
86
+ "aside-bottom": t(() => [
87
+ e(o.$slots, "aside-bottom", {}, void 0, !0)
88
+ ]),
89
+ _: 3
90
+ }))
91
+ ], 2));
92
+ }
93
+ });
5
94
  export {
6
- m as default
95
+ S as default
7
96
  };
package/dist/index296.js CHANGED
@@ -1,7 +1,29 @@
1
- import o from "./index305.js";
2
- /* empty css */
3
- import t from "./index82.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f7e877bc"]]);
1
+ import { defineComponent as c, createElementBlock as t, createCommentVNode as r, unref as e, openBlock as s, normalizeClass as i, createElementVNode as m } from "vue";
2
+ import { useData as f } from "./index161.js";
3
+ import { useLayout as l } from "./index70.js";
4
+ const p = { class: "container" }, _ = ["innerHTML"], u = ["innerHTML"], H = /* @__PURE__ */ c({
5
+ __name: "VPFooter",
6
+ setup(d) {
7
+ const { theme: o, frontmatter: n } = f(), { hasSidebar: a } = l();
8
+ return (h, y) => e(o).footer && e(n).footer !== !1 ? (s(), t("footer", {
9
+ key: 0,
10
+ class: i(["VPFooter", { "has-sidebar": e(a) }])
11
+ }, [
12
+ m("div", p, [
13
+ e(o).footer.message ? (s(), t("p", {
14
+ key: 0,
15
+ class: "message",
16
+ innerHTML: e(o).footer.message
17
+ }, null, 8, _)) : r("", !0),
18
+ e(o).footer.copyright ? (s(), t("p", {
19
+ key: 1,
20
+ class: "copyright",
21
+ innerHTML: e(o).footer.copyright
22
+ }, null, 8, u)) : r("", !0)
23
+ ])
24
+ ], 2)) : r("", !0);
25
+ }
26
+ });
5
27
  export {
6
- m as default
28
+ H as default
7
29
  };
package/dist/index298.js CHANGED
@@ -1,7 +1,52 @@
1
- import o from "./index309.js";
2
- /* empty css */
3
- import r from "./index82.js";
4
- const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-637e46b2"]]);
1
+ import { defineComponent as h, ref as y, onMounted as g, computed as N, createElementBlock as r, createCommentVNode as l, unref as e, openBlock as u, normalizeClass as V, createElementVNode as s, createVNode as _, toDisplayString as b } from "vue";
2
+ import { useWindowScroll as L } from "@vueuse/core";
3
+ import { useData as k } from "./index161.js";
4
+ import { useLayout as x } from "./index70.js";
5
+ import C from "./index319.js";
6
+ const P = { class: "container" }, S = ["aria-expanded"], H = { class: "menu-text" }, z = /* @__PURE__ */ h({
7
+ __name: "VPLocalNav",
8
+ props: {
9
+ open: { type: Boolean }
10
+ },
11
+ emits: ["open-menu"],
12
+ setup(i) {
13
+ const { theme: m } = k(), { isHome: d, hasSidebar: t, headers: p, hasLocalNav: o } = x(), { y: c } = L(), n = y(0);
14
+ g(() => {
15
+ n.value = parseInt(
16
+ getComputedStyle(document.documentElement).getPropertyValue(
17
+ "--vp-nav-height"
18
+ )
19
+ );
20
+ });
21
+ const v = N(() => ({
22
+ VPLocalNav: !0,
23
+ "has-sidebar": t.value,
24
+ empty: !o.value,
25
+ fixed: !o.value && !t.value
26
+ }));
27
+ return (f, a) => !e(d) && (e(o) || e(t) || e(c) >= n.value) ? (u(), r("div", {
28
+ key: 0,
29
+ class: V(v.value)
30
+ }, [
31
+ s("div", P, [
32
+ e(t) ? (u(), r("button", {
33
+ key: 0,
34
+ class: "menu",
35
+ "aria-expanded": i.open,
36
+ "aria-controls": "VPSidebarNav",
37
+ onClick: a[0] || (a[0] = (B) => f.$emit("open-menu"))
38
+ }, [
39
+ a[1] || (a[1] = s("span", { class: "vpi-align-left menu-icon" }, null, -1)),
40
+ s("span", H, b(e(m).sidebarMenuLabel || "Menu"), 1)
41
+ ], 8, S)) : l("", !0),
42
+ _(C, {
43
+ headers: e(p),
44
+ navHeight: n.value
45
+ }, null, 8, ["headers", "navHeight"])
46
+ ])
47
+ ], 2)) : l("", !0);
48
+ }
49
+ });
5
50
  export {
6
- m as default
51
+ z as default
7
52
  };