fumadocs-ui 15.0.5 → 15.0.7
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 +2 -2
- 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 -1
- package/dist/components/layout/toc-clerk.d.ts.map +1 -1
- package/dist/components/layout/toc-clerk.js +3 -3
- 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 +7 -2
- package/dist/components/layout/toc.d.ts.map +1 -1
- package/dist/components/layout/toc.js +18 -11
- package/dist/components/tabs.d.ts.map +1 -1
- package/dist/components/tabs.js +5 -7
- 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 +10 -14
- 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 +1 -13
- package/dist/layouts/docs.d.ts.map +1 -1
- package/dist/layouts/docs.js +18 -19
- package/dist/layouts/home/navbar.js +1 -1
- package/dist/layouts/notebook.client.js +1 -1
- package/dist/layouts/notebook.d.ts.map +1 -1
- package/dist/layouts/notebook.js +11 -5
- 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 +181 -481
- package/dist/theme/typography/styles.d.ts.map +1 -1
- package/dist/theme/typography/styles.js +7 -6
- package/package.json +7 -7
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/theme/typography/styles.ts"],"names":[],"mappings":"AAmCA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCxB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDvB,CAAC;AAEF,MAAM,WAAW,MAAM;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC;CACzD;AAED,eAAO,MAAM,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/theme/typography/styles.ts"],"names":[],"mappings":"AAmCA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCxB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDvB,CAAC;AAEF,MAAM,WAAW,MAAM;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC;CACzD;AAED,eAAO,MAAM,OAAO,EAAE,MA8TrB,CAAC"}
|
|
@@ -122,7 +122,7 @@ export const DEFAULT = {
|
|
|
122
122
|
color: 'var(--tw-prose-body)',
|
|
123
123
|
maxWidth: 'none',
|
|
124
124
|
fontSize: rem(16),
|
|
125
|
-
lineHeight:
|
|
125
|
+
lineHeight: '1.75rem',
|
|
126
126
|
'[class~="lead"]': {
|
|
127
127
|
fontSize: em(20, 16),
|
|
128
128
|
lineHeight: round(32 / 20),
|
|
@@ -191,7 +191,7 @@ export const DEFAULT = {
|
|
|
191
191
|
},
|
|
192
192
|
strong: {
|
|
193
193
|
color: 'var(--tw-prose-bold)',
|
|
194
|
-
fontWeight: '
|
|
194
|
+
fontWeight: '500',
|
|
195
195
|
},
|
|
196
196
|
'a strong': {
|
|
197
197
|
color: 'inherit',
|
|
@@ -408,14 +408,15 @@ export const DEFAULT = {
|
|
|
408
408
|
},
|
|
409
409
|
'a:not([data-card])': {
|
|
410
410
|
color: 'var(--tw-prose-links)',
|
|
411
|
-
transition: '
|
|
412
|
-
fontWeight: '
|
|
411
|
+
transition: 'text-decoration .2s',
|
|
412
|
+
fontWeight: '500',
|
|
413
413
|
textDecoration: 'underline',
|
|
414
|
-
textUnderlineOffset: '
|
|
414
|
+
textUnderlineOffset: '3.5px',
|
|
415
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.7",
|
|
4
4
|
"description": "The framework for building a documentation website in Next.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"NextJs",
|
|
@@ -64,24 +64,24 @@
|
|
|
64
64
|
"@radix-ui/react-tabs": "^1.1.3",
|
|
65
65
|
"class-variance-authority": "^0.7.1",
|
|
66
66
|
"lodash.merge": "^4.6.2",
|
|
67
|
-
"lucide-react": "^0.
|
|
67
|
+
"lucide-react": "^0.475.0",
|
|
68
68
|
"next-themes": "^0.4.4",
|
|
69
|
-
"postcss-selector-parser": "^7.
|
|
69
|
+
"postcss-selector-parser": "^7.1.0",
|
|
70
70
|
"react-medium-image-zoom": "^5.2.13",
|
|
71
71
|
"tailwind-merge": "^3.0.1"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@next/eslint-plugin-next": "^15.1.6",
|
|
75
|
-
"@tailwindcss/cli": "^4.0.
|
|
75
|
+
"@tailwindcss/cli": "^4.0.5",
|
|
76
76
|
"@types/lodash.merge": "^4.6.9",
|
|
77
77
|
"@types/react": "^19.0.8",
|
|
78
78
|
"@types/react-dom": "^19.0.3",
|
|
79
79
|
"next": "15.1.6",
|
|
80
|
-
"tailwindcss": "^4.0.
|
|
80
|
+
"tailwindcss": "^4.0.5",
|
|
81
81
|
"tsc-alias": "^1.8.10",
|
|
82
82
|
"@fumadocs/cli": "0.0.8",
|
|
83
83
|
"eslint-config-custom": "0.0.0",
|
|
84
|
-
"fumadocs-core": "15.0.
|
|
84
|
+
"fumadocs-core": "15.0.7",
|
|
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.7"
|
|
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;
|