@taskon/widget-react 0.0.1 → 0.0.2
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/README.md +118 -64
- package/dist/CommunityTaskList.css +2694 -2951
- package/dist/EligibilityInfo.css +2221 -1332
- package/dist/LeaderboardWidget.css +403 -198
- package/dist/PageBuilder.css +57 -0
- package/dist/Quest.css +1347 -1477
- package/dist/TaskOnProvider.css +337 -29
- package/dist/ThemeProvider.css +228 -0
- package/dist/UserCenterWidget.css +168 -0
- package/dist/UserCenterWidget2.css +4917 -0
- package/dist/WidgetShell.css +417 -130
- package/dist/chunks/{CommunityTaskList-CrH6r4Av.js → CommunityTaskList-2nFy6l6m.js} +2612 -2074
- package/dist/chunks/{EligibilityInfo-DesW9-k9.js → EligibilityInfo-CKTl_cdU.js} +2714 -4077
- package/dist/chunks/{LeaderboardWidget-BSGpHKTk.js → LeaderboardWidget-DyoiiNS6.js} +288 -349
- package/dist/chunks/PageBuilder-DHM3Il6f.js +150 -0
- package/dist/chunks/{Quest-uSIVq78I.js → Quest-Dqx4OCat.js} +1380 -726
- package/dist/chunks/TaskOnProvider-CxtFIs3n.js +2072 -0
- package/dist/chunks/{WidgetShell-NlOgn1x5.js → ThemeProvider-CulHkqqY.js} +1397 -103
- package/dist/chunks/UserCenterWidget-SE5hqpnZ.js +8335 -0
- package/dist/chunks/UserCenterWidget-XL6LZRZM.js +3259 -0
- package/dist/chunks/{Table-CWGf2FKV.js → WidgetShell-8xn-Jivw.js} +237 -27
- package/dist/chunks/communitytask-es-CBNnS4o2.js +521 -0
- package/dist/chunks/communitytask-ja-GRf9cbdx.js +521 -0
- package/dist/chunks/communitytask-ko-Bf24PQKI.js +521 -0
- package/dist/chunks/communitytask-ru-CZm2CPoV.js +521 -0
- package/dist/chunks/leaderboardwidget-es-vKjrjQaz.js +146 -0
- package/dist/chunks/leaderboardwidget-ja-Q6u0HxKG.js +146 -0
- package/dist/chunks/leaderboardwidget-ko-CG6SWgxf.js +146 -0
- package/dist/chunks/leaderboardwidget-ru-DCcHcJGz.js +146 -0
- package/dist/chunks/quest-es-Dyyy0zaw.js +863 -0
- package/dist/chunks/quest-ja-Depog33y.js +863 -0
- package/dist/chunks/quest-ko-BMu3uRQJ.js +863 -0
- package/dist/chunks/quest-ru-xne814Rw.js +863 -0
- package/dist/chunks/taskwidget-es-Do9b3Mqw.js +245 -0
- package/dist/chunks/taskwidget-ja-CqSu-yWA.js +245 -0
- package/dist/chunks/taskwidget-ko-EHgXFV4B.js +245 -0
- package/dist/chunks/taskwidget-ru-CMbLQDK4.js +245 -0
- package/dist/chunks/useIsMobile-D6Ybur-6.js +30 -0
- package/dist/chunks/usercenter-es-Dz3Wp2vV.js +512 -0
- package/dist/chunks/usercenter-ja-CKE4DJC6.js +512 -0
- package/dist/chunks/usercenter-ko-Dtpkn2qb.js +512 -0
- package/dist/chunks/usercenter-ru-DnBGee45.js +512 -0
- package/dist/community-task.d.ts +29 -388
- package/dist/community-task.js +2 -7
- package/dist/core.d.ts +95 -28
- package/dist/core.js +11 -12
- package/dist/index.d.ts +260 -602
- package/dist/index.js +28 -7361
- package/dist/leaderboard.d.ts +5 -496
- package/dist/leaderboard.js +2 -15
- package/dist/page-builder.d.ts +20 -0
- package/dist/page-builder.js +4 -0
- package/dist/quest.d.ts +20 -292
- package/dist/quest.js +2 -5
- package/dist/user-center.d.ts +56 -0
- package/dist/user-center.js +4 -0
- package/package.json +22 -3
- package/dist/Table.css +0 -389
- package/dist/chunks/TaskOnProvider-QMwxGL44.js +0 -1435
- package/dist/chunks/ThemeProvider-Cs8IUVQj.js +0 -1118
- package/dist/chunks/leaderboardwidget-ja-Bj6gz6y1.js +0 -119
- package/dist/chunks/leaderboardwidget-ko-f1cLO9ic.js +0 -119
- package/dist/chunks/useWidgetLocale-BVcopbZS.js +0 -74
- package/dist/chunks/usercenter-ja-DBj_dtuz.js +0 -329
- package/dist/chunks/usercenter-ko-DYTkHAld.js +0 -329
- package/dist/index.css +0 -3662
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tabs 组件样式
|
|
3
|
+
*
|
|
4
|
+
* 命名规范: .taskon-tabs-[element]--[modifier]
|
|
5
|
+
* 基于 Figma UserCenter 设计规范
|
|
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
|
+
* Desktop-up mixin:
|
|
15
|
+
* 1) Enable desktop enhancement in wider containers
|
|
16
|
+
* 2) Keep viewport media query as fallback
|
|
17
|
+
*/
|
|
18
|
+
/* ========== 容器 ========== */
|
|
19
|
+
.taskon-tabs {
|
|
20
|
+
position: relative;
|
|
21
|
+
container-type: inline-size;
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
width: 100%;
|
|
25
|
+
gap: 0;
|
|
26
|
+
overflow-x: auto;
|
|
27
|
+
scrollbar-width: none;
|
|
28
|
+
}
|
|
29
|
+
.taskon-tabs::-webkit-scrollbar {
|
|
30
|
+
display: none;
|
|
31
|
+
}
|
|
32
|
+
/* ========== Tab 列表 ========== */
|
|
33
|
+
.taskon-tabs__list {
|
|
34
|
+
display: inline-flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
width: max-content;
|
|
37
|
+
min-width: 100%;
|
|
38
|
+
gap: var(--taskon-tabs-gap-mobile, 16px);
|
|
39
|
+
}
|
|
40
|
+
/* ========== Tab 项 ========== */
|
|
41
|
+
.taskon-tabs__tab {
|
|
42
|
+
position: relative;
|
|
43
|
+
flex-shrink: 0;
|
|
44
|
+
padding: 0;
|
|
45
|
+
padding-bottom: 9px;
|
|
46
|
+
background: transparent;
|
|
47
|
+
border: none;
|
|
48
|
+
cursor: pointer;
|
|
49
|
+
transition: color 0.2s ease;
|
|
50
|
+
|
|
51
|
+
/* Typography: 16px Medium */
|
|
52
|
+
font-size: 16px;
|
|
53
|
+
font-weight: 500;
|
|
54
|
+
line-height: 24px;
|
|
55
|
+
white-space: nowrap;
|
|
56
|
+
|
|
57
|
+
color: var(--taskon-color-text-secondary);
|
|
58
|
+
}
|
|
59
|
+
.taskon-tabs__tab:hover:not(.taskon-tabs__tab--disabled) {
|
|
60
|
+
color: var(--taskon-color-text);
|
|
61
|
+
}
|
|
62
|
+
/* 激活状态: 更粗字体 + 主文本色 */
|
|
63
|
+
.taskon-tabs__tab--active {
|
|
64
|
+
font-weight: 600;
|
|
65
|
+
color: var(--taskon-color-text);
|
|
66
|
+
}
|
|
67
|
+
/* 禁用状态 */
|
|
68
|
+
.taskon-tabs__tab--disabled {
|
|
69
|
+
color: var(--taskon-color-text-disabled);
|
|
70
|
+
cursor: not-allowed;
|
|
71
|
+
}
|
|
72
|
+
/* ========== 下划线指示器 ========== */
|
|
73
|
+
.taskon-tabs__indicator {
|
|
74
|
+
position: absolute;
|
|
75
|
+
bottom: 0;
|
|
76
|
+
left: 0;
|
|
77
|
+
height: 2px;
|
|
78
|
+
background: linear-gradient(
|
|
79
|
+
90deg,
|
|
80
|
+
var(--taskon-color-link) 0%,
|
|
81
|
+
var(--taskon-color-secondary) 100%
|
|
82
|
+
);
|
|
83
|
+
border-radius: 1px;
|
|
84
|
+
transition: transform 0.25s ease, width 0.25s ease;
|
|
85
|
+
}
|
|
86
|
+
@supports (container-type: inline-size) {
|
|
87
|
+
@container (min-width: 751px) {
|
|
88
|
+
.taskon-tabs {
|
|
89
|
+
width: auto;
|
|
90
|
+
overflow-x: visible;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.taskon-tabs__list {
|
|
94
|
+
width: auto;
|
|
95
|
+
min-width: 0;
|
|
96
|
+
gap: var(--taskon-tabs-gap, 40px);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
@supports not (container-type: inline-size) {
|
|
101
|
+
@media (min-width: 751px) {
|
|
102
|
+
.taskon-tabs {
|
|
103
|
+
width: auto;
|
|
104
|
+
overflow-x: visible;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.taskon-tabs__list {
|
|
108
|
+
width: auto;
|
|
109
|
+
min-width: 0;
|
|
110
|
+
gap: var(--taskon-tabs-gap, 40px);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* EmailBindDialog 样式
|
|
116
|
+
*/
|
|
117
|
+
|
|
118
|
+
.taskon-email-bind-dialog {
|
|
119
|
+
padding: 8px 0;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.taskon-email-bind-dialog__title {
|
|
123
|
+
font-size: 20px;
|
|
124
|
+
font-weight: 600;
|
|
125
|
+
line-height: 1.4;
|
|
126
|
+
color: var(--taskon-color-text);
|
|
127
|
+
margin: 0 0 24px 0;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.taskon-email-bind-dialog__field {
|
|
131
|
+
margin-bottom: 20px;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.taskon-email-bind-dialog__label {
|
|
135
|
+
display: block;
|
|
136
|
+
font-size: var(--taskon-font-size);
|
|
137
|
+
font-weight: 500;
|
|
138
|
+
line-height: 1.43;
|
|
139
|
+
color: var(--taskon-color-text);
|
|
140
|
+
margin-bottom: 8px;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.taskon-email-bind-dialog__actions {
|
|
144
|
+
margin-top: 24px;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/* 响应式 - 移动端 */
|
|
148
|
+
|
|
149
|
+
@media (max-width: 750px) {
|
|
150
|
+
.taskon-email-bind-dialog__title {
|
|
151
|
+
font-size: var(--taskon-font-size-xl);
|
|
152
|
+
line-height: 1.33;
|
|
153
|
+
margin-bottom: 16px;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.taskon-email-bind-dialog__field {
|
|
157
|
+
margin-bottom: 16px;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.taskon-email-bind-dialog__label {
|
|
161
|
+
font-size: var(--taskon-font-size-sm);
|
|
162
|
+
margin-bottom: 6px;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.taskon-email-bind-dialog__actions {
|
|
166
|
+
margin-top: 20px;
|
|
167
|
+
}
|
|
168
|
+
}
|