@voidzero-dev/vitepress-theme 0.1.38 → 0.1.43

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 (172) hide show
  1. package/dist/assets/social/bluesky-light.svg +10 -0
  2. package/dist/assets/social/github-light.svg +3 -0
  3. package/dist/assets/social/twitter-light.svg +3 -0
  4. package/dist/assets/voidzero/animations/343_x_148_homepage_mobile.riv +0 -0
  5. package/dist/assets/voidzero/footer-logo.svg +5 -0
  6. package/dist/assets/voidzero/footer.jpg +0 -0
  7. package/dist/assets/voidzero/investors/accel.svg +9 -0
  8. package/dist/assets/voidzero/investors/amplify.svg +3 -0
  9. package/dist/assets/voidzero/investors/resend.svg +3 -0
  10. package/dist/assets/voidzero/investors/sentry.svg +10 -0
  11. package/dist/assets/voidzero/logo-light.svg +3 -0
  12. package/dist/index.css +1 -1
  13. package/dist/index10.js +4 -4
  14. package/dist/index100.js +26 -7
  15. package/dist/index101.js +197 -5
  16. package/dist/index102.js +1014 -4
  17. package/dist/index103.js +34 -7
  18. package/dist/index104.js +2 -33
  19. package/dist/index105.js +2 -57
  20. package/dist/index106.js +2 -9
  21. package/dist/index107.js +2 -14
  22. package/dist/index108.js +2 -58
  23. package/dist/index109.js +2 -6
  24. package/dist/index11.js +5 -11
  25. package/dist/index110.js +2 -39
  26. package/dist/index111.js +5324 -21
  27. package/dist/index112.js +2 -25
  28. package/dist/index113.js +2 -10
  29. package/dist/index114.js +2 -57
  30. package/dist/index115.js +2 -36
  31. package/dist/index116.js +2 -119
  32. package/dist/index117.js +2 -92
  33. package/dist/index118.js +2 -8
  34. package/dist/index119.js +2 -439
  35. package/dist/index12.js +9 -9
  36. package/dist/index120.js +10 -5
  37. package/dist/index121.js +7 -2
  38. package/dist/index122.js +4 -1734
  39. package/dist/index123.js +4 -315
  40. package/dist/index124.js +7 -2
  41. package/dist/index125.js +29 -442
  42. package/dist/index126.js +59 -0
  43. package/dist/index127.js +11 -0
  44. package/dist/index128.js +16 -0
  45. package/dist/index129.js +60 -0
  46. package/dist/index13.js +9 -9
  47. package/dist/index130.js +8 -0
  48. package/dist/index131.js +41 -0
  49. package/dist/index132.js +23 -0
  50. package/dist/index133.js +27 -0
  51. package/dist/index134.js +12 -0
  52. package/dist/index135.js +59 -0
  53. package/dist/index136.js +38 -0
  54. package/dist/index137.js +121 -0
  55. package/dist/index138.js +94 -0
  56. package/dist/index139.js +10 -0
  57. package/dist/index14.js +11 -5
  58. package/dist/index140.js +6 -0
  59. package/dist/index141.js +5 -0
  60. package/dist/index142.js +7209 -0
  61. package/dist/index143.js +1737 -0
  62. package/dist/index144.js +441 -0
  63. package/dist/index145.js +16 -0
  64. package/dist/index146.js +35 -0
  65. package/dist/index147.js +1204 -0
  66. package/dist/index148.js +64841 -0
  67. package/dist/index149.js +7 -0
  68. package/dist/index15.js +5 -10
  69. package/dist/index150.js +4 -0
  70. package/dist/index151.js +448 -0
  71. package/dist/index152.js +317 -0
  72. package/dist/index153.js +4 -0
  73. package/dist/index16.js +10 -5
  74. package/dist/index17.js +4 -9
  75. package/dist/index18.js +10 -5
  76. package/dist/index19.js +5 -20
  77. package/dist/index2.js +15 -10
  78. package/dist/index20.js +22 -0
  79. package/dist/index21.js +28 -2
  80. package/dist/index22.js +7 -1
  81. package/dist/index23.js +114 -2
  82. package/dist/index26.js +1 -1
  83. package/dist/index27.js +2 -21
  84. package/dist/index28.js +4 -0
  85. package/dist/index29.js +115 -7
  86. package/dist/index3.js +155 -68
  87. package/dist/index31.js +9 -0
  88. package/dist/index32.js +2 -2
  89. package/dist/index33.js +2 -2
  90. package/dist/index34.js +2 -295
  91. package/dist/index35.js +24 -0
  92. package/dist/{index30.js → index37.js} +22 -22
  93. package/dist/index39.js +4 -0
  94. package/dist/index4.js +11 -156
  95. package/dist/index40.js +2 -84
  96. package/dist/index41.js +293 -64
  97. package/dist/index43.js +156 -75
  98. package/dist/index45.js +322 -26
  99. package/dist/index47.js +2 -26
  100. package/dist/index48.js +3 -26
  101. package/dist/index49.js +2 -26
  102. package/dist/index5.js +69 -9
  103. package/dist/index50.js +2 -2
  104. package/dist/index51.js +2 -25
  105. package/dist/index52.js +2 -22
  106. package/dist/index53.js +2 -124
  107. package/dist/index54.js +3 -2
  108. package/dist/index55.js +2 -2
  109. package/dist/index56.js +2 -2
  110. package/dist/index57.js +2 -2
  111. package/dist/index59.js +135 -2
  112. package/dist/index6.js +5 -73
  113. package/dist/index61.js +2 -2
  114. package/dist/index62.js +2 -2
  115. package/dist/index63.js +2 -2
  116. package/dist/index64.js +2 -2
  117. package/dist/index65.js +2 -2
  118. package/dist/index66.js +2 -2
  119. package/dist/index67.js +2 -18
  120. package/dist/index68.js +2 -18
  121. package/dist/index69.js +2 -18
  122. package/dist/index7.js +2 -2
  123. package/dist/index70.js +2 -2
  124. package/dist/index71.js +2 -2
  125. package/dist/index72.js +2 -2
  126. package/dist/index73.js +2 -34
  127. package/dist/index74.js +2 -2
  128. package/dist/index75.js +1 -1
  129. package/dist/index76.js +52 -2
  130. package/dist/index77.js +44 -3
  131. package/dist/index78.js +53 -2
  132. package/dist/index79.js +2587 -2
  133. package/dist/index8.js +31 -30
  134. package/dist/index80.js +2 -2
  135. package/dist/index81.js +1 -1
  136. package/dist/index82.js +2 -49
  137. package/dist/index83.js +3 -44
  138. package/dist/index84.js +22 -2587
  139. package/dist/index85.js +124 -51
  140. package/dist/index86.js +2 -7207
  141. package/dist/index87.js +2 -14
  142. package/dist/index88.js +2 -5324
  143. package/dist/index89.js +2 -2
  144. package/dist/index9.js +354 -4
  145. package/dist/index90.js +2 -2
  146. package/dist/index91.js +84 -2
  147. package/dist/index92.js +66 -2
  148. package/dist/index93.js +53 -2
  149. package/dist/index94.js +76 -2
  150. package/dist/index95.js +25 -1
  151. package/dist/index96.js +30 -33
  152. package/dist/index97.js +26 -1202
  153. package/dist/index98.js +26 -4
  154. package/dist/index99.js +26 -10
  155. package/dist/vitepress/components/shared/LogoGrid.vue.d.ts +11 -0
  156. package/dist/vitepress/components/shared/ShaderBackground.vue.d.ts +2 -0
  157. package/dist/vitepress/components/shared/Spacer.vue.d.ts +2 -0
  158. package/dist/vitepress/components/voidzero/Header.vue.d.ts +22 -1
  159. package/dist/vitepress/components/voidzero/Investors.vue.d.ts +2 -0
  160. package/dist/vitepress/components/voidzero/Megamenu.vue.d.ts +16 -0
  161. package/dist/vitepress/components/voidzero/Resources.vue.d.ts +31 -0
  162. package/dist/vitepress/components/voidzero/Statistics.vue.d.ts +10 -1
  163. package/package.json +4 -2
  164. package/dist/index24.js +0 -4
  165. package/dist/index25.js +0 -4
  166. package/dist/index36.js +0 -149
  167. package/dist/index38.js +0 -116
  168. package/dist/index42.js +0 -55
  169. package/dist/index44.js +0 -28
  170. package/dist/index46.js +0 -28
  171. package/dist/index58.js +0 -4
  172. package/dist/index60.js +0 -4
