@voidzero-dev/vitepress-theme 0.1.36 → 0.1.41

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 (96) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index100.js +13 -6
  3. package/dist/index101.js +57 -4
  4. package/dist/index102.js +5 -3
  5. package/dist/index103.js +39 -7
  6. package/dist/index104.js +20 -32
  7. package/dist/index105.js +25 -57
  8. package/dist/index106.js +9 -8
  9. package/dist/index107.js +54 -11
  10. package/dist/index108.js +34 -56
  11. package/dist/index109.js +119 -6
  12. package/dist/index110.js +86 -33
  13. package/dist/index111.js +8 -21
  14. package/dist/index112.js +2 -25
  15. package/dist/index113.js +7204 -7
  16. package/dist/index114.js +1730 -52
  17. package/dist/index115.js +434 -31
  18. package/dist/index116.js +12 -117
  19. package/dist/index117.js +5323 -91
  20. package/dist/index118.js +2 -8
  21. package/dist/index119.js +32 -438
  22. package/dist/index120.js +1202 -5
  23. package/dist/index121.js +5 -1735
  24. package/dist/index122.js +4 -2
  25. package/dist/index18.js +2 -2
  26. package/dist/index27.js +1 -1
  27. package/dist/index3.js +3 -3
  28. package/dist/index30.js +8 -8
  29. package/dist/index34.js +12 -12
  30. package/dist/index36.js +7 -7
  31. package/dist/index38.js +40 -40
  32. package/dist/index4.js +10 -10
  33. package/dist/index40.js +84 -18
  34. package/dist/index41.js +66 -18
  35. package/dist/index42.js +53 -18
  36. package/dist/index43.js +74 -23
  37. package/dist/index44.js +26 -2
  38. package/dist/index45.js +26 -30
  39. package/dist/index46.js +26 -2
  40. package/dist/index47.js +26 -2
  41. package/dist/index48.js +26 -2
  42. package/dist/index49.js +26 -2
  43. package/dist/index50.js +1 -1
  44. package/dist/index51.js +1 -1
  45. package/dist/index52.js +18 -2
  46. package/dist/index53.js +18 -2
  47. package/dist/index54.js +18 -2
  48. package/dist/index55.js +2 -2
  49. package/dist/index56.js +34 -2
  50. package/dist/index57.js +2 -2
  51. package/dist/index58.js +2 -2
  52. package/dist/index59.js +2 -2
  53. package/dist/index6.js +29 -29
  54. package/dist/index60.js +2 -2
  55. package/dist/index61.js +1 -1
  56. package/dist/index62.js +2 -2
  57. package/dist/index63.js +2 -2
  58. package/dist/index64.js +2 -2
  59. package/dist/index65.js +2 -2
  60. package/dist/index66.js +2 -2
  61. package/dist/index67.js +2 -84
  62. package/dist/index68.js +21 -65
  63. package/dist/index69.js +123 -52
  64. package/dist/index7.js +1 -1
  65. package/dist/index70.js +2 -76
  66. package/dist/index71.js +2 -26
  67. package/dist/index72.js +3 -30
  68. package/dist/index73.js +52 -26
  69. package/dist/index74.js +43 -26
  70. package/dist/index75.js +49 -22
  71. package/dist/index76.js +2 -26
  72. package/dist/index77.js +2587 -2
  73. package/dist/index78.js +2 -49
  74. package/dist/index79.js +3 -44
  75. package/dist/index8.js +2 -2
  76. package/dist/index80.js +2 -2587
  77. package/dist/index81.js +2 -51
  78. package/dist/index82.js +2 -7207
  79. package/dist/index83.js +2 -14
  80. package/dist/index84.js +2 -2
  81. package/dist/index85.js +2 -22
  82. package/dist/index86.js +2 -124
  83. package/dist/index87.js +2 -2
  84. package/dist/index88.js +2 -5324
  85. package/dist/index89.js +2 -2
  86. package/dist/index90.js +1 -1
  87. package/dist/index91.js +1 -1
  88. package/dist/index92.js +10 -2
  89. package/dist/index93.js +7 -2
  90. package/dist/index94.js +5 -2
  91. package/dist/index95.js +4 -2
  92. package/dist/index96.js +6 -3
  93. package/dist/index97.js +30 -30
  94. package/dist/index98.js +53 -1198
  95. package/dist/index99.js +8 -9
  96. package/package.json +1 -1
