@voidzero-dev/vitepress-theme 1.1.61 → 1.1.62

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 (253) hide show
  1. package/dist/index111.js +4 -4
  2. package/dist/index113.js +3 -3
  3. package/dist/index115.js +1 -1
  4. package/dist/index119.js +10 -10
  5. package/dist/index121.js +3 -3
  6. package/dist/index123.js +7 -7
  7. package/dist/index128.js +4 -4
  8. package/dist/index135.js +1 -1
  9. package/dist/index140.js +2 -2
  10. package/dist/index142.js +21 -21
  11. package/dist/index145.js +5 -5
  12. package/dist/index148.js +1 -1
  13. package/dist/index157.js +4 -4
  14. package/dist/index167.js +4 -4
  15. package/dist/index173.js +5 -5
  16. package/dist/index185.js +2 -2
  17. package/dist/index187.js +1 -1
  18. package/dist/index197.js +1 -1
  19. package/dist/index198.js +1 -1
  20. package/dist/index199.js +1 -1
  21. package/dist/index200.js +1 -1
  22. package/dist/index201.js +1 -1
  23. package/dist/index202.js +1 -1
  24. package/dist/index203.js +1 -1
  25. package/dist/index204.js +1 -1
  26. package/dist/index205.js +3 -28
  27. package/dist/index206.js +5 -42
  28. package/dist/index207.js +5 -38
  29. package/dist/index208.js +2 -5
  30. package/dist/index209.js +1 -1
  31. package/dist/index210.js +1 -1
  32. package/dist/index211.js +28 -2
  33. package/dist/index212.js +20 -2
  34. package/dist/index213.js +94 -0
  35. package/dist/index215.js +7 -0
  36. package/dist/index216.js +4 -1
  37. package/dist/index217.js +5 -2
  38. package/dist/index218.js +5 -2
  39. package/dist/index219.js +5 -34
  40. package/dist/index220.js +5 -2
  41. package/dist/index221.js +32 -2
  42. package/dist/index222.js +2 -2
  43. package/dist/index223.js +2 -2
  44. package/dist/index224.js +2 -2
  45. package/dist/index225.js +2 -2
  46. package/dist/index226.js +2 -2
  47. package/dist/index227.js +2 -2
  48. package/dist/index228.js +2 -2
  49. package/dist/index229.js +2 -2
  50. package/dist/index235.js +1 -1
  51. package/dist/index248.js +2 -2
  52. package/dist/index249.js +1 -1
  53. package/dist/index250.js +1 -1
  54. package/dist/index251.js +1 -1
  55. package/dist/index252.js +2 -2
  56. package/dist/index253.js +2 -2
  57. package/dist/index254.js +2 -2
  58. package/dist/index255.js +1 -1
  59. package/dist/index257.js +108 -2
  60. package/dist/index259.js +2 -2
  61. package/dist/index260.js +5 -47
  62. package/dist/index261.js +2 -2
  63. package/dist/index262.js +1 -1
  64. package/dist/index263.js +34 -2
  65. package/dist/index264.js +2 -2
  66. package/dist/index265.js +2 -5
  67. package/dist/index266.js +2 -5
  68. package/dist/index267.js +2 -96
  69. package/dist/index268.js +1 -1
  70. package/dist/index269.js +2 -2
  71. package/dist/index270.js +2 -2
  72. package/dist/index271.js +1 -1
  73. package/dist/index272.js +2 -3
  74. package/dist/index273.js +2 -5
  75. package/dist/index274.js +42 -52
  76. package/dist/index275.js +3 -44
  77. package/dist/index276.js +2 -2587
  78. package/dist/index277.js +47 -2
  79. package/dist/index278.js +2 -2
  80. package/dist/index279.js +38 -2
  81. package/dist/index28.js +1 -1
  82. package/dist/index280.js +52 -2
  83. package/dist/index281.js +44 -3
  84. package/dist/index282.js +2585 -7
  85. package/dist/index283.js +1 -1
  86. package/dist/index284.js +2 -2
  87. package/dist/index285.js +2 -20
  88. package/dist/index286.js +2 -92
  89. package/dist/index287.js +4 -0
  90. package/dist/index288.js +2 -5
  91. package/dist/index289.js +2 -5
  92. package/dist/index290.js +2 -5
  93. package/dist/index291.js +2 -5
  94. package/dist/index292.js +96 -5
  95. package/dist/index293.js +2 -5
  96. package/dist/index294.js +98144 -30
  97. package/dist/index295.js +2 -2
  98. package/dist/index296.js +2 -2
  99. package/dist/index297.js +9 -2
  100. package/dist/index298.js +2 -2
  101. package/dist/index299.js +2 -2
  102. package/dist/index300.js +2 -2
  103. package/dist/index301.js +2 -2
  104. package/dist/index302.js +2 -2
  105. package/dist/index303.js +2 -2
  106. package/dist/index304.js +2 -2
  107. package/dist/index305.js +1 -1
  108. package/dist/index306.js +1 -1
  109. package/dist/index307.js +1 -1
  110. package/dist/index308.js +2 -2
  111. package/dist/index309.js +1 -1
  112. package/dist/index310.js +5 -2
  113. package/dist/index311.js +2 -98146
  114. package/dist/index312.js +1 -1
  115. package/dist/index313.js +1 -1
  116. package/dist/index314.js +2 -83
  117. package/dist/index315.js +4 -0
  118. package/dist/index316.js +2 -71
  119. package/dist/index317.js +4 -0
  120. package/dist/index318.js +1 -1
  121. package/dist/index319.js +1 -1
  122. package/dist/index320.js +1 -1
  123. package/dist/index321.js +82 -2
  124. package/dist/index323.js +71 -2
  125. package/dist/index325.js +83 -2
  126. package/dist/index327.js +2 -7207
  127. package/dist/index328.js +3 -1735
  128. package/dist/index329.js +1 -1
  129. package/dist/index330.js +9 -9
  130. package/dist/index332.js +7207 -3
  131. package/dist/index333.js +1735 -2
  132. package/dist/index334.js +3 -82
  133. package/dist/{index338.js → index335.js} +3 -3
  134. package/dist/index337.js +16 -3
  135. package/dist/{index342.js → index339.js} +4 -4
  136. package/dist/{index344.js → index341.js} +1 -1
  137. package/dist/{index346.js → index343.js} +5 -5
  138. package/dist/index345.js +28 -0
  139. package/dist/index347.js +4 -0
  140. package/dist/index348.js +2 -26
  141. package/dist/index349.js +4 -0
  142. package/dist/index350.js +5 -46
  143. package/dist/index351.js +46 -5
  144. package/dist/index352.js +70 -5
  145. package/dist/index353.js +3 -3
  146. package/dist/index354.js +2 -2
  147. package/dist/index355.js +20 -3
  148. package/dist/index356.js +30 -5
  149. package/dist/index357.js +25 -61
  150. package/dist/index358.js +5 -5
  151. package/dist/index359.js +2 -22
  152. package/dist/index360.js +29 -5
  153. package/dist/index362.js +5 -27
  154. package/dist/index363.js +5 -26
  155. package/dist/index364.js +4 -4
  156. package/dist/index365.js +5 -2
  157. package/dist/index366.js +4 -28
  158. package/dist/index367.js +7 -0
  159. package/dist/index368.js +5 -8
  160. package/dist/index369.js +56 -64
  161. package/dist/index370.js +314 -46
  162. package/dist/index371.js +2 -112
  163. package/dist/index372.js +46 -18
  164. package/dist/index373.js +114 -0
  165. package/dist/index374.js +60 -91
  166. package/dist/index376.js +30 -25
  167. package/dist/index379.js +4 -0
  168. package/dist/index380.js +2 -55
  169. package/dist/index381.js +21 -0
  170. package/dist/index383.js +96 -0
  171. package/dist/index385.js +27 -2
  172. package/dist/index387.js +44 -57
  173. package/dist/index389.js +50 -27
  174. package/dist/index391.js +21 -3
  175. package/dist/index393.js +3 -454
  176. package/dist/index394.js +4 -0
  177. package/dist/index395.js +441 -74
  178. package/dist/index397.js +87 -2
  179. package/dist/index399.js +4 -5
  180. package/dist/index400.js +10 -5
  181. package/dist/index401.js +28 -5
  182. package/dist/index402.js +5 -13
  183. package/dist/index403.js +3 -3
  184. package/dist/index404.js +4 -4
  185. package/dist/index405.js +5 -28
  186. package/dist/index406.js +13 -5
  187. package/dist/index407.js +35 -10
  188. package/dist/index409.js +23 -22
  189. package/dist/index411.js +76 -18
  190. package/dist/index413.js +48 -22
  191. package/dist/index415.js +5 -77
  192. package/dist/index416.js +7 -0
  193. package/dist/index417.js +20 -49
  194. package/dist/{index410.js → index418.js} +1 -1
  195. package/dist/index419.js +18 -82
  196. package/dist/index42.js +4 -4
  197. package/dist/index420.js +25 -0
  198. package/dist/index421.js +78 -23
  199. package/dist/index423.js +23 -30
  200. package/dist/index425.js +3 -3
  201. package/dist/index426.js +3 -3
  202. package/dist/index427.js +3 -3
  203. package/dist/index428.js +25 -5
  204. package/dist/index430.js +96 -23
  205. package/dist/index432.js +23 -95
  206. package/dist/index434.js +5 -29
  207. package/dist/index435.js +7 -0
  208. package/dist/index436.js +23 -92
  209. package/dist/index438.js +94 -22
  210. package/dist/index440.js +11 -5
  211. package/dist/index441.js +28 -14
  212. package/dist/index442.js +5 -11
  213. package/dist/index443.js +5 -28
  214. package/dist/index444.js +13 -4
  215. package/dist/index445.js +27 -37
  216. package/dist/index447.js +39 -2
  217. package/dist/index449.js +4 -0
  218. package/dist/index451.js +2 -2
  219. package/dist/index46.js +1 -1
  220. package/dist/index49.js +4 -4
  221. package/dist/index51.js +4 -4
  222. package/dist/index52.js +1 -1
  223. package/dist/index54.js +1 -1
  224. package/dist/index58.js +55 -56
  225. package/dist/index6.js +1 -1
  226. package/dist/index62.js +1 -1
  227. package/dist/index65.js +1 -1
  228. package/dist/index7.js +2 -2
  229. package/dist/index75.js +1 -1
  230. package/dist/index77.js +2 -2
  231. package/dist/index8.js +2 -2
  232. package/dist/index81.js +2 -2
  233. package/dist/index9.js +1 -1
  234. package/dist/index93.js +1 -1
  235. package/package.json +1 -1
  236. package/dist/index214.js +0 -110
  237. package/dist/index256.js +0 -4
  238. package/dist/index258.js +0 -4
  239. package/dist/index322.js +0 -4
  240. package/dist/index324.js +0 -4
  241. package/dist/index326.js +0 -4
  242. package/dist/index336.js +0 -4
  243. package/dist/index340.js +0 -18
  244. package/dist/index361.js +0 -7
  245. package/dist/index378.js +0 -52
  246. package/dist/index382.js +0 -23
  247. package/dist/index386.js +0 -4
  248. package/dist/index392.js +0 -4
  249. package/dist/index396.js +0 -317
  250. package/dist/index408.js +0 -6
  251. package/dist/index412.js +0 -23
  252. package/dist/index429.js +0 -7
  253. package/dist/index448.js +0 -31