package/dist/index89.js CHANGED
@@ -1,4 +1,4 @@
1
- var e = { exports: {} };
1
+ const e = "data:image/svg+xml,%3csvg%20viewBox='0%200%2023%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M16.7789%200.230591C17.0657%200.230591%2017.2224%200.565121%2017.0387%200.785563L13.9138%204.53566C13.5464%204.97654%2013.8597%205.64624%2014.434%205.64624H17.4563C17.7432%205.64624%2017.8998%205.98077%2017.7161%206.20122L11.6694%2013.4578C11.534%2013.6202%2011.2846%2013.6202%2011.1492%2013.4578L5.10256%206.20122C4.91886%205.98077%205.07549%205.64624%205.36232%205.64624H8.38405C8.95771%205.64624%209.27162%204.97654%208.90422%204.53566L5.77935%200.785563C5.59565%200.565121%205.75229%200.230591%206.03912%200.230591H16.7789Z'%20fill='%23FF5500'/%3e%3cmask%20id='mask0_127_17330'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='5'%20y='0'%20width='13'%20height='14'%3e%3cpath%20d='M16.7789%200.230652C17.0657%200.230652%2017.2224%200.565182%2017.0387%200.785624L13.9138%204.53572C13.5464%204.9766%2013.8597%205.64631%2014.434%205.64631H17.4563C17.7432%205.64631%2017.8998%205.98084%2017.7161%206.20128L11.6694%2013.4578C11.534%2013.6202%2011.2846%2013.6202%2011.1492%2013.4578L5.10256%206.20128C4.91886%205.98084%205.07549%205.64631%205.36232%205.64631H8.38405C8.95771%205.64631%209.27162%204.9766%208.90422%204.53572L5.77935%200.785624C5.59565%200.565182%205.75229%200.230652%206.03912%200.230652H16.7789Z'%20fill='black'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_127_17330)'%3e%3cg%20filter='url(%23filter0_f_127_17330)'%3e%3cellipse%20cx='1.61481'%20cy='7.05626'%20rx='1.61481'%20ry='7.05626'%20transform='matrix(-0.863806%20-0.503824%20-0.503824%200.863806%2022.8672%20-5.00403)'%20fill='%23FFE7E5'/%3e%3c/g%3e%3cg%20filter='url(%23filter1_f_127_17330)'%3e%3cellipse%20cx='1.61481'%20cy='7.05626'%20rx='1.61481'%20ry='7.05626'%20transform='matrix(-0.863806%20-0.503824%20-0.503824%200.863806%2022.5234%201.87115)'%20fill='%23FFE7E5'/%3e%3c/g%3e%3cg%20filter='url(%23filter2_f_127_17330)'%3e%3cellipse%20cx='5.22493'%20cy='0.432067'%20rx='1.11293'%20ry='6.53216'%20transform='rotate(-36.0929%205.22493%200.432067)'%20fill='%23FF19AF'/%3e%3c/g%3e%3cg%20filter='url(%23filter3_f_127_17330)'%3e%3cellipse%20cx='6.94368'%20cy='10.204'%20rx='1.11293'%20ry='6.53216'%20transform='rotate(-36.0929%206.94368%2010.204)'%20fill='%23FF19AF'/%3e%3c/g%3e%3cg%20filter='url(%23filter4_f_127_17330)'%3e%3cellipse%20cx='1.11293'%20cy='6.53216'%20rx='1.11293'%20ry='6.53216'%20transform='matrix(-0.808063%20-0.589096%20-0.589096%200.808063%2022.3477%20-4.1907)'%20fill='%23FF19AF'/%3e%3c/g%3e%3cg%20filter='url(%23filter5_f_127_17330)'%3e%3cellipse%20cx='1.11293'%20cy='6.53216'%20rx='1.11293'%20ry='6.53216'%20transform='matrix(-0.808063%20-0.589096%20-0.589096%200.808063%2020.2852%205.58121)'%20fill='%23FF19AF'/%3e%3c/g%3e%3cg%20filter='url(%23filter6_f_127_17330)'%3e%3cellipse%20cx='1.11293'%20cy='6.53216'%20rx='1.11293'%20ry='6.53216'%20transform='matrix(-0.808063%20-0.589096%20-0.589096%200.808063%2021.3164%20-4.1907)'%20fill='%23FF19AF'/%3e%3c/g%3e%3cg%20filter='url(%23filter7_f_127_17330)'%3e%3cellipse%20cx='1.11293'%20cy='6.53216'%20rx='1.11293'%20ry='6.53216'%20transform='matrix(-0.808063%20-0.589096%20-0.589096%200.808063%2019.5977%205.58121)'%20fill='%23FF19AF'/%3e%3c/g%3e%3cg%20filter='url(%23filter8_f_127_17330)'%3e%3cellipse%20cx='5.8599'%20cy='0.904715'%20rx='1.61481'%20ry='7.05626'%20transform='rotate(-40.9103%205.8599%200.904715)'%20fill='%23D14B2A'/%3e%3c/g%3e%3cg%20filter='url(%23filter9_f_127_17330)'%3e%3cellipse%20cx='6.95834'%20cy='8.5279'%20rx='1.61481'%20ry='7.05626'%20transform='rotate(-35.8882%206.95834%208.5279)'%20fill='%23D14B2A'/%3e%3c/g%3e%3c/g%3e%3cpath%20d='M2.07027%200C-0.682028%203.93959%20-0.698142%2010.0462%202.07027%2014H3.92984C1.16207%2010.0462%201.17818%203.93959%203.92984%200H2.07027Z'%20fill='white'/%3e%3cpath%20d='M20.7473%200H18.8877C21.64%203.93959%2021.6561%2010.0462%2018.8877%2014H20.7473C23.515%2010.0462%2023.4989%203.93959%2020.7473%200Z'%20fill='white'/%3e%3cdefs%3e%3cfilter%20id='filter0_f_127_17330'%20x='12.035'%20y='-7.93499'%20width='11.7649'%20height='16.4252'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeGaussianBlur%20stdDeviation='1.03131'%20result='effect1_foregroundBlur_127_17330'/%3e%3c/filter%3e%3cfilter%20id='filter1_f_127_17330'%20x='11.6913'%20y='-1.05981'%20width='11.7649'%20height='16.4252'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeGaussianBlur%20stdDeviation='1.03131'%20result='effect1_foregroundBlur_127_17330'/%3e%3c/filter%3e%3cfilter%20id='filter2_f_127_17330'%20x='-0.790154'%20y='-6.95007'%20width='12.0305'%20height='14.7643'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeGaussianBlur%20stdDeviation='1.03131'%20result='effect1_foregroundBlur_127_17330'/%3e%3c/filter%3e%3cfilter%20id='filter3_f_127_17330'%20x='0.928596'%20y='2.82185'%20width='12.0305'%20height='14.7643'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeGaussianBlur%20stdDeviation='1.03131'%20result='effect1_foregroundBlur_127_17330'/%3e%3c/filter%3e%3cfilter%20id='filter4_f_127_17330'%20x='11.5848'%20y='-6.95007'%20width='12.0305'%20height='14.7643'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeGaussianBlur%20stdDeviation='1.03131'%20result='effect1_foregroundBlur_127_17330'/%3e%3c/filter%3e%3cfilter%20id='filter5_f_127_17330'%20x='9.52235'%20y='2.82185'%20width='12.0305'%20height='14.7643'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeGaussianBlur%20stdDeviation='1.03131'%20result='effect1_foregroundBlur_127_17330'/%3e%3c/filter%3e%3cfilter%20id='filter6_f_127_17330'%20x='10.5536'%20y='-6.95007'%20width='12.0305'%20height='14.7643'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeGaussianBlur%20stdDeviation='1.03131'%20result='effect1_foregroundBlur_127_17330'/%3e%3c/filter%3e%3cfilter%20id='filter7_f_127_17330'%20x='8.83485'%20y='2.82185'%20width='12.0305'%20height='14.7643'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeGaussianBlur%20stdDeviation='1.03131'%20result='effect1_foregroundBlur_127_17330'/%3e%3c/filter%3e%3cfilter%20id='filter8_f_127_17330'%20x='-0.983514'%20y='-6.59545'%20width='13.6868'%20height='15.0003'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeGaussianBlur%20stdDeviation='1.03131'%20result='effect1_foregroundBlur_127_17330'/%3e%3c/filter%3e%3cfilter%20id='filter9_f_127_17330'%20x='0.556525'%20y='0.669807'%20width='12.8039'%20height='15.7162'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeGaussianBlur%20stdDeviation='1.03131'%20result='effect1_foregroundBlur_127_17330'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e";
2
2
  export {
3
- e as __module
3
+ e as default
4
4
  };
