analytica-frontend-lib 1.1.79 → 1.1.80

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/index.js CHANGED
@@ -11212,6 +11212,7 @@ var QuizResultPerformance = (0, import_react33.forwardRef)(({ showDetails = true
11212
11212
  });
11213
11213
  var QuizListResult = (0, import_react33.forwardRef)(({ className, onSubjectClick, ...props }, ref) => {
11214
11214
  const { getQuestionsGroupedBySubject } = useQuizStore();
11215
+ const { isDark } = useTheme();
11215
11216
  const groupedQuestions = getQuestionsGroupedBySubject();
11216
11217
  const subjectsStats = Object.entries(groupedQuestions).map(
11217
11218
  ([subjectId, questions]) => {
@@ -11248,7 +11249,7 @@ var QuizListResult = (0, import_react33.forwardRef)(({ className, onSubjectClick
11248
11249
  correct_answers: subject.correct,
11249
11250
  incorrect_answers: subject.incorrect,
11250
11251
  icon: subject.subject.icon || "Book",
11251
- color: subject.subject.color || void 0,
11252
+ color: getSubjectColorWithOpacity(subject.subject.color, isDark) || void 0,
11252
11253
  direction: "row"
11253
11254
  }
11254
11255
  ) }, subject.subject.id)) })