package/dist/index360.js CHANGED
@@ -1,7 +1,31 @@
1
- import o from "./index387.js";
2
- /* empty css */
3
- import t from "./index95.js";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3888a578"]]);
1
+ import { defineComponent as n, createElementBlock as r, openBlock as s, unref as o, createElementVNode as t, toDisplayString as c } from "vue";
2
+ import { createSearchTranslate as l } from "./index417.js";
3
+ const u = ["aria-label"], i = { class: "DocSearch-Button-Container" }, h = { class: "DocSearch-Button-Placeholder" }, m = /* @__PURE__ */ n({
4
+ __name: "VPNavBarSearchButton",
5
+ setup(b) {
6
+ const e = l({
7
+ button: {
8
+ buttonText: "Search",
9
+ buttonAriaLabel: "Search"
10
+ }
11
+ });
12
+ return (S, a) => (s(), r("button", {
13
+ type: "button",
14
+ "aria-label": o(e)("button.buttonAriaLabel"),
15
+ "aria-keyshortcuts": "/ control+k meta+k",
16
+ class: "DocSearch DocSearch-Button VPSearchButton"
17
+ }, [
18
+ t("span", i, [
19
+ a[0] || (a[0] = t("span", { class: "vpi-search DocSearch-Search-Icon" }, null, -1)),
20
+ t("span", h, c(o(e)("button.buttonText")), 1)
21
+ ]),
22
+ a[1] || (a[1] = t("span", { class: "DocSearch-Button-Keys" }, [
23
+ t("kbd", { class: "DocSearch-Button-Key" }),
24
+ t("kbd", { class: "DocSearch-Button-Key" })
25
+ ], -1))
26
+ ], 8, u));
27
+ }
28
+ });
5
29
  export {
6
- p as default
30
+ m as default
7
31
  };
