analytica-frontend-lib 1.1.41 → 1.1.43
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/Accordation/index.js +62 -53
- package/dist/Accordation/index.js.map +1 -1
- package/dist/Accordation/index.mjs +62 -53
- package/dist/Accordation/index.mjs.map +1 -1
- package/dist/Card/index.js +62 -53
- package/dist/Card/index.js.map +1 -1
- package/dist/Card/index.mjs +62 -53
- package/dist/Card/index.mjs.map +1 -1
- package/dist/Quiz/index.js +65 -55
- package/dist/Quiz/index.js.map +1 -1
- package/dist/Quiz/index.mjs +65 -55
- package/dist/Quiz/index.mjs.map +1 -1
- package/dist/Quiz/useQuizStore/index.d.mts +1 -0
- package/dist/Quiz/useQuizStore/index.d.ts +1 -0
- package/dist/Quiz/useQuizStore/index.js.map +1 -1
- package/dist/Quiz/useQuizStore/index.mjs.map +1 -1
- package/dist/index.css +6 -0
- package/dist/index.css.map +1 -1
- package/dist/index.js +65 -55
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +65 -55
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +6 -0
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
package/dist/Quiz/index.js
CHANGED
|
@@ -2774,15 +2774,22 @@ var CardBase = (0, import_react7.forwardRef)(
|
|
|
2774
2774
|
const minHeightClasses = CARD_MIN_HEIGHT_CLASSES[minHeight];
|
|
2775
2775
|
const layoutClasses = CARD_LAYOUT_CLASSES[layout];
|
|
2776
2776
|
const cursorClasses = CARD_CURSOR_CLASSES[cursor];
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2777
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
2778
|
+
"div",
|
|
2779
|
+
{
|
|
2780
|
+
ref,
|
|
2781
|
+
className: cn(
|
|
2782
|
+
baseClasses,
|
|
2783
|
+
paddingClasses,
|
|
2784
|
+
minHeightClasses,
|
|
2785
|
+
layoutClasses,
|
|
2786
|
+
cursorClasses,
|
|
2787
|
+
className
|
|
2788
|
+
),
|
|
2789
|
+
...props,
|
|
2790
|
+
children
|
|
2791
|
+
}
|
|
2792
|
+
);
|
|
2786
2793
|
}
|
|
2787
2794
|
);
|
|
2788
2795
|
var ACTION_CARD_CLASSES = {
|
|
@@ -3181,14 +3188,14 @@ var CardResults = (0, import_react7.forwardRef)(
|
|
|
3181
3188
|
layout: "horizontal",
|
|
3182
3189
|
padding: "none",
|
|
3183
3190
|
minHeight: "medium",
|
|
3184
|
-
className: cn("items-
|
|
3191
|
+
className: cn("items-stretch cursor-pointer pr-4", className),
|
|
3185
3192
|
...props,
|
|
3186
3193
|
children: [
|
|
3187
3194
|
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3188
3195
|
"div",
|
|
3189
3196
|
{
|
|
3190
3197
|
className: cn(
|
|
3191
|
-
"flex justify-center items-center [&>svg]:size-8 text-text-950 min-w-20 max-w-20 min-h-
|
|
3198
|
+
"flex justify-center items-center [&>svg]:size-8 text-text-950 min-w-20 max-w-20 min-h-full rounded-l-xl"
|
|
3192
3199
|
),
|
|
3193
3200
|
style: {
|
|
3194
3201
|
backgroundColor: color
|
|
@@ -3196,47 +3203,49 @@ var CardResults = (0, import_react7.forwardRef)(
|
|
|
3196
3203
|
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(IconRender_default, { iconName: icon, color: "currentColor", size: 20 })
|
|
3197
3204
|
}
|
|
3198
3205
|
),
|
|
3199
|
-
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3206
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "w-full flex flex-row justify-between items-center", children: [
|
|
3207
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
3208
|
+
"div",
|
|
3209
|
+
{
|
|
3210
|
+
className: cn(
|
|
3211
|
+
"p-4 flex flex-wrap justify-between w-full h-full",
|
|
3212
|
+
isRow ? "flex-row items-center gap-2" : "flex-col"
|
|
3213
|
+
),
|
|
3214
|
+
children: [
|
|
3215
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "text-sm font-bold text-text-950 flex-1", children: header }),
|
|
3216
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("span", { className: "flex flex-wrap flex-row gap-1 items-center", children: [
|
|
3217
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
3218
|
+
Badge_default,
|
|
3219
|
+
{
|
|
3220
|
+
action: "success",
|
|
3221
|
+
variant: "solid",
|
|
3222
|
+
size: "large",
|
|
3223
|
+
iconLeft: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_phosphor_react5.CheckCircle, {}),
|
|
3224
|
+
children: [
|
|
3225
|
+
correct_answers,
|
|
3226
|
+
" Corretas"
|
|
3227
|
+
]
|
|
3228
|
+
}
|
|
3229
|
+
),
|
|
3230
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
3231
|
+
Badge_default,
|
|
3232
|
+
{
|
|
3233
|
+
action: "error",
|
|
3234
|
+
variant: "solid",
|
|
3235
|
+
size: "large",
|
|
3236
|
+
iconLeft: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_phosphor_react5.XCircle, {}),
|
|
3237
|
+
children: [
|
|
3238
|
+
incorrect_answers,
|
|
3239
|
+
" Incorretas"
|
|
3240
|
+
]
|
|
3241
|
+
}
|
|
3242
|
+
)
|
|
3243
|
+
] })
|
|
3244
|
+
]
|
|
3245
|
+
}
|
|
3246
|
+
),
|
|
3247
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_phosphor_react5.CaretRight, { className: "min-w-6 min-h-6 text-text-800" })
|
|
3248
|
+
] })
|
|
3240
3249
|
]
|
|
3241
3250
|
}
|
|
3242
3251
|
);
|
|
@@ -3868,7 +3877,7 @@ var SIMULATION_TYPE_STYLES = {
|
|
|
3868
3877
|
simulado: {
|
|
3869
3878
|
background: "bg-exam-3",
|
|
3870
3879
|
badge: "exam3",
|
|
3871
|
-
text: "
|
|
3880
|
+
text: "Simulad\xE3o"
|
|
3872
3881
|
},
|
|
3873
3882
|
vestibular: {
|
|
3874
3883
|
background: "bg-exam-4",
|
|
@@ -6052,7 +6061,6 @@ var QuizResultPerformance = (0, import_react12.forwardRef)(
|
|
|
6052
6061
|
({ ...props }, ref) => {
|
|
6053
6062
|
const {
|
|
6054
6063
|
getTotalQuestions,
|
|
6055
|
-
timeElapsed,
|
|
6056
6064
|
formatTime,
|
|
6057
6065
|
getQuestionResultStatistics,
|
|
6058
6066
|
getQuestionResult
|
|
@@ -6112,7 +6120,9 @@ var QuizResultPerformance = (0, import_react12.forwardRef)(
|
|
|
6112
6120
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "absolute inset-0 flex flex-col items-center justify-center", children: [
|
|
6113
6121
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex items-center gap-1 mb-1", children: [
|
|
6114
6122
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_phosphor_react9.Clock, { size: 12, weight: "regular", className: "text-text-800" }),
|
|
6115
|
-
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "text-2xs font-medium text-text-800", children: formatTime(
|
|
6123
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "text-2xs font-medium text-text-800", children: formatTime(
|
|
6124
|
+
(getQuestionResultStatistics()?.timeSpent ?? 0) * 60
|
|
6125
|
+
) })
|
|
6116
6126
|
] }),
|
|
6117
6127
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "text-2xl font-medium text-text-800 leading-7", children: [
|
|
6118
6128
|
getQuestionResultStatistics()?.correctAnswers ?? "--",
|