@docubook/flame 1.4.1 → 1.4.2
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.
|
@@ -54,7 +54,7 @@ export default function Menu({ onNavigate, className = "", pathname, routes = []
|
|
|
54
54
|
aria-label="Documentation navigation"
|
|
55
55
|
className={cn("transition-all duration-200", className)}
|
|
56
56
|
>
|
|
57
|
-
<ul className="flex flex-col gap-
|
|
57
|
+
<ul className="flex flex-col gap-0.5 py-4">
|
|
58
58
|
{menuRoutes.map((route) => (
|
|
59
59
|
<li key={route.href}>
|
|
60
60
|
<Sublink
|
|
@@ -82,7 +82,7 @@ export default function Menu({ onNavigate, className = "", pathname, routes = []
|
|
|
82
82
|
icon={route.context?.icon}
|
|
83
83
|
title={route.context?.title || route.title}
|
|
84
84
|
/>
|
|
85
|
-
<ul className="border-base-300 flex flex-col gap-
|
|
85
|
+
<ul className="border-base-300 flex flex-col gap-0.5 border-l-2 pb-0.5 pl-3 pt-0.5">
|
|
86
86
|
{route.items?.map((item) => {
|
|
87
87
|
const isActive = isItemActive(item.href, route.href);
|
|
88
88
|
return (
|
|
@@ -135,7 +135,7 @@ export default function Menu({ onNavigate, className = "", pathname, routes = []
|
|
|
135
135
|
aria-label="Documentation navigation"
|
|
136
136
|
className={cn("transition-all duration-200", className)}
|
|
137
137
|
>
|
|
138
|
-
<ul className="flex flex-col gap-
|
|
138
|
+
<ul className="flex flex-col gap-0.5 py-4">
|
|
139
139
|
<li key={contextRoute.title}>
|
|
140
140
|
<Sublink
|
|
141
141
|
{...contextRoute}
|
|
@@ -62,7 +62,7 @@ export default function Sublink({
|
|
|
62
62
|
<div
|
|
63
63
|
ref={activeRef}
|
|
64
64
|
className={cn(
|
|
65
|
-
"py-1
|
|
65
|
+
"py-1",
|
|
66
66
|
levelPadding,
|
|
67
67
|
level >= 2 && "border-l-2",
|
|
68
68
|
level >= 2 && (isActive ? "border-primary" : "border-base-300")
|
|
@@ -110,7 +110,7 @@ export default function Sublink({
|
|
|
110
110
|
|
|
111
111
|
{/* Children */}
|
|
112
112
|
{isOpen && (
|
|
113
|
-
<div className="flex flex-col py-1
|
|
113
|
+
<div className="flex flex-col py-1">
|
|
114
114
|
{items.map((item) => (
|
|
115
115
|
<Sublink
|
|
116
116
|
key={`${fullHref}${item.href}`}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docubook/flame",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"description": "A blazing-fast React + MDX framework powered by Bun, built for modern documentation experiences.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
"react-dom": "^19.2.7",
|
|
54
54
|
"unified": "^11.0.0",
|
|
55
55
|
"@docubook/core": "^1.8.0",
|
|
56
|
-
"@docubook/mdx-content": "^3.
|
|
57
|
-
"@docubook/
|
|
58
|
-
"@docubook/
|
|
56
|
+
"@docubook/mdx-content": "^3.4.0",
|
|
57
|
+
"@docubook/ui-react": "^0.1.4",
|
|
58
|
+
"@docubook/themes-colors": "^0.10.2"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
61
|
"@sentry/bun": "^10.0.0"
|