@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
package/dist/fuma.css
ADDED
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
/* 有 Banner 时 */
|
|
2
|
+
.has-banner .sticky.top-0.z-40 {
|
|
3
|
+
position: fixed !important;
|
|
4
|
+
top: 0 !important;
|
|
5
|
+
left: 0 !important;
|
|
6
|
+
width: 100vw !important;
|
|
7
|
+
z-index: 1001 !important;
|
|
8
|
+
height: 3rem !important;
|
|
9
|
+
min-height: 3rem !important;
|
|
10
|
+
max-height: 3rem !important;
|
|
11
|
+
margin: 0 !important;
|
|
12
|
+
border-radius: 0 !important;
|
|
13
|
+
}
|
|
14
|
+
.has-banner header#nd-nav {
|
|
15
|
+
top: 2.5rem !important;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/* 无 Banner 时 */
|
|
19
|
+
.no-banner .sticky.top-0.z-40 {
|
|
20
|
+
position: fixed !important;
|
|
21
|
+
top: 0 !important;
|
|
22
|
+
left: 0 !important;
|
|
23
|
+
width: 100vw !important;
|
|
24
|
+
z-index: 1001 !important;
|
|
25
|
+
height: 0.5rem !important;
|
|
26
|
+
min-height: 0.5rem !important;
|
|
27
|
+
max-height: 0.5rem !important;
|
|
28
|
+
margin: 0 !important;
|
|
29
|
+
border-radius: 0 !important;
|
|
30
|
+
}
|
|
31
|
+
.no-banner header#nd-nav {
|
|
32
|
+
top: 0rem !important;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.has-banner main,
|
|
36
|
+
.has-banner .main-content {
|
|
37
|
+
padding-top: 3rem; /* Banner高度 */
|
|
38
|
+
}
|
|
39
|
+
.no-banner main,
|
|
40
|
+
.no-banner .main-content {
|
|
41
|
+
padding-top: 0.5rem; /* Banner高度 */
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* 自定义 Fuma 步骤组件背景色:暗色主题为白,亮色主题为黑 */
|
|
45
|
+
.fd-step::before {
|
|
46
|
+
@apply size-5 -start-2.5 rounded-full;
|
|
47
|
+
background-color: #000; /* 默认亮色主题为黑 */
|
|
48
|
+
color: #fff;
|
|
49
|
+
font-size: 0.75rem; /* 更小的字体 */
|
|
50
|
+
line-height: 1rem;
|
|
51
|
+
margin-top: 0.4rem !important;
|
|
52
|
+
}
|
|
53
|
+
.dark .fd-step::before {
|
|
54
|
+
background-color: #fff !important; /* 暗色主题为白 */
|
|
55
|
+
color: #000 !important;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* fuma image-zoom样式 COPY */
|
|
59
|
+
|
|
60
|
+
[data-rmiz] {
|
|
61
|
+
display: block;
|
|
62
|
+
position: relative;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
[data-rmiz-ghost] {
|
|
66
|
+
pointer-events: none;
|
|
67
|
+
position: absolute;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
[data-rmiz-btn-zoom],
|
|
71
|
+
[data-rmiz-btn-unzoom] {
|
|
72
|
+
display: none;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
[data-rmiz-content='found'] img {
|
|
76
|
+
cursor: zoom-in;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
[data-rmiz-modal][open] {
|
|
80
|
+
width: 100vw /* fallback */;
|
|
81
|
+
width: 100dvw;
|
|
82
|
+
|
|
83
|
+
height: 100vh /* fallback */;
|
|
84
|
+
height: 100dvh;
|
|
85
|
+
|
|
86
|
+
background-color: transparent;
|
|
87
|
+
max-width: none;
|
|
88
|
+
max-height: none;
|
|
89
|
+
margin: 0;
|
|
90
|
+
padding: 0;
|
|
91
|
+
position: fixed;
|
|
92
|
+
overflow: hidden;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
[data-rmiz-modal]:focus-visible {
|
|
96
|
+
outline: none;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
[data-rmiz-modal-overlay] {
|
|
100
|
+
transition: background-color 0.3s;
|
|
101
|
+
position: absolute;
|
|
102
|
+
inset: 0;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
[data-rmiz-modal-overlay='hidden'] {
|
|
106
|
+
background-color: transparent;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
[data-rmiz-modal-content] {
|
|
110
|
+
width: 100%;
|
|
111
|
+
height: 100%;
|
|
112
|
+
position: relative;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
[data-rmiz-modal]::backdrop {
|
|
116
|
+
display: none;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
[data-rmiz-modal-img] {
|
|
120
|
+
cursor: zoom-out;
|
|
121
|
+
image-rendering: high-quality;
|
|
122
|
+
transform-origin: 0 0;
|
|
123
|
+
transition: transform 0.3s;
|
|
124
|
+
position: absolute;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
@media (prefers-reduced-motion: reduce) {
|
|
128
|
+
[data-rmiz-modal-overlay],
|
|
129
|
+
[data-rmiz-modal-img] {
|
|
130
|
+
transition-duration: 0.01ms !important;
|
|
131
|
+
}
|
|
132
|
+
}
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ClerkProviderClient, ClerkUser, createSignInPage, createSignUpPage, createWaitlistPage } from './clerk/index.mjs';
|
|
2
|
+
export { CTA, FAQ, Features, Footer, Gallery, GoToTop, Loading, NProgressBar, SeoContent, Tips, Usage } from './main/index.mjs';
|
|
3
|
+
export { FumaBannerSuit, FumaGithubInfo, createFumaPage } from './fuma/index.mjs';
|
|
4
|
+
import 'react/jsx-runtime';
|
|
5
|
+
import 'react';
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ClerkProviderClient, ClerkUser, createSignInPage, createSignUpPage, createWaitlistPage } from './clerk/index.js';
|
|
2
|
+
export { CTA, FAQ, Features, Footer, Gallery, GoToTop, Loading, NProgressBar, SeoContent, Tips, Usage } from './main/index.js';
|
|
3
|
+
export { FumaBannerSuit, FumaGithubInfo, createFumaPage } from './fuma/index.js';
|
|
4
|
+
import 'react/jsx-runtime';
|
|
5
|
+
import 'react';
|