fumadocs-ui 15.2.9 → 15.2.10

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.
@@ -20,6 +20,6 @@ export const Callout = forwardRef(({ className, children, title, type = 'info',
20
20
  info: _jsx(Info, { className: "size-5 fill-blue-500 text-fd-card" }),
21
21
  warn: (_jsx(AlertTriangle, { className: "size-5 fill-orange-500 text-fd-card" })),
22
22
  error: _jsx(CircleX, { className: "size-5 fill-red-500 text-fd-card" }),
23
- }[type], _jsxs("div", { className: "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 mt-2 empty:hidden", children: children })] })] }));
23
+ }[type], _jsxs("div", { className: "min-w-0 flex flex-col gap-2 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 })] })] }));
24
24
  });
25
25
  Callout.displayName = 'Callout';
@@ -15,6 +15,7 @@ interface ObjectType {
15
15
  typeDescriptionLink?: string;
16
16
  default?: string;
17
17
  required?: boolean;
18
+ deprecated?: boolean;
18
19
  }
19
20
  export declare function TypeTable({ type }: {
20
21
  type: Record<string, ObjectType>;
@@ -1 +1 @@
1
- {"version":3,"file":"type-table.d.ts","sourceRoot":"","sources":["../../src/components/type-table.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,wBAAgB,IAAI,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,GAAG,SAAS,CAWrE;AAED,UAAU,UAAU;IAClB;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,CAAC,EAAE,SAAS,CAAC;IAC5B;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAYD,wBAAgB,SAAS,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAA;CAAE,2CAiDvE"}
1
+ {"version":3,"file":"type-table.d.ts","sourceRoot":"","sources":["../../src/components/type-table.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,wBAAgB,IAAI,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,GAAG,SAAS,CAWrE;AAED,UAAU,UAAU;IAClB;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,CAAC,EAAE,SAAS,CAAC;IAC5B;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAeD,wBAAgB,SAAS,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAA;CAAE,2CA2DvE"}
@@ -11,9 +11,16 @@ export function Info({ children }) {
11
11
  const field = cva('inline-flex flex-row items-center gap-1');
12
12
  const code = cva('rounded-md bg-fd-secondary p-1 text-fd-secondary-foreground', {
13
13
  variants: {
14
- color: { primary: 'bg-fd-primary/10 text-fd-primary' },
14
+ color: {
15
+ primary: 'bg-fd-primary/10 text-fd-primary',
16
+ deprecated: 'line-through text-fd-primary/50',
17
+ },
15
18
  },
16
19
  });
17
20
  export function TypeTable({ type }) {
18
- return (_jsx("div", { className: "prose my-6 overflow-auto prose-no-margin", children: _jsxs("table", { className: "whitespace-nowrap text-sm text-fd-muted-foreground", children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { className: "w-[45%]", children: "Prop" }), _jsx("th", { className: "w-[30%]", children: "Type" }), _jsx("th", { className: "w-1/4", children: "Default" })] }) }), _jsx("tbody", { children: Object.entries(type).map(([key, value]) => (_jsxs("tr", { children: [_jsx("td", { children: _jsxs("div", { className: field(), children: [_jsxs("code", { className: cn(code({ color: 'primary' })), children: [key, !value.required && '?'] }), value.description ? _jsx(Info, { children: value.description }) : null] }) }), _jsx("td", { children: _jsxs("div", { className: field(), children: [_jsx("code", { className: code(), children: value.type }), value.typeDescription ? (_jsx(Info, { children: value.typeDescription })) : null, value.typeDescriptionLink ? (_jsx(Link, { href: value.typeDescriptionLink, children: _jsx(InfoIcon, { className: "size-4" }) })) : null] }) }), _jsx("td", { children: value.default ? (_jsx("code", { className: code(), children: value.default })) : (_jsx("span", { children: "-" })) })] }, key))) })] }) }));
21
+ return (_jsx("div", { className: "prose my-6 overflow-auto prose-no-margin", children: _jsxs("table", { className: "whitespace-nowrap text-sm text-fd-muted-foreground", children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { className: "w-[45%]", children: "Prop" }), _jsx("th", { className: "w-[30%]", children: "Type" }), _jsx("th", { className: "w-1/4", children: "Default" })] }) }), _jsx("tbody", { children: Object.entries(type)
22
+ .sort((a) => (a[1].deprecated ? 1 : -1))
23
+ .map(([key, value]) => (_jsxs("tr", { children: [_jsx("td", { children: _jsxs("div", { className: field(), children: [_jsxs("code", { className: cn(code({
24
+ color: value.deprecated ? 'deprecated' : 'primary',
25
+ })), children: [key, !value.required && '?'] }), value.description ? (_jsx(Info, { children: value.description })) : null] }) }), _jsx("td", { children: _jsxs("div", { className: field(), children: [_jsx("code", { className: code(), children: value.type }), value.typeDescription ? (_jsx(Info, { children: value.typeDescription })) : null, value.typeDescriptionLink ? (_jsx(Link, { href: value.typeDescriptionLink, children: _jsx(InfoIcon, { className: "size-4" }) })) : null] }) }), _jsx("td", { children: value.default ? (_jsx("code", { className: code(), children: value.default })) : ('-') })] }, key))) })] }) }));
19
26
  }
