@mintlify/msft-sdk 1.1.40 → 1.1.42

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.
@@ -1,288 +1,297 @@
1
- import { jsxs as l, jsx as n, Fragment as W } from "react/jsx-runtime";
2
- import C, { useRef as j, useEffect as L, useState as S } from "react";
3
- import { useComponents as M } from "../../context/components-context.js";
1
+ import { jsxs as a, jsx as e, Fragment as I } from "react/jsx-runtime";
2
+ import C, { useRef as M, useEffect as z, useState as W } from "react";
3
+ import { useComponents as L } from "../../context/components-context.js";
4
4
  /* empty css */
5
- import { cn as h } from "../../utils/cn.js";
6
- import { MethodPill as I } from "../Api/MethodPill.js";
7
- function _({ isExpanded: t }) {
8
- return /* @__PURE__ */ n(
5
+ import { cn as p } from "../../utils/cn.js";
6
+ import { MethodPill as j } from "../Api/MethodPill.js";
7
+ function _({ isExpanded: n }) {
8
+ return /* @__PURE__ */ e(
9
9
  "svg",
10
10
  {
11
- className: h(
12
- "mint:w-[16px] mint:h-[16px] mint:shrink-0 mint:text-[#6b7280] mint:dark:text-[#9ca3af]",
13
- t ? "mint:rotate-90" : "mint:rotate-0"
11
+ className: p(
12
+ "mint:w-[16px] mint:h-[16px] mint:shrink-0 mint:text-[#6b7280] mint:dark:text-[#adadad]",
13
+ n ? "mint:rotate-90" : "mint:rotate-0"
14
14
  ),
15
15
  fill: "none",
16
16
  stroke: "currentColor",
17
17
  viewBox: "0 0 24 24",
18
18
  "aria-hidden": "true",
19
- children: /* @__PURE__ */ n("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9 5l7 7-7 7" })
19
+ children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9 5l7 7-7 7" })
20
20
  }
21
21
  );
22
22
  }
23
- const z = "mint:bg-[#e6e6e6] mint:dark:bg-[#2e2e2e] mint:text-[#242424] mint:dark:text-[#ffffff] mint:font-semibold";
24
- function y({ item: t, activeId: g, level: p = 0, activeHref: a }) {
25
- const x = t.children && t.children.length > 0, v = (i) => i ? i.startsWith("/") ? i : `/${i}` : "", u = (i, o) => {
26
- if (!i || !o) return !1;
27
- const b = v(i), N = v(o);
28
- return b === N || b.replace("/docs/", "/") === N.replace("/docs/", "/") || b === N.replace("/docs/", "/") || b.replace("/docs/", "/") === N;
29
- }, k = (i) => u(i.href, a) ? !0 : i.children ? i.children.some(k) : !1, $ = p === 0 ? !0 : (t.expanded ?? !1) || x && k(t), [s, e] = S($);
30
- L(() => {
31
- x && k(t) && e(!0);
32
- }, [a]);
33
- const { LinkComponent: d } = M(), f = !t.href, r = t.href && (u(t.href, g) || u(t.href, a)), c = t.icon;
34
- if (f && p === 0)
35
- return /* @__PURE__ */ l("div", { id: "nav-group", role: "group", "aria-label": t.toc_title, children: [
36
- /* @__PURE__ */ l("div", { className: "mint:text-sm mint:font-semibold mint:text-[#141414] mint:dark:text-white mint:mb-3 mint:flex mint:items-start mint:gap-2 mint:pl-2.5", children: [
37
- c && /* @__PURE__ */ n(c, { className: "mint:w-5 mint:h-5", "aria-hidden": "true" }),
38
- /* @__PURE__ */ n("span", { children: t.toc_title })
23
+ const S = "mint:bg-[#e6e6e6] mint:dark:bg-[#2e2e2e] mint:text-[#242424] mint:dark:text-[#ffffff] mint:font-semibold";
24
+ function E({ item: n, activeId: g, level: u = 0, activeHref: s }) {
25
+ const b = n.children && n.children.length > 0, v = (i) => i ? i.startsWith("/") ? i : `/${i}` : "", x = (i, r) => {
26
+ if (!i || !r) return !1;
27
+ const o = v(i), N = v(r);
28
+ return o === N || o.replace("/docs/", "/") === N.replace("/docs/", "/") || o === N.replace("/docs/", "/") || o.replace("/docs/", "/") === N;
29
+ }, k = (i) => x(i.href, s) ? !0 : i.children ? i.children.some(k) : !1, $ = u === 0 ? !0 : (n.expanded ?? !1) || b && k(n), [c, t] = W($);
30
+ z(() => {
31
+ b && k(n) && t(!0);
32
+ }, [s]);
33
+ const { LinkComponent: f } = L(), d = !n.href, m = n.href && (x(n.href, g) || x(n.href, s)), h = n.icon;
34
+ if (d && u === 0)
35
+ return /* @__PURE__ */ a("div", { id: "nav-group", role: "group", "aria-label": n.toc_title, children: [
36
+ /* @__PURE__ */ a("div", { className: "mint:text-sm mint:font-semibold mint:text-[#141414] mint:dark:text-white mint:mb-3 mint:flex mint:items-start mint:gap-2 mint:pl-2.5", children: [
37
+ h && /* @__PURE__ */ e(h, { className: "mint:w-5 mint:h-5", "aria-hidden": "true" }),
38
+ /* @__PURE__ */ e("span", { children: n.toc_title })
39
39
  ] }),
40
- x && t.children && /* @__PURE__ */ n("ul", { className: "mint:flex mint:flex-col mint:pl-0", role: "list", children: t.children.map((i, o) => /* @__PURE__ */ n(
41
- y,
40
+ b && n.children && /* @__PURE__ */ e("ul", { className: "mint:flex mint:flex-col mint:pl-0", role: "list", children: n.children.map((i, r) => /* @__PURE__ */ e(
41
+ E,
42
42
  {
43
43
  item: i,
44
44
  activeId: g,
45
- level: p + 1,
46
- activeHref: a
45
+ level: u + 1,
46
+ activeHref: s
47
47
  },
48
- `${i.href}-${o}`
48
+ `${i.href}-${r}`
49
49
  )) })
50
50
  ] });
51
- if (f && p > 0)
52
- return /* @__PURE__ */ l("li", { className: "mint:list-none", children: [
53
- /* @__PURE__ */ l(
51
+ if (d && u > 0)
52
+ return /* @__PURE__ */ a("li", { className: "mint:list-none", children: [
53
+ /* @__PURE__ */ a(
54
54
  "button",
55
55
  {
56
56
  id: "nav-group-toggle",
57
- onClick: () => e(!s),
58
- "aria-expanded": s,
59
- "aria-label": `${s ? "Collapse" : "Expand"} ${t.toc_title} section`,
60
- className: "mint:relative mint:text-left mint:w-full mint:flex mint:items-center mint:justify-between mint:py-2 mint:px-3 mint:text-sm mint:rounded-lg mint:bg-transparent mint:border-none mint:cursor-pointer mint:text-[#4b5563] mint:dark:text-[#9ca3af] mint:hover:bg-[rgba(75,85,99,0.05)] mint:hover:text-[#141414] mint:dark:hover:bg-[rgba(75,85,99,0.05)] mint:dark:hover:text-[#e5e7eb] mint:focus-visible:outline-2 mint:focus-visible:outline-[#643fb2] mint:focus-visible:outline-offset-2",
57
+ onClick: () => t(!c),
58
+ "aria-expanded": c,
59
+ "aria-label": `${c ? "Collapse" : "Expand"} ${n.toc_title} section`,
60
+ className: "mint:relative mint:text-left mint:w-full mint:flex mint:items-center mint:justify-between mint:py-2 mint:px-3 mint:text-sm mint:rounded-lg mint:bg-transparent mint:border-none mint:cursor-pointer mint:text-[#4b5563] mint:dark:text-[#adadad] mint:hover:bg-[rgba(75,85,99,0.05)] mint:hover:text-[#141414] mint:dark:hover:bg-[rgba(75,85,99,0.05)] mint:dark:hover:text-[#e5e7eb] mint:focus-visible:outline-2 mint:focus-visible:outline-[#643fb2] mint:focus-visible:outline-offset-2",
61
61
  children: [
62
- /* @__PURE__ */ n("span", { className: "mint:flex-1 mint:min-w-0", children: t.toc_title }),
63
- /* @__PURE__ */ n(_, { isExpanded: !!s })
62
+ /* @__PURE__ */ e("span", { className: "mint:flex-1 mint:min-w-0", children: n.toc_title }),
63
+ /* @__PURE__ */ e(_, { isExpanded: !!c })
64
64
  ]
65
65
  }
66
66
  ),
67
- x && s && t.children && /* @__PURE__ */ n("ul", { className: "mint:ml-3 mint:flex mint:flex-col mint:pl-0", role: "group", children: t.children.map((i, o) => /* @__PURE__ */ n(
68
- y,
67
+ b && c && n.children && /* @__PURE__ */ e("ul", { className: "mint:ml-3 mint:flex mint:flex-col mint:pl-0", role: "group", children: n.children.map((i, r) => /* @__PURE__ */ e(
68
+ E,
69
69
  {
70
70
  item: i,
71
71
  activeId: g,
72
- level: p + 1,
73
- activeHref: a
72
+ level: u + 1,
73
+ activeHref: s
74
74
  },
75
- `${i.href}-${o}`
75
+ `${i.href}-${r}`
76
76
  )) })
77
77
  ] });
78
- const m = d || "a";
79
- return x ? /* @__PURE__ */ l("li", { className: "mint:list-none", children: [
80
- /* @__PURE__ */ l(
78
+ const l = f || "a";
79
+ return b ? /* @__PURE__ */ a("li", { className: "mint:list-none", children: [
80
+ /* @__PURE__ */ a(
81
81
  "button",
82
82
  {
83
83
  id: "nav-item-toggle",
84
- onClick: () => e(!s),
85
- "aria-expanded": s,
86
- "aria-label": `${s ? "Collapse" : "Expand"} ${t.toc_title} section`,
87
- className: h(
88
- "mint:relative mint:text-left mint:w-full mint:flex mint:items-center mint:justify-between mint:gap-2 mint:py-2 mint:px-3 mint:text-[14px] mint:font-normal mint:rounded-xl mint:bg-transparent mint:border-none mint:cursor-pointer mint:text-[#424242] mint:dark:text-[#9ca3af] mint:focus-visible:outline-2 mint:focus-visible:outline-[#643fb2] mint:focus-visible:outline-offset-2",
89
- r ? z : "mint:hover:bg-[rgba(75,85,99,0.05)] mint:hover:text-[#141414] mint:dark:hover:bg-[rgba(75,85,99,0.05)] mint:dark:hover:text-[#e5e7eb]"
84
+ onClick: () => t(!c),
85
+ "aria-expanded": c,
86
+ "aria-label": `${c ? "Collapse" : "Expand"} ${n.toc_title} section`,
87
+ className: p(
88
+ "mint:relative mint:text-left mint:w-full mint:flex mint:items-center mint:justify-between mint:gap-2 mint:py-2 mint:px-3 mint:text-[14px] mint:font-normal mint:rounded-xl mint:bg-transparent mint:border-none mint:cursor-pointer mint:text-[#424242] mint:dark:text-[#adadad] mint:focus-visible:outline-2 mint:focus-visible:outline-[#643fb2] mint:focus-visible:outline-offset-2",
89
+ m ? S : "mint:hover:bg-[rgba(75,85,99,0.05)] mint:hover:text-[#141414] mint:dark:hover:bg-[rgba(75,85,99,0.05)] mint:dark:hover:text-[#e5e7eb]"
90
90
  ),
91
91
  children: [
92
- /* @__PURE__ */ n("span", { className: "mint:flex-1 mint:min-w-0", children: t.toc_title }),
93
- /* @__PURE__ */ n(_, { isExpanded: !!s })
92
+ /* @__PURE__ */ e("span", { className: "mint:flex-1 mint:min-w-0", children: n.toc_title }),
93
+ /* @__PURE__ */ e(_, { isExpanded: !!c })
94
94
  ]
95
95
  }
96
96
  ),
97
- s && t.children && /* @__PURE__ */ n("ul", { className: "mint:ml-3 mint:flex mint:flex-col mint:pl-0", role: "group", children: t.children.map((i, o) => /* @__PURE__ */ n(
98
- y,
97
+ c && n.children && /* @__PURE__ */ e("ul", { className: "mint:ml-3 mint:flex mint:flex-col mint:pl-0", role: "group", children: n.children.map((i, r) => /* @__PURE__ */ e(
98
+ E,
99
99
  {
100
100
  item: i,
101
101
  activeId: g,
102
- level: p + 1,
103
- activeHref: a
102
+ level: u + 1,
103
+ activeHref: s
104
104
  },
105
- `${i.href}-${o}`
105
+ `${i.href}-${r}`
106
106
  )) })
107
- ] }) : /* @__PURE__ */ n("li", { className: "mint:list-none", children: /* @__PURE__ */ l(
108
- m,
107
+ ] }) : /* @__PURE__ */ e("li", { className: "mint:list-none", children: /* @__PURE__ */ a(
108
+ l,
109
109
  {
110
110
  id: "nav-item",
111
- href: t.href,
112
- "aria-current": r ? "page" : void 0,
113
- className: h(
114
- "mint:relative mint:flex mint:items-center mint:gap-2 mint:py-2 mint:px-3 mint:text-[14px] mint:font-normal mint:rounded-xl mint:no-underline mint:text-[#424242] mint:dark:text-[#9ca3af] mint:focus-visible:outline-2 mint:focus-visible:outline-[#643fb2] mint:focus-visible:outline-offset-2 mint:[&_span]:flex-1",
115
- r ? z : "mint:hover:bg-[rgba(75,85,99,0.05)] mint:hover:text-[#141414] mint:dark:hover:bg-[rgba(75,85,99,0.05)] mint:dark:hover:text-[#e5e7eb]"
111
+ href: n.href,
112
+ "aria-current": m ? "page" : void 0,
113
+ className: p(
114
+ "mint:relative mint:flex mint:items-center mint:gap-2 mint:py-2 mint:px-3 mint:text-[14px] mint:font-normal mint:rounded-xl mint:no-underline mint:text-[#424242] mint:dark:text-[#adadad] mint:focus-visible:outline-2 mint:focus-visible:outline-[#643fb2] mint:focus-visible:outline-offset-2 mint:[&_span]:flex-1",
115
+ m ? S : "mint:hover:bg-[rgba(75,85,99,0.05)] mint:hover:text-[#141414] mint:dark:hover:bg-[rgba(75,85,99,0.05)] mint:dark:hover:text-[#e5e7eb]"
116
116
  ),
117
117
  children: [
118
- r && /* @__PURE__ */ n("div", { className: "mint:absolute mint:left-0 mint:my-2.5 mint:rounded-full mint:w-[3px] mint:top-0 mint:bottom-0 mint:bg-[#8251ee] mint:dark:bg-[#9263f1]" }),
119
- t.method && /* @__PURE__ */ n(I, { isActive: !!r, method: t.method, shortMethod: !0 }),
120
- t.toc_title
118
+ m && /* @__PURE__ */ e("div", { className: "mint:absolute mint:left-0 mint:my-2.5 mint:rounded-full mint:w-[3px] mint:top-0 mint:bottom-0 mint:bg-[#8251ee] mint:dark:bg-[#9263f1]" }),
119
+ n.method && /* @__PURE__ */ e(j, { isActive: !!m, method: n.method, shortMethod: !0 }),
120
+ n.toc_title
121
121
  ]
122
122
  }
123
123
  ) });
124
124
  }
125
- function H({
126
- navTree: t,
125
+ function G({
126
+ navTree: n,
127
127
  activeId: g,
128
- className: p = "",
129
- activeHref: a,
130
- theme: x,
128
+ className: u = "",
129
+ activeHref: s,
130
+ theme: b,
131
131
  bottomLinks: v,
132
- anchors: u
132
+ anchors: x
133
133
  }) {
134
- const { LinkComponent: k } = M(), $ = j(null);
135
- if (L(() => {
136
- const e = $.current;
137
- if (!e || !a) return;
138
- const d = (r) => r ? r.startsWith("/") ? r : `/${r}` : "", f = (r, c) => {
139
- const m = d(r), i = d(c);
140
- return m === i || m.replace("/docs/", "/") === i.replace("/docs/", "/") || m === i.replace("/docs/", "/") || m.replace("/docs/", "/") === i;
141
- };
142
- requestAnimationFrame(() => {
143
- const r = e.querySelectorAll("a[href]");
144
- let c = null;
145
- for (const m of Array.from(r)) {
146
- const i = m.getAttribute("href");
147
- if (i && f(i, a)) {
148
- c = m;
149
- break;
134
+ const { LinkComponent: k } = L(), $ = M(null);
135
+ if (z(() => {
136
+ const t = $.current;
137
+ if (!t || !s) return;
138
+ const f = sessionStorage.getItem("nav-tree-scroll-position");
139
+ if (f)
140
+ t.scrollTop = parseInt(f, 10);
141
+ else {
142
+ const m = (l) => l ? l.startsWith("/") ? l : `/${l}` : "", h = (l, i) => {
143
+ const r = m(l), o = m(i);
144
+ return r === o || r.replace("/docs/", "/") === o.replace("/docs/", "/") || r === o.replace("/docs/", "/") || r.replace("/docs/", "/") === o;
145
+ };
146
+ requestAnimationFrame(() => {
147
+ const l = t.querySelectorAll("a[href]");
148
+ let i = null;
149
+ for (const r of Array.from(l)) {
150
+ const o = r.getAttribute("href");
151
+ if (o && h(o, s)) {
152
+ i = r;
153
+ break;
154
+ }
150
155
  }
151
- }
152
- c && c.scrollIntoView({
153
- behavior: "instant",
154
- block: "center",
155
- inline: "nearest"
156
+ i && i.scrollIntoView({
157
+ behavior: "instant",
158
+ block: "center",
159
+ inline: "nearest"
160
+ });
156
161
  });
157
- });
158
- }, [a]), !t || t.items.length === 0)
162
+ }
163
+ const d = () => {
164
+ sessionStorage.setItem("nav-tree-scroll-position", t.scrollTop.toString());
165
+ };
166
+ return t.addEventListener("scroll", d), () => t.removeEventListener("scroll", d);
167
+ }, [s]), !n || n.items.length === 0)
159
168
  return null;
160
- const s = k || "a";
161
- return /* @__PURE__ */ l(
169
+ const c = k || "a";
170
+ return /* @__PURE__ */ a(
162
171
  "nav",
163
172
  {
164
173
  id: "nav-tree",
165
- className: h(
174
+ className: p(
166
175
  "mint:flex mint:flex-col mint:h-full mint:min-h-0",
167
- p,
168
- x === "dark" && "dark"
176
+ u,
177
+ b === "dark" && "dark"
169
178
  ),
170
179
  "aria-label": "Documentation navigation",
171
180
  children: [
172
- /* @__PURE__ */ l(
181
+ /* @__PURE__ */ a(
173
182
  "div",
174
183
  {
175
184
  id: "nav-tree-content",
176
185
  ref: $,
177
- className: h(
186
+ className: p(
178
187
  "mint:flex-1 mint:overflow-y-auto mint:overflow-x-hidden mint:min-h-0 mint:[scrollbar-gutter:stable] mint:md:px-4 mint:[scrollbar-width:thin] mint:[scrollbar-color:rgba(0,0,0,0.2)_transparent] mint:dark:[scrollbar-color:rgba(255,255,255,0.2)_transparent] mint:[&::-webkit-scrollbar]:w-1 mint:[&::-webkit-scrollbar-track]:bg-transparent mint:[&::-webkit-scrollbar-thumb]:bg-black/20 mint:dark:[&::-webkit-scrollbar-thumb]:bg-white/20 mint:[&::-webkit-scrollbar-thumb]:rounded mint:[&::-webkit-scrollbar-thumb:hover]:bg-black/30 mint:dark:[&::-webkit-scrollbar-thumb:hover]:bg-white/30 mint:space-y-6 mint:py-4"
179
188
  ),
180
189
  children: [
181
- u && u.length > 0 && /* @__PURE__ */ n("div", { id: "nav-anchors", className: "mint:shrink-0 mint:w-full mint:mb-3", children: /* @__PURE__ */ n("div", { className: "mint:flex mint:flex-col", children: u.map((e, d) => {
182
- const f = e.icon, r = (m) => m ? m.startsWith("/") ? m : `/${m}` : "", c = (() => {
183
- if (!a || !e.href) return !1;
184
- const m = r(a), i = r(e.href), o = m.replace(/\/$/, ""), b = i.replace(/\/$/, "");
185
- return o === b || o.startsWith(b + "/") ? u.filter((w) => {
190
+ x && x.length > 0 && /* @__PURE__ */ e("div", { id: "nav-anchors", className: "mint:shrink-0 mint:w-full mint:mb-3", children: /* @__PURE__ */ e("div", { className: "mint:flex mint:flex-col", children: x.map((t, f) => {
191
+ const d = t.icon, m = (l) => l ? l.startsWith("/") ? l : `/${l}` : "", h = (() => {
192
+ if (!s || !t.href) return !1;
193
+ const l = m(s), i = m(t.href), r = l.replace(/\/$/, ""), o = i.replace(/\/$/, "");
194
+ return r === o || r.startsWith(o + "/") ? x.filter((w) => {
186
195
  if (!w.href) return !1;
187
- const A = r(w.href).replace(/\/$/, "");
188
- return o === A || o.startsWith(A + "/");
189
- }).reduce((w, E) => {
190
- const A = r(w.href || "").replace(
196
+ const A = m(w.href).replace(/\/$/, "");
197
+ return r === A || r.startsWith(A + "/");
198
+ }).reduce((w, y) => {
199
+ const A = m(w.href || "").replace(
191
200
  /\/$/,
192
201
  ""
193
202
  );
194
- return r(E.href || "").replace(
203
+ return m(y.href || "").replace(
195
204
  /\/$/,
196
205
  ""
197
- ).length > A.length ? E : w;
198
- }, e) === e : !1;
206
+ ).length > A.length ? y : w;
207
+ }, t) === t : !1;
199
208
  })();
200
- return /* @__PURE__ */ l(
201
- s,
209
+ return /* @__PURE__ */ a(
210
+ c,
202
211
  {
203
- href: e.href,
204
- "aria-current": c ? "page" : void 0,
205
- className: h(
212
+ href: t.href,
213
+ "aria-current": h ? "page" : void 0,
214
+ className: p(
206
215
  "mint:group mint:relative mint:flex mint:items-start mint:gap-2 mint:py-2 mint:px-3 mint:text-sm mint:rounded-lg mint:no-underline mint:focus-visible:outline-2 mint:focus-visible:outline-[#643fb2] mint:focus-visible:outline-offset-2 mint:hover:text-[#141414] mint:dark:hover:text-[#e5e7eb]",
207
- c ? "mint:text-[#141414] mint:dark:text-[#ffffff]" : "mint:text-[#424242] mint:dark:text-[#9ca3af]"
216
+ h ? "mint:text-[#141414] mint:dark:text-[#ffffff]" : "mint:text-[#424242] mint:dark:text-[#adadad]"
208
217
  ),
209
218
  children: [
210
- f && /* @__PURE__ */ n(
211
- f,
219
+ d && /* @__PURE__ */ e(
220
+ d,
212
221
  {
213
- className: h(
222
+ className: p(
214
223
  "mint:w-5 mint:h-5 mint:shrink-0",
215
- c ? "mint:text-[#8251ee] mint:dark:text-[#9263f1]" : "mint:text-[#6b7280] mint:dark:text-[#9ca3af] mint:group-hover:text-[#8251ee] mint:dark:group-hover:text-[#9263f1]"
224
+ h ? "mint:text-[#8251ee] mint:dark:text-[#9263f1]" : "mint:text-[#6b7280] mint:dark:text-[#adadad] mint:group-hover:text-[#8251ee] mint:dark:group-hover:text-[#9263f1]"
216
225
  )
217
226
  }
218
227
  ),
219
- /* @__PURE__ */ l("div", { className: "mint:flex mint:flex-col mint:gap-0.5 mint:min-w-0", children: [
220
- /* @__PURE__ */ n(
228
+ /* @__PURE__ */ a("div", { className: "mint:flex mint:flex-col mint:gap-0.5 mint:min-w-0", children: [
229
+ /* @__PURE__ */ e(
221
230
  "span",
222
231
  {
223
- className: h(
232
+ className: p(
224
233
  "mint:font-medium",
225
- c ? "mint:text-[#8251ee] mint:dark:text-[#9263f1] mint:font-semibold" : "mint:text-[#141414] mint:dark:text-[#ffffff] mint:group-hover:text-[#8251ee] mint:dark:group-hover:text-[#9263f1]"
234
+ h ? "mint:text-[#8251ee] mint:dark:text-[#9263f1] mint:font-semibold" : "mint:text-[#141414] mint:dark:text-[#ffffff] mint:group-hover:text-[#8251ee] mint:dark:group-hover:text-[#9263f1]"
226
235
  ),
227
- children: e.title
236
+ children: t.title
228
237
  }
229
238
  ),
230
- e.description && /* @__PURE__ */ n("span", { className: "mint:text-xs mint:text-[#6b7280] mint:dark:text-[#9ca3af] mint:leading-snug", children: e.description })
239
+ t.description && /* @__PURE__ */ e("span", { className: "mint:text-xs mint:text-[#6b7280] mint:dark:text-[#adadad] mint:leading-snug", children: t.description })
231
240
  ] })
232
241
  ]
233
242
  },
234
- d
243
+ f
235
244
  );
236
245
  }) }) }),
237
- t.items.map((e, d) => /* @__PURE__ */ n(
238
- y,
246
+ n.items.map((t, f) => /* @__PURE__ */ e(
247
+ E,
239
248
  {
240
- item: e,
249
+ item: t,
241
250
  activeId: g,
242
- activeHref: a
251
+ activeHref: s
243
252
  },
244
- `${e.href}-${d}`
253
+ `${t.href}-${f}`
245
254
  ))
246
255
  ]
247
256
  }
248
257
  ),
249
- v && v.length > 0 && /* @__PURE__ */ l(
258
+ v && v.length > 0 && /* @__PURE__ */ a(
250
259
  "div",
251
260
  {
252
261
  id: "nav-tree-bottom-links",
253
262
  className: "mint:shrink-0 mint:w-full mint:bg-[#f0f0f0] mint:dark:bg-[#0f0f0f] mint:mt-auto",
254
263
  children: [
255
- /* @__PURE__ */ n("div", { className: "mint:h-[0.5px] mint:w-full mint:bg-[#d1d1d1] mint:dark:bg-[#666666]" }),
256
- /* @__PURE__ */ n("div", { className: "mint:flex mint:flex-col mint:py-3 mint:px-4", children: v.map((e, d) => {
257
- var r;
258
- const f = e.icon;
259
- return e.component ? /* @__PURE__ */ n("div", { children: C.isValidElement(e.component) ? C.cloneElement(e.component, {
260
- ...e.component.props,
261
- className: h(
262
- "mint:flex mint:items-center mint:py-2 mint:gap-2 mint:text-sm mint:text-[#424242] mint:dark:text-[#9ca3af] mint:hover:text-[#141414] mint:dark:hover:text-[#e5e7eb] mint:px-2 mint:cursor-pointer",
263
- (r = e.component.props) == null ? void 0 : r.className
264
+ /* @__PURE__ */ e("div", { className: "mint:h-[0.5px] mint:w-full mint:bg-[#d1d1d1] mint:dark:bg-[#666666]" }),
265
+ /* @__PURE__ */ e("div", { className: "mint:flex mint:flex-col mint:py-3 mint:px-4", children: v.map((t, f) => {
266
+ var m;
267
+ const d = t.icon;
268
+ return t.component ? /* @__PURE__ */ e("div", { children: C.isValidElement(t.component) ? C.cloneElement(t.component, {
269
+ ...t.component.props,
270
+ className: p(
271
+ "mint:flex mint:items-center mint:py-2 mint:gap-2 mint:text-sm mint:text-[#424242] mint:dark:text-[#adadad] mint:hover:text-[#141414] mint:dark:hover:text-[#e5e7eb] mint:px-2 mint:cursor-pointer",
272
+ (m = t.component.props) == null ? void 0 : m.className
264
273
  ),
265
- children: /* @__PURE__ */ l(W, { children: [
266
- /* @__PURE__ */ n(f, { className: "mint:w-5 mint:h-5 mint:shrink-0" }),
267
- /* @__PURE__ */ n("span", { children: e.label })
274
+ children: /* @__PURE__ */ a(I, { children: [
275
+ /* @__PURE__ */ e(d, { className: "mint:w-5 mint:h-5 mint:shrink-0" }),
276
+ /* @__PURE__ */ e("span", { children: t.label })
268
277
  ] })
269
- }) : /* @__PURE__ */ l("div", { className: "mint:flex mint:items-center mint:py-2 mint:gap-2 mint:text-sm mint:text-[#424242] mint:dark:text-[#9ca3af] mint:hover:text-[#141414] mint:dark:hover:text-[#e5e7eb] mint:px-2 mint:cursor-pointer", children: [
270
- /* @__PURE__ */ n(f, { className: "mint:w-5 mint:h-5 mint:shrink-0" }),
271
- /* @__PURE__ */ n("span", { children: e.label }),
272
- e.component
273
- ] }) }, d) : /* @__PURE__ */ l(
274
- s,
278
+ }) : /* @__PURE__ */ a("div", { className: "mint:flex mint:items-center mint:py-2 mint:gap-2 mint:text-sm mint:text-[#424242] mint:dark:text-[#adadad] mint:hover:text-[#141414] mint:dark:hover:text-[#e5e7eb] mint:px-2 mint:cursor-pointer", children: [
279
+ /* @__PURE__ */ e(d, { className: "mint:w-5 mint:h-5 mint:shrink-0" }),
280
+ /* @__PURE__ */ e("span", { children: t.label }),
281
+ t.component
282
+ ] }) }, f) : /* @__PURE__ */ a(
283
+ c,
275
284
  {
276
- href: e.href,
285
+ href: t.href,
277
286
  target: "_blank",
278
287
  rel: "noopener noreferrer",
279
- className: "mint:flex mint:items-center mint:py-2 mint:gap-2 mint:text-sm mint:no-underline mint:text-[#424242] mint:dark:text-[#9ca3af] mint:hover:text-[#141414] mint:dark:hover:text-[#e5e7eb] mint:px-2 mint:[&>span]:flex mint:[&>span]:items-center mint:[&>span]:gap-2 mint:[&>svg:last-child]:hidden",
288
+ className: "mint:flex mint:items-center mint:py-2 mint:gap-2 mint:text-sm mint:no-underline mint:text-[#424242] mint:dark:text-[#adadad] mint:hover:text-[#141414] mint:dark:hover:text-[#e5e7eb] mint:px-2 mint:[&>span]:flex mint:[&>span]:items-center mint:[&>span]:gap-2 mint:[&>svg:last-child]:hidden",
280
289
  children: [
281
- /* @__PURE__ */ n(f, { className: "mint:w-5 mint:h-5 mint:shrink-0" }),
282
- /* @__PURE__ */ n("span", { children: e.label })
290
+ /* @__PURE__ */ e(d, { className: "mint:w-5 mint:h-5 mint:shrink-0" }),
291
+ /* @__PURE__ */ e("span", { children: t.label })
283
292
  ]
284
293
  },
285
- d
294
+ f
286
295
  );
287
296
  }) })
288
297
  ]
@@ -293,6 +302,6 @@ function H({
293
302
  );
294
303
  }
295
304
  export {
296
- H as NavTree
305
+ G as NavTree
297
306
  };
298
307
  //# sourceMappingURL=index.js.map