package/dist/index9.js CHANGED
@@ -1,7 +1,357 @@
1
- import o from "./index27.js";
1
+ import { defineComponent as Z, computed as L, ref as p, watch as q, nextTick as U, onMounted as X, onUnmounted as J, createElementBlock as i, openBlock as s, createElementVNode as e, createCommentVNode as h, Fragment as _, renderList as S, unref as b, withModifiers as P, normalizeClass as g, createTextVNode as Q, toDisplayString as k, createVNode as M, Transition as Y, withCtx as I } from "vue";
2
+ import ee from "./index55.js";
3
+ import te from "./index56.js";
4
+ import oe from "./index57.js";
5
+ import le from "./index51.js";
6
+ import ne from "./index52.js";
7
+ import ie from "./index53.js";
8
+ import { useData as se, useRoute as re } from "vitepress";
2
9
  /* empty css */
3
- import r from "./index29.js";
4
- const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-9fdd31e9"]]);
10
+ import B from "./index59.js";
11
+ /* empty css */
12
+ const ae = { class: "wrapper px-6 py-5 lg:py-7 flex items-center justify-between relative z-[1000]" }, ue = { class: "flex items-center gap-10" }, de = { class: "nav-container hidden md:block" }, ce = { class: "nav" }, me = ["onMouseenter"], pe = ["href", "aria-expanded", "aria-haspopup", "aria-controls", "onClick"], fe = { class: "flex items-center gap-6" }, ve = {
13
+ href: "https://github.com/voidzero-dev",
14
+ target: "_blank",
15
+ rel: "noopener noreferrer",
16
+ class: "hidden lg:flex gap-1.5 items-center"
17
+ }, he = { class: "text-primary font-mono text-sm font-medium" }, be = ["aria-expanded"], ge = {
18
+ key: 0,
19
+ class: "size-6",
20
+ viewBox: "0 0 18 8",
21
+ xmlns: "http://www.w3.org/2000/svg"
22
+ }, ke = {
23
+ key: 0,
24
+ id: "mobile-menu",
25
+ role: "dialog",
26
+ "aria-modal": "true",
27
+ "aria-label": "Mobile navigation menu",
28
+ "data-theme": "dark",
29
+ class: "md:hidden fixed inset-0 z-[1001] bg-primary"
30
+ }, ye = { class: "wrapper" }, we = {
31
+ class: "overflow-y-auto flex flex-col [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden",
32
+ style: { height: "calc(100vh - 88px)" }
33
+ }, xe = { class: "flex-1 w-full pt-6 pb-8" }, _e = { class: "space-y-1" }, Me = ["onClick", "aria-expanded", "aria-controls"], Ee = ["id"], Ce = ["href"], ze = ["id"], Fe = { class: "wrapper wrapper--ticks border-t border-b bg-white" }, Te = { class: "mx-28 border-l border-r border-stroke" }, Re = /* @__PURE__ */ Z({
34
+ __name: "Header",
35
+ props: {
36
+ featuredArticles: { default: () => [] },
37
+ githubStats: { default: () => [] }
38
+ },
39
+ setup($) {
40
+ const f = $, { theme: V } = se(), E = V.value.nav, C = re(), j = L(() => !f.githubStats || f.githubStats.length === 0 ? 0 : f.githubStats.reduce((t, o) => t + o.stars, 0)), D = L(() => {
41
+ const t = j.value;
42
+ return t >= 1e6 ? (t / 1e6).toFixed(1) + "M" : t >= 1e3 ? (t / 1e3).toFixed(1) + "k" : t.toString();
43
+ }), v = p(!1), c = p(null), y = p(null), r = p(null), a = p(!1), u = p(null), z = (t) => {
44
+ const o = t.target;
45
+ y.value && !y.value.contains(o) && m();
46
+ }, F = (t) => {
47
+ t.key === "Escape" && (a.value ? d() : v.value && m());
48
+ }, T = (t) => {
49
+ r.value && (clearTimeout(r.value), r.value = null), c.value = t, v.value = !0;
50
+ }, m = (t = 0) => {
51
+ t > 0 ? r.value = window.setTimeout(() => {
52
+ v.value = !1, c.value = null;
53
+ }, t) : (r.value && (clearTimeout(r.value), r.value = null), v.value = !1, c.value = null);
54
+ }, N = (t) => {
55
+ t.megamenu ? T(t.link) : m(200);
56
+ }, A = () => {
57
+ m(200);
58
+ }, H = () => {
59
+ r.value && (clearTimeout(r.value), r.value = null);
60
+ }, K = () => {
61
+ m(200);
62
+ }, R = (t) => {
63
+ t.megamenu && (c.value === t.link ? m() : T(t.link));
64
+ }, G = () => {
65
+ const t = window.innerWidth - document.documentElement.clientWidth;
66
+ document.body.style.overflow = "hidden", document.body.style.position = "fixed", document.body.style.width = "100%", document.body.style.top = "0", t > 0 && (document.body.style.paddingRight = `${t}px`);
67
+ }, w = () => {
68
+ document.body.style.overflow = "", document.body.style.position = "", document.body.style.width = "", document.body.style.top = "", document.body.style.paddingRight = "";
69
+ }, O = () => {
70
+ a.value = !a.value, a.value ? (G(), u.value = null) : (w(), u.value = null);
71
+ }, W = (t) => {
72
+ u.value === t ? u.value = null : u.value = t;
73
+ }, d = () => {
74
+ a.value = !1, u.value = null, w();
75
+ }, n = {
76
+ firstFocusableEl: null,
77
+ lastFocusableEl: null,
78
+ activate: () => {
79
+ const t = document.getElementById("mobile-menu");
80
+ if (!t) return;
81
+ const o = t.querySelectorAll(
82
+ 'a[href], button:not([disabled]), [tabindex]:not([tabindex="-1"])'
83
+ );
84
+ o.length !== 0 && (n.firstFocusableEl = o[0], n.lastFocusableEl = o[o.length - 1], n.firstFocusableEl?.focus(), document.addEventListener("keydown", n.handleTabKey));
85
+ },
86
+ deactivate: () => {
87
+ document.removeEventListener("keydown", n.handleTabKey), n.firstFocusableEl = null, n.lastFocusableEl = null;
88
+ },
89
+ handleTabKey: (t) => {
90
+ t.key === "Tab" && (t.shiftKey ? document.activeElement === n.firstFocusableEl && (n.lastFocusableEl?.focus(), t.preventDefault()) : document.activeElement === n.lastFocusableEl && (n.firstFocusableEl?.focus(), t.preventDefault()));
91
+ }
92
+ };
93
+ return q(a, (t) => {
94
+ t ? U(() => {
95
+ n.activate();
96
+ }) : n.deactivate();
97
+ }), X(() => {
98
+ document.addEventListener("click", z), document.addEventListener("keydown", F);
99
+ }), J(() => {
100
+ document.removeEventListener("click", z), document.removeEventListener("keydown", F), w(), r.value && clearTimeout(r.value);
101
+ }), (t, o) => (s(), i("div", {
102
+ class: "header-wrapper z-50 relative bg-white",
103
+ ref_key: "megamenuRef",
104
+ ref: y
105
+ }, [
106
+ e("header", ae, [
107
+ e("div", ue, [
108
+ o[1] || (o[1] = e("a", { href: "/" }, [
109
+ e("img", {
110
+ class: "h-4",
111
+ src: ee,
112
+ alt: "VoidZero"
113
+ })
114
+ ], -1)),
115
+ e("nav", de, [
116
+ e("ul", ce, [
117
+ (s(!0), i(_, null, S(b(E), (l) => (s(), i("li", {
118
+ key: l.link,
119
+ onMouseenter: (x) => N(l),
120
+ onMouseleave: A,
121
+ class: "inline-block"
122
+ }, [
123
+ e("a", {
124
+ class: g({ active: b(C).path === l.link }),
125
+ href: l.link,
126
+ "aria-expanded": l.megamenu && c.value === l.link ? "true" : void 0,
127
+ "aria-haspopup": l.megamenu ? "true" : void 0,
128
+ "aria-controls": l.megamenu ? `megamenu-${l.link}` : void 0,
129
+ onClick: P((x) => l.megamenu ? R(l) : x.target.click(), ["prevent"])
130
+ }, [
131
+ Q(k(l.text) + " ", 1),
132
+ l.megamenu ? (s(), i("svg", {
133
+ key: 0,
134
+ class: g(["inline-block ml-1 size-3 transition-transform", { "rotate-180": c.value === l.link }]),
135
+ xmlns: "http://www.w3.org/2000/svg",
136
+ viewBox: "0 0 12 7",
137
+ fill: "currentColor",
138
+ "aria-hidden": "true"
139
+ }, [...o[0] || (o[0] = [
140
+ e("path", { d: "M1.41 0L6 4.58 10.59 0 12 1.42l-6 6-6-6z" }, null, -1)
141
+ ])], 2)) : h("", !0)
142
+ ], 10, pe)
143
+ ], 40, me))), 128))
144
+ ])
145
+ ])
146
+ ]),
147
+ e("div", fe, [
148
+ e("a", ve, [
149
+ o[2] || (o[2] = e("img", {
150
+ src: te,
151
+ alt: "Star on GitHub",
152
+ class: "size-6"
153
+ }, null, -1)),
154
+ e("span", he, k(D.value), 1)
155
+ ]),
156
+ o[4] || (o[4] = e("a", {
157
+ href: "https://viteplus.dev",
158
+ target: "_blank",
159
+ rel: "noopener noreferrer",
160
+ class: "button hidden md:block"
161
+ }, " Explore Vite+ ", -1)),
162
+ e("button", {
163
+ onClick: O,
164
+ "aria-expanded": a.value,
165
+ "aria-controls": "mobile-menu",
166
+ "aria-label": "Toggle navigation menu",
167
+ class: "md:hidden p-2 -mr-2 text-primary hover:opacity-70 transition-opacity cursor-pointer",
168
+ type: "button"
169
+ }, [
170
+ a.value ? h("", !0) : (s(), i("svg", ge, [...o[3] || (o[3] = [
171
+ e("path", {
172
+ d: "M0 0.75H18",
173
+ stroke: "#08060D",
174
+ "stroke-width": "1.5"
175
+ }, null, -1),
176
+ e("path", {
177
+ d: "M0 6.75H18",
178
+ stroke: "#08060D",
179
+ "stroke-width": "1.5"
180
+ }, null, -1)
181
+ ])]))
182
+ ], 8, be)
183
+ ])
184
+ ]),
185
+ a.value ? (s(), i("div", ke, [
186
+ e("section", ye, [
187
+ e("div", { class: "w-full pl-5 pr-7 py-5 lg:py-7 flex items-center justify-between" }, [
188
+ o[6] || (o[6] = e("a", { href: "/" }, [
189
+ e("img", {
190
+ class: "h-4",
191
+ src: oe,
192
+ alt: "VoidZero"
193
+ })
194
+ ], -1)),
195
+ e("button", {
196
+ onClick: d,
197
+ "aria-label": "Close navigation menu",
198
+ class: "p-2 -mr-2 text-white hover:opacity-70 transition-opacity",
199
+ type: "button"
200
+ }, [...o[5] || (o[5] = [
201
+ e("svg", {
202
+ class: "size-6 cursor-pointer",
203
+ xmlns: "http://www.w3.org/2000/svg",
204
+ fill: "none",
205
+ viewBox: "0 0 24 24",
206
+ stroke: "currentColor",
207
+ "aria-hidden": "true"
208
+ }, [
209
+ e("path", {
210
+ "stroke-linecap": "round",
211
+ "stroke-linejoin": "round",
212
+ "stroke-width": "2",
213
+ d: "M6 18L18 6M6 6l12 12"
214
+ })
215
+ ], -1)
216
+ ])])
217
+ ]),
218
+ e("div", we, [
219
+ e("nav", xe, [
220
+ e("ul", _e, [
221
+ (s(!0), i(_, null, S(b(E), (l) => (s(), i("li", {
222
+ key: l.link
223
+ }, [
224
+ l.megamenu ? (s(), i(_, { key: 0 }, [
225
+ e("button", {
226
+ onClick: (x) => W(l.link),
227
+ "aria-expanded": u.value === l.link,
228
+ "aria-controls": `mobile-megamenu-${l.link}`,
229
+ class: "w-full text-left py-3 px-4 text-lg font-sans text-white flex items-center justify-between cursor-pointer"
230
+ }, [
231
+ e("span", null, k(l.text), 1),
232
+ (s(), i("svg", {
233
+ class: g(["size-4 transition-transform duration-200", { "rotate-180": u.value === l.link }]),
234
+ viewBox: "0 0 15 8",
235
+ fill: "none",
236
+ xmlns: "http://www.w3.org/2000/svg"
237
+ }, [...o[7] || (o[7] = [
238
+ e("path", {
239
+ d: "M13.8638 0.530325L7.1971 7.19699L0.530438 0.530324",
240
+ stroke: "#F4F3EC",
241
+ "stroke-width": "1.5",
242
+ "stroke-linejoin": "round"
243
+ }, null, -1)
244
+ ])], 2))
245
+ ], 8, Me),
246
+ M(Y, {
247
+ "enter-active-class": "transition-all duration-300 ease-out overflow-hidden",
248
+ "enter-from-class": "opacity-0 max-h-0",
249
+ "enter-to-class": "opacity-100 max-h-[2000px]",
250
+ "leave-active-class": "transition-all duration-200 ease-in overflow-hidden",
251
+ "leave-from-class": "opacity-100 max-h-[2000px]",
252
+ "leave-to-class": "opacity-0 max-h-0"
253
+ }, {
254
+ default: I(() => [
255
+ u.value === l.link ? (s(), i("div", {
256
+ key: 0,
257
+ id: `mobile-megamenu-${l.link}`,
258
+ class: "pb-4 pt-2"
259
+ }, [
260
+ M(B, {
261
+ "featured-articles": f.featuredArticles,
262
+ "on-link-click": d
263
+ }, null, 8, ["featured-articles"])
264
+ ], 8, Ee)) : h("", !0)
265
+ ]),
266
+ _: 2
267
+ }, 1024)
268
+ ], 64)) : (s(), i("a", {
269
+ key: 1,
270
+ href: l.link,
271
+ onClick: d,
272
+ class: g([{ "bg-white/10": b(C).path === l.link }, "block py-3 px-4 text-lg font-sans text-white"])
273
+ }, k(l.text), 11, Ce))
274
+ ]))), 128))
275
+ ])
276
+ ]),
277
+ e("div", { class: "w-full py-12 border-t border-nickel relative tick-left tick-right mt-auto" }, [
278
+ e("div", { class: "space-y-12" }, [
279
+ e("div", { class: "px-6" }, [
280
+ e("a", {
281
+ href: "https://viteplus.dev",
282
+ target: "_blank",
283
+ rel: "noopener noreferrer",
284
+ class: "button button--primary button--white block text-center bg-white text-primary hover:bg-white/90",
285
+ onClick: d
286
+ }, " Explore Vite+ ")
287
+ ]),
288
+ o[11] || (o[11] = e("div", { class: "border-t border-nickel tick-left tick-right relative" }, null, -1)),
289
+ e("div", { class: "flex items-center justify-center gap-4 pb-12" }, [
290
+ e("a", {
291
+ href: "https://github.com/voidzero-dev",
292
+ target: "_blank",
293
+ rel: "noopener noreferrer",
294
+ class: "hover:opacity-70 transition-opacity",
295
+ onClick: d
296
+ }, [...o[8] || (o[8] = [
297
+ e("img", {
298
+ src: le,
299
+ alt: "GitHub",
300
+ class: "size-6"
301
+ }, null, -1)
302
+ ])]),
303
+ e("a", {
304
+ href: "https://bsky.app/profile/voidzero.dev",
305
+ target: "_blank",
306
+ rel: "noopener noreferrer",
307
+ class: "hover:opacity-70 transition-opacity",
308
+ onClick: d
309
+ }, [...o[9] || (o[9] = [
310
+ e("img", {
311
+ src: ne,
312
+ alt: "Bluesky",
313
+ class: "size-6"
314
+ }, null, -1)
315
+ ])]),
316
+ e("a", {
317
+ href: "https://x.com/voidzerodev",
318
+ target: "_blank",
319
+ rel: "noopener noreferrer",
320
+ class: "hover:opacity-70 transition-opacity",
321
+ onClick: d
322
+ }, [...o[10] || (o[10] = [
323
+ e("img", {
324
+ src: ie,
325
+ alt: "X",
326
+ class: "size-6"
327
+ }, null, -1)
328
+ ])])
329
+ ])
330
+ ])
331
+ ])
332
+ ])
333
+ ])
334
+ ])) : h("", !0),
335
+ v.value && !a.value ? (s(), i("div", {
336
+ key: 1,
337
+ id: `megamenu-${c.value}`,
338
+ role: "region",
339
+ "aria-label": "Mega menu",
340
+ class: "hidden md:block absolute top-full left-0 right-0 w-full z-[1000] animate-in fade-in slide-in-from-top-2 duration-200",
341
+ onMouseenter: H,
342
+ onMouseleave: K
343
+ }, [
344
+ e("div", Fe, [
345
+ e("div", Te, [
346
+ M(B, {
347
+ "featured-articles": f.featuredArticles
348
+ }, null, 8, ["featured-articles"])
349
+ ])
350
+ ])
351
+ ], 40, ze)) : h("", !0)
352
+ ], 512));
353
+ }
354
+ });
5
355
  export {
6
- f as default
356
+ Re as default
7
357
  };
