analytica-frontend-lib 1.2.5 → 1.2.7
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/DropdownMenu/index.d.mts +1 -0
- package/dist/DropdownMenu/index.d.ts +1 -0
- package/dist/DropdownMenu/index.js +9 -2
- package/dist/DropdownMenu/index.js.map +1 -1
- package/dist/DropdownMenu/index.mjs +9 -2
- package/dist/DropdownMenu/index.mjs.map +1 -1
- package/dist/NotificationCard/index.js +9 -2
- package/dist/NotificationCard/index.js.map +1 -1
- package/dist/NotificationCard/index.mjs +9 -2
- package/dist/NotificationCard/index.mjs.map +1 -1
- package/dist/Quiz/index.js +4 -2
- package/dist/Quiz/index.js.map +1 -1
- package/dist/Quiz/index.mjs +4 -2
- package/dist/Quiz/index.mjs.map +1 -1
- package/dist/Search/index.js +9 -2
- package/dist/Search/index.js.map +1 -1
- package/dist/Search/index.mjs +9 -2
- package/dist/Search/index.mjs.map +1 -1
- package/dist/index.css +0 -4
- package/dist/index.css.map +1 -1
- package/dist/index.js +13 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -4
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +0 -4
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3197,7 +3197,7 @@ var ProfileMenuTrigger = (0, import_react14.forwardRef)(({ className, onClick, s
|
|
|
3197
3197
|
);
|
|
3198
3198
|
});
|
|
3199
3199
|
ProfileMenuTrigger.displayName = "ProfileMenuTrigger";
|
|
3200
|
-
var ProfileMenuHeader = (0, import_react14.forwardRef)(({ className, name, email, store: _store, ...props }, ref) => {
|
|
3200
|
+
var ProfileMenuHeader = (0, import_react14.forwardRef)(({ className, name, email, photoUrl, store: _store, ...props }, ref) => {
|
|
3201
3201
|
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
3202
3202
|
"div",
|
|
3203
3203
|
{
|
|
@@ -3206,7 +3206,14 @@ var ProfileMenuHeader = (0, import_react14.forwardRef)(({ className, name, email
|
|
|
3206
3206
|
className: cn("flex flex-row gap-4 items-center", className),
|
|
3207
3207
|
...props,
|
|
3208
3208
|
children: [
|
|
3209
|
-
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "
|
|
3209
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "w-16 h-16 bg-primary-100 rounded-full flex items-center justify-center overflow-hidden", children: photoUrl ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
3210
|
+
"img",
|
|
3211
|
+
{
|
|
3212
|
+
src: photoUrl,
|
|
3213
|
+
alt: "Foto de perfil",
|
|
3214
|
+
className: "w-full h-full object-cover"
|
|
3215
|
+
}
|
|
3216
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_phosphor_react10.User, { size: 34, className: "text-primary-800" }) }),
|
|
3210
3217
|
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex flex-col ", children: [
|
|
3211
3218
|
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Text_default, { size: "xl", weight: "bold", color: "text-text-950", children: name }),
|
|
3212
3219
|
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Text_default, { size: "md", color: "text-text-600", children: email })
|
|
@@ -12636,12 +12643,14 @@ var QuizTitle = (0, import_react39.forwardRef)(({ className, onBack, ...props },
|
|
|
12636
12643
|
] });
|
|
12637
12644
|
});
|
|
12638
12645
|
var QuizHeader = () => {
|
|
12639
|
-
const { getCurrentQuestion,
|
|
12646
|
+
const { getCurrentQuestion, getQuestionIndex } = useQuizStore();
|
|
12640
12647
|
const currentQuestion = getCurrentQuestion();
|
|
12648
|
+
let currentId = currentQuestion && "questionId" in currentQuestion ? currentQuestion.questionId : currentQuestion?.id;
|
|
12649
|
+
const questionIndex = getQuestionIndex(currentId);
|
|
12641
12650
|
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
12642
12651
|
HeaderAlternative,
|
|
12643
12652
|
{
|
|
12644
|
-
title: currentQuestion ? `Quest\xE3o ${
|
|
12653
|
+
title: currentQuestion ? `Quest\xE3o ${questionIndex.toString().padStart(2, "0")}` : "Quest\xE3o",
|
|
12645
12654
|
subTitle: currentQuestion?.knowledgeMatrix?.[0]?.topic?.name ?? "",
|
|
12646
12655
|
content: currentQuestion?.statement ?? ""
|
|
12647
12656
|
}
|