@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/index122.js CHANGED
@@ -1,4 +1,6 @@
1
- import f from "./index45.js";
1
+ function e(t) {
2
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
3
+ }
2
4
  export {
3
- f as default
5
+ e as getDefaultExportFromCjs
4
6
  };
package/dist/index18.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import t from "./index38.js";
2
2
  /* empty css */
3
3
  import o from "./index29.js";
4
- const f = /* @__PURE__ */ o(t, [["__scopeId", "data-v-5e416fd5"]]);
4
+ const i = /* @__PURE__ */ o(t, [["__scopeId", "data-v-96d43481"]]);
5
5
  export {
6
- f as default
6
+ i as default
7
7
  };
package/dist/index27.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as s, createElementBlock as d, openBlock as r, createStaticVNode as i, createVNode as n, unref as t } from "vue";
2
2
  import l from "./index6.js";
3
- import a from "./index84.js";
3
+ import a from "./index71.js";
4
4
  const p = { class: "wrapper flex flex-col justify-start items-center gap-6 pt-20 pb-10" }, x = /* @__PURE__ */ s({
5
5
  __name: "Hero",
6
6
  setup(o) {
package/dist/index3.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as o, createElementBlock as l, openBlock as a, createElementVNode as e, createStaticVNode as i, createVNode as s, createTextVNode as r, toDisplayString as n } from "vue";
2
- import p from "./index40.js";
3
- import d from "./index41.js";
4
- import c from "./index42.js";
2
+ import p from "./index52.js";
3
+ import d from "./index53.js";
4
+ import c from "./index54.js";
5
5
  const x = {
6
6
  class: "bg-primary",
7
7
  "data-theme": "dark"
package/dist/index30.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as x, computed as a, ref as m, onMounted as L, onUnmounted as k, createElementBlock as d, openBlock as f, createElementVNode as t, normalizeStyle as v, Fragment as y, renderList as _ } from "vue";
2
- import B from "./index59.js";
3
- import I from "./index60.js";
4
- import M from "./index61.js";
5
- import T from "./index62.js";
6
- import H from "./index63.js";
7
- import S from "./index64.js";
8
- import z from "./index65.js";
9
- import E from "./index66.js";
2
+ import B from "./index78.js";
3
+ import I from "./index79.js";
4
+ import M from "./index80.js";
5
+ import T from "./index81.js";
6
+ import H from "./index82.js";
7
+ import S from "./index83.js";
8
+ import z from "./index84.js";
9
+ import E from "./index85.js";
10
10
  const F = { class: "wrapper wrapper--ticks border-t pt-14 pb-5 flex flex-col items-center justify-center gap-2" }, O = { class: "carousel-container" }, Z = { class: "carousel-viewport" }, $ = ["src", "alt"], D = /* @__PURE__ */ x({
11
11
  __name: "TrustedBy",
12
12
  setup(j) {
package/dist/index34.js CHANGED
@@ -1,17 +1,17 @@
1
1
  import { defineComponent as _, ref as h, onMounted as y, onUnmounted as k, createElementBlock as c, openBlock as d, createElementVNode as t, Fragment as j, renderList as V, normalizeClass as i, createTextVNode as C, toDisplayString as z, createVNode as m, createCommentVNode as x } from "vue";
2
- import u from "./index45.js";
2
+ import u from "./index56.js";
3
3
  import I from "./index6.js";
4
- import A from "./index46.js";
5
- import E from "./index47.js";
6
- import R from "./index48.js";
7
- import T from "./index49.js";
8
- import S from "./index50.js";
9
- import N from "./index51.js";
10
- import O from "./index52.js";
11
- import J from "./index53.js";
12
- import P from "./index54.js";
13
- import B from "./index55.js";
14
- import X from "./index56.js";
4
+ import A from "./index57.js";
5
+ import E from "./index58.js";
6
+ import R from "./index59.js";
7
+ import T from "./index60.js";
8
+ import S from "./index61.js";
9
+ import N from "./index62.js";
10
+ import O from "./index63.js";
11
+ import J from "./index64.js";
12
+ import P from "./index65.js";
13
+ import B from "./index66.js";
14
+ import X from "./index67.js";
15
15
  const $ = { class: "wrapper wrapper--ticks border-t flex" }, D = { class: "w-72 p-10 sticky top-0 self-start hidden md:flex flex-col" }, H = { class: "flex flex-col gap-4" }, M = ["onClick"], F = ["src", "alt"], L = { class: "w-full md:border-l border-nickel" }, U = { class: "flex flex-col p-10 justify-between gap-20" }, q = { class: "flex flex-col gap-5 max-w-[20rem]" }, G = ["href"], K = { class: "flex flex-col min-h-[22rem] sm:min-h-[30rem]" }, Q = { class: "relative pl-10 h-full flex flex-col justify-center overflow-clip" }, W = ["src"], Y = { class: "flex flex-col p-10 justify-between gap-20" }, Z = { class: "flex flex-col gap-5 max-w-[20rem]" }, tt = ["href"], et = { class: "flex flex-col min-h-[22rem] sm:min-h-[30rem]" }, ot = { class: "relative pl-10 h-full flex flex-col justify-end overflow-clip pt-10 sm:pt-0" }, st = ["src"], lt = { class: "flex flex-col p-10 justify-between gap-20" }, it = { class: "flex flex-col gap-5 max-w-[20rem]" }, rt = ["href"], nt = { class: "flex flex-col min-h-[22rem] sm:min-h-[30rem]" }, at = { class: "relative pl-10 h-full flex flex-col justify-center overflow-clip py-10 sm:py-0" }, ct = ["src"], dt = { class: "flex flex-col p-10 justify-between gap-20" }, mt = { class: "flex flex-col gap-5 max-w-[20rem]" }, ft = ["href"], ut = { class: "flex flex-col min-h-[22rem] sm:min-h-[30rem]" }, pt = { class: "relative pl-10 h-full flex flex-col justify-center overflow-clip" }, Et = /* @__PURE__ */ _({
16
16
  __name: "OpenSourceSectionProjects",
17
17
  setup(xt) {
package/dist/index36.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as I, ref as v, onMounted as M, onUnmounted as A, createElementBlock as o, openBlock as s, createElementVNode as e, Fragment as m, renderList as p, normalizeClass as _, toDisplayString as g, createCommentVNode as V } from "vue";
2
- import f from "./index85.js";
3
- import B from "./index86.js";
4
- import c from "./index87.js";
5
- import y from "./index46.js";
6
- import w from "./index47.js";
7
- import x from "./index48.js";
8
- import k from "./index49.js";
2
+ import f from "./index68.js";
3
+ import B from "./index69.js";
4
+ import c from "./index70.js";
5
+ import y from "./index57.js";
6
+ import w from "./index58.js";
7
+ import x from "./index59.js";
8
+ import k from "./index60.js";
9
9
  const F = { class: "wrapper" }, L = { class: "bg-wine case-study-background" }, D = { class: "flex py-20" }, H = ["src", "alt"], P = { class: "text-white text-balance max-w-[20rem] pt-5" }, j = { class: "absolute bottom-0 left-0 right-0 flex gap-4 px-10 py-4 border-t border-slate items-center" }, z = ["href"], O = { class: "project-icon" }, $ = ["src", "alt"], E = {
10
10
  key: 0,
11
11
  class: "text-grey text-xs font-mono uppercase tracking-wide"
package/dist/index38.js CHANGED
@@ -1,42 +1,41 @@
1
- import { defineComponent as x, ref as l, computed as g, onMounted as y, onUnmounted as h, createElementBlock as w, openBlock as b, Fragment as k, createElementVNode as t, createStaticVNode as c, createTextVNode as C, createVNode as S, unref as f } from "vue";
2
- import _ from "./index77.js";
3
- import "./index78.js";
4
- import "./index79.js";
5
- import A from "./index80.js";
6
- import B from "./index81.js";
7
- import { Chart as F } from "./index82.js";
8
- import { continuous as N } from "./index83.js";
9
- const P = { class: "wrapper wrapper--ticks border-t grid grid-cols-2 divide-x divide-ceramic" }, T = { class: "p-10 flex flex-col justify-between" }, z = /* @__PURE__ */ x({
1
+ import { defineComponent as w, ref as a, computed as h, onMounted as k, onUnmounted as b, createElementBlock as f, openBlock as r, Fragment as C, createElementVNode as e, createStaticVNode as g, createTextVNode as _, createBlock as F, resolveDynamicComponent as S, toDisplayString as B } from "vue";
2
+ import D from "./index76.js";
3
+ import A from "./index77.js";
4
+ const N = { class: "wrapper wrapper--ticks border-t grid grid-cols-2 divide-x divide-ceramic" }, P = { class: "p-10 flex flex-col justify-between" }, T = { key: 1 }, W = /* @__PURE__ */ w({
10
5
  __name: "Statistics",
11
6
  props: {
12
7
  statsUrl: { default: "/stats.json" }
13
8
  },
14
- setup(v) {
15
- const u = v, a = l([]), i = l({
9
+ setup(x) {
10
+ const y = x, l = a([]), c = a({
16
11
  datasets: []
17
- }), s = l(null), m = g(() => a.value.slice().reverse().find((d) => d.y > 0)?.y || 0);
18
- return y(async () => {
19
- const n = (await (await fetch(u.statsUrl)).json()).map((p) => ({
20
- x: A(p.x).valueOf(),
21
- y: p.y
12
+ }), o = a(null), d = a(null), i = a(null), p = h(() => l.value.slice().reverse().find((s) => s.y > 0)?.y || 0);
13
+ return k(async () => {
14
+ const { default: s } = await import("./index73.js");
15
+ await import("./index74.js");
16
+ const t = await import("./index75.js");
17
+ d.value = t.default, i.value = t.continuous;
18
+ const u = (await (await fetch(y.statsUrl)).json()).map((m) => ({
19
+ x: A(m.x).valueOf(),
20
+ y: m.y
22
21
  }));
23
- n.pop(), a.value = n;
24
- const r = document.getElementById("chart-canvas"), o = r.getContext("2d").createLinearGradient(0, 0, -50, 400);
25
- o.addColorStop(0, "#AA3BFF"), o.addColorStop(1, "#AA3BFF"), i.value = {
22
+ u.pop(), l.value = u;
23
+ const v = document.getElementById("chart-canvas"), n = v.getContext("2d").createLinearGradient(0, 0, -50, 400);
24
+ n.addColorStop(0, "#AA3BFF"), n.addColorStop(1, "#AA3BFF"), c.value = {
26
25
  datasets: [
27
26
  {
28
- data: a.value,
27
+ data: l.value,
29
28
  /*fill: {
30
29
  target: 'origin',
31
30
  above: 'rgba(0, 0, 0, 0.02)'
32
31
  },*/
33
32
  pointStyle: !1,
34
33
  borderWidth: 3,
35
- borderColor: o,
34
+ borderColor: n,
36
35
  stepped: !1
37
36
  }
38
37
  ]
39
- }, s.value = new F(r, {
38
+ }, o.value = new s(v, {
40
39
  type: "line",
41
40
  options: {
42
41
  scales: {
@@ -82,35 +81,36 @@ const P = { class: "wrapper wrapper--ticks border-t grid grid-cols-2 divide-x di
82
81
  aspectRatio: 5 / 3.5
83
82
  },
84
83
  data: {
85
- datasets: i.value.datasets
84
+ datasets: c.value.datasets
86
85
  }
87
86
  });
88
- }), h(() => {
89
- s.value && s.value.destroy();
90
- }), (d, e) => (b(), w(k, null, [
91
- t("section", P, [
92
- t("div", T, [
93
- e[0] || (e[0] = t("h6", { class: "flex gap-2 items-center" }, [
94
- t("img", {
95
- src: _,
87
+ }), b(() => {
88
+ o.value && o.value.destroy();
89
+ }), (s, t) => (r(), f(C, null, [
90
+ e("section", N, [
91
+ e("div", P, [
92
+ t[0] || (t[0] = e("h6", { class: "flex gap-2 items-center" }, [
93
+ e("img", {
94
+ src: D,
96
95
  class: "size-8",
97
96
  alt: "Vite"
98
97
  }),
99
- C(" Weekly downloads")
98
+ _(" Weekly downloads")
100
99
  ], -1)),
101
- t("h1", null, [
102
- S(f(B), {
103
- plugins: [f(N)],
104
- value: m.value
105
- }, null, 8, ["plugins", "value"])
100
+ e("h1", null, [
101
+ d.value && i.value ? (r(), F(S(d.value), {
102
+ key: 0,
103
+ plugins: [i.value],
104
+ value: p.value
105
+ }, null, 8, ["plugins", "value"])) : (r(), f("span", T, B(p.value), 1))
106
106
  ])
107
107
  ]),
108
- e[1] || (e[1] = c('<div class="relative aspect-[5/3.5]" data-v-5e416fd5><canvas id="chart-canvas" width="200" height="200" data-v-5e416fd5></canvas><div class="flex justify-between absolute bottom-10 left-10 right-10" data-v-5e416fd5><p class="font-mono text-sm text-nickel" data-v-5e416fd5>April 2020</p><p class="font-mono text-sm text-nickel" data-v-5e416fd5>Today</p></div></div>', 1))
108
+ t[1] || (t[1] = g('<div class="relative aspect-[5/3.5]" data-v-96d43481><canvas id="chart-canvas" width="200" height="200" data-v-96d43481></canvas><div class="flex justify-between absolute bottom-10 left-10 right-10" data-v-96d43481><p class="font-mono text-sm text-nickel" data-v-96d43481>April 2020</p><p class="font-mono text-sm text-nickel" data-v-96d43481>Today</p></div></div>', 1))
109
109
  ]),
110
- e[2] || (e[2] = c('<section class="wrapper wrapper--ticks border-t grid grid-cols-3 divide-x divide-ceramic" data-v-5e416fd5><div class="flex flex-col gap-2 p-10" data-v-5e416fd5><h2 data-v-5e416fd5>30m+</h2><p class="lead" data-v-5e416fd5>Weekly NPM downloads</p></div><div class="flex flex-col gap-2 p-10" data-v-5e416fd5><h2 data-v-5e416fd5>118k+</h2><p class="lead" data-v-5e416fd5>Total GitHub Stars</p></div><div class="flex flex-col gap-2 p-10" data-v-5e416fd5><h2 data-v-5e416fd5>6.2m+</h2><p class="lead" data-v-5e416fd5>GitHub Dependents</p></div></section>', 1))
110
+ t[2] || (t[2] = g('<section class="wrapper wrapper--ticks border-t grid grid-cols-3 divide-x divide-ceramic" data-v-96d43481><div class="flex flex-col gap-2 p-10" data-v-96d43481><h2 data-v-96d43481>30m+</h2><p class="lead" data-v-96d43481>Weekly NPM downloads</p></div><div class="flex flex-col gap-2 p-10" data-v-96d43481><h2 data-v-96d43481>118k+</h2><p class="lead" data-v-96d43481>Total GitHub Stars</p></div><div class="flex flex-col gap-2 p-10" data-v-96d43481><h2 data-v-96d43481>6.2m+</h2><p class="lead" data-v-96d43481>GitHub Dependents</p></div></section>', 1))
111
111
  ], 64));
112
112
  }
113
113
  });
114
114
  export {
115
- z as default
115
+ W as default
116
116
  };
package/dist/index4.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as w, ref as d, onMounted as V, onUnmounted as C, createElementBlock as k, openBlock as _, createElementVNode as A, normalizeClass as x, createBlock as E, createCommentVNode as N, unref as a, withCtx as n, createVNode as e, createTextVNode as r } from "vue";
2
- import { TabsRoot_default as $ } from "./index67.js";
3
- import { TabsContent_default as i } from "./index68.js";
4
- import { TabsList_default as I } from "./index69.js";
5
- import { TabsTrigger_default as u } from "./index70.js";
6
- import z from "./index71.js";
7
- import B from "./index72.js";
8
- import O from "./index73.js";
9
- import R from "./index74.js";
10
- import U from "./index75.js";
11
- import j from "./index76.js";
2
+ import { TabsRoot_default as $ } from "./index40.js";
3
+ import { TabsContent_default as i } from "./index41.js";
4
+ import { TabsList_default as I } from "./index42.js";
5
+ import { TabsTrigger_default as u } from "./index43.js";
6
+ import z from "./index44.js";
7
+ import B from "./index45.js";
8
+ import O from "./index46.js";
9
+ import R from "./index47.js";
10
+ import U from "./index48.js";
11
+ import j from "./index49.js";
12
12
  const D = 1500, W = /* @__PURE__ */ w({
13
13
  __name: "Terminal",
14
14
  setup(L) {
package/dist/index40.js CHANGED
@@ -1,20 +1,86 @@
1
- import { createElementBlock as e, openBlock as t, createElementVNode as o } from "vue";
2
- import r from "./index29.js";
3
- const n = {}, s = {
4
- xmlns: "http://www.w3.org/2000/svg",
5
- "aria-hidden": "true",
6
- focusable: "false",
7
- viewBox: "0 0 24 24"
8
- };
9
- function l(f, c) {
10
- return t(), e("svg", s, [...c[0] || (c[0] = [
11
- o("path", {
12
- fill: "currentColor",
13
- d: "M12 2A10 10 0 0 0 2 12c0 4.42 2.87 8.17 6.84 9.5c.5.08.66-.23.66-.5v-1.69c-2.77.6-3.36-1.34-3.36-1.34c-.46-1.16-1.11-1.47-1.11-1.47c-.91-.62.07-.6.07-.6c1 .07 1.53 1.03 1.53 1.03c.87 1.52 2.34 1.07 2.91.83c.09-.65.35-1.09.63-1.34c-2.22-.25-4.55-1.11-4.55-4.92c0-1.11.38-2 1.03-2.71c-.1-.25-.45-1.29.1-2.64c0 0 .84-.27 2.75 1.02c.79-.22 1.65-.33 2.5-.33s1.71.11 2.5.33c1.91-1.29 2.75-1.02 2.75-1.02c.55 1.35.2 2.39.1 2.64c.65.71 1.03 1.6 1.03 2.71c0 3.82-2.34 4.66-4.57 4.91c.36.31.69.92.69 1.85V21c0 .27.16.59.67.5C19.14 20.16 22 16.42 22 12A10 10 0 0 0 12 2"
14
- }, null, -1)
15
- ])]);
16
- }
17
- const d = /* @__PURE__ */ r(n, [["render", l]]);
1
+ import { createContext as f } from "./index92.js";
2
+ import { useDirection as m } from "./index96.js";
3
+ import { useForwardExpose as c } from "./index97.js";
4
+ import { useId as v } from "./index99.js";
5
+ import { Primitive as V } from "./index105.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 "./index98.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;
18
83
  export {
19
- d as default
84
+ j as TabsRoot_default,
85
+ O as injectTabsRootContext
20
86
  };
package/dist/index41.js CHANGED
@@ -1,20 +1,68 @@
1
- import { createElementBlock as c, openBlock as o, createElementVNode as t } from "vue";
2
- import r from "./index29.js";
3
- const n = {}, l = {
4
- xmlns: "http://www.w3.org/2000/svg",
5
- "aria-hidden": "true",
6
- focusable: "false",
7
- viewBox: "0 0 24 24"
8
- };
9
- function s(f, e) {
10
- return o(), c("svg", l, [...e[0] || (e[0] = [
11
- t("path", {
12
- fill: "currentColor",
13
- d: "M5.202 2.857C7.954 4.922 10.913 9.11 12 11.358c1.087-2.247 4.046-6.436 6.798-8.501C20.783 1.366 24 .213 24 3.883c0 .732-.42 6.156-.667 7.037c-.856 3.061-3.978 3.842-6.755 3.37c4.854.826 6.089 3.562 3.422 6.299c-5.065 5.196-7.28-1.304-7.847-2.97c-.104-.305-.152-.448-.153-.327c0-.121-.05.022-.153.327c-.568 1.666-2.782 8.166-7.847 2.97c-2.667-2.737-1.432-5.473 3.422-6.3c-2.777.473-5.899-.308-6.755-3.369C.42 10.04 0 4.615 0 3.883c0-3.67 3.217-2.517 5.202-1.026"
14
- }, null, -1)
15
- ])]);
16
- }
17
- const d = /* @__PURE__ */ r(n, [["render", s]]);
1
+ import { useForwardExpose as p } from "./index97.js";
2
+ import { Presence_default as c } from "./index103.js";
3
+ import { Primitive as v } from "./index105.js";
4
+ import { injectTabsRootContext as b } from "./index40.js";
5
+ import { makeTriggerId as _, makeContentId as y } from "./index111.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;
18
66
  export {
19
- d as default
67
+ F as TabsContent_default
20
68
  };
package/dist/index42.js CHANGED
@@ -1,20 +1,55 @@
1
- import { createElementBlock as c, openBlock as t, createElementVNode as o } from "vue";
2
- import r from "./index29.js";
3
- const n = {}, l = {
4
- xmlns: "http://www.w3.org/2000/svg",
5
- "aria-hidden": "true",
6
- focusable: "false",
7
- viewBox: "0 0 24 24"
8
- };
9
- function s(a, e) {
10
- return t(), c("svg", l, [...e[0] || (e[0] = [
11
- o("path", {
12
- fill: "currentColor",
13
- d: "M22.46 6c-.77.35-1.6.58-2.46.69c.88-.53 1.56-1.37 1.88-2.38c-.83.5-1.75.85-2.72 1.05C18.37 4.5 17.26 4 16 4c-2.35 0-4.27 1.92-4.27 4.29c0 .34.04.67.11.98C8.28 9.09 5.11 7.38 3 4.79c-.37.63-.58 1.37-.58 2.15c0 1.49.75 2.81 1.91 3.56c-.71 0-1.37-.2-1.95-.5v.03c0 2.08 1.48 3.82 3.44 4.21a4.2 4.2 0 0 1-1.93.07a4.28 4.28 0 0 0 4 2.98a8.52 8.52 0 0 1-5.33 1.84q-.51 0-1.02-.06C3.44 20.29 5.7 21 8.12 21C16 21 20.33 14.46 20.33 8.79c0-.19 0-.37-.01-.56c.84-.6 1.56-1.36 2.14-2.23"
14
- }, null, -1)
15
- ])]);
16
- }
17
- const d = /* @__PURE__ */ r(n, [["render", s]]);
1
+ import { useForwardExpose as u } from "./index97.js";
2
+ import { Primitive as p } from "./index105.js";
3
+ import { RovingFocusGroup_default as d } from "./index109.js";
4
+ import { injectTabsRootContext as f } from "./index40.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;
18
53
  export {
19
- d as default
54
+ w as TabsList_default
20
55
  };
package/dist/index43.js CHANGED
@@ -1,27 +1,78 @@
1
- import { getDefaultExportFromCjs as n } from "./index96.js";
2
- import { __require as s } from "./index88.js";
3
- function u(t, a) {
4
- for (var o = 0; o < a.length; o++) {
5
- const e = a[o];
6
- if (typeof e != "string" && !Array.isArray(e)) {
7
- for (const r in e)
8
- if (r !== "default" && !(r in t)) {
9
- const i = Object.getOwnPropertyDescriptor(e, r);
10
- i && Object.defineProperty(t, r, i.get ? i : {
11
- enumerable: !0,
12
- get: () => e[r]
13
- });
14
- }
1
+ import { useForwardExpose as p } from "./index97.js";
2
+ import { Primitive as b } from "./index105.js";
3
+ import { RovingFocusItem_default as m } from "./index110.js";
4
+ import { injectTabsRootContext as c } from "./index40.js";
5
+ import { makeTriggerId as g, makeContentId as y } from "./index111.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"
15
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"]));
16
74
  }
17
- return Object.freeze(Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }));
18
- }
19
- var f = s();
20
- const c = /* @__PURE__ */ n(f), g = /* @__PURE__ */ u({
21
- __proto__: null,
22
- default: c
23
- }, [f]);
75
+ }), A = k;
24
76
  export {
25
- c as default,
26
- g as r
77
+ A as TabsTrigger_default
27
78
  };