fumadocs-ui 15.0.15 → 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.
- package/dist/components/accordion.js +1 -1
- package/dist/style.css +6 -13
- package/package.json +8 -8
|
@@ -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(() => {
|
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);
|
|
@@ -1635,17 +1634,6 @@
|
|
|
1635
1634
|
}
|
|
1636
1635
|
}
|
|
1637
1636
|
}
|
|
1638
|
-
.focus-visible\:ring-2 {
|
|
1639
|
-
&:focus-visible {
|
|
1640
|
-
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentColor);
|
|
1641
|
-
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1642
|
-
}
|
|
1643
|
-
}
|
|
1644
|
-
.focus-visible\:ring-fd-ring {
|
|
1645
|
-
&:focus-visible {
|
|
1646
|
-
--tw-ring-color: var(--color-fd-ring);
|
|
1647
|
-
}
|
|
1648
|
-
}
|
|
1649
1637
|
.focus-visible\:outline-none {
|
|
1650
1638
|
&:focus-visible {
|
|
1651
1639
|
--tw-outline-style: none;
|
|
@@ -1662,6 +1650,11 @@
|
|
|
1662
1650
|
opacity: 50%;
|
|
1663
1651
|
}
|
|
1664
1652
|
}
|
|
1653
|
+
.has-focus-visible\:bg-fd-accent {
|
|
1654
|
+
&:has(*:focus-visible) {
|
|
1655
|
+
background-color: var(--color-fd-accent);
|
|
1656
|
+
}
|
|
1657
|
+
}
|
|
1665
1658
|
.data-\[active\=true\]\:font-medium {
|
|
1666
1659
|
&[data-active="true"] {
|
|
1667
1660
|
--tw-font-weight: var(--font-weight-medium);
|
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": {
|