@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/index374.js CHANGED
@@ -1,96 +1,65 @@
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 "./index399.js";
3
- import { useData as $ } from "./index272.js";
4
- import { useLayout as b } from "./index350.js";
5
- import y from "./index400.js";
6
- import g from "./index401.js";
7
- import k from "./index402.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"
1
+ import { defineComponent as c, ref as r, createElementBlock as o, openBlock as l, createElementVNode as s, createCommentVNode as u, normalizeClass as f, createVNode as v, withCtx as p, renderSlot as x } from "vue";
2
+ import { useFlyout as y } from "./index401.js";
3
+ import b from "./index402.js";
4
+ const k = ["aria-expanded", "aria-label"], h = {
5
+ key: 0,
6
+ class: "flex items-center gap-1 leading-normal overflow-hidden"
7
+ }, w = ["innerHTML"], V = {
8
+ key: 1,
9
+ class: "vpi-more-horizontal text-xl"
10
+ }, C = { 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), a = r();
20
+ y({ el: a, onBlur: d });
21
+ function d() {
22
+ n.value = !1;
23
+ }
24
+ return (m, t) => (l(), o("div", {
25
+ class: "VPFlyout relative flex items-center",
26
+ ref_key: "el",
27
+ ref: a,
28
+ onMouseenter: t[1] || (t[1] = (i) => n.value = !0),
29
+ onMouseleave: t[2] || (t[2] = (i) => n.value = !1)
15
30
  }, [
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));
31
+ s("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 whitespace-nowrap overflow-hidden text-ellipsis",
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", h, [
40
+ e.icon ? (l(), o("span", {
41
+ key: 0,
42
+ class: f([e.icon, "shrink-0"])
43
+ }, null, 2)) : u("", !0),
44
+ e.button ? (l(), o("span", {
45
+ key: 1,
46
+ innerHTML: e.button,
47
+ class: "overflow-hidden text-ellipsis"
48
+ }, null, 8, w)) : u("", !0),
49
+ t[3] || (t[3] = s("span", { class: "vpi-chevron-down text-sm shrink-0" }, null, -1))
50
+ ])) : (l(), o("span", V))
51
+ ], 8, k),
52
+ s("div", C, [
53
+ v(b, { items: e.items }, {
54
+ default: p(() => [
55
+ x(m.$slots, "default", {}, void 0, !0)
56
+ ]),
57
+ _: 3
58
+ }, 8, ["items"])
59
+ ])
60
+ ], 544));
92
61
  }
93
62
  });
94
63
  export {
95
- S as default
64
+ F as default
96
65
  };
package/dist/index376.js CHANGED
@@ -1,29 +1,34 @@
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 "./index272.js";
3
- import { useLayout as l } from "./index350.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);
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 "./index205.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
+ ]));
25
30
  }
26
31
  });
27
32
  export {
28
- H as default
33
+ v as default
29
34
  };