package/dist/index90.js CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index44.js";
1
+ const e = "data:image/svg+xml,%3csvg%20viewBox='0%200%2023%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M20.7482%200H18.8887C21.641%203.93959%2021.6571%2010.0462%2018.8887%2014H20.7482C23.516%2010.0462%2023.4999%203.93959%2020.7482%200Z'%20fill='white'/%3e%3cpath%20d='M2.07027%200C-0.682028%203.93959%20-0.698142%2010.0462%202.07027%2014H3.92985C1.16208%2010.0462%201.1782%203.93959%203.92985%200H2.07027Z'%20fill='white'/%3e%3cpath%20d='M13.4394%202.26107C13.4394%202.63492%2013.7423%202.93787%2014.1162%202.93787H16.6842C16.9858%202.93787%2017.1366%203.30269%2016.9233%203.5154L13.6373%206.8014C13.5103%206.92838%2013.4388%207.10048%2013.4388%207.28032V8.4038C13.4388%208.87111%2013.9022%209.19533%2014.3121%208.97231C14.7298%208.74542%2015.1185%208.47083%2015.4698%208.15628C15.609%208.03188%2015.823%208.03059%2015.9551%208.16338L18.3484%2010.5567C18.4806%2010.6888%2018.4812%2010.9034%2018.3446%2011.0311C16.5295%2012.7295%2014.0898%2013.7698%2011.4077%2013.7698C8.72568%2013.7698%206.286%2012.7295%204.4709%2011.0311C4.33425%2010.9034%204.33489%2010.6888%204.46703%2010.5567L6.86031%208.16338C6.99244%208.03124%207.20644%208.03188%207.34567%208.15628C7.69696%208.47083%208.08563%208.74542%208.50331%208.97231C8.9139%209.19533%209.3767%208.87111%209.3767%208.4038V7.28032C9.3767%207.10048%209.30515%206.92838%209.17817%206.8014L5.89217%203.5154C5.67881%203.30205%205.82964%202.93787%206.1313%202.93787H8.69926C9.07311%202.93787%209.37605%202.63492%209.37605%202.26107V0.568439C9.37605%200.381515%209.52753%200.230042%209.71445%200.230042H13.0991C13.286%200.230042%2013.4375%200.381515%2013.4375%200.568439V2.26107H13.4394Z'%20fill='%2332F3EF'/%3e%3cmask%20id='mask0_127_17352'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='4'%20y='0'%20width='15'%20height='14'%3e%3cpath%20d='M13.4394%202.26083C13.4394%202.63468%2013.7423%202.93762%2014.1162%202.93762H16.6842C16.9858%202.93762%2017.1366%203.30245%2016.9233%203.51516L13.6373%206.80116C13.5103%206.92814%2013.4388%207.10024%2013.4388%207.28007V8.40355C13.4388%208.87087%2013.9022%209.19508%2014.3121%208.97206C14.7298%208.74518%2015.1185%208.47059%2015.4698%208.15604C15.609%208.03164%2015.823%208.03035%2015.9551%208.16313L18.3484%2010.5564C18.4806%2010.6885%2018.4812%2010.9032%2018.3446%2011.0308C16.5295%2012.7292%2014.0898%2013.7696%2011.4077%2013.7696C8.72568%2013.7696%206.286%2012.7292%204.4709%2011.0308C4.33425%2010.9032%204.33489%2010.6885%204.46703%2010.5564L6.86031%208.16313C6.99244%208.03099%207.20644%208.03164%207.34567%208.15604C7.69696%208.47059%208.08563%208.74518%208.50331%208.97206C8.9139%209.19508%209.3767%208.87087%209.3767%208.40355V7.28007C9.3767%207.10024%209.30515%206.92814%209.17817%206.80116L5.89217%203.51516C5.67881%203.3018%205.82964%202.93762%206.1313%202.93762H8.69926C9.07311%202.93762%209.37605%202.63468%209.37605%202.26083V0.568195C9.37605%200.381271%209.52753%200.229797%209.71445%200.229797H13.0991C13.286%200.229797%2013.4375%200.381271%2013.4375%200.568195V2.26083H13.4394Z'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_127_17352)'%3e%3cg%20filter='url(%23filter0_f_127_17352)'%3e%3cellipse%20cx='1.38174'%20cy='6.43346'%20rx='1.38174'%20ry='6.43346'%20transform='matrix(0%20-1%20-1%200%2017.8027%2015.3685)'%20fill='%23AEFFFB'/%3e%3c/g%3e%3cg%20filter='url(%23filter1_f_127_17352)'%3e%3cellipse%20cx='1.38174'%20cy='6.43346'%20rx='1.38174'%20ry='6.43346'%20transform='matrix(-0.369097%20-0.929391%20-0.929391%200.369097%2023.2998%2012.3085)'%20fill='%2300FF88'/%3e%3c/g%3e%3cg%20filter='url(%23filter2_f_127_17352)'%3e%3cellipse%20cx='5.92474'%20cy='13.3989'%20rx='1.38174'%20ry='6.43346'%20transform='rotate(-68.3401%205.92474%2013.3989)'%20fill='%23195EFF'/%3e%3c/g%3e%3cg%20filter='url(%23filter3_f_127_17352)'%3e%3cellipse%20cx='13.9216'%20cy='8.87483'%20rx='1.11165'%20ry='1.87557'%20transform='rotate(-135.197%2013.9216%208.87483)'%20fill='%23AEFFFB'/%3e%3c/g%3e%3cg%20filter='url(%23filter4_f_127_17352)'%3e%3cellipse%20cx='14.4948'%20cy='7.84358'%20rx='1.11165'%20ry='1.87557'%20transform='rotate(-135.197%2014.4948%207.84358)'%20fill='%23195EFF'/%3e%3c/g%3e%3cg%20filter='url(%23filter5_f_127_17352)'%3e%3cellipse%20cx='14.3806'%20cy='2.11403'%20rx='1.11165'%20ry='1.87557'%20transform='rotate(-135.197%2014.3806%202.11403)'%20fill='%23AEFFFB'/%3e%3c/g%3e%3cg%20filter='url(%23filter6_f_127_17352)'%3e%3cellipse%20cx='14.7233'%20cy='1.65571'%20rx='1.11165'%20ry='1.87557'%20transform='rotate(-135.197%2014.7233%201.65571)'%20fill='%23195EFF'/%3e%3c/g%3e%3cg%20filter='url(%23filter7_f_127_17352)'%3e%3cellipse%20cx='1.11165'%20cy='1.87557'%20rx='1.11165'%20ry='1.87557'%20transform='matrix(0.709532%20-0.704673%20-0.704673%20-0.709532%209.52734%2011.2181)'%20fill='%23AEFFFB'/%3e%3c/g%3e%3cg%20filter='url(%23filter8_f_127_17352)'%3e%3cellipse%20cx='1.11165'%20cy='1.87557'%20rx='1.11165'%20ry='1.87557'%20transform='matrix(0.709532%20-0.704673%20-0.704673%20-0.709532%208.72461%2010.1868)'%20fill='%23195EFF'/%3e%3c/g%3e%3cg%20filter='url(%23filter9_f_127_17352)'%3e%3cellipse%20cx='1.11165'%20cy='1.87557'%20rx='1.11165'%20ry='1.87557'%20transform='matrix(0.709532%20-0.704673%20-0.704673%20-0.709532%208.72461%204.22815)'%20fill='%23AEFFFB'/%3e%3c/g%3e%3cg%20filter='url(%23filter10_f_127_17352)'%3e%3cellipse%20cx='1.11165'%20cy='1.87557'%20rx='1.11165'%20ry='1.87557'%20transform='matrix(0.709532%20-0.704673%20-0.704673%20-0.709532%208.61035%203.54068)'%20fill='%23195EFF'/%3e%3c/g%3e%3cg%20filter='url(%23filter11_f_127_17352)'%3e%3cellipse%20cx='1.11165'%20cy='3.57538'%20rx='1.11165'%20ry='3.57538'%20transform='matrix(0.709532%20-0.704673%20-0.704673%20-0.709532%208.83984%208.81177)'%20fill='%23195EFF'/%3e%3c/g%3e%3cg%20filter='url(%23filter12_f_127_17352)'%3e%3cellipse%20cx='16.0364'%20cy='4.57489'%20rx='1.11165'%20ry='3.57538'%20transform='rotate(-135.197%2016.0364%204.57489)'%20fill='%2300FF88'/%3e%3c/g%3e%3cg%20filter='url(%23filter13_f_127_17352)'%3e%3cellipse%20cx='1.38174'%20cy='6.43346'%20rx='1.38174'%20ry='6.43346'%20transform='matrix(0%20-1%20-1%200%2017.8027%2015.9414)'%20fill='%23195EFF'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_f_127_17352'%20x='2.18539'%20y='9.85483'%20width='18.3675'%20height='8.2638'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeGaussianBlur%20stdDeviation='1.37508'%20result='effect1_foregroundBlur_127_17352'/%3e%3c/filter%3e%3cfilter%20id='filter1_f_127_17352'%20x='8.05942'%20y='7.9487'%20width='17.5023'%20height='10.9005'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeGaussianBlur%20stdDeviation='1.37508'%20result='effect1_foregroundBlur_127_17352'/%3e%3c/filter%3e%3cfilter%20id='filter2_f_127_17352'%20x='-2.82633'%20y='7.9487'%20width='17.5023'%20height='10.9005'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeGaussianBlur%20stdDeviation='1.37508'%20result='effect1_foregroundBlur_127_17352'/%3e%3c/filter%3e%3cfilter%20id='filter3_f_127_17352'%20x='9.63168'%20y='4.58023'%20width='8.57941'%20height='8.58923'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeGaussianBlur%20stdDeviation='1.37508'%20result='effect1_foregroundBlur_127_17352'/%3e%3c/filter%3e%3cfilter%20id='filter4_f_127_17352'%20x='10.2049'%20y='3.54898'%20width='8.57941'%20height='8.58923'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeGaussianBlur%20stdDeviation='1.37508'%20result='effect1_foregroundBlur_127_17352'/%3e%3c/filter%3e%3cfilter%20id='filter5_f_127_17352'%20x='10.0907'%20y='-2.18057'%20width='8.57941'%20height='8.5892'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeGaussianBlur%20stdDeviation='1.37508'%20result='effect1_foregroundBlur_127_17352'/%3e%3c/filter%3e%3cfilter%20id='filter6_f_127_17352'%20x='10.4334'%20y='-2.63889'%20width='8.57941'%20height='8.5892'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeGaussianBlur%20stdDeviation='1.37508'%20result='effect1_foregroundBlur_127_17352'/%3e%3c/filter%3e%3cfilter%20id='filter7_f_127_17352'%20x='4.70492'%20y='4.80942'%20width='8.57941'%20height='8.58923'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeGaussianBlur%20stdDeviation='1.37508'%20result='effect1_foregroundBlur_127_17352'/%3e%3c/filter%3e%3cfilter%20id='filter8_f_127_17352'%20x='3.90219'%20y='3.77811'%20width='8.57941'%20height='8.58923'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeGaussianBlur%20stdDeviation='1.37508'%20result='effect1_foregroundBlur_127_17352'/%3e%3c/filter%3e%3cfilter%20id='filter9_f_127_17352'%20x='3.90219'%20y='-2.18057'%20width='8.57941'%20height='8.5892'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeGaussianBlur%20stdDeviation='1.37508'%20result='effect1_foregroundBlur_127_17352'/%3e%3c/filter%3e%3cfilter%20id='filter10_f_127_17352'%20x='3.78793'%20y='-2.86804'%20width='8.57941'%20height='8.5892'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeGaussianBlur%20stdDeviation='1.37508'%20result='effect1_foregroundBlur_127_17352'/%3e%3c/filter%3e%3cfilter%20id='filter11_f_127_17352'%20x='1.7186'%20y='0.0856926'%20width='10.7816'%20height='10.8118'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeGaussianBlur%20stdDeviation='1.37508'%20result='effect1_foregroundBlur_127_17352'/%3e%3c/filter%3e%3cfilter%20id='filter12_f_127_17352'%20x='10.6454'%20y='-0.830994'%20width='10.7816'%20height='10.8118'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeGaussianBlur%20stdDeviation='1.37508'%20result='effect1_foregroundBlur_127_17352'/%3e%3c/filter%3e%3cfilter%20id='filter13_f_127_17352'%20x='2.18539'%20y='10.4278'%20width='18.3675'%20height='8.2638'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeGaussianBlur%20stdDeviation='1.37508'%20result='effect1_foregroundBlur_127_17352'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e";
2
2
  export {
3
- f as default
3
+ e as default
4
4
  };
