fumadocs-ui 16.7.1 → 16.7.3
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/css/generated/docs.css +5 -9
- package/css/generated/flux.css +5 -7
- package/css/generated/home.css +2 -3
- package/css/generated/notebook.css +6 -6
- package/css/generated/shared.css +25 -9
- package/dist/components/sidebar/base.d.ts +12 -2
- package/dist/components/sidebar/base.js +14 -1
- package/dist/components/tabs.d.ts +3 -4
- package/dist/components/tabs.js +12 -13
- package/dist/components/toc/clerk.js +65 -29
- package/dist/components/toc/default.js +5 -3
- package/dist/components/toc/index.d.ts +4 -2
- package/dist/components/toc/index.js +46 -19
- package/dist/components/ui/collapsible.d.ts +8 -4
- package/dist/components/ui/collapsible.js +3 -5
- package/dist/components/ui/navigation-menu.d.ts +20 -4
- package/dist/components/ui/navigation-menu.js +31 -30
- package/dist/components/ui/popover.d.ts +7 -1
- package/dist/components/ui/popover.js +10 -10
- package/dist/components/ui/scroll-area.d.ts +16 -3
- package/dist/components/ui/scroll-area.js +28 -28
- package/dist/layouts/docs/client.d.ts +3 -3
- package/dist/layouts/docs/client.js +19 -22
- package/dist/layouts/docs/index.d.ts +1 -1
- package/dist/layouts/docs/page/index.d.ts +91 -3
- package/dist/layouts/docs/page/index.js +67 -7
- package/dist/layouts/docs/page/slots/breadcrumb.js +1 -0
- package/dist/layouts/docs/page/slots/container.js +2 -1
- package/dist/layouts/docs/page/slots/footer.js +1 -0
- package/dist/layouts/docs/page/slots/toc.js +3 -3
- package/dist/layouts/docs/slots/container.js +1 -0
- package/dist/layouts/docs/slots/header.js +1 -0
- package/dist/layouts/docs/slots/sidebar.js +6 -15
- package/dist/layouts/flux/index.d.ts +4 -4
- package/dist/layouts/flux/index.js +8 -11
- package/dist/layouts/flux/page/index.d.ts +79 -3
- package/dist/layouts/flux/page/index.js +61 -7
- package/dist/layouts/flux/page/slots/breadcrumb.js +1 -0
- package/dist/layouts/flux/page/slots/container.js +2 -1
- package/dist/layouts/flux/page/slots/footer.js +1 -0
- package/dist/layouts/flux/page/slots/toc.d.ts +4 -1
- package/dist/layouts/flux/page/slots/toc.js +6 -6
- package/dist/layouts/flux/slots/container.js +1 -0
- package/dist/layouts/flux/slots/sidebar.js +7 -12
- package/dist/layouts/home/index.d.ts +3 -3
- package/dist/layouts/home/index.js +6 -8
- package/dist/layouts/home/navbar.d.ts +2 -4
- package/dist/layouts/home/slots/container.js +1 -0
- package/dist/layouts/home/slots/header.js +4 -4
- package/dist/layouts/notebook/client.d.ts +3 -3
- package/dist/layouts/notebook/client.js +14 -17
- package/dist/layouts/notebook/index.d.ts +1 -1
- package/dist/layouts/notebook/page/index.d.ts +91 -3
- package/dist/layouts/notebook/page/index.js +67 -7
- package/dist/layouts/notebook/page/slots/breadcrumb.js +1 -0
- package/dist/layouts/notebook/page/slots/container.js +2 -1
- package/dist/layouts/notebook/page/slots/footer.js +1 -0
- package/dist/layouts/notebook/page/slots/toc.js +3 -3
- package/dist/layouts/notebook/slots/container.js +1 -0
- package/dist/layouts/notebook/slots/sidebar.d.ts +1 -10
- package/dist/layouts/notebook/slots/sidebar.js +7 -16
- package/dist/layouts/shared/client.d.ts +6 -6
- package/dist/layouts/shared/client.js +4 -4
- package/dist/layouts/shared/index.d.ts +3 -3
- package/dist/layouts/shared/page-actions.d.ts +2 -2
- package/dist/layouts/shared/page-actions.js +3 -3
- package/dist/page.d.ts +1 -2
- package/dist/page.js +1 -2
- package/dist/style.css +109 -43
- package/package.json +3 -3
- package/dist/layouts/docs/page/client.d.ts +0 -98
- package/dist/layouts/docs/page/client.js +0 -110
- package/dist/layouts/flux/page/client.d.ts +0 -82
- package/dist/layouts/flux/page/client.js +0 -94
- package/dist/layouts/notebook/page/client.d.ts +0 -98
- package/dist/layouts/notebook/page/client.js +0 -110
package/css/generated/docs.css
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
@source inline("!isActive");
|
|
2
2
|
@source inline("!showItem");
|
|
3
3
|
@source inline("*:col-start-1");
|
|
4
|
-
@source inline("*:first:mt-0.5");
|
|
5
|
-
@source inline("*:flex!");
|
|
6
|
-
@source inline("*:flex-col!");
|
|
7
|
-
@source inline("*:gap-0.5!");
|
|
8
4
|
@source inline("*:my-auto");
|
|
9
5
|
@source inline("*:pointer-events-auto");
|
|
10
6
|
@source inline("*:row-start-1");
|
|
@@ -81,6 +77,7 @@
|
|
|
81
77
|
@source inline("border-t");
|
|
82
78
|
@source inline("border-transparent");
|
|
83
79
|
@source inline("breadcrumb");
|
|
80
|
+
@source inline("breadcrumbEnabled");
|
|
84
81
|
@source inline("button");
|
|
85
82
|
@source inline("buttonVariants");
|
|
86
83
|
@source inline("children");
|
|
@@ -97,6 +94,7 @@
|
|
|
97
94
|
@source inline("collapsible");
|
|
98
95
|
@source inline("collapsing");
|
|
99
96
|
@source inline("color");
|
|
97
|
+
@source inline("component");
|
|
100
98
|
@source inline("components");
|
|
101
99
|
@source inline("const");
|
|
102
100
|
@source inline("container");
|
|
@@ -165,6 +163,7 @@
|
|
|
165
163
|
@source inline("font-medium");
|
|
166
164
|
@source inline("font-semibold");
|
|
167
165
|
@source inline("footer");
|
|
166
|
+
@source inline("footerEnabled");
|
|
168
167
|
@source inline("footerList");
|
|
169
168
|
@source inline("for");
|
|
170
169
|
@source inline("from");
|
|
@@ -241,12 +240,10 @@
|
|
|
241
240
|
@source inline("layoutTabs");
|
|
242
241
|
@source inline("leading-none");
|
|
243
242
|
@source inline("length");
|
|
244
|
-
@source inline("let");
|
|
245
243
|
@source inline("link");
|
|
246
244
|
@source inline("linkItems");
|
|
247
245
|
@source inline("lucide-react");
|
|
248
246
|
@source inline("main");
|
|
249
|
-
@source inline("maskImage");
|
|
250
247
|
@source inline("max");
|
|
251
248
|
@source inline("max-h-[50vh]");
|
|
252
249
|
@source inline("max-md:hidden");
|
|
@@ -271,7 +268,6 @@
|
|
|
271
268
|
@source inline("mergeRefs");
|
|
272
269
|
@source inline("min");
|
|
273
270
|
@source inline("min-h-(--fd-docs-height)");
|
|
274
|
-
@source inline("min-h-0");
|
|
275
271
|
@source inline("mode");
|
|
276
272
|
@source inline("ms-auto");
|
|
277
273
|
@source inline("mt-1");
|
|
@@ -310,7 +306,6 @@
|
|
|
310
306
|
@source inline("option");
|
|
311
307
|
@source inline("overflow-auto");
|
|
312
308
|
@source inline("overflow-x-clip");
|
|
313
|
-
@source inline("overscroll-contain");
|
|
314
309
|
@source inline("p");
|
|
315
310
|
@source inline("p-0");
|
|
316
311
|
@source inline("p-0.5");
|
|
@@ -339,6 +334,7 @@
|
|
|
339
334
|
@source inline("provided");
|
|
340
335
|
@source inline("provider");
|
|
341
336
|
@source inline("ps-4");
|
|
337
|
+
@source inline("pt-0.5");
|
|
342
338
|
@source inline("pt-12");
|
|
343
339
|
@source inline("pt-2");
|
|
344
340
|
@source inline("pt-3");
|
|
@@ -374,6 +370,7 @@
|
|
|
374
370
|
@source inline("showItem");
|
|
375
371
|
@source inline("shrink-0");
|
|
376
372
|
@source inline("sidebar");
|
|
373
|
+
@source inline("sidebarEnabled");
|
|
377
374
|
@source inline("sidebarProps");
|
|
378
375
|
@source inline("single");
|
|
379
376
|
@source inline("size");
|
|
@@ -480,7 +477,6 @@
|
|
|
480
477
|
@source inline("w-4");
|
|
481
478
|
@source inline("w-[85%]");
|
|
482
479
|
@source inline("w-full");
|
|
483
|
-
@source inline("white");
|
|
484
480
|
@source inline("wrap-anywhere");
|
|
485
481
|
@source inline("xl:hidden");
|
|
486
482
|
@source inline("xl:layout:[--fd-toc-width:268px]");
|
package/css/generated/flux.css
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@source inline("!enabled");
|
|
2
2
|
@source inline("!isActive");
|
|
3
3
|
@source inline("!open");
|
|
4
|
+
@source inline("*:gap-0!");
|
|
4
5
|
@source inline("*:rounded-lg");
|
|
5
6
|
@source inline("---spacing");
|
|
6
7
|
@source inline("--fd-toc-width");
|
|
@@ -53,6 +54,7 @@
|
|
|
53
54
|
@source inline("bottom-0");
|
|
54
55
|
@source inline("bottom-26");
|
|
55
56
|
@source inline("breadcrumb");
|
|
57
|
+
@source inline("breadcrumbEnabled");
|
|
56
58
|
@source inline("button");
|
|
57
59
|
@source inline("buttonVariants");
|
|
58
60
|
@source inline("children");
|
|
@@ -68,6 +70,7 @@
|
|
|
68
70
|
@source inline("collapsed");
|
|
69
71
|
@source inline("collapsible");
|
|
70
72
|
@source inline("color");
|
|
73
|
+
@source inline("component");
|
|
71
74
|
@source inline("components");
|
|
72
75
|
@source inline("const");
|
|
73
76
|
@source inline("container");
|
|
@@ -131,6 +134,7 @@
|
|
|
131
134
|
@source inline("font-medium");
|
|
132
135
|
@source inline("font-semibold");
|
|
133
136
|
@source inline("footer");
|
|
137
|
+
@source inline("footerEnabled");
|
|
134
138
|
@source inline("footerList");
|
|
135
139
|
@source inline("for");
|
|
136
140
|
@source inline("from");
|
|
@@ -201,7 +205,6 @@
|
|
|
201
205
|
@source inline("leading-none");
|
|
202
206
|
@source inline("left-1/2");
|
|
203
207
|
@source inline("length");
|
|
204
|
-
@source inline("let");
|
|
205
208
|
@source inline("lg:text-sm");
|
|
206
209
|
@source inline("link");
|
|
207
210
|
@source inline("linkItems");
|
|
@@ -209,7 +212,6 @@
|
|
|
209
212
|
@source inline("lucide-react");
|
|
210
213
|
@source inline("main");
|
|
211
214
|
@source inline("mask-[linear-gradient(to_bottom,transparent,white_--spacing(14),white_calc(100%---spacing(14)),transparent)]");
|
|
212
|
-
@source inline("maskImage");
|
|
213
215
|
@source inline("max");
|
|
214
216
|
@source inline("max-h-[50vh]");
|
|
215
217
|
@source inline("max-w-[1200px]");
|
|
@@ -265,7 +267,6 @@
|
|
|
265
267
|
@source inline("overflow-x-clip");
|
|
266
268
|
@source inline("overflow-y-auto");
|
|
267
269
|
@source inline("overflow-y-hidden");
|
|
268
|
-
@source inline("overscroll-contain");
|
|
269
270
|
@source inline("p");
|
|
270
271
|
@source inline("p-1");
|
|
271
272
|
@source inline("p-1.5");
|
|
@@ -384,7 +385,6 @@
|
|
|
384
385
|
@source inline("toc");
|
|
385
386
|
@source inline("tocEnabled");
|
|
386
387
|
@source inline("tocProps");
|
|
387
|
-
@source inline("tocProvider");
|
|
388
388
|
@source inline("tool");
|
|
389
389
|
@source inline("top-0");
|
|
390
390
|
@source inline("transform");
|
|
@@ -404,7 +404,6 @@
|
|
|
404
404
|
@source inline("under");
|
|
405
405
|
@source inline("url");
|
|
406
406
|
@source inline("use");
|
|
407
|
-
@source inline("useActiveAnchor");
|
|
408
407
|
@source inline("useDocsPage");
|
|
409
408
|
@source inline("useFluxLayout");
|
|
410
409
|
@source inline("useFooterItems");
|
|
@@ -416,17 +415,16 @@
|
|
|
416
415
|
@source inline("useSearchContext");
|
|
417
416
|
@source inline("useSidebar");
|
|
418
417
|
@source inline("useState");
|
|
419
|
-
@source inline("useTOCItems");
|
|
420
418
|
@source inline("useTreePath");
|
|
421
419
|
@source inline("value");
|
|
422
420
|
@source inline("variant");
|
|
423
421
|
@source inline("variants");
|
|
424
422
|
@source inline("viewBox");
|
|
423
|
+
@source inline("viewport");
|
|
425
424
|
@source inline("void");
|
|
426
425
|
@source inline("w-[calc(100%-var(--removed-body-scroll-bar-size,0px))]");
|
|
427
426
|
@source inline("w-full");
|
|
428
427
|
@source inline("wait");
|
|
429
|
-
@source inline("white");
|
|
430
428
|
@source inline("wrap-anywhere");
|
|
431
429
|
@source inline("xl:layout:[--fd-toc-width:268px]");
|
|
432
430
|
@source inline("xl:pt-14");
|
package/css/generated/home.css
CHANGED
|
@@ -31,7 +31,6 @@
|
|
|
31
31
|
@source inline("component");
|
|
32
32
|
@source inline("const");
|
|
33
33
|
@source inline("container");
|
|
34
|
-
@source inline("content");
|
|
35
34
|
@source inline("context");
|
|
36
35
|
@source inline("createContext");
|
|
37
36
|
@source inline("custom");
|
|
@@ -101,9 +100,9 @@
|
|
|
101
100
|
@source inline("justify-end");
|
|
102
101
|
@source inline("key");
|
|
103
102
|
@source inline("label");
|
|
103
|
+
@source inline("languageSelect");
|
|
104
104
|
@source inline("last:me-0");
|
|
105
105
|
@source inline("length");
|
|
106
|
-
@source inline("let");
|
|
107
106
|
@source inline("lg:grid-cols-3");
|
|
108
107
|
@source inline("lg:hidden");
|
|
109
108
|
@source inline("linkItems");
|
|
@@ -160,11 +159,11 @@
|
|
|
160
159
|
@source inline("rest");
|
|
161
160
|
@source inline("return");
|
|
162
161
|
@source inline("role");
|
|
163
|
-
@source inline("root");
|
|
164
162
|
@source inline("rounded-full");
|
|
165
163
|
@source inline("rounded-lg");
|
|
166
164
|
@source inline("rounded-md");
|
|
167
165
|
@source inline("searchToggle");
|
|
166
|
+
@source inline("searchTrigger");
|
|
168
167
|
@source inline("secondary");
|
|
169
168
|
@source inline("separator");
|
|
170
169
|
@source inline("setValue");
|
|
@@ -83,6 +83,7 @@
|
|
|
83
83
|
@source inline("border-t");
|
|
84
84
|
@source inline("border-transparent");
|
|
85
85
|
@source inline("breadcrumb");
|
|
86
|
+
@source inline("breadcrumbEnabled");
|
|
86
87
|
@source inline("button");
|
|
87
88
|
@source inline("buttonVariants");
|
|
88
89
|
@source inline("children");
|
|
@@ -100,6 +101,7 @@
|
|
|
100
101
|
@source inline("collapsible");
|
|
101
102
|
@source inline("collapsing");
|
|
102
103
|
@source inline("color");
|
|
104
|
+
@source inline("component");
|
|
103
105
|
@source inline("components");
|
|
104
106
|
@source inline("const");
|
|
105
107
|
@source inline("container");
|
|
@@ -172,6 +174,7 @@
|
|
|
172
174
|
@source inline("font-medium");
|
|
173
175
|
@source inline("font-semibold");
|
|
174
176
|
@source inline("footer");
|
|
177
|
+
@source inline("footerEnabled");
|
|
175
178
|
@source inline("footerList");
|
|
176
179
|
@source inline("for");
|
|
177
180
|
@source inline("freezeUntil");
|
|
@@ -183,6 +186,7 @@
|
|
|
183
186
|
@source inline("fumadocs-core/page-tree");
|
|
184
187
|
@source inline("fumadocs-core/toc");
|
|
185
188
|
@source inline("function");
|
|
189
|
+
@source inline("gap-0.5");
|
|
186
190
|
@source inline("gap-1");
|
|
187
191
|
@source inline("gap-1.5");
|
|
188
192
|
@source inline("gap-2");
|
|
@@ -257,14 +261,12 @@
|
|
|
257
261
|
@source inline("layout:[--fd-header-height:--spacing(14)]");
|
|
258
262
|
@source inline("leading-none");
|
|
259
263
|
@source inline("length");
|
|
260
|
-
@source inline("let");
|
|
261
264
|
@source inline("lg:hidden");
|
|
262
265
|
@source inline("lg:layout:[--fd-header-height:--spacing(24)]");
|
|
263
266
|
@source inline("link");
|
|
264
267
|
@source inline("linkItems");
|
|
265
268
|
@source inline("lucide-react");
|
|
266
269
|
@source inline("main");
|
|
267
|
-
@source inline("maskImage");
|
|
268
270
|
@source inline("max");
|
|
269
271
|
@source inline("max-h-[50vh]");
|
|
270
272
|
@source inline("max-lg:flex");
|
|
@@ -278,7 +280,7 @@
|
|
|
278
280
|
@source inline("max-xl:layout:[--fd-toc-popover-height:--spacing(10)]");
|
|
279
281
|
@source inline("maxTouchPoints");
|
|
280
282
|
@source inline("mb-1.5");
|
|
281
|
-
@source inline("mb-
|
|
283
|
+
@source inline("mb-3");
|
|
282
284
|
@source inline("mb-8");
|
|
283
285
|
@source inline("mb-auto");
|
|
284
286
|
@source inline("md:gap-2");
|
|
@@ -294,7 +296,6 @@
|
|
|
294
296
|
@source inline("mergeRefs");
|
|
295
297
|
@source inline("min");
|
|
296
298
|
@source inline("min-h-(--fd-docs-height)");
|
|
297
|
-
@source inline("min-h-0");
|
|
298
299
|
@source inline("mode");
|
|
299
300
|
@source inline("ms-auto");
|
|
300
301
|
@source inline("mt-1");
|
|
@@ -340,7 +341,6 @@
|
|
|
340
341
|
@source inline("options");
|
|
341
342
|
@source inline("overflow-x-auto");
|
|
342
343
|
@source inline("overflow-x-clip");
|
|
343
|
-
@source inline("overscroll-contain");
|
|
344
344
|
@source inline("p");
|
|
345
345
|
@source inline("p-1");
|
|
346
346
|
@source inline("p-1.5");
|
|
@@ -368,6 +368,7 @@
|
|
|
368
368
|
@source inline("provided");
|
|
369
369
|
@source inline("provider");
|
|
370
370
|
@source inline("ps-2.5");
|
|
371
|
+
@source inline("pt-0.5");
|
|
371
372
|
@source inline("pt-12");
|
|
372
373
|
@source inline("pt-2");
|
|
373
374
|
@source inline("px-2");
|
|
@@ -513,7 +514,6 @@
|
|
|
513
514
|
@source inline("w-4");
|
|
514
515
|
@source inline("w-[85%]");
|
|
515
516
|
@source inline("w-full");
|
|
516
|
-
@source inline("white");
|
|
517
517
|
@source inline("window");
|
|
518
518
|
@source inline("wrap-anywhere");
|
|
519
519
|
@source inline("xl:hidden");
|
package/css/generated/shared.css
CHANGED
|
@@ -7,7 +7,10 @@
|
|
|
7
7
|
@source inline("*:border-b");
|
|
8
8
|
@source inline("*:data-[empty=true]:border-b-0");
|
|
9
9
|
@source inline("*:flex");
|
|
10
|
+
@source inline("*:flex!");
|
|
10
11
|
@source inline("*:flex-col");
|
|
12
|
+
@source inline("*:flex-col!");
|
|
13
|
+
@source inline("*:gap-0.5!");
|
|
11
14
|
@source inline("*:has-[+:last-child[data-empty=true]]:border-b-0");
|
|
12
15
|
@source inline("*:last:border-b-0");
|
|
13
16
|
@source inline("*:rounded-full");
|
|
@@ -101,6 +104,8 @@
|
|
|
101
104
|
@source inline("at");
|
|
102
105
|
@source inline("attribute");
|
|
103
106
|
@source inline("await");
|
|
107
|
+
@source inline("b1");
|
|
108
|
+
@source inline("b2");
|
|
104
109
|
@source inline("backdrop-blur-lg");
|
|
105
110
|
@source inline("backdrop-blur-xs");
|
|
106
111
|
@source inline("background");
|
|
@@ -132,6 +137,7 @@
|
|
|
132
137
|
@source inline("bg-fd-primary/10");
|
|
133
138
|
@source inline("bg-fd-secondary");
|
|
134
139
|
@source inline("bg-fd-secondary/50");
|
|
140
|
+
@source inline("bg-linear-to-t");
|
|
135
141
|
@source inline("bg-transparent");
|
|
136
142
|
@source inline("bind");
|
|
137
143
|
@source inline("binded");
|
|
@@ -178,6 +184,7 @@
|
|
|
178
184
|
@source inline("client-side");
|
|
179
185
|
@source inline("clientHeight");
|
|
180
186
|
@source inline("clientWidth");
|
|
187
|
+
@source inline("clipPath");
|
|
181
188
|
@source inline("clone");
|
|
182
189
|
@source inline("close");
|
|
183
190
|
@source inline("closeOnRedirect");
|
|
@@ -218,6 +225,7 @@
|
|
|
218
225
|
@source inline("custom");
|
|
219
226
|
@source inline("customise");
|
|
220
227
|
@source inline("cva");
|
|
228
|
+
@source inline("d");
|
|
221
229
|
@source inline("dangerouslySetInnerHTML");
|
|
222
230
|
@source inline("dark");
|
|
223
231
|
@source inline("dark:bg-(--shiki-dark-bg)");
|
|
@@ -283,6 +291,7 @@
|
|
|
283
291
|
@source inline("defineI18nUI");
|
|
284
292
|
@source inline("defined");
|
|
285
293
|
@source inline("delay");
|
|
294
|
+
@source inline("delay-25");
|
|
286
295
|
@source inline("dependencies");
|
|
287
296
|
@source inline("depends");
|
|
288
297
|
@source inline("deprecated");
|
|
@@ -313,7 +322,6 @@
|
|
|
313
322
|
@source inline("duration-200");
|
|
314
323
|
@source inline("duration-300");
|
|
315
324
|
@source inline("duration-400");
|
|
316
|
-
@source inline("ease-linear");
|
|
317
325
|
@source inline("editOnGithub");
|
|
318
326
|
@source inline("element");
|
|
319
327
|
@source inline("else");
|
|
@@ -322,6 +330,7 @@
|
|
|
322
330
|
@source inline("en");
|
|
323
331
|
@source inline("enableSystem");
|
|
324
332
|
@source inline("enabled");
|
|
333
|
+
@source inline("end");
|
|
325
334
|
@source inline("end-2");
|
|
326
335
|
@source inline("endpoint");
|
|
327
336
|
@source inline("environment");
|
|
@@ -374,7 +383,6 @@
|
|
|
374
383
|
@source inline("for");
|
|
375
384
|
@source inline("forceMount");
|
|
376
385
|
@source inline("forks");
|
|
377
|
-
@source inline("forwardRef");
|
|
378
386
|
@source inline("found");
|
|
379
387
|
@source inline("fragment");
|
|
380
388
|
@source inline("framework");
|
|
@@ -456,6 +464,7 @@
|
|
|
456
464
|
@source inline("hover:bg-fd-accent");
|
|
457
465
|
@source inline("hover:bg-fd-accent/80");
|
|
458
466
|
@source inline("hover:bg-fd-primary/80");
|
|
467
|
+
@source inline("hover:delay-0");
|
|
459
468
|
@source inline("hover:text-fd-accent-foreground");
|
|
460
469
|
@source inline("hovered");
|
|
461
470
|
@source inline("href");
|
|
@@ -468,6 +477,7 @@
|
|
|
468
477
|
@source inline("iconClass");
|
|
469
478
|
@source inline("id");
|
|
470
479
|
@source inline("idea");
|
|
480
|
+
@source inline("ids");
|
|
471
481
|
@source inline("idx");
|
|
472
482
|
@source inline("if");
|
|
473
483
|
@source inline("if-needed");
|
|
@@ -558,6 +568,7 @@
|
|
|
558
568
|
@source inline("mark");
|
|
559
569
|
@source inline("markdownUrl");
|
|
560
570
|
@source inline("marked");
|
|
571
|
+
@source inline("mask-[linear-gradient(to_bottom,transparent,white_12px,white_calc(100%-12px),transparent)]");
|
|
561
572
|
@source inline("mask-[linear-gradient(to_bottom,transparent,white_16px,white_calc(100%-16px),transparent)]");
|
|
562
573
|
@source inline("mask-[linear-gradient(to_bottom,white,white_30px,transparent_80px)]");
|
|
563
574
|
@source inline("maskComposite");
|
|
@@ -706,6 +717,7 @@
|
|
|
706
717
|
@source inline("overflow-x-hidden");
|
|
707
718
|
@source inline("overflow-y-auto");
|
|
708
719
|
@source inline("override");
|
|
720
|
+
@source inline("overscroll-contain");
|
|
709
721
|
@source inline("own");
|
|
710
722
|
@source inline("owner");
|
|
711
723
|
@source inline("p");
|
|
@@ -716,6 +728,7 @@
|
|
|
716
728
|
@source inline("p-2");
|
|
717
729
|
@source inline("p-3");
|
|
718
730
|
@source inline("p-4");
|
|
731
|
+
@source inline("pOffset");
|
|
719
732
|
@source inline("padding");
|
|
720
733
|
@source inline("paddingInlineStart");
|
|
721
734
|
@source inline("page");
|
|
@@ -837,7 +850,7 @@
|
|
|
837
850
|
@source inline("round");
|
|
838
851
|
@source inline("rounded-2xl");
|
|
839
852
|
@source inline("rounded-[inherit]");
|
|
840
|
-
@source inline("rounded-e-
|
|
853
|
+
@source inline("rounded-e-full");
|
|
841
854
|
@source inline("rounded-full");
|
|
842
855
|
@source inline("rounded-lg");
|
|
843
856
|
@source inline("rounded-md");
|
|
@@ -846,7 +859,6 @@
|
|
|
846
859
|
@source inline("router");
|
|
847
860
|
@source inline("row");
|
|
848
861
|
@source inline("rtl");
|
|
849
|
-
@source inline("rtl:-scale-x-100");
|
|
850
862
|
@source inline("rtl:rotate-180");
|
|
851
863
|
@source inline("rtl:rotate-90");
|
|
852
864
|
@source inline("s");
|
|
@@ -909,6 +921,7 @@
|
|
|
909
921
|
@source inline("since");
|
|
910
922
|
@source inline("single");
|
|
911
923
|
@source inline("size");
|
|
924
|
+
@source inline("size-1");
|
|
912
925
|
@source inline("size-3");
|
|
913
926
|
@source inline("size-3.5");
|
|
914
927
|
@source inline("size-4");
|
|
@@ -937,7 +950,7 @@
|
|
|
937
950
|
@source inline("string");
|
|
938
951
|
@source inline("stroke");
|
|
939
952
|
@source inline("stroke-fd-foreground/10");
|
|
940
|
-
@source inline("stroke-
|
|
953
|
+
@source inline("stroke-fd-primary");
|
|
941
954
|
@source inline("strokeLinecap");
|
|
942
955
|
@source inline("strokeLinejoin");
|
|
943
956
|
@source inline("strokeWidth");
|
|
@@ -950,9 +963,11 @@
|
|
|
950
963
|
@source inline("supposed");
|
|
951
964
|
@source inline("sure");
|
|
952
965
|
@source inline("svg");
|
|
966
|
+
@source inline("svgRef");
|
|
953
967
|
@source inline("switch");
|
|
954
968
|
@source inline("system");
|
|
955
969
|
@source inline("t");
|
|
970
|
+
@source inline("t2");
|
|
956
971
|
@source inline("tab");
|
|
957
972
|
@source inline("tabIndex");
|
|
958
973
|
@source inline("table");
|
|
@@ -1016,6 +1031,7 @@
|
|
|
1016
1031
|
@source inline("top-4");
|
|
1017
1032
|
@source inline("touch");
|
|
1018
1033
|
@source inline("transform");
|
|
1034
|
+
@source inline("transition-[clip-path]");
|
|
1019
1035
|
@source inline("transition-[height]");
|
|
1020
1036
|
@source inline("transition-[top,height]");
|
|
1021
1037
|
@source inline("transition-[width,height]");
|
|
@@ -1023,6 +1039,8 @@
|
|
|
1023
1039
|
@source inline("transition-colors");
|
|
1024
1040
|
@source inline("transition-opacity");
|
|
1025
1041
|
@source inline("transition-transform");
|
|
1042
|
+
@source inline("translate");
|
|
1043
|
+
@source inline("translate-y-1/2");
|
|
1026
1044
|
@source inline("translations");
|
|
1027
1045
|
@source inline("transparent");
|
|
1028
1046
|
@source inline("tree");
|
|
@@ -1088,6 +1106,7 @@
|
|
|
1088
1106
|
@source inline("variants");
|
|
1089
1107
|
@source inline("vertical");
|
|
1090
1108
|
@source inline("via");
|
|
1109
|
+
@source inline("via-fd-primary");
|
|
1091
1110
|
@source inline("viewBox");
|
|
1092
1111
|
@source inline("viewRef");
|
|
1093
1112
|
@source inline("viewport");
|
|
@@ -1124,11 +1143,8 @@
|
|
|
1124
1143
|
@source inline("wrapElement");
|
|
1125
1144
|
@source inline("wrapInSuspense");
|
|
1126
1145
|
@source inline("wrapped");
|
|
1127
|
-
@source inline("x1");
|
|
1128
|
-
@source inline("x2");
|
|
1129
1146
|
@source inline("xmlns");
|
|
1130
|
-
@source inline("
|
|
1131
|
-
@source inline("y2");
|
|
1147
|
+
@source inline("y");
|
|
1132
1148
|
@source inline("you");
|
|
1133
1149
|
@source inline("your");
|
|
1134
1150
|
@source inline("z-2");
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CollapsibleContentProps, CollapsibleTriggerProps } from "../ui/collapsible.js";
|
|
2
|
+
import { ScrollArea, ScrollViewport } from "../ui/scroll-area.js";
|
|
2
3
|
import * as react from "react";
|
|
3
4
|
import { ComponentProps, PointerEvent, ReactNode, RefObject } from "react";
|
|
4
5
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
@@ -6,7 +7,7 @@ import { LinkProps } from "fumadocs-core/link";
|
|
|
6
7
|
|
|
7
8
|
//#region src/components/sidebar/base.d.ts
|
|
8
9
|
declare namespace base_d_exports {
|
|
9
|
-
export { SidebarCollapseTrigger, SidebarContent, SidebarDrawerContent, SidebarDrawerOverlay, SidebarFolder, SidebarFolderContent, SidebarFolderLink, SidebarFolderTrigger, SidebarItem, SidebarProvider, SidebarProviderProps, SidebarSeparator, SidebarTrigger, useAutoScroll, useFolder, useFolderDepth, useSidebar };
|
|
10
|
+
export { SidebarCollapseTrigger, SidebarContent, SidebarDrawerContent, SidebarDrawerOverlay, SidebarFolder, SidebarFolderContent, SidebarFolderLink, SidebarFolderTrigger, SidebarItem, SidebarProvider, SidebarProviderProps, SidebarSeparator, SidebarTrigger, SidebarViewport, useAutoScroll, useFolder, useFolderDepth, useSidebar };
|
|
10
11
|
}
|
|
11
12
|
interface SidebarContext {
|
|
12
13
|
open: boolean;
|
|
@@ -63,6 +64,15 @@ declare function SidebarContent({
|
|
|
63
64
|
onPointerLeave: (event: PointerEvent) => void;
|
|
64
65
|
}) => ReactNode;
|
|
65
66
|
}): ReactNode;
|
|
67
|
+
declare function SidebarViewport({
|
|
68
|
+
area,
|
|
69
|
+
viewport,
|
|
70
|
+
children
|
|
71
|
+
}: {
|
|
72
|
+
area?: ComponentProps<typeof ScrollArea>;
|
|
73
|
+
viewport?: ComponentProps<typeof ScrollViewport>;
|
|
74
|
+
children: ReactNode;
|
|
75
|
+
}): react_jsx_runtime0.JSX.Element;
|
|
66
76
|
declare function SidebarDrawerOverlay(props: ComponentProps<'div'>): react_jsx_runtime0.JSX.Element | undefined;
|
|
67
77
|
declare function SidebarDrawerContent({
|
|
68
78
|
className,
|
|
@@ -112,4 +122,4 @@ declare function SidebarCollapseTrigger(props: ComponentProps<'button'>): react_
|
|
|
112
122
|
*/
|
|
113
123
|
declare function useAutoScroll(active: boolean, ref: RefObject<HTMLElement | null>): void;
|
|
114
124
|
//#endregion
|
|
115
|
-
export { SidebarCollapseTrigger, SidebarContent, SidebarDrawerContent, SidebarDrawerOverlay, SidebarFolder, SidebarFolderContent, SidebarFolderLink, SidebarFolderTrigger, SidebarItem, SidebarProvider, SidebarProviderProps, SidebarSeparator, SidebarTrigger, base_d_exports, useAutoScroll, useFolder, useFolderDepth, useSidebar };
|
|
125
|
+
export { SidebarCollapseTrigger, SidebarContent, SidebarDrawerContent, SidebarDrawerOverlay, SidebarFolder, SidebarFolderContent, SidebarFolderLink, SidebarFolderTrigger, SidebarItem, SidebarProvider, SidebarProviderProps, SidebarSeparator, SidebarTrigger, SidebarViewport, base_d_exports, useAutoScroll, useFolder, useFolderDepth, useSidebar };
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { __exportAll } from "../../_virtual/_rolldown/runtime.js";
|
|
3
3
|
import { cn } from "../../utils/cn.js";
|
|
4
4
|
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "../ui/collapsible.js";
|
|
5
|
+
import { ScrollArea, ScrollViewport } from "../ui/scroll-area.js";
|
|
5
6
|
import { createContext, use, useEffect, useMemo, useRef, useState } from "react";
|
|
6
7
|
import { usePathname } from "fumadocs-core/framework";
|
|
7
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -25,6 +26,7 @@ var base_exports = /* @__PURE__ */ __exportAll({
|
|
|
25
26
|
SidebarProvider: () => SidebarProvider,
|
|
26
27
|
SidebarSeparator: () => SidebarSeparator,
|
|
27
28
|
SidebarTrigger: () => SidebarTrigger,
|
|
29
|
+
SidebarViewport: () => SidebarViewport,
|
|
28
30
|
useAutoScroll: () => useAutoScroll,
|
|
29
31
|
useFolder: () => useFolder,
|
|
30
32
|
useFolderDepth: () => useFolderDepth,
|
|
@@ -103,6 +105,17 @@ function SidebarContent({ mode: allowedMode = "full", children }) {
|
|
|
103
105
|
}
|
|
104
106
|
});
|
|
105
107
|
}
|
|
108
|
+
function SidebarViewport({ area, viewport, children }) {
|
|
109
|
+
return /* @__PURE__ */ jsx(ScrollArea, {
|
|
110
|
+
...area,
|
|
111
|
+
className: cn("min-h-0 flex-1", area?.className),
|
|
112
|
+
children: /* @__PURE__ */ jsx(ScrollViewport, {
|
|
113
|
+
...viewport,
|
|
114
|
+
className: cn("*:flex! *:flex-col! *:gap-0.5! p-4 overscroll-contain mask-[linear-gradient(to_bottom,transparent,white_12px,white_calc(100%-12px),transparent)]", viewport?.className),
|
|
115
|
+
children
|
|
116
|
+
})
|
|
117
|
+
});
|
|
118
|
+
}
|
|
106
119
|
function SidebarDrawerOverlay(props) {
|
|
107
120
|
const { open, setOpen, mode } = useSidebar();
|
|
108
121
|
if (mode !== "drawer") return;
|
|
@@ -255,4 +268,4 @@ function useAutoScroll(active, ref) {
|
|
|
255
268
|
]);
|
|
256
269
|
}
|
|
257
270
|
//#endregion
|
|
258
|
-
export { SidebarCollapseTrigger, SidebarContent, SidebarDrawerContent, SidebarDrawerOverlay, SidebarFolder, SidebarFolderContent, SidebarFolderLink, SidebarFolderTrigger, SidebarItem, SidebarProvider, SidebarSeparator, SidebarTrigger, base_exports, useAutoScroll, useFolder, useFolderDepth, useSidebar };
|
|
271
|
+
export { SidebarCollapseTrigger, SidebarContent, SidebarDrawerContent, SidebarDrawerOverlay, SidebarFolder, SidebarFolderContent, SidebarFolderLink, SidebarFolderTrigger, SidebarItem, SidebarProvider, SidebarSeparator, SidebarTrigger, SidebarViewport, base_exports, useAutoScroll, useFolder, useFolderDepth, useSidebar };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { Tabs as Tabs$1, TabsContent as TabsContent$1 } from "./ui/tabs.js";
|
|
1
|
+
import { Tabs as Tabs$1, TabsContent as TabsContent$1, TabsList as TabsList$1, TabsTrigger as TabsTrigger$1 } from "./ui/tabs.js";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
3
|
import { ComponentProps, ReactNode } from "react";
|
|
4
4
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
|
-
import * as _radix_ui_react_tabs0 from "@radix-ui/react-tabs";
|
|
6
5
|
|
|
7
6
|
//#region src/components/tabs.d.ts
|
|
8
7
|
interface TabsProps extends Omit<ComponentProps<typeof Tabs$1>, 'value' | 'onValueChange'> {
|
|
@@ -21,8 +20,8 @@ interface TabsProps extends Omit<ComponentProps<typeof Tabs$1>, 'value' | 'onVal
|
|
|
21
20
|
*/
|
|
22
21
|
label?: ReactNode;
|
|
23
22
|
}
|
|
24
|
-
declare
|
|
25
|
-
declare
|
|
23
|
+
declare function TabsList(props: React$1.ComponentPropsWithRef<typeof TabsList$1>): react_jsx_runtime0.JSX.Element;
|
|
24
|
+
declare function TabsTrigger(props: React$1.ComponentPropsWithRef<typeof TabsTrigger$1>): react_jsx_runtime0.JSX.Element;
|
|
26
25
|
declare function Tabs({
|
|
27
26
|
ref,
|
|
28
27
|
className,
|
package/dist/components/tabs.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn } from "../utils/cn.js";
|
|
3
3
|
import { Tabs as Tabs$1, TabsContent as TabsContent$1, TabsList as TabsList$1, TabsTrigger as TabsTrigger$1 } from "./ui/tabs.js";
|
|
4
|
-
import * as React$1 from "react";
|
|
5
4
|
import { createContext, useContext, useEffect, useId, useMemo, useState } from "react";
|
|
6
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
6
|
//#region src/components/tabs.tsx
|
|
@@ -11,18 +10,18 @@ function useTabContext() {
|
|
|
11
10
|
if (!ctx) throw new Error("You must wrap your component in <Tabs>");
|
|
12
11
|
return ctx;
|
|
13
12
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
})
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
})
|
|
25
|
-
|
|
13
|
+
function TabsList(props) {
|
|
14
|
+
return /* @__PURE__ */ jsx(TabsList$1, {
|
|
15
|
+
...props,
|
|
16
|
+
className: cn("flex gap-3.5 text-fd-secondary-foreground overflow-x-auto px-4 not-prose", props.className)
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
function TabsTrigger(props) {
|
|
20
|
+
return /* @__PURE__ */ jsx(TabsTrigger$1, {
|
|
21
|
+
...props,
|
|
22
|
+
className: cn("inline-flex items-center gap-2 whitespace-nowrap text-fd-muted-foreground border-b border-transparent py-2 text-sm font-medium transition-colors [&_svg]:size-4 hover:text-fd-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=active]:border-fd-primary data-[state=active]:text-fd-primary", props.className)
|
|
23
|
+
});
|
|
24
|
+
}
|
|
26
25
|
function Tabs({ ref, className, items, label, defaultIndex = 0, defaultValue = items ? escapeValue(items[defaultIndex]) : void 0, ...props }) {
|
|
27
26
|
const [value, setValue] = useState(defaultValue);
|
|
28
27
|
const collection = useMemo(() => [], []);
|