@@ -0,0 +1,4 @@
1
+ import f from "./index356.js";
2
+ export {
3
+ f as default
4
+ };
package/dist/index380.js CHANGED
@@ -1,57 +1,4 @@
1
- import { defineComponent as c, ref as n, watch as d, createElementBlock as v, createCommentVNode as k, unref as u, openBlock as m, withModifiers as y, normalizeClass as S, createElementVNode as p, renderSlot as f, createBlock as V } from "vue";
2
- import { useScrollLock as B } from "@vueuse/core";
3
- import { inBrowser as C } from "vitepress";
4
- import { useLayout as E } from "./index350.js";
5
- import N from "./index404.js";
6
- const P = {
7
- class: "nav",
8
- id: "VPSidebarNav",
9
- "aria-labelledby": "sidebar-aria-label",
10
- tabindex: "-1"
11
- }, g = /* @__PURE__ */ c({
12
- __name: "VPSidebar",
13
- props: {
14
- open: { type: Boolean }
15
- },
16
- setup(a) {
17
- const { sidebarGroups: r, hasSidebar: b } = E(), s = a, o = n(null), t = B(C ? document.body : null);
18
- d(
19
- [s, o],
20
- () => {
21
- s.open ? (t.value = !0, o.value?.focus()) : t.value = !1;
22
- },
23
- { immediate: !0, flush: "post" }
24
- );
25
- const i = n(0);
26
- return d(
27
- r,
28
- () => {
29
- i.value += 1;
30
- },
31
- { deep: !0 }
32
- ), (l, e) => u(b) ? (m(), v("aside", {
33
- key: 0,
34
- class: S(["VPSidebar", { open: a.open }]),
35
- ref_key: "navEl",
36
- ref: o,
37
- onClick: e[0] || (e[0] = y(() => {
38
- }, ["stop"]))
39
- }, [
40
- p("nav", P, [
41
- e[1] || (e[1] = p("span", {
42
- class: "visually-hidden",
43
- id: "sidebar-aria-label"
44
- }, " Sidebar Navigation ", -1)),
45
- f(l.$slots, "sidebar-nav-before", {}, void 0, !0),
46
- (m(), V(N, {
47
- items: u(r),
48
- key: i.value
49
- }, null, 8, ["items"])),
50
- f(l.$slots, "sidebar-nav-after", {}, void 0, !0)
51
- ])
52
- ], 2)) : k("", !0);
53
- }
54
- });
1
+ import f from "./index357.js";
55
2
  export {
56
- g as default
3
+ f as default
57
4
  };
@@ -0,0 +1,21 @@
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",
7
+ props: {
8
+ show: { type: Boolean }
9
+ },
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
16
+ }));
17
+ }
18
+ });
19
+ export {
20
+ i as default
21
+ };
@@ -0,0 +1,96 @@
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 "./index403.js";
3
+ import { useData as $ } from "./index205.js";
4
+ import { useLayout as b } from "./index351.js";
5
+ import y from "./index404.js";
6
+ import g from "./index405.js";
7
+ import k from "./index406.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
+ });
94
+ export {
95
+ S as default
96
+ };
package/dist/index385.js CHANGED
@@ -1,4 +1,29 @@
1
- import f from "./index362.js";
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 "./index205.js";
3
+ import { useLayout as l } from "./index351.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
+ });
2
27
  export {
3
- f as default
28
+ H as default
4
29
  };
package/dist/index387.js CHANGED
@@ -1,65 +1,52 @@
1
- import { defineComponent as c, ref as r, createElementBlock as o, openBlock as l, createElementVNode as s, createCommentVNode as u, normalizeClass as f, createVNode as v, withCtx as p, renderSlot as x } from "vue";
2
- import { useFlyout as y } from "./index405.js";
3
- import b from "./index406.js";
4
- const k = ["aria-expanded", "aria-label"], h = {
5
- key: 0,
6
- class: "flex items-center gap-1 leading-normal overflow-hidden"
7
- }, w = ["innerHTML"], V = {
8
- key: 1,
9
- class: "vpi-more-horizontal text-xl"
10
- }, C = { class: "menu" }, F = /* @__PURE__ */ c({
11
- __name: "VPFlyout",
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 "./index205.js";
4
+ import { useLayout as x } from "./index351.js";
5
+ import C from "./index415.js";
6
+ const P = { class: "container" }, S = ["aria-expanded"], H = { class: "menu-text" }, z = /* @__PURE__ */ h({
7
+ __name: "VPLocalNav",
12
8
  props: {
13
- icon: {},
14
- button: {},
15
- label: {},
16
- items: {}
9
+ open: { type: Boolean }
17
10
  },
18
- setup(e) {
19
- const n = r(!1), a = r();
20
- y({ el: a, onBlur: d });
21
- function d() {
22
- n.value = !1;
23
- }
24
- return (m, t) => (l(), o("div", {
25
- class: "VPFlyout relative flex items-center",
26
- ref_key: "el",
27
- ref: a,
28
- onMouseenter: t[1] || (t[1] = (i) => n.value = !0),
29
- onMouseleave: t[2] || (t[2] = (i) => n.value = !1)
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
30
  }, [
31
- s("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 whitespace-nowrap overflow-hidden text-ellipsis",
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", h, [
40
- e.icon ? (l(), o("span", {
41
- key: 0,
42
- class: f([e.icon, "shrink-0"])
43
- }, null, 2)) : u("", !0),
44
- e.button ? (l(), o("span", {
45
- key: 1,
46
- innerHTML: e.button,
47
- class: "overflow-hidden text-ellipsis"
48
- }, null, 8, w)) : u("", !0),
49
- t[3] || (t[3] = s("span", { class: "vpi-chevron-down text-sm shrink-0" }, null, -1))
50
- ])) : (l(), o("span", V))
51
- ], 8, k),
52
- s("div", C, [
53
- v(b, { items: e.items }, {
54
- default: p(() => [
55
- x(m.$slots, "default", {}, void 0, !0)
56
- ]),
57
- _: 3
58
- }, 8, ["items"])
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"])
59
46
  ])
60
- ], 544));
47
+ ], 2)) : l("", !0);
61
48
  }