package/dist/index69.js CHANGED
@@ -1,55 +1,126 @@
1
- import { useForwardExpose as u } from "./index104.js";
2
- import { Primitive as p } from "./index112.js";
3
- import { RovingFocusGroup_default as d } from "./index116.js";
4
- import { injectTabsRootContext as f } from "./index67.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
1
+ const B = {
2
+ active: !0,
3
+ breakpoints: {},
4
+ delay: 4e3,
5
+ jump: !1,
6
+ playOnInit: !0,
7
+ stopOnFocusIn: !0,
8
+ stopOnInteraction: !0,
9
+ stopOnMouseEnter: !1,
10
+ stopOnLastSnap: !1,
11
+ rootNode: null
12
+ };
13
+ function C(l, n) {
14
+ const t = l.scrollSnapList();
15
+ return typeof n == "number" ? t.map(() => n) : n(t, l);
16
+ }
17
+ function H(l, n) {
18
+ const t = l.rootNode();
19
+ return n && n(t) || t;
20
+ }
21
+ function E(l = {}) {
22
+ let n, t, r, y, u = null, c = 0, o = !1, f = !1, g = !1, p = !1;
23
+ function x(e, a) {
24
+ t = e;
25
+ const {
26
+ mergeOptions: d,
27
+ optionsAtMedia: O
28
+ } = a, R = d(B, E.globalOptions), W = d(R, l);
29
+ if (n = O(W), t.scrollSnapList().length <= 1) return;
30
+ p = n.jump, r = !1, y = C(t, n.delay);
31
+ const {
32
+ eventStore: m,
33
+ ownerDocument: z
34
+ } = t.internalEngine(), D = !!t.internalEngine().options.watchDrag, b = H(t, n.rootNode);
35
+ m.add(z, "visibilitychange", h), D && t.on("pointerDown", I), D && !n.stopOnInteraction && t.on("pointerUp", w), n.stopOnMouseEnter && m.add(b, "mouseenter", A), n.stopOnMouseEnter && !n.stopOnInteraction && m.add(b, "mouseleave", L), n.stopOnFocusIn && t.on("slideFocusStart", s), n.stopOnFocusIn && !n.stopOnInteraction && m.add(t.containerNode(), "focusout", i), n.playOnInit && i();
36
+ }
37
+ function T() {
38
+ t.off("pointerDown", I).off("pointerUp", w).off("slideFocusStart", s), s(), r = !0, o = !1;
39
+ }
40
+ function v() {
41
+ const {
42
+ ownerWindow: e
43
+ } = t.internalEngine();
44
+ e.clearTimeout(c), c = e.setTimeout(k, y[t.selectedScrollSnap()]), u = (/* @__PURE__ */ new Date()).getTime(), t.emit("autoplay:timerset");
45
+ }
46
+ function N() {
47
+ const {
48
+ ownerWindow: e
49
+ } = t.internalEngine();
50
+ e.clearTimeout(c), c = 0, u = null, t.emit("autoplay:timerstopped");
51
+ }
52
+ function i() {
53
+ if (!r) {
54
+ if (S()) {
55
+ g = !0;
56
+ return;
57
+ }
58
+ o || t.emit("autoplay:play"), v(), o = !0;
21
59
  }
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;
60
+ }
61
+ function s() {
62
+ r || (o && t.emit("autoplay:stop"), N(), o = !1);
63
+ }
64
+ function h() {
65
+ if (S())
66
+ return g = o, s();
67
+ g && i();
68
+ }
69
+ function S() {
70
+ const {
71
+ ownerDocument: e
72
+ } = t.internalEngine();
73
+ return e.visibilityState === "hidden";
74
+ }
75
+ function I() {
76
+ f || s();
77
+ }
78
+ function w() {
79
+ f || i();
80
+ }
81
+ function A() {
82
+ f = !0, s();
83
+ }
84
+ function L() {
85
+ f = !1, i();
86
+ }
87
+ function F(e) {
88
+ typeof e < "u" && (p = e), i();
89
+ }
90
+ function M() {
91
+ o && s();
92
+ }
93
+ function U() {
94
+ o && i();
95
+ }
96
+ function j() {
97
+ return o;
98
+ }
99
+ function k() {
100
+ const {
101
+ index: e
102
+ } = t.internalEngine(), a = e.clone().add(1).get(), d = t.scrollSnapList().length - 1, O = n.stopOnLastSnap && a === d;
103
+ if (t.canScrollNext() ? t.scrollNext(p) : t.scrollTo(0, p), t.emit("autoplay:select"), O) return s();
104
+ i();
105
+ }
106
+ function P() {
107
+ if (!u) return null;
108
+ const e = y[t.selectedScrollSnap()], a = (/* @__PURE__ */ new Date()).getTime() - u;
109
+ return e - a;
110
+ }
111
+ return {
112
+ name: "autoplay",
113
+ options: l,
114
+ init: x,
115
+ destroy: T,
116
+ play: F,
117
+ stop: M,
118
+ reset: U,
119
+ isPlaying: j,
120
+ timeUntilNext: P
121
+ };
122
+ }
123
+ E.globalOptions = void 0;
53
124
  export {
54
- w as TabsList_default
125
+ E as default
55
126
  };
