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.mjs CHANGED
@@ -11184,6 +11184,7 @@ var QuizResultPerformance = forwardRef21(({ showDetails = true, ...props }, ref)
11184
11184
  });
11185
11185
  var QuizListResult = forwardRef21(({ className, onSubjectClick, ...props }, ref) => {
11186
11186
  const { getQuestionsGroupedBySubject } = useQuizStore();
11187
+ const { isDark } = useTheme();
11187
11188
  const groupedQuestions = getQuestionsGroupedBySubject();
11188
11189
  const subjectsStats = Object.entries(groupedQuestions).map(
11189
11190
  ([subjectId, questions]) => {
@@ -11220,7 +11221,7 @@ var QuizListResult = forwardRef21(({ className, onSubjectClick, ...props }, ref)
11220
11221
  correct_answers: subject.correct,
11221
11222
  incorrect_answers: subject.incorrect,
11222
11223
  icon: subject.subject.icon || "Book",
11223
- color: subject.subject.color || void 0,
11224
+ color: getSubjectColorWithOpacity(subject.subject.color, isDark) || void 0,
11224
11225
  direction: "row"
11225
11226
  }
11226
11227
  ) }, subject.subject.id)) })