62
49
  });
63
50
  export {
64
- F as default
51
+ z as default
65
52
  };
package/dist/index389.js CHANGED
@@ -1,34 +1,57 @@
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 "./index272.js";
3
- import d from "./index8.js";
4
- const h = { class: "VPMenuLink" }, x = ["innerHTML"], v = /* @__PURE__ */ r({
5
- inheritAttrs: !1,
6
- __name: "VPMenuLink",
1
+ import { defineComponent as c, ref as n, watch as d, createElementBlock as v, createCommentVNode as k, unref as u, openBlock as m, withModifiers as y, normalizeClass as S, createElementVNode as p, renderSlot as f, createBlock as V } from "vue";
2
+ import { useScrollLock as B } from "@vueuse/core";
3
+ import { inBrowser as C } from "vitepress";
4
+ import { useLayout as E } from "./index351.js";
5
+ import N from "./index416.js";
6
+ const P = {
7
+ class: "nav",
8
+ id: "VPSidebarNav",
9
+ "aria-labelledby": "sidebar-aria-label",
10
+ tabindex: "-1"
11
+ }, g = /* @__PURE__ */ c({
12
+ __name: "VPSidebar",
7
13
  props: {
8
- item: {}
14
+ open: { type: Boolean }
9
15
  },
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
16
+ setup(a) {
17
+ const { sidebarGroups: r, hasSidebar: b } = E(), s = a, o = n(null), t = B(C ? document.body : null);
18
+ d(
19
+ [s, o],
20
+ () => {
21
+ s.open ? (t.value = !0, o.value?.focus()) : t.value = !1;
22
+ },
23
+ { immediate: !0, flush: "post" }
13
24
  );
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
- ]));
25
+ const i = n(0);
26
+ return d(
27
+ r,
28
+ () => {
29
+ i.value += 1;
30
+ },
31
+ { deep: !0 }
32
+ ), (l, e) => u(b) ? (m(), v("aside", {
33
+ key: 0,
34
+ class: S(["VPSidebar", { open: a.open }]),
35
+ ref_key: "navEl",
36
+ ref: o,
37
+ onClick: e[0] || (e[0] = y(() => {
38
+ }, ["stop"]))
39
+ }, [
40
+ p("nav", P, [
41
+ e[1] || (e[1] = p("span", {
42
+ class: "visually-hidden",
43
+ id: "sidebar-aria-label"
44
+ }, " Sidebar Navigation ", -1)),
45
+ f(l.$slots, "sidebar-nav-before", {}, void 0, !0),
46
+ (m(), V(N, {
47
+ items: u(r),
48
+ key: i.value
49
+ }, null, 8, ["items"])),
50
+ f(l.$slots, "sidebar-nav-after", {}, void 0, !0)
51
+ ])
52
+ ], 2)) : k("", !0);
30
53
  }
31
54
  });
32
55
  export {
33
- v as default
56
+ g as default
34
57
  };