analytica-frontend-lib 1.1.25 → 1.1.27
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/CheckBox/index.d.mts +1 -1
- package/dist/CheckBox/index.d.ts +1 -1
- package/dist/Menu/index.js +1 -1
- package/dist/Menu/index.js.map +1 -1
- package/dist/Menu/index.mjs +1 -1
- package/dist/Menu/index.mjs.map +1 -1
- package/dist/Quiz/index.js +101 -43
- package/dist/Quiz/index.js.map +1 -1
- package/dist/Quiz/index.mjs +101 -43
- 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/Radio/index.d.mts +2 -2
- package/dist/Radio/index.d.ts +2 -2
- package/dist/Search/index.d.mts +1 -1
- package/dist/Search/index.d.ts +1 -1
- package/dist/index.css +8 -3
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +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 -3
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
|
@@ -1231,6 +1231,18 @@ var CardResults = (0, import_react.forwardRef)(
|
|
|
1231
1231
|
);
|
|
1232
1232
|
var CardStatus = (0, import_react.forwardRef)(
|
|
1233
1233
|
({ header, className, status, label, ...props }, ref) => {
|
|
1234
|
+
const getLabelBadge = (status2) => {
|
|
1235
|
+
switch (status2) {
|
|
1236
|
+
case "correct":
|
|
1237
|
+
return "Correta";
|
|
1238
|
+
case "incorrect":
|
|
1239
|
+
return "Incorreta";
|
|
1240
|
+
case "unanswered":
|
|
1241
|
+
return "Em branco";
|
|
1242
|
+
default:
|
|
1243
|
+
return "Em branco";
|
|
1244
|
+
}
|
|
1245
|
+
};
|
|
1234
1246
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
1235
1247
|
CardBase,
|
|
1236
1248
|
{
|
|
@@ -1249,8 +1261,8 @@ var CardStatus = (0, import_react.forwardRef)(
|
|
|
1249
1261
|
action: status == "correct" ? "success" : "error",
|
|
1250
1262
|
variant: "solid",
|
|
1251
1263
|
size: "medium",
|
|
1252
|
-
iconLeft: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_phosphor_react2.CheckCircle, {}),
|
|
1253
|
-
children: status
|
|
1264
|
+
iconLeft: status == "correct" ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_phosphor_react2.CheckCircle, {}) : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_phosphor_react2.XCircle, {}),
|
|
1265
|
+
children: getLabelBadge(status)
|
|
1254
1266
|
}
|
|
1255
1267
|
),
|
|
1256
1268
|
label && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "text-sm text-text-800", children: label })
|