@windrun-huaiin/third-ui 5.1.0 → 5.1.2
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/dist/fuma/server.d.mts +4 -1
- package/dist/fuma/server.d.ts +4 -1
- package/dist/fuma/server.js +173 -5727
- package/dist/fuma/server.js.map +1 -1
- package/dist/fuma/server.mjs +207 -5761
- package/dist/fuma/server.mjs.map +1 -1
- package/dist/fuma.css +17 -10
- package/dist/third-ui.css +24 -2
- package/package.json +3 -2
- package/src/fuma/fuma-page-genarator.tsx +7 -3
- package/src/styles/fuma.css +17 -10
- package/src/styles/third-ui.css +23 -1
package/dist/fuma.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/* Has Banner */
|
|
2
2
|
.has-banner .sticky.top-0.z-40 {
|
|
3
3
|
position: fixed !important;
|
|
4
4
|
top: 0 !important;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
top: 2.5rem !important;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
/*
|
|
18
|
+
/* No Banner */
|
|
19
19
|
.no-banner .sticky.top-0.z-40 {
|
|
20
20
|
position: fixed !important;
|
|
21
21
|
top: 0 !important;
|
|
@@ -32,30 +32,31 @@
|
|
|
32
32
|
top: 0rem !important;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
+
/* Banner */
|
|
35
36
|
.has-banner main,
|
|
36
37
|
.has-banner .main-content {
|
|
37
|
-
padding-top: 3rem;
|
|
38
|
+
padding-top: 3rem;
|
|
38
39
|
}
|
|
39
40
|
.no-banner main,
|
|
40
41
|
.no-banner .main-content {
|
|
41
|
-
padding-top: 0.5rem;
|
|
42
|
+
padding-top: 0.5rem;
|
|
42
43
|
}
|
|
43
44
|
|
|
44
|
-
/*
|
|
45
|
+
/* Custome Fuma Steps */
|
|
45
46
|
.fd-step::before {
|
|
46
47
|
@apply size-5 -start-2.5 rounded-full;
|
|
47
|
-
background-color: #000;
|
|
48
|
+
background-color: #000;
|
|
48
49
|
color: #fff;
|
|
49
|
-
font-size: 0.75rem;
|
|
50
|
+
font-size: 0.75rem;
|
|
50
51
|
line-height: 1rem;
|
|
51
52
|
margin-top: 0.4rem !important;
|
|
52
53
|
}
|
|
53
54
|
.dark .fd-step::before {
|
|
54
|
-
background-color: #fff !important;
|
|
55
|
+
background-color: #fff !important;
|
|
55
56
|
color: #000 !important;
|
|
56
57
|
}
|
|
57
58
|
|
|
58
|
-
/* fuma image-zoom
|
|
59
|
+
/* fuma image-zoom COPY */
|
|
59
60
|
|
|
60
61
|
[data-rmiz] {
|
|
61
62
|
display: block;
|
|
@@ -129,4 +130,10 @@
|
|
|
129
130
|
[data-rmiz-modal-img] {
|
|
130
131
|
transition-duration: 0.01ms !important;
|
|
131
132
|
}
|
|
132
|
-
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/* i18n language width */
|
|
136
|
+
div[role="dialog"].rounded-lg.border.bg-fd-popover {
|
|
137
|
+
min-width: 150px !important;
|
|
138
|
+
max-width: 150px !important;
|
|
139
|
+
}
|
package/dist/third-ui.css
CHANGED
|
@@ -1,7 +1,29 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Fuma Docs UI
|
|
3
|
+
* theme corlor, see https://fumadocs.dev/docs/ui/theme
|
|
4
|
+
* neutral
|
|
5
|
+
* black
|
|
6
|
+
* vitepress
|
|
7
|
+
* dusk
|
|
8
|
+
* catppuccin
|
|
9
|
+
* ocean
|
|
10
|
+
* purple
|
|
11
|
+
*/
|
|
12
|
+
@import 'fumadocs-ui/css/vitepress.css';
|
|
13
|
+
@import 'fumadocs-ui/css/preset.css';
|
|
14
|
+
@import 'katex/dist/katex.css';
|
|
15
|
+
/* Special Magic */
|
|
16
|
+
@import './fuma.css';
|
|
17
|
+
|
|
18
|
+
@import 'nprogress/nprogress.css';
|
|
19
|
+
|
|
20
|
+
/* Base UI */
|
|
1
21
|
@import '@windrun-huaiin/base-ui/styles/base-ui.css';
|
|
2
|
-
|
|
22
|
+
|
|
3
23
|
@import './cta.css';
|
|
4
24
|
|
|
25
|
+
/* Third UI */
|
|
26
|
+
|
|
5
27
|
/* Loading Animation Keyframes */
|
|
6
28
|
@keyframes loading-dot-pulse {
|
|
7
29
|
0% {
|
|
@@ -41,4 +63,4 @@
|
|
|
41
63
|
body {
|
|
42
64
|
font-family: 'Montserrat', "STKaiti", "STKaiti", "Kaiti SC", "KaiTi", "楷体", "PingFang SC", "Microsoft YaHei", Arial, sans-serif !important;
|
|
43
65
|
}
|
|
44
|
-
/*# sourceMappingURL=data:application/json;base64,
|
|
66
|
+
/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9zdHlsZXMvdGhpcmQtdWkuY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBIiwiZmlsZSI6InRoaXJkLXVpLmNzcyIsInNvdXJjZXNDb250ZW50IjpbIi8qIFxuICogRnVtYSBEb2NzIFVJXG4gKiB0aGVtZSBjb3Jsb3IsIHNlZSBodHRwczovL2Z1bWFkb2NzLmRldi9kb2NzL3VpL3RoZW1lXG4gKiBuZXV0cmFsXG4gKiBibGFja1xuICogdml0ZXByZXNzXG4gKiBkdXNrXG4gKiBjYXRwcHVjY2luXG4gKiBvY2VhblxuICogcHVycGxlXG4gKi9cbiBAaW1wb3J0ICdmdW1hZG9jcy11aS9jc3Mvdml0ZXByZXNzLmNzcyc7XG4gQGltcG9ydCAnZnVtYWRvY3MtdWkvY3NzL3ByZXNldC5jc3MnO1xuIEBpbXBvcnQgJ2thdGV4L2Rpc3Qva2F0ZXguY3NzJztcbiAvKiBTcGVjaWFsIE1hZ2ljICovXG4gQGltcG9ydCAnLi9mdW1hLmNzcyc7XG4gXG4gQGltcG9ydCAnbnByb2dyZXNzL25wcm9ncmVzcy5jc3MnO1xuXG4vKiBCYXNlIFVJICovXG5AaW1wb3J0ICdAd2luZHJ1bi1od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iBEYXJrIHRoZW1lICovXG59XG5cbi8qIEVuZ2xpc2ggYW5kIG51bWVyaWMgY2hhcmFjdGVycyB1c2UgTW9udHNlcnJhdCBmb250LCBDaGluZXNlIHVzZSBTVEthaXRpICovXG5ib2R5IHtcbiAgZm9udC1mYW1pbHk6ICdNb250c2VycmF0JywgXCJTVEthaXRpXCIsIFwiU1RLYWl0aVwiLCBcIkthaXRpIFNDXCIsIFwiS2FpVGlcIiwgXCLmpbfkvZNcIiwgXCJQaW5nRmFuZyBTQ1wiLCBcIk1pY3Jvc29mdCBZYUhlaVwiLCBBcmlhbCwgc2Fucy1zZXJpZiAhaW1wb3J0YW50O1xufSJdfQ== */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@windrun-huaiin/third-ui",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.2",
|
|
4
4
|
"description": "Third-party integrated UI components for windrun-huaiin projects",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -49,10 +49,11 @@
|
|
|
49
49
|
"fumadocs-mdx": "11.6.3",
|
|
50
50
|
"fumadocs-typescript": "4.0.4",
|
|
51
51
|
"fumadocs-ui": "15.3.3",
|
|
52
|
+
"katex": "^0.16.22",
|
|
52
53
|
"mermaid": "^11.6.0",
|
|
53
54
|
"react-medium-image-zoom": "^5.2.14",
|
|
54
55
|
"zod": "^3.22.4",
|
|
55
|
-
"@windrun-huaiin/base-ui": "^5.1.
|
|
56
|
+
"@windrun-huaiin/base-ui": "^5.1.2"
|
|
56
57
|
},
|
|
57
58
|
"peerDependencies": {
|
|
58
59
|
"react": "19.1.0",
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { DocsBody, DocsDescription, DocsPage, DocsTitle } from 'fumadocs-ui/page';
|
|
2
|
-
import { NotFoundPage } from '@base-ui/components';
|
|
3
1
|
import { TocFooter } from '@third-ui/fuma/mdx/toc';
|
|
2
|
+
import { DocsBody, DocsDescription, DocsPage, DocsTitle } from 'fumadocs-ui/page';
|
|
4
3
|
import { ReactNode } from 'react';
|
|
5
4
|
|
|
6
5
|
interface FumaPageParams {
|
|
@@ -28,6 +27,10 @@ interface FumaPageParams {
|
|
|
28
27
|
* The site icon component to use in NotFoundPage
|
|
29
28
|
*/
|
|
30
29
|
siteIcon: ReactNode;
|
|
30
|
+
/*
|
|
31
|
+
* The fallback page component to use when the page is not found
|
|
32
|
+
*/
|
|
33
|
+
FallbackPage: React.ComponentType<{ siteIcon: ReactNode }>;
|
|
31
34
|
}
|
|
32
35
|
|
|
33
36
|
export function createFumaPage({
|
|
@@ -37,12 +40,13 @@ export function createFumaPage({
|
|
|
37
40
|
githubBaseUrl,
|
|
38
41
|
showCopy = true,
|
|
39
42
|
siteIcon,
|
|
43
|
+
FallbackPage,
|
|
40
44
|
}: FumaPageParams) {
|
|
41
45
|
const Page = async function Page({ params }: { params: Promise<{ locale: string; slug?: string[] }> }) {
|
|
42
46
|
const { slug, locale } = await params;
|
|
43
47
|
const page = mdxContentSource.getPage(slug, locale);
|
|
44
48
|
if (!page) {
|
|
45
|
-
return <
|
|
49
|
+
return <FallbackPage siteIcon={siteIcon} />;
|
|
46
50
|
}
|
|
47
51
|
|
|
48
52
|
const path = githubBaseUrl ? `${mdxSourceDir}/${page.file.path}` : undefined;
|
package/src/styles/fuma.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/* Has Banner */
|
|
2
2
|
.has-banner .sticky.top-0.z-40 {
|
|
3
3
|
position: fixed !important;
|
|
4
4
|
top: 0 !important;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
top: 2.5rem !important;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
/*
|
|
18
|
+
/* No Banner */
|
|
19
19
|
.no-banner .sticky.top-0.z-40 {
|
|
20
20
|
position: fixed !important;
|
|
21
21
|
top: 0 !important;
|
|
@@ -32,30 +32,31 @@
|
|
|
32
32
|
top: 0rem !important;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
+
/* Banner */
|
|
35
36
|
.has-banner main,
|
|
36
37
|
.has-banner .main-content {
|
|
37
|
-
padding-top: 3rem;
|
|
38
|
+
padding-top: 3rem;
|
|
38
39
|
}
|
|
39
40
|
.no-banner main,
|
|
40
41
|
.no-banner .main-content {
|
|
41
|
-
padding-top: 0.5rem;
|
|
42
|
+
padding-top: 0.5rem;
|
|
42
43
|
}
|
|
43
44
|
|
|
44
|
-
/*
|
|
45
|
+
/* Custome Fuma Steps */
|
|
45
46
|
.fd-step::before {
|
|
46
47
|
@apply size-5 -start-2.5 rounded-full;
|
|
47
|
-
background-color: #000;
|
|
48
|
+
background-color: #000;
|
|
48
49
|
color: #fff;
|
|
49
|
-
font-size: 0.75rem;
|
|
50
|
+
font-size: 0.75rem;
|
|
50
51
|
line-height: 1rem;
|
|
51
52
|
margin-top: 0.4rem !important;
|
|
52
53
|
}
|
|
53
54
|
.dark .fd-step::before {
|
|
54
|
-
background-color: #fff !important;
|
|
55
|
+
background-color: #fff !important;
|
|
55
56
|
color: #000 !important;
|
|
56
57
|
}
|
|
57
58
|
|
|
58
|
-
/* fuma image-zoom
|
|
59
|
+
/* fuma image-zoom COPY */
|
|
59
60
|
|
|
60
61
|
[data-rmiz] {
|
|
61
62
|
display: block;
|
|
@@ -129,4 +130,10 @@
|
|
|
129
130
|
[data-rmiz-modal-img] {
|
|
130
131
|
transition-duration: 0.01ms !important;
|
|
131
132
|
}
|
|
132
|
-
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/* i18n language width */
|
|
136
|
+
div[role="dialog"].rounded-lg.border.bg-fd-popover {
|
|
137
|
+
min-width: 150px !important;
|
|
138
|
+
max-width: 150px !important;
|
|
139
|
+
}
|
package/src/styles/third-ui.css
CHANGED
|
@@ -1,7 +1,29 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Fuma Docs UI
|
|
3
|
+
* theme corlor, see https://fumadocs.dev/docs/ui/theme
|
|
4
|
+
* neutral
|
|
5
|
+
* black
|
|
6
|
+
* vitepress
|
|
7
|
+
* dusk
|
|
8
|
+
* catppuccin
|
|
9
|
+
* ocean
|
|
10
|
+
* purple
|
|
11
|
+
*/
|
|
12
|
+
@import 'fumadocs-ui/css/vitepress.css';
|
|
13
|
+
@import 'fumadocs-ui/css/preset.css';
|
|
14
|
+
@import 'katex/dist/katex.css';
|
|
15
|
+
/* Special Magic */
|
|
16
|
+
@import './fuma.css';
|
|
17
|
+
|
|
18
|
+
@import 'nprogress/nprogress.css';
|
|
19
|
+
|
|
20
|
+
/* Base UI */
|
|
1
21
|
@import '@windrun-huaiin/base-ui/styles/base-ui.css';
|
|
2
|
-
|
|
22
|
+
|
|
3
23
|
@import './cta.css';
|
|
4
24
|
|
|
25
|
+
/* Third UI */
|
|
26
|
+
|
|
5
27
|
/* Loading Animation Keyframes */
|
|
6
28
|
@keyframes loading-dot-pulse {
|
|
7
29
|
0% {
|