package/dist/index91.js CHANGED
@@ -1,4 +1,86 @@
1
- import f from "./index45.js";
1
+ import { createContext as f } from "./index120.js";
2
+ import { useDirection as m } from "./index124.js";
3
+ import { useForwardExpose as c } from "./index125.js";
4
+ import { useId as v } from "./index127.js";
5
+ import { Primitive as V } from "./index133.js";
6
+ import { defineComponent as _, toRefs as b, ref as y, createBlock as h, openBlock as q, unref as o, withCtx as C, renderSlot as R } from "vue";
7
+ import { useVModel as T } from "./index126.js";
8
+ const [O, g] = f("TabsRoot");
9
+ var M = /* @__PURE__ */ _({
10
+ __name: "TabsRoot",
11
+ props: {
12
+ defaultValue: {
13
+ type: null,
14
+ required: !1
15
+ },
16
+ orientation: {
17
+ type: String,
18
+ required: !1,
19
+ default: "horizontal"
20
+ },
21
+ dir: {
22
+ type: String,
23
+ required: !1
24
+ },
25
+ activationMode: {
26
+ type: String,
27
+ required: !1,
28
+ default: "automatic"
29
+ },
30
+ modelValue: {
31
+ type: null,
32
+ required: !1
33
+ },
34
+ unmountOnHide: {
35
+ type: Boolean,
36
+ required: !1,
37
+ default: !0
38
+ },
39
+ asChild: {
40
+ type: Boolean,
41
+ required: !1
42
+ },
43
+ as: {
44
+ type: null,
45
+ required: !1
46
+ }
47
+ },
48
+ emits: ["update:modelValue"],
49
+ setup(l, { emit: d }) {
50
+ const e = l, u = d, { orientation: r, unmountOnHide: s, dir: n } = b(e), i = m(n);
51
+ c();
52
+ const a = T(e, "modelValue", u, {
53
+ defaultValue: e.defaultValue,
54
+ passive: e.modelValue === void 0
55
+ }), p = y();
56
+ return g({
57
+ modelValue: a,
58
+ changeModelValue: (t) => {
59
+ a.value = t;
60
+ },
61
+ orientation: r,
62
+ dir: i,
63
+ unmountOnHide: s,
64
+ activationMode: e.activationMode,
65
+ baseId: v(void 0, "reka-tabs"),
66
+ tabsList: p
67
+ }), (t, x) => (q(), h(o(V), {
68
+ dir: o(i),
69
+ "data-orientation": o(r),
70
+ "as-child": t.asChild,
71
+ as: t.as
72
+ }, {
73
+ default: C(() => [R(t.$slots, "default", { modelValue: o(a) })]),
74
+ _: 3
75
+ }, 8, [
76
+ "dir",
77
+ "data-orientation",
78
+ "as-child",
79
+ "as"
80
+ ]));
81
+ }
82
+ }), j = M;
2
83
  export {
3
- f as default
84
+ j as TabsRoot_default,
85
+ O as injectTabsRootContext
4
86
  };
