@windrun-huaiin/third-ui 3.2.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/LICENSE +21 -0
- package/README.md +210 -0
- package/dist/clerk/index.d.mts +33 -0
- package/dist/clerk/index.d.ts +33 -0
- package/dist/clerk/index.js +2395 -0
- package/dist/clerk/index.js.map +1 -0
- package/dist/clerk/index.mjs +2361 -0
- package/dist/clerk/index.mjs.map +1 -0
- package/dist/cta.css +16 -0
- package/dist/fuma/index.d.mts +51 -0
- package/dist/fuma/index.d.ts +51 -0
- package/dist/fuma/index.js +2976 -0
- package/dist/fuma/index.js.map +1 -0
- package/dist/fuma/index.mjs +2944 -0
- package/dist/fuma/index.mjs.map +1 -0
- package/dist/fuma/mdx/index.d.mts +94 -0
- package/dist/fuma/mdx/index.d.ts +94 -0
- package/dist/fuma/mdx/index.js +2866 -0
- package/dist/fuma/mdx/index.js.map +1 -0
- package/dist/fuma/mdx/index.mjs +2827 -0
- package/dist/fuma/mdx/index.mjs.map +1 -0
- package/dist/fuma.css +132 -0
- package/dist/index.d.mts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +3597 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +3549 -0
- package/dist/index.mjs.map +1 -0
- package/dist/lib/index.d.mts +4414 -0
- package/dist/lib/index.d.ts +4414 -0
- package/dist/lib/index.js +127 -0
- package/dist/lib/index.js.map +1 -0
- package/dist/lib/index.mjs +95 -0
- package/dist/lib/index.mjs.map +1 -0
- package/dist/main/index.d.mts +25 -0
- package/dist/main/index.d.ts +25 -0
- package/dist/main/index.js +3003 -0
- package/dist/main/index.js.map +1 -0
- package/dist/main/index.mjs +2963 -0
- package/dist/main/index.mjs.map +1 -0
- package/dist/third-ui.css +44 -0
- package/package.json +106 -0
- package/src/clerk/clerk-organization.tsx +47 -0
- package/src/clerk/clerk-page-generator.tsx +42 -0
- package/src/clerk/clerk-provider-client.tsx +57 -0
- package/src/clerk/clerk-user.tsx +59 -0
- package/src/clerk/index.ts +5 -0
- package/src/fuma/fuma-banner-suit.tsx +16 -0
- package/src/fuma/fuma-github-info.tsx +194 -0
- package/src/fuma/fuma-page-genarator.tsx +94 -0
- package/src/fuma/index.ts +4 -0
- package/src/fuma/mdx/airtical-card.tsx +56 -0
- package/src/fuma/mdx/gradient-button.tsx +62 -0
- package/src/fuma/mdx/image-grid.tsx +35 -0
- package/src/fuma/mdx/image-zoom.tsx +84 -0
- package/src/fuma/mdx/index.ts +8 -0
- package/src/fuma/mdx/mermaid.tsx +87 -0
- package/src/fuma/mdx/toc-base.tsx +88 -0
- package/src/fuma/mdx/toc.tsx +35 -0
- package/src/fuma/mdx/trophy-card.tsx +36 -0
- package/src/fuma/mdx/zia-card.tsx +46 -0
- package/src/index.ts +4 -0
- package/src/lib/clerk-intl.ts +13 -0
- package/src/lib/fuma-schema-check-util.ts +73 -0
- package/src/lib/fuma-search-util.ts +6 -0
- package/src/lib/index.ts +3 -0
- package/src/main/ads-alert-dialog.tsx +133 -0
- package/src/main/cta.tsx +28 -0
- package/src/main/faq.tsx +58 -0
- package/src/main/features.tsx +35 -0
- package/src/main/footer.tsx +37 -0
- package/src/main/gallery.tsx +68 -0
- package/src/main/go-to-top.tsx +44 -0
- package/src/main/index.ts +12 -0
- package/src/main/loading.tsx +93 -0
- package/src/main/nprogress-bar.tsx +24 -0
- package/src/main/seo-content.tsx +34 -0
- package/src/main/tips.tsx +38 -0
- package/src/main/usage.tsx +45 -0
- package/src/styles/cta.css +16 -0
- package/src/styles/fuma.css +132 -0
- package/src/styles/third-ui.css +43 -0
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ImageProps } from 'fumadocs-core/framework';
|
|
3
|
+
import React, { ImgHTMLAttributes, HTMLAttributes, ReactNode } from 'react';
|
|
4
|
+
import { UncontrolledProps } from 'react-medium-image-zoom';
|
|
5
|
+
|
|
6
|
+
interface MermaidProps {
|
|
7
|
+
chart: string;
|
|
8
|
+
title?: string;
|
|
9
|
+
watermarkEnabled?: boolean;
|
|
10
|
+
watermarkText?: string;
|
|
11
|
+
}
|
|
12
|
+
declare function Mermaid({ chart, title, watermarkEnabled, watermarkText }: MermaidProps): react_jsx_runtime.JSX.Element;
|
|
13
|
+
|
|
14
|
+
type ImageZoomProps = ImageProps & {
|
|
15
|
+
/**
|
|
16
|
+
* Image props when zoom in
|
|
17
|
+
*/
|
|
18
|
+
zoomInProps?: ImgHTMLAttributes<HTMLImageElement>;
|
|
19
|
+
/**
|
|
20
|
+
* Props for `react-medium-image-zoom`
|
|
21
|
+
*/
|
|
22
|
+
rmiz?: UncontrolledProps;
|
|
23
|
+
/**
|
|
24
|
+
* placeholder image path
|
|
25
|
+
*/
|
|
26
|
+
fallbackSrc?: string;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* @example
|
|
30
|
+
* <ImageZoom src="URL" fallbackSrc="/my-placeholder.png" />
|
|
31
|
+
*/
|
|
32
|
+
declare function ImageZoom({ zoomInProps, children, rmiz, fallbackSrc, ...props }: ImageZoomProps): react_jsx_runtime.JSX.Element;
|
|
33
|
+
|
|
34
|
+
declare function TrophyCard({ icon, title, children, }: {
|
|
35
|
+
icon?: React.ReactNode;
|
|
36
|
+
title: React.ReactNode;
|
|
37
|
+
children?: React.ReactNode;
|
|
38
|
+
}): react_jsx_runtime.JSX.Element;
|
|
39
|
+
|
|
40
|
+
declare function ImageGrid({ type, images, altPrefix, cdnBaseUrl, }: {
|
|
41
|
+
type: "url" | "local";
|
|
42
|
+
images: string[];
|
|
43
|
+
altPrefix?: string;
|
|
44
|
+
cdnBaseUrl?: string;
|
|
45
|
+
}): react_jsx_runtime.JSX.Element;
|
|
46
|
+
|
|
47
|
+
type ZiaCardProps = Omit<HTMLAttributes<HTMLElement>, 'title'> & {
|
|
48
|
+
icon?: ReactNode;
|
|
49
|
+
title: ReactNode;
|
|
50
|
+
description?: ReactNode;
|
|
51
|
+
href?: string;
|
|
52
|
+
external?: boolean;
|
|
53
|
+
};
|
|
54
|
+
declare function ZiaCard({ icon, title, description, ...props }: ZiaCardProps): react_jsx_runtime.JSX.Element;
|
|
55
|
+
|
|
56
|
+
declare function GradientButton({ title, icon, href, align, }: {
|
|
57
|
+
title: React.ReactNode;
|
|
58
|
+
icon?: React.ReactNode;
|
|
59
|
+
href: string;
|
|
60
|
+
align?: 'left' | 'center' | 'right';
|
|
61
|
+
}): react_jsx_runtime.JSX.Element;
|
|
62
|
+
|
|
63
|
+
interface TocFooterProps {
|
|
64
|
+
/**
|
|
65
|
+
* The last modified date of the page.
|
|
66
|
+
*/
|
|
67
|
+
lastModified: string | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* The path to the file for the \"Edit on GitHub\" link.
|
|
70
|
+
* This should be the relative path from the repository root, e.g., 'src/mdx/docs/your-page.mdx'.
|
|
71
|
+
*/
|
|
72
|
+
editPath?: string | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* Whether to show the copy button.
|
|
75
|
+
*/
|
|
76
|
+
showCopy?: boolean | undefined;
|
|
77
|
+
/**
|
|
78
|
+
* GitHub base URL for edit links
|
|
79
|
+
*/
|
|
80
|
+
githubBaseUrl?: string;
|
|
81
|
+
}
|
|
82
|
+
declare function TocFooter({ lastModified, showCopy, editPath, githubBaseUrl }: TocFooterProps): react_jsx_runtime.JSX.Element;
|
|
83
|
+
|
|
84
|
+
declare function LLMCopyButton({ llmApiUrl }?: {
|
|
85
|
+
llmApiUrl?: string;
|
|
86
|
+
}): react_jsx_runtime.JSX.Element;
|
|
87
|
+
declare function EditOnGitHub({ url }: {
|
|
88
|
+
url: string;
|
|
89
|
+
}): react_jsx_runtime.JSX.Element;
|
|
90
|
+
declare function LastUpdatedDate({ date }: {
|
|
91
|
+
date: string | undefined;
|
|
92
|
+
}): react_jsx_runtime.JSX.Element;
|
|
93
|
+
|
|
94
|
+
export { EditOnGitHub, GradientButton, ImageGrid, ImageZoom, type ImageZoomProps, LLMCopyButton, LastUpdatedDate, Mermaid, TocFooter, TrophyCard, ZiaCard, type ZiaCardProps };
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ImageProps } from 'fumadocs-core/framework';
|
|
3
|
+
import React, { ImgHTMLAttributes, HTMLAttributes, ReactNode } from 'react';
|
|
4
|
+
import { UncontrolledProps } from 'react-medium-image-zoom';
|
|
5
|
+
|
|
6
|
+
interface MermaidProps {
|
|
7
|
+
chart: string;
|
|
8
|
+
title?: string;
|
|
9
|
+
watermarkEnabled?: boolean;
|
|
10
|
+
watermarkText?: string;
|
|
11
|
+
}
|
|
12
|
+
declare function Mermaid({ chart, title, watermarkEnabled, watermarkText }: MermaidProps): react_jsx_runtime.JSX.Element;
|
|
13
|
+
|
|
14
|
+
type ImageZoomProps = ImageProps & {
|
|
15
|
+
/**
|
|
16
|
+
* Image props when zoom in
|
|
17
|
+
*/
|
|
18
|
+
zoomInProps?: ImgHTMLAttributes<HTMLImageElement>;
|
|
19
|
+
/**
|
|
20
|
+
* Props for `react-medium-image-zoom`
|
|
21
|
+
*/
|
|
22
|
+
rmiz?: UncontrolledProps;
|
|
23
|
+
/**
|
|
24
|
+
* placeholder image path
|
|
25
|
+
*/
|
|
26
|
+
fallbackSrc?: string;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* @example
|
|
30
|
+
* <ImageZoom src="URL" fallbackSrc="/my-placeholder.png" />
|
|
31
|
+
*/
|
|
32
|
+
declare function ImageZoom({ zoomInProps, children, rmiz, fallbackSrc, ...props }: ImageZoomProps): react_jsx_runtime.JSX.Element;
|
|
33
|
+
|
|
34
|
+
declare function TrophyCard({ icon, title, children, }: {
|
|
35
|
+
icon?: React.ReactNode;
|
|
36
|
+
title: React.ReactNode;
|
|
37
|
+
children?: React.ReactNode;
|
|
38
|
+
}): react_jsx_runtime.JSX.Element;
|
|
39
|
+
|
|
40
|
+
declare function ImageGrid({ type, images, altPrefix, cdnBaseUrl, }: {
|
|
41
|
+
type: "url" | "local";
|
|
42
|
+
images: string[];
|
|
43
|
+
altPrefix?: string;
|
|
44
|
+
cdnBaseUrl?: string;
|
|
45
|
+
}): react_jsx_runtime.JSX.Element;
|
|
46
|
+
|
|
47
|
+
type ZiaCardProps = Omit<HTMLAttributes<HTMLElement>, 'title'> & {
|
|
48
|
+
icon?: ReactNode;
|
|
49
|
+
title: ReactNode;
|
|
50
|
+
description?: ReactNode;
|
|
51
|
+
href?: string;
|
|
52
|
+
external?: boolean;
|
|
53
|
+
};
|
|
54
|
+
declare function ZiaCard({ icon, title, description, ...props }: ZiaCardProps): react_jsx_runtime.JSX.Element;
|
|
55
|
+
|
|
56
|
+
declare function GradientButton({ title, icon, href, align, }: {
|
|
57
|
+
title: React.ReactNode;
|
|
58
|
+
icon?: React.ReactNode;
|
|
59
|
+
href: string;
|
|
60
|
+
align?: 'left' | 'center' | 'right';
|
|
61
|
+
}): react_jsx_runtime.JSX.Element;
|
|
62
|
+
|
|
63
|
+
interface TocFooterProps {
|
|
64
|
+
/**
|
|
65
|
+
* The last modified date of the page.
|
|
66
|
+
*/
|
|
67
|
+
lastModified: string | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* The path to the file for the \"Edit on GitHub\" link.
|
|
70
|
+
* This should be the relative path from the repository root, e.g., 'src/mdx/docs/your-page.mdx'.
|
|
71
|
+
*/
|
|
72
|
+
editPath?: string | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* Whether to show the copy button.
|
|
75
|
+
*/
|
|
76
|
+
showCopy?: boolean | undefined;
|
|
77
|
+
/**
|
|
78
|
+
* GitHub base URL for edit links
|
|
79
|
+
*/
|
|
80
|
+
githubBaseUrl?: string;
|
|
81
|
+
}
|
|
82
|
+
declare function TocFooter({ lastModified, showCopy, editPath, githubBaseUrl }: TocFooterProps): react_jsx_runtime.JSX.Element;
|
|
83
|
+
|
|
84
|
+
declare function LLMCopyButton({ llmApiUrl }?: {
|
|
85
|
+
llmApiUrl?: string;
|
|
86
|
+
}): react_jsx_runtime.JSX.Element;
|
|
87
|
+
declare function EditOnGitHub({ url }: {
|
|
88
|
+
url: string;
|
|
89
|
+
}): react_jsx_runtime.JSX.Element;
|
|
90
|
+
declare function LastUpdatedDate({ date }: {
|
|
91
|
+
date: string | undefined;
|
|
92
|
+
}): react_jsx_runtime.JSX.Element;
|
|
93
|
+
|
|
94
|
+
export { EditOnGitHub, GradientButton, ImageGrid, ImageZoom, type ImageZoomProps, LLMCopyButton, LastUpdatedDate, Mermaid, TocFooter, TrophyCard, ZiaCard, type ZiaCardProps };
|