@clarify-labs/renderer 0.6.6 → 0.7.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/output/{OpenApiOperation-CI_PeMSy.js → OpenApiOperation-CWSOhUVa.js} +84 -19
- package/output/OpenApiOperation-CWSOhUVa.js.map +1 -0
- package/output/{OpenApiOperation-CxQQyEHK.cjs → OpenApiOperation-ZXToVSFC.cjs} +89 -18
- package/output/OpenApiOperation-ZXToVSFC.cjs.map +1 -0
- package/output/{ThemeRoot-BhP5M3Hd.cjs → ThemeRoot-CEvwrGp5.cjs} +29 -186
- package/output/ThemeRoot-CEvwrGp5.cjs.map +1 -0
- package/output/{ThemeRoot-DErmHskn.js → ThemeRoot-C_ZdzSMu.js} +21 -178
- package/output/ThemeRoot-C_ZdzSMu.js.map +1 -0
- package/output/app/AppShell.d.ts +2 -0
- package/output/app/PageFooter.d.ts +5 -1
- package/output/client.cjs +5 -2
- package/output/client.d.ts +1 -0
- package/output/client.js +4 -3
- package/output/components/LocalizedLink.d.ts +6 -0
- package/output/components/WebFrame.d.ts +11 -0
- package/output/components/index.d.ts +4 -0
- package/output/context.d.ts +1 -1
- package/output/core/types.d.ts +7 -1
- package/output/index.cjs +5 -4
- package/output/index.d.ts +2 -2
- package/output/index.js +5 -5
- package/output/mdx/components.d.ts +1 -0
- package/output/mdx/primitives.d.ts +2 -2
- package/output/preview.cjs +61 -23
- package/output/preview.cjs.map +1 -1
- package/output/preview.js +61 -23
- package/output/preview.js.map +1 -1
- package/output/{render-HeCAMIGm.js → render-CnUd0XwZ.js} +6 -5
- package/output/render-CnUd0XwZ.js.map +1 -0
- package/output/{render-C_NHO3rz.cjs → render-zHU25Nm9.cjs} +6 -5
- package/output/render-zHU25Nm9.cjs.map +1 -0
- package/output/renderer.css +220 -29
- package/output/server.cjs +5 -4
- package/output/server.cjs.map +1 -1
- package/output/server.js +5 -4
- package/output/server.js.map +1 -1
- package/output/shell/Search.d.ts +4 -0
- package/output/shell/search/Highlight.d.ts +11 -0
- package/output/shell/search/SearchDialog.d.ts +13 -0
- package/output/shell/search/SearchInput.d.ts +8 -0
- package/output/shell/search/SearchResult.d.ts +10 -0
- package/output/shell/search/items.d.ts +3 -0
- package/output/shell/search/pagefind.d.ts +5 -0
- package/output/shell/search/types.d.ts +37 -0
- package/output/shell/search/useSearchProps.d.ts +10 -0
- package/output/{shell-DvTfFx6M.js → shell-CumiARRe.js} +472 -61
- package/output/shell-CumiARRe.js.map +1 -0
- package/output/{shell-D4tS8Jts.cjs → shell-xxhV0p7k.cjs} +524 -59
- package/output/shell-xxhV0p7k.cjs.map +1 -0
- package/output/theme/variables.d.ts +2 -0
- package/package.json +1 -1
- package/output/OpenApiOperation-CI_PeMSy.js.map +0 -1
- package/output/OpenApiOperation-CxQQyEHK.cjs.map +0 -1
- package/output/ThemeRoot-BhP5M3Hd.cjs.map +0 -1
- package/output/ThemeRoot-DErmHskn.js.map +0 -1
- package/output/render-C_NHO3rz.cjs.map +0 -1
- package/output/render-HeCAMIGm.js.map +0 -1
- package/output/shell-D4tS8Jts.cjs.map +0 -1
- package/output/shell-DvTfFx6M.js.map +0 -1
package/output/renderer.css
CHANGED
|
@@ -70,6 +70,7 @@
|
|
|
70
70
|
"Courier New", monospace;
|
|
71
71
|
--color-red-50: oklch(97.1% .013 17.38);
|
|
72
72
|
--color-red-200: oklch(88.5% .062 18.334);
|
|
73
|
+
--color-red-400: oklch(70.4% .191 22.216);
|
|
73
74
|
--color-red-500: oklch(63.7% .237 25.331);
|
|
74
75
|
--color-red-700: oklch(50.5% .213 27.518);
|
|
75
76
|
--color-amber-50: oklch(98.7% .022 95.277);
|
|
@@ -82,6 +83,8 @@
|
|
|
82
83
|
--color-amber-700: oklch(55.5% .163 48.998);
|
|
83
84
|
--color-amber-900: oklch(41.4% .112 45.904);
|
|
84
85
|
--color-amber-950: oklch(27.9% .077 45.635);
|
|
86
|
+
--color-yellow-400: oklch(85.2% .199 91.936);
|
|
87
|
+
--color-green-400: oklch(79.2% .209 151.711);
|
|
85
88
|
--color-emerald-50: oklch(97.9% .021 166.113);
|
|
86
89
|
--color-emerald-100: oklch(95% .052 163.051);
|
|
87
90
|
--color-emerald-200: oklch(90.5% .093 164.15);
|
|
@@ -165,6 +168,7 @@
|
|
|
165
168
|
--ease-in: cubic-bezier(.4, 0, 1, 1);
|
|
166
169
|
--ease-out: cubic-bezier(0, 0, .2, 1);
|
|
167
170
|
--ease-in-out: cubic-bezier(.4, 0, .2, 1);
|
|
171
|
+
--animate-spin: spin 1s linear infinite;
|
|
168
172
|
--animate-pulse: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;
|
|
169
173
|
--blur-xs: 4px;
|
|
170
174
|
--blur-sm: 8px;
|
|
@@ -965,18 +969,40 @@
|
|
|
965
969
|
min-height: 26rem;
|
|
966
970
|
}
|
|
967
971
|
|
|
972
|
+
.clarify-preview-sidebar {
|
|
973
|
+
display: none;
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
.clarify-preview-mobile-navigation, .clarify-preview-mobile-menu-button {
|
|
977
|
+
display: block;
|
|
978
|
+
}
|
|
979
|
+
|
|
968
980
|
@media (min-width: 64rem) {
|
|
969
981
|
.clarify-preview-shell {
|
|
970
982
|
grid-template-columns: 14rem minmax(0, 1fr);
|
|
971
983
|
}
|
|
984
|
+
|
|
985
|
+
.clarify-preview-sidebar {
|
|
986
|
+
display: block;
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
.clarify-preview-mobile-navigation, .clarify-preview-mobile-menu-button {
|
|
990
|
+
display: none;
|
|
991
|
+
}
|
|
972
992
|
}
|
|
973
993
|
|
|
974
994
|
.clarify-preview-content-window {
|
|
975
|
-
max-height:
|
|
995
|
+
max-height: 22rem;
|
|
976
996
|
-webkit-mask-image: linear-gradient(#000 90%, #0000);
|
|
977
997
|
mask-image: linear-gradient(#000 90%, #0000);
|
|
978
998
|
}
|
|
979
999
|
|
|
1000
|
+
@media (min-width: 40rem) {
|
|
1001
|
+
.clarify-preview-content-window {
|
|
1002
|
+
max-height: 26rem;
|
|
1003
|
+
}
|
|
1004
|
+
}
|
|
1005
|
+
|
|
980
1006
|
.clarify-preview-body {
|
|
981
1007
|
height: calc(100% - 3rem);
|
|
982
1008
|
}
|
|
@@ -1003,12 +1029,14 @@
|
|
|
1003
1029
|
line-height: var(--clarify-ui-description-line-height);
|
|
1004
1030
|
}
|
|
1005
1031
|
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1032
|
+
@media (min-width: 40rem) {
|
|
1033
|
+
.clarify-preview-api-content-embedded {
|
|
1034
|
+
min-width: 42rem;
|
|
1035
|
+
}
|
|
1009
1036
|
|
|
1010
|
-
|
|
1011
|
-
|
|
1037
|
+
.clarify-preview-api-content-openapi {
|
|
1038
|
+
min-width: 48rem;
|
|
1039
|
+
}
|
|
1012
1040
|
}
|
|
1013
1041
|
|
|
1014
1042
|
.clarify-preview-api-content .not-prose {
|
|
@@ -1022,7 +1050,7 @@
|
|
|
1022
1050
|
}
|
|
1023
1051
|
|
|
1024
1052
|
.clarify-preview-openapi-window {
|
|
1025
|
-
height:
|
|
1053
|
+
height: 28rem;
|
|
1026
1054
|
}
|
|
1027
1055
|
|
|
1028
1056
|
.clarify-preview-openapi-mask {
|
|
@@ -1030,7 +1058,13 @@
|
|
|
1030
1058
|
mask-image: linear-gradient(#000 88%, #0000);
|
|
1031
1059
|
}
|
|
1032
1060
|
|
|
1033
|
-
|
|
1061
|
+
@media (min-width: 40rem) {
|
|
1062
|
+
.clarify-preview-openapi-window {
|
|
1063
|
+
height: 34rem;
|
|
1064
|
+
}
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
.clarify-search-result[aria-selected="true"], .clarify-search-result-active, .clarify-search-result:hover {
|
|
1034
1068
|
background: var(--clarify-ui-hover-background);
|
|
1035
1069
|
}
|
|
1036
1070
|
|
|
@@ -1042,7 +1076,7 @@
|
|
|
1042
1076
|
font-weight: 600;
|
|
1043
1077
|
}
|
|
1044
1078
|
|
|
1045
|
-
.clarify-search-result[aria-selected="true"] .clarify-search-result-title {
|
|
1079
|
+
.clarify-search-result[aria-selected="true"] .clarify-search-result-title, .clarify-search-result:hover .clarify-search-result-title {
|
|
1046
1080
|
color: var(--clarify-ui-accent-text);
|
|
1047
1081
|
}
|
|
1048
1082
|
|
|
@@ -1319,6 +1353,10 @@
|
|
|
1319
1353
|
margin-inline: auto;
|
|
1320
1354
|
}
|
|
1321
1355
|
|
|
1356
|
+
.-my-1 {
|
|
1357
|
+
margin-block: calc(var(--spacing) * -1);
|
|
1358
|
+
}
|
|
1359
|
+
|
|
1322
1360
|
.my-6 {
|
|
1323
1361
|
margin-block: calc(var(--spacing) * 6);
|
|
1324
1362
|
}
|
|
@@ -1463,7 +1501,7 @@
|
|
|
1463
1501
|
border-color: var(--tw-prose-hr);
|
|
1464
1502
|
border-top-width: 1px;
|
|
1465
1503
|
max-width: none;
|
|
1466
|
-
margin:
|
|
1504
|
+
margin: 2rem -1rem;
|
|
1467
1505
|
}
|
|
1468
1506
|
|
|
1469
1507
|
.prose :where(blockquote):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
@@ -1641,6 +1679,10 @@
|
|
|
1641
1679
|
margin-top: calc(var(--spacing) * 8);
|
|
1642
1680
|
}
|
|
1643
1681
|
|
|
1682
|
+
.-mr-0\.5 {
|
|
1683
|
+
margin-right: calc(var(--spacing) * -.5);
|
|
1684
|
+
}
|
|
1685
|
+
|
|
1644
1686
|
.-mr-1 {
|
|
1645
1687
|
margin-right: calc(var(--spacing) * -1);
|
|
1646
1688
|
}
|
|
@@ -1685,8 +1727,8 @@
|
|
|
1685
1727
|
margin-left: calc(var(--width) * -1);
|
|
1686
1728
|
}
|
|
1687
1729
|
|
|
1688
|
-
.-ml-
|
|
1689
|
-
margin-left: calc(var(--spacing) *
|
|
1730
|
+
.-ml-0\.5 {
|
|
1731
|
+
margin-left: calc(var(--spacing) * -.5);
|
|
1690
1732
|
}
|
|
1691
1733
|
|
|
1692
1734
|
.-ml-76 {
|
|
@@ -1709,6 +1751,13 @@
|
|
|
1709
1751
|
margin-left: auto;
|
|
1710
1752
|
}
|
|
1711
1753
|
|
|
1754
|
+
.line-clamp-2 {
|
|
1755
|
+
-webkit-line-clamp: 2;
|
|
1756
|
+
-webkit-box-orient: vertical;
|
|
1757
|
+
display: -webkit-box;
|
|
1758
|
+
overflow: hidden;
|
|
1759
|
+
}
|
|
1760
|
+
|
|
1712
1761
|
.block {
|
|
1713
1762
|
display: block;
|
|
1714
1763
|
}
|
|
@@ -1747,6 +1796,11 @@
|
|
|
1747
1796
|
height: calc(var(--spacing) * 2);
|
|
1748
1797
|
}
|
|
1749
1798
|
|
|
1799
|
+
.size-3 {
|
|
1800
|
+
width: calc(var(--spacing) * 3);
|
|
1801
|
+
height: calc(var(--spacing) * 3);
|
|
1802
|
+
}
|
|
1803
|
+
|
|
1750
1804
|
.size-3\.5 {
|
|
1751
1805
|
width: calc(var(--spacing) * 3.5);
|
|
1752
1806
|
height: calc(var(--spacing) * 3.5);
|
|
@@ -1767,6 +1821,11 @@
|
|
|
1767
1821
|
height: calc(var(--spacing) * 6);
|
|
1768
1822
|
}
|
|
1769
1823
|
|
|
1824
|
+
.size-7 {
|
|
1825
|
+
width: calc(var(--spacing) * 7);
|
|
1826
|
+
height: calc(var(--spacing) * 7);
|
|
1827
|
+
}
|
|
1828
|
+
|
|
1770
1829
|
.size-8 {
|
|
1771
1830
|
width: calc(var(--spacing) * 8);
|
|
1772
1831
|
height: calc(var(--spacing) * 8);
|
|
@@ -1878,6 +1937,10 @@
|
|
|
1878
1937
|
min-height: calc(var(--spacing) * 11);
|
|
1879
1938
|
}
|
|
1880
1939
|
|
|
1940
|
+
.min-h-full {
|
|
1941
|
+
min-height: 100%;
|
|
1942
|
+
}
|
|
1943
|
+
|
|
1881
1944
|
.min-h-screen {
|
|
1882
1945
|
min-height: 100vh;
|
|
1883
1946
|
}
|
|
@@ -1942,10 +2005,6 @@
|
|
|
1942
2005
|
width: 83.3333%;
|
|
1943
2006
|
}
|
|
1944
2007
|
|
|
1945
|
-
.w-6 {
|
|
1946
|
-
width: calc(var(--spacing) * 6);
|
|
1947
|
-
}
|
|
1948
|
-
|
|
1949
2008
|
.w-8 {
|
|
1950
2009
|
width: calc(var(--spacing) * 8);
|
|
1951
2010
|
}
|
|
@@ -1966,6 +2025,10 @@
|
|
|
1966
2025
|
width: calc(var(--spacing) * 32);
|
|
1967
2026
|
}
|
|
1968
2027
|
|
|
2028
|
+
.w-64 {
|
|
2029
|
+
width: calc(var(--spacing) * 64);
|
|
2030
|
+
}
|
|
2031
|
+
|
|
1969
2032
|
.w-80 {
|
|
1970
2033
|
width: calc(var(--spacing) * 80);
|
|
1971
2034
|
}
|
|
@@ -1978,6 +2041,14 @@
|
|
|
1978
2041
|
width: calc(var(--spacing) * 325);
|
|
1979
2042
|
}
|
|
1980
2043
|
|
|
2044
|
+
.w-auto {
|
|
2045
|
+
width: auto;
|
|
2046
|
+
}
|
|
2047
|
+
|
|
2048
|
+
.w-fit {
|
|
2049
|
+
width: fit-content;
|
|
2050
|
+
}
|
|
2051
|
+
|
|
1981
2052
|
.w-full {
|
|
1982
2053
|
width: 100%;
|
|
1983
2054
|
}
|
|
@@ -2042,6 +2113,14 @@
|
|
|
2042
2113
|
max-width: calc(var(--spacing) * 48);
|
|
2043
2114
|
}
|
|
2044
2115
|
|
|
2116
|
+
.max-w-\[82\%\] {
|
|
2117
|
+
max-width: 82%;
|
|
2118
|
+
}
|
|
2119
|
+
|
|
2120
|
+
.max-w-full {
|
|
2121
|
+
max-width: 100%;
|
|
2122
|
+
}
|
|
2123
|
+
|
|
2045
2124
|
.max-w-none {
|
|
2046
2125
|
max-width: none;
|
|
2047
2126
|
}
|
|
@@ -2141,6 +2220,10 @@
|
|
|
2141
2220
|
animation: var(--animate-pulse);
|
|
2142
2221
|
}
|
|
2143
2222
|
|
|
2223
|
+
.animate-spin {
|
|
2224
|
+
animation: var(--animate-spin);
|
|
2225
|
+
}
|
|
2226
|
+
|
|
2144
2227
|
.cursor-default {
|
|
2145
2228
|
cursor: default;
|
|
2146
2229
|
}
|
|
@@ -2181,10 +2264,6 @@
|
|
|
2181
2264
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
2182
2265
|
}
|
|
2183
2266
|
|
|
2184
|
-
.grid-cols-3 {
|
|
2185
|
-
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
2186
|
-
}
|
|
2187
|
-
|
|
2188
2267
|
.flex-col {
|
|
2189
2268
|
flex-direction: column;
|
|
2190
2269
|
}
|
|
@@ -2351,6 +2430,10 @@
|
|
|
2351
2430
|
}
|
|
2352
2431
|
}
|
|
2353
2432
|
|
|
2433
|
+
.self-end {
|
|
2434
|
+
align-self: flex-end;
|
|
2435
|
+
}
|
|
2436
|
+
|
|
2354
2437
|
.truncate {
|
|
2355
2438
|
text-overflow: ellipsis;
|
|
2356
2439
|
white-space: nowrap;
|
|
@@ -2373,6 +2456,10 @@
|
|
|
2373
2456
|
overflow-x: auto;
|
|
2374
2457
|
}
|
|
2375
2458
|
|
|
2459
|
+
.overflow-x-hidden {
|
|
2460
|
+
overflow-x: hidden;
|
|
2461
|
+
}
|
|
2462
|
+
|
|
2376
2463
|
.overflow-y-auto {
|
|
2377
2464
|
overflow-y: auto;
|
|
2378
2465
|
}
|
|
@@ -2725,10 +2812,18 @@
|
|
|
2725
2812
|
}
|
|
2726
2813
|
}
|
|
2727
2814
|
|
|
2815
|
+
.bg-green-400 {
|
|
2816
|
+
background-color: var(--color-green-400);
|
|
2817
|
+
}
|
|
2818
|
+
|
|
2728
2819
|
.bg-red-50 {
|
|
2729
2820
|
background-color: var(--color-red-50);
|
|
2730
2821
|
}
|
|
2731
2822
|
|
|
2823
|
+
.bg-red-400 {
|
|
2824
|
+
background-color: var(--color-red-400);
|
|
2825
|
+
}
|
|
2826
|
+
|
|
2732
2827
|
.bg-rose-50 {
|
|
2733
2828
|
background-color: var(--color-rose-50);
|
|
2734
2829
|
}
|
|
@@ -2791,6 +2886,10 @@
|
|
|
2791
2886
|
background-color: #0000;
|
|
2792
2887
|
}
|
|
2793
2888
|
|
|
2889
|
+
.bg-white {
|
|
2890
|
+
background-color: var(--color-white);
|
|
2891
|
+
}
|
|
2892
|
+
|
|
2794
2893
|
.bg-white\/5 {
|
|
2795
2894
|
background-color: #ffffff0d;
|
|
2796
2895
|
}
|
|
@@ -2801,6 +2900,10 @@
|
|
|
2801
2900
|
}
|
|
2802
2901
|
}
|
|
2803
2902
|
|
|
2903
|
+
.bg-yellow-400 {
|
|
2904
|
+
background-color: var(--color-yellow-400);
|
|
2905
|
+
}
|
|
2906
|
+
|
|
2804
2907
|
.bg-zinc-50 {
|
|
2805
2908
|
background-color: var(--color-zinc-50);
|
|
2806
2909
|
}
|
|
@@ -2835,6 +2938,16 @@
|
|
|
2835
2938
|
background-color: var(--color-zinc-950);
|
|
2836
2939
|
}
|
|
2837
2940
|
|
|
2941
|
+
.bg-zinc-950\/20 {
|
|
2942
|
+
background-color: #09090b33;
|
|
2943
|
+
}
|
|
2944
|
+
|
|
2945
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2946
|
+
.bg-zinc-950\/20 {
|
|
2947
|
+
background-color: color-mix(in oklab, var(--color-zinc-950) 20%, transparent);
|
|
2948
|
+
}
|
|
2949
|
+
}
|
|
2950
|
+
|
|
2838
2951
|
.fill-\(--clarify-theme-tokens-colors-foreground\) {
|
|
2839
2952
|
fill: var(--clarify-theme-tokens-colors-foreground);
|
|
2840
2953
|
}
|
|
@@ -2895,6 +3008,10 @@
|
|
|
2895
3008
|
stroke-width: 2px;
|
|
2896
3009
|
}
|
|
2897
3010
|
|
|
3011
|
+
.object-contain {
|
|
3012
|
+
object-fit: contain;
|
|
3013
|
+
}
|
|
3014
|
+
|
|
2898
3015
|
.p-0 {
|
|
2899
3016
|
padding: 0;
|
|
2900
3017
|
}
|
|
@@ -3047,6 +3164,10 @@
|
|
|
3047
3164
|
padding-bottom: calc(var(--spacing) * 4);
|
|
3048
3165
|
}
|
|
3049
3166
|
|
|
3167
|
+
.pb-6 {
|
|
3168
|
+
padding-bottom: calc(var(--spacing) * 6);
|
|
3169
|
+
}
|
|
3170
|
+
|
|
3050
3171
|
.pb-10 {
|
|
3051
3172
|
padding-bottom: calc(var(--spacing) * 10);
|
|
3052
3173
|
}
|
|
@@ -3091,6 +3212,10 @@
|
|
|
3091
3212
|
text-align: right;
|
|
3092
3213
|
}
|
|
3093
3214
|
|
|
3215
|
+
.align-middle {
|
|
3216
|
+
vertical-align: middle;
|
|
3217
|
+
}
|
|
3218
|
+
|
|
3094
3219
|
.font-mono {
|
|
3095
3220
|
font-family: var(--font-mono);
|
|
3096
3221
|
}
|
|
@@ -3099,11 +3224,6 @@
|
|
|
3099
3224
|
font-family: var(--font-sans);
|
|
3100
3225
|
}
|
|
3101
3226
|
|
|
3102
|
-
.text-2xl\/8 {
|
|
3103
|
-
font-size: var(--text-2xl);
|
|
3104
|
-
line-height: calc(var(--spacing) * 8);
|
|
3105
|
-
}
|
|
3106
|
-
|
|
3107
3227
|
.text-2xs {
|
|
3108
3228
|
font-size: var(--text-2xs);
|
|
3109
3229
|
line-height: var(--tw-leading, var(--text-2xs--line-height));
|
|
@@ -3412,6 +3532,10 @@
|
|
|
3412
3532
|
color: var(--color-zinc-900);
|
|
3413
3533
|
}
|
|
3414
3534
|
|
|
3535
|
+
.text-zinc-950 {
|
|
3536
|
+
color: var(--color-zinc-950);
|
|
3537
|
+
}
|
|
3538
|
+
|
|
3415
3539
|
.capitalize {
|
|
3416
3540
|
text-transform: capitalize;
|
|
3417
3541
|
}
|
|
@@ -3547,6 +3671,16 @@
|
|
|
3547
3671
|
}
|
|
3548
3672
|
}
|
|
3549
3673
|
|
|
3674
|
+
.shadow-zinc-900\/20 {
|
|
3675
|
+
--tw-shadow-color: #18181b33;
|
|
3676
|
+
}
|
|
3677
|
+
|
|
3678
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
3679
|
+
.shadow-zinc-900\/20 {
|
|
3680
|
+
--tw-shadow-color: color-mix(in oklab, color-mix(in oklab, var(--color-zinc-900) 20%, transparent) var(--tw-shadow-alpha), transparent);
|
|
3681
|
+
}
|
|
3682
|
+
}
|
|
3683
|
+
|
|
3550
3684
|
.ring-\(--clarify-theme-tokens-colors-border\) {
|
|
3551
3685
|
--tw-ring-color: var(--clarify-theme-tokens-colors-border);
|
|
3552
3686
|
}
|
|
@@ -3614,6 +3748,12 @@
|
|
|
3614
3748
|
backdrop-filter: var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );
|
|
3615
3749
|
}
|
|
3616
3750
|
|
|
3751
|
+
.backdrop-blur-\[1px\] {
|
|
3752
|
+
--tw-backdrop-blur: blur(1px);
|
|
3753
|
+
-webkit-backdrop-filter: var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );
|
|
3754
|
+
backdrop-filter: var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );
|
|
3755
|
+
}
|
|
3756
|
+
|
|
3617
3757
|
.backdrop-blur-sm {
|
|
3618
3758
|
--tw-backdrop-blur: blur(var(--blur-sm));
|
|
3619
3759
|
-webkit-backdrop-filter: var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );
|
|
@@ -3713,6 +3853,10 @@
|
|
|
3713
3853
|
--width: var(--clarify-heading-anchor-width);
|
|
3714
3854
|
}
|
|
3715
3855
|
|
|
3856
|
+
.\[clarify\:search\] {
|
|
3857
|
+
clarify: search;
|
|
3858
|
+
}
|
|
3859
|
+
|
|
3716
3860
|
.ring-inset {
|
|
3717
3861
|
--tw-ring-inset: inset;
|
|
3718
3862
|
}
|
|
@@ -4060,6 +4204,10 @@
|
|
|
4060
4204
|
}
|
|
4061
4205
|
|
|
4062
4206
|
@media (min-width: 40rem) {
|
|
4207
|
+
.sm\:mt-5 {
|
|
4208
|
+
margin-top: calc(var(--spacing) * 5);
|
|
4209
|
+
}
|
|
4210
|
+
|
|
4063
4211
|
.sm\:flex {
|
|
4064
4212
|
display: flex;
|
|
4065
4213
|
}
|
|
@@ -4104,10 +4252,6 @@
|
|
|
4104
4252
|
flex-direction: row;
|
|
4105
4253
|
}
|
|
4106
4254
|
|
|
4107
|
-
.sm\:items-center {
|
|
4108
|
-
align-items: center;
|
|
4109
|
-
}
|
|
4110
|
-
|
|
4111
4255
|
.sm\:items-start {
|
|
4112
4256
|
align-items: flex-start;
|
|
4113
4257
|
}
|
|
@@ -4120,14 +4264,30 @@
|
|
|
4120
4264
|
justify-content: flex-start;
|
|
4121
4265
|
}
|
|
4122
4266
|
|
|
4267
|
+
.sm\:gap-4 {
|
|
4268
|
+
gap: calc(var(--spacing) * 4);
|
|
4269
|
+
}
|
|
4270
|
+
|
|
4271
|
+
.sm\:p-5 {
|
|
4272
|
+
padding: calc(var(--spacing) * 5);
|
|
4273
|
+
}
|
|
4274
|
+
|
|
4123
4275
|
.sm\:px-1\.5 {
|
|
4124
4276
|
padding-inline: calc(var(--spacing) * 1.5);
|
|
4125
4277
|
}
|
|
4126
4278
|
|
|
4279
|
+
.sm\:px-4 {
|
|
4280
|
+
padding-inline: calc(var(--spacing) * 4);
|
|
4281
|
+
}
|
|
4282
|
+
|
|
4127
4283
|
.sm\:px-6 {
|
|
4128
4284
|
padding-inline: calc(var(--spacing) * 6);
|
|
4129
4285
|
}
|
|
4130
4286
|
|
|
4287
|
+
.sm\:py-4 {
|
|
4288
|
+
padding-block: calc(var(--spacing) * 4);
|
|
4289
|
+
}
|
|
4290
|
+
|
|
4131
4291
|
.sm\:py-20 {
|
|
4132
4292
|
padding-block: calc(var(--spacing) * 20);
|
|
4133
4293
|
}
|
|
@@ -4139,6 +4299,11 @@
|
|
|
4139
4299
|
.sm\:text-left {
|
|
4140
4300
|
text-align: left;
|
|
4141
4301
|
}
|
|
4302
|
+
|
|
4303
|
+
.sm\:text-2xl\/8 {
|
|
4304
|
+
font-size: var(--text-2xl);
|
|
4305
|
+
line-height: calc(var(--spacing) * 8);
|
|
4306
|
+
}
|
|
4142
4307
|
}
|
|
4143
4308
|
|
|
4144
4309
|
@media (min-width: 48rem) {
|
|
@@ -4492,6 +4657,16 @@
|
|
|
4492
4657
|
}
|
|
4493
4658
|
}
|
|
4494
4659
|
|
|
4660
|
+
.dark\:bg-black\/30:where(.dark, .dark *) {
|
|
4661
|
+
background-color: #0000004d;
|
|
4662
|
+
}
|
|
4663
|
+
|
|
4664
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
4665
|
+
.dark\:bg-black\/30:where(.dark, .dark *) {
|
|
4666
|
+
background-color: color-mix(in oklab, var(--color-black) 30%, transparent);
|
|
4667
|
+
}
|
|
4668
|
+
}
|
|
4669
|
+
|
|
4495
4670
|
.dark\:bg-emerald-400\/5:where(.dark, .dark *) {
|
|
4496
4671
|
background-color: #00d2940d;
|
|
4497
4672
|
}
|
|
@@ -4792,6 +4967,16 @@
|
|
|
4792
4967
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
4793
4968
|
}
|
|
4794
4969
|
|
|
4970
|
+
.dark\:shadow-black\/40:where(.dark, .dark *) {
|
|
4971
|
+
--tw-shadow-color: #0006;
|
|
4972
|
+
}
|
|
4973
|
+
|
|
4974
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
4975
|
+
.dark\:shadow-black\/40:where(.dark, .dark *) {
|
|
4976
|
+
--tw-shadow-color: color-mix(in oklab, color-mix(in oklab, var(--color-black) 40%, transparent) var(--tw-shadow-alpha), transparent);
|
|
4977
|
+
}
|
|
4978
|
+
}
|
|
4979
|
+
|
|
4795
4980
|
.dark\:ring-\(--clarify-theme-tokens-colors-primary\)\/20:where(.dark, .dark *) {
|
|
4796
4981
|
--tw-ring-color: var(--clarify-theme-tokens-colors-primary);
|
|
4797
4982
|
}
|
|
@@ -5263,6 +5448,12 @@
|
|
|
5263
5448
|
initial-value: 1;
|
|
5264
5449
|
}
|
|
5265
5450
|
|
|
5451
|
+
@keyframes spin {
|
|
5452
|
+
to {
|
|
5453
|
+
transform: rotate(360deg);
|
|
5454
|
+
}
|
|
5455
|
+
}
|
|
5456
|
+
|
|
5266
5457
|
@keyframes pulse {
|
|
5267
5458
|
50% {
|
|
5268
5459
|
opacity: .5;
|
package/output/server.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_shell = require("./shell-
|
|
3
|
-
const require_ThemeRoot = require("./ThemeRoot-
|
|
2
|
+
const require_shell = require("./shell-xxhV0p7k.cjs");
|
|
3
|
+
const require_ThemeRoot = require("./ThemeRoot-CEvwrGp5.cjs");
|
|
4
4
|
let react = require("react");
|
|
5
5
|
let react_router_dom = require("react-router-dom");
|
|
6
6
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -12,7 +12,7 @@ let react_dom_server = require("react-dom/server");
|
|
|
12
12
|
* 返回 `div#root` 内部的 HTML,由 Clarify CLI 组装为完整的 HTML 文档。
|
|
13
13
|
*/
|
|
14
14
|
function renderToHTML(options) {
|
|
15
|
-
const { config, routes, navigation, openApis = {}, url, themeEditor = false } = options;
|
|
15
|
+
const { config, routes, navigation, openApis = {}, footerComponent, url, themeEditor = false } = options;
|
|
16
16
|
const location = require_shell.prefixHref(url, config.routePrefix);
|
|
17
17
|
return (0, react_dom_server.renderToString)(/* @__PURE__ */ (0, react_jsx_runtime.jsx)(react.StrictMode, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_router_dom.StaticRouter, {
|
|
18
18
|
basename: config.routePrefix,
|
|
@@ -27,7 +27,8 @@ function renderToHTML(options) {
|
|
|
27
27
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ThemeRoot.AppShell, {
|
|
28
28
|
config,
|
|
29
29
|
routes,
|
|
30
|
-
navigation: navigation ?? []
|
|
30
|
+
navigation: navigation ?? [],
|
|
31
|
+
footerComponent
|
|
31
32
|
})
|
|
32
33
|
}) })
|
|
33
34
|
})
|
package/output/server.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.cjs","names":[],"sources":["../source/runtime/server.tsx"],"sourcesContent":["import { StrictMode } from 'react'\nimport { renderToString } from 'react-dom/server'\nimport { StaticRouter } from 'react-router-dom'\n\nimport { AppShell } from '../app/AppShell'\nimport { ClarifyConfigContext, OpenApisContext } from '../context'\nimport { ThemeProvider } from '../theme/ThemeProvider'\nimport { ThemeRoot } from '../theme/ThemeRoot'\nimport type { ServerRenderOptions } from '../types'\nimport { prefixHref } from '../utils/href'\n\n/**\n * Clarify 服务端渲染入口。\n * 由 @clarify-labs/cli 在构建时调用,为每条路由生成 React HTML 片段。\n * 返回 `div#root` 内部的 HTML,由 Clarify CLI 组装为完整的 HTML 文档。\n */\nexport function renderToHTML(options: ServerRenderOptions): string {\n const { config, routes, navigation, openApis = {}, url, themeEditor = false } = options\n const location = prefixHref(url, config.routePrefix)\n\n return renderToString(\n <StrictMode>\n <StaticRouter basename={config.routePrefix} location={location}>\n <ClarifyConfigContext.Provider value={config}>\n <OpenApisContext.Provider value={openApis}>\n <ThemeProvider>\n <ThemeRoot theme={config.theme} themeEditor={themeEditor}>\n <AppShell config={config} routes={routes} navigation={navigation ?? []} />\n </ThemeRoot>\n </ThemeProvider>\n </OpenApisContext.Provider>\n </ClarifyConfigContext.Provider>\n </StaticRouter>\n </StrictMode>\n )\n}\n"],"mappings":";;;;;;;;;;;;;AAgBA,SAAgB,aAAa,SAAsC;CACjE,MAAM,EAAE,QAAQ,QAAQ,YAAY,WAAW,CAAC,GAAG,KAAK,cAAc,UAAU;
|
|
1
|
+
{"version":3,"file":"server.cjs","names":[],"sources":["../source/runtime/server.tsx"],"sourcesContent":["import { StrictMode } from 'react'\nimport { renderToString } from 'react-dom/server'\nimport { StaticRouter } from 'react-router-dom'\n\nimport { AppShell } from '../app/AppShell'\nimport { ClarifyConfigContext, OpenApisContext } from '../context'\nimport { ThemeProvider } from '../theme/ThemeProvider'\nimport { ThemeRoot } from '../theme/ThemeRoot'\nimport type { ServerRenderOptions } from '../types'\nimport { prefixHref } from '../utils/href'\n\n/**\n * Clarify 服务端渲染入口。\n * 由 @clarify-labs/cli 在构建时调用,为每条路由生成 React HTML 片段。\n * 返回 `div#root` 内部的 HTML,由 Clarify CLI 组装为完整的 HTML 文档。\n */\nexport function renderToHTML(options: ServerRenderOptions): string {\n const { config, routes, navigation, openApis = {}, footerComponent, url, themeEditor = false } = options\n const location = prefixHref(url, config.routePrefix)\n\n return renderToString(\n <StrictMode>\n <StaticRouter basename={config.routePrefix} location={location}>\n <ClarifyConfigContext.Provider value={config}>\n <OpenApisContext.Provider value={openApis}>\n <ThemeProvider>\n <ThemeRoot theme={config.theme} themeEditor={themeEditor}>\n <AppShell config={config} routes={routes} navigation={navigation ?? []} footerComponent={footerComponent} />\n </ThemeRoot>\n </ThemeProvider>\n </OpenApisContext.Provider>\n </ClarifyConfigContext.Provider>\n </StaticRouter>\n </StrictMode>\n )\n}\n"],"mappings":";;;;;;;;;;;;;AAgBA,SAAgB,aAAa,SAAsC;CACjE,MAAM,EAAE,QAAQ,QAAQ,YAAY,WAAW,CAAC,GAAG,iBAAiB,KAAK,cAAc,UAAU;CACjG,MAAM,WAAW,cAAA,WAAW,KAAK,OAAO,WAAW;CAEnD,QAAA,GAAA,iBAAA,gBACE,iBAAA,GAAA,kBAAA,KAAC,MAAA,YAAD,EAAA,UACE,iBAAA,GAAA,kBAAA,KAAC,iBAAA,cAAD;EAAc,UAAU,OAAO;EAAuB;YACpD,iBAAA,GAAA,kBAAA,KAAC,cAAA,qBAAqB,UAAtB;GAA+B,OAAO;aACpC,iBAAA,GAAA,kBAAA,KAAC,cAAA,gBAAgB,UAAjB;IAA0B,OAAO;cAC/B,iBAAA,GAAA,kBAAA,KAAC,cAAA,eAAD,EAAA,UACE,iBAAA,GAAA,kBAAA,KAAC,kBAAA,WAAD;KAAW,OAAO,OAAO;KAAoB;eAC3C,iBAAA,GAAA,kBAAA,KAAC,kBAAA,UAAD;MAAkB;MAAgB;MAAQ,YAAY,cAAc,CAAC;MAAoB;KAAkB,CAAA;IAClG,CAAA,EACE,CAAA;GACS,CAAA;EACG,CAAA;CACnB,CAAA,EACJ,CAAA,CACd;AACF"}
|
package/output/server.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as AppShell, t as ThemeRoot } from "./ThemeRoot-
|
|
1
|
+
import { A as OpenApisContext, O as ClarifyConfigContext, T as prefixHref, f as ThemeProvider } from "./shell-CumiARRe.js";
|
|
2
|
+
import { a as AppShell, t as ThemeRoot } from "./ThemeRoot-C_ZdzSMu.js";
|
|
3
3
|
import { StrictMode } from "react";
|
|
4
4
|
import { StaticRouter } from "react-router-dom";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -11,7 +11,7 @@ import { renderToString } from "react-dom/server";
|
|
|
11
11
|
* 返回 `div#root` 内部的 HTML,由 Clarify CLI 组装为完整的 HTML 文档。
|
|
12
12
|
*/
|
|
13
13
|
function renderToHTML(options) {
|
|
14
|
-
const { config, routes, navigation, openApis = {}, url, themeEditor = false } = options;
|
|
14
|
+
const { config, routes, navigation, openApis = {}, footerComponent, url, themeEditor = false } = options;
|
|
15
15
|
const location = prefixHref(url, config.routePrefix);
|
|
16
16
|
return renderToString(/* @__PURE__ */ jsx(StrictMode, { children: /* @__PURE__ */ jsx(StaticRouter, {
|
|
17
17
|
basename: config.routePrefix,
|
|
@@ -26,7 +26,8 @@ function renderToHTML(options) {
|
|
|
26
26
|
children: /* @__PURE__ */ jsx(AppShell, {
|
|
27
27
|
config,
|
|
28
28
|
routes,
|
|
29
|
-
navigation: navigation ?? []
|
|
29
|
+
navigation: navigation ?? [],
|
|
30
|
+
footerComponent
|
|
30
31
|
})
|
|
31
32
|
}) })
|
|
32
33
|
})
|
package/output/server.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","names":[],"sources":["../source/runtime/server.tsx"],"sourcesContent":["import { StrictMode } from 'react'\nimport { renderToString } from 'react-dom/server'\nimport { StaticRouter } from 'react-router-dom'\n\nimport { AppShell } from '../app/AppShell'\nimport { ClarifyConfigContext, OpenApisContext } from '../context'\nimport { ThemeProvider } from '../theme/ThemeProvider'\nimport { ThemeRoot } from '../theme/ThemeRoot'\nimport type { ServerRenderOptions } from '../types'\nimport { prefixHref } from '../utils/href'\n\n/**\n * Clarify 服务端渲染入口。\n * 由 @clarify-labs/cli 在构建时调用,为每条路由生成 React HTML 片段。\n * 返回 `div#root` 内部的 HTML,由 Clarify CLI 组装为完整的 HTML 文档。\n */\nexport function renderToHTML(options: ServerRenderOptions): string {\n const { config, routes, navigation, openApis = {}, url, themeEditor = false } = options\n const location = prefixHref(url, config.routePrefix)\n\n return renderToString(\n <StrictMode>\n <StaticRouter basename={config.routePrefix} location={location}>\n <ClarifyConfigContext.Provider value={config}>\n <OpenApisContext.Provider value={openApis}>\n <ThemeProvider>\n <ThemeRoot theme={config.theme} themeEditor={themeEditor}>\n <AppShell config={config} routes={routes} navigation={navigation ?? []} />\n </ThemeRoot>\n </ThemeProvider>\n </OpenApisContext.Provider>\n </ClarifyConfigContext.Provider>\n </StaticRouter>\n </StrictMode>\n )\n}\n"],"mappings":";;;;;;;;;;;;AAgBA,SAAgB,aAAa,SAAsC;CACjE,MAAM,EAAE,QAAQ,QAAQ,YAAY,WAAW,CAAC,GAAG,KAAK,cAAc,UAAU;
|
|
1
|
+
{"version":3,"file":"server.js","names":[],"sources":["../source/runtime/server.tsx"],"sourcesContent":["import { StrictMode } from 'react'\nimport { renderToString } from 'react-dom/server'\nimport { StaticRouter } from 'react-router-dom'\n\nimport { AppShell } from '../app/AppShell'\nimport { ClarifyConfigContext, OpenApisContext } from '../context'\nimport { ThemeProvider } from '../theme/ThemeProvider'\nimport { ThemeRoot } from '../theme/ThemeRoot'\nimport type { ServerRenderOptions } from '../types'\nimport { prefixHref } from '../utils/href'\n\n/**\n * Clarify 服务端渲染入口。\n * 由 @clarify-labs/cli 在构建时调用,为每条路由生成 React HTML 片段。\n * 返回 `div#root` 内部的 HTML,由 Clarify CLI 组装为完整的 HTML 文档。\n */\nexport function renderToHTML(options: ServerRenderOptions): string {\n const { config, routes, navigation, openApis = {}, footerComponent, url, themeEditor = false } = options\n const location = prefixHref(url, config.routePrefix)\n\n return renderToString(\n <StrictMode>\n <StaticRouter basename={config.routePrefix} location={location}>\n <ClarifyConfigContext.Provider value={config}>\n <OpenApisContext.Provider value={openApis}>\n <ThemeProvider>\n <ThemeRoot theme={config.theme} themeEditor={themeEditor}>\n <AppShell config={config} routes={routes} navigation={navigation ?? []} footerComponent={footerComponent} />\n </ThemeRoot>\n </ThemeProvider>\n </OpenApisContext.Provider>\n </ClarifyConfigContext.Provider>\n </StaticRouter>\n </StrictMode>\n )\n}\n"],"mappings":";;;;;;;;;;;;AAgBA,SAAgB,aAAa,SAAsC;CACjE,MAAM,EAAE,QAAQ,QAAQ,YAAY,WAAW,CAAC,GAAG,iBAAiB,KAAK,cAAc,UAAU;CACjG,MAAM,WAAW,WAAW,KAAK,OAAO,WAAW;CAEnD,OAAO,eACL,oBAAC,YAAD,EAAA,UACE,oBAAC,cAAD;EAAc,UAAU,OAAO;EAAuB;YACpD,oBAAC,qBAAqB,UAAtB;GAA+B,OAAO;aACpC,oBAAC,gBAAgB,UAAjB;IAA0B,OAAO;cAC/B,oBAAC,eAAD,EAAA,UACE,oBAAC,WAAD;KAAW,OAAO,OAAO;KAAoB;eAC3C,oBAAC,UAAD;MAAkB;MAAgB;MAAQ,YAAY,cAAc,CAAC;MAAoB;KAAkB,CAAA;IAClG,CAAA,EACE,CAAA;GACS,CAAA;EACG,CAAA;CACnB,CAAA,EACJ,CAAA,CACd;AACF"}
|
package/output/shell/Search.d.ts
CHANGED
|
@@ -2,11 +2,15 @@ import { NavigationNode, RouteItem } from '../types';
|
|
|
2
2
|
export type SearchProps = {
|
|
3
3
|
routes: RouteItem[];
|
|
4
4
|
navigation: NavigationNode[];
|
|
5
|
+
routePrefix?: string;
|
|
6
|
+
currentLocale?: string;
|
|
5
7
|
};
|
|
6
8
|
export declare function Search(arg0: SearchProps): import("react").JSX.Element;
|
|
7
9
|
export type MobileSearchProps = {
|
|
8
10
|
routes: RouteItem[];
|
|
9
11
|
navigation: NavigationNode[];
|
|
12
|
+
routePrefix?: string;
|
|
13
|
+
currentLocale?: string;
|
|
10
14
|
onNavigate?: () => void;
|
|
11
15
|
};
|
|
12
16
|
export declare function MobileSearch(arg0: MobileSearchProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type HighlightQueryProps = {
|
|
2
|
+
text: string;
|
|
3
|
+
query: string;
|
|
4
|
+
};
|
|
5
|
+
export declare function HighlightQuery(arg0: HighlightQueryProps): string | import("react").JSX.Element;
|
|
6
|
+
type HighlightExcerptProps = {
|
|
7
|
+
excerpt: string;
|
|
8
|
+
query: string;
|
|
9
|
+
};
|
|
10
|
+
export declare function HighlightExcerpt(arg0: HighlightExcerptProps): import("react").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { NavigationNode, RouteItem } from '../../types';
|
|
2
|
+
type SearchDialogProps = {
|
|
3
|
+
open: boolean;
|
|
4
|
+
setOpen: (open: boolean) => void;
|
|
5
|
+
routes: RouteItem[];
|
|
6
|
+
navigation: NavigationNode[];
|
|
7
|
+
routePrefix?: string;
|
|
8
|
+
currentLocale?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
onNavigate?: () => void;
|
|
11
|
+
};
|
|
12
|
+
export declare function SearchDialog(arg0: SearchDialogProps): import("react").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const SearchInput: import('react').ForwardRefExoticComponent<{
|
|
2
|
+
query: string;
|
|
3
|
+
setQuery: (query: string) => void;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
onSubmit: () => void;
|
|
6
|
+
activeDescendantId?: string;
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
} & import('react').RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SearchDisplayItem } from './types';
|
|
2
|
+
type SearchResultProps = {
|
|
3
|
+
result: SearchDisplayItem;
|
|
4
|
+
query: string;
|
|
5
|
+
active: boolean;
|
|
6
|
+
onActive: () => void;
|
|
7
|
+
onSelect: () => void;
|
|
8
|
+
};
|
|
9
|
+
export declare function SearchResult(arg0: SearchResultProps): import("react").JSX.Element;
|
|
10
|
+
export {};
|