fumadocs-ui 15.0.14 → 15.0.16
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.
|
@@ -21,7 +21,7 @@ Accordions.displayName = 'Accordions';
|
|
|
21
21
|
export const Accordion = forwardRef(({ title, className, id, children, ...props }, ref) => {
|
|
22
22
|
return (_jsxs(AccordionPrimitive.Item, { ref: ref,
|
|
23
23
|
// Use `id` instead if presents
|
|
24
|
-
value: id ?? title, className: cn('group/accordion relative scroll-m-20', className), ...props, children: [_jsxs(AccordionPrimitive.Header, { id: id, className: "not-prose flex flex-row items-center font-medium
|
|
24
|
+
value: id ?? title, className: cn('group/accordion relative scroll-m-20', className), ...props, children: [_jsxs(AccordionPrimitive.Header, { id: id, className: "not-prose flex flex-row items-center text-fd-card-foreground font-medium has-focus-visible:bg-fd-accent", children: [_jsxs(AccordionPrimitive.Trigger, { className: "flex flex-1 items-center gap-2 px-4 py-2.5 text-start focus-visible:outline-none", children: [_jsx(ChevronRight, { className: "-ms-1 size-4 shrink-0 text-fd-muted-foreground transition-transform duration-200 group-data-[state=open]/accordion:rotate-90" }), title] }), id ? _jsx(CopyButton, { id: id }) : null] }), _jsx(AccordionPrimitive.Content, { className: "overflow-hidden data-[state=closed]:animate-fd-accordion-up data-[state=open]:animate-fd-accordion-down", children: _jsx("div", { className: "px-4 py-2 prose-no-margin", children: children }) })] }));
|
|
25
25
|
});
|
|
26
26
|
function CopyButton({ id }) {
|
|
27
27
|
const [checked, onClick] = useCopyButton(() => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
export declare function Cards(props: HTMLAttributes<HTMLDivElement>):
|
|
3
|
-
export type CardProps = HTMLAttributes<HTMLElement> & {
|
|
2
|
+
export declare function Cards(props: HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export type CardProps = Omit<HTMLAttributes<HTMLElement>, 'title'> & {
|
|
4
4
|
icon?: ReactNode;
|
|
5
5
|
title: ReactNode;
|
|
6
6
|
description?: ReactNode;
|
|
7
7
|
href?: string;
|
|
8
8
|
external?: boolean;
|
|
9
9
|
};
|
|
10
|
-
export declare function Card({ icon, title, description, ...props }: CardProps):
|
|
10
|
+
export declare function Card({ icon, title, description, ...props }: CardProps): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
//# sourceMappingURL=card.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../src/components/card.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvD,wBAAgB,KAAK,
|
|
1
|
+
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../src/components/card.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvD,wBAAgB,KAAK,CAAC,KAAK,EAAE,cAAc,CAAC,cAAc,CAAC,2CAS1D;AAED,MAAM,MAAM,SAAS,GAAG,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC,GAAG;IACnE,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,EAAE,SAAS,CAAC;IACjB,WAAW,CAAC,EAAE,SAAS,CAAC;IAExB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,wBAAgB,IAAI,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,2CA6BrE"}
|
package/dist/components/card.js
CHANGED
|
@@ -2,9 +2,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import Link from 'fumadocs-core/link';
|
|
3
3
|
import { cn } from '../utils/cn.js';
|
|
4
4
|
export function Cards(props) {
|
|
5
|
-
return (_jsx("div", { ...props, className: cn('grid grid-cols-
|
|
5
|
+
return (_jsx("div", { ...props, className: cn('grid grid-cols-2 gap-4 @container', props.className), children: props.children }));
|
|
6
6
|
}
|
|
7
7
|
export function Card({ icon, title, description, ...props }) {
|
|
8
8
|
const E = props.href ? Link : 'div';
|
|
9
|
-
return (_jsxs(E, { ...props, "data-card": true, className: cn('block rounded-lg border bg-fd-card p-4 text-fd-card-foreground shadow-md transition-colors', props.href && 'hover:bg-fd-accent/80', props.className), children: [icon ? (_jsx("div", { className: "not-prose mb-2 w-fit rounded-md border bg-fd-muted p-1.5 text-fd-muted-foreground [&_svg]:size-4", children: icon })) : null, _jsx("h3", { className: "not-prose mb-1 text-sm font-medium", children: title }), description ? (_jsx("p", { className: "my-0 text-sm text-fd-muted-foreground", children: description })) : null, props.children ? (_jsx("div", { className: "text-sm text-fd-muted-foreground prose-no-margin", children: props.children })) : null] }));
|
|
9
|
+
return (_jsxs(E, { ...props, "data-card": true, className: cn('block rounded-lg border bg-fd-card p-4 text-fd-card-foreground shadow-md transition-colors @max-lg:col-span-full', props.href && 'hover:bg-fd-accent/80', props.className), children: [icon ? (_jsx("div", { className: "not-prose mb-2 w-fit rounded-md border bg-fd-muted p-1.5 text-fd-muted-foreground [&_svg]:size-4", children: icon })) : null, _jsx("h3", { className: "not-prose mb-1 text-sm font-medium", children: title }), description ? (_jsx("p", { className: "my-0 text-sm text-fd-muted-foreground", children: description })) : null, props.children ? (_jsx("div", { className: "text-sm text-fd-muted-foreground prose-no-margin", children: props.children })) : null] }));
|
|
10
10
|
}
|
package/dist/style.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! tailwindcss v4.0.
|
|
1
|
+
/*! tailwindcss v4.0.12 | MIT License | https://tailwindcss.com */
|
|
2
2
|
@layer theme, base, components, utilities;
|
|
3
3
|
@layer theme {
|
|
4
4
|
:root, :host {
|
|
@@ -62,7 +62,6 @@
|
|
|
62
62
|
--color-fd-secondary-foreground: hsl(0, 0%, 9%);
|
|
63
63
|
--color-fd-accent: hsl(0, 0%, 90.1%);
|
|
64
64
|
--color-fd-accent-foreground: hsl(0, 0%, 9%);
|
|
65
|
-
--color-fd-ring: hsl(0, 0%, 63.9%);
|
|
66
65
|
--animate-fd-fade-in: fd-fade-in 300ms ease;
|
|
67
66
|
--animate-fd-fade-out: fd-fade-out 300ms ease;
|
|
68
67
|
--animate-fd-dialog-in: fd-dialog-in 200ms cubic-bezier(0.32, 0.72, 0, 1);
|
|
@@ -234,6 +233,9 @@
|
|
|
234
233
|
}
|
|
235
234
|
}
|
|
236
235
|
@layer utilities {
|
|
236
|
+
.\@container {
|
|
237
|
+
container-type: inline-size;
|
|
238
|
+
}
|
|
237
239
|
.collapse {
|
|
238
240
|
visibility: collapse;
|
|
239
241
|
}
|
|
@@ -1632,17 +1634,6 @@
|
|
|
1632
1634
|
}
|
|
1633
1635
|
}
|
|
1634
1636
|
}
|
|
1635
|
-
.focus-visible\:ring-2 {
|
|
1636
|
-
&:focus-visible {
|
|
1637
|
-
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentColor);
|
|
1638
|
-
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1639
|
-
}
|
|
1640
|
-
}
|
|
1641
|
-
.focus-visible\:ring-fd-ring {
|
|
1642
|
-
&:focus-visible {
|
|
1643
|
-
--tw-ring-color: var(--color-fd-ring);
|
|
1644
|
-
}
|
|
1645
|
-
}
|
|
1646
1637
|
.focus-visible\:outline-none {
|
|
1647
1638
|
&:focus-visible {
|
|
1648
1639
|
--tw-outline-style: none;
|
|
@@ -1659,6 +1650,11 @@
|
|
|
1659
1650
|
opacity: 50%;
|
|
1660
1651
|
}
|
|
1661
1652
|
}
|
|
1653
|
+
.has-focus-visible\:bg-fd-accent {
|
|
1654
|
+
&:has(*:focus-visible) {
|
|
1655
|
+
background-color: var(--color-fd-accent);
|
|
1656
|
+
}
|
|
1657
|
+
}
|
|
1662
1658
|
.data-\[active\=true\]\:font-medium {
|
|
1663
1659
|
&[data-active="true"] {
|
|
1664
1660
|
--tw-font-weight: var(--font-weight-medium);
|
|
@@ -1839,11 +1835,6 @@
|
|
|
1839
1835
|
display: none;
|
|
1840
1836
|
}
|
|
1841
1837
|
}
|
|
1842
|
-
.sm\:grid-cols-2 {
|
|
1843
|
-
@media (width >= 40rem) {
|
|
1844
|
-
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
1845
|
-
}
|
|
1846
|
-
}
|
|
1847
1838
|
.sm\:flex-row {
|
|
1848
1839
|
@media (width >= 40rem) {
|
|
1849
1840
|
flex-direction: row;
|
|
@@ -2070,6 +2061,11 @@
|
|
|
2070
2061
|
--fd-tocnav-height: 0px;
|
|
2071
2062
|
}
|
|
2072
2063
|
}
|
|
2064
|
+
.\@max-lg\:col-span-full {
|
|
2065
|
+
@container (width < 32rem) {
|
|
2066
|
+
grid-column: 1 / -1;
|
|
2067
|
+
}
|
|
2068
|
+
}
|
|
2073
2069
|
.rtl\:-scale-x-100 {
|
|
2074
2070
|
&:where(:dir(rtl), [dir="rtl"], [dir="rtl"] *) {
|
|
2075
2071
|
--tw-scale-x: calc(100% * -1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fumadocs-ui",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.16",
|
|
4
4
|
"description": "The framework for building a documentation website in Next.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"NextJs",
|
|
@@ -65,24 +65,24 @@
|
|
|
65
65
|
"@radix-ui/react-tabs": "^1.1.3",
|
|
66
66
|
"class-variance-authority": "^0.7.1",
|
|
67
67
|
"lodash.merge": "^4.6.2",
|
|
68
|
-
"lucide-react": "^0.
|
|
68
|
+
"lucide-react": "^0.479.0",
|
|
69
69
|
"next-themes": "^0.4.4",
|
|
70
70
|
"postcss-selector-parser": "^7.1.0",
|
|
71
71
|
"react-medium-image-zoom": "^5.2.14",
|
|
72
72
|
"tailwind-merge": "^3.0.2"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
|
-
"@next/eslint-plugin-next": "^15.2.
|
|
76
|
-
"@tailwindcss/cli": "^4.0.
|
|
75
|
+
"@next/eslint-plugin-next": "^15.2.1",
|
|
76
|
+
"@tailwindcss/cli": "^4.0.12",
|
|
77
77
|
"@types/lodash.merge": "^4.6.9",
|
|
78
78
|
"@types/react": "^19.0.10",
|
|
79
79
|
"@types/react-dom": "^19.0.4",
|
|
80
|
-
"next": "15.2.
|
|
81
|
-
"tailwindcss": "^4.0.
|
|
80
|
+
"next": "15.2.1",
|
|
81
|
+
"tailwindcss": "^4.0.12",
|
|
82
82
|
"tsc-alias": "^1.8.11",
|
|
83
83
|
"@fumadocs/cli": "0.0.8",
|
|
84
84
|
"eslint-config-custom": "0.0.0",
|
|
85
|
-
"fumadocs-core": "15.0.
|
|
85
|
+
"fumadocs-core": "15.0.16",
|
|
86
86
|
"tsconfig": "0.0.0"
|
|
87
87
|
},
|
|
88
88
|
"peerDependencies": {
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"react": "18.x.x || 19.x.x",
|
|
91
91
|
"react-dom": "18.x.x || 19.x.x",
|
|
92
92
|
"tailwindcss": "^3.4.14 || ^4.0.0",
|
|
93
|
-
"fumadocs-core": "15.0.
|
|
93
|
+
"fumadocs-core": "15.0.16"
|
|
94
94
|
},
|
|
95
95
|
"peerDependenciesMeta": {
|
|
96
96
|
"tailwindcss": {
|