@taskon/widget-react 0.0.1-beta.1 → 0.0.1-beta.3

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 (43) hide show
  1. package/README.md +55 -16
  2. package/dist/CommunityTaskList.css +432 -628
  3. package/dist/EligibilityInfo.css +944 -431
  4. package/dist/PageBuilder.css +0 -2
  5. package/dist/Quest.css +460 -506
  6. package/dist/TaskOnProvider.css +15 -15
  7. package/dist/UserCenterWidget.css +0 -174
  8. package/dist/UserCenterWidget2.css +1119 -341
  9. package/dist/chunks/{CommunityTaskList-DoPGZsw1.js → CommunityTaskList-C9mPl_31.js} +923 -829
  10. package/dist/chunks/{EligibilityInfo-C7GZ2G5u.js → EligibilityInfo-DGBffKN8.js} +1137 -449
  11. package/dist/chunks/{LeaderboardWidget-CmYfDeHV.js → LeaderboardWidget-DPOQVXkT.js} +15 -10
  12. package/dist/chunks/{PageBuilder-Tmhf2GTS.js → PageBuilder-WCZvxL2j.js} +5 -5
  13. package/dist/chunks/{Quest-DKFZ-pPU.js → Quest-DjGH_8bx.js} +464 -314
  14. package/dist/chunks/{TaskOnProvider-BD6Vp2x8.js → TaskOnProvider-iannERG1.js} +2 -207
  15. package/dist/chunks/{ThemeProvider-wnSXrNQb.js → ThemeProvider-DNJqI2lD.js} +246 -54
  16. package/dist/chunks/UserCenterWidget-B0O-f_xl.js +8344 -0
  17. package/dist/chunks/{UserCenterWidget-BVw_IEEd.js → UserCenterWidget-CAhgp46j.js} +214 -1011
  18. package/dist/chunks/{WidgetShell-D_5OjvNZ.js → dynamic-import-helper-B2j_dZ4V.js} +607 -40
  19. package/dist/chunks/useToast-CaRkylKe.js +304 -0
  20. package/dist/chunks/{usercenter-ja-uu-XfVF9.js → usercenter-ja-B2465c1O.js} +4 -10
  21. package/dist/chunks/{usercenter-ko-DYgUOVzd.js → usercenter-ko-xAEYxqLg.js} +4 -10
  22. package/dist/community-task.d.ts +34 -3
  23. package/dist/community-task.js +1 -1
  24. package/dist/core.d.ts +40 -3
  25. package/dist/core.js +9 -10
  26. package/dist/dynamic-import-helper.css +186 -0
  27. package/dist/index.d.ts +207 -10
  28. package/dist/index.js +21 -19
  29. package/dist/leaderboard.d.ts +8 -1
  30. package/dist/leaderboard.js +2 -2
  31. package/dist/page-builder.js +1 -1
  32. package/dist/quest.d.ts +8 -2
  33. package/dist/quest.js +1 -1
  34. package/dist/user-center.d.ts +20 -136
  35. package/dist/user-center.js +19 -236
  36. package/package.json +7 -2
  37. package/dist/TipPopover.css +0 -210
  38. package/dist/WidgetShell.css +0 -182
  39. package/dist/chunks/TipPopover-BrW8jo71.js +0 -2926
  40. package/dist/chunks/UserCenterWidget-BE329iS7.js +0 -3546
  41. package/dist/chunks/dynamic-import-helper-DxEFwm31.js +0 -537
  42. package/dist/chunks/useToast-B-wyO5zL.js +0 -93
  43. package/dist/chunks/useWidgetLocale-JDelxtt8.js +0 -74
@@ -27,9 +27,9 @@
27
27
  gap: 12px;
28
28
  padding: 14px 16px;
29
29
  border-radius: 8px;
30
- background: #1a1a1a;
31
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
32
- color: #fff;
30
+ background: var(--taskon-color-bg-floating);
31
+ box-shadow: 0 4px 12px var(--taskon-color-bg-mask);
32
+ color: var(--taskon-color-text);
33
33
  font-size: 14px;