package/dist/index92.js CHANGED
@@ -1,4 +1,68 @@
1
- import f from "./index46.js";
1
+ import { useForwardExpose as p } from "./index125.js";
2
+ import { Presence_default as c } from "./index131.js";
3
+ import { Primitive as v } from "./index133.js";
4
+ import { injectTabsRootContext as b } from "./index91.js";
5
+ import { makeTriggerId as _, makeContentId as y } from "./index139.js";
6
+ import { defineComponent as C, computed as n, ref as h, onMounted as g, createBlock as I, openBlock as k, unref as t, withCtx as u, createVNode as q, normalizeStyle as T, renderSlot as B, createCommentVNode as M } from "vue";
7
+ var S = /* @__PURE__ */ C({
8
+ __name: "TabsContent",
9
+ props: {
10
+ value: {
11
+ type: [String, Number],
12
+ required: !0
13
+ },
14
+ forceMount: {
15
+ type: Boolean,
16
+ required: !1
17
+ },
18
+ asChild: {
19
+ type: Boolean,
20
+ required: !1
21
+ },
22
+ as: {
23
+ type: null,
24
+ required: !1
25
+ }
26
+ },
27
+ setup(d) {
28
+ const o = d, { forwardRef: s } = p(), e = b(), m = n(() => _(e.baseId, o.value)), f = n(() => y(e.baseId, o.value)), r = n(() => o.value === e.modelValue.value), i = h(r.value);
29
+ return g(() => {
30
+ requestAnimationFrame(() => {
31
+ i.value = !1;
32
+ });
33
+ }), (a, w) => (k(), I(t(c), {
34
+ present: a.forceMount || r.value,
35
+ "force-mount": ""
36
+ }, {
37
+ default: u(({ present: l }) => [q(t(v), {
38
+ id: f.value,
39
+ ref: t(s),
40
+ "as-child": a.asChild,
41
+ as: a.as,
42
+ role: "tabpanel",
43
+ "data-state": r.value ? "active" : "inactive",
44
+ "data-orientation": t(e).orientation.value,
45
+ "aria-labelledby": m.value,
46
+ hidden: !l,
47
+ tabindex: "0",
48
+ style: T({ animationDuration: i.value ? "0s" : void 0 })
49
+ }, {
50
+ default: u(() => [!t(e).unmountOnHide.value || l ? B(a.$slots, "default", { key: 0 }) : M("v-if", !0)]),
51
+ _: 2
52
+ }, 1032, [
53
+ "id",
54
+ "as-child",
55
+ "as",
56
+ "data-state",
57
+ "data-orientation",
58
+ "aria-labelledby",
59
+ "hidden",
60
+ "style"
61
+ ])]),
62
+ _: 3
63
+ }, 8, ["present"]));
64
+ }
65
+ }), F = S;
2
66
  export {
3
- f as default
67
+ F as TabsContent_default
4
68
  };
