@mintlify/msft-sdk 0.1.6 → 0.1.9

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.
@@ -0,0 +1,156 @@
1
+ import { jsxs as s, jsx as a } from "react/jsx-runtime";
2
+ import e from "./home.module.css.js";
3
+ import { FlowSparkleRegular as r, ChatSparkleRegular as n, AgentsRegular as i, DatabaseRegular as c } from "@fluentui/react-icons";
4
+ const d = () => /* @__PURE__ */ s("div", { className: e.homeContainer, children: [
5
+ /* @__PURE__ */ s("section", { className: e.heroSection, children: [
6
+ /* @__PURE__ */ a(
7
+ "div",
8
+ {
9
+ className: `${e.heroBackground} ${e.heroBackgroundLight}`,
10
+ style: {
11
+ backgroundImage: "url(https://mintlify-assets.b-cdn.net/azure-ai-foundry/landing-background-light.svg)",
12
+ height: "24rem"
13
+ }
14
+ }
15
+ ),
16
+ /* @__PURE__ */ a(
17
+ "div",
18
+ {
19
+ className: `${e.heroBackground} ${e.heroBackgroundDark}`,
20
+ style: {
21
+ backgroundImage: "url(https://mintlify-assets.b-cdn.net/azure-ai-foundry/landing-background-dark.svg)",
22
+ height: "24rem"
23
+ }
24
+ }
25
+ ),
26
+ /* @__PURE__ */ s("div", { className: e.heroContent, children: [
27
+ /* @__PURE__ */ a("h1", { className: e.heroTitle, children: "Foundry quick start" }),
28
+ /* @__PURE__ */ s("p", { className: e.heroDescription, children: [
29
+ "Learn how to get started with Azure AI Foundry by ",
30
+ /* @__PURE__ */ a("br", {}),
31
+ " creating a project, deploying a model, and running ",
32
+ /* @__PURE__ */ a("br", {}),
33
+ " your first chat completion."
34
+ ] }),
35
+ /* @__PURE__ */ a("button", { className: e.heroButton, children: "Get started" })
36
+ ] })
37
+ ] }),
38
+ /* @__PURE__ */ s("section", { className: e.learnSection, children: [
39
+ /* @__PURE__ */ a("h2", { className: e.sectionTitle, children: "Learn more" }),
40
+ /* @__PURE__ */ s("div", { className: e.cardsGrid, children: [
41
+ /* @__PURE__ */ s("div", { className: e.card, children: [
42
+ /* @__PURE__ */ a("div", { className: e.cardIcon, children: /* @__PURE__ */ a(r, {}) }),
43
+ /* @__PURE__ */ a("h3", { className: e.cardTitle, children: "Build your first AI app" }),
44
+ /* @__PURE__ */ a("p", { className: e.cardDescription, children: "Create a Foundry project and deploy a model. Includes SDK samples for multiple programming languages." })
45
+ ] }),
46
+ /* @__PURE__ */ s("div", { className: e.card, children: [
47
+ /* @__PURE__ */ a("div", { className: e.cardIcon, children: /* @__PURE__ */ a(n, {}) }),
48
+ /* @__PURE__ */ a("h3", { className: e.cardTitle, children: "Get answers in chat playground" }),
49
+ /* @__PURE__ */ a("p", { className: e.cardDescription, children: "Interact with deployed models in the playground. Configure prompts and test responses in a no-code UI." })
50
+ ] }),
51
+ /* @__PURE__ */ s("div", { className: e.card, children: [
52
+ /* @__PURE__ */ a("div", { className: e.cardIcon, children: /* @__PURE__ */ a(i, {}) }),
53
+ /* @__PURE__ */ a("h3", { className: e.cardTitle, children: "Develop an AI agent" }),
54
+ /* @__PURE__ */ a("p", { className: e.cardDescription, children: "Launch image generation models in Foundry playground. Easily integrate with code samples." })
55
+ ] }),
56
+ /* @__PURE__ */ s("div", { className: e.card, children: [
57
+ /* @__PURE__ */ a("div", { className: e.cardIcon, children: /* @__PURE__ */ a(c, {}) }),
58
+ /* @__PURE__ */ a("h3", { className: e.cardTitle, children: "Generate Images with Azure OpenAI" }),
59
+ /* @__PURE__ */ a("p", { className: e.cardDescription, children: "Deploy image generation models in Foundry playground. Includes code samples for quick integration." })
60
+ ] })
61
+ ] })
62
+ ] }),
63
+ /* @__PURE__ */ s("section", { className: e.exploreSection, children: [
64
+ /* @__PURE__ */ a("h2", { className: e.sectionTitle, children: "Explore models from popular providers" }),
65
+ /* @__PURE__ */ s("div", { className: e.modelCardsContainer, children: [
66
+ /* @__PURE__ */ s("div", { className: e.modelCard, children: [
67
+ /* @__PURE__ */ a("div", { className: e.modelIcon, children: /* @__PURE__ */ a("img", { src: "https://mintlify-assets.b-cdn.net/azure-ai-foundry/Open%20AI%20logo.svg", alt: "OpenAI" }) }),
68
+ /* @__PURE__ */ a("h3", { className: e.modelTitle, children: "GPT-5" }),
69
+ /* @__PURE__ */ a("p", { className: e.modelDescription, children: "GPT-5 unifies frontier reasoning and advanced coding with high-performance" }),
70
+ /* @__PURE__ */ a("button", { className: e.modelButton, children: "Check out model" })
71
+ ] }),
72
+ /* @__PURE__ */ s("div", { className: e.modelCard, children: [
73
+ /* @__PURE__ */ a("div", { className: e.modelIcon, children: /* @__PURE__ */ a("img", { src: "https://mintlify-assets.b-cdn.net/azure-ai-foundry/DeepSeek.svg", alt: "DeepSeek" }) }),
74
+ /* @__PURE__ */ a("h3", { className: e.modelTitle, children: "Introducing DeepSeek-R1-0528" }),
75
+ /* @__PURE__ */ a("p", { className: e.modelDescription, children: "Improved reasoning, fewer hallucinations, better coding and functions" }),
76
+ /* @__PURE__ */ a("button", { className: e.modelButton, children: "Check out model" })
77
+ ] }),
78
+ /* @__PURE__ */ s("div", { className: e.modelCard, children: [
79
+ /* @__PURE__ */ a("div", { className: e.modelIcon, children: /* @__PURE__ */ a("img", { src: "https://mintlify-assets.b-cdn.net/azure-ai-foundry/Open%20AI%20logo.svg", alt: "Sora" }) }),
80
+ /* @__PURE__ */ a("h3", { className: e.modelTitle, children: "Sora" }),
81
+ /* @__PURE__ */ a("p", { className: e.modelDescription, children: "Generate up to 20s 1080p videos with Sora and its unique API: text-to-video now, image..." }),
82
+ /* @__PURE__ */ a("button", { className: e.modelButton, children: "Check out model" })
83
+ ] })
84
+ ] })
85
+ ] }),
86
+ /* @__PURE__ */ s("section", { className: e.footerSection, children: [
87
+ /* @__PURE__ */ s("div", { className: e.footerItem, children: [
88
+ /* @__PURE__ */ s("div", { className: e.footerIcon, children: [
89
+ /* @__PURE__ */ a(
90
+ "img",
91
+ {
92
+ className: e.footerIconLight,
93
+ src: "https://mintlify-assets.b-cdn.net/azure-ai-foundry/Github.svg",
94
+ alt: "GitHub"
95
+ }
96
+ ),
97
+ /* @__PURE__ */ a(
98
+ "img",
99
+ {
100
+ className: e.footerIconDark,
101
+ src: "https://mintlify-assets.b-cdn.net/azure-ai-foundry/Github-dark.svg",
102
+ alt: "GitHub"
103
+ }
104
+ )
105
+ ] }),
106
+ /* @__PURE__ */ s("a", { href: "https://github.com", className: e.footerLink, target: "_blank", rel: "noopener noreferrer", children: [
107
+ "GitHub",
108
+ /* @__PURE__ */ s("div", { className: e.externalIcon, children: [
109
+ /* @__PURE__ */ a("img", { className: e.externalIconLight, src: "https://mintlify-assets.b-cdn.net/azure-ai-foundry/Open.svg" }),
110
+ /* @__PURE__ */ a("img", { className: e.externalIconDark, src: "https://mintlify-assets.b-cdn.net/azure-ai-foundry/Open%20(1).svg" })
111
+ ] })
112
+ ] }),
113
+ /* @__PURE__ */ s("p", { className: e.footerDescription, children: [
114
+ "Get the latest SDK updates and ",
115
+ /* @__PURE__ */ a("br", {}),
116
+ " code samples on GitHub."
117
+ ] })
118
+ ] }),
119
+ /* @__PURE__ */ s("div", { className: e.footerItem, children: [
120
+ /* @__PURE__ */ s("div", { className: e.footerIcon, children: [
121
+ /* @__PURE__ */ a(
122
+ "img",
123
+ {
124
+ className: e.footerIconLight,
125
+ src: "https://mintlify-assets.b-cdn.net/azure-ai-foundry/Discord_Light.svg",
126
+ alt: "Discord"
127
+ }
128
+ ),
129
+ /* @__PURE__ */ a(
130
+ "img",
131
+ {
132
+ className: e.footerIconDark,
133
+ src: "https://mintlify-assets.b-cdn.net/azure-ai-foundry/Discord_Dark.svg",
134
+ alt: "Discord"
135
+ }
136
+ )
137
+ ] }),
138
+ /* @__PURE__ */ s("a", { href: "https://discord.com", className: e.footerLink, target: "_blank", rel: "noopener noreferrer", children: [
139
+ "Discord",
140
+ /* @__PURE__ */ s("div", { className: e.externalIcon, children: [
141
+ /* @__PURE__ */ a("img", { className: e.externalIconLight, src: "https://mintlify-assets.b-cdn.net/azure-ai-foundry/Open.svg" }),
142
+ /* @__PURE__ */ a("img", { className: e.externalIconDark, src: "https://mintlify-assets.b-cdn.net/azure-ai-foundry/Open%20(1).svg" })
143
+ ] })
144
+ ] }),
145
+ /* @__PURE__ */ s("p", { className: e.footerDescription, children: [
146
+ "Have questions? Join and connect ",
147
+ /* @__PURE__ */ a("br", {}),
148
+ " with our Discord community."
149
+ ] })
150
+ ] })
151
+ ] })
152
+ ] });
153
+ export {
154
+ d as Home
155
+ };
156
+ //# sourceMappingURL=home.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"home.js","sources":["../../../src/components/content-components/home.tsx"],"sourcesContent":["import React from 'react';\nimport styles from './home.module.css';\nimport { AgentsRegular,\n FlowSparkleRegular,\n ChatSparkleRegular,\n DatabaseRegular,\n } from '@fluentui/react-icons';\n\nexport const Home = () => {\n return (\n <div className={styles.homeContainer}>\n {/* Foundry quick start section */}\n <section className={styles.heroSection}>\n <div\n className={`${styles.heroBackground} ${styles.heroBackgroundLight}`}\n style={{\n backgroundImage: 'url(https://mintlify-assets.b-cdn.net/azure-ai-foundry/landing-background-light.svg)',\n height: '24rem'\n }}\n />\n <div\n className={`${styles.heroBackground} ${styles.heroBackgroundDark}`}\n style={{\n backgroundImage: 'url(https://mintlify-assets.b-cdn.net/azure-ai-foundry/landing-background-dark.svg)',\n height: '24rem'\n }}\n />\n <div className={styles.heroContent}>\n <h1 className={styles.heroTitle}>Foundry quick start</h1>\n <p className={styles.heroDescription}>\n Learn how to get started with Azure AI Foundry by <br /> creating a project, deploying a model, and running <br /> your first chat completion.\n </p>\n <button className={styles.heroButton}>Get started</button>\n </div>\n </section>\n\n {/* Learn more section */}\n <section className={styles.learnSection}>\n <h2 className={styles.sectionTitle}>Learn more</h2>\n <div className={styles.cardsGrid}>\n <div className={styles.card}>\n <div className={styles.cardIcon}><FlowSparkleRegular /></div>\n <h3 className={styles.cardTitle}>Build your first AI app</h3>\n <p className={styles.cardDescription}>\n Create a Foundry project and deploy a model. Includes SDK samples for multiple programming languages.\n </p>\n </div>\n \n <div className={styles.card}>\n <div className={styles.cardIcon}><ChatSparkleRegular /></div>\n <h3 className={styles.cardTitle}>Get answers in chat playground</h3>\n <p className={styles.cardDescription}>\n Interact with deployed models in the playground. Configure prompts and test responses in a no-code UI.\n </p>\n </div>\n \n <div className={styles.card}>\n <div className={styles.cardIcon}><AgentsRegular /></div>\n <h3 className={styles.cardTitle}>Develop an AI agent</h3>\n <p className={styles.cardDescription}>\n Launch image generation models in Foundry playground. Easily integrate with code samples.\n </p>\n </div>\n \n <div className={styles.card}>\n <div className={styles.cardIcon}><DatabaseRegular /></div>\n <h3 className={styles.cardTitle}>Generate Images with Azure OpenAI</h3>\n <p className={styles.cardDescription}>\n Deploy image generation models in Foundry playground. Includes code samples for quick integration.\n </p>\n </div>\n </div>\n </section>\n\n {/* Explore models section */}\n <section className={styles.exploreSection}>\n <h2 className={styles.sectionTitle}>Explore models from popular providers</h2>\n <div className={styles.modelCardsContainer}>\n <div className={styles.modelCard}>\n <div className={styles.modelIcon}><img src=\"https://mintlify-assets.b-cdn.net/azure-ai-foundry/Open%20AI%20logo.svg\" alt=\"OpenAI\" /></div>\n <h3 className={styles.modelTitle}>GPT-5</h3>\n <p className={styles.modelDescription}>\n GPT-5 unifies frontier reasoning and advanced coding with high-performance\n </p>\n <button className={styles.modelButton}>Check out model</button>\n </div>\n\n <div className={styles.modelCard}>\n <div className={styles.modelIcon}><img src=\"https://mintlify-assets.b-cdn.net/azure-ai-foundry/DeepSeek.svg\" alt=\"DeepSeek\" /></div>\n <h3 className={styles.modelTitle}>Introducing DeepSeek-R1-0528</h3>\n <p className={styles.modelDescription}>\n Improved reasoning, fewer hallucinations, better coding and functions\n </p>\n <button className={styles.modelButton}>Check out model</button>\n </div>\n\n <div className={styles.modelCard}>\n <div className={styles.modelIcon}><img src=\"https://mintlify-assets.b-cdn.net/azure-ai-foundry/Open%20AI%20logo.svg\" alt=\"Sora\" /></div>\n <h3 className={styles.modelTitle}>Sora</h3>\n <p className={styles.modelDescription}>\n Generate up to 20s 1080p videos with Sora and its unique API: text-to-video now, image...\n </p>\n <button className={styles.modelButton}>Check out model</button>\n </div>\n </div>\n </section>\n\n {/* Footer section */}\n <section className={styles.footerSection}>\n <div className={styles.footerItem}>\n <div className={styles.footerIcon}>\n <img \n className={styles.footerIconLight} \n src=\"https://mintlify-assets.b-cdn.net/azure-ai-foundry/Github.svg\" \n alt=\"GitHub\" \n />\n <img \n className={styles.footerIconDark} \n src=\"https://mintlify-assets.b-cdn.net/azure-ai-foundry/Github-dark.svg\" \n alt=\"GitHub\" \n />\n </div>\n <a href=\"https://github.com\" className={styles.footerLink} target=\"_blank\" rel=\"noopener noreferrer\">\n GitHub\n <div className={styles.externalIcon}>\n <img className={styles.externalIconLight} src=\"https://mintlify-assets.b-cdn.net/azure-ai-foundry/Open.svg\" />\n <img className={styles.externalIconDark} src=\"https://mintlify-assets.b-cdn.net/azure-ai-foundry/Open%20(1).svg\" />\n </div>\n </a>\n <p className={styles.footerDescription}>Get the latest SDK updates and <br /> code samples on GitHub.</p>\n </div>\n <div className={styles.footerItem}>\n <div className={styles.footerIcon}>\n <img \n className={styles.footerIconLight} \n src=\"https://mintlify-assets.b-cdn.net/azure-ai-foundry/Discord_Light.svg\" \n alt=\"Discord\" \n />\n <img \n className={styles.footerIconDark} \n src=\"https://mintlify-assets.b-cdn.net/azure-ai-foundry/Discord_Dark.svg\" \n alt=\"Discord\" \n />\n </div>\n <a href=\"https://discord.com\" className={styles.footerLink} target=\"_blank\" rel=\"noopener noreferrer\">\n Discord\n <div className={styles.externalIcon}>\n <img className={styles.externalIconLight} src=\"https://mintlify-assets.b-cdn.net/azure-ai-foundry/Open.svg\" />\n <img className={styles.externalIconDark} src=\"https://mintlify-assets.b-cdn.net/azure-ai-foundry/Open%20(1).svg\" />\n </div>\n </a>\n <p className={styles.footerDescription}>Have questions? Join and connect <br /> with our Discord community.</p>\n </div>\n </section>\n </div>\n );\n};\n\n"],"names":["Home","jsxs","styles","jsx","FlowSparkleR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", c = "_heroContent_jdam0_86", _ = "_heroTitle_jdam0_98", a = "_heroDescription_jdam0_110", d = "_heroButton_jdam0_121", i = "_learnSection_jdam0_139", s = "_sectionTitle_jdam0_149", m = "_cardsGrid_jdam0_164", l = "_card_jdam0_164", h = "_cardIcon_jdam0_198", j = "_cardTitle_jdam0_219", I = "_cardDescription_jdam0_231", f = "_exploreSection_jdam0_244", k = "_modelCardsContainer_jdam0_253", D = "_modelCard_jdam0_253", g = "_modelIcon_jdam0_285", p = "_modelTitle_jdam0_308", u = "_modelDescription_jdam0_321", B = "_modelButton_jdam0_333", C = "_footerSection_jdam0_376", x = "_footerItem_jdam0_387", L = "_footerIcon_jdam0_394", S = "_footerIconLight_jdam0_406", T = "_footerIconDark_jdam0_414", G = "_footerLink_jdam0_422", y = "_externalIconLight_jdam0_435", b = "_externalIconDark_jdam0_443", q = "_externalIcon_jdam0_435", v = "_footerDescription_jdam0_478", w = {
2
+ homeContainer: o,
3
+ heroSection: e,
4
+ heroBackground: t,
5
+ heroBackgroundLight: n,
6
+ heroBackgroundDark: r,
7
+ heroContent: c,
8
+ heroTitle: _,
9
+ heroDescription: a,
10
+ heroButton: d,
11
+ learnSection: i,
12
+ sectionTitle: s,
13
+ cardsGrid: m,
14
+ card: l,
15
+ cardIcon: h,
16
+ cardTitle: j,
17
+ cardDescription: I,
18
+ exploreSection: f,
19
+ modelCardsContainer: k,
20
+ modelCard: D,
21
+ modelIcon: g,
22
+ modelTitle: p,
23
+ modelDescription: u,
24
+ modelButton: B,
25
+ footerSection: C,
26
+ footerItem: x,
27
+ footerIcon: L,
28
+ footerIconLight: S,
29
+ footerIconDark: T,
30
+ footerLink: G,
31
+ externalIconLight: y,
32
+ externalIconDark: b,
33
+ externalIcon: q,
34
+ footerDescription: v
35
+ };
36
+ export {
37
+ l as card,
38
+ I as cardDescription,
39
+ h as cardIcon,
40
+ j as cardTitle,
41
+ m as cardsGrid,
42
+ w as default,
43
+ f as exploreSection,
44
+ q as externalIcon,
45
+ b as externalIconDark,
46
+ y as externalIconLight,
47
+ v as footerDescription,
48
+ L as footerIcon,
49
+ T as footerIconDark,
50
+ S as footerIconLight,
51
+ x as footerItem,
52
+ G as footerLink,
53
+ C as footerSection,
54
+ t as heroBackground,
55
+ r as heroBackgroundDark,
56
+ n as heroBackgroundLight,
57
+ d as heroButton,
58
+ c as heroContent,
59
+ a as heroDescription,
60
+ e as heroSection,
61
+ _ as heroTitle,
62
+ o as homeContainer,
63
+ i as learnSection,
64
+ B as modelButton,
65
+ D as modelCard,
66
+ k as modelCardsContainer,
67
+ u as modelDescription,
68
+ g as modelIcon,
69
+ p as modelTitle,
70
+ s as sectionTitle
71
+ };
72
+ //# sourceMappingURL=home.module.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"home.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,44 +1,82 @@
1
- import { jsxs as i, jsx as n } from "react/jsx-runtime";
2
- import { useState as $ } from "react";
3
- import { DropdownMenu as N } from "./dropdown-menu.js";
4
- import r from "./nav-tree.module.css.js";
1
+ import { jsxs as o, jsx as r } from "react/jsx-runtime";
2
+ import { useState as m } from "react";
3
+ import e from "./nav-tree.module.css.js";
5
4
  /* empty css */
