@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.
Files changed (82) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +210 -0
  3. package/dist/clerk/index.d.mts +33 -0
  4. package/dist/clerk/index.d.ts +33 -0
  5. package/dist/clerk/index.js +2395 -0
  6. package/dist/clerk/index.js.map +1 -0
  7. package/dist/clerk/index.mjs +2361 -0
  8. package/dist/clerk/index.mjs.map +1 -0
  9. package/dist/cta.css +16 -0
  10. package/dist/fuma/index.d.mts +51 -0
  11. package/dist/fuma/index.d.ts +51 -0
  12. package/dist/fuma/index.js +2976 -0
  13. package/dist/fuma/index.js.map +1 -0
  14. package/dist/fuma/index.mjs +2944 -0
  15. package/dist/fuma/index.mjs.map +1 -0
  16. package/dist/fuma/mdx/index.d.mts +94 -0
  17. package/dist/fuma/mdx/index.d.ts +94 -0
  18. package/dist/fuma/mdx/index.js +2866 -0
  19. package/dist/fuma/mdx/index.js.map +1 -0
  20. package/dist/fuma/mdx/index.mjs +2827 -0
  21. package/dist/fuma/mdx/index.mjs.map +1 -0
  22. package/dist/fuma.css +132 -0
  23. package/dist/index.d.mts +5 -0
  24. package/dist/index.d.ts +5 -0
  25. package/dist/index.js +3597 -0
  26. package/dist/index.js.map +1 -0
  27. package/dist/index.mjs +3549 -0
  28. package/dist/index.mjs.map +1 -0
  29. package/dist/lib/index.d.mts +4414 -0
  30. package/dist/lib/index.d.ts +4414 -0
  31. package/dist/lib/index.js +127 -0
  32. package/dist/lib/index.js.map +1 -0
  33. package/dist/lib/index.mjs +95 -0
  34. package/dist/lib/index.mjs.map +1 -0
  35. package/dist/main/index.d.mts +25 -0
  36. package/dist/main/index.d.ts +25 -0
  37. package/dist/main/index.js +3003 -0
  38. package/dist/main/index.js.map +1 -0
  39. package/dist/main/index.mjs +2963 -0
  40. package/dist/main/index.mjs.map +1 -0
  41. package/dist/third-ui.css +44 -0
  42. package/package.json +106 -0
  43. package/src/clerk/clerk-organization.tsx +47 -0
  44. package/src/clerk/clerk-page-generator.tsx +42 -0
  45. package/src/clerk/clerk-provider-client.tsx +57 -0
  46. package/src/clerk/clerk-user.tsx +59 -0
  47. package/src/clerk/index.ts +5 -0
  48. package/src/fuma/fuma-banner-suit.tsx +16 -0
  49. package/src/fuma/fuma-github-info.tsx +194 -0
  50. package/src/fuma/fuma-page-genarator.tsx +94 -0
  51. package/src/fuma/index.ts +4 -0
  52. package/src/fuma/mdx/airtical-card.tsx +56 -0
  53. package/src/fuma/mdx/gradient-button.tsx +62 -0
  54. package/src/fuma/mdx/image-grid.tsx +35 -0
  55. package/src/fuma/mdx/image-zoom.tsx +84 -0
  56. package/src/fuma/mdx/index.ts +8 -0
  57. package/src/fuma/mdx/mermaid.tsx +87 -0
  58. package/src/fuma/mdx/toc-base.tsx +88 -0
  59. package/src/fuma/mdx/toc.tsx +35 -0
  60. package/src/fuma/mdx/trophy-card.tsx +36 -0
  61. package/src/fuma/mdx/zia-card.tsx +46 -0
  62. package/src/index.ts +4 -0
  63. package/src/lib/clerk-intl.ts +13 -0
  64. package/src/lib/fuma-schema-check-util.ts +73 -0
  65. package/src/lib/fuma-search-util.ts +6 -0
  66. package/src/lib/index.ts +3 -0
  67. package/src/main/ads-alert-dialog.tsx +133 -0
  68. package/src/main/cta.tsx +28 -0
  69. package/src/main/faq.tsx +58 -0
  70. package/src/main/features.tsx +35 -0
  71. package/src/main/footer.tsx +37 -0
  72. package/src/main/gallery.tsx +68 -0
  73. package/src/main/go-to-top.tsx +44 -0
  74. package/src/main/index.ts +12 -0
  75. package/src/main/loading.tsx +93 -0
  76. package/src/main/nprogress-bar.tsx +24 -0
  77. package/src/main/seo-content.tsx +34 -0
  78. package/src/main/tips.tsx +38 -0
  79. package/src/main/usage.tsx +45 -0
  80. package/src/styles/cta.css +16 -0
  81. package/src/styles/fuma.css +132 -0
  82. 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 };