fumadocs-ui 15.0.14 → 15.0.15

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.
@@ -1,11 +1,11 @@
1
1
  import type { HTMLAttributes, ReactNode } from 'react';
2
- export declare function Cards(props: HTMLAttributes<HTMLDivElement>): React.ReactElement;
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): React.ReactElement;
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,CACnB,KAAK,EAAE,cAAc,CAAC,cAAc,CAAC,GACpC,KAAK,CAAC,YAAY,CASpB;AAED,MAAM,MAAM,SAAS,GAAG,cAAc,CAAC,WAAW,CAAC,GAAG;IACpD,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,EACnB,IAAI,EACJ,KAAK,EACL,WAAW,EACX,GAAG,KAAK,EACT,EAAE,SAAS,GAAG,KAAK,CAAC,YAAY,CA6BhC"}
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"}
@@ -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-1 gap-4 sm:grid-cols-2', props.className), children: props.children }));
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
@@ -234,6 +234,9 @@
234
234
  }
235
235
  }
236
236
  @layer utilities {
237
+ .\@container {
238
+ container-type: inline-size;
239
+ }
237
240
  .collapse {
238
241
  visibility: collapse;
239
242
  }
@@ -1839,11 +1842,6 @@
1839
1842
  display: none;
1840
1843
  }
1841
1844
  }
1842
- .sm\:grid-cols-2 {
1843
- @media (width >= 40rem) {
1844
- grid-template-columns: repeat(2, minmax(0, 1fr));
1845
- }
1846
- }
1847
1845
  .sm\:flex-row {
1848
1846
  @media (width >= 40rem) {
1849
1847
  flex-direction: row;
@@ -2070,6 +2068,11 @@
2070
2068
  --fd-tocnav-height: 0px;
2071
2069
  }
2072
2070
  }
2071
+ .\@max-lg\:col-span-full {
2072
+ @container (width < 32rem) {
2073
+ grid-column: 1 / -1;
2074
+ }
2075
+ }
2073
2076
  .rtl\:-scale-x-100 {
2074
2077
  &:where(:dir(rtl), [dir="rtl"], [dir="rtl"] *) {
2075
2078
  --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.14",
3
+ "version": "15.0.15",
4
4
  "description": "The framework for building a documentation website in Next.js",
5
5
  "keywords": [
6
6
  "NextJs",
@@ -82,7 +82,7 @@
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.14",
85
+ "fumadocs-core": "15.0.15",
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.14"
93
+ "fumadocs-core": "15.0.15"
94
94
  },
95
95
  "peerDependenciesMeta": {
96
96
  "tailwindcss": {