@mathwiz/ui-components 0.1.28 → 0.1.30
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 +1 -1
- package/dist/components/Button/Button.css +100 -32
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/types.d.ts +19 -0
- package/dist/components/Button/types.d.ts.map +1 -1
- package/dist/components/HundredChart/HundredChart.css +8 -0
- package/dist/components/HundredChart/HundredChart.d.ts.map +1 -1
- package/dist/components/HundredChart/HundredChart.types.d.ts +29 -0
- package/dist/components/HundredChart/HundredChart.types.d.ts.map +1 -1
- package/dist/components/HundredChart/HundredChart.utils.d.ts +13 -1
- package/dist/components/HundredChart/HundredChart.utils.d.ts.map +1 -1
- package/dist/components/HundredChart/index.d.ts +2 -2
- package/dist/components/HundredChart/index.d.ts.map +1 -1
- package/dist/components/MathCardV2/DecimalNumberRecognitionSessionStore.d.ts +2 -2
- package/dist/components/MathCardV2/DecimalNumberRecognitionSessionStore.d.ts.map +1 -1
- package/dist/components/MathCardV2/ExplanationStep.d.ts +9 -0
- package/dist/components/MathCardV2/ExplanationStep.d.ts.map +1 -1
- package/dist/components/MathCardV2/MathCardV2.css +11 -4
- package/dist/components/MathCardV2/MathCardV2.d.ts.map +1 -1
- package/dist/components/MathCardV2/MathCardV2.types.d.ts +51 -1
- package/dist/components/MathCardV2/MathCardV2.types.d.ts.map +1 -1
- package/dist/components/MathCardV2/MathPracticeSessionStore.d.ts +3 -3
- package/dist/components/MathCardV2/MathPracticeSessionStore.d.ts.map +1 -1
- package/dist/components/MathCardV2/MathPracticeSessionTypes.d.ts +38 -18
- package/dist/components/MathCardV2/MathPracticeSessionTypes.d.ts.map +1 -1
- package/dist/components/MathCardV2/MathPracticeStoreContext.d.ts +3 -9
- package/dist/components/MathCardV2/MathPracticeStoreContext.d.ts.map +1 -1
- package/dist/components/MathCardV2/MathPracticeStoreHooks.d.ts +3 -2
- package/dist/components/MathCardV2/MathPracticeStoreHooks.d.ts.map +1 -1
- package/dist/components/MathCardV2/components/content/OptionGroupContent.d.ts +10 -0
- package/dist/components/MathCardV2/components/content/OptionGroupContent.d.ts.map +1 -0
- package/dist/components/MathCardV2/components/renderers/ContentRenderer.d.ts.map +1 -1
- package/dist/components/MathCardV2/hooks/useDataAdapter.d.ts.map +1 -1
- package/dist/components/MathCardV2/hooks/useMeetingProblemAdapter.d.ts.map +1 -1
- package/dist/components/MathCardV2/modules/ReviewModule/ReviewModule.d.ts.map +1 -1
- package/dist/components/MathCardV2/modules/SolveModule/SolveModule.d.ts.map +1 -1
- package/dist/components/MathCardV2/scenes/ExplanationScene/ExplanationScene.d.ts.map +1 -1
- package/dist/components/MathCardV2/scenes/QuestionScene/QuestionScene.css +18 -18
- package/dist/components/MathCardV2/scenes/QuestionScene/QuestionScene.d.ts.map +1 -1
- package/dist/components/MathCardV2/scenes/SuccessScene/SuccessScene.d.ts.map +1 -1
- package/dist/components/OptionGroup/OptionCard.d.ts +11 -0
- package/dist/components/OptionGroup/OptionCard.d.ts.map +1 -0
- package/dist/components/OptionGroup/OptionCard.styles.d.ts +87 -0
- package/dist/components/OptionGroup/OptionCard.styles.d.ts.map +1 -0
- package/dist/components/OptionGroup/OptionGroup.d.ts +11 -0
- package/dist/components/OptionGroup/OptionGroup.d.ts.map +1 -0
- package/dist/components/OptionGroup/OptionGroup.types.d.ts +71 -0
- package/dist/components/OptionGroup/OptionGroup.types.d.ts.map +1 -0
- package/dist/components/OptionGroup/index.d.ts +5 -0
- package/dist/components/OptionGroup/index.d.ts.map +1 -0
- package/dist/components/StatBlock/StatBlock.css +331 -0
- package/dist/components/StatBlock/StatBlock.d.ts +7 -0
- package/dist/components/StatBlock/StatBlock.d.ts.map +1 -0
- package/dist/components/StatBlock/index.d.ts +5 -0
- package/dist/components/StatBlock/index.d.ts.map +1 -0
- package/dist/components/StatBlock/types.d.ts +116 -0
- package/dist/components/StatBlock/types.d.ts.map +1 -0
- package/dist/components/Table/Table.d.ts +14 -0
- package/dist/components/Table/Table.d.ts.map +1 -0
- package/dist/components/Table/hooks/useTableCore.d.ts +13 -0
- package/dist/components/Table/hooks/useTableCore.d.ts.map +1 -0
- package/dist/components/Table/hooks/useTableState.d.ts +10 -0
- package/dist/components/Table/hooks/useTableState.d.ts.map +1 -0
- package/dist/components/Table/index.d.ts +7 -0
- package/dist/components/Table/index.d.ts.map +1 -0
- package/dist/components/Table/types.d.ts +179 -0
- package/dist/components/Table/types.d.ts.map +1 -0
- package/dist/components/Table/utils/flattenData.d.ts +15 -0
- package/dist/components/Table/utils/flattenData.d.ts.map +1 -0
- package/dist/components/Table/utils/mergeClass.d.ts +6 -0
- package/dist/components/Table/utils/mergeClass.d.ts.map +1 -0
- package/dist/data/GeometryProblemAdapterV4/geometry-types.d.ts +119 -4
- package/dist/data/GeometryProblemAdapterV4/geometry-types.d.ts.map +1 -1
- package/dist/data/GeometryProblemAdapterV4/jsondata/parallelogram-revised.json +721 -721
- package/dist/data/GeometryProblemAdapterV4/jsondata/right-triangle-v4.json +595 -0
- package/dist/data/GeometryProblemAdapterV4/jsondata/trapezoid-v4-final.json +469 -469
- package/dist/data/GeometryProblemAdapterV4/jsondata/triangle-v4-final.json +3 -3
- package/dist/data/GeometryProblemAdapterV4/types.d.ts +2 -0
- package/dist/data/GeometryProblemAdapterV4/types.d.ts.map +1 -1
- package/dist/data/TriangleAdapterV3/config/embeddedConfigs.d.ts +96 -18
- package/dist/data/TriangleAdapterV3/config/embeddedConfigs.d.ts.map +1 -1
- package/dist/data/TriangleAdapterV3/config/index.d.ts +64 -12
- package/dist/data/TriangleAdapterV3/config/index.d.ts.map +1 -1
- package/dist/data/TriangleAdapterV3/core/syncAdapter.d.ts +5 -0
- package/dist/data/TriangleAdapterV3/core/syncAdapter.d.ts.map +1 -1
- package/dist/data/TriangleAdapterV3/resolvers/transformRefResolver.d.ts +4 -0
- package/dist/data/TriangleAdapterV3/resolvers/transformRefResolver.d.ts.map +1 -1
- package/dist/data/TriangleAdapterV3/transformers/geometryTransformTransformer.d.ts.map +1 -1
- package/dist/data/TriangleAdapterV3/transformers/hundredChartTransformer.d.ts +58 -0
- package/dist/data/TriangleAdapterV3/transformers/hundredChartTransformer.d.ts.map +1 -0
- package/dist/data/TriangleAdapterV3/transformers/index.d.ts +2 -0
- package/dist/data/TriangleAdapterV3/transformers/index.d.ts.map +1 -1
- package/dist/data/TriangleAdapterV3/transformers/optionGroupTransformer.d.ts +29 -0
- package/dist/data/TriangleAdapterV3/transformers/optionGroupTransformer.d.ts.map +1 -0
- package/dist/data/TriangleAdapterV3/types.d.ts +3 -0
- package/dist/data/TriangleAdapterV3/types.d.ts.map +1 -1
- package/dist/data/config/style-presets.json +27 -3
- package/dist/data/dataSchema/OpenAPI/openapi.json +5777 -5777
- package/dist/data/problems/factorProblemV4-backup.json +427 -0
- package/dist/data/problems/factorProblemV4.json +462 -0
- package/dist/data/problems/factorProblemV4_backup_20260311.json +436 -0
- package/dist/index.cjs +103 -100
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +8 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +12144 -6014
- package/dist/index.mjs.map +1 -1
- package/dist/mathwiz-ui.css +1 -1
- package/dist/pages/AreaGeometrySessionPage/AreaGeometrySessionPageIXL.css +385 -0
- package/dist/pages/AreaGeometrySessionPage/AreaGeometrySessionPageIXL.d.ts +29 -0
- package/dist/pages/AreaGeometrySessionPage/AreaGeometrySessionPageIXL.d.ts.map +1 -0
- package/dist/pages/AreaGeometrySessionPage/components/LearningDashboardPlaceholder.css +219 -0
- package/dist/pages/AreaGeometrySessionPage/components/LearningDashboardPlaceholder.d.ts +15 -0
- package/dist/pages/AreaGeometrySessionPage/components/LearningDashboardPlaceholder.d.ts.map +1 -0
- package/dist/pages/AreaGeometrySessionPage/components/ReviewSectionPlaceholder.css +64 -0
- package/dist/pages/AreaGeometrySessionPage/components/ReviewSectionPlaceholder.d.ts +11 -0
- package/dist/pages/AreaGeometrySessionPage/components/ReviewSectionPlaceholder.d.ts.map +1 -0
- package/dist/pages/AreaGeometrySessionPage/components/ScaffoldingPlaceholder.css +59 -0
- package/dist/pages/AreaGeometrySessionPage/components/ScaffoldingPlaceholder.d.ts +14 -0
- package/dist/pages/AreaGeometrySessionPage/components/ScaffoldingPlaceholder.d.ts.map +1 -0
- package/dist/pages/AreaGeometrySessionPage/index.d.ts +3 -1
- package/dist/pages/AreaGeometrySessionPage/index.d.ts.map +1 -1
- package/dist/pages/AreaGeometrySessionPage/types.d.ts +25 -0
- package/dist/pages/AreaGeometrySessionPage/types.d.ts.map +1 -1
- package/dist/pages/GradeUnitBrowserPage/GradeUnitBrowserPage.d.ts.map +1 -1
- package/dist/pages/MathSessionPage/MathSessionPage.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/styles/index.css +34 -0
- package/dist/styles/mathcard-tokens.css +47 -5
- package/package.json +5 -3
|
@@ -0,0 +1,385 @@
|
|
|
1
|
+
/* ==================== AreaGeometrySessionPageIXL 样式 ==================== */
|
|
2
|
+
/* 完全遵循沉浸式学习-ixl风格.html设计语言 */
|
|
3
|
+
|
|
4
|
+
/* 采用系统默认的无衬线字体,摒弃了圆润可爱的特殊字体,回归学术的严谨感 */
|
|
5
|
+
.ixl-immersive-container {
|
|
6
|
+
font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
|
|
7
|
+
min-height: 100vh;
|
|
8
|
+
background: var(--ixl-bg-gradient);
|
|
9
|
+
color: #333333;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/* ==================== 顶部导航与面包屑 ==================== */
|
|
14
|
+
.ixl-top-nav {
|
|
15
|
+
background-color: white;
|
|
16
|
+
border-bottom: 1px solid #e2e8f0;
|
|
17
|
+
padding: 0.75rem 1.5rem;
|
|
18
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.ixl-breadcrumb {
|
|
22
|
+
max-width: 1200px;
|
|
23
|
+
margin: 0 auto;
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
font-size: 0.875rem;
|
|
27
|
+
color: #6b7280;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.ixl-breadcrumb-item {
|
|
31
|
+
color: #6b7280;
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
text-decoration: none;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.ixl-breadcrumb-item:hover {
|
|
37
|
+
text-decoration: underline;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.ixl-breadcrumb-separator {
|
|
41
|
+
margin: 0 0.5rem;
|
|
42
|
+
color: #9ca3af;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.ixl-breadcrumb-tag {
|
|
46
|
+
margin-left: 0.5rem;
|
|
47
|
+
font-size: 0.75rem;
|
|
48
|
+
color: #9ca3af;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* ==================== 主布局:经典的左主(70%)右辅(30%)非对称布局 ==================== */
|
|
52
|
+
.ixl-main-layout {
|
|
53
|
+
max-width: 1200px;
|
|
54
|
+
margin: 0 auto;
|
|
55
|
+
display: flex;
|
|
56
|
+
flex-direction: column;
|
|
57
|
+
gap: 1.5rem;
|
|
58
|
+
padding: 1rem 1.5rem 3rem;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@media (min-width: 1024px) {
|
|
62
|
+
.ixl-main-layout {
|
|
63
|
+
flex-direction: row;
|
|
64
|
+
gap: 1.5rem;
|
|
65
|
+
padding: 2rem 2rem 4rem;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* ==================== 左侧:核心沉浸答题区 ==================== */
|
|
70
|
+
.ixl-content-area {
|
|
71
|
+
flex: 1;
|
|
72
|
+
display: flex;
|
|
73
|
+
flex-direction: column;
|
|
74
|
+
gap: 2rem;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* 主答题卡:小圆角(rounded-md),纯白底色,极其克制的轻阴影 */
|
|
78
|
+
.ixl-main-card {
|
|
79
|
+
background-color: white;
|
|
80
|
+
border-radius: 0.375rem; /* rounded-md */
|
|
81
|
+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
|
|
82
|
+
border: 1px solid #f1f5f9;
|
|
83
|
+
padding: 1.5rem 2rem 2.5rem;
|
|
84
|
+
position: relative;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@media (min-width: 1024px) {
|
|
88
|
+
.ixl-main-card {
|
|
89
|
+
padding: 1.5rem 3rem 2.5rem;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/* 状态提示横幅 */
|
|
94
|
+
.ixl-status-banner {
|
|
95
|
+
background-color: var(--ixl-color-warning-bg);
|
|
96
|
+
border: 1px solid var(--ixl-color-warning-border);
|
|
97
|
+
color: var(--ixl-color-warning-text);
|
|
98
|
+
padding: 0.5rem 1rem;
|
|
99
|
+
border-radius: 4px;
|
|
100
|
+
font-size: 0.875rem;
|
|
101
|
+
margin-bottom: 2rem;
|
|
102
|
+
display: flex;
|
|
103
|
+
align-items: center;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.ixl-status-link {
|
|
107
|
+
color: var(--ixl-color-link);
|
|
108
|
+
text-decoration: underline;
|
|
109
|
+
margin-left: 0.25rem;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.ixl-status-link:hover {
|
|
113
|
+
text-decoration: none;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/* 问题展示区 */
|
|
117
|
+
.ixl-question-display {
|
|
118
|
+
/* QuestionScene组件将渲染在这里 */
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/* 无数据提示 */
|
|
122
|
+
.ixl-no-data-message {
|
|
123
|
+
text-align: center;
|
|
124
|
+
padding: 3rem 1rem;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.ixl-no-data-icon {
|
|
128
|
+
font-size: 3rem;
|
|
129
|
+
margin-bottom: 1rem;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.ixl-no-data-title {
|
|
133
|
+
font-size: 1.25rem;
|
|
134
|
+
font-weight: 600;
|
|
135
|
+
color: #1f2937;
|
|
136
|
+
margin-bottom: 0.5rem;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.ixl-no-data-desc {
|
|
140
|
+
font-size: 1rem;
|
|
141
|
+
color: #6b7280;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/* ==================== 温故知新区 (Work it out) ==================== */
|
|
145
|
+
.ixl-review-area {
|
|
146
|
+
margin-top: 0.5rem;
|
|
147
|
+
margin-bottom: 3rem;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.ixl-review-header {
|
|
151
|
+
text-align: center;
|
|
152
|
+
margin-bottom: 1.5rem;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.ixl-review-title {
|
|
156
|
+
color: var(--ixl-color-link);
|
|
157
|
+
font-size: 1.125rem;
|
|
158
|
+
font-weight: 500;
|
|
159
|
+
margin-bottom: 0.25rem;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.ixl-review-subtitle {
|
|
163
|
+
color: #6b7280;
|
|
164
|
+
font-size: 0.875rem;
|
|
165
|
+
margin-top: 0.25rem;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/* ==================== 右侧:数据驱动与游戏化仪表盘 ==================== */
|
|
169
|
+
.ixl-dashboard-area {
|
|
170
|
+
width: 100%;
|
|
171
|
+
display: flex;
|
|
172
|
+
flex-direction: row;
|
|
173
|
+
gap: 1rem;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
@media (min-width: 1024px) {
|
|
177
|
+
.ixl-dashboard-area {
|
|
178
|
+
width: 200px;
|
|
179
|
+
flex-direction: column;
|
|
180
|
+
gap: 1rem;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/* 子元素区域 */
|
|
185
|
+
.ixl-children-area {
|
|
186
|
+
max-width: 1200px;
|
|
187
|
+
margin: 2rem auto 0;
|
|
188
|
+
padding-top: 1.5rem;
|
|
189
|
+
border-top: 1px solid #e2e8f0;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/* ==================== QuestionScene覆盖样式 ==================== */
|
|
193
|
+
/* 精确控制输入框,还原"填空题"的经典样式 */
|
|
194
|
+
:global(.answer-form-container) {
|
|
195
|
+
background-color: white !important;
|
|
196
|
+
border-top: none !important;
|
|
197
|
+
padding-left: 0 !important;
|
|
198
|
+
padding-right: 0 !important;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
:global(.answer-form) {
|
|
202
|
+
display: flex;
|
|
203
|
+
flex-direction: column;
|
|
204
|
+
align-items: flex-start !important;
|
|
205
|
+
gap: 1.5rem !important;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
:global(.answer-input) {
|
|
209
|
+
width: 7rem !important;
|
|
210
|
+
padding: 0.375rem 0.5rem !important;
|
|
211
|
+
font-size: 1.125rem !important;
|
|
212
|
+
font-weight: 700 !important;
|
|
213
|
+
color: #1f2937 !important;
|
|
214
|
+
border: 1px solid var(--ixl-color-time) !important; /* 浅蓝色边框 #4fc3f7 */
|
|
215
|
+
border-radius: var(--ixl-radius-subtle) !important;
|
|
216
|
+
transition: all 0.2s ease-in-out !important;
|
|
217
|
+
background-color: white !important;
|
|
218
|
+
box-shadow: none !important;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
:global(.answer-input:focus) {
|
|
222
|
+
outline: none !important;
|
|
223
|
+
border-color: var(--ixl-color-link) !important; /* 深蓝色 #0288d1 */
|
|
224
|
+
box-shadow: 0 0 0 2px rgba(2, 136, 209, 0.2) !important;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
:global(.answer-input.error) {
|
|
228
|
+
border-color: #ef4444 !important;
|
|
229
|
+
background-color: rgba(239, 68, 68, 0.05) !important;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
:global(.answer-label) {
|
|
233
|
+
font-size: 1.125rem !important;
|
|
234
|
+
font-weight: 600 !important;
|
|
235
|
+
color: #374151 !important;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
:global(.answer-unit) {
|
|
239
|
+
font-size: 1rem !important;
|
|
240
|
+
color: #374151 !important;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/* 极简行动按钮:鲜明的草绿色,没有大圆角,传达确定性 */
|
|
244
|
+
:global(.submit-button) {
|
|
245
|
+
background-color: var(--ixl-color-action) !important; /* #7cb342 */
|
|
246
|
+
color: white !important;
|
|
247
|
+
font-weight: 700 !important;
|
|
248
|
+
padding: 0.5rem 2rem !important;
|
|
249
|
+
border-radius: 4px !important;
|
|
250
|
+
font-size: 1rem !important;
|
|
251
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
|
|
252
|
+
transition: background-color 0.2s ease-in-out !important;
|
|
253
|
+
border: none !important;
|
|
254
|
+
cursor: pointer !important;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
:global(.submit-button:hover) {
|
|
258
|
+
background-color: #689f38 !important; /* 深一点的绿色 */
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
:global(.submit-button:active) {
|
|
262
|
+
background-color: #558b2f !important; /* 更深的绿色 */
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
/* 验证错误提示 */
|
|
266
|
+
:global(.validation-error) {
|
|
267
|
+
margin-top: 0.75rem !important;
|
|
268
|
+
color: #ef4444 !important;
|
|
269
|
+
font-size: 0.875rem !important;
|
|
270
|
+
font-weight: 500 !important;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
/* 问题显示区域优化 - 彻底移除MathCardV2的嵌套线框 */
|
|
274
|
+
:global(.question-display-area) {
|
|
275
|
+
padding: 1.5rem 0 !important;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
:global(.question-scene-container) {
|
|
279
|
+
padding: 0 !important;
|
|
280
|
+
max-width: none !important;
|
|
281
|
+
border: none !important;
|
|
282
|
+
box-shadow: none !important;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
:global(.question-scene-card) {
|
|
286
|
+
background-color: transparent !important;
|
|
287
|
+
border: none !important;
|
|
288
|
+
box-shadow: none !important;
|
|
289
|
+
border-radius: 0 !important;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
/* 移除MathCardV2所有嵌套容器的边框 */
|
|
293
|
+
:global(.math-card-v2-container),
|
|
294
|
+
:global(.math-card-v2-content),
|
|
295
|
+
:global(.math-card-v2-card) {
|
|
296
|
+
border: none !important;
|
|
297
|
+
box-shadow: none !important;
|
|
298
|
+
background-color: transparent !important;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
/* 移除可能存在的其他边框 */
|
|
302
|
+
:global([class*="math-card"]),
|
|
303
|
+
:global([class*="MathCard"]) {
|
|
304
|
+
border: none !important;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
/* ==================== 响应式设计 ==================== */
|
|
308
|
+
|
|
309
|
+
/* 平板端 (768px-1023px) */
|
|
310
|
+
@media (min-width: 768px) and (max-width: 1023px) {
|
|
311
|
+
.ixl-main-layout {
|
|
312
|
+
padding: 1.5rem 1.5rem 3rem;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.ixl-dashboard-area {
|
|
316
|
+
flex-direction: row;
|
|
317
|
+
order: -1; /* 在平板端将仪表盘移到顶部 */
|
|
318
|
+
margin-bottom: 1rem;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.ixl-main-card {
|
|
322
|
+
padding: 1.5rem 2rem 2rem;
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/* 移动端 (<768px) */
|
|
327
|
+
@media (max-width: 767px) {
|
|
328
|
+
.ixl-main-layout {
|
|
329
|
+
padding: 1rem 1rem 2rem;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.ixl-top-nav {
|
|
333
|
+
padding: 0.75rem 1rem;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.ixl-main-card {
|
|
337
|
+
padding: 1rem 1.25rem 1.5rem;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.ixl-status-banner {
|
|
341
|
+
font-size: 0.8125rem;
|
|
342
|
+
padding: 0.5rem 0.75rem;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
:global(.answer-form) {
|
|
346
|
+
flex-direction: column !important;
|
|
347
|
+
align-items: stretch !important;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
:global(.answer-input) {
|
|
351
|
+
width: 100% !important;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
:global(.submit-button) {
|
|
355
|
+
width: 100% !important;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
/* ==================== 标题颜色类 ==================== */
|
|
361
|
+
.ixl-title-color-triangle { color: var(--ixl-color-link); }
|
|
362
|
+
.ixl-title-color-parallelogram { color: var(--ixl-color-questions); }
|
|
363
|
+
.ixl-title-color-trapezoid { color: var(--ixl-color-score); }
|
|
364
|
+
.ixl-title-color-age { color: #8a2be2; }
|
|
365
|
+
.ixl-title-color-default { color: #1f2937; }
|
|
366
|
+
|
|
367
|
+
/* ==================== MathCardV2 文本样式覆盖(IXL风格适配) ==================== */
|
|
368
|
+
/* 确保问题场景中的正文文本使用更新后的字体样式 */
|
|
369
|
+
.ixl-immersive-container :global(.mathcard-v2-text) {
|
|
370
|
+
font-family: var(--mc-font-sans);
|
|
371
|
+
font-size: 0.9375rem !important; /* 15px */
|
|
372
|
+
font-weight: var(--mc-font-normal) !important; /* 400 */
|
|
373
|
+
line-height: 1.6 !important;
|
|
374
|
+
letter-spacing: 0.01em !important;
|
|
375
|
+
color: var(--mc-text-body) !important;
|
|
376
|
+
-webkit-font-smoothing: antialiased;
|
|
377
|
+
-moz-osx-font-smoothing: grayscale;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
@media (max-width: 768px) {
|
|
381
|
+
.ixl-immersive-container :global(.mathcard-v2-text) {
|
|
382
|
+
font-size: 0.875rem !important; /* 14px */
|
|
383
|
+
line-height: 1.5 !important;
|
|
384
|
+
}
|
|
385
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { AreaGeometrySessionPageProps } from './types';
|
|
3
|
+
import './AreaGeometrySessionPageIXL.css';
|
|
4
|
+
/**
|
|
5
|
+
* AreaGeometrySessionPageIXL - 几何与年龄问题统一会话页面(IXL风格改造版)
|
|
6
|
+
*
|
|
7
|
+
* 这是一个IXL风格改造版本,完全参考沉浸式学习-ixl风格.html设计语言:
|
|
8
|
+
* 1. 70%/30%非对称布局,左侧沉浸式答题区,右侧数据仪表盘
|
|
9
|
+
* 2. 简洁无嵌套设计,消除"套娃式线框"
|
|
10
|
+
* 3. 统一色彩系统,消除"色彩割裂"
|
|
11
|
+
* 4. 非对称灵活排版,消除"居中单调排版"
|
|
12
|
+
* 5. 教学支架、状态横幅、温故知新等完整教学支持
|
|
13
|
+
*
|
|
14
|
+
* 注意:这是一个独立版本,不影响原有的AreaGeometrySessionPage组件。
|
|
15
|
+
* 业务项目可以根据需要选择使用原版或IXL版本。
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```tsx
|
|
19
|
+
* import { AreaGeometrySessionPageIXL } from './AreaGeometrySessionPageIXL';
|
|
20
|
+
* import { adaptGeometryDataSync } from '../data/GeometryProblemAdapterV4';
|
|
21
|
+
* import triangleJson from './triangle-data.json';
|
|
22
|
+
*
|
|
23
|
+
* const problemData = adaptGeometryDataSync(triangleJson).data;
|
|
24
|
+
* <AreaGeometrySessionPageIXL problemData={problemData} />
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export declare const AreaGeometrySessionPageIXL: React.FC<AreaGeometrySessionPageProps>;
|
|
28
|
+
export default AreaGeometrySessionPageIXL;
|
|
29
|
+
//# sourceMappingURL=AreaGeometrySessionPageIXL.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AreaGeometrySessionPageIXL.d.ts","sourceRoot":"","sources":["../../../src/pages/AreaGeometrySessionPage/AreaGeometrySessionPageIXL.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAcnD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAC;AAC5D,OAAO,kCAAkC,CAAC;AAE1C;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,0BAA0B,EAAE,KAAK,CAAC,EAAE,CAAC,4BAA4B,CAoI7E,CAAC;AAGF,eAAe,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
/* LearningDashboardPlaceholder样式 - IXL风格数据面板 */
|
|
2
|
+
|
|
3
|
+
.ixl-dashboard-panels {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: row;
|
|
6
|
+
gap: 1rem;
|
|
7
|
+
width: 100%;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@media (min-width: 1024px) {
|
|
11
|
+
.ixl-dashboard-panels {
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/* 数据面板卡片基础样式 */
|
|
17
|
+
.ixl-dashboard-card {
|
|
18
|
+
background-color: #f5f5f5;
|
|
19
|
+
border-radius: 4px;
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
border: 1px solid #e2e8f0;
|
|
22
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
|
|
23
|
+
flex: 1;
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@media (min-width: 1024px) {
|
|
29
|
+
.ixl-dashboard-card {
|
|
30
|
+
flex: none;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* 卡片头部 - 彩色背景 */
|
|
35
|
+
.ixl-dashboard-card-header {
|
|
36
|
+
background-color: var(--ixl-color-questions); /* 默认绿色,会被具体卡片覆盖 */
|
|
37
|
+
color: white;
|
|
38
|
+
text-align: center;
|
|
39
|
+
font-size: 0.75rem;
|
|
40
|
+
font-weight: 700;
|
|
41
|
+
padding: 0.5rem 0.5rem;
|
|
42
|
+
text-transform: uppercase;
|
|
43
|
+
letter-spacing: 0.5px;
|
|
44
|
+
line-height: 1.1;
|
|
45
|
+
position: relative;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* 答题数卡片 - 绿色 */
|
|
49
|
+
.ixl-questions-card .ixl-dashboard-card-header {
|
|
50
|
+
background-color: var(--ixl-color-questions); /* #9ccc65 */
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* 用时卡片 - 蓝色 */
|
|
54
|
+
.ixl-time-card .ixl-dashboard-card-header {
|
|
55
|
+
background-color: var(--ixl-color-time); /* #4fc3f7 */
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* 得分卡片 - 橙色 */
|
|
59
|
+
.ixl-score-card .ixl-dashboard-card-header {
|
|
60
|
+
background-color: var(--ixl-color-score); /* #ff8a65 */
|
|
61
|
+
display: flex;
|
|
62
|
+
flex-direction: column;
|
|
63
|
+
align-items: center;
|
|
64
|
+
justify-content: center;
|
|
65
|
+
min-height: 50px;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/* 得分副标题 */
|
|
69
|
+
.ixl-score-subtitle {
|
|
70
|
+
font-size: 0.625rem;
|
|
71
|
+
opacity: 0.9;
|
|
72
|
+
font-weight: 400;
|
|
73
|
+
text-transform: capitalize;
|
|
74
|
+
margin-top: 2px;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* 帮助图标 */
|
|
78
|
+
.ixl-help-icon {
|
|
79
|
+
position: absolute;
|
|
80
|
+
right: 0.5rem;
|
|
81
|
+
top: 50%;
|
|
82
|
+
transform: translateY(-50%);
|
|
83
|
+
background-color: rgba(255, 255, 255, 0.2);
|
|
84
|
+
border-radius: 50%;
|
|
85
|
+
width: 1rem;
|
|
86
|
+
height: 1rem;
|
|
87
|
+
display: flex;
|
|
88
|
+
align-items: center;
|
|
89
|
+
justify-content: center;
|
|
90
|
+
font-size: 0.625rem;
|
|
91
|
+
cursor: help;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* 卡片主体 - 白色背景显示数值 */
|
|
95
|
+
.ixl-dashboard-card-body {
|
|
96
|
+
background-color: white;
|
|
97
|
+
display: flex;
|
|
98
|
+
align-items: center;
|
|
99
|
+
justify-content: center;
|
|
100
|
+
padding: 1rem 0;
|
|
101
|
+
flex: 1;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/* 大数值显示 */
|
|
105
|
+
.ixl-dashboard-value {
|
|
106
|
+
font-size: 2.25rem; /* text-3xl */
|
|
107
|
+
font-weight: 700;
|
|
108
|
+
color: #374151;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/* 时间显示样式 */
|
|
112
|
+
.ixl-time-display {
|
|
113
|
+
display: flex;
|
|
114
|
+
align-items: center;
|
|
115
|
+
justify-content: center;
|
|
116
|
+
gap: 0.25rem;
|
|
117
|
+
color: #6b7280;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.ixl-time-unit {
|
|
121
|
+
display: flex;
|
|
122
|
+
flex-direction: column;
|
|
123
|
+
align-items: center;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.ixl-time-value {
|
|
127
|
+
font-size: 1.25rem; /* text-xl */
|
|
128
|
+
font-weight: 700;
|
|
129
|
+
color: var(--ixl-color-time);
|
|
130
|
+
background: white;
|
|
131
|
+
border: 1px solid #e2e8f0;
|
|
132
|
+
width: 2.375rem; /* 38px */
|
|
133
|
+
height: 2.375rem;
|
|
134
|
+
display: flex;
|
|
135
|
+
align-items: center;
|
|
136
|
+
justify-content: center;
|
|
137
|
+
font-family: Arial, sans-serif;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.ixl-time-label {
|
|
141
|
+
font-size: 0.6875rem; /* 11px */
|
|
142
|
+
font-family: Arial, sans-serif;
|
|
143
|
+
color: #9ca3af;
|
|
144
|
+
font-weight: 700;
|
|
145
|
+
text-transform: uppercase;
|
|
146
|
+
letter-spacing: 0.5px;
|
|
147
|
+
margin-top: 2px;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.ixl-time-separator {
|
|
151
|
+
font-size: 1.25rem;
|
|
152
|
+
font-weight: 700;
|
|
153
|
+
color: #6b7280;
|
|
154
|
+
padding-bottom: 0.75rem; /* 与数字对齐 */
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/* 说明文本 */
|
|
158
|
+
.ixl-dashboard-note {
|
|
159
|
+
font-size: 0.75rem;
|
|
160
|
+
color: #9ca3af;
|
|
161
|
+
text-align: center;
|
|
162
|
+
font-style: italic;
|
|
163
|
+
margin-top: 1rem;
|
|
164
|
+
padding-top: 0.75rem;
|
|
165
|
+
border-top: 1px dashed #e2e8f0;
|
|
166
|
+
width: 100%;
|
|
167
|
+
grid-column: 1 / -1;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/* 响应式设计 */
|
|
171
|
+
@media (max-width: 1023px) {
|
|
172
|
+
.ixl-dashboard-panels {
|
|
173
|
+
flex-direction: row;
|
|
174
|
+
flex-wrap: wrap;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.ixl-dashboard-card {
|
|
178
|
+
min-width: calc(33.333% - 0.667rem);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.ixl-dashboard-card-header {
|
|
182
|
+
font-size: 0.6875rem;
|
|
183
|
+
padding: 0.375rem 0.375rem;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.ixl-dashboard-value {
|
|
187
|
+
font-size: 1.875rem; /* text-2xl */
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.ixl-time-value {
|
|
191
|
+
font-size: 1.125rem; /* text-lg */
|
|
192
|
+
width: 2rem;
|
|
193
|
+
height: 2rem;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
@media (max-width: 767px) {
|
|
198
|
+
.ixl-dashboard-panels {
|
|
199
|
+
flex-direction: column;
|
|
200
|
+
gap: 0.75rem;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.ixl-dashboard-card {
|
|
204
|
+
min-width: 100%;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.ixl-dashboard-card-header {
|
|
208
|
+
font-size: 0.75rem;
|
|
209
|
+
padding: 0.5rem 0.5rem;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.ixl-dashboard-value {
|
|
213
|
+
font-size: 2rem;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.ixl-time-display {
|
|
217
|
+
gap: 0.5rem;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './LearningDashboardPlaceholder.css';
|
|
3
|
+
/**
|
|
4
|
+
* LearningDashboardPlaceholder - 学习仪表盘占位符组件
|
|
5
|
+
*
|
|
6
|
+
* 完全按照IXL风格HTML设计的数据面板:
|
|
7
|
+
* 1. 答题数面板(绿色标题)
|
|
8
|
+
* 2. 用时面板(蓝色标题)
|
|
9
|
+
* 3. 智能得分面板(橙色标题)
|
|
10
|
+
*
|
|
11
|
+
* 每个面板都是独立卡片,有彩色标题区和白色数字区。
|
|
12
|
+
*/
|
|
13
|
+
export declare const LearningDashboardPlaceholder: React.FC;
|
|
14
|
+
export default LearningDashboardPlaceholder;
|
|
15
|
+
//# sourceMappingURL=LearningDashboardPlaceholder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LearningDashboardPlaceholder.d.ts","sourceRoot":"","sources":["../../../../src/pages/AreaGeometrySessionPage/components/LearningDashboardPlaceholder.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,oCAAoC,CAAC;AAE5C;;;;;;;;;GASG;AACH,eAAO,MAAM,4BAA4B,EAAE,KAAK,CAAC,EAuDhD,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/* IXL风格温故知新卡片样式 - 完全按照HTML设计 */
|
|
2
|
+
|
|
3
|
+
/* 容器 - 外层容器样式在AreaGeometrySessionPageIXL.css中定义 */
|
|
4
|
+
|
|
5
|
+
/* 网格布局 */
|
|
6
|
+
.ixl-work-it-out-grid {
|
|
7
|
+
display: grid;
|
|
8
|
+
grid-template-columns: repeat(1, 1fr);
|
|
9
|
+
gap: 0.75rem; /* gap-3 */
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@media (min-width: 768px) {
|
|
13
|
+
.ixl-work-it-out-grid {
|
|
14
|
+
grid-template-columns: repeat(2, 1fr);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/* 卡片 - 默认天蓝色样式 */
|
|
19
|
+
.ixl-work-it-out-card {
|
|
20
|
+
background-color: #f0f9ff; /* bg-[#f0f9ff] */
|
|
21
|
+
border: 1px solid #bae6fd; /* border-[#bae6fd] */
|
|
22
|
+
border-radius: 0.375rem; /* rounded-md */
|
|
23
|
+
padding: 0.75rem 1rem; /* px-4 py-3 */
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
gap: 0.75rem; /* gap-3 */
|
|
27
|
+
transition: background-color 0.2s ease-in-out;
|
|
28
|
+
text-decoration: none;
|
|
29
|
+
color: var(--ixl-color-link); /* #0288d1 */
|
|
30
|
+
font-size: 0.875rem; /* text-sm */
|
|
31
|
+
min-height: 3.5rem;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.ixl-work-it-out-card:hover {
|
|
35
|
+
background-color: #e0f2fe; /* hover:bg-[#e0f2fe] */
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/* 紫色卡片样式 */
|
|
39
|
+
.ixl-work-it-out-card-purple {
|
|
40
|
+
background-color: #faf5ff; /* bg-purple-50 */
|
|
41
|
+
border-color: #e9d5ff; /* border-purple-200 */
|
|
42
|
+
color: #7c3aed; /* text-purple-700 */
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.ixl-work-it-out-card-purple:hover {
|
|
46
|
+
background-color: #f3e8ff; /* hover:bg-purple-100 */
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/* 图标 */
|
|
50
|
+
.ixl-work-it-out-icon {
|
|
51
|
+
font-size: 1.125rem; /* text-lg */
|
|
52
|
+
color: #38bdf8; /* text-[#38bdf8] */
|
|
53
|
+
flex-shrink: 0;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.ixl-work-it-out-icon-purple {
|
|
57
|
+
color: #a78bfa; /* text-purple-400 */
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* 文本 */
|
|
61
|
+
.ixl-work-it-out-text {
|
|
62
|
+
flex: 1;
|
|
63
|
+
line-height: 1.4;
|
|
64
|
+
}
|