@fumadocs/base-ui 16.16.1 → 16.17.0
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 +1 -1
- package/css/generated/glass.css +1 -1
- package/css/generated/home.css +1 -1
- package/css/generated/notebook.css +1 -1
- package/css/generated/shared.css +1 -1
- package/css/generated/spacious.css +1 -1
- package/dist/components/callout.js +1 -1
- package/dist/components/codeblock.js +1 -1
- package/dist/components/dialog/search-algolia.js +5 -8
- package/dist/components/dialog/search-default.js +3 -5
- package/dist/components/dialog/search-orama.js +5 -8
- package/dist/components/dialog/search.d.ts +50 -27
- package/dist/components/dialog/search.js +149 -97
- package/dist/components/sidebar/base.d.ts +7 -1
- package/dist/components/sidebar/base.js +10 -1
- package/dist/components/tabs.js +2 -7
- package/dist/components/ui/tabs.d.ts +1 -1
- package/dist/components/ui/tabs.js +44 -25
- package/dist/contexts/search.js +3 -8
- package/dist/contexts/tree.js +4 -4
- package/dist/layouts/docs/client.js +1 -0
- package/dist/layouts/flux/slots/sidebar.d.ts +1 -1
- package/dist/layouts/flux/slots/sidebar.js +9 -11
- package/dist/layouts/glass/slots/sidebar.js +9 -0
- package/dist/layouts/notebook/client.js +1 -0
- package/dist/layouts/shared/client.js +1 -1
- package/dist/layouts/spacious/index.js +1 -1
- package/dist/layouts/spacious/page/index.js +35 -36
- package/dist/layouts/spacious/page/slots/toc.js +4 -4
- package/dist/layouts/spacious/slots/actions.js +5 -6
- package/dist/layouts/spacious/slots/header.js +1 -1
- package/dist/layouts/spacious/slots/sidebar.d.ts +1 -1
- package/dist/layouts/spacious/slots/sidebar.js +3 -3
- package/dist/provider/base.js +3 -25
- package/dist/style.css +203 -40
- package/dist/utils/hotkey.js +29 -0
- package/package.json +8 -11
package/dist/style.css
CHANGED
|
@@ -388,6 +388,9 @@
|
|
|
388
388
|
.top-\[calc\(var\(--fd-banner-height\,0px\)\+var\(--fd-header-height\)\)\] {
|
|
389
389
|
top: calc(var(--fd-banner-height,0px) + var(--fd-header-height));
|
|
390
390
|
}
|
|
391
|
+
.top-full {
|
|
392
|
+
top: 100%;
|
|
393
|
+
}
|
|
391
394
|
.right-2 {
|
|
392
395
|
right: calc(var(--spacing) * 2);
|
|
393
396
|
}
|
|
@@ -537,7 +540,7 @@
|
|
|
537
540
|
color: var(--tw-prose-body);
|
|
538
541
|
max-width: none;
|
|
539
542
|
font-size: calc(1rem * var(--tw-prose-size));
|
|
540
|
-
line-height: calc(1.75rem * var(--tw-prose-size));
|
|
543
|
+
line-height: var(--tw-leading, calc(1.75rem * var(--tw-prose-size)));
|
|
541
544
|
:where([class~="lead"]):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
542
545
|
font-size: 1.25em;
|
|
543
546
|
line-height: 1.6;
|
|
@@ -854,6 +857,12 @@
|
|
|
854
857
|
:where(.prose > :last-child):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
855
858
|
margin-bottom: 0;
|
|
856
859
|
}
|
|
860
|
+
:where(blockquote > :first-child):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
861
|
+
margin-top: 0;
|
|
862
|
+
}
|
|
863
|
+
:where(blockquote > :last-child):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
864
|
+
margin-bottom: 0;
|
|
865
|
+
}
|
|
857
866
|
:where(table):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
858
867
|
font-size: 0.875em;
|
|
859
868
|
line-height: 1.7142857;
|
|
@@ -1121,6 +1130,9 @@
|
|
|
1121
1130
|
.h-\[calc\(var\(--fd-docs-height\)-var\(--fd-docs-row-3\)\)\] {
|
|
1122
1131
|
height: calc(var(--fd-docs-height) - var(--fd-docs-row-3));
|
|
1123
1132
|
}
|
|
1133
|
+
.h-\[calc\(var\(--fd-layout-height\)-var\(--fd-header-height\)-100\%\)\] {
|
|
1134
|
+
height: calc(var(--fd-layout-height) - var(--fd-header-height) - 100%);
|
|
1135
|
+
}
|
|
1124
1136
|
.h-full {
|
|
1125
1137
|
height: 100%;
|
|
1126
1138
|
}
|
|
@@ -1199,6 +1211,9 @@
|
|
|
1199
1211
|
.w-64 {
|
|
1200
1212
|
width: calc(var(--spacing) * 64);
|
|
1201
1213
|
}
|
|
1214
|
+
.w-88 {
|
|
1215
|
+
width: calc(var(--spacing) * 88);
|
|
1216
|
+
}
|
|
1202
1217
|
.w-\[85\%\] {
|
|
1203
1218
|
width: 85%;
|
|
1204
1219
|
}
|
|
@@ -1217,9 +1232,6 @@
|
|
|
1217
1232
|
.w-\[calc\(var\(--anchor-width\)\+--spacing\(2\)\)\] {
|
|
1218
1233
|
width: calc(var(--anchor-width) + calc(var(--spacing) * 2));
|
|
1219
1234
|
}
|
|
1220
|
-
.w-\[min\(22rem\,calc\(100vw-1rem\)\)\] {
|
|
1221
|
-
width: min(22rem, calc(100vw - 1rem));
|
|
1222
|
-
}
|
|
1223
1235
|
.w-fit {
|
|
1224
1236
|
width: fit-content;
|
|
1225
1237
|
}
|
|
@@ -1241,6 +1253,9 @@
|
|
|
1241
1253
|
.max-w-\(--fd-page-width\) {
|
|
1242
1254
|
max-width: var(--fd-page-width);
|
|
1243
1255
|
}
|
|
1256
|
+
.max-w-95 {
|
|
1257
|
+
max-width: calc(var(--spacing) * 95);
|
|
1258
|
+
}
|
|
1244
1259
|
.max-w-\[98vw\] {
|
|
1245
1260
|
max-width: 98vw;
|
|
1246
1261
|
}
|
|
@@ -1365,6 +1380,9 @@
|
|
|
1365
1380
|
.animate-pulse {
|
|
1366
1381
|
animation: var(--animate-pulse);
|
|
1367
1382
|
}
|
|
1383
|
+
.cursor-default {
|
|
1384
|
+
cursor: default;
|
|
1385
|
+
}
|
|
1368
1386
|
.touch-auto {
|
|
1369
1387
|
touch-action: auto;
|
|
1370
1388
|
}
|
|
@@ -1404,6 +1422,9 @@
|
|
|
1404
1422
|
.grid-cols-\[1fr_3fr\] {
|
|
1405
1423
|
grid-template-columns: 1fr 3fr;
|
|
1406
1424
|
}
|
|
1425
|
+
.grid-cols-subgrid {
|
|
1426
|
+
grid-template-columns: subgrid;
|
|
1427
|
+
}
|
|
1407
1428
|
.flex-col {
|
|
1408
1429
|
flex-direction: column;
|
|
1409
1430
|
}
|
|
@@ -1416,6 +1437,9 @@
|
|
|
1416
1437
|
.flex-wrap {
|
|
1417
1438
|
flex-wrap: wrap;
|
|
1418
1439
|
}
|
|
1440
|
+
.items-baseline {
|
|
1441
|
+
align-items: baseline;
|
|
1442
|
+
}
|
|
1419
1443
|
.items-center {
|
|
1420
1444
|
align-items: center;
|
|
1421
1445
|
}
|
|
@@ -1470,6 +1494,9 @@
|
|
|
1470
1494
|
.gap-6 {
|
|
1471
1495
|
gap: calc(var(--spacing) * 6);
|
|
1472
1496
|
}
|
|
1497
|
+
.gap-x-3 {
|
|
1498
|
+
column-gap: calc(var(--spacing) * 3);
|
|
1499
|
+
}
|
|
1473
1500
|
.gap-y-4 {
|
|
1474
1501
|
row-gap: calc(var(--spacing) * 4);
|
|
1475
1502
|
}
|
|
@@ -1489,6 +1516,9 @@
|
|
|
1489
1516
|
:where(.divide-fd-border > :not(:last-child)) {
|
|
1490
1517
|
border-color: var(--color-fd-border);
|
|
1491
1518
|
}
|
|
1519
|
+
.self-start {
|
|
1520
|
+
align-self: flex-start;
|
|
1521
|
+
}
|
|
1492
1522
|
.justify-self-end {
|
|
1493
1523
|
justify-self: flex-end;
|
|
1494
1524
|
}
|
|
@@ -1703,9 +1733,6 @@
|
|
|
1703
1733
|
}
|
|
1704
1734
|
background-image: linear-gradient(var(--tw-gradient-stops));
|
|
1705
1735
|
}
|
|
1706
|
-
.bg-\[linear-gradient\(var\(--color-fd-background\)\,transparent_16px\)\] {
|
|
1707
|
-
background-image: linear-gradient(var(--color-fd-background),transparent 16px);
|
|
1708
|
-
}
|
|
1709
1736
|
.from-fd-background {
|
|
1710
1737
|
--tw-gradient-from: var(--color-fd-background);
|
|
1711
1738
|
--tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
|
|
@@ -1727,6 +1754,23 @@
|
|
|
1727
1754
|
.to-40\% {
|
|
1728
1755
|
--tw-gradient-to-position: 40%;
|
|
1729
1756
|
}
|
|
1757
|
+
.to-\[16px\] {
|
|
1758
|
+
--tw-gradient-to-position: 16px;
|
|
1759
|
+
}
|
|
1760
|
+
.mask-t-from-\[calc\(100\%-16px\)\] {
|
|
1761
|
+
mask-image: var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic);
|
|
1762
|
+
mask-composite: intersect;
|
|
1763
|
+
--tw-mask-linear: var(--tw-mask-left), var(--tw-mask-right), var(--tw-mask-bottom), var(--tw-mask-top);
|
|
1764
|
+
--tw-mask-top: linear-gradient(to top, var(--tw-mask-top-from-color) var(--tw-mask-top-from-position), var(--tw-mask-top-to-color) var(--tw-mask-top-to-position));
|
|
1765
|
+
--tw-mask-top-from-position: calc(100% - 16px);
|
|
1766
|
+
}
|
|
1767
|
+
.mask-b-from-\[calc\(100\%-32px\)\] {
|
|
1768
|
+
mask-image: var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic);
|
|
1769
|
+
mask-composite: intersect;
|
|
1770
|
+
--tw-mask-linear: var(--tw-mask-left), var(--tw-mask-right), var(--tw-mask-bottom), var(--tw-mask-top);
|
|
1771
|
+
--tw-mask-bottom: linear-gradient(to bottom, var(--tw-mask-bottom-from-color) var(--tw-mask-bottom-from-position), var(--tw-mask-bottom-to-color) var(--tw-mask-bottom-to-position));
|
|
1772
|
+
--tw-mask-bottom-from-position: calc(100% - 32px);
|
|
1773
|
+
}
|
|
1730
1774
|
.\[mask-image\:linear-gradient\(to_bottom\,transparent\,white_16px\,white_calc\(100\%-16px\)\,transparent\)\)\] {
|
|
1731
1775
|
mask-image: linear-gradient(to bottom,transparent,white 16px,white calc(100% - 16px),transparent);
|
|
1732
1776
|
}
|
|
@@ -1742,12 +1786,6 @@
|
|
|
1742
1786
|
.mask-\[linear-gradient\(to_bottom\,transparent\,white_16px\,white_calc\(100\%-16px\)\,transparent\)\] {
|
|
1743
1787
|
mask-image: linear-gradient(to bottom,transparent,white 16px,white calc(100% - 16px),transparent);
|
|
1744
1788
|
}
|
|
1745
|
-
.mask-\[linear-gradient\(to_bottom\,transparent\,white_16px\,white_calc\(100\%-32px\)\,transparent\)\] {
|
|
1746
|
-
mask-image: linear-gradient(to bottom,transparent,white 16px,white calc(100% - 32px),transparent);
|
|
1747
|
-
}
|
|
1748
|
-
.mask-\[linear-gradient\(to_bottom\,white\,white_30px\,transparent_80px\)\] {
|
|
1749
|
-
mask-image: linear-gradient(to bottom,white,white 30px,transparent 80px);
|
|
1750
|
-
}
|
|
1751
1789
|
.bg-clip-content {
|
|
1752
1790
|
background-clip: content-box;
|
|
1753
1791
|
}
|
|
@@ -1841,9 +1879,6 @@
|
|
|
1841
1879
|
.px-\[calc\(--spacing\(2\.5\)-1px\)\] {
|
|
1842
1880
|
padding-inline: calc(calc(var(--spacing) * 2.5) - 1px);
|
|
1843
1881
|
}
|
|
1844
|
-
.px-px {
|
|
1845
|
-
padding-inline: 1px;
|
|
1846
|
-
}
|
|
1847
1882
|
.py-0 {
|
|
1848
1883
|
padding-block: 0px;
|
|
1849
1884
|
}
|
|
@@ -1898,6 +1933,9 @@
|
|
|
1898
1933
|
.ps-3\.5 {
|
|
1899
1934
|
padding-inline-start: calc(var(--spacing) * 3.5);
|
|
1900
1935
|
}
|
|
1936
|
+
.ps-3\.25 {
|
|
1937
|
+
padding-inline-start: calc(var(--spacing) * 3.25);
|
|
1938
|
+
}
|
|
1901
1939
|
.ps-4 {
|
|
1902
1940
|
padding-inline-start: calc(var(--spacing) * 4);
|
|
1903
1941
|
}
|
|
@@ -1958,6 +1996,9 @@
|
|
|
1958
1996
|
.pt-6 {
|
|
1959
1997
|
padding-top: calc(var(--spacing) * 6);
|
|
1960
1998
|
}
|
|
1999
|
+
.pt-8 {
|
|
2000
|
+
padding-top: calc(var(--spacing) * 8);
|
|
2001
|
+
}
|
|
1961
2002
|
.pt-12 {
|
|
1962
2003
|
padding-top: calc(var(--spacing) * 12);
|
|
1963
2004
|
}
|
|
@@ -2043,6 +2084,10 @@
|
|
|
2043
2084
|
.text-\[10px\] {
|
|
2044
2085
|
font-size: 10px;
|
|
2045
2086
|
}
|
|
2087
|
+
.leading-5 {
|
|
2088
|
+
--tw-leading: calc(var(--spacing) * 5);
|
|
2089
|
+
line-height: calc(var(--spacing) * 5);
|
|
2090
|
+
}
|
|
2046
2091
|
.leading-none {
|
|
2047
2092
|
--tw-leading: 1;
|
|
2048
2093
|
line-height: 1;
|
|
@@ -2134,6 +2179,9 @@
|
|
|
2134
2179
|
.text-fd-secondary-foreground {
|
|
2135
2180
|
color: var(--color-fd-secondary-foreground);
|
|
2136
2181
|
}
|
|
2182
|
+
.text-inherit {
|
|
2183
|
+
color: inherit;
|
|
2184
|
+
}
|
|
2137
2185
|
.line-through {
|
|
2138
2186
|
text-decoration-line: line-through;
|
|
2139
2187
|
}
|
|
@@ -2309,11 +2357,6 @@
|
|
|
2309
2357
|
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
2310
2358
|
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
2311
2359
|
}
|
|
2312
|
-
.transition-\[translate\] {
|
|
2313
|
-
transition-property: translate;
|
|
2314
|
-
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
2315
|
-
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
2316
|
-
}
|
|
2317
2360
|
.transition-\[width\,height\] {
|
|
2318
2361
|
transition-property: width,height;
|
|
2319
2362
|
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
@@ -2329,6 +2372,11 @@
|
|
|
2329
2372
|
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
2330
2373
|
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
2331
2374
|
}
|
|
2375
|
+
.transition-\[width\,margin\,translate\] {
|
|
2376
|
+
transition-property: width,margin,translate;
|
|
2377
|
+
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
2378
|
+
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
2379
|
+
}
|
|
2332
2380
|
.transition-\[width\,padding\,opacity\,visibility\] {
|
|
2333
2381
|
transition-property: width,padding,opacity,visibility;
|
|
2334
2382
|
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
@@ -2473,8 +2521,8 @@
|
|
|
2473
2521
|
.\[--viewport-padding\:0px\] {
|
|
2474
2522
|
--viewport-padding: 0px;
|
|
2475
2523
|
}
|
|
2476
|
-
.\[
|
|
2477
|
-
|
|
2524
|
+
.\[clip-path\:inset\(0_-8px_-8px\)\] {
|
|
2525
|
+
clip-path: inset(0 -8px -8px);
|
|
2478
2526
|
}
|
|
2479
2527
|
.\[clip-path\:inset\(0_0_100\%\)\] {
|
|
2480
2528
|
clip-path: inset(0 0 100%);
|
|
@@ -2555,13 +2603,28 @@
|
|
|
2555
2603
|
border-bottom-style: var(--tw-border-style);
|
|
2556
2604
|
border-bottom-width: 1px;
|
|
2557
2605
|
}
|
|
2606
|
+
:is(.\*\:mask-\[linear-gradient\(to_bottom\,white\,white_30px\,transparent_80px\)\] > *) {
|
|
2607
|
+
mask-image: linear-gradient(to bottom,white,white 30px,transparent 80px);
|
|
2608
|
+
}
|
|
2609
|
+
.not-first\:border-t:not(:first-child) {
|
|
2610
|
+
border-top-style: var(--tw-border-style);
|
|
2611
|
+
border-top-width: 1px;
|
|
2612
|
+
}
|
|
2558
2613
|
:is(.\*\:not-first\:border-t > *):not(:first-child) {
|
|
2559
2614
|
border-top-style: var(--tw-border-style);
|
|
2560
2615
|
border-top-width: 1px;
|
|
2561
2616
|
}
|
|
2617
|
+
:is(.\*\:not-first\:text-fd-muted-foreground > *):not(:first-child) {
|
|
2618
|
+
color: var(--color-fd-muted-foreground);
|
|
2619
|
+
}
|
|
2562
2620
|
.not-last\:mb-2:not(:last-child) {
|
|
2563
2621
|
margin-bottom: calc(var(--spacing) * 2);
|
|
2564
2622
|
}
|
|
2623
|
+
.not-last\:truncate:not(:last-child) {
|
|
2624
|
+
overflow: hidden;
|
|
2625
|
+
text-overflow: ellipsis;
|
|
2626
|
+
white-space: nowrap;
|
|
2627
|
+
}
|
|
2565
2628
|
@media (hover: hover) {
|
|
2566
2629
|
.group-hover\:-translate-x-0\.5:is(:where(.group):hover *) {
|
|
2567
2630
|
--tw-translate-x: calc(var(--spacing) * -0.5);
|
|
@@ -2633,9 +2696,22 @@
|
|
|
2633
2696
|
.first\:mt-1:first-child {
|
|
2634
2697
|
margin-top: var(--spacing);
|
|
2635
2698
|
}
|
|
2699
|
+
:is(.\*\:first\:font-medium > *):first-child {
|
|
2700
|
+
--tw-font-weight: var(--font-weight-medium);
|
|
2701
|
+
font-weight: var(--font-weight-medium);
|
|
2702
|
+
}
|
|
2703
|
+
:is(.\*\:first\:text-fd-primary > *):first-child {
|
|
2704
|
+
color: var(--color-fd-primary);
|
|
2705
|
+
}
|
|
2636
2706
|
.last\:me-0:last-child {
|
|
2637
2707
|
margin-inline-end: 0px;
|
|
2638
2708
|
}
|
|
2709
|
+
.last\:line-clamp-2:last-child {
|
|
2710
|
+
overflow: hidden;
|
|
2711
|
+
display: -webkit-box;
|
|
2712
|
+
-webkit-box-orient: vertical;
|
|
2713
|
+
-webkit-line-clamp: 2;
|
|
2714
|
+
}
|
|
2639
2715
|
.last\:rounded-b-xl:last-child {
|
|
2640
2716
|
border-bottom-right-radius: var(--radius-xl);
|
|
2641
2717
|
border-bottom-left-radius: var(--radius-xl);
|
|
@@ -2789,8 +2865,11 @@
|
|
|
2789
2865
|
--tw-scale-z: 95%;
|
|
2790
2866
|
scale: var(--tw-scale-x) var(--tw-scale-y);
|
|
2791
2867
|
}
|
|
2792
|
-
.data-ending-style\:scale
|
|
2793
|
-
scale:
|
|
2868
|
+
.data-ending-style\:scale-97[data-ending-style] {
|
|
2869
|
+
--tw-scale-x: 97%;
|
|
2870
|
+
--tw-scale-y: 97%;
|
|
2871
|
+
--tw-scale-z: 97%;
|
|
2872
|
+
scale: var(--tw-scale-x) var(--tw-scale-y);
|
|
2794
2873
|
}
|
|
2795
2874
|
.data-ending-style\:\[transform\:translateX\(calc\(100\%-var\(--bleed\)\+var\(--viewport-padding\)\+2px\)\)\][data-ending-style] {
|
|
2796
2875
|
transform: translateX(calc(100% - var(--bleed) + var(--viewport-padding) + 2px));
|
|
@@ -3038,6 +3117,10 @@
|
|
|
3038
3117
|
background-color: color-mix(in oklab, var(--color-fd-background) 80%, transparent);
|
|
3039
3118
|
}
|
|
3040
3119
|
}
|
|
3120
|
+
:is(.\*\:nth-2\:text-xs > *):nth-child(2) {
|
|
3121
|
+
font-size: var(--text-xs);
|
|
3122
|
+
line-height: var(--tw-leading, var(--text-xs--line-height));
|
|
3123
|
+
}
|
|
3041
3124
|
@supports (-webkit-touch-callout:none) {
|
|
3042
3125
|
.supports-\[-webkit-touch-callout\:none\]\:absolute {
|
|
3043
3126
|
position: absolute;
|
|
@@ -3056,11 +3139,6 @@
|
|
|
3056
3139
|
--viewport-padding: 0.625rem;
|
|
3057
3140
|
}
|
|
3058
3141
|
}
|
|
3059
|
-
@supports (top:anchor(--a bottom)) {
|
|
3060
|
-
.supports-\[top\:anchor\(--a_bottom\)\]\:top-\[anchor\(--fd-top-bar_bottom\)\] {
|
|
3061
|
-
top: anchor(--fd-top-bar bottom);
|
|
3062
|
-
}
|
|
3063
|
-
}
|
|
3064
3142
|
@media (prefers-reduced-motion: no-preference) {
|
|
3065
3143
|
.motion-safe\:animate-fd-roll-in {
|
|
3066
3144
|
animation: var(--animate-fd-roll-in);
|
|
@@ -3301,9 +3379,6 @@
|
|
|
3301
3379
|
.md\:min-h-0 {
|
|
3302
3380
|
min-height: 0px;
|
|
3303
3381
|
}
|
|
3304
|
-
.md\:scroll-pt-\(--fd-header-height\) {
|
|
3305
|
-
scroll-padding-top: var(--fd-header-height);
|
|
3306
|
-
}
|
|
3307
3382
|
.md\:scrollbar-thin {
|
|
3308
3383
|
scrollbar-width: thin;
|
|
3309
3384
|
}
|
|
@@ -3374,9 +3449,6 @@
|
|
|
3374
3449
|
.md\:pb-8 {
|
|
3375
3450
|
padding-bottom: calc(var(--spacing) * 8);
|
|
3376
3451
|
}
|
|
3377
|
-
.md\:pb-16 {
|
|
3378
|
-
padding-bottom: calc(var(--spacing) * 16);
|
|
3379
|
-
}
|
|
3380
3452
|
.md\:shadow-sm {
|
|
3381
3453
|
--tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
|
|
3382
3454
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
@@ -3639,10 +3711,11 @@
|
|
|
3639
3711
|
--fd-toc-width: 268px;
|
|
3640
3712
|
}
|
|
3641
3713
|
}
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3714
|
+
.\[\&_\:\:highlight\(fd-search\)\]\:text-fd-primary ::highlight(fd-search) {
|
|
3715
|
+
color: var(--color-fd-primary);
|
|
3716
|
+
}
|
|
3717
|
+
.\[\&_\:\:highlight\(fd-search\)\]\:underline ::highlight(fd-search) {
|
|
3718
|
+
text-decoration-line: underline;
|
|
3646
3719
|
}
|
|
3647
3720
|
.\[\&_svg\]\:size-3\.5 svg {
|
|
3648
3721
|
width: calc(var(--spacing) * 3.5);
|
|
@@ -3972,6 +4045,81 @@ code.shiki:not(.not-fumadocs-code *) span {
|
|
|
3972
4045
|
inherits: false;
|
|
3973
4046
|
initial-value: 100%;
|
|
3974
4047
|
}
|
|
4048
|
+
@property --tw-mask-linear {
|
|
4049
|
+
syntax: "*";
|
|
4050
|
+
inherits: false;
|
|
4051
|
+
initial-value: linear-gradient(#fff, #fff);
|
|
4052
|
+
}
|
|
4053
|
+
@property --tw-mask-radial {
|
|
4054
|
+
syntax: "*";
|
|
4055
|
+
inherits: false;
|
|
4056
|
+
initial-value: linear-gradient(#fff, #fff);
|
|
4057
|
+
}
|
|
4058
|
+
@property --tw-mask-conic {
|
|
4059
|
+
syntax: "*";
|
|
4060
|
+
inherits: false;
|
|
4061
|
+
initial-value: linear-gradient(#fff, #fff);
|
|
4062
|
+
}
|
|
4063
|
+
@property --tw-mask-left {
|
|
4064
|
+
syntax: "*";
|
|
4065
|
+
inherits: false;
|
|
4066
|
+
initial-value: linear-gradient(#fff, #fff);
|
|
4067
|
+
}
|
|
4068
|
+
@property --tw-mask-right {
|
|
4069
|
+
syntax: "*";
|
|
4070
|
+
inherits: false;
|
|
4071
|
+
initial-value: linear-gradient(#fff, #fff);
|
|
4072
|
+
}
|
|
4073
|
+
@property --tw-mask-bottom {
|
|
4074
|
+
syntax: "*";
|
|
4075
|
+
inherits: false;
|
|
4076
|
+
initial-value: linear-gradient(#fff, #fff);
|
|
4077
|
+
}
|
|
4078
|
+
@property --tw-mask-top {
|
|
4079
|
+
syntax: "*";
|
|
4080
|
+
inherits: false;
|
|
4081
|
+
initial-value: linear-gradient(#fff, #fff);
|
|
4082
|
+
}
|
|
4083
|
+
@property --tw-mask-top-from-position {
|
|
4084
|
+
syntax: "*";
|
|
4085
|
+
inherits: false;
|
|
4086
|
+
initial-value: 0%;
|
|
4087
|
+
}
|
|
4088
|
+
@property --tw-mask-top-to-position {
|
|
4089
|
+
syntax: "*";
|
|
4090
|
+
inherits: false;
|
|
4091
|
+
initial-value: 100%;
|
|
4092
|
+
}
|
|
4093
|
+
@property --tw-mask-top-from-color {
|
|
4094
|
+
syntax: "*";
|
|
4095
|
+
inherits: false;
|
|
4096
|
+
initial-value: black;
|
|
4097
|
+
}
|
|
4098
|
+
@property --tw-mask-top-to-color {
|
|
4099
|
+
syntax: "*";
|
|
4100
|
+
inherits: false;
|
|
4101
|
+
initial-value: transparent;
|
|
4102
|
+
}
|
|
4103
|
+
@property --tw-mask-bottom-from-position {
|
|
4104
|
+
syntax: "*";
|
|
4105
|
+
inherits: false;
|
|
4106
|
+
initial-value: 0%;
|
|
4107
|
+
}
|
|
4108
|
+
@property --tw-mask-bottom-to-position {
|
|
4109
|
+
syntax: "*";
|
|
4110
|
+
inherits: false;
|
|
4111
|
+
initial-value: 100%;
|
|
4112
|
+
}
|
|
4113
|
+
@property --tw-mask-bottom-from-color {
|
|
4114
|
+
syntax: "*";
|
|
4115
|
+
inherits: false;
|
|
4116
|
+
initial-value: black;
|
|
4117
|
+
}
|
|
4118
|
+
@property --tw-mask-bottom-to-color {
|
|
4119
|
+
syntax: "*";
|
|
4120
|
+
inherits: false;
|
|
4121
|
+
initial-value: transparent;
|
|
4122
|
+
}
|
|
3975
4123
|
@property --tw-leading {
|
|
3976
4124
|
syntax: "*";
|
|
3977
4125
|
inherits: false;
|
|
@@ -4262,6 +4410,21 @@ code.shiki:not(.not-fumadocs-code *) span {
|
|
|
4262
4410
|
--tw-gradient-from-position: 0%;
|
|
4263
4411
|
--tw-gradient-via-position: 50%;
|
|
4264
4412
|
--tw-gradient-to-position: 100%;
|
|
4413
|
+
--tw-mask-linear: linear-gradient(#fff, #fff);
|
|
4414
|
+
--tw-mask-radial: linear-gradient(#fff, #fff);
|
|
4415
|
+
--tw-mask-conic: linear-gradient(#fff, #fff);
|
|
4416
|
+
--tw-mask-left: linear-gradient(#fff, #fff);
|
|
4417
|
+
--tw-mask-right: linear-gradient(#fff, #fff);
|
|
4418
|
+
--tw-mask-bottom: linear-gradient(#fff, #fff);
|
|
4419
|
+
--tw-mask-top: linear-gradient(#fff, #fff);
|
|
4420
|
+
--tw-mask-top-from-position: 0%;
|
|
4421
|
+
--tw-mask-top-to-position: 100%;
|
|
4422
|
+
--tw-mask-top-from-color: black;
|
|
4423
|
+
--tw-mask-top-to-color: transparent;
|
|
4424
|
+
--tw-mask-bottom-from-position: 0%;
|
|
4425
|
+
--tw-mask-bottom-to-position: 100%;
|
|
4426
|
+
--tw-mask-bottom-from-color: black;
|
|
4427
|
+
--tw-mask-bottom-to-color: transparent;
|
|
4265
4428
|
--tw-leading: initial;
|
|
4266
4429
|
--tw-font-weight: initial;
|
|
4267
4430
|
--tw-shadow: 0 0 #0000;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { useEffect, useEffectEvent } from "react";
|
|
2
|
+
//#region src/utils/hotkey.ts
|
|
3
|
+
/**
|
|
4
|
+
* Listen to `keydown` on window, skipping keys that are already handled or composing text.
|
|
5
|
+
*/
|
|
6
|
+
function useHotKey(onKeyDown, { enabled = true, ignoreTyping = false } = {}) {
|
|
7
|
+
const listener = useEffectEvent((e) => {
|
|
8
|
+
if (e.defaultPrevented || e.isComposing || e.keyCode === 229) return;
|
|
9
|
+
if (ignoreTyping && isTypingTarget(e.target)) return;
|
|
10
|
+
onKeyDown(e);
|
|
11
|
+
});
|
|
12
|
+
useEffect(() => {
|
|
13
|
+
if (!enabled) return;
|
|
14
|
+
window.addEventListener("keydown", listener);
|
|
15
|
+
return () => window.removeEventListener("keydown", listener);
|
|
16
|
+
}, [enabled]);
|
|
17
|
+
}
|
|
18
|
+
function isTypingTarget(target) {
|
|
19
|
+
if (!(target instanceof HTMLElement)) return false;
|
|
20
|
+
if (target.isContentEditable) return true;
|
|
21
|
+
if ([
|
|
22
|
+
"INPUT",
|
|
23
|
+
"TEXTAREA",
|
|
24
|
+
"SELECT"
|
|
25
|
+
].includes(target.tagName)) return true;
|
|
26
|
+
return target.closest("[role=\"dialog\"]") !== null;
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
export { useHotKey };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fumadocs/base-ui",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.17.0",
|
|
4
4
|
"description": "The Base UI version of Fumadocs UI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Docs",
|
|
@@ -140,40 +140,37 @@
|
|
|
140
140
|
"dependencies": {
|
|
141
141
|
"@base-ui/react": "^1.8.0",
|
|
142
142
|
"@fuma-translate/react": "^1.0.2",
|
|
143
|
-
"@fumadocs/tailwind": "0.1.
|
|
143
|
+
"@fumadocs/tailwind": "0.1.3",
|
|
144
144
|
"class-variance-authority": "^0.7.1",
|
|
145
145
|
"cn": "^0.4.0",
|
|
146
|
+
"hast-util-to-jsx-runtime": "^2.3.6",
|
|
146
147
|
"lucide-react": "^1.50.0",
|
|
147
148
|
"motion": "^14.0.0",
|
|
148
149
|
"next-themes": "^0.4.6",
|
|
149
150
|
"react-remove-scroll": "^2.7.2",
|
|
150
|
-
"rehype-raw": "^7.0.0",
|
|
151
151
|
"scroll-into-view-if-needed": "^3.1.0",
|
|
152
|
-
"shiki": "^4.5.0"
|
|
153
|
-
"unist-util-visit": "^5.1.0"
|
|
152
|
+
"shiki": "^4.5.0"
|
|
154
153
|
},
|
|
155
154
|
"devDependencies": {
|
|
156
|
-
"@fumadocs/cli": "1.7.
|
|
155
|
+
"@fumadocs/cli": "1.7.4",
|
|
157
156
|
"@tailwindcss/cli": "^4.3.3",
|
|
158
157
|
"@tailwindcss/oxide": "^4.3.3",
|
|
159
158
|
"@tsdown/css": "^0.23.0",
|
|
160
|
-
"@types/hast": "^3.0.5",
|
|
161
159
|
"@types/mdx": "^2.0.14",
|
|
162
160
|
"@types/node": "^26.6.4",
|
|
163
161
|
"@types/react": "^19.3.0",
|
|
164
162
|
"@types/react-dom": "^19.3.0",
|
|
165
163
|
"fuma-cli": "^0.3.1",
|
|
166
|
-
"fumadocs-core": "16.
|
|
164
|
+
"fumadocs-core": "16.17.0",
|
|
167
165
|
"react-medium-image-zoom": "^5.4.9",
|
|
168
166
|
"tailwindcss": "^4.3.3",
|
|
169
167
|
"tsconfig": "0.0.0",
|
|
170
|
-
"tsdown": "0.23.0"
|
|
171
|
-
"unified": "^11.0.5"
|
|
168
|
+
"tsdown": "0.23.0"
|
|
172
169
|
},
|
|
173
170
|
"peerDependencies": {
|
|
174
171
|
"@types/mdx": "*",
|
|
175
172
|
"@types/react": "*",
|
|
176
|
-
"fumadocs-core": "16.
|
|
173
|
+
"fumadocs-core": "16.17.0",
|
|
177
174
|
"next": "16.x.x",
|
|
178
175
|
"react": "^19.2.0",
|
|
179
176
|
"react-dom": "^19.2.0",
|