fumadocs-ui 15.6.0 → 15.6.1
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.
- package/css/preset.css +1 -1
- package/dist/components/callout.js +1 -1
- package/dist/components/codeblock.js +1 -1
- package/dist/style.css +3 -3
- package/package.json +5 -5
package/css/preset.css
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
|
|
23
23
|
--color-fd-diff-remove: rgba(200, 10, 100, 0.12);
|
|
24
24
|
--color-fd-diff-remove-symbol: rgb(230, 10, 100);
|
|
25
|
-
--color-fd-diff-add: rgba(14, 180, 100, 0.
|
|
25
|
+
--color-fd-diff-add: rgba(14, 180, 100, 0.1);
|
|
26
26
|
--color-fd-diff-add-symbol: rgb(10, 200, 100);
|
|
27
27
|
|
|
28
28
|
--animate-fd-fade-in: fd-fade-in 300ms ease;
|
|
@@ -14,6 +14,6 @@ export const Callout = forwardRef(({ className, children, title, type = 'info',
|
|
|
14
14
|
return (_jsxs("div", { ref: ref, className: cn('flex gap-2 my-4 rounded-xl border bg-fd-card p-3 ps-1 text-sm text-fd-card-foreground shadow-md', className), ...props, style: {
|
|
15
15
|
'--callout-color': `var(--color-fd-${type})`,
|
|
16
16
|
...props.style,
|
|
17
|
-
}, children: [_jsx("div", { role: "none", className: "w-
|
|
17
|
+
}, children: [_jsx("div", { role: "none", className: "w-0.5 bg-(--callout-color)/50 rounded-sm" }), icon ?? (_jsx(DefaultIcon, { className: "size-5 -me-0.5 fill-(--callout-color) text-fd-card" })), _jsxs("div", { className: "flex flex-col gap-2 min-w-0 flex-1", children: [title ? _jsx("p", { className: "font-medium !my-0", children: title }) : null, _jsx("div", { className: "text-fd-muted-foreground prose-no-margin empty:hidden", children: children })] })] }));
|
|
18
18
|
});
|
|
19
19
|
Callout.displayName = 'Callout';
|
|
@@ -61,6 +61,6 @@ export function CodeBlockTabsList(props) {
|
|
|
61
61
|
return (_jsxs(TabsList, { ...props, className: cn('flex flex-row overflow-x-auto px-1 -mx-1 text-fd-muted-foreground', props.className), children: [props.children, !nested && (_jsx(CopyButton, { className: "sticky ms-auto right-0 bg-fd-card backdrop-blur-sm", containerRef: containerRef }))] }));
|
|
62
62
|
}
|
|
63
63
|
export function CodeBlockTabsTrigger({ children, ...props }) {
|
|
64
|
-
return (_jsxs(TabsTrigger, { ...props, className: cn('relative group inline-flex text-sm font-medium items-center gap-2 px-2 first:ms-1 py-1.5 hover:text-fd-accent-foreground data-[state=active]:text-fd-primary [&_svg]:size-3.5', props.className), children: [_jsx("div", { className: "absolute inset-x-2 bottom-0 h-px group-data-[state=active]:bg-fd-primary" }), children] }));
|
|
64
|
+
return (_jsxs(TabsTrigger, { ...props, className: cn('relative group inline-flex text-sm font-medium text-nowrap items-center gap-2 px-2 first:ms-1 py-1.5 hover:text-fd-accent-foreground data-[state=active]:text-fd-primary [&_svg]:size-3.5', props.className), children: [_jsx("div", { className: "absolute inset-x-2 bottom-0 h-px group-data-[state=active]:bg-fd-primary" }), children] }));
|
|
65
65
|
}
|
|
66
66
|
export const CodeBlockTab = (props) => (_jsx(TabsContent, { ...props, asChild: true }));
|
package/dist/style.css
CHANGED
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
--fd-tocnav-height: 0px;
|
|
66
66
|
--color-fd-diff-remove: rgba(200, 10, 100, 0.12);
|
|
67
67
|
--color-fd-diff-remove-symbol: rgb(230, 10, 100);
|
|
68
|
-
--color-fd-diff-add: rgba(14, 180, 100, 0.
|
|
68
|
+
--color-fd-diff-add: rgba(14, 180, 100, 0.1);
|
|
69
69
|
--color-fd-diff-add-symbol: rgb(10, 200, 100);
|
|
70
70
|
--animate-fd-fade-in: fd-fade-in 300ms ease;
|
|
71
71
|
--animate-fd-fade-out: fd-fade-out 300ms ease;
|
|
@@ -1026,8 +1026,8 @@
|
|
|
1026
1026
|
.w-0 {
|
|
1027
1027
|
width: calc(var(--spacing) * 0);
|
|
1028
1028
|
}
|
|
1029
|
-
.w-
|
|
1030
|
-
width: calc(var(--spacing) *
|
|
1029
|
+
.w-0\.5 {
|
|
1030
|
+
width: calc(var(--spacing) * 0.5);
|
|
1031
1031
|
}
|
|
1032
1032
|
.w-1\.5 {
|
|
1033
1033
|
width: calc(var(--spacing) * 1.5);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fumadocs-ui",
|
|
3
|
-
"version": "15.6.
|
|
3
|
+
"version": "15.6.1",
|
|
4
4
|
"description": "The framework for building a documentation website in Next.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"NextJs",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"react-medium-image-zoom": "^5.2.14",
|
|
90
90
|
"scroll-into-view-if-needed": "^3.1.0",
|
|
91
91
|
"tailwind-merge": "^3.3.1",
|
|
92
|
-
"fumadocs-core": "15.6.
|
|
92
|
+
"fumadocs-core": "15.6.1"
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
95
|
"@next/eslint-plugin-next": "^15.3.4",
|
|
@@ -100,10 +100,10 @@
|
|
|
100
100
|
"next": "15.3.4",
|
|
101
101
|
"tailwindcss": "^4.1.11",
|
|
102
102
|
"tsc-alias": "^1.8.16",
|
|
103
|
-
"
|
|
103
|
+
"tsconfig": "0.0.0",
|
|
104
104
|
"eslint-config-custom": "0.0.0",
|
|
105
|
-
"fumadocs
|
|
106
|
-
"
|
|
105
|
+
"@fumadocs/cli": "0.2.1",
|
|
106
|
+
"fumadocs-core": "15.6.1"
|
|
107
107
|
},
|
|
108
108
|
"peerDependencies": {
|
|
109
109
|
"@types/react": "*",
|