fumadocs-ui 11.0.2 → 11.0.4

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 (35) hide show
  1. package/dist/components/dialog/{search-algolia.d.mts → search-algolia.d.ts} +1 -1
  2. package/dist/components/dialog/{search-default.d.mts → search-default.d.ts} +1 -1
  3. package/dist/{i18n.d.mts → i18n.d.ts} +2 -2
  4. package/dist/layout.client.d.ts +4 -0
  5. package/dist/layout.client.js +3 -3
  6. package/dist/{layout.d.mts → layout.d.ts} +1 -1
  7. package/dist/{mdx.client.d.mts → mdx.client.d.ts} +1 -1
  8. package/dist/{mdx.d.mts → mdx.d.ts} +1 -1
  9. package/dist/{page.d.mts → page.d.ts} +1 -1
  10. package/dist/{provider.d.mts → provider.d.ts} +4 -4
  11. package/dist/style.css +1 -1
  12. package/dist/tailwind-plugin.cjs +623 -0
  13. package/dist/tailwind-plugin.d.ts +1 -0
  14. package/dist/tailwind-plugin.js +61 -49
  15. package/package.json +25 -24
  16. package/dist/layout.client.d.mts +0 -4
  17. /package/dist/components/{accordion.d.mts → accordion.d.ts} +0 -0
  18. /package/dist/components/{api.d.mts → api.d.ts} +0 -0
  19. /package/dist/components/{callout.d.mts → callout.d.ts} +0 -0
  20. /package/dist/components/{card.d.mts → card.d.ts} +0 -0
  21. /package/dist/components/{codeblock.d.mts → codeblock.d.ts} +0 -0
  22. /package/dist/components/dialog/{search.d.mts → search.d.ts} +0 -0
  23. /package/dist/components/{files.d.mts → files.d.ts} +0 -0
  24. /package/dist/components/{heading.d.mts → heading.d.ts} +0 -0
  25. /package/dist/components/{image-zoom.d.mts → image-zoom.d.ts} +0 -0
  26. /package/dist/components/{inline-toc.d.mts → inline-toc.d.ts} +0 -0
  27. /package/dist/components/{roll-button.d.mts → roll-button.d.ts} +0 -0
  28. /package/dist/components/{steps.d.mts → steps.d.ts} +0 -0
  29. /package/dist/components/{tabs.d.mts → tabs.d.ts} +0 -0
  30. /package/dist/components/{type-table.d.mts → type-table.d.ts} +0 -0
  31. /package/dist/{i18n-dw7ODAws.d.mts → i18n-dw7ODAws.d.ts} +0 -0
  32. /package/dist/{layout-VyGuUztg.d.mts → layout-VyGuUztg.d.ts} +0 -0
  33. /package/dist/{page.client.d.mts → page.client.d.ts} +0 -0
  34. /package/dist/{tree-cqNEopxM.d.mts → tree-cqNEopxM.d.ts} +0 -0
  35. /package/dist/twoslash/{popup.d.mts → popup.d.ts} +0 -0
@@ -1,42 +1,8 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
1
+ import "./chunk-6C3VEZWH.js";
29
2
 
30
3
  // src/tailwind-plugin.ts
31
- var tailwind_plugin_exports = {};
32
- __export(tailwind_plugin_exports, {
33
- createPreset: () => createPreset,
34
- docsUi: () => docsUi,
35
- presets: () => presets
36
- });
37
- module.exports = __toCommonJS(tailwind_plugin_exports);
38
- var import_typography = __toESM(require("@tailwindcss/typography"));
39
- var import_plugin = __toESM(require("tailwindcss/plugin"));
4
+ import typography2 from "@tailwindcss/typography";
5
+ import plugin from "tailwindcss/plugin";
40
6
 
41
7
  // src/theme/colors.ts
