@voidzero-dev/vitepress-theme 0.1.35 → 0.1.38

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 (94) hide show
  1. package/dist/index100.js +6 -6
  2. package/dist/index101.js +4 -32
  3. package/dist/index102.js +4 -57
  4. package/dist/index103.js +6 -8
  5. package/dist/index104.js +29 -10
  6. package/dist/index105.js +55 -56
  7. package/dist/index106.js +9 -6
  8. package/dist/index107.js +13 -38
  9. package/dist/index108.js +58 -21
  10. package/dist/index109.js +6 -25
  11. package/dist/index110.js +39 -10
  12. package/dist/index111.js +20 -56
  13. package/dist/index112.js +25 -36
  14. package/dist/index113.js +10 -119
  15. package/dist/index114.js +54 -89
  16. package/dist/index115.js +34 -6
  17. package/dist/index116.js +112 -432
  18. package/dist/index117.js +92 -33
  19. package/dist/index118.js +6 -1200
  20. package/dist/index119.js +438 -3
  21. package/dist/index120.js +5 -1735
  22. package/dist/index121.js +2 -5
  23. package/dist/index122.js +1735 -2
  24. package/dist/index27.js +1 -1
  25. package/dist/index3.js +3 -3
  26. package/dist/index30.js +8 -8
  27. package/dist/index34.js +12 -12
  28. package/dist/index36.js +7 -7
  29. package/dist/index38.js +7 -7
  30. package/dist/index4.js +10 -10
  31. package/dist/index40.js +84 -2
  32. package/dist/index41.js +50 -68
  33. package/dist/index42.js +34 -47
  34. package/dist/index43.js +55 -32
  35. package/dist/index44.js +23 -73
  36. package/dist/index45.js +18 -14
  37. package/dist/index46.js +16 -20
  38. package/dist/index47.js +16 -16
  39. package/dist/index48.js +13 -13
  40. package/dist/index49.js +14 -14
  41. package/dist/index50.js +2 -26
  42. package/dist/index51.js +24 -17
  43. package/dist/index52.js +20 -16
  44. package/dist/index53.js +122 -16
  45. package/dist/index54.js +2 -2
  46. package/dist/index55.js +2 -2
  47. package/dist/index56.js +2 -2
  48. package/dist/index57.js +2 -2
  49. package/dist/index58.js +2 -2
  50. package/dist/index59.js +2 -2
  51. package/dist/index6.js +1 -1
  52. package/dist/index60.js +2 -2
  53. package/dist/index61.js +1 -1
  54. package/dist/index62.js +2 -2
  55. package/dist/index63.js +2 -2
  56. package/dist/index64.js +2 -2
  57. package/dist/index65.js +1 -1
  58. package/dist/index66.js +2 -49
  59. package/dist/index67.js +19 -44
  60. package/dist/index68.js +18 -2587
  61. package/dist/index69.js +18 -51
  62. package/dist/index7.js +2 -2
  63. package/dist/index70.js +2 -7207
  64. package/dist/index71.js +2 -14
  65. package/dist/index72.js +2 -22
  66. package/dist/index73.js +34 -124
  67. package/dist/index74.js +2 -2
  68. package/dist/index75.js +2 -2
  69. package/dist/index76.js +2 -2
  70. package/dist/index77.js +2 -2
  71. package/dist/index78.js +2 -2
  72. package/dist/index79.js +2 -25
  73. package/dist/index8.js +3 -3
  74. package/dist/index80.js +2 -34
  75. package/dist/index81.js +2 -2
  76. package/dist/index82.js +49 -2
  77. package/dist/index83.js +44 -3
  78. package/dist/index84.js +2587 -2
  79. package/dist/index85.js +51 -2
  80. package/dist/index86.js +7207 -2
  81. package/dist/index87.js +14 -2
  82. package/dist/index88.js +5324 -2
  83. package/dist/index89.js +2 -2
  84. package/dist/index90.js +1 -1
  85. package/dist/index91.js +1 -1
  86. package/dist/index92.js +1 -1
  87. package/dist/index93.js +1 -1
  88. package/dist/index94.js +2 -5324
  89. package/dist/index95.js +2 -2
  90. package/dist/index96.js +32 -9
  91. package/dist/index97.js +1201 -6
  92. package/dist/index98.js +3 -4
  93. package/dist/index99.js +10 -4
  94. package/package.json +1 -1
