fumadocs-ui 15.0.6 → 15.0.8
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 +46 -1
- package/dist/components/banner.d.ts.map +1 -1
- package/dist/components/banner.js +6 -7
- package/dist/components/callout.d.ts.map +1 -1
- package/dist/components/callout.js +13 -1
- package/dist/components/codeblock.d.ts.map +1 -1
- package/dist/components/codeblock.js +1 -2
- package/dist/components/dialog/search.d.ts.map +1 -1
- package/dist/components/dialog/search.js +7 -9
- package/dist/components/layout/root-toggle.js +1 -1
- package/dist/components/layout/theme-toggle.d.ts.map +1 -1
- package/dist/components/layout/theme-toggle.js +4 -4
- package/dist/components/layout/toc-clerk.d.ts +1 -2
- package/dist/components/layout/toc-clerk.d.ts.map +1 -1
- package/dist/components/layout/toc-clerk.js +9 -11
- package/dist/components/layout/toc-thumb.d.ts +2 -2
- package/dist/components/layout/toc-thumb.d.ts.map +1 -1
- package/dist/components/layout/toc-thumb.js +8 -9
- package/dist/components/layout/toc.d.ts +12 -4
- package/dist/components/layout/toc.d.ts.map +1 -1
- package/dist/components/layout/toc.js +22 -12
- package/dist/components/tabs.d.ts.map +1 -1
- package/dist/components/tabs.js +5 -7
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/button.js +1 -0
- package/dist/components/ui/navigation-menu.js +1 -1
- package/dist/i18n.d.ts.map +1 -1
- package/dist/i18n.js +3 -6
- package/dist/layouts/docs/sidebar.d.ts.map +1 -1
- package/dist/layouts/docs/sidebar.js +9 -13
- package/dist/layouts/docs.client.d.ts +0 -6
- package/dist/layouts/docs.client.d.ts.map +1 -1
- package/dist/layouts/docs.client.js +3 -32
- package/dist/layouts/docs.d.ts.map +1 -1
- package/dist/layouts/docs.js +19 -20
- package/dist/layouts/home/navbar.js +1 -1
- package/dist/layouts/notebook.client.d.ts +7 -1
- package/dist/layouts/notebook.client.d.ts.map +1 -1
- package/dist/layouts/notebook.client.js +30 -4
- package/dist/layouts/notebook.d.ts +6 -2
- package/dist/layouts/notebook.d.ts.map +1 -1
- package/dist/layouts/notebook.js +28 -20
- package/dist/page.client.d.ts +1 -1
- package/dist/page.client.d.ts.map +1 -1
- package/dist/page.client.js +27 -9
- package/dist/page.d.ts.map +1 -1
- package/dist/page.js +5 -5
- package/dist/style.css +217 -148
- package/dist/theme/typography/styles.js +4 -3
- package/package.json +4 -4
- package/dist/theme/docs-ui.d.ts +0 -23
- package/dist/theme/docs-ui.d.ts.map +0 -1
- package/dist/theme/docs-ui.js +0 -58
|
@@ -408,14 +408,15 @@ export const DEFAULT = {
|
|
|
408
408
|
},
|
|
409
409
|
'a:not([data-card])': {
|
|
410
410
|
color: 'var(--tw-prose-links)',
|
|
411
|
-
transition: 'text-decoration
|
|
411
|
+
transition: 'text-decoration .2s',
|
|
412
412
|
fontWeight: '500',
|
|
413
413
|
textDecoration: 'underline',
|
|
414
414
|
textUnderlineOffset: '3.5px',
|
|
415
|
-
textDecorationColor: '
|
|
415
|
+
textDecorationColor: 'var(--color-fd-primary)',
|
|
416
|
+
textDecorationThickness: '1.5px',
|
|
416
417
|
},
|
|
417
418
|
'a:not([data-card]):hover': {
|
|
418
|
-
|
|
419
|
+
textDecorationThickness: '3px',
|
|
419
420
|
},
|
|
420
421
|
},
|
|
421
422
|
colors,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fumadocs-ui",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.8",
|
|
4
4
|
"description": "The framework for building a documentation website in Next.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"NextJs",
|
|
@@ -79,9 +79,9 @@
|
|
|
79
79
|
"next": "15.1.6",
|
|
80
80
|
"tailwindcss": "^4.0.5",
|
|
81
81
|
"tsc-alias": "^1.8.10",
|
|
82
|
-
"@fumadocs/cli": "0.0.8",
|
|
83
82
|
"eslint-config-custom": "0.0.0",
|
|
84
|
-
"fumadocs
|
|
83
|
+
"@fumadocs/cli": "0.0.8",
|
|
84
|
+
"fumadocs-core": "15.0.8",
|
|
85
85
|
"tsconfig": "0.0.0"
|
|
86
86
|
},
|
|
87
87
|
"peerDependencies": {
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"react": "18.x.x || 19.x.x",
|
|
90
90
|
"react-dom": "18.x.x || 19.x.x",
|
|
91
91
|
"tailwindcss": "^3.4.14 || ^4.0.0",
|
|
92
|
-
"fumadocs-core": "15.0.
|
|
92
|
+
"fumadocs-core": "15.0.8"
|
|
93
93
|
},
|
|
94
94
|
"peerDependenciesMeta": {
|
|
95
95
|
"tailwindcss": {
|
package/dist/theme/docs-ui.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export interface DocsUIOptions {
|
|
2
|
-
/**
|
|
3
|
-
* Prefix to the variable name of colors
|
|
4
|
-
*
|
|
5
|
-
* @defaultValue 'fd'
|
|
6
|
-
*/
|
|
7
|
-
cssPrefix?: string;
|
|
8
|
-
/**
|
|
9
|
-
* Add Fumadocs UI `fd-*` colors to global colors
|
|
10
|
-
*
|
|
11
|
-
* @defaultValue false
|
|
12
|
-
*/
|
|
13
|
-
addGlobalColors?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Max width of docs layout
|
|
16
|
-
*
|
|
17
|
-
* @defaultValue '100vw'
|
|
18
|
-
*/
|
|
19
|
-
layoutWidth?: string;
|
|
20
|
-
}
|
|
21
|
-
export declare const docsUi: unknown;
|
|
22
|
-
export default docsUi;
|
|
23
|
-
//# sourceMappingURL=docs-ui.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"docs-ui.d.ts","sourceRoot":"","sources":["../../src/theme/docs-ui.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,aAAa;IAC5B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AA4CD,eAAO,MAAM,MAAM,EAAE,OAuBpB,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
package/dist/theme/docs-ui.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import plugin from 'tailwindcss/plugin';
|
|
2
|
-
function createTailwindUtilities(prefix) {
|
|
3
|
-
const append = prefix.length > 0 ? prefix + '-' : prefix;
|
|
4
|
-
return {
|
|
5
|
-
[`.${append}steps`]: {
|
|
6
|
-
'counter-reset': 'step',
|
|
7
|
-
'border-left-width': '1px',
|
|
8
|
-
'margin-left': '1rem',
|
|
9
|
-
'padding-left': '1.75rem',
|
|
10
|
-
position: 'relative',
|
|
11
|
-
},
|
|
12
|
-
[`.${append}step:before`]: {
|
|
13
|
-
'background-color': 'var(--color-fd-secondary)',
|
|
14
|
-
color: 'var(--color-fd-secondary-foreground)',
|
|
15
|
-
content: 'counter(step)',
|
|
16
|
-
'counter-increment': 'step',
|
|
17
|
-
'border-radius': `theme('borderRadius.full')`,
|
|
18
|
-
'justify-content': 'center',
|
|
19
|
-
'align-items': 'center',
|
|
20
|
-
width: '2rem',
|
|
21
|
-
height: '2rem',
|
|
22
|
-
'font-size': '.875rem',
|
|
23
|
-
'line-height': '1.25rem',
|
|
24
|
-
display: 'flex',
|
|
25
|
-
position: 'absolute',
|
|
26
|
-
left: '-1rem',
|
|
27
|
-
},
|
|
28
|
-
'.prose-no-margin': {
|
|
29
|
-
'& > :first-child': {
|
|
30
|
-
marginTop: '0',
|
|
31
|
-
},
|
|
32
|
-
'& > :last-child': {
|
|
33
|
-
marginBottom: '0',
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
export const docsUi = plugin.withOptions(({ layoutWidth = '100vw' } = {}) => {
|
|
39
|
-
return ({ addBase, addUtilities }) => {
|
|
40
|
-
addBase({
|
|
41
|
-
':root': {
|
|
42
|
-
'--fd-sidebar-width': '0px',
|
|
43
|
-
'--fd-toc-width': '0px',
|
|
44
|
-
'--fd-layout-width': layoutWidth,
|
|
45
|
-
'--fd-banner-height': '0px',
|
|
46
|
-
'--fd-nav-height': '0px',
|
|
47
|
-
'--fd-tocnav-height': '0px',
|
|
48
|
-
'--fd-diff-remove-color': 'rgba(200,10,100,0.12)',
|
|
49
|
-
'--fd-diff-remove-symbol-color': 'rgb(230,10,100)',
|
|
50
|
-
'--fd-diff-add-color': 'rgba(14,180,100,0.12)',
|
|
51
|
-
'--fd-diff-add-symbol-color': 'rgb(10,200,100)',
|
|
52
|
-
},
|
|
53
|
-
});
|
|
54
|
-
// @ts-expect-error -- buggy Tailwind CSS types
|
|
55
|
-
addUtilities(createTailwindUtilities('fd'));
|
|
56
|
-
};
|
|
57
|
-
});
|
|
58
|
-
export default docsUi;
|