42
8
  var defaultPreset = {
@@ -159,8 +125,7 @@ var neutral = {
159
125
  },
160
126
  css: {
161
127
  aside: {
162
- "--muted-foreground": "0 0% 29%",
163
- "font-weight": "500"
128
+ "--muted-foreground": "0 0% 30%"
164
129
  },
165
130
  "aside::before": {
166
131
  content: '""',
@@ -170,15 +135,62 @@ var neutral = {
170
135
  zIndex: "-1",
171
136
  width: "calc(max(0px, 100vw - theme(maxWidth.container)) + 100% + 1rem)",
172
137
  height: "100%",
173
- background: "hsl(0 0% 93%)",
138
+ background: "hsl(var(--secondary))",
174
139
  borderRight: "1px solid",
175
- borderRightColor: `theme(borderColor.border)`
140
+ borderRightColor: "theme(borderColor.border)"
176
141
  },
177
142
  ".dark aside": {
178
143
  "--muted-foreground": "0 0% 72%"
179
- },
180
- ".dark aside::before": {
181
- background: "hsl(0 0% 11.5%)"
144
+ }
145
+ }
146
+ };
147
+ var catppuccin = {
148
+ light: {
149
+ popover: "220deg 22% 92%",
150
+ "popover-foreground": "234deg 16% 35%",
151
+ "secondary-foreground": "234deg 16% 35%",
152
+ border: "223deg 16% 83%",
153
+ primary: "266deg 85% 58%",
154
+ "primary-foreground": "234deg 16% 35%",
155
+ muted: "220deg 22% 92%",
156
+ card: "220deg 22% 92%",
157
+ accent: "223deg 16% 83%",
158
+ "accent-foreground": "234deg 16% 35%",
159
+ "card-foreground": "234deg 16% 35%",
160
+ "muted-foreground": "233deg 10% 47%",
161
+ foreground: "234deg 16% 35%",
162
+ secondary: "220deg 22% 92%",
163
+ background: "220deg 23% 95%",
164
+ ring: "267deg 84% 81%"
165
+ },
166
+ dark: {
167
+ ring: "267deg 84% 81%",
168
+ primary: "267deg 84% 81%",
169
+ background: "240deg 21% 15%",
170
+ foreground: "226deg 64% 88%",
171
+ popover: "240deg 23% 9%",
172
+ card: "240deg 21% 12%",
173
+ muted: "237deg 16% 23%",
174
+ border: "237deg 16% 23%",
175
+ accent: "234deg 13% 31%",
176
+ secondary: "240deg 23% 9%",
177
+ "primary-foreground": "240deg 23% 9%",
178
+ "card-foreground": "226deg 64% 88%",
179
+ "secondary-foreground": "226deg 64% 88%",
180
+ "popover-foreground": "226deg 64% 88%",
181
+ "accent-foreground": "226deg 64% 88%",
182
+ "muted-foreground": "228deg 24% 72%"
183
+ },
184
+ css: {
185
+ "aside::before": {
186
+ content: '""',
187
+ position: "absolute",
188
+ top: "0",
189
+ right: "0",
190
+ zIndex: "-1",
191
+ width: "calc(max(0px, 100vw - theme(maxWidth.container)) + 100% + 1rem)",
192
+ height: "100%",
193
+ background: "hsl(var(--secondary))"
182
194
  }
183
195
  }
184
196
  };
@@ -262,6 +274,7 @@ var presets = {
262
274
  purple,
263
275
  default: defaultPreset,
264
276
  ocean: oceanPreset,
277
+ catppuccin,
265
278
  neutral,
266
279
  dusk
267
280
  };
@@ -408,7 +421,7 @@ function variableName(prefix, name) {
408
421
  function colorToCSS(prefix, name) {
409
422
  return `hsl(var(${variableName(prefix, name)}) / <alpha-value>)`;
410
423
  }
411
- var docsUi = import_plugin.default.withOptions(
424
+ var docsUi = plugin.withOptions(
412
425
  ({
413
426
  prefix = "",
414
427
  preset = "default",
@@ -565,12 +578,11 @@ var docsUi = import_plugin.default.withOptions(
565
578
  function createPreset(options = {}) {
566
579
  return {
567
580
  darkMode: "class",
568
- plugins: [import_typography.default, docsUi(options)]
581
+ plugins: [typography2, docsUi(options)]
569
582
  };
570
583
  }
571
- // Annotate the CommonJS export names for ESM import in node:
572
- 0 && (module.exports = {
584
+ export {
573
585
  createPreset,
574
586
  docsUi,
575
587
  presets
576
- });
588
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fumadocs-ui",
3
- "version": "11.0.2",
3
+ "version": "11.0.4",
4
4
  "description": "The framework for building a documentation website in Next.js",
5
5
  "keywords": [
6
6
  "NextJs",
@@ -10,42 +10,43 @@
10
10
  "repository": "github:fuma-nama/fumadocs",
11
11
  "license": "MIT",
12
12
  "author": "Fuma Nama",
13
+ "type": "module",
13
14
  "exports": {
14
15
  "./style.css": "./dist/style.css",
15
16
  "./twoslash.css": "./dist/twoslash.css",
16
17
  "./image-zoom.css": "./dist/image-zoom.css",
17
18
  "./tailwind-plugin": {
18
19
  "import": "./dist/tailwind-plugin.js",
19
- "require": "./dist/tailwind-plugin.js",
20
+ "require": "./dist/tailwind-plugin.cjs",
20
21
  "types": "./dist/tailwind-plugin.d.ts"
21
22
  },
22
23
  "./components/*": {
23
24
  "import": "./dist/components/*.js",
24
- "types": "./dist/components/*.d.mts"
25
+ "types": "./dist/components/*.d.ts"
25
26
  },
26
27
  "./twoslash/*": {
27
28
  "import": "./dist/twoslash/*.js",
28
- "types": "./dist/twoslash/*.d.mts"
29
+ "types": "./dist/twoslash/*.d.ts"
29
30
  },
30
31
  "./i18n": {
31
32
  "import": "./dist/i18n.js",
32
- "types": "./dist/i18n.d.mts"
33
+ "types": "./dist/i18n.d.ts"
33
34
  },
34
35
  "./layout": {
35
36
  "import": "./dist/layout.js",
36
- "types": "./dist/layout.d.mts"
37
+ "types": "./dist/layout.d.ts"
37
38
  },
38
39
  "./page": {
39
40
  "import": "./dist/page.js",
40
- "types": "./dist/page.d.mts"
41
+ "types": "./dist/page.d.ts"
41
42
  },
42
43
  "./provider": {
43
44
  "import": "./dist/provider.js",
44
- "types": "./dist/provider.d.mts"
45
+ "types": "./dist/provider.d.ts"
45
46
  },
46
47
  "./mdx": {
47
48
  "import": "./dist/mdx.js",
48
- "types": "./dist/mdx.d.mts"
49
+ "types": "./dist/mdx.d.ts"
49
50
  }
50
51
  },
51
52
  "typesVersions": {
@@ -54,25 +55,25 @@
54
55
  "./dist/tailwind-plugin.d.ts"
55
56
  ],
56
57
  "components/*": [
57
- "./dist/components/*.d.mts"
58
+ "./dist/components/*.d.ts"
58
59
  ],
59
60
  "twoslash/*": [
60
- "./dist/twoslash/*.d.mts"
61
+ "./dist/twoslash/*.d.ts"
61
62
  ],
62
63
  "i18n": [
63
- "./dist/i18n.d.mts"
64
+ "./dist/i18n.d.ts"
64
65
  ],
65
66
  "layout": [
66
- "./dist/layout.d.mts"
67
+ "./dist/layout.d.ts"
67
68
  ],
68
69
  "page": [
69
- "./dist/page.d.mts"
70
+ "./dist/page.d.ts"
70
71
  ],
71
72
  "provider": [
72
- "./dist/provider.d.mts"
73
+ "./dist/provider.d.ts"
73
74
  ],
74
75
  "mdx": [
75
- "./dist/mdx.d.mts"
76
+ "./dist/mdx.d.ts"
76
77
  ]
77
78
  }
78
79
  },
@@ -88,22 +89,22 @@
88
89
  "@radix-ui/react-scroll-area": "^1.0.5",
89
90
  "@radix-ui/react-select": "^2.0.0",
90
91
  "@radix-ui/react-tabs": "^1.0.4",
91
- "@tailwindcss/typography": "^0.5.12",
92
+ "@tailwindcss/typography": "^0.5.13",
92
93
  "class-variance-authority": "^0.7.0",
93
94
  "cmdk": "^1.0.0",
94
- "lucide-react": "^0.367.0",
95
+ "lucide-react": "^0.376.0",
95
96
  "next-themes": "^0.3.0",
96
97
  "react-medium-image-zoom": "^5.1.11",
97
- "tailwind-merge": "^2.2.2",
98
- "fumadocs-core": "11.0.2"
98
+ "tailwind-merge": "^2.3.0",
99
+ "fumadocs-core": "11.0.4"
99
100
  },
100
101
  "devDependencies": {
101
102
  "@algolia/client-search": "^4.23.3",
102
- "@next/eslint-plugin-next": "^14.2.1",
103
- "@types/react": "^18.2.67",
104
- "@types/react-dom": "^18.2.22",
103
+ "@next/eslint-plugin-next": "^14.2.3",
104
+ "@types/react": "^18.3.1",
105
+ "@types/react-dom": "^18.3.0",
105
106
  "algoliasearch": "^4.23.3",
106
- "next": "^14.2.1",
107
+ "next": "^14.2.3",
107
108
  "postcss": "^8.4.38",
108
109
  "postcss-cli": "^11.0.0",
109
110
  "postcss-lightningcss": "^1.0.0",
@@ -1,4 +0,0 @@
1
- export { T as TreeContextProvider } from './tree-cqNEopxM.mjs';
2
- export { N as Nav, S as Sidebar } from './layout-VyGuUztg.mjs';
3
- import 'fumadocs-core/server';
4
- import 'react';
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes