performanceresultscreens 0.0.21 → 0.0.23
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/dist/components/Atoms/TranscriptionImagePreview/ImageAnnotation.d.ts +3 -0
- package/dist/components/Atoms/TranscriptionImagePreview/ImageAnnotation.js +259 -0
- package/dist/components/Atoms/TranscriptionImagePreview/ImageAnnotation.js.map +1 -0
- package/dist/components/Molecules/PerformanceScreen/PreformanceResultScreen.js +5 -14
- package/dist/components/Molecules/PerformanceScreen/PreformanceResultScreen.js.map +1 -1
- package/package.json +2 -2
- package/dist/components/Molecules/optionLayouts/Scqnew.d.ts +0 -2
- package/dist/components/Molecules/optionLayouts/Scqnew.js +0 -491
- package/dist/components/Molecules/optionLayouts/Scqnew.js.map +0 -1
- package/dist/components/Molecules/questionLayouts/AnswerLayoutnew.d.ts +0 -1
- package/dist/components/Molecules/questionLayouts/AnswerLayoutnew.js +0 -61
- package/dist/components/Molecules/questionLayouts/AnswerLayoutnew.js.map +0 -1
- package/dist/components/Molecules/questionLayouts/Question.styles.d.ts +0 -70
- package/dist/components/Molecules/questionLayouts/Question.styles.js +0 -77
- package/dist/components/Molecules/questionLayouts/Question.styles.js.map +0 -1
- package/dist/components/Molecules/questionLayouts/QuestionLayoutnew.d.ts +0 -2
- package/dist/components/Molecules/questionLayouts/QuestionLayoutnew.js +0 -290
- package/dist/components/Molecules/questionLayouts/QuestionLayoutnew.js.map +0 -1
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const react_1 = require("react");
|
|
8
|
+
const react_2 = require("@chakra-ui/react");
|
|
9
|
+
const react_usestateref_1 = __importDefault(require("react-usestateref"));
|
|
10
|
+
const ImageTranscriptionStyles_1 = require("./ImageTranscriptionStyles");
|
|
11
|
+
const ImageAnnotation = (0, react_1.forwardRef)(({ image, imageBoxes }, ref) => {
|
|
12
|
+
const [boxes, setBoxes, boxesRef] = (0, react_usestateref_1.default)([]);
|
|
13
|
+
const [isDrawing, setIsDrawing] = (0, react_1.useState)(false);
|
|
14
|
+
const [currentBox, setCurrentBox] = (0, react_1.useState)(null);
|
|
15
|
+
const [draggedBox, setDraggedBox] = (0, react_1.useState)(null);
|
|
16
|
+
const [resizeHandle, setResizeHandle] = (0, react_1.useState)(null);
|
|
17
|
+
const [imageScale, setImageScale] = (0, react_1.useState)({ scaleX: 1, scaleY: 1 });
|
|
18
|
+
const containerRef = (0, react_1.useRef)(null);
|
|
19
|
+
const imageRef = (0, react_1.useRef)(null);
|
|
20
|
+
(0, react_1.useImperativeHandle)(ref, () => ({
|
|
21
|
+
getCurrentBoxes: () => boxes
|
|
22
|
+
}));
|
|
23
|
+
(0, react_1.useEffect)(() => {
|
|
24
|
+
setBoxes(imageBoxes || []);
|
|
25
|
+
}, [imageBoxes, image]);
|
|
26
|
+
// Add touch event listeners with passive: false to allow preventDefault
|
|
27
|
+
(0, react_1.useEffect)(() => {
|
|
28
|
+
const container = containerRef.current;
|
|
29
|
+
if (!container)
|
|
30
|
+
return;
|
|
31
|
+
const handleTouchStart = (e) => {
|
|
32
|
+
if (e.target.closest('.annotation-box')) {
|
|
33
|
+
// Handle box touch start
|
|
34
|
+
const boxElement = e.target.closest('.annotation-box');
|
|
35
|
+
const boxId = boxesRef?.current?.find((box) => {
|
|
36
|
+
const displayBox = originalToDisplay(box);
|
|
37
|
+
const rect = boxElement.getBoundingClientRect();
|
|
38
|
+
const containerRect = container.getBoundingClientRect();
|
|
39
|
+
return Math.abs((rect.left - containerRect.left) - displayBox.x) < 5;
|
|
40
|
+
})?.id;
|
|
41
|
+
if (boxId) {
|
|
42
|
+
handleBoxStart(e, boxId);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
handleMouseDown(e);
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
const handleTouchMove = (e) => {
|
|
50
|
+
if (isDrawing) {
|
|
51
|
+
handleMouseMove(e);
|
|
52
|
+
}
|
|
53
|
+
else if (draggedBox || resizeHandle) {
|
|
54
|
+
handleBoxMove(e);
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
const handleTouchEnd = (e) => {
|
|
58
|
+
if (isDrawing) {
|
|
59
|
+
handleMouseUp(e);
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
handleBoxEnd();
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
// Add listeners with passive: false
|
|
66
|
+
container.addEventListener('touchstart', handleTouchStart, { passive: false });
|
|
67
|
+
container.addEventListener('touchmove', handleTouchMove, { passive: false });
|
|
68
|
+
container.addEventListener('touchend', handleTouchEnd, { passive: false });
|
|
69
|
+
return () => {
|
|
70
|
+
container.removeEventListener('touchstart', handleTouchStart);
|
|
71
|
+
container.removeEventListener('touchmove', handleTouchMove);
|
|
72
|
+
container.removeEventListener('touchend', handleTouchEnd);
|
|
73
|
+
};
|
|
74
|
+
}, [isDrawing, draggedBox, resizeHandle, boxes, imageScale]);
|
|
75
|
+
(0, react_1.useEffect)(() => {
|
|
76
|
+
const imageElement = imageRef.current;
|
|
77
|
+
if (imageElement) {
|
|
78
|
+
if (imageElement.complete && imageElement.naturalWidth > 0) {
|
|
79
|
+
// Small delay to ensure layout is complete
|
|
80
|
+
setTimeout(getImageDimensions, 100);
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
imageElement.onload = () => setTimeout(getImageDimensions, 100);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
// Update scale on window resize
|
|
87
|
+
window.addEventListener('resize', getImageDimensions);
|
|
88
|
+
return () => window.removeEventListener('resize', getImageDimensions);
|
|
89
|
+
}, [image]);
|
|
90
|
+
const getImageDimensions = () => {
|
|
91
|
+
if (imageRef.current && imageRef.current.naturalWidth > 0) {
|
|
92
|
+
const naturalWidth = imageRef.current.naturalWidth;
|
|
93
|
+
const naturalHeight = imageRef.current.naturalHeight;
|
|
94
|
+
// Calculate scale factors
|
|
95
|
+
const displayedWidth = imageRef.current.offsetWidth;
|
|
96
|
+
const displayedHeight = imageRef.current.offsetHeight;
|
|
97
|
+
const scaleX = displayedWidth / naturalWidth;
|
|
98
|
+
const scaleY = displayedHeight / naturalHeight;
|
|
99
|
+
setImageScale({ scaleX, scaleY });
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
// Convert original coordinates to display coordinates
|
|
103
|
+
const originalToDisplay = (originalCoords) => {
|
|
104
|
+
return {
|
|
105
|
+
x: originalCoords.x * imageScale.scaleX,
|
|
106
|
+
y: originalCoords.y * imageScale.scaleY,
|
|
107
|
+
width: originalCoords.width * imageScale.scaleX,
|
|
108
|
+
height: originalCoords.height * imageScale.scaleY
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
// Convert display coordinates to original coordinates
|
|
112
|
+
const displayToOriginal = (displayCoords) => {
|
|
113
|
+
return {
|
|
114
|
+
x: displayCoords.x / imageScale.scaleX,
|
|
115
|
+
y: displayCoords.y / imageScale.scaleY,
|
|
116
|
+
width: displayCoords.width / imageScale.scaleX,
|
|
117
|
+
height: displayCoords.height / imageScale.scaleY
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
const getMousePos = (e) => {
|
|
121
|
+
const rect = containerRef.current.getBoundingClientRect();
|
|
122
|
+
// Handle both mouse and touch events
|
|
123
|
+
const clientX = e.clientX || (e.touches && e.touches[0]?.clientX) || (e.changedTouches && e.changedTouches[0]?.clientX);
|
|
124
|
+
const clientY = e.clientY || (e.touches && e.touches[0]?.clientY) || (e.changedTouches && e.changedTouches[0]?.clientY);
|
|
125
|
+
return {
|
|
126
|
+
x: clientX - rect.left,
|
|
127
|
+
y: clientY - rect.top,
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
const handleMouseDown = (e) => {
|
|
131
|
+
if (e.target.closest('.annotation-box'))
|
|
132
|
+
return;
|
|
133
|
+
if (e.type === 'touchstart')
|
|
134
|
+
e.preventDefault(); // Only prevent for touch events
|
|
135
|
+
const pos = getMousePos(e);
|
|
136
|
+
setCurrentBox({ x: pos.x, y: pos.y, width: 0, height: 0 });
|
|
137
|
+
setIsDrawing(true);
|
|
138
|
+
};
|
|
139
|
+
const handleMouseMove = (e) => {
|
|
140
|
+
if (!isDrawing || !currentBox)
|
|
141
|
+
return;
|
|
142
|
+
if (e.type === 'touchmove')
|
|
143
|
+
e.preventDefault(); // Only prevent for touch events
|
|
144
|
+
const pos = getMousePos(e);
|
|
145
|
+
setCurrentBox({
|
|
146
|
+
...currentBox,
|
|
147
|
+
width: pos.x - currentBox.x,
|
|
148
|
+
height: pos.y - currentBox.y,
|
|
149
|
+
});
|
|
150
|
+
};
|
|
151
|
+
const handleMouseUp = (e) => {
|
|
152
|
+
if (!isDrawing || !currentBox)
|
|
153
|
+
return;
|
|
154
|
+
const finalBox = {
|
|
155
|
+
id: Date.now(),
|
|
156
|
+
x: currentBox.width < 0 ? currentBox.x + currentBox.width : currentBox.x,
|
|
157
|
+
y: currentBox.height < 0 ? currentBox.y + currentBox.height : currentBox.y,
|
|
158
|
+
width: Math.abs(currentBox.width),
|
|
159
|
+
height: Math.abs(currentBox.height),
|
|
160
|
+
};
|
|
161
|
+
if (finalBox.width > 10 && finalBox.height > 10) {
|
|
162
|
+
// Convert display coordinates to original coordinates before storing
|
|
163
|
+
const originalCoords = displayToOriginal(finalBox);
|
|
164
|
+
setBoxes([...boxesRef?.current, { ...originalCoords, id: finalBox.id }]);
|
|
165
|
+
}
|
|
166
|
+
setIsDrawing(false);
|
|
167
|
+
setCurrentBox(null);
|
|
168
|
+
};
|
|
169
|
+
const handleBoxStart = (e, boxId) => {
|
|
170
|
+
e.stopPropagation();
|
|
171
|
+
if (e.type === 'touchstart')
|
|
172
|
+
e.preventDefault(); // Only prevent for touch events
|
|
173
|
+
const target = e.target;
|
|
174
|
+
if (target.classList.contains('resize-handle')) {
|
|
175
|
+
setResizeHandle({ boxId, handle: target.dataset.handle });
|
|
176
|
+
}
|
|
177
|
+
else if (target.classList.contains('delete-btn')) {
|
|
178
|
+
return;
|
|
179
|
+
}
|
|
180
|
+
else {
|
|
181
|
+
setDraggedBox(boxId);
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
const handleBoxMove = (e) => {
|
|
185
|
+
if (draggedBox || resizeHandle) {
|
|
186
|
+
if (e.type === 'touchmove')
|
|
187
|
+
e.preventDefault(); // Only prevent for touch events
|
|
188
|
+
}
|
|
189
|
+
if (draggedBox) {
|
|
190
|
+
const pos = getMousePos(e);
|
|
191
|
+
setBoxes((prev) => prev.map((box) => {
|
|
192
|
+
if (box.id === draggedBox) {
|
|
193
|
+
// Convert current display position back to original coordinates
|
|
194
|
+
const displayCoords = originalToDisplay(box);
|
|
195
|
+
const newDisplayCoords = {
|
|
196
|
+
...displayCoords,
|
|
197
|
+
x: pos.x - displayCoords.width / 2,
|
|
198
|
+
y: pos.y - displayCoords.height / 2
|
|
199
|
+
};
|
|
200
|
+
return { ...box, ...displayToOriginal(newDisplayCoords) };
|
|
201
|
+
}
|
|
202
|
+
return box;
|
|
203
|
+
}));
|
|
204
|
+
}
|
|
205
|
+
if (resizeHandle) {
|
|
206
|
+
const pos = getMousePos(e);
|
|
207
|
+
setBoxes((prev) => prev.map((box) => {
|
|
208
|
+
if (box.id === resizeHandle.boxId) {
|
|
209
|
+
// Convert to display coordinates for calculation
|
|
210
|
+
const displayBox = originalToDisplay(box);
|
|
211
|
+
const newDisplayBox = { ...displayBox };
|
|
212
|
+
switch (resizeHandle.handle) {
|
|
213
|
+
case 'se':
|
|
214
|
+
newDisplayBox.width = Math.max(20, pos.x - displayBox.x);
|
|
215
|
+
newDisplayBox.height = Math.max(20, pos.y - displayBox.y);
|
|
216
|
+
break;
|
|
217
|
+
case 'sw':
|
|
218
|
+
const newWidth = Math.max(20, displayBox.x + displayBox.width - pos.x);
|
|
219
|
+
newDisplayBox.x = displayBox.x + displayBox.width - newWidth;
|
|
220
|
+
newDisplayBox.width = newWidth;
|
|
221
|
+
newDisplayBox.height = Math.max(20, pos.y - displayBox.y);
|
|
222
|
+
break;
|
|
223
|
+
case 'ne':
|
|
224
|
+
newDisplayBox.width = Math.max(20, pos.x - displayBox.x);
|
|
225
|
+
const newHeight = Math.max(20, displayBox.y + displayBox.height - pos.y);
|
|
226
|
+
newDisplayBox.y = displayBox.y + displayBox.height - newHeight;
|
|
227
|
+
newDisplayBox.height = newHeight;
|
|
228
|
+
break;
|
|
229
|
+
case 'nw':
|
|
230
|
+
const newW = Math.max(20, displayBox.x + displayBox.width - pos.x);
|
|
231
|
+
const newH = Math.max(20, displayBox.y + displayBox.height - pos.y);
|
|
232
|
+
newDisplayBox.x = displayBox.x + displayBox.width - newW;
|
|
233
|
+
newDisplayBox.y = displayBox.y + displayBox.height - newH;
|
|
234
|
+
newDisplayBox.width = newW;
|
|
235
|
+
newDisplayBox.height = newH;
|
|
236
|
+
break;
|
|
237
|
+
}
|
|
238
|
+
// Convert back to original coordinates
|
|
239
|
+
return { ...box, ...displayToOriginal(newDisplayBox) };
|
|
240
|
+
}
|
|
241
|
+
return box;
|
|
242
|
+
}));
|
|
243
|
+
}
|
|
244
|
+
};
|
|
245
|
+
const handleBoxEnd = () => {
|
|
246
|
+
setDraggedBox(null);
|
|
247
|
+
setResizeHandle(null);
|
|
248
|
+
};
|
|
249
|
+
const deleteBox = (id) => {
|
|
250
|
+
setBoxes((prev) => prev.filter((box) => box.id !== id));
|
|
251
|
+
};
|
|
252
|
+
return ((0, jsx_runtime_1.jsxs)(react_2.Box, { ref: containerRef, ...ImageTranscriptionStyles_1.styles.annotationContainer, onMouseDown: handleMouseDown, onMouseMove: isDrawing ? handleMouseMove : (draggedBox || resizeHandle) ? handleBoxMove : undefined, onMouseUp: isDrawing ? handleMouseUp : handleBoxEnd, children: [(0, jsx_runtime_1.jsx)(react_2.Image, { ref: imageRef, src: image, alt: "Annotatable", ...ImageTranscriptionStyles_1.styles.annotationImage }), isDrawing && currentBox && ((0, jsx_runtime_1.jsx)(react_2.Box, { ...ImageTranscriptionStyles_1.styles.currentDrawingBox, left: `${currentBox.width < 0 ? currentBox.x + currentBox.width : currentBox.x}px`, top: `${currentBox.height < 0 ? currentBox.y + currentBox.height : currentBox.y}px`, w: `${Math.abs(currentBox.width)}px`, h: `${Math.abs(currentBox.height)}px`, children: Math.abs(currentBox.width) > 30 && Math.abs(currentBox.height) > 20 && ((0, jsx_runtime_1.jsxs)(react_2.Box, { ...ImageTranscriptionStyles_1.styles.drawingSizeIndicator, children: [Math.abs(currentBox.width), "\u00D7", Math.abs(currentBox.height)] })) })), boxes?.map((box) => {
|
|
253
|
+
// Convert original coordinates to display coordinates for rendering
|
|
254
|
+
const displayBox = originalToDisplay(box);
|
|
255
|
+
return ((0, jsx_runtime_1.jsxs)(react_2.Box, { className: "annotation-box", ...ImageTranscriptionStyles_1.styles.annotationBox, left: `${displayBox.x}px`, top: `${displayBox.y}px`, w: `${displayBox.width}px`, h: `${displayBox.height}px`, onMouseDown: (e) => handleBoxStart(e, box.id), children: [(0, jsx_runtime_1.jsx)(react_2.Button, { className: "delete-btn", ...ImageTranscriptionStyles_1.styles.deleteButton, onClick: () => deleteBox(box.id), children: "\u00D7" }), (0, jsx_runtime_1.jsx)(react_2.Box, { className: "resize-handle", "data-handle": "se", ...ImageTranscriptionStyles_1.styles.resizeHandle, ...ImageTranscriptionStyles_1.styles.resizeHandleSE }), (0, jsx_runtime_1.jsx)(react_2.Box, { className: "resize-handle", "data-handle": "sw", ...ImageTranscriptionStyles_1.styles.resizeHandle, ...ImageTranscriptionStyles_1.styles.resizeHandleSW }), (0, jsx_runtime_1.jsx)(react_2.Box, { className: "resize-handle", "data-handle": "ne", ...ImageTranscriptionStyles_1.styles.resizeHandle, ...ImageTranscriptionStyles_1.styles.resizeHandleNE }), (0, jsx_runtime_1.jsx)(react_2.Box, { className: "resize-handle", "data-handle": "nw", ...ImageTranscriptionStyles_1.styles.resizeHandle, ...ImageTranscriptionStyles_1.styles.resizeHandleNW })] }, box.id));
|
|
256
|
+
})] }));
|
|
257
|
+
});
|
|
258
|
+
exports.default = ImageAnnotation;
|
|
259
|
+
//# sourceMappingURL=ImageAnnotation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImageAnnotation.js","sourceRoot":"","sources":["../../../../src/components/Atoms/TranscriptionImagePreview/ImageAnnotation.tsx"],"names":[],"mappings":";;;;;;AAAA,iCAA4F;AAC5F,4CAAsD;AACtD,0EAA4C;AAC5C,yEAAoD;AAEpD,MAAM,eAAe,GAAG,IAAA,kBAAU,EAAC,CAAC,EAAE,KAAK,EAAE,UAAU,EAAO,EAAE,GAAG,EAAE,EAAE;IACnE,MAAM,CAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,CAAC,GAAQ,IAAA,2BAAW,EAAC,EAAE,CAAC,CAAC;IACzD,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAQ,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IACvD,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAQ,IAAA,gBAAQ,EAAC,IAAI,CAAC,CAAC;IACxD,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAQ,IAAA,gBAAQ,EAAC,IAAI,CAAC,CAAC;IACxD,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAQ,IAAA,gBAAQ,EAAC,IAAI,CAAC,CAAC;IAC5D,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAQ,IAAA,gBAAQ,EAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC;IAC5E,MAAM,YAAY,GAAQ,IAAA,cAAM,EAAC,IAAI,CAAC,CAAC;IACv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AE1C,OAAO,CACH,wBAAC,WAAG,IAEA,SAAS,EAAC,gBAAgB,KACtB,iCAAM,CAAC,aAAa,EACxB,IAAI,EAAE,GAAG,UAAU,CAAC,CAAC,IAAI,EACzB,GAAG,EAAE,GAAG,UAAU,CAAC,CAAC,IAAI,EACxB,CAAC,EAAE,GAAG,UAAU,CAAC,KAAK,IAAI,EAC1B,CAAC,EAAE,GAAG,UAAU,CAAC,MAAM,IAAI,EAC3B,WAAW,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,cAAc,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,aAG7C,uBAAC,cAAM,IACH,SAAS,EAAC,YAAY,KAClB,iCAAM,CAAC,YAAY,EACvB,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,uBAG3B,EAGT,uBAAC,WAAG,IACA,SAAS,EAAC,eAAe,iBACb,IAAI,KACZ,iCAAM,CAAC,YAAY,KACnB,iCAAM,CAAC,cAAc,GAC3B,EACF,uBAAC,WAAG,IACA,SAAS,EAAC,eAAe,iBACb,IAAI,KACZ,iCAAM,CAAC,YAAY,KACnB,iCAAM,CAAC,cAAc,GAC3B,EACF,uBAAC,WAAG,IACA,SAAS,EAAC,eAAe,iBACb,IAAI,KACZ,iCAAM,CAAC,YAAY,KACnB,iCAAM,CAAC,cAAc,GAC3B,EACF,uBAAC,WAAG,IACA,SAAS,EAAC,eAAe,iBACb,IAAI,KACZ,iCAAM,CAAC,YAAY,KACnB,iCAAM,CAAC,cAAc,GAC3B,KA1CG,GAAG,CAAC,EAAE,CA2CT,CACT,CAAC;YACN,CAAC,CAAC,IACA,CACT,CAAC;AACN,CAAC,CAAC,CAAC;AAEH,kBAAe,eAAe,CAAC"}
|
|
@@ -12,7 +12,7 @@ const PreformanceResultScreen = ({ percentage, description, timeTaken, compariso
|
|
|
12
12
|
messageBoxStyle: QuizResult_styles_1.styles.messageBoxImprove,
|
|
13
13
|
primaryButton: "Review questions",
|
|
14
14
|
secondaryButton: "Level Up",
|
|
15
|
-
showLevelUp:
|
|
15
|
+
showLevelUp: false,
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
18
|
else if (percentage >= 60 && percentage < 80) {
|
|
@@ -21,7 +21,7 @@ const PreformanceResultScreen = ({ percentage, description, timeTaken, compariso
|
|
|
21
21
|
messageBoxStyle: QuizResult_styles_1.styles.messageBoxGood,
|
|
22
22
|
primaryButton: "Review questions",
|
|
23
23
|
secondaryButton: "Level Up",
|
|
24
|
-
showLevelUp:
|
|
24
|
+
showLevelUp: false,
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
else if (percentage >= 80 && percentage < 100) {
|
|
@@ -57,9 +57,9 @@ const PreformanceResultScreen = ({ percentage, description, timeTaken, compariso
|
|
|
57
57
|
flexDirection: isMobile ? "column" : "row",
|
|
58
58
|
alignItems: isMobile ? "flex-start" : "center",
|
|
59
59
|
position: "relative",
|
|
60
|
-
}, children: [(0, jsx_runtime_1.jsx)(react_1.Box, { bg: "#DFDAFE", borderTopLeftRadius: "100px", borderTopRightRadius: "100px", borderBottomLeftRadius: "100px", overflow: "hidden", width: isMobile ? "120px" : "183px", height: isMobile ? "120px" : "183px", position: isMobile ? "static" : "absolute", paddingBottom: isMobile ? "0" : "16px", marginBottom: isMobile ? "16px" : "
|
|
60
|
+
}, children: [(0, jsx_runtime_1.jsx)(react_1.Box, { bg: "#DFDAFE", borderTopLeftRadius: "100px", borderTopRightRadius: "100px", borderBottomLeftRadius: "100px", overflow: "hidden", width: isMobile ? "120px" : "183px", height: isMobile ? "120px" : "183px", position: isMobile ? "static" : "absolute", paddingBottom: isMobile ? "0" : "16px", marginBottom: isMobile ? "16px" : "70px", children: (0, jsx_runtime_1.jsx)(RiveComponent, { style: {
|
|
61
61
|
width: "100%",
|
|
62
|
-
height: "
|
|
62
|
+
height: "100%",
|
|
63
63
|
objectFit: "contain",
|
|
64
64
|
zIndex: 99,
|
|
65
65
|
} }) }), (0, jsx_runtime_1.jsxs)(react_1.Box, { sx: {
|
|
@@ -78,16 +78,7 @@ const PreformanceResultScreen = ({ percentage, description, timeTaken, compariso
|
|
|
78
78
|
}, children: content.title }), (0, jsx_runtime_1.jsx)(react_1.Text, { sx: {
|
|
79
79
|
...QuizResult_styles_1.styles.description,
|
|
80
80
|
padding: isMobile && "0px",
|
|
81
|
-
}, children: description })] })] }), (0, jsx_runtime_1.jsx)(react_1.Box, { sx: QuizResult_styles_1.styles.separator }), (0, jsx_runtime_1.jsxs)(react_1.Box, { sx: {
|
|
82
|
-
...QuizResult_styles_1.styles.timeSection,
|
|
83
|
-
backgroundColor: content.showLevelUp
|
|
84
|
-
? isMobile
|
|
85
|
-
? "#F4F2FF"
|
|
86
|
-
: "#FAF9FE"
|
|
87
|
-
: "#FFF5E6",
|
|
88
|
-
}, children: [(0, jsx_runtime_1.jsxs)(react_1.Box, { sx: comparisonText && comparisonText.trim().length > 0
|
|
89
|
-
? QuizResult_styles_1.styles.timeHeader
|
|
90
|
-
: QuizResult_styles_1.styles.timeHeader1, children: [(0, jsx_runtime_1.jsxs)(react_1.Box, { as: "svg", sx: QuizResult_styles_1.styles.clockIcon, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [(0, jsx_runtime_1.jsx)("circle", { cx: "12", cy: "12", r: "10" }), (0, jsx_runtime_1.jsx)("path", { d: "M12 6v6l4 2" })] }), (0, jsx_runtime_1.jsx)(react_1.Text, { sx: QuizResult_styles_1.styles.timeLabel, children: "Time taken" }), (0, jsx_runtime_1.jsx)(react_1.Text, { sx: QuizResult_styles_1.styles.timeColon, children: ":" }), (0, jsx_runtime_1.jsx)(react_1.Text, { sx: QuizResult_styles_1.styles.timeValueNumber, children: timeTaken.minutes }), (0, jsx_runtime_1.jsx)(react_1.Text, { sx: QuizResult_styles_1.styles.timeValueUnit, children: " Mins " }), (0, jsx_runtime_1.jsx)(react_1.Text, { sx: QuizResult_styles_1.styles.timeValueNumber, children: timeTaken.seconds }), (0, jsx_runtime_1.jsx)(react_1.Text, { sx: QuizResult_styles_1.styles.timeValueUnit, children: " Secs" })] }), comparisonText && comparisonText.trim().length > 0 && ((0, jsx_runtime_1.jsx)(react_1.Text, { sx: QuizResult_styles_1.styles.timeSubtext, children: comparisonText }))] }), (0, jsx_runtime_1.jsxs)(react_1.Box, { sx: QuizResult_styles_1.styles.buttonContainer, children: [(0, jsx_runtime_1.jsx)(react_1.Button, { sx: { ...QuizResult_styles_1.styles.button, ...QuizResult_styles_1.styles.buttonSecondary }, onClick: content.showLevelUp ? onLevelUp : onBackToHomework, children: content.secondaryButton }), (0, jsx_runtime_1.jsx)(react_1.Button, { sx: { ...QuizResult_styles_1.styles.button, ...QuizResult_styles_1.styles.buttonPrimary }, onClick: onReview, children: content.primaryButton })] })] }) }) }));
|
|
81
|
+
}, children: description })] })] }), (0, jsx_runtime_1.jsx)(react_1.Box, { sx: QuizResult_styles_1.styles.separator }), (0, jsx_runtime_1.jsxs)(react_1.Box, { sx: QuizResult_styles_1.styles.buttonContainer, children: [(0, jsx_runtime_1.jsx)(react_1.Button, { sx: { ...QuizResult_styles_1.styles.button, ...QuizResult_styles_1.styles.buttonSecondary }, onClick: content.showLevelUp ? onLevelUp : onBackToHomework, children: content.secondaryButton }), (0, jsx_runtime_1.jsx)(react_1.Button, { sx: { ...QuizResult_styles_1.styles.button, ...QuizResult_styles_1.styles.buttonPrimary }, onClick: onReview, children: content.primaryButton })] })] }) }) }));
|
|
91
82
|
};
|
|
92
83
|
exports.default = PreformanceResultScreen;
|
|
93
84
|
//# sourceMappingURL=PreformanceResultScreen.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PreformanceResultScreen.js","sourceRoot":"","sources":["../../../../src/components/Molecules/PerformanceScreen/PreformanceResultScreen.tsx"],"names":[],"mappings":";;;AACA,4CAAwE;AACxE,2DAA6C;AAE7C,yDAAiD;AAejD,MAAM,uBAAuB,GAA2C,CAAC,EACvE,UAAU,EACV,WAAW,EACX,SAAS,EACT,cAAc,EACd,MAAM,EACN,SAAS,EACT,QAAQ,EACR,gBAAgB,EAChB,QAAQ,GAAG,KAAK,EAChB,MAAM,GACP,EAAE,EAAE;IACH,MAAM,UAAU,GAAG,GAAG,EAAE;QACtB,IAAI,UAAU,GAAG,EAAE,EAAE;YACnB,OAAO;gBACL,KAAK,EAAE,cAAc;gBACrB,eAAe,EAAE,0BAAM,CAAC,iBAAiB;gBACzC,aAAa,EAAE,kBAAkB;gBACjC,eAAe,EAAE,UAAU;gBAC3B,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"PreformanceResultScreen.js","sourceRoot":"","sources":["../../../../src/components/Molecules/PerformanceScreen/PreformanceResultScreen.tsx"],"names":[],"mappings":";;;AACA,4CAAwE;AACxE,2DAA6C;AAE7C,yDAAiD;AAejD,MAAM,uBAAuB,GAA2C,CAAC,EACvE,UAAU,EACV,WAAW,EACX,SAAS,EACT,cAAc,EACd,MAAM,EACN,SAAS,EACT,QAAQ,EACR,gBAAgB,EAChB,QAAQ,GAAG,KAAK,EAChB,MAAM,GACP,EAAE,EAAE;IACH,MAAM,UAAU,GAAG,GAAG,EAAE;QACtB,IAAI,UAAU,GAAG,EAAE,EAAE;YACnB,OAAO;gBACL,KAAK,EAAE,cAAc;gBACrB,eAAe,EAAE,0BAAM,CAAC,iBAAiB;gBACzC,aAAa,EAAE,kBAAkB;gBACjC,eAAe,EAAE,UAAU;gBAC3B,WAAW,EAAE,KAAK;aACnB,CAAC;SACH;aAAM,IAAI,UAAU,IAAI,EAAE,IAAI,UAAU,GAAG,EAAE,EAAE;YAC9C,OAAO;gBACL,KAAK,EAAE,YAAY;gBACnB,eAAe,EAAE,0BAAM,CAAC,cAAc;gBACtC,aAAa,EAAE,kBAAkB;gBACjC,eAAe,EAAE,UAAU;gBAC3B,WAAW,EAAE,KAAK;aACnB,CAAC;SACH;aAAM,IAAI,UAAU,IAAI,EAAE,IAAI,UAAU,GAAG,GAAG,EAAE;YAC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