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.
Files changed (49) hide show
  1. package/css/preset.css +46 -1
  2. package/dist/components/banner.d.ts.map +1 -1
  3. package/dist/components/banner.js +6 -7
  4. package/dist/components/callout.d.ts.map +1 -1
  5. package/dist/components/callout.js +13 -1
  6. package/dist/components/codeblock.d.ts.map +1 -1
  7. package/dist/components/codeblock.js +1 -2
  8. package/dist/components/dialog/search.d.ts.map +1 -1
  9. package/dist/components/dialog/search.js +7 -9
  10. package/dist/components/layout/root-toggle.js +2 -2
  11. package/dist/components/layout/theme-toggle.d.ts.map +1 -1
  12. package/dist/components/layout/theme-toggle.js +4 -4
  13. package/dist/components/layout/toc-clerk.d.ts +1 -1
  14. package/dist/components/layout/toc-clerk.d.ts.map +1 -1
  15. package/dist/components/layout/toc-clerk.js +3 -3
  16. package/dist/components/layout/toc-thumb.d.ts +2 -2
  17. package/dist/components/layout/toc-thumb.d.ts.map +1 -1
  18. package/dist/components/layout/toc-thumb.js +8 -9
  19. package/dist/components/layout/toc.d.ts +7 -2
  20. package/dist/components/layout/toc.d.ts.map +1 -1
  21. package/dist/components/layout/toc.js +18 -11
  22. package/dist/components/tabs.d.ts.map +1 -1
  23. package/dist/components/tabs.js +5 -7
  24. package/dist/components/ui/navigation-menu.js +1 -1
  25. package/dist/i18n.d.ts.map +1 -1
  26. package/dist/i18n.js +3 -6
  27. package/dist/layouts/docs/sidebar.d.ts.map +1 -1
  28. package/dist/layouts/docs/sidebar.js +10 -14
  29. package/dist/layouts/docs.client.d.ts +0 -6
  30. package/dist/layouts/docs.client.d.ts.map +1 -1
  31. package/dist/layouts/docs.client.js +1 -13
  32. package/dist/layouts/docs.d.ts.map +1 -1
  33. package/dist/layouts/docs.js +18 -19
  34. package/dist/layouts/home/navbar.js +1 -1
  35. package/dist/layouts/notebook.client.js +1 -1
  36. package/dist/layouts/notebook.d.ts.map +1 -1
  37. package/dist/layouts/notebook.js +11 -5
  38. package/dist/page.client.d.ts +1 -1
  39. package/dist/page.client.d.ts.map +1 -1
  40. package/dist/page.client.js +27 -9
  41. package/dist/page.d.ts.map +1 -1
  42. package/dist/page.js +5 -5
  43. package/dist/style.css +181 -481
  44. package/dist/theme/typography/styles.d.ts.map +1 -1
  45. package/dist/theme/typography/styles.js +7 -6
  46. package/package.json +7 -7
  47. package/dist/theme/docs-ui.d.ts +0 -23
  48. package/dist/theme/docs-ui.d.ts.map +0 -1
  49. 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,MA6TrB,CAAC"}
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: round(28 / 16),
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: '600',
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: 'opacity 0.3s',
412
- fontWeight: '400',
411
+ transition: 'text-decoration .2s',
412
+ fontWeight: '500',
413
413
  textDecoration: 'underline',
414
- textUnderlineOffset: '2px',
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
- opacity: '80%',
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.5",
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.474.0",
67
+ "lucide-react": "^0.475.0",
68
68
  "next-themes": "^0.4.4",
69
- "postcss-selector-parser": "^7.0.0",
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.3",
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.3",
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.5",
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.5"
92
+ "fumadocs-core": "15.0.7"
93
93
  },
94
94
  "peerDependenciesMeta": {
95
95
  "tailwindcss": {
@@ -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"}
@@ -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;