@taskon/widget-react 0.0.1-beta.5 → 0.0.1-beta.7

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 (65) hide show
  1. package/README.md +61 -47
  2. package/dist/CommunityTaskList.css +9 -1
  3. package/dist/EligibilityInfo.css +48 -75
  4. package/dist/LeaderboardWidget.css +73 -71
  5. package/dist/PageBuilder.css +5 -0
  6. package/dist/Quest.css +18 -14
  7. package/dist/TaskOnProvider.css +289 -0
  8. package/dist/ThemeProvider.css +227 -0
  9. package/dist/UserCenterWidget.css +6 -6
  10. package/dist/UserCenterWidget2.css +1388 -1621
  11. package/dist/{dynamic-import-helper.css → WidgetShell.css} +0 -227
  12. package/dist/chunks/{CommunityTaskList-CrMvOB8w.js → CommunityTaskList-D0uVD8wD.js} +393 -208
  13. package/dist/chunks/{EligibilityInfo-Beww12QX.js → EligibilityInfo-Cf6hx9-a.js} +459 -679
  14. package/dist/chunks/{LeaderboardWidget-DwuSpVl0.js → LeaderboardWidget-DyoiiNS6.js} +274 -252
  15. package/dist/chunks/{PageBuilder-DsX6Tv0N.js → PageBuilder-DoAFPm6-.js} +5 -5
  16. package/dist/chunks/{Quest-CuD2LElS.js → Quest-ySZlYd4u.js} +74 -57
  17. package/dist/chunks/TaskOnProvider-CxtFIs3n.js +2072 -0
  18. package/dist/chunks/{dynamic-import-helper-WmIF58Sb.js → ThemeProvider-CulHkqqY.js} +1282 -555
  19. package/dist/chunks/UserCenterWidget-BJsc_GSZ.js +3246 -0
  20. package/dist/chunks/{UserCenterWidget-CvU6K4AC.js → UserCenterWidget-STq8kpV4.js} +1174 -1386
  21. package/dist/chunks/WidgetShell-8xn-Jivw.js +659 -0
  22. package/dist/chunks/communitytask-es-CBNnS4o2.js +521 -0
  23. package/dist/chunks/communitytask-ja-GRf9cbdx.js +521 -0
  24. package/dist/chunks/communitytask-ko-Bf24PQKI.js +521 -0
  25. package/dist/chunks/{communitytask-ru-DhySaZL8.js → communitytask-ru-CZm2CPoV.js} +211 -1
  26. package/dist/chunks/leaderboardwidget-es-vKjrjQaz.js +146 -0
  27. package/dist/chunks/leaderboardwidget-ja-Q6u0HxKG.js +146 -0
  28. package/dist/chunks/leaderboardwidget-ko-CG6SWgxf.js +146 -0
  29. package/dist/chunks/leaderboardwidget-ru-DCcHcJGz.js +146 -0
  30. package/dist/chunks/{quest-es-D-b5xcme.js → quest-es-Dyyy0zaw.js} +8 -93
  31. package/dist/chunks/{quest-ja-Dxd2vqBF.js → quest-ja-Depog33y.js} +8 -93
  32. package/dist/chunks/{quest-ko-CSmRWgK_.js → quest-ko-BMu3uRQJ.js} +8 -93
  33. package/dist/chunks/{quest-ru-CkEKv1_F.js → quest-ru-xne814Rw.js} +8 -93
  34. package/dist/chunks/useIsMobile-D6Ybur-6.js +30 -0
  35. package/dist/chunks/useToast-BGJhd3BX.js +93 -0
  36. package/dist/chunks/usercenter-es-Dz3Wp2vV.js +512 -0
  37. package/dist/chunks/usercenter-ja-CKE4DJC6.js +512 -0
  38. package/dist/chunks/usercenter-ko-Dtpkn2qb.js +512 -0
  39. package/dist/chunks/usercenter-ru-DnBGee45.js +512 -0
  40. package/dist/community-task.d.ts +0 -390
  41. package/dist/community-task.js +2 -7
  42. package/dist/core.d.ts +38 -20
  43. package/dist/core.js +9 -10
  44. package/dist/index.d.ts +86 -709
  45. package/dist/index.js +22 -28
  46. package/dist/leaderboard.d.ts +0 -498
  47. package/dist/leaderboard.js +2 -16
  48. package/dist/page-builder.js +1 -1
  49. package/dist/quest.d.ts +0 -971
  50. package/dist/quest.js +2 -7
  51. package/dist/user-center.d.ts +0 -1610
  52. package/dist/user-center.js +2 -494
  53. package/package.json +2 -2
  54. package/dist/chunks/TaskOnProvider-xUeP2Nro.js +0 -1243
  55. package/dist/chunks/ThemeProvider-Bt4UZ33y.js +0 -1334
  56. package/dist/chunks/UserCenterWidget-CB0hnj-L.js +0 -3230
  57. package/dist/chunks/communitytask-es-1zawvXEX.js +0 -311
  58. package/dist/chunks/communitytask-ja-CmW6nP-L.js +0 -311
  59. package/dist/chunks/communitytask-ko-BD0hzQSi.js +0 -311
  60. package/dist/chunks/createLocaleLoader-BameiEhU.js +0 -65
  61. package/dist/chunks/leaderboardwidget-ja-Bj6gz6y1.js +0 -119
  62. package/dist/chunks/leaderboardwidget-ko-f1cLO9ic.js +0 -119
  63. package/dist/chunks/useToast-CaRkylKe.js +0 -304
  64. package/dist/chunks/usercenter-ja-B2465c1O.js +0 -326
  65. package/dist/chunks/usercenter-ko-xAEYxqLg.js +0 -326