6
- function p({ item: e, activeId: c, level: a = 0 }) {
7
- const d = a === 0 ? !0 : e.expanded ?? !1, [l, u] = $(d), o = e.children && e.children.length > 0, h = o && !e.href, f = e.href && c === e.href, m = e.icon;
8
- return h && a === 0 ? /* @__PURE__ */ i("div", { className: r.group, role: "group", "aria-label": e.toc_title, children: [
9
- /* @__PURE__ */ i("div", { className: r.groupHeader, children: [
10
- m && /* @__PURE__ */ n(m, { className: r.groupIcon, "aria-hidden": "true" }),
11
- /* @__PURE__ */ n("span", { children: e.toc_title })
5
+ function g() {
6
+ return /* @__PURE__ */ o("div", { className: e.externalIcon, children: [
7
+ /* @__PURE__ */ r(
8
+ "svg",
9
+ {
10
+ className: e.externalIconLight,
11
+ width: "12",
12
+ height: "12",
13
+ viewBox: "0 0 12 12",
14
+ fill: "none",
15
+ xmlns: "http://www.w3.org/2000/svg",
16
+ children: /* @__PURE__ */ r(
17
+ "path",
18
+ {
19
+ d: "M2.49999 1C1.67157 1 0.999995 1.67157 0.999995 2.5V9.5C0.999995 10.3284 1.67157 11 2.49999 11H9.49996C10.3284 11 10.9999 10.3284 10.9999 9.5V7.26923C10.9999 6.99309 11.2238 6.76923 11.4999 6.76923C11.7761 6.76923 11.9999 6.99309 11.9999 7.26923V9.5C11.9999 10.8807 10.8807 12 9.49996 12H2.49999C1.11928 12 0 10.8807 0 9.5V2.5C0 1.11929 1.11928 0 2.49999 0H4.73075C5.00689 0 5.23074 0.223858 5.23074 0.5C5.23074 0.776142 5.00689 1 4.73075 1H2.49999ZM6.76926 0.5C6.76926 0.223858 6.99311 0 7.26925 0H11.5C11.7761 0 12 0.223858 12 0.5V4.73077C12 5.00691 11.7761 5.23077 11.5 5.23077C11.2239 5.23077 11 5.00691 11 4.73077V1.70711L7.6228 5.08433C7.42754 5.27959 7.11096 5.27959 6.9157 5.08433C6.72044 4.88906 6.72044 4.57248 6.9157 4.37722L10.2929 1H7.26925C6.99311 1 6.76926 0.776142 6.76926 0.5Z",
20
+ fill: "#707070"
21
+ }
22
+ )
23
+ }
24
+ ),
25
+ /* @__PURE__ */ r(
26
+ "svg",
27
+ {
28
+ className: e.externalIconDark,
29
+ width: "12",
30
+ height: "12",
31
+ viewBox: "0 0 12 12",
32
+ fill: "none",
33
+ xmlns: "http://www.w3.org/2000/svg",
34
+ children: /* @__PURE__ */ r(
35
+ "path",
36
+ {
37
+ d: "M2.49999 1C1.67157 1 0.999995 1.67157 0.999995 2.5V9.5C0.999995 10.3284 1.67157 11 2.49999 11H9.49996C10.3284 11 10.9999 10.3284 10.9999 9.5V7.26923C10.9999 6.99309 11.2238 6.76923 11.4999 6.76923C11.7761 6.76923 11.9999 6.99309 11.9999 7.26923V9.5C11.9999 10.8807 10.8807 12 9.49996 12H2.49999C1.11928 12 0 10.8807 0 9.5V2.5C0 1.11929 1.11928 0 2.49999 0H4.73075C5.00689 0 5.23074 0.223858 5.23074 0.5C5.23074 0.776142 5.00689 1 4.73075 1H2.49999ZM6.76926 0.5C6.76926 0.223858 6.99311 0 7.26925 0H11.5C11.7761 0 12 0.223858 12 0.5V4.73077C12 5.00691 11.7761 5.23077 11.5 5.23077C11.2239 5.23077 11 5.00691 11 4.73077V1.70711L7.6228 5.08433C7.42754 5.27959 7.11096 5.27959 6.9157 5.08433C6.72044 4.88906 6.72044 4.57248 6.9157 4.37722L10.2929 1H7.26925C6.99311 1 6.76926 0.776142 6.76926 0.5Z",
38
+ fill: "#999999"
39
+ }
40
+ )
41
+ }
42
+ )
43
+ ] });
44
+ }
45
+ function p({ item: n, activeId: c, level: s = 0 }) {
46
+ const f = s === 0 ? !0 : n.expanded ?? !1, [i, u] = m(f), l = n.children && n.children.length > 0, a = l && !n.href, d = n.href && c === n.href, C = n.icon;
47
+ return a && s === 0 ? /* @__PURE__ */ o("div", { className: e.group, role: "group", "aria-label": n.toc_title, children: [
48
+ /* @__PURE__ */ o("div", { className: e.groupHeader, children: [
49
+ C && /* @__PURE__ */ r(C, { className: e.groupIcon, "aria-hidden": "true" }),
50
+ /* @__PURE__ */ r("span", { children: n.toc_title })
12
51
  ] }),
13
- o && e.children && /* @__PURE__ */ n("ul", { className: r.list, role: "list", children: e.children.map((s, t) => /* @__PURE__ */ n(
52
+ l && n.children && /* @__PURE__ */ r("ul", { className: e.list, role: "list", children: n.children.map((t, h) => /* @__PURE__ */ r(
14
53
  p,
15
54
  {
16
- item: s,
55
+ item: t,
17
56
  activeId: c,
18
- level: a + 1
57
+ level: s + 1
19
58
  },
20
- `${s.href}-${t}`
59
+ `${t.href}-${h}`
21
60
  )) })
22
- ] }) : h && a > 0 ? /* @__PURE__ */ i("li", { className: r.listItem, children: [
23
- /* @__PURE__ */ i(
61
+ ] }) : a && s > 0 ? /* @__PURE__ */ o("li", { className: e.listItem, children: [
62
+ /* @__PURE__ */ o(
24
63
  "button",
25
64
  {
26
- onClick: () => u(!l),
27
- "aria-expanded": l,
28
- "aria-label": `${l ? "Collapse" : "Expand"} ${e.toc_title} section`,
29
- className: r.expandButton,
65
+ onClick: () => u(!i),
66
+ "aria-expanded": i,
67
+ "aria-label": `${i ? "Collapse" : "Expand"} ${n.toc_title} section`,
68
+ className: e.expandButton,
30
69
  children: [
31
- /* @__PURE__ */ n("div", { className: r.hoverIndicator }),
32
- /* @__PURE__ */ n("span", { children: e.toc_title }),
33
- /* @__PURE__ */ n(
70
+ /* @__PURE__ */ r("span", { children: n.toc_title }),
71
+ /* @__PURE__ */ r(
34
72
  "svg",
35
73
  {
36
- className: `${r.chevron} ${l ? r.chevronExpanded : r.chevronCollapsed}`,
74
+ className: `${e.chevron} ${i ? e.chevronExpanded : e.chevronCollapsed}`,
37
75
  fill: "none",
38
76
  stroke: "currentColor",
39
77
  viewBox: "0 0 24 24",
40
78
  "aria-hidden": "true",
41
- children: /* @__PURE__ */ n(
79
+ children: /* @__PURE__ */ r(
42
80
  "path",
43
81
  {
44
82
  strokeLinecap: "round",
@@ -52,75 +90,85 @@ function p({ item: e, activeId: c, level: a = 0 }) {
52
90
  ]
53
91
  }
54
92
  ),
55
- o && l && e.children && /* @__PURE__ */ n("ul", { className: r.nestedList, role: "group", children: e.children.map((s, t) => /* @__PURE__ */ n(
93
+ l && i && n.children && /* @__PURE__ */ r("ul", { className: e.nestedList, role: "group", children: n.children.map((t, h) => /* @__PURE__ */ r(
56
94
  p,
57
95
  {
58
- item: s,
96
+ item: t,
59
97
  activeId: c,
60
- level: a + 1
98
+ level: s + 1
61
99
  },
62
- `${s.href}-${t}`
100
+ `${t.href}-${h}`
63
101
  )) })
64
- ] }) : /* @__PURE__ */ i("li", { className: r.listItem, children: [
65
- /* @__PURE__ */ i(
102
+ ] }) : /* @__PURE__ */ o("li", { className: e.listItem, children: [
103
+ /* @__PURE__ */ r(
66
104
  "a",
67
105
  {
68
- href: e.href,
69
- "aria-current": f ? "page" : void 0,
70
- className: `${r.link} ${f ? r.linkActive : ""}`,
71
- children: [
72
- /* @__PURE__ */ n("div", { className: r.hoverIndicator }),
73
- e.toc_title
74
- ]
106
+ href: n.href,
107
+ "aria-current": d ? "page" : void 0,
108
+ className: `${e.link} ${d ? e.linkActive : ""}`,
109
+ children: n.toc_title
75
110
  }
76
111
  ),
77
- o && l && e.children && /* @__PURE__ */ n("ul", { className: r.nestedList, role: "group", children: e.children.map((s, t) => /* @__PURE__ */ n(
112
+ l && i && n.children && /* @__PURE__ */ r("ul", { className: e.nestedList, role: "group", children: n.children.map((t, h) => /* @__PURE__ */ r(
78
113
  p,
79
114
  {
80
- item: s,
115
+ item: t,
81
116
  activeId: c,
82
- level: a + 1
117
+ level: s + 1
83
118
  },
84
- `${s.href}-${t}`
119
+ `${t.href}-${h}`
85
120
  )) })
86
121
  ] });
87
122
  }
88
- function E({
89
- navTree: e,
123
+ function w({
124
+ navTree: n,
90
125
  activeId: c,
91
- className: a = "",
92
- dropdown: d,
93
- activeHref: l,
94
- theme: u
126
+ className: s = "",
127
+ dropdown: f,
128
+ activeHref: i,
129
+ theme: u,
130
+ bottomLinks: l
95
131
  }) {
96
- return !e || e.items.length === 0 ? null : /* @__PURE__ */ i(
132
+ return !n || n.items.length === 0 ? null : (console.log("bottomLinks", l), /* @__PURE__ */ o(
97
133
  "nav",
98
134
  {
99
- className: `${r.nav} ${a} ${u === "dark" ? "dark" : ""}`,
135
+ className: `${e.nav} ${s} ${u === "dark" ? "dark" : ""}`,
100
136
  "aria-label": "Documentation navigation",
101
137
  children: [
102
- d && /* @__PURE__ */ n(
103
- N,
104
- {
105
- dropdown: d,
106
- activeHref: l,
107
- className: r.group
108
- }
109
- ),
110
- e.items.map((o, h) => /* @__PURE__ */ n(
138
+ /* @__PURE__ */ r("div", { className: e.navContent, children: n.items.map((a, d) => /* @__PURE__ */ r(
111
139
  p,
112
140
  {
113
- item: o,
141
+ item: a,
114
142
  activeId: c
115
143
  },
116
- `${o.href}-${h}`
117
- ))
144
+ `${a.href}-${d}`
145
+ )) }),
146
+ l && l.length > 0 && /* @__PURE__ */ o("div", { className: e.bottomSection, children: [
147
+ /* @__PURE__ */ r("div", { className: e.divider }),
148
+ /* @__PURE__ */ r("div", { className: e.bottomLinks, children: l.map((a, d) => {
149
+ const C = a.icon;
150
+ return /* @__PURE__ */ o(
151
+ "a",
152
+ {
153
+ href: a.href,
154
+ target: "_blank",
155
+ rel: "noopener noreferrer",
156
+ className: e.bottomLink,
157
+ children: [
158
+ /* @__PURE__ */ r(C, { className: e.bottomLinkIcon }),
159
+ /* @__PURE__ */ r("span", { children: a.label }),
160
+ /* @__PURE__ */ r(g, {})
161
+ ]
162
+ },
163
+ d
164
+ );
165
+ }) })
166
+ ] })
118
167
  ]
119
168
  }
120
- );
169
+ ));
121
170
  }
122
171
  export {
123
- N as DropdownMenu,
124
- E as NavTree
172
+ w as NavTree
125
173
  };
126
174
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/components/nav-tree/index.tsx"],"sourcesContent":["import React, { useState } from \"react\";\nimport type { NavItem, NavTreeData } from \"../../types\";\nimport { DropdownConfig, DropdownMenu } from \"./dropdown-menu\";\nimport styles from \"./nav-tree.module.css\";\nexport { DropdownMenu } from \"./dropdown-menu\";\nexport type { DropdownConfig, DropdownItem } from \"./dropdown-menu\";\nexport { MobileNavTree } from \"./mobile-nav\";\nexport type { MobileNavTreeProps } from \"./mobile-nav\";\nimport \"../../styles.css\";\n\ninterface NavTreeProps {\n navTree: NavTreeData;\n activeId?: string;\n className?: string;\n dropdown?: DropdownConfig;\n activeHref?: string;\n theme?: \"light\" | \"dark\" | \"system\";\n}\n\ninterface TreeItemProps {\n item: NavItem;\n activeId?: string;\n level?: number;\n}\n\nfunction TreeItemComponent({ item, activeId, level = 0 }: TreeItemProps) {\n const defaultExpanded = level === 0 ? true : item.expanded ?? false;\n const [isExpanded, setIsExpanded] = useState(defaultExpanded);\n const hasChildren = item.children && item.children.length > 0;\n const isGroup = hasChildren && !item.href;\n const isActive = item.href && activeId === item.href;\n const Icon = item.icon;\n\n if (isGroup && level === 0) {\n return (\n <div className={styles.group} role=\"group\" aria-label={item.toc_title}>\n <div className={styles.groupHeader}>\n {Icon && <Icon className={styles.groupIcon} aria-hidden=\"true\" />}\n <span>{item.toc_title}</span>\n </div>\n {hasChildren && item.children && (\n <ul className={styles.list} role=\"list\">\n {item.children.map((child, index) => (\n <TreeItemComponent\n key={`${child.href}-${index}`}\n item={child}\n activeId={activeId}\n level={level + 1}\n />\n ))}\n </ul>\n )}\n </div>\n );\n }\n\n if (isGroup && level > 0) {\n return (\n <li className={styles.listItem}>\n <button\n onClick={() => setIsExpanded(!isExpanded)}\n aria-expanded={isExpanded}\n aria-label={`${isExpanded ? \"Collapse\" : \"Expand\"} ${\n item.toc_title\n } section`}\n className={styles.expandButton}\n >\n <div className={styles.hoverIndicator} />\n <span>{item.toc_title}</span>\n <svg\n className={`${styles.chevron} ${\n isExpanded ? styles.chevronExpanded : styles.chevronCollapsed\n }`}\n fill=\"none\"\n stroke=\"currentColor\"\n viewBox=\"0 0 24 24\"\n aria-hidden=\"true\"\n >\n <path\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n strokeWidth={2}\n d=\"M9 5l7 7-7 7\"\n />\n </svg>\n </button>\n {hasChildren && isExpanded && item.children && (\n <ul className={styles.nestedList} role=\"group\">\n {item.children.map((child, index) => (\n <TreeItemComponent\n key={`${child.href}-${index}`}\n item={child}\n activeId={activeId}\n level={level + 1}\n />\n ))}\n </ul>\n )}\n </li>\n );\n }\n\n return (\n <li className={styles.listItem}>\n <a\n href={item.href}\n aria-current={isActive ? \"page\" : undefined}\n className={`${styles.link} ${isActive ? styles.linkActive : \"\"}`}\n >\n <div className={styles.hoverIndicator} />\n {item.toc_title}\n </a>\n {hasChildren && isExpanded && item.children && (\n <ul className={styles.nestedList} role=\"group\">\n {item.children.map((child, index) => (\n <TreeItemComponent\n key={`${child.href}-${index}`}\n item={child}\n activeId={activeId}\n level={level + 1}\n />\n ))}\n </ul>\n )}\n </li>\n );\n}\n\nexport function NavTree({\n navTree,\n activeId,\n className = \"\",\n dropdown,\n activeHref,\n theme,\n}: NavTreeProps) {\n if (!navTree || navTree.items.length === 0) {\n return null;\n }\n\n return (\n <nav\n className={`${styles.nav} ${className} ${theme === \"dark\" ? \"dark\" : \"\"}`}\n aria-label=\"Documentation navigation\"\n >\n {dropdown && (\n <DropdownMenu\n dropdown={dropdown}\n activeHref={activeHref}\n className={styles.group}\n />\n )}\n {navTree.items.map((item, index) => (\n <TreeItemComponent\n key={`${item.href}-${index}`}\n item={item}\n activeId={activeId}\n />\n ))}\n </nav>\n );\n}\n"],"names":["TreeItemComponent","item","activeId","level","defaultExpanded","isExpanded","setIsExpanded","useState","hasChildren","isGroup","isActive","Icon","jsxs","styles","jsx","child","index","NavTree","navTree","className","dropdown","activeHref","theme","DropdownMenu"],"mappings":";;;;;AAyBA,SAASA,EAAkB,EAAE,MAAAC,GAAM,UAAAC,GAAU,OAAAC,IAAQ,KAAoB;AACvE,QAAMC,IAAkBD,MAAU,IAAI,KAAOF,EAAK,YAAY,IACxD,CAACI,GAAYC,CAAa,IAAIC,EAASH,CAAe,GACtDI,IAAcP,EAAK,YAAYA,EAAK,SAAS,SAAS,GACtDQ,IAAUD,KAAe,CAACP,EAAK,MAC/BS,IAAWT,EAAK,QAAQC,MAAaD,EAAK,MAC1CU,IAAOV,EAAK;AAElB,SAAIQ,KAAWN,MAAU,IAErB,gBAAAS,EAAC,SAAI,WAAWC,EAAO,OAAO,MAAK,SAAQ,cAAYZ,EAAK,WAC1D,UAAA;AAAA,IAAA,gBAAAW,EAAC,OAAA,EAAI,WAAWC,EAAO,aACpB,UAAA;AAAA,MAAAF,uBAASA,GAAA,EAAK,WAAWE,EAAO,WAAW,eAAY,QAAO;AAAA,MAC/D,gBAA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MAAM,WAAW,IAChC,OAIP,gBAAAN;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAW,GAAGC,EAAO,GAAG,IAAIM,CAAS,IAAIG,MAAU,SAAS,SAAS,EAAE;AAAA,MACvE,cAAW;AAAA,MAEV,UAAA;AAAA,QAAAF,KACC,gBAAAN;AAAA,UAACS;AAAA,UAAA;AAAA,YACC,UAAAH;AAAA,YACA,YAAAC;AAAA,YACA,WAAWR,EAAO;AAAA,UAAA;AAAA,QAAA;AAAA,QAGrBK,EAAQ,MAAM,IAAI,CAACjB,GAAMe,MACxB,gBAAAF;AAAA,UAACd;AAAA,UAAA;AAAA,YAEC,MAAAC;AAAA,YACA,UAAAC;AAAA,UAAA;AAAA,UAFK,GAAGD,EAAK,IAAI,IAAIe,CAAK;AAAA,QAAA,CAI7B;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGP;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/nav-tree/index.tsx"],"sourcesContent":["import React, { useState } from \"react\";\nimport type { NavItem, NavTreeData } from \"../../types\";\nimport { DropdownConfig } from \"./dropdown-menu\";\nimport styles from \"./nav-tree.module.css\";\nexport { DropdownMenu } from \"./dropdown-menu\";\nexport type { DropdownConfig, DropdownItem } from \"./dropdown-menu\";\nexport { MobileNavTree } from \"./mobile-nav\";\nexport type { MobileNavTreeProps } from \"./mobile-nav\";\nimport \"../../styles.css\";\n\nexport interface BottomLinkConfig {\n href: string;\n label: string;\n icon: React.ComponentType<{ className?: string }>;\n}\n\ninterface NavTreeProps {\n navTree: NavTreeData;\n activeId?: string;\n className?: string;\n dropdown?: DropdownConfig;\n activeHref?: string;\n theme?: \"light\" | \"dark\" | \"system\";\n bottomLinks?: BottomLinkConfig[];\n}\n\ninterface TreeItemProps {\n item: NavItem;\n activeId?: string;\n level?: number;\n}\n\nfunction ExternalIcon() {\n return (\n <div className={styles.externalIcon}>\n <svg\n className={styles.externalIconLight}\n width=\"12\"\n height=\"12\"\n viewBox=\"0 0 12 12\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M2.49999 1C1.67157 1 0.999995 1.67157 0.999995 2.5V9.5C0.999995 10.3284 1.67157 11 2.49999 11H9.49996C10.3284 11 10.9999 10.3284 10.9999 9.5V7.26923C10.9999 6.99309 11.2238 6.76923 11.4999 6.76923C11.7761 6.76923 11.9999 6.99309 11.9999 7.26923V9.5C11.9999 10.8807 10.8807 12 9.49996 12H2.49999C1.11928 12 0 10.8807 0 9.5V2.5C0 1.11929 1.11928 0 2.49999 0H4.73075C5.00689 0 5.23074 0.223858 5.23074 0.5C5.23074 0.776142 5.00689 1 4.73075 1H2.49999ZM6.76926 0.5C6.76926 0.223858 6.99311 0 7.26925 0H11.5C11.7761 0 12 0.223858 12 0.5V4.73077C12 5.00691 11.7761 5.23077 11.5 5.23077C11.2239 5.23077 11 5.00691 11 4.73077V1.70711L7.6228 5.08433C7.42754 5.27959 7.11096 5.27959 6.9157 5.08433C6.72044 4.88906 6.72044 4.57248 6.9157 4.37722L10.2929 1H7.26925C6.99311 1 6.76926 0.776142 6.76926 0.5Z\"\n fill=\"#707070\"\n />\n </svg>\n <svg\n className={styles.externalIconDark}\n width=\"12\"\n height=\"12\"\n viewBox=\"0 0 12 12\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M2.49999 1C1.67157 1 0.999995 1.67157 0.999995 2.5V9.5C0.999995 10.3284 1.67157 11 2.49999 11H9.49996C10.3284 11 10.9999 10.3284 10.9999 9.5V7.26923C10.9999 6.99309 11.2238 6.76923 11.4999 6.76923C11.7761 6.76923 11.9999 6.99309 11.9999 7.26923V9.5C11.9999 10.8807 10.8807 12 9.49996 12H2.49999C1.11928 12 0 10.8807 0 9.5V2.5C0 1.11929 1.11928 0 2.49999 0H4.73075C5.00689 0 5.23074 0.223858 5.23074 0.5C5.23074 0.776142 5.00689 1 4.73075 1H2.49999ZM6.76926 0.5C6.76926 0.223858 6.99311 0 7.26925 0H11.5C11.7761 0 12 0.223858 12 0.5V4.73077C12 5.00691 11.7761 5.23077 11.5 5.23077C11.2239 5.23077 11 5.00691 11 4.73077V1.70711L7.6228 5.08433C7.42754 5.27959 7.11096 5.27959 6.9157 5.08433C6.72044 4.88906 6.72044 4.57248 6.9157 4.37722L10.2929 1H7.26925C6.99311 1 6.76926 0.776142 6.76926 0.5Z\"\n fill=\"#999999\"\n />\n </svg>\n </div>\n );\n}\n\nfunction TreeItemComponent({ item, activeId, level = 0 }: TreeItemProps) {\n const defaultExpanded = level === 0 ? true : item.expanded ?? false;\n const [isExpanded, setIsExpanded] = useState(defaultExpanded);\n const hasChildren = item.children && item.children.length > 0;\n const isGroup = hasChildren && !item.href;\n const isActive = item.href && activeId === item.href;\n const Icon = item.icon;\n\n if (isGroup && level === 0) {\n return (\n <div className={styles.group} role=\"group\" aria-label={item.toc_title}>\n <div className={styles.groupHeader}>\n {Icon && <Icon className={styles.groupIcon} aria-hidden=\"true\" />}\n <span>{item.toc_title}</span>\n </div>\n {hasChildren && item.children && (\n <ul className={styles.list} role=\"list\">\n {item.children.map((child, index) => (\n <TreeItemComponent\n key={`${child.href}-${index}`}\n item={child}\n activeId={activeId}\n level={level + 1}\n />\n ))}\n </ul>\n )}\n </div>\n );\n }\n\n if (isGroup && level > 0) {\n return (\n <li className={styles.listItem}>\n <button\n onClick={() => setIsExpanded(!isExpanded)}\n aria-expanded={isExpanded}\n aria-label={`${isExpanded ? \"Collapse\" : \"Expand\"} ${\n item.toc_title\n } section`}\n className={styles.expandButton}\n >\n <span>{item.toc_title}</span>\n <svg\n className={`${styles.chevron} ${\n isExpanded ? styles.chevronExpanded : styles.chevronCollapsed\n }`}\n fill=\"none\"\n stroke=\"currentColor\"\n viewBox=\"0 0 24 24\"\n aria-hidden=\"true\"\n >\n <path\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n strokeWidth={2}\n d=\"M9 5l7 7-7 7\"\n />\n </svg>\n </button>\n {hasChildren && isExpanded && item.children && (\n <ul className={styles.nestedList} role=\"group\">\n {item.children.map((child, index) => (\n <TreeItemComponent\n key={`${child.href}-${index}`}\n item={child}\n activeId={activeId}\n level={level + 1}\n />\n ))}\n </ul>\n )}\n </li>\n );\n }\n\n return (\n <li className={styles.listItem}>\n <a\n href={item.href}\n aria-current={isActive ? \"page\" : undefined}\n className={`${styles.link} ${isActive ? styles.linkActive : \"\"}`}\n >\n {item.toc_title}\n </a>\n {hasChildren && isExpanded && item.children && (\n <ul className={styles.nestedList} role=\"group\">\n {item.children.map((child, index) => (\n <TreeItemComponent\n key={`${child.href}-${index}`}\n item={child}\n activeId={activeId}\n level={level + 1}\n />\n ))}\n </ul>\n )}\n </li>\n );\n}\n\nexport function NavTree({\n navTree,\n activeId,\n className = \"\",\n dropdown,\n activeHref,\n theme,\n bottomLinks,\n}: NavTreeProps) {\n if (!navTree || navTree.items.length === 0) {\n return null;\n }\n\n console.log(\"bottomLinks\", bottomLinks);\n\n return (\n <nav\n className={`${styles.nav} ${className} ${theme === \"dark\" ? \"dark\" : \"\"}`}\n aria-label=\"Documentation navigation\"\n >\n <div className={styles.navContent}>\n {/* {dropdown && (\n <DropdownMenu\n dropdown={dropdown}\n activeHref={activeHref}\n className={styles.group}\n />\n )} */}\n {navTree.items.map((item, index) => (\n <TreeItemComponent\n key={`${item.href}-${index}`}\n item={item}\n activeId={activeId}\n />\n ))}\n </div>\n {bottomLinks && bottomLinks.length > 0 && (\n <div className={styles.bottomSection}>\n <div className={styles.divider}></div>\n <div className={styles.bottomLinks}>\n {bottomLinks.map((link, index) => {\n const Icon = link.icon;\n return (\n <a\n key={index}\n href={link.href}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className={styles.bottomLink}\n >\n <Icon className={styles.bottomLinkIcon} />\n <span>{link.label}</span>\n <ExternalIcon />\n </a>\n );\n })}\n </div>\n </div>\n )}\n </nav>\n );\n}\n"],"names":["ExternalIcon","jsxs","styles","jsx","TreeItemComponent","item","activeId","level","defaultExpanded","isExpanded","setIsExpanded","useState","hasChildren","isGroup","isActive","Icon","child","index","NavTree","navTree","className","dropdown","activeHref","theme","bottomLinks","link"],"mappings":";;;;AAgCA,SAASA,IAAe;AACtB,SACE,gBAAAC,EAAC,OAAA,EAAI,WAAWC,EAAO,cACrB,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,WAAWD,EAAO;AAAA,QAClB,OAAM;AAAA,QACN,QAAO;AAAA,QACP,SAAQ;AAAA,QACR,MAAK;AAAA,QACL,OAAM;AAAA,QAEN,UAAA,gBAAAC;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,GAAE;AAAA,YACF,MAAK;AAAA,UAAA;AAAA,QAAA;AAAA,MACP;AAAA,IAAA;AAAA,IAEF,gBAAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,WAAWD,EAAO;AAAA,QAClB,OAAM;AAAA,QACN,QAAO;AAAA,QACP,SAAQ;AAAA,QACR,MAAK;AAAA,QACL,OAAM;AAAA,QAEN,UAAA,gBAAAC;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,GAAE;AAAA,YACF,MAAK;AAAA,UAAA;AAAA,QAAA;AAAA,MACP;AAAA,IAAA;AAAA,EACF,GACF;AAEJ;AAEA,SAASC,EAAkB,EAAE,MAAAC,GAAM,UAAAC,GAAU,OAAAC,IAAQ,KAAoB;AACvE,QAAMC,IAAkBD,MAAU,IAAI,KAAOF,EAAK,YAAY,IACxD,CAACI,GAAYC,CAAa,IAAIC,EAASH,CAAe,GACtDI,IAAcP,EAAK,YAAYA,EAAK,SAAS,SAAS,GACtDQ,IAAUD,KAAe,CAACP,EAAK,MAC/BS,IAAWT,EAAK,QAAQC,MAAaD,EAAK,MAC1CU,IAAOV,EAAK;AAElB,SAAIQ,KAAWN,MAAU,IAErB,gBAAAN,EAAC,SAAI,WAAWC,EAAO,OAAO,MAAK,SAAQ,cAAYG,EAAK,WAC1D,UAAA;AAAA,IAAA,gBAA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Dialog as d, DialogBackdrop as p, DialogPanel as u } from "@headlessui/react";
3
- import { NavTree as N } from "./index.js";
4
- import { Dismiss16Regular as f } from "@fluentui/react-icons";
2
+ import { Dialog as p, DialogBackdrop as u, DialogPanel as N } from "@headlessui/react";
3
+ import { NavTree as f } from "./index.js";
4
+ import { Dismiss16Regular as g } from "@fluentui/react-icons";
5
5
  import o from "./mobile-nav.module.css.js";
6
6
  /* empty css */
7
- function x({
7
+ function y({
8
8
  isOpen: e,
9
9
  setIsOpen: l,
10
10
  navTree: n,
@@ -12,27 +12,29 @@ function x({
12
12
  className: t = "",
13
13
  theme: s,
14
14
  dropdown: c,
15
- activeHref: m
15
+ activeHref: m,
16
+ bottomLinks: d
16
17
  }) {
17
18
  return /* @__PURE__ */ r(
18
- d,
19
+ p,
19
20
  {
20
21
  open: e,
21
22
  onClose: () => l(!1),
22
23
  className: `${o.dialog} ${s === "dark" ? "dark" : ""}`,
23
24
  children: [
24
- /* @__PURE__ */ a(p, { transition: !0, className: o.backdrop }),
25
+ /* @__PURE__ */ a(u, { transition: !0, className: o.backdrop }),
25
26
  /* @__PURE__ */ r("div", { className: o.container, children: [
26
- e && /* @__PURE__ */ a(g, { setIsOpen: l }),
27
- /* @__PURE__ */ a(u, { id: "mobile-nav", transition: !0, className: o.panel, children: /* @__PURE__ */ a("div", { className: o.content, children: /* @__PURE__ */ a(
28
- N,
27
+ e && /* @__PURE__ */ a(v, { setIsOpen: l }),
28
+ /* @__PURE__ */ a(N, { id: "mobile-nav", transition: !0, className: o.panel, children: /* @__PURE__ */ a("div", { className: o.content, children: /* @__PURE__ */ a(
29
+ f,
29
30
  {
30
31
  navTree: n,
31
32
  activeId: i,
32
33
  className: t,
33
34
  dropdown: c,
34
35
  activeHref: m,
35
- theme: s
36
+ theme: s,
37
+ bottomLinks: d
36
38
  }
37
39
  ) }) })
38
40
  ] })
@@ -40,7 +42,7 @@ function x({
40
42
  }
41
43
  );
42
44
  }
43
- const g = ({
45
+ const v = ({
44
46
  setIsOpen: e
45
47
  }) => /* @__PURE__ */ r(
46
48
  "button",
@@ -50,11 +52,11 @@ const g = ({
50
52
  className: o.closeButton,
51
53
  children: [
52
54
  /* @__PURE__ */ a("span", { className: o.srOnly, children: "Close navigation" }),
53
- /* @__PURE__ */ a(f, { className: o.closeIcon })
55
+ /* @__PURE__ */ a(g, { className: o.closeIcon })
54
56
  ]
55
57
  }
56
58
  );
57
59
  export {
58
- x as MobileNavTree
60
+ y as MobileNavTree
59
61
  };
60
62
  //# sourceMappingURL=mobile-nav.js.map