analytica-frontend-lib 1.1.24 → 1.1.26
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 +14 -2
- package/dist/Accordation/index.js.map +1 -1
- package/dist/Accordation/index.mjs +14 -2
- package/dist/Accordation/index.mjs.map +1 -1
- package/dist/Card/index.d.mts +1 -1
- package/dist/Card/index.d.ts +1 -1
- package/dist/Card/index.js +14 -2
- package/dist/Card/index.js.map +1 -1
- package/dist/Card/index.mjs +14 -2
- package/dist/Card/index.mjs.map +1 -1
- package/dist/Quiz/index.js +102 -44
- package/dist/Quiz/index.js.map +1 -1
- package/dist/Quiz/index.mjs +102 -44
- package/dist/Quiz/index.mjs.map +1 -1
- package/dist/Quiz/useQuizStore/index.d.mts +2 -1
- package/dist/Quiz/useQuizStore/index.d.ts +2 -1
- package/dist/Quiz/useQuizStore/index.js +21 -8
- package/dist/Quiz/useQuizStore/index.js.map +1 -1
- package/dist/Quiz/useQuizStore/index.mjs +21 -8
- package/dist/Quiz/useQuizStore/index.mjs.map +1 -1
- package/dist/index.css +8 -0
- package/dist/index.css.map +1 -1
- package/dist/index.js +103 -44
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +103 -44
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +8 -0
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
package/dist/Card/index.d.ts
CHANGED
|
@@ -70,7 +70,7 @@ interface CardResultsProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
70
70
|
declare const CardResults: react.ForwardRefExoticComponent<CardResultsProps & react.RefAttributes<HTMLDivElement>>;
|
|
71
71
|
interface CardStatusProps extends HTMLAttributes<HTMLDivElement> {
|
|
72
72
|
header: string;
|
|
73
|
-
status?: 'correct' | 'incorrect';
|
|
73
|
+
status?: 'correct' | 'incorrect' | 'unanswered';
|
|
74
74
|
label?: string;
|
|
75
75
|
}
|
|
76
76
|
declare const CardStatus: react.ForwardRefExoticComponent<CardStatusProps & react.RefAttributes<HTMLDivElement>>;
|
package/dist/Card/index.js
CHANGED
|
@@ -1242,6 +1242,18 @@ var CardResults = (0, import_react.forwardRef)(
|
|
|
1242
1242
|
);
|
|
1243
1243
|
var CardStatus = (0, import_react.forwardRef)(
|
|
1244
1244
|
({ header, className, status, label, ...props }, ref) => {
|
|
1245
|
+
const getLabelBadge = (status2) => {
|
|
1246
|
+
switch (status2) {
|
|
1247
|
+
case "correct":
|
|
1248
|
+
return "Correta";
|
|
1249
|
+
case "incorrect":
|
|
1250
|
+
return "Incorreta";
|
|
1251
|
+
case "unanswered":
|
|
1252
|
+
return "Em branco";
|
|
1253
|
+
default:
|
|
1254
|
+
return "Em branco";
|
|
1255
|
+
}
|
|
1256
|
+
};
|
|
1245
1257
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
1246
1258
|
CardBase,
|
|
1247
1259
|
{
|
|
@@ -1260,8 +1272,8 @@ var CardStatus = (0, import_react.forwardRef)(
|
|
|
1260
1272
|
action: status == "correct" ? "success" : "error",
|
|
1261
1273
|
variant: "solid",
|
|
1262
1274
|
size: "medium",
|
|
1263
|
-
iconLeft: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_phosphor_react2.CheckCircle, {}),
|
|
1264
|
-
children: status
|
|
1275
|
+
iconLeft: status == "correct" ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_phosphor_react2.CheckCircle, {}) : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_phosphor_react2.XCircle, {}),
|
|
1276
|
+
children: getLabelBadge(status)
|
|
1265
1277
|
}
|
|
1266
1278
|
),
|
|
1267
1279
|
label && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "text-sm text-text-800", children: label })
|