package/dist/index362.js CHANGED
@@ -1,32 +1,10 @@
1
- import { defineComponent as o, computed as a, createBlock as r, openBlock as c, withCtx as m, createElementVNode as l } from "vue";
2
- import { useData as s } from "./index272.js";
3
- import f from "./index8.js";
4
- const p = ["innerHTML"], v = /* @__PURE__ */ o({
5
- __name: "VPNavBarMenuLink",
6
- props: {
7
- item: {}
8
- },
1
+ import { defineComponent as r } from "vue";
2
+ const _ = /* @__PURE__ */ r({
3
+ __name: "VPSearchError",
9
4
  setup(e) {
10
- const t = e, { page: n } = s(), i = a(
11
- () => typeof t.item.link == "function" ? t.item.link(n.value) : t.item.link
12
- );
13
- return (u, x) => (c(), r(f, {
14
- class: "flex items-center px-3 py-2 text-base font-sans text-primary dark:text-white hover:opacity-70 transition-opacity whitespace-nowrap overflow-hidden text-ellipsis",
15
- href: i.value,
16
- target: e.item.target,
17
- rel: e.item.rel,
18
- "no-icon": e.item.noIcon,
19
- tabindex: "0"
20
- }, {
21
- default: m(() => [
22
- l("span", {
23
- innerHTML: e.item.text
24
- }, null, 8, p)
25
- ]),
26
- _: 1
27
- }, 8, ["href", "target", "rel", "no-icon"]));
5
+ return (n, t) => null;
28
6
  }
29
7
  });
30
8
  export {
31
- v as default
9
+ _ as default
32
10
  };
package/dist/index363.js CHANGED
@@ -1,28 +1,7 @@
1
- import { defineComponent as u, computed as l, createBlock as m, openBlock as s, normalizeClass as f, unref as c } from "vue";
2
- import { useData as p } from "./index272.js";
3
- import { isActive as r } from "./index206.js";
4
- import v from "./index360.js";
5
- const B = /* @__PURE__ */ u({
6
- __name: "VPNavBarMenuGroup",
7
- props: {
8
- item: {}
9
- },
10
- setup(e) {
11
- const n = e, { page: i } = p(), o = (t) => "component" in t ? !1 : "link" in t ? r(
12
- i.value.relativePath,
13
- typeof t.link == "function" ? t.link(i.value) : t.link,
14
- !!n.item.activeMatch
15
- ) : t.items.some(o), a = l(() => o(n.item));
16
- return (t, h) => (s(), m(v, {
17
- class: f({
18
- VPNavBarMenuGroup: !0,
19
- active: c(r)(c(i).relativePath, e.item.activeMatch, !!e.item.activeMatch) || a.value
20
- }),
21
- button: e.item.text,
22
- items: e.item.items
23
- }, null, 8, ["class", "button", "items"]));
24
- }
25
- });
1
+ import o from "./index381.js";
2
+ /* empty css */
3
+ import r from "./index95.js";
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-6be01745"]]);
26
5
  export {
27
- B as default
6
+ m as default
28
7
  };
package/dist/index364.js CHANGED
@@ -1,7 +1,7 @@
1
- import o from "./index393.js";
1
+ import o from "./index383.js";
2
2
  /* empty css */
3
- import a from "./index95.js";
4
- const e = /* @__PURE__ */ a(o, [["__scopeId", "data-v-3ef64b6a"]]);
3
+ import t from "./index95.js";
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d50058da"]]);
5
5
  export {
6
- e as default
6
+ p as default
7
7
  };
package/dist/index365.js CHANGED
@@ -1,4 +1,7 @@
1
- import f from "./index395.js";
1
+ import o from "./index385.js";
2
+ /* empty css */
3
+ import t from "./index95.js";
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f7e877bc"]]);
2
5
  export {
3
- f as default
6
+ m as default
4
7
  };
package/dist/index366.js CHANGED
@@ -1,31 +1,7 @@
1
- import { defineComponent as n, createElementBlock as r, openBlock as s, unref as o, createElementVNode as t, toDisplayString as c } from "vue";
2
- import { createSearchTranslate as l } from "./index412.js";
3
- const u = ["aria-label"], i = { class: "DocSearch-Button-Container" }, h = { class: "DocSearch-Button-Placeholder" }, m = /* @__PURE__ */ n({
4
- __name: "VPNavBarSearchButton",
5
- setup(b) {
6
- const e = l({
7
- button: {
8
- buttonText: "Search",
9
- buttonAriaLabel: "Search"
10
- }
11
- });
12
- return (S, a) => (s(), r("button", {
13
- type: "button",
14
- "aria-label": o(e)("button.buttonAriaLabel"),
15
- "aria-keyshortcuts": "/ control+k meta+k",
16
- class: "DocSearch DocSearch-Button VPSearchButton"
17
- }, [
18
- t("span", i, [
19
- a[0] || (a[0] = t("span", { class: "vpi-search DocSearch-Search-Icon" }, null, -1)),
20
- t("span", h, c(o(e)("button.buttonText")), 1)
21
- ]),
22
- a[1] || (a[1] = t("span", { class: "DocSearch-Button-Keys" }, [
23
- t("kbd", { class: "DocSearch-Button-Key" }),
24
- t("kbd", { class: "DocSearch-Button-Key" })
25
- ], -1))
26
- ], 8, u));
27
- }
28
- });
1
+ import o from "./index387.js";
2
+ /* empty css */
3
+ import t from "./index95.js";
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d2f3186f"]]);
29
5
  export {
30
6
  m as default
31
7
  };
@@ -0,0 +1,7 @@
1
+ import o from "./index389.js";
2
+ /* empty css */
3
+ import r from "./index95.js";
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-dfc90677"]]);
5
+ export {
6
+ m as default
7
+ };
package/dist/index368.js CHANGED
@@ -1,10 +1,7 @@
1
- import { defineComponent as r } from "vue";
2
- const _ = /* @__PURE__ */ r({
3
- __name: "VPSearchError",
4
- setup(e) {
5
- return (n, t) => null;
6
- }
7
- });
1
+ import o from "./index391.js";
2
+ /* empty css */
3
+ import t from "./index95.js";
4
+ const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-56ffc228"]]);
8
5
  export {
9
- _ as default
6
+ i as default
10
7
  };
package/dist/index369.js CHANGED
@@ -1,72 +1,64 @@
1
- import { onMounted as m, onUnmounted as c } from "vue";
2
- import { throttleAndDebounce as l } from "./index205.js";
3
- const u = {
4
- xmini: [[0, 2]],
5
- mini: [],
6
- small: [
7
- [920, 6],
8
- [768, 5],
9
- [640, 4],
10
- [480, 3],
11
- [0, 2]
12
- ],
13
- medium: [
14
- [960, 5],
15
- [832, 4],
16
- [640, 3],
17
- [480, 2]
18
- ],
19
- big: [
20
- [832, 3],
21
- [640, 2]
22
- ]
23
- };
24
- function G({
25
- el: t,
26
- size: n = "medium"
27
- }) {
28
- const e = l(o, 100);
29
- m(() => {
30
- o(), window.addEventListener("resize", e);
31
- }), c(() => {
32
- window.removeEventListener("resize", e);
1
+ import { ref as i, computed as o, watch as k, onMounted as v, watchEffect as f, watchPostEffect as m, onUnmounted as E } from "vue";
2
+ import { isActive as g } from "./index274.js";
3
+ import { hasActiveLink as L } from "./index372.js";
4
+ import { useData as w } from "./index205.js";
5
+ const l = i(!1);
6
+ function P(e) {
7
+ let t;
8
+ f(() => {
9
+ t = l.value ? document.activeElement : void 0;
10
+ }), v(() => {
11
+ window.addEventListener("keyup", a);
12
+ }), E(() => {
13
+ window.removeEventListener("keyup", a);
33
14
  });
34
- function o() {
35
- a(t.value, n);
15
+ function a(n) {
16
+ n.key === "Escape" && l.value && (e(), t?.focus());
36
17
  }
37
18
  }
38
- function a(t, n) {
39
- const e = t.children.length, o = t.querySelectorAll(".vp-sponsor-grid-item:not(.empty)").length, r = f(t, n, o);
40
- g(t, r, e, o);
41
- }
42
- function f(t, n, e) {
43
- const o = u[n], r = window.innerWidth;
44
- let i = 1;
45
- return o.some(([s, d]) => {
46
- if (r >= s)
47
- return i = e < d ? e : d, !0;
48
- }), p(t, i), i;
49
- }
50
- function p(t, n) {
51
- t.dataset.vpGrid = String(n);
52
- }
53
- function g(t, n, e, o) {
54
- const r = e - o, i = o % n, s = i === 0 ? i : n - i;
55
- v(t, s - r);
56
- }
57
- function v(t, n) {
58
- n !== 0 && (n > 0 ? S(t, n) : h(t, n * -1));
59
- }
60
- function S(t, n) {
61
- for (let e = 0; e < n; e++) {
62
- const o = document.createElement("div");
63
- o.classList.add("vp-sponsor-grid-item", "empty"), t.append(o);
19
+ function S() {
20
+ function e() {
21
+ l.value = !0;
22
+ }
23
+ function t() {
24
+ l.value = !1;
25
+ }
26
+ function a() {
27
+ l.value ? t() : e();
64
28
  }
29
+ return {
30
+ isOpen: l,
31
+ open: e,
32
+ close: t,
33
+ toggle: a
34
+ };
65
35
  }
66
- function h(t, n) {
67
- for (let e = 0; e < n; e++)
68
- t.removeChild(t.lastElementChild);
36
+ function I(e) {
37
+ const { page: t, hash: a } = w(), n = i(!1), s = o(() => e.value.collapsed != null), p = o(() => !!e.value.link), u = i(!1), c = () => {
38
+ u.value = g(t.value.relativePath, e.value.link);
39
+ };
40
+ k([t, e, a], c), v(c);
41
+ const r = o(() => u.value ? !0 : e.value.items ? L(t.value.relativePath, e.value.items) : !1), d = o(() => !!(e.value.items && e.value.items.length));
42
+ f(() => {
43
+ n.value = !!(s.value && e.value.collapsed);
44
+ }), m(() => {
45
+ (u.value || r.value) && (n.value = !1);
46
+ });
47
+ function h() {
48
+ s.value && (n.value = !n.value);
49
+ }
50
+ return {
51
+ collapsed: n,
52
+ collapsible: s,
53
+ isLink: p,
54
+ isActiveLink: u,
55
+ hasActiveLink: r,
56
+ hasChildren: d,
57
+ toggle: h
58
+ };
69
59
  }
70
60
  export {
71
- G as useSponsorsGrid
61
+ P as useCloseSidebarOnEscape,
62
+ S as useSidebarControl,
63
+ I as useSidebarItemControl
72
64
  };