package/dist/index93.js CHANGED
@@ -1,4 +1,55 @@
1
- import f from "./index47.js";
1
+ import { useForwardExpose as u } from "./index125.js";
2
+ import { Primitive as p } from "./index133.js";
3
+ import { RovingFocusGroup_default as d } from "./index137.js";
4
+ import { injectTabsRootContext as f } from "./index91.js";
5
+ import { defineComponent as c, toRefs as m, createBlock as _, openBlock as v, unref as e, withCtx as r, createVNode as h, renderSlot as b } from "vue";
6
+ var C = /* @__PURE__ */ c({
7
+ __name: "TabsList",
8
+ props: {
9
+ loop: {
10
+ type: Boolean,
11
+ required: !1,
12
+ default: !0
13
+ },
14
+ asChild: {
15
+ type: Boolean,
16
+ required: !1
17
+ },
18
+ as: {
19
+ type: null,
20
+ required: !1
21
+ }
22
+ },
23
+ setup(a) {
24
+ const i = a, { loop: s } = m(i), { forwardRef: n, currentElement: l } = u(), t = f();
25
+ return t.tabsList = l, (o, y) => (v(), _(e(d), {
26
+ "as-child": "",
27
+ orientation: e(t).orientation.value,
28
+ dir: e(t).dir.value,
29
+ loop: e(s)
30
+ }, {
31
+ default: r(() => [h(e(p), {
32
+ ref: e(n),
33
+ role: "tablist",
34
+ "as-child": o.asChild,
35
+ as: o.as,
36
+ "aria-orientation": e(t).orientation.value
37
+ }, {
38
+ default: r(() => [b(o.$slots, "default")]),
39
+ _: 3
40
+ }, 8, [
41
+ "as-child",
42
+ "as",
43
+ "aria-orientation"
44
+ ])]),
45
+ _: 3
46
+ }, 8, [
47
+ "orientation",
48
+ "dir",
49
+ "loop"
50
+ ]));
51
+ }
52
+ }), w = C;
2
53
  export {
3
- f as default
54
+ w as TabsList_default
4
55
  };