package/dist/style.css CHANGED
@@ -826,9 +826,6 @@
826
826
  .mt-\(--fd-top\) {
827
827
  margin-top: var(--fd-top);
828
828
  }
829
- .mt-2 {
830
- margin-top: calc(var(--spacing) * 2);
831
- }
832
829
  .mt-6 {
833
830
  margin-top: calc(var(--spacing) * 6);
834
831
  }
@@ -1532,12 +1529,21 @@
1532
1529
  .text-fd-primary-foreground {
1533
1530
  color: var(--color-fd-primary-foreground);
1534
1531
  }
1532
+ .text-fd-primary\/50 {
1533
+ color: color-mix(in srgb, hsl(0, 0%, 9%) 50%, transparent);
1534
+ @supports (color: color-mix(in lab, red, red)) {
1535
+ color: color-mix(in oklab, var(--color-fd-primary) 50%, transparent);
1536
+ }
1537
+ }
1535
1538
  .text-fd-secondary-foreground {
1536
1539
  color: var(--color-fd-secondary-foreground);
1537
1540
  }
1538
1541
  .italic {
1539
1542
  font-style: italic;
1540
1543
  }
1544
+ .line-through {
1545
+ text-decoration-line: line-through;
1546
+ }
1541
1547
  .underline {
1542
1548
  text-decoration-line: underline;
1543
1549
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fumadocs-ui",
3
- "version": "15.2.9",
3
+ "version": "15.2.10",
4
4
  "description": "The framework for building a documentation website in Next.js",
5
5
  "keywords": [
6
6
  "NextJs",
@@ -68,23 +68,23 @@
68
68
  "css/*"
69
69
  ],
70
70
  "dependencies": {
71
- "@radix-ui/react-accordion": "^1.2.4",
72
- "@radix-ui/react-collapsible": "^1.1.4",
73
- "@radix-ui/react-dialog": "^1.1.7",
71
+ "@radix-ui/react-accordion": "^1.2.7",
72
+ "@radix-ui/react-collapsible": "^1.1.7",
73
+ "@radix-ui/react-dialog": "^1.1.10",
74
74
  "@radix-ui/react-direction": "^1.1.1",
75
- "@radix-ui/react-navigation-menu": "^1.2.6",
76
- "@radix-ui/react-popover": "^1.1.7",
77
- "@radix-ui/react-scroll-area": "^1.2.4",
75
+ "@radix-ui/react-navigation-menu": "^1.2.9",
76
+ "@radix-ui/react-popover": "^1.1.10",
77
+ "@radix-ui/react-scroll-area": "^1.2.5",
78
78
  "@radix-ui/react-slot": "^1.2.0",
79
- "@radix-ui/react-tabs": "^1.1.4",
79
+ "@radix-ui/react-tabs": "^1.1.8",
80
80
  "class-variance-authority": "^0.7.1",
81
81
  "lodash.merge": "^4.6.2",
82
- "lucide-react": "^0.488.0",
82
+ "lucide-react": "^0.503.0",
83
83
  "next-themes": "^0.4.6",
84
84
  "postcss-selector-parser": "^7.1.0",
85
85
  "react-medium-image-zoom": "^5.2.14",
86
86
  "tailwind-merge": "^3.2.0",
87
- "fumadocs-core": "15.2.9"
87
+ "fumadocs-core": "15.2.10"
88
88
  },
89
89
  "devDependencies": {
90
90
  "@next/eslint-plugin-next": "^15.3.1",
@@ -97,7 +97,7 @@
97
97
  "tsc-alias": "^1.8.15",
98
98
  "@fumadocs/cli": "0.1.1",
99
99
  "eslint-config-custom": "0.0.0",
100
- "fumadocs-core": "15.2.9",
100
+ "fumadocs-core": "15.2.10",
101
101
  "tsconfig": "0.0.0"
102
102
  },
103
103
  "peerDependencies": {