@@ -1,230 +1,3 @@
1
- /**
2
- * Dialog 组件样式
3
- * 基于 Radix UI Dialog 封装
4
- * 使用 taskon-dialog-* 命名空间
5
- */
6
-
7
- /*
8
- * Responsive base styles
9
- *
10
- * Keep mobile breakpoints and fallback patterns centralized here.
11
- * Components should reuse these mixins instead of duplicating query logic.
12
- */
13
-
14
- /*
15
- * Desktop-up mixin:
16
- * 1) Enable desktop enhancement in wider containers
17
- * 2) Keep viewport media query as fallback
18
- */
19
-
20
- /* ==================== 遮罩层 ==================== */
21
-
22
- .taskon-dialog-overlay {
23
- position: fixed;
24
- inset: 0;
25
- z-index: 9998;
26
- /* 遮罩层统一使用通用 mask token */
27
- background-color: var(--taskon-color-bg-mask);
28
- backdrop-filter: blur(24px);
29
-
30
- /* 动画 */
31
- animation: taskon-dialog-overlay-fade-in 150ms ease-out;
32
- }
33
-
34
- .taskon-dialog-overlay[data-state="closed"] {
35
- animation: taskon-dialog-overlay-fade-out 150ms ease-in;
36
- }
37
-
38
- @keyframes taskon-dialog-overlay-fade-in {
39
- from {
40
- opacity: 0;
41
- }
42
- to {
43
- opacity: 1;
44
- }
45
- }
46
-
47
- @keyframes taskon-dialog-overlay-fade-out {
48
- from {
49
- opacity: 1;
50
- }
51
- to {
52
- opacity: 0;
53
- }
54
- }
55
-
56
- /* ==================== 弹窗内容 ==================== */
57
-
58
- .taskon-dialog-content {
59
- position: fixed;
60
- top: 50%;
61
- left: 50%;
62
- transform: translate(-50%, -50%);
63
- z-index: 9999;
64
-
65
- /* 尺寸 */
66
- width: 95vw;
67
- max-width: 500px;
68
- max-height: 90vh;
69
-
70
- /* 弹层统一使用 floating 背景 token */
71
- background-color: var(--taskon-color-bg-floating);
72
- color: var(--taskon-color-text);
73
- border-radius: var(--taskon-border-radius);
74
- box-shadow: 0 25px 50px -12px var(--taskon-color-bg-mask);
75
-
76
- /* 布局 */
77
- display: flex;
78
- flex-direction: column;
79
- overflow: hidden;
80
-
81
- /* 移除默认的 focus outline */
82
- outline: none;
83
-
84
- /* 动画 */
85
- animation: taskon-dialog-content-fade-in 200ms ease-out;
86
- }
87
-
88
- .taskon-dialog-content[data-state="closed"] {
89
- animation: taskon-dialog-content-fade-out 150ms ease-in;
90
- }
91
-
92
- @keyframes taskon-dialog-content-fade-in {
93
- from {
94
- opacity: 0;
95
- transform: translate(-50%, -48%) scale(0.96);
96
- }
97
- to {
98
- opacity: 1;
99
- transform: translate(-50%, -50%) scale(1);
100
- }
101
- }
102
-
103
- @keyframes taskon-dialog-content-fade-out {
104
- from {
105
- opacity: 1;
106
- transform: translate(-50%, -50%) scale(1);
107
- }
108
- to {
109
- opacity: 0;
110
- transform: translate(-50%, -48%) scale(0.96);
111
- }
112
- }
113
-
114
- /* ==================== 无障碍标题/描述(屏幕阅读器可见) ==================== */
115
-
116
- .taskon-dialog-title--sr-only,
117
- .taskon-dialog-description--sr-only {
118
- position: absolute;
119
- width: 1px;
120
- height: 1px;
121
- padding: 0;
122
- margin: -1px;
123
- overflow: hidden;
124
- clip: rect(0, 0, 0, 0);
125
- white-space: nowrap;
126
- border: 0;
127
- }
128
-
129
- /* ==================== 头部操作区 ==================== */
130
-
131
- .taskon-dialog-header {
132
- position: absolute;
133
- top: 12px;
134
- right: 12px;
135
- z-index: 1;
136
-
137
- display: flex;
138
- align-items: center;
139
- gap: 8px;
140
- }
141
-
142
- .taskon-dialog-header-slot {
143
- display: flex;
144
- align-items: center;
145
- }
146
-
147
- /* ==================== 关闭按钮 ==================== */
148
-
149
- .taskon-dialog-close {
150
- display: flex;
151
- align-items: center;
152
- justify-content: center;
153
-
154
- width: 32px;
155
- height: 32px;
156
- padding: 0;
157
-
158
- background: var(--taskon-color-bg-surface-subtle);
159
- border: none;
160
- border-radius: var(--taskon-border-radius-sm);
161
- cursor: pointer;
162
-
163
- color: var(--taskon-color-text-secondary);
164
- transition: all 0.2s ease;
165
- }
166
-
167
- .taskon-dialog-close:hover {
168
- background-color: var(--taskon-color-bg-surface);
169
- color: var(--taskon-color-text);
170
- }
171
-
172
- .taskon-dialog-close:focus-visible {
173
- outline: 2px solid var(--taskon-color-primary);
174
- outline-offset: 2px;
175
- }
176
-
177
- /* ==================== 主体内容 ==================== */
178
-
179
- .taskon-dialog-body {
180
- flex: 1;
181
- overflow-y: auto;
182
- padding: 20px;
183
- }
184
-
185
- .taskon-dialog-body--no-padding {
186
- padding: 0;
187
- }
188
-
189
- /* ==================== Desktop 增强 ==================== */
190
-
191
- @supports (container-type: inline-size) {
192
- @container (min-width: 751px) {
193
- .taskon-dialog-content {
194
- width: 90vw;
195
- max-height: 85vh;
196
- border-radius: var(--taskon-border-radius-lg);
197
- }
198
-
199
- .taskon-dialog-body {
200
- padding: 24px;
201
- }
202
-
203
- .taskon-dialog-header {
204
- top: 16px;
205
- right: 16px;
206
- }
207
- }
208
- }
209
-
210
- @supports not (container-type: inline-size) {
211
- @media (min-width: 751px) {
212
- .taskon-dialog-content {
213
- width: 90vw;
214
- max-height: 85vh;
215
- border-radius: var(--taskon-border-radius-lg);
216
- }
217
-
218
- .taskon-dialog-body {
219
- padding: 24px;
220
- }
221
-
222
- .taskon-dialog-header {
223
- top: 16px;
224
- right: 16px;
225
- }
226
- }
227
- }
228
1
  /**
229
2
  * Pagination 通用分页组件样式
230
3
  * @description 使用 taskon-pagination 命名空间