package/dist/index7.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, createElementBlock as s, openBlock as r, createElementVNode as e, Fragment as _, renderList as m, unref as n, normalizeClass as d, toDisplayString as u, renderSlot as f } from "vue";
2
- import h from "./index44.js";
2
+ import h from "./index55.js";
3
3
  import { useData as g, useRoute as k } from "vitepress";
4
4
  const x = { class: "wrapper px-6 py-7 flex items-center justify-between" }, v = { class: "flex items-center gap-10" }, y = { class: "nav" }, w = ["href"], B = { class: "flex items-center gap-6" }, b = /* @__PURE__ */ p({
5
5
  __name: "Header",
package/dist/index70.js CHANGED
@@ -1,78 +1,4 @@
1
- import { useForwardExpose as p } from "./index104.js";
2
- import { Primitive as b } from "./index112.js";
3
- import { RovingFocusItem_default as m } from "./index117.js";
4
- import { injectTabsRootContext as c } from "./index67.js";
5
- import { makeTriggerId as g, makeContentId as y } from "./index118.js";
6
- import { defineComponent as T, computed as d, createBlock as w, openBlock as C, unref as t, withCtx as s, createVNode as I, withKeys as h, withModifiers as M, renderSlot as V } from "vue";
7
- var k = /* @__PURE__ */ T({
8
- __name: "TabsTrigger",
9
- props: {
10
- value: {
11
- type: [String, Number],
12
- required: !0
13
- },
14
- disabled: {
15
- type: Boolean,
16
- required: !1,
17
- default: !1
18
- },
19
- asChild: {
20
- type: Boolean,
21
- required: !1
22
- },
23
- as: {
24
- type: null,
25
- required: !1,
26
- default: "button"
27
- }
28
- },
29
- setup(u) {
30
- const r = u, { forwardRef: n } = p(), a = c(), f = d(() => g(a.baseId, r.value)), v = d(() => y(a.baseId, r.value)), i = d(() => r.value === a.modelValue.value);
31
- return (e, o) => (C(), w(t(m), {
32
- "as-child": "",
33
- focusable: !e.disabled,
34
- active: i.value
35
- }, {
36
- default: s(() => [I(t(b), {
37
- id: f.value,
38
- ref: t(n),
39
- role: "tab",
40
- type: e.as === "button" ? "button" : void 0,
41
- as: e.as,
42
- "as-child": e.asChild,
43
- "aria-selected": i.value ? "true" : "false",
44
- "aria-controls": v.value,
45
- "data-state": i.value ? "active" : "inactive",
46
- disabled: e.disabled,
47
- "data-disabled": e.disabled ? "" : void 0,
48
- "data-orientation": t(a).orientation.value,
49
- onMousedown: o[0] || (o[0] = M((l) => {
50
- !e.disabled && l.ctrlKey === !1 ? t(a).changeModelValue(e.value) : l.preventDefault();
51
- }, ["left"])),
52
- onKeydown: o[1] || (o[1] = h((l) => t(a).changeModelValue(e.value), ["enter", "space"])),
53
- onFocus: o[2] || (o[2] = () => {
54
- const l = t(a).activationMode !== "manual";
55
- !i.value && !e.disabled && l && t(a).changeModelValue(e.value);
56
- })
57
- }, {
58
- default: s(() => [V(e.$slots, "default")]),
59
- _: 3
60
- }, 8, [
61
- "id",
62
- "type",
63
- "as",
64
- "as-child",
65
- "aria-selected",
66
- "aria-controls",
67
- "data-state",
68
- "disabled",
69
- "data-disabled",
70
- "data-orientation"
71
- ])]),
72
- _: 3
73
- }, 8, ["focusable", "active"]));
74
- }
75
- }), A = k;
1
+ const L = "data:image/svg+xml,%3csvg%20viewBox='0%200%2091%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.9572%201.57215L1.55044%2011.1106L6.57429%2016.2048L15.981%206.66636L10.9572%201.57215ZM17.5314%206.66636L6.57429%2017.777L0%2011.1106L10.9572%200L17.5314%206.66636Z'%20fill='white'/%3e%3cpath%20d='M11.5981%2011.1116L4.38286%203.7953L1.55044%206.66739L8.76572%2013.9837L11.5981%2011.1116ZM4.38286%202.22314L13.1486%2011.1116L8.76572%2015.5559L0%206.66739L4.38286%202.22314Z'%20fill='white'/%3e%3cpath%20d='M11.5981%2015.555L4.38286%208.23865L1.55044%2011.1107L8.76572%2018.4271L11.5981%2015.555ZM9.5382%2019.2159L8.76572%2019.9992L7.99324%2019.2159L8.76572%2018.4326L9.5382%2019.2159ZM4.38286%206.6665L13.1486%2015.555L8.76572%2019.9992L0%2011.1107L4.38286%206.6665Z'%20fill='white'/%3e%3cpath%20d='M9.25331%207.56717C6.6729%208.87267%203.74735%209.13377%201.09572%208.30603V10.6504L8.76572%2018.4278L12.2501%2014.8946L16.0358%207.21719C13.7896%206.40611%2011.3407%206.51167%209.25331%207.56717ZM17.5314%206.66721L13.1486%2015.5557L8.76572%2019.9999L0%2011.1115V6.66721C2.7612%208.06715%206.00452%207.97271%208.76572%206.57277C11.5269%205.17284%2014.7702%205.26728%2017.5314%206.66721Z'%20fill='white'/%3e%3cpath%20d='M33.3325%203.33301H26.7151V16.6657H30.0544V13.3326H33.0487C36.0207%2013.3326%2038.4027%2011.3938%2038.4027%208.33278C38.4027%205.6329%2036.4937%203.33301%2033.3325%203.33301ZM33.1433%209.99937H30.0544V6.66619H33.0876C34.5458%206.66619%2035.4363%207.02728%2035.4363%208.33278H35.453C35.453%209.46606%2034.6015%209.99937%2033.1433%209.99937ZM45.0814%203.33301H41.742V16.6657H50.0903V13.3326H45.0814V3.33301ZM83.9177%203.33301H78.4746V16.6657H83.9177C88.0807%2016.6657%2090.997%2013.7214%2090.997%209.99937C90.997%206.27732%2088.0807%203.33301%2083.9177%203.33301ZM83.9177%2013.3326H81.8139V6.66619H83.9177C86.2997%206.66619%2087.9082%207.65503%2087.9082%209.99937C87.9137%2012.3437%2086.3053%2013.3326%2083.9177%2013.3326ZM70.1263%203.33301H73.4656V16.6657H70.1263V3.33301ZM63.4476%2016.6657H66.7869L61.778%203.33301H58.4386L53.4297%2016.6657H56.769L57.3923%2014.9991H62.8187L63.4476%2016.6657ZM58.6501%2011.666L60.1083%207.77725L61.5665%2011.666H58.6501Z'%20fill='white'/%3e%3c/svg%3e";
76
2
  export {
77
- A as TabsTrigger_default
3
+ L as default
78
4
  };