File tree Expand file tree Collapse file tree 8 files changed +163
-132
lines changed Expand file tree Collapse file tree 8 files changed +163
-132
lines changed Original file line number Diff line number Diff line change 24
24
"eslint-plugin-de-morgan" : " ^1.2.1" ,
25
25
"eslint-plugin-function" : " ^0.0.21" ,
26
26
"eslint-plugin-jsdoc" : " ^50.6.9" ,
27
- "eslint-plugin-perfectionist" : " ^4.12.0 " ,
27
+ "eslint-plugin-perfectionist" : " ^4.12.1 " ,
28
28
"eslint-plugin-regexp" : " ^2.7.0" ,
29
29
"eslint-plugin-unicorn" : " ^58.0.0" ,
30
30
"typescript-eslint" : " ^8.31.0"
Original file line number Diff line number Diff line change 34
34
"@typescript-eslint/utils" : " ^8.31.0" ,
35
35
"eslint-plugin-de-morgan" : " ^1.2.1" ,
36
36
"eslint-plugin-jsdoc" : " ^50.6.9" ,
37
- "eslint-plugin-perfectionist" : " ^4.12.0 " ,
37
+ "eslint-plugin-perfectionist" : " ^4.12.1 " ,
38
38
"eslint-plugin-regexp" : " ^2.7.0" ,
39
39
"eslint-plugin-unicorn" : " ^58.0.0" ,
40
40
"string-ts" : " ^2.2.1" ,
Original file line number Diff line number Diff line change
1
+ import { Callout } from "#/components/ui/Callout" ;
1
2
import { source } from "#/lib/source" ;
2
3
import { Popup , PopupContent , PopupTrigger } from "fumadocs-twoslash/ui" ;
3
4
import { Tab , Tabs } from "fumadocs-ui/components/tabs" ;
@@ -8,6 +9,7 @@ import { notFound } from "next/navigation";
8
9
9
10
const mdxComponents = {
10
11
...defaultMdxComponents ,
12
+ Callout,
11
13
Popup,
12
14
PopupContent,
13
15
PopupTrigger,
Original file line number Diff line number Diff line change
1
+ .fd-callout .min-w-0 .flex-1 {
2
+ display : flex;
3
+ flex-flow : column;
4
+ gap : calc (var (--spacing ) * 2 );
5
+ }
6
+
7
+ .fd-callout .min-w-0 .flex-1 > * {
8
+ margin-top : 0 ;
9
+ margin-bottom : 0 ;
10
+ }
11
+
1
12
[aria-roledescription = "flowchart-v2" ] span .nodeLabel {
2
13
filter : brightness (0.5 );
3
14
}
Original file line number Diff line number Diff line change
1
+ import type { Pretty } from "@eslint-react/eff" ;
2
+ import type React from "react" ;
3
+ import { cn } from "#/lib/cn" ;
4
+ import { Callout as FDCallout } from "fumadocs-ui/components/callout" ;
5
+
6
+ export type CalloutProps = Pretty < Parameters < typeof FDCallout > [ 0 ] > & { ref ?: React . RefObject < HTMLDivElement | null > } ;
7
+
8
+ export function Callout ( { children, className, ...props } : CalloutProps ) {
9
+ return (
10
+ < FDCallout className = { cn ( "fd-callout" , className ) } { ...props } >
11
+ { children }
12
+ </ FDCallout >
13
+ ) ;
14
+ }
Original file line number Diff line number Diff line change 11
11
},
12
12
"dependencies" : {
13
13
"@chevrotain/regexp-to-ast" : " ^11.0.3" ,
14
+ "@eslint-react/eff" : " workspace:*" ,
14
15
"bsky-react-post" : " ^0.1.7" ,
15
16
"clsx" : " ^2.1.1" ,
16
17
"fumadocs-core" : " 15.2.9" ,
51
52
"eslint" : " ^9.25.1" ,
52
53
"eslint-plugin-de-morgan" : " ^1.2.1" ,
53
54
"eslint-plugin-import-x" : " ^4.10.6" ,
54
- "eslint-plugin-perfectionist" : " ^4.12.0 " ,
55
+ "eslint-plugin-perfectionist" : " ^4.12.1 " ,
55
56
"eslint-plugin-react-hooks" : " ^5.2.0" ,
56
57
"eslint-plugin-react-refresh" : " ^0.4.20" ,
57
58
"eslint-plugin-unicorn" : " ^58.0.0" ,
Original file line number Diff line number Diff line change 69
69
"cspell" : " ^8.19.2" ,
70
70
"dedent" : " ^1.5.3" ,
71
71
"dprint" : " ^0.49.1" ,
72
- "esbuild" : " ^0.25.2 " ,
72
+ "esbuild" : " ^0.25.3 " ,
73
73
"eslint" : " ^9.25.1" ,
74
74
"eslint-config-flat-gitignore" : " ^2.1.0" ,
75
75
"eslint-plugin-vitest" : " ^0.5.4" ,
112
112
"@types/react" : " ^19.1.2" ,
113
113
"@types/react-dom" : " ^19.1.2" ,
114
114
"cross-spawn" : " ^7.0.6" ,
115
- "esbuild" : " ^0.25.2 " ,
115
+ "esbuild" : " ^0.25.3 " ,
116
116
"lucide-react" : " ^0.503.0" ,
117
117
"next" : " ^15.3.1" ,
118
118
"react" : " ^19.1.0" ,
You can’t perform that action at this time.
0 commit comments