@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,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
+ }
@@ -0,0 +1,43 @@
1
+ @import '@windrun-huaiin/base-ui/styles/base-ui.css';
2
+ @import './fuma.css';
3
+ @import './cta.css';
4
+
5
+ /* Loading Animation Keyframes */
6
+ @keyframes loading-dot-pulse {
7
+ 0% {
8
+ transform: scale(0.2);
9
+ opacity: 0;
10
+ }
11
+ 25% { /* Peak of the pulse, more prominent */
12
+ transform: scale(1.2);
13
+ opacity: 1;
14
+ }
15
+ 50% { /* Start to fade and shrink */
16
+ transform: scale(0.8);
17
+ opacity: 0.7;
18
+ }
19
+ 100% { /* Fully faded and shrunk back */
20
+ transform: scale(0.2);
21
+ opacity: 0;
22
+ }
23
+ }
24
+
25
+ /* NProgress progress bar style */
26
+ #nprogress .bar {
27
+ background: #AC62FD !important; /* purple */
28
+ height: 1px !important;
29
+ }
30
+
31
+ /* Icon stroke colors for light/dark themes */
32
+ :root {
33
+ --clerk-icon-stroke-color: #616161; /* Light theme */
34
+ }
35
+
36
+ .dark {
37
+ --clerk-icon-stroke-color: #616161; /* Dark theme */
38
+ }
39
+
40
+ /* English and numeric characters use Montserrat font, Chinese use STKaiti */
41
+ body {
42
+ font-family: 'Montserrat', "STKaiti", "STKaiti", "Kaiti SC", "KaiTi", "楷体", "PingFang SC", "Microsoft YaHei", Arial, sans-serif !important;
43
+ }