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.mjs
CHANGED
|
@@ -2770,15 +2770,22 @@ var CardBase = forwardRef6(
|
|
|
2770
2770
|
const minHeightClasses = CARD_MIN_HEIGHT_CLASSES[minHeight];
|
|
2771
2771
|
const layoutClasses = CARD_LAYOUT_CLASSES[layout];
|
|
2772
2772
|
const cursorClasses = CARD_CURSOR_CLASSES[cursor];
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2773
|
+
return /* @__PURE__ */ jsx12(
|
|
2774
|
+
"div",
|
|
2775
|
+
{
|
|
2776
|
+
ref,
|
|
2777
|
+
className: cn(
|
|
2778
|
+
baseClasses,
|
|
2779
|
+
paddingClasses,
|
|
2780
|
+
minHeightClasses,
|
|
2781
|
+
layoutClasses,
|
|
2782
|
+
cursorClasses,
|
|
2783
|
+
className
|
|
2784
|
+
),
|
|
2785
|
+
...props,
|
|
2786
|
+
children
|
|
2787
|
+
}
|
|
2788
|
+
);
|
|
2782
2789
|
}
|
|
2783
2790
|
);
|
|
2784
2791
|
var ACTION_CARD_CLASSES = {
|
|
@@ -3177,14 +3184,14 @@ var CardResults = forwardRef6(
|
|
|
3177
3184
|
layout: "horizontal",
|
|
3178
3185
|
padding: "none",
|
|
3179
3186
|
minHeight: "medium",
|
|
3180
|
-
className: cn("items-
|
|
3187
|
+
className: cn("items-stretch cursor-pointer pr-4", className),
|
|
3181
3188
|
...props,
|
|
3182
3189
|
children: [
|
|
3183
3190
|
/* @__PURE__ */ jsx12(
|
|
3184
3191
|
"div",
|
|
3185
3192
|
{
|
|
3186
3193
|
className: cn(
|
|
3187
|
-
"flex justify-center items-center [&>svg]:size-8 text-text-950 min-w-20 max-w-20 min-h-
|
|
3194
|
+
"flex justify-center items-center [&>svg]:size-8 text-text-950 min-w-20 max-w-20 min-h-full rounded-l-xl"
|
|
3188
3195
|
),
|
|
3189
3196
|
style: {
|
|
3190
3197
|
backgroundColor: color
|
|
@@ -3192,47 +3199,49 @@ var CardResults = forwardRef6(
|
|
|
3192
3199
|
children: /* @__PURE__ */ jsx12(IconRender_default, { iconName: icon, color: "currentColor", size: 20 })
|
|
3193
3200
|
}
|
|
3194
3201
|
),
|
|
3195
|
-
/* @__PURE__ */ jsxs10(
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
/* @__PURE__ */ jsxs10(
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
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
|
-
|
|
3202
|
+
/* @__PURE__ */ jsxs10("div", { className: "w-full flex flex-row justify-between items-center", children: [
|
|
3203
|
+
/* @__PURE__ */ jsxs10(
|
|
3204
|
+
"div",
|
|
3205
|
+
{
|
|
3206
|
+
className: cn(
|
|
3207
|
+
"p-4 flex flex-wrap justify-between w-full h-full",
|
|
3208
|
+
isRow ? "flex-row items-center gap-2" : "flex-col"
|
|
3209
|
+
),
|
|
3210
|
+
children: [
|
|
3211
|
+
/* @__PURE__ */ jsx12("p", { className: "text-sm font-bold text-text-950 flex-1", children: header }),
|
|
3212
|
+
/* @__PURE__ */ jsxs10("span", { className: "flex flex-wrap flex-row gap-1 items-center", children: [
|
|
3213
|
+
/* @__PURE__ */ jsxs10(
|
|
3214
|
+
Badge_default,
|
|
3215
|
+
{
|
|
3216
|
+
action: "success",
|
|
3217
|
+
variant: "solid",
|
|
3218
|
+
size: "large",
|
|
3219
|
+
iconLeft: /* @__PURE__ */ jsx12(CheckCircle2, {}),
|
|
3220
|
+
children: [
|
|
3221
|
+
correct_answers,
|
|
3222
|
+
" Corretas"
|
|
3223
|
+
]
|
|
3224
|
+
}
|
|
3225
|
+
),
|
|
3226
|
+
/* @__PURE__ */ jsxs10(
|
|
3227
|
+
Badge_default,
|
|
3228
|
+
{
|
|
3229
|
+
action: "error",
|
|
3230
|
+
variant: "solid",
|
|
3231
|
+
size: "large",
|
|
3232
|
+
iconLeft: /* @__PURE__ */ jsx12(XCircle2, {}),
|
|
3233
|
+
children: [
|
|
3234
|
+
incorrect_answers,
|
|
3235
|
+
" Incorretas"
|
|
3236
|
+
]
|
|
3237
|
+
}
|
|
3238
|
+
)
|
|
3239
|
+
] })
|
|
3240
|
+
]
|
|
3241
|
+
}
|
|
3242
|
+
),
|
|
3243
|
+
/* @__PURE__ */ jsx12(CaretRight, { className: "min-w-6 min-h-6 text-text-800" })
|
|
3244
|
+
] })
|
|
3236
3245
|
]
|
|
3237
3246
|
}
|
|
3238
3247
|
);
|
|
@@ -3864,7 +3873,7 @@ var SIMULATION_TYPE_STYLES = {
|
|
|
3864
3873
|
simulado: {
|
|
3865
3874
|
background: "bg-exam-3",
|
|
3866
3875
|
badge: "exam3",
|
|
3867
|
-
text: "
|
|
3876
|
+
text: "Simulad\xE3o"
|
|
3868
3877
|
},
|
|
3869
3878
|
vestibular: {
|
|
3870
3879
|
background: "bg-exam-4",
|
|
@@ -6064,7 +6073,6 @@ var QuizResultPerformance = forwardRef10(
|
|
|
6064
6073
|
({ ...props }, ref) => {
|
|
6065
6074
|
const {
|
|
6066
6075
|
getTotalQuestions,
|
|
6067
|
-
timeElapsed,
|
|
6068
6076
|
formatTime,
|
|
6069
6077
|
getQuestionResultStatistics,
|
|
6070
6078
|
getQuestionResult
|
|
@@ -6124,7 +6132,9 @@ var QuizResultPerformance = forwardRef10(
|
|
|
6124
6132
|
/* @__PURE__ */ jsxs15("div", { className: "absolute inset-0 flex flex-col items-center justify-center", children: [
|
|
6125
6133
|
/* @__PURE__ */ jsxs15("div", { className: "flex items-center gap-1 mb-1", children: [
|
|
6126
6134
|
/* @__PURE__ */ jsx18(Clock2, { size: 12, weight: "regular", className: "text-text-800" }),
|
|
6127
|
-
/* @__PURE__ */ jsx18("span", { className: "text-2xs font-medium text-text-800", children: formatTime(
|
|
6135
|
+
/* @__PURE__ */ jsx18("span", { className: "text-2xs font-medium text-text-800", children: formatTime(
|
|
6136
|
+
(getQuestionResultStatistics()?.timeSpent ?? 0) * 60
|
|
6137
|
+
) })
|
|
6128
6138
|
] }),
|
|
6129
6139
|
/* @__PURE__ */ jsxs15("div", { className: "text-2xl font-medium text-text-800 leading-7", children: [
|
|
6130
6140
|
getQuestionResultStatistics()?.correctAnswers ?? "--",
|