package/dist/index117.js CHANGED
@@ -1,35 +1,94 @@
1
- function y(n) {
2
- return Object.prototype.toString.call(n) === "[object Object]";
3
- }
4
- function a(n) {
5
- return y(n) || Array.isArray(n);
6
- }
7
- function p() {
8
- return !!(typeof window < "u" && window.document && window.document.createElement);
9
- }
10
- function l(n, t) {
11
- const e = Object.keys(n), c = Object.keys(t);
12
- if (e.length !== c.length) return !1;
13
- const s = JSON.stringify(Object.keys(n.breakpoints || {})), u = JSON.stringify(Object.keys(t.breakpoints || {}));
14
- return s !== u ? !1 : e.every((o) => {
15
- const r = n[o], i = t[o];
16
- return typeof r == "function" ? `${r}` == `${i}` : !a(r) || !a(i) ? r === i : l(r, i);
17
- });
18
- }
19
- function f(n) {
20
- return n.concat().sort((t, e) => t.name > e.name ? 1 : -1).map((t) => t.options);
21
- }
22
- function O(n, t) {
23
- if (n.length !== t.length) return !1;
24
- const e = f(n), c = f(t);
25
- return e.every((s, u) => {
26
- const o = c[u];
27
- return l(s, o);
28
- });
29
- }
1
+ import { useId as b } from "./index106.js";
2
+ import { Primitive as y } from "./index112.js";
3
+ import { useCollection as I } from "./index114.js";
4
+ import { getFocusIntent as g, wrapArray as F, focusFirst as K } from "./index115.js";
5
+ import { injectRovingFocusGroupContext as S } from "./index116.js";
6
+ import { defineComponent as h, computed as u, onMounted as C, onUnmounted as w, createBlock as T, openBlock as q, unref as i, withCtx as s, createVNode as B, renderSlot as x, nextTick as R } from "vue";
7
+ var _ = /* @__PURE__ */ h({
8
+ __name: "RovingFocusItem",
9
+ props: {
10
+ tabStopId: {
11
+ type: String,
12
+ required: !1
13
+ },
14
+ focusable: {
15
+ type: Boolean,
16
+ required: !1,
17
+ default: !0
18
+ },
19
+ active: {
20
+ type: Boolean,
21
+ required: !1
22
+ },
23
+ allowShiftKey: {
24
+ type: Boolean,
25
+ required: !1
26
+ },
27
+ asChild: {
28
+ type: Boolean,
29
+ required: !1
30
+ },
31
+ as: {
32
+ type: null,
33
+ required: !1,
34
+ default: "span"
35
+ }
36
+ },
37
+ setup(d) {
38
+ const n = d, t = S(), f = b(), l = u(() => n.tabStopId || f), c = u(() => t.currentTabStopId.value === l.value), { getItems: p, CollectionItem: m } = I();
39
+ C(() => {
40
+ n.focusable && t.onFocusableItemAdd();
41
+ }), w(() => {
42
+ n.focusable && t.onFocusableItemRemove();
43
+ });
44
+ function v(e) {
45
+ if (e.key === "Tab" && e.shiftKey) {
46
+ t.onItemShiftTab();
47
+ return;
48
+ }
49
+ if (e.target !== e.currentTarget) return;
50
+ const o = g(e, t.orientation.value, t.dir.value);
51
+ if (o !== void 0) {
52
+ if (e.metaKey || e.ctrlKey || e.altKey || !n.allowShiftKey && e.shiftKey) return;
53
+ e.preventDefault();
54
+ let a = [...p().map((r) => r.ref).filter((r) => r.dataset.disabled !== "")];
55
+ if (o === "last") a.reverse();
56
+ else if (o === "prev" || o === "next") {
57
+ o === "prev" && a.reverse();
58
+ const r = a.indexOf(e.currentTarget);
59
+ a = t.loop.value ? F(a, r + 1) : a.slice(r + 1);
60
+ }
61
+ R(() => K(a));
62
+ }
63
+ }
64
+ return (e, o) => (q(), T(i(m), null, {
65
+ default: s(() => [B(i(y), {
66
+ tabindex: c.value ? 0 : -1,
67
+ "data-orientation": i(t).orientation.value,
68
+ "data-active": e.active ? "" : void 0,
69
+ "data-disabled": e.focusable ? void 0 : "",
70
+ as: e.as,
71
+ "as-child": e.asChild,
72
+ onMousedown: o[0] || (o[0] = (a) => {
73
+ e.focusable ? i(t).onItemFocus(l.value) : a.preventDefault();
74
+ }),
75
+ onFocus: o[1] || (o[1] = (a) => i(t).onItemFocus(l.value)),
76
+ onKeydown: v
77
+ }, {
78
+ default: s(() => [x(e.$slots, "default")]),
79
+ _: 3
80
+ }, 8, [
81
+ "tabindex",
82
+ "data-orientation",
83
+ "data-active",
84
+ "data-disabled",
85
+ "as",
86
+ "as-child"
87
+ ])]),
88
+ _: 3
89
+ }));
90
+ }
91
+ }), j = _;
30
92
  export {
31
- l as areOptionsEqual,
32
- O as arePluginsEqual,
33
- p as canUseDOM,
34
- f as sortAndMapPluginToOptions
93
+ j as RovingFocusItem_default
35
94
  };