34
34
  line-height: 1.4;
35
35
  }
@@ -108,42 +108,42 @@
108
108
 
109
109
  /* Success */
110
110
  .taskon-toast--success {
111
- border-left: 3px solid #00ffa3;
111
+ border-left: 3px solid var(--taskon-color-success);
112
112
  }
113
113
 
114
114
  .taskon-toast--success .taskon-toast-icon {
115
- background: rgba(0, 255, 163, 0.2);
116
- color: #00ffa3;
115
+ background: var(--taskon-color-success-bg);
116
+ color: var(--taskon-color-success);
117
117
  }
118
118
 
119
119
  /* Error */
120
120
  .taskon-toast--error {
121
- border-left: 3px solid #eb5757;
121
+ border-left: 3px solid var(--taskon-color-error);
122
122
  }
123
123
 
124
124
  .taskon-toast--error .taskon-toast-icon {
125
- background: rgba(235, 87, 87, 0.2);
126
- color: #eb5757;
125
+ background: var(--taskon-color-error-bg);
126
+ color: var(--taskon-color-error);
127
127
  }
128
128
 
129
129
  /* Warning */
130
130
  .taskon-toast--warning {
131
- border-left: 3px solid #f2c94c;
131
+ border-left: 3px solid var(--taskon-color-warning);
132
132
  }
133
133
 
134
134
  .taskon-toast--warning .taskon-toast-icon {
135
- background: rgba(242, 201, 76, 0.2);
136
- color: #f2c94c;
135
+ background: var(--taskon-color-warning-bg);
136
+ color: var(--taskon-color-warning);
137
137
  }
138
138
 
139
139
  /* Info */
140
140
  .taskon-toast--info {
141
- border-left: 3px solid #2f80ed;
141
+ border-left: 3px solid var(--taskon-color-link);
142
142
  }
143
143
 
144
144
  .taskon-toast--info .taskon-toast-icon {
145
- background: rgba(47, 128, 237, 0.2);
146
- color: #2f80ed;
145
+ background: var(--taskon-color-bg-surface-strong);
146
+ color: var(--taskon-color-link);
147
147
  }
148
148
 
149
149
  /* ==================== 响应式 ==================== */
@@ -67,40 +67,6 @@
67
67
  border-radius: 1px;
68
68
  transition: transform 0.25s ease, width 0.25s ease;
69
69
  }
70
- /**
71
- * AssetImage 组件样式
72
- */
73
-
74
- .taskon-asset-image {
75
- position: relative;
76
- flex-shrink: 0;
77
- }
78
-
79
- .taskon-asset-image__main {
80
- display: block;
81
- width: 100%;
82
- height: 100%;
83
- border-radius: 4px;
84
- object-fit: cover;
85
- }
86
-
87
- .taskon-asset-image__placeholder {
88
- width: 100%;
89
- height: 100%;
90
- border-radius: 4px;
91
- background-color: var(--taskon-bg-secondary, #f0f0f0);
92
- }
93
-
94
- .taskon-asset-image__chain {
95
- position: absolute;
96
- right: -4px;
97
- bottom: -4px;
98
- width: 18px;
99
- height: 18px;
100
- border-radius: 50%;
101
- background-color: var(--taskon-bg-primary, #fff);
102
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
103
- }
104
70
  /**
105
71
  * EmailBindDialog 样式
106
72
  */
@@ -155,143 +121,3 @@
155
121
  margin-top: 20px;
156
122
  }
157
123
  }
158
- /**
159
- * ClaimNftDialog 样式
160
- */
161
-
162
- .taskon-claim-dialog {
163
- max-width: 400px;
164
- }
165
-
166
- .taskon-claim-dialog-content {
167
- display: flex;
168
- flex-direction: column;
169
- align-items: center;
170
- padding: 24px;
171
- text-align: center;
172
- }
173
-
174
- /* NFT 图片 */
175
- .taskon-claim-dialog-nft {
176
- margin-bottom: 20px;
177
- }
178
-
179
- .taskon-claim-dialog-nft__image {
180
- width: 120px;
181
- height: 120px;
182
- border-radius: 12px;
183
- object-fit: cover;
184
- }
185
-
186
- /* 状态图标区域 */
187
- .taskon-claim-dialog-status {
188
- margin-bottom: 16px;
189
- min-height: 48px;
190
- display: flex;
191
- align-items: center;
192
- justify-content: center;
193
- }
194
-
195
- /* 加载动画 */
196
- .taskon-claim-dialog-spinner {
197
- width: 48px;
198
- height: 48px;
199
- position: relative;
200
- }
201
-
202
- .taskon-claim-dialog-spinner__circle {
203
- width: 100%;
204
- height: 100%;
205
- border: 3px solid var(--taskon-border-color, #e5e5e5);
206
- border-top-color: var(--taskon-primary-color, #6366f1);
207
- border-radius: 50%;
208
- animation: taskon-claim-spin 0.8s linear infinite;
209
- }
210
-
211
- @keyframes taskon-claim-spin {
212
- to {
213
- transform: rotate(360deg);
214
- }
215
- }
216
-
217
- /* 状态图标 */
218
- .taskon-claim-dialog-icon {
219
- width: 48px;
220
- height: 48px;
221
- }
222
-
223
- .taskon-claim-dialog-icon--success {
224
- color: var(--taskon-success-color, #22c55e);
225
- }
226
-
227
- .taskon-claim-dialog-icon--error {
228
- color: var(--taskon-error-color, #ef4444);
229
- }
230
-
231
- /* 状态消息 */
232
- .taskon-claim-dialog-message {
233
- font-size: 16px;
234
- font-weight: 500;
235
- color: var(--taskon-text-color, #1a1a1a);
236
- margin: 0 0 16px;
237
- line-height: 1.5;
238
- }
239
-
240
- /* 交易 Hash */
241
- .taskon-claim-dialog-tx {
242
- display: flex;
243
- align-items: center;
244
- gap: 8px;
245
- padding: 8px 16px;
246
- background: var(--taskon-bg-secondary, #f5f5f5);
247
- border-radius: 8px;
248
- margin-bottom: 20px;
249
- font-size: 14px;
250
- }
251
-
252
- .taskon-claim-dialog-tx__label {
253
- color: var(--taskon-text-secondary, #666);
254
- }
255
-
256
- .taskon-claim-dialog-tx__hash {
257
- color: var(--taskon-text-color, #1a1a1a);
258
- font-family: monospace;
259
- }
260
-
261
- /* 操作按钮 */
262
- .taskon-claim-dialog-actions {
263
- display: flex;
264
- gap: 12px;
265
- width: 100%;
266
- justify-content: center;
267
- }
268
-
269
- .taskon-claim-dialog-btn {
270
- padding: 10px 24px;
271
- border-radius: 8px;
272
- font-size: 14px;
273
- font-weight: 500;
274
- cursor: pointer;
275
- transition: all 0.2s ease;
276
- border: none;
277
- }
278
-
279
- .taskon-claim-dialog-btn--primary {
280
- background: var(--taskon-primary-color, #6366f1);
281
- color: white;
282
- }
283
-
284
- .taskon-claim-dialog-btn--primary:hover {
285
- background: var(--taskon-primary-hover, #4f46e5);
286
- }
287
-
288
- .taskon-claim-dialog-btn--secondary {
289
- background: transparent;
290
- color: var(--taskon-primary-color, #6366f1);
291
- border: 1px solid var(--taskon-primary-color, #6366f1);
292
- }
293
-
294
- .taskon-claim-dialog-btn--secondary:hover {
295
- background: var(--taskon-primary-color, #6366f1);
296
- color: white;
297
- }