@magmamath/students-features 1.2.1-rc.39 → 1.2.1-rc.4
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/commonjs/features/chatbot/components/ChatInput/ChatInput.js +1 -2
- package/dist/commonjs/features/chatbot/components/ChatInput/ChatInput.js.map +1 -1
- package/dist/commonjs/features/chatbot/components/ChatMessage/MessageContent.js +1 -2
- package/dist/commonjs/features/chatbot/components/ChatMessage/MessageContent.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.js +1 -1
- package/dist/commonjs/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.js.map +1 -1
- package/dist/commonjs/features/voice/constants.js +8 -2
- package/dist/commonjs/features/voice/constants.js.map +1 -1
- package/dist/commonjs/features/voice/recording/components/VoiceRecord.js +16 -5
- package/dist/commonjs/features/voice/recording/components/VoiceRecord.js.map +1 -1
- package/dist/commonjs/features/voice/recording/components/VoiceRecordButton.js +68 -20
- package/dist/commonjs/features/voice/recording/components/VoiceRecordButton.js.map +1 -1
- package/dist/commonjs/features/voice/recording/components/VoiceRecordDeleteButton.js +2 -2
- package/dist/commonjs/features/voice/recording/hooks/useVoiceRecorderAnimation.js +2 -2
- package/dist/commonjs/features/voice/recording/hooks/useVoiceRecorderAnimation.js.map +1 -1
- package/dist/commonjs/features/voice/recording/model/VoiceRecord.model.js +5 -0
- package/dist/commonjs/features/voice/recording/model/VoiceRecord.model.js.map +1 -1
- package/dist/commonjs/features/voice/types.js +6 -0
- package/dist/commonjs/features/voice/types.js.map +1 -1
- package/dist/commonjs/index.js +3 -15
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/shared/translation/localization/ca.json +0 -24
- package/dist/commonjs/shared/translation/localization/de.json +0 -24
- package/dist/commonjs/shared/translation/localization/en.json +0 -24
- package/dist/commonjs/shared/translation/localization/gb.json +0 -24
- package/dist/commonjs/shared/translation/localization/sct.json +0 -24
- package/dist/commonjs/shared/translation/localization/sw.json +0 -24
- package/dist/module/features/chatbot/components/ChatInput/ChatInput.js +1 -2
- package/dist/module/features/chatbot/components/ChatInput/ChatInput.js.map +1 -1
- package/dist/module/features/chatbot/components/ChatMessage/MessageContent.js +1 -2
- package/dist/module/features/chatbot/components/ChatMessage/MessageContent.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.js +2 -2
- package/dist/module/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.js.map +1 -1
- package/dist/module/features/voice/constants.js +8 -2
- package/dist/module/features/voice/constants.js.map +1 -1
- package/dist/module/features/voice/recording/components/VoiceRecord.js +17 -6
- package/dist/module/features/voice/recording/components/VoiceRecord.js.map +1 -1
- package/dist/module/features/voice/recording/components/VoiceRecordButton.js +69 -21
- package/dist/module/features/voice/recording/components/VoiceRecordButton.js.map +1 -1
- package/dist/module/features/voice/recording/components/VoiceRecordDeleteButton.js +2 -2
- package/dist/module/features/voice/recording/hooks/useVoiceRecorderAnimation.js +2 -2
- package/dist/module/features/voice/recording/hooks/useVoiceRecorderAnimation.js.map +1 -1
- package/dist/module/features/voice/recording/model/VoiceRecord.model.js +5 -0
- package/dist/module/features/voice/recording/model/VoiceRecord.model.js.map +1 -1
- package/dist/module/features/voice/types.js +5 -1
- package/dist/module/features/voice/types.js.map +1 -1
- package/dist/module/index.js +0 -1
- package/dist/module/index.js.map +1 -1
- package/dist/module/shared/translation/localization/ca.json +0 -24
- package/dist/module/shared/translation/localization/de.json +0 -24
- package/dist/module/shared/translation/localization/en.json +0 -24
- package/dist/module/shared/translation/localization/gb.json +0 -24
- package/dist/module/shared/translation/localization/sct.json +0 -24
- package/dist/module/shared/translation/localization/sw.json +0 -24
- package/dist/typescript/commonjs/features/chatbot/components/ChatInput/ChatInput.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageContent.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/voice/constants.d.ts +8 -2
- package/dist/typescript/commonjs/features/voice/constants.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecord.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecordButton.d.ts +1 -3
- package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecordButton.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/voice/recording/hooks/useVoiceRecorderAnimation.d.ts +2 -1
- package/dist/typescript/commonjs/features/voice/recording/hooks/useVoiceRecorderAnimation.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/voice/recording/model/VoiceRecord.model.d.ts +3 -1
- package/dist/typescript/commonjs/features/voice/recording/model/VoiceRecord.model.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/voice/types.d.ts +4 -0
- package/dist/typescript/commonjs/features/voice/types.d.ts.map +1 -1
- package/dist/typescript/commonjs/index.d.ts +0 -1
- package/dist/typescript/commonjs/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/translation/constants.d.ts +0 -144
- package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/translation/model.d.ts +0 -48
- package/dist/typescript/commonjs/shared/translation/model.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/ChatInput/ChatInput.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageContent.d.ts.map +1 -1
- package/dist/typescript/module/features/voice/constants.d.ts +8 -2
- package/dist/typescript/module/features/voice/constants.d.ts.map +1 -1
- package/dist/typescript/module/features/voice/recording/components/VoiceRecord.d.ts.map +1 -1
- package/dist/typescript/module/features/voice/recording/components/VoiceRecordButton.d.ts +1 -3
- package/dist/typescript/module/features/voice/recording/components/VoiceRecordButton.d.ts.map +1 -1
- package/dist/typescript/module/features/voice/recording/hooks/useVoiceRecorderAnimation.d.ts +2 -1
- package/dist/typescript/module/features/voice/recording/hooks/useVoiceRecorderAnimation.d.ts.map +1 -1
- package/dist/typescript/module/features/voice/recording/model/VoiceRecord.model.d.ts +3 -1
- package/dist/typescript/module/features/voice/recording/model/VoiceRecord.model.d.ts.map +1 -1
- package/dist/typescript/module/features/voice/types.d.ts +4 -0
- package/dist/typescript/module/features/voice/types.d.ts.map +1 -1
- package/dist/typescript/module/index.d.ts +0 -1
- package/dist/typescript/module/index.d.ts.map +1 -1
- package/dist/typescript/module/shared/translation/constants.d.ts +0 -144
- package/dist/typescript/module/shared/translation/constants.d.ts.map +1 -1
- package/dist/typescript/module/shared/translation/model.d.ts +0 -48
- package/dist/typescript/module/shared/translation/model.d.ts.map +1 -1
- package/package.json +13 -25
- package/src/features/chatbot/components/ChatInput/ChatInput.tsx +1 -2
- package/src/features/chatbot/components/ChatMessage/MessageContent.tsx +1 -2
- package/src/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.tsx +2 -2
- package/src/features/voice/constants.ts +8 -2
- package/src/features/voice/recording/components/VoiceRecord.tsx +26 -5
- package/src/features/voice/recording/components/VoiceRecordButton.tsx +91 -29
- package/src/features/voice/recording/components/VoiceRecordDeleteButton.tsx +2 -2
- package/src/features/voice/recording/hooks/useVoiceRecorderAnimation.ts +7 -3
- package/src/features/voice/recording/model/VoiceRecord.model.ts +7 -0
- package/src/features/voice/types.ts +5 -0
- package/src/index.ts +0 -1
- package/src/shared/translation/localization/ca.json +0 -24
- package/src/shared/translation/localization/de.json +0 -24
- package/src/shared/translation/localization/en.json +0 -24
- package/src/shared/translation/localization/gb.json +0 -24
- package/src/shared/translation/localization/sct.json +0 -24
- package/src/shared/translation/localization/sw.json +0 -24
- package/dist/commonjs/features/pmProgress/PmProgress.js +0 -42
- package/dist/commonjs/features/pmProgress/PmProgress.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/chart/chart.helpers.js +0 -24
- package/dist/commonjs/features/pmProgress/components/chart/chart.helpers.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/chart/chart.types.js +0 -2
- package/dist/commonjs/features/pmProgress/components/chart/chart.types.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/chart/components/PracticeProgressPieChart.js +0 -44
- package/dist/commonjs/features/pmProgress/components/chart/components/PracticeProgressPieChart.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/chart/components/SlicesClipPaths.js +0 -26
- package/dist/commonjs/features/pmProgress/components/chart/components/SlicesClipPaths.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/chart/components/SlicesPaths.js +0 -87
- package/dist/commonjs/features/pmProgress/components/chart/components/SlicesPaths.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/chart/components/layers/SliceArcPattern.js +0 -38
- package/dist/commonjs/features/pmProgress/components/chart/components/layers/SliceArcPattern.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.js +0 -21
- package/dist/commonjs/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/chart/components/layers/SliceFillColor.js +0 -82
- package/dist/commonjs/features/pmProgress/components/chart/components/layers/SliceFillColor.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/chart/model/ArcPatternGenerator.js +0 -49
- package/dist/commonjs/features/pmProgress/components/chart/model/ArcPatternGenerator.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/chart/model/PieChartManager.js +0 -25
- package/dist/commonjs/features/pmProgress/components/chart/model/PieChartManager.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/chart/model/SliceHighlight.js +0 -20
- package/dist/commonjs/features/pmProgress/components/chart/model/SliceHighlight.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/chart/model/SliceShapeGenerator.js +0 -79
- package/dist/commonjs/features/pmProgress/components/chart/model/SliceShapeGenerator.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/content/PmContent.js +0 -50
- package/dist/commonjs/features/pmProgress/components/content/PmContent.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/header/PmProgressHeader.js +0 -216
- package/dist/commonjs/features/pmProgress/components/header/PmProgressHeader.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/header/StartButton.js +0 -114
- package/dist/commonjs/features/pmProgress/components/header/StartButton.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/insights/PmInsights.js +0 -70
- package/dist/commonjs/features/pmProgress/components/insights/PmInsights.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/insights/PmTimeframeStats.js +0 -99
- package/dist/commonjs/features/pmProgress/components/insights/PmTimeframeStats.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/insights/StatsCard.js +0 -72
- package/dist/commonjs/features/pmProgress/components/insights/StatsCard.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/list/Fluency.js +0 -80
- package/dist/commonjs/features/pmProgress/components/list/Fluency.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/list/ListCard.js +0 -197
- package/dist/commonjs/features/pmProgress/components/list/ListCard.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/list/ListItem.js +0 -140
- package/dist/commonjs/features/pmProgress/components/list/ListItem.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/list/PmDomainList.js +0 -96
- package/dist/commonjs/features/pmProgress/components/list/PmDomainList.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/locked/PmStatusOverlay.js +0 -101
- package/dist/commonjs/features/pmProgress/components/locked/PmStatusOverlay.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/recs/PmTeacherRecs.js +0 -134
- package/dist/commonjs/features/pmProgress/components/recs/PmTeacherRecs.js.map +0 -1
- package/dist/commonjs/features/pmProgress/components/standard/StandardTag.js +0 -203
- package/dist/commonjs/features/pmProgress/components/standard/StandardTag.js.map +0 -1
- package/dist/commonjs/features/pmProgress/context/PmProgressContext.js +0 -18
- package/dist/commonjs/features/pmProgress/context/PmProgressContext.js.map +0 -1
- package/dist/commonjs/features/pmProgress/index.js +0 -64
- package/dist/commonjs/features/pmProgress/index.js.map +0 -1
- package/dist/commonjs/features/pmProgress/model/PmHighlightModel.js +0 -15
- package/dist/commonjs/features/pmProgress/model/PmHighlightModel.js.map +0 -1
- package/dist/commonjs/features/pmProgress/model/PmInsightsModel.js +0 -22
- package/dist/commonjs/features/pmProgress/model/PmInsightsModel.js.map +0 -1
- package/dist/commonjs/features/pmProgress/model/PmProgressApi.js +0 -18
- package/dist/commonjs/features/pmProgress/model/PmProgressApi.js.map +0 -1
- package/dist/commonjs/features/pmProgress/model/PmProgressModel.js +0 -43
- package/dist/commonjs/features/pmProgress/model/PmProgressModel.js.map +0 -1
- package/dist/commonjs/features/pmProgress/model/PmRecommendationsModel.js +0 -47
- package/dist/commonjs/features/pmProgress/model/PmRecommendationsModel.js.map +0 -1
- package/dist/commonjs/features/pmProgress/model/PmSolvingFlowModel.js +0 -102
- package/dist/commonjs/features/pmProgress/model/PmSolvingFlowModel.js.map +0 -1
- package/dist/commonjs/features/pmProgress/model/PmTreeModel.js +0 -170
- package/dist/commonjs/features/pmProgress/model/PmTreeModel.js.map +0 -1
- package/dist/commonjs/features/pmProgress/shared/TreeNormalizer.js +0 -52
- package/dist/commonjs/features/pmProgress/shared/TreeNormalizer.js.map +0 -1
- package/dist/commonjs/features/pmProgress/shared/pmProgress.constants.js +0 -59
- package/dist/commonjs/features/pmProgress/shared/pmProgress.constants.js.map +0 -1
- package/dist/commonjs/features/pmProgress/shared/pmProgress.helpers.js +0 -217
- package/dist/commonjs/features/pmProgress/shared/pmProgress.helpers.js.map +0 -1
- package/dist/commonjs/features/pmProgress/shared/pmProgress.types.js +0 -12
- package/dist/commonjs/features/pmProgress/shared/pmProgress.types.js.map +0 -1
- package/dist/commonjs/shared/icons/PentagonIcon.js +0 -32
- package/dist/commonjs/shared/icons/PentagonIcon.js.map +0 -1
- package/dist/commonjs/shared/icons/SketchArrowRight.js +0 -33
- package/dist/commonjs/shared/icons/SketchArrowRight.js.map +0 -1
- package/dist/commonjs/shared/icons/SliceDiamondIcon.js +0 -32
- package/dist/commonjs/shared/icons/SliceDiamondIcon.js.map +0 -1
- package/dist/commonjs/shared/icons/StarIcon.js +0 -32
- package/dist/commonjs/shared/icons/StarIcon.js.map +0 -1
- package/dist/commonjs/shared/icons/TimerIcon.js +0 -35
- package/dist/commonjs/shared/icons/TimerIcon.js.map +0 -1
- package/dist/module/features/pmProgress/PmProgress.js +0 -36
- package/dist/module/features/pmProgress/PmProgress.js.map +0 -1
- package/dist/module/features/pmProgress/components/chart/chart.helpers.js +0 -17
- package/dist/module/features/pmProgress/components/chart/chart.helpers.js.map +0 -1
- package/dist/module/features/pmProgress/components/chart/chart.types.js +0 -2
- package/dist/module/features/pmProgress/components/chart/chart.types.js.map +0 -1
- package/dist/module/features/pmProgress/components/chart/components/PracticeProgressPieChart.js +0 -38
- package/dist/module/features/pmProgress/components/chart/components/PracticeProgressPieChart.js.map +0 -1
- package/dist/module/features/pmProgress/components/chart/components/SlicesClipPaths.js +0 -20
- package/dist/module/features/pmProgress/components/chart/components/SlicesClipPaths.js.map +0 -1
- package/dist/module/features/pmProgress/components/chart/components/SlicesPaths.js +0 -81
- package/dist/module/features/pmProgress/components/chart/components/SlicesPaths.js.map +0 -1
- package/dist/module/features/pmProgress/components/chart/components/layers/SliceArcPattern.js +0 -32
- package/dist/module/features/pmProgress/components/chart/components/layers/SliceArcPattern.js.map +0 -1
- package/dist/module/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.js +0 -15
- package/dist/module/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.js.map +0 -1
- package/dist/module/features/pmProgress/components/chart/components/layers/SliceFillColor.js +0 -76
- package/dist/module/features/pmProgress/components/chart/components/layers/SliceFillColor.js.map +0 -1
- package/dist/module/features/pmProgress/components/chart/model/ArcPatternGenerator.js +0 -44
- package/dist/module/features/pmProgress/components/chart/model/ArcPatternGenerator.js.map +0 -1
- package/dist/module/features/pmProgress/components/chart/model/PieChartManager.js +0 -20
- package/dist/module/features/pmProgress/components/chart/model/PieChartManager.js.map +0 -1
- package/dist/module/features/pmProgress/components/chart/model/SliceHighlight.js +0 -15
- package/dist/module/features/pmProgress/components/chart/model/SliceHighlight.js.map +0 -1
- package/dist/module/features/pmProgress/components/chart/model/SliceShapeGenerator.js +0 -74
- package/dist/module/features/pmProgress/components/chart/model/SliceShapeGenerator.js.map +0 -1
- package/dist/module/features/pmProgress/components/content/PmContent.js +0 -44
- package/dist/module/features/pmProgress/components/content/PmContent.js.map +0 -1
- package/dist/module/features/pmProgress/components/header/PmProgressHeader.js +0 -209
- package/dist/module/features/pmProgress/components/header/PmProgressHeader.js.map +0 -1
- package/dist/module/features/pmProgress/components/header/StartButton.js +0 -107
- package/dist/module/features/pmProgress/components/header/StartButton.js.map +0 -1
- package/dist/module/features/pmProgress/components/insights/PmInsights.js +0 -63
- package/dist/module/features/pmProgress/components/insights/PmInsights.js.map +0 -1
- package/dist/module/features/pmProgress/components/insights/PmTimeframeStats.js +0 -94
- package/dist/module/features/pmProgress/components/insights/PmTimeframeStats.js.map +0 -1
- package/dist/module/features/pmProgress/components/insights/StatsCard.js +0 -66
- package/dist/module/features/pmProgress/components/insights/StatsCard.js.map +0 -1
- package/dist/module/features/pmProgress/components/list/Fluency.js +0 -74
- package/dist/module/features/pmProgress/components/list/Fluency.js.map +0 -1
- package/dist/module/features/pmProgress/components/list/ListCard.js +0 -190
- package/dist/module/features/pmProgress/components/list/ListCard.js.map +0 -1
- package/dist/module/features/pmProgress/components/list/ListItem.js +0 -133
- package/dist/module/features/pmProgress/components/list/ListItem.js.map +0 -1
- package/dist/module/features/pmProgress/components/list/PmDomainList.js +0 -90
- package/dist/module/features/pmProgress/components/list/PmDomainList.js.map +0 -1
- package/dist/module/features/pmProgress/components/locked/PmStatusOverlay.js +0 -95
- package/dist/module/features/pmProgress/components/locked/PmStatusOverlay.js.map +0 -1
- package/dist/module/features/pmProgress/components/recs/PmTeacherRecs.js +0 -128
- package/dist/module/features/pmProgress/components/recs/PmTeacherRecs.js.map +0 -1
- package/dist/module/features/pmProgress/components/standard/StandardTag.js +0 -197
- package/dist/module/features/pmProgress/components/standard/StandardTag.js.map +0 -1
- package/dist/module/features/pmProgress/context/PmProgressContext.js +0 -13
- package/dist/module/features/pmProgress/context/PmProgressContext.js.map +0 -1
- package/dist/module/features/pmProgress/index.js +0 -9
- package/dist/module/features/pmProgress/index.js.map +0 -1
- package/dist/module/features/pmProgress/model/PmHighlightModel.js +0 -10
- package/dist/module/features/pmProgress/model/PmHighlightModel.js.map +0 -1
- package/dist/module/features/pmProgress/model/PmInsightsModel.js +0 -17
- package/dist/module/features/pmProgress/model/PmInsightsModel.js.map +0 -1
- package/dist/module/features/pmProgress/model/PmProgressApi.js +0 -13
- package/dist/module/features/pmProgress/model/PmProgressApi.js.map +0 -1
- package/dist/module/features/pmProgress/model/PmProgressModel.js +0 -38
- package/dist/module/features/pmProgress/model/PmProgressModel.js.map +0 -1
- package/dist/module/features/pmProgress/model/PmRecommendationsModel.js +0 -42
- package/dist/module/features/pmProgress/model/PmRecommendationsModel.js.map +0 -1
- package/dist/module/features/pmProgress/model/PmSolvingFlowModel.js +0 -97
- package/dist/module/features/pmProgress/model/PmSolvingFlowModel.js.map +0 -1
- package/dist/module/features/pmProgress/model/PmTreeModel.js +0 -165
- package/dist/module/features/pmProgress/model/PmTreeModel.js.map +0 -1
- package/dist/module/features/pmProgress/shared/TreeNormalizer.js +0 -47
- package/dist/module/features/pmProgress/shared/TreeNormalizer.js.map +0 -1
- package/dist/module/features/pmProgress/shared/pmProgress.constants.js +0 -56
- package/dist/module/features/pmProgress/shared/pmProgress.constants.js.map +0 -1
- package/dist/module/features/pmProgress/shared/pmProgress.helpers.js +0 -197
- package/dist/module/features/pmProgress/shared/pmProgress.helpers.js.map +0 -1
- package/dist/module/features/pmProgress/shared/pmProgress.types.js +0 -10
- package/dist/module/features/pmProgress/shared/pmProgress.types.js.map +0 -1
- package/dist/module/shared/icons/PentagonIcon.js +0 -24
- package/dist/module/shared/icons/PentagonIcon.js.map +0 -1
- package/dist/module/shared/icons/SketchArrowRight.js +0 -25
- package/dist/module/shared/icons/SketchArrowRight.js.map +0 -1
- package/dist/module/shared/icons/SliceDiamondIcon.js +0 -24
- package/dist/module/shared/icons/SliceDiamondIcon.js.map +0 -1
- package/dist/module/shared/icons/StarIcon.js +0 -24
- package/dist/module/shared/icons/StarIcon.js.map +0 -1
- package/dist/module/shared/icons/TimerIcon.js +0 -27
- package/dist/module/shared/icons/TimerIcon.js.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/PmProgress.d.ts +0 -9
- package/dist/typescript/commonjs/features/pmProgress/PmProgress.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/chart/chart.helpers.d.ts +0 -4
- package/dist/typescript/commonjs/features/pmProgress/components/chart/chart.helpers.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/chart/chart.types.d.ts +0 -36
- package/dist/typescript/commonjs/features/pmProgress/components/chart/chart.types.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/chart/components/PracticeProgressPieChart.d.ts +0 -9
- package/dist/typescript/commonjs/features/pmProgress/components/chart/components/PracticeProgressPieChart.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/chart/components/SlicesClipPaths.d.ts +0 -10
- package/dist/typescript/commonjs/features/pmProgress/components/chart/components/SlicesClipPaths.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/chart/components/SlicesPaths.d.ts +0 -11
- package/dist/typescript/commonjs/features/pmProgress/components/chart/components/SlicesPaths.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/chart/components/layers/SliceArcPattern.d.ts +0 -12
- package/dist/typescript/commonjs/features/pmProgress/components/chart/components/layers/SliceArcPattern.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.d.ts +0 -8
- package/dist/typescript/commonjs/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/chart/components/layers/SliceFillColor.d.ts +0 -14
- package/dist/typescript/commonjs/features/pmProgress/components/chart/components/layers/SliceFillColor.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/chart/model/ArcPatternGenerator.d.ts +0 -12
- package/dist/typescript/commonjs/features/pmProgress/components/chart/model/ArcPatternGenerator.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/chart/model/PieChartManager.d.ts +0 -16
- package/dist/typescript/commonjs/features/pmProgress/components/chart/model/PieChartManager.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/chart/model/SliceHighlight.d.ts +0 -10
- package/dist/typescript/commonjs/features/pmProgress/components/chart/model/SliceHighlight.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/chart/model/SliceShapeGenerator.d.ts +0 -17
- package/dist/typescript/commonjs/features/pmProgress/components/chart/model/SliceShapeGenerator.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/content/PmContent.d.ts +0 -3
- package/dist/typescript/commonjs/features/pmProgress/components/content/PmContent.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/header/PmProgressHeader.d.ts +0 -3
- package/dist/typescript/commonjs/features/pmProgress/components/header/PmProgressHeader.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/header/StartButton.d.ts +0 -11
- package/dist/typescript/commonjs/features/pmProgress/components/header/StartButton.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/insights/PmInsights.d.ts +0 -3
- package/dist/typescript/commonjs/features/pmProgress/components/insights/PmInsights.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/insights/PmTimeframeStats.d.ts +0 -3
- package/dist/typescript/commonjs/features/pmProgress/components/insights/PmTimeframeStats.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/insights/StatsCard.d.ts +0 -12
- package/dist/typescript/commonjs/features/pmProgress/components/insights/StatsCard.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/list/Fluency.d.ts +0 -8
- package/dist/typescript/commonjs/features/pmProgress/components/list/Fluency.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/list/ListCard.d.ts +0 -31
- package/dist/typescript/commonjs/features/pmProgress/components/list/ListCard.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/list/ListItem.d.ts +0 -12
- package/dist/typescript/commonjs/features/pmProgress/components/list/ListItem.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/list/PmDomainList.d.ts +0 -3
- package/dist/typescript/commonjs/features/pmProgress/components/list/PmDomainList.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/locked/PmStatusOverlay.d.ts +0 -8
- package/dist/typescript/commonjs/features/pmProgress/components/locked/PmStatusOverlay.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/recs/PmTeacherRecs.d.ts +0 -3
- package/dist/typescript/commonjs/features/pmProgress/components/recs/PmTeacherRecs.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/components/standard/StandardTag.d.ts +0 -9
- package/dist/typescript/commonjs/features/pmProgress/components/standard/StandardTag.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/context/PmProgressContext.d.ts +0 -14
- package/dist/typescript/commonjs/features/pmProgress/context/PmProgressContext.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/index.d.ts +0 -7
- package/dist/typescript/commonjs/features/pmProgress/index.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/model/PmHighlightModel.d.ts +0 -7
- package/dist/typescript/commonjs/features/pmProgress/model/PmHighlightModel.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/model/PmInsightsModel.d.ts +0 -14
- package/dist/typescript/commonjs/features/pmProgress/model/PmInsightsModel.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/model/PmProgressApi.d.ts +0 -17
- package/dist/typescript/commonjs/features/pmProgress/model/PmProgressApi.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/model/PmProgressModel.d.ts +0 -23
- package/dist/typescript/commonjs/features/pmProgress/model/PmProgressModel.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/model/PmRecommendationsModel.d.ts +0 -102
- package/dist/typescript/commonjs/features/pmProgress/model/PmRecommendationsModel.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/model/PmSolvingFlowModel.d.ts +0 -22
- package/dist/typescript/commonjs/features/pmProgress/model/PmSolvingFlowModel.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/model/PmTreeModel.d.ts +0 -25
- package/dist/typescript/commonjs/features/pmProgress/model/PmTreeModel.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/shared/TreeNormalizer.d.ts +0 -17
- package/dist/typescript/commonjs/features/pmProgress/shared/TreeNormalizer.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.constants.d.ts +0 -44
- package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.constants.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.helpers.d.ts +0 -66
- package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.helpers.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.types.d.ts +0 -193
- package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.types.d.ts.map +0 -1
- package/dist/typescript/commonjs/shared/icons/PentagonIcon.d.ts +0 -4
- package/dist/typescript/commonjs/shared/icons/PentagonIcon.d.ts.map +0 -1
- package/dist/typescript/commonjs/shared/icons/SketchArrowRight.d.ts +0 -4
- package/dist/typescript/commonjs/shared/icons/SketchArrowRight.d.ts.map +0 -1
- package/dist/typescript/commonjs/shared/icons/SliceDiamondIcon.d.ts +0 -4
- package/dist/typescript/commonjs/shared/icons/SliceDiamondIcon.d.ts.map +0 -1
- package/dist/typescript/commonjs/shared/icons/StarIcon.d.ts +0 -4
- package/dist/typescript/commonjs/shared/icons/StarIcon.d.ts.map +0 -1
- package/dist/typescript/commonjs/shared/icons/TimerIcon.d.ts +0 -4
- package/dist/typescript/commonjs/shared/icons/TimerIcon.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/PmProgress.d.ts +0 -9
- package/dist/typescript/module/features/pmProgress/PmProgress.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/chart/chart.helpers.d.ts +0 -4
- package/dist/typescript/module/features/pmProgress/components/chart/chart.helpers.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/chart/chart.types.d.ts +0 -36
- package/dist/typescript/module/features/pmProgress/components/chart/chart.types.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/chart/components/PracticeProgressPieChart.d.ts +0 -9
- package/dist/typescript/module/features/pmProgress/components/chart/components/PracticeProgressPieChart.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/chart/components/SlicesClipPaths.d.ts +0 -10
- package/dist/typescript/module/features/pmProgress/components/chart/components/SlicesClipPaths.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/chart/components/SlicesPaths.d.ts +0 -11
- package/dist/typescript/module/features/pmProgress/components/chart/components/SlicesPaths.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/chart/components/layers/SliceArcPattern.d.ts +0 -12
- package/dist/typescript/module/features/pmProgress/components/chart/components/layers/SliceArcPattern.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.d.ts +0 -8
- package/dist/typescript/module/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/chart/components/layers/SliceFillColor.d.ts +0 -14
- package/dist/typescript/module/features/pmProgress/components/chart/components/layers/SliceFillColor.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/chart/model/ArcPatternGenerator.d.ts +0 -12
- package/dist/typescript/module/features/pmProgress/components/chart/model/ArcPatternGenerator.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/chart/model/PieChartManager.d.ts +0 -16
- package/dist/typescript/module/features/pmProgress/components/chart/model/PieChartManager.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/chart/model/SliceHighlight.d.ts +0 -10
- package/dist/typescript/module/features/pmProgress/components/chart/model/SliceHighlight.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/chart/model/SliceShapeGenerator.d.ts +0 -17
- package/dist/typescript/module/features/pmProgress/components/chart/model/SliceShapeGenerator.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/content/PmContent.d.ts +0 -3
- package/dist/typescript/module/features/pmProgress/components/content/PmContent.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/header/PmProgressHeader.d.ts +0 -3
- package/dist/typescript/module/features/pmProgress/components/header/PmProgressHeader.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/header/StartButton.d.ts +0 -11
- package/dist/typescript/module/features/pmProgress/components/header/StartButton.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/insights/PmInsights.d.ts +0 -3
- package/dist/typescript/module/features/pmProgress/components/insights/PmInsights.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/insights/PmTimeframeStats.d.ts +0 -3
- package/dist/typescript/module/features/pmProgress/components/insights/PmTimeframeStats.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/insights/StatsCard.d.ts +0 -12
- package/dist/typescript/module/features/pmProgress/components/insights/StatsCard.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/list/Fluency.d.ts +0 -8
- package/dist/typescript/module/features/pmProgress/components/list/Fluency.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/list/ListCard.d.ts +0 -31
- package/dist/typescript/module/features/pmProgress/components/list/ListCard.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/list/ListItem.d.ts +0 -12
- package/dist/typescript/module/features/pmProgress/components/list/ListItem.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/list/PmDomainList.d.ts +0 -3
- package/dist/typescript/module/features/pmProgress/components/list/PmDomainList.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/locked/PmStatusOverlay.d.ts +0 -8
- package/dist/typescript/module/features/pmProgress/components/locked/PmStatusOverlay.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/recs/PmTeacherRecs.d.ts +0 -3
- package/dist/typescript/module/features/pmProgress/components/recs/PmTeacherRecs.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/components/standard/StandardTag.d.ts +0 -9
- package/dist/typescript/module/features/pmProgress/components/standard/StandardTag.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/context/PmProgressContext.d.ts +0 -14
- package/dist/typescript/module/features/pmProgress/context/PmProgressContext.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/index.d.ts +0 -7
- package/dist/typescript/module/features/pmProgress/index.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/model/PmHighlightModel.d.ts +0 -7
- package/dist/typescript/module/features/pmProgress/model/PmHighlightModel.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/model/PmInsightsModel.d.ts +0 -14
- package/dist/typescript/module/features/pmProgress/model/PmInsightsModel.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/model/PmProgressApi.d.ts +0 -17
- package/dist/typescript/module/features/pmProgress/model/PmProgressApi.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/model/PmProgressModel.d.ts +0 -23
- package/dist/typescript/module/features/pmProgress/model/PmProgressModel.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/model/PmRecommendationsModel.d.ts +0 -102
- package/dist/typescript/module/features/pmProgress/model/PmRecommendationsModel.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/model/PmSolvingFlowModel.d.ts +0 -22
- package/dist/typescript/module/features/pmProgress/model/PmSolvingFlowModel.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/model/PmTreeModel.d.ts +0 -25
- package/dist/typescript/module/features/pmProgress/model/PmTreeModel.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/shared/TreeNormalizer.d.ts +0 -17
- package/dist/typescript/module/features/pmProgress/shared/TreeNormalizer.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/shared/pmProgress.constants.d.ts +0 -44
- package/dist/typescript/module/features/pmProgress/shared/pmProgress.constants.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/shared/pmProgress.helpers.d.ts +0 -66
- package/dist/typescript/module/features/pmProgress/shared/pmProgress.helpers.d.ts.map +0 -1
- package/dist/typescript/module/features/pmProgress/shared/pmProgress.types.d.ts +0 -193
- package/dist/typescript/module/features/pmProgress/shared/pmProgress.types.d.ts.map +0 -1
- package/dist/typescript/module/shared/icons/PentagonIcon.d.ts +0 -4
- package/dist/typescript/module/shared/icons/PentagonIcon.d.ts.map +0 -1
- package/dist/typescript/module/shared/icons/SketchArrowRight.d.ts +0 -4
- package/dist/typescript/module/shared/icons/SketchArrowRight.d.ts.map +0 -1
- package/dist/typescript/module/shared/icons/SliceDiamondIcon.d.ts +0 -4
- package/dist/typescript/module/shared/icons/SliceDiamondIcon.d.ts.map +0 -1
- package/dist/typescript/module/shared/icons/StarIcon.d.ts +0 -4
- package/dist/typescript/module/shared/icons/StarIcon.d.ts.map +0 -1
- package/dist/typescript/module/shared/icons/TimerIcon.d.ts +0 -4
- package/dist/typescript/module/shared/icons/TimerIcon.d.ts.map +0 -1
- package/src/features/pmProgress/PmProgress.tsx +0 -30
- package/src/features/pmProgress/__tests__/.keep +0 -0
- package/src/features/pmProgress/components/chart/chart.helpers.ts +0 -16
- package/src/features/pmProgress/components/chart/chart.types.ts +0 -37
- package/src/features/pmProgress/components/chart/components/PracticeProgressPieChart.tsx +0 -32
- package/src/features/pmProgress/components/chart/components/SlicesClipPaths.tsx +0 -22
- package/src/features/pmProgress/components/chart/components/SlicesPaths.tsx +0 -90
- package/src/features/pmProgress/components/chart/components/layers/SliceArcPattern.tsx +0 -44
- package/src/features/pmProgress/components/chart/components/layers/SliceBackgroundColor.tsx +0 -11
- package/src/features/pmProgress/components/chart/components/layers/SliceFillColor.tsx +0 -88
- package/src/features/pmProgress/components/chart/model/ArcPatternGenerator.ts +0 -48
- package/src/features/pmProgress/components/chart/model/PieChartManager.ts +0 -20
- package/src/features/pmProgress/components/chart/model/SliceHighlight.ts +0 -17
- package/src/features/pmProgress/components/chart/model/SliceShapeGenerator.ts +0 -90
- package/src/features/pmProgress/components/content/PmContent.tsx +0 -44
- package/src/features/pmProgress/components/header/PmProgressHeader.tsx +0 -211
- package/src/features/pmProgress/components/header/StartButton.tsx +0 -141
- package/src/features/pmProgress/components/insights/PmInsights.tsx +0 -65
- package/src/features/pmProgress/components/insights/PmTimeframeStats.tsx +0 -88
- package/src/features/pmProgress/components/insights/StatsCard.tsx +0 -54
- package/src/features/pmProgress/components/list/Fluency.tsx +0 -69
- package/src/features/pmProgress/components/list/ListCard.tsx +0 -230
- package/src/features/pmProgress/components/list/ListItem.tsx +0 -161
- package/src/features/pmProgress/components/list/PmDomainList.tsx +0 -76
- package/src/features/pmProgress/components/locked/PmStatusOverlay.tsx +0 -101
- package/src/features/pmProgress/components/recs/PmTeacherRecs.tsx +0 -127
- package/src/features/pmProgress/components/standard/StandardTag.tsx +0 -182
- package/src/features/pmProgress/context/PmProgressContext.tsx +0 -25
- package/src/features/pmProgress/index.ts +0 -6
- package/src/features/pmProgress/model/PmHighlightModel.ts +0 -11
- package/src/features/pmProgress/model/PmInsightsModel.ts +0 -23
- package/src/features/pmProgress/model/PmProgressApi.ts +0 -34
- package/src/features/pmProgress/model/PmProgressModel.ts +0 -48
- package/src/features/pmProgress/model/PmRecommendationsModel.ts +0 -47
- package/src/features/pmProgress/model/PmSolvingFlowModel.ts +0 -134
- package/src/features/pmProgress/model/PmTreeModel.ts +0 -163
- package/src/features/pmProgress/shared/TreeNormalizer.ts +0 -64
- package/src/features/pmProgress/shared/pmProgress.constants.ts +0 -98
- package/src/features/pmProgress/shared/pmProgress.helpers.ts +0 -273
- package/src/features/pmProgress/shared/pmProgress.types.ts +0 -218
- package/src/shared/icons/PentagonIcon.tsx +0 -17
- package/src/shared/icons/SketchArrowRight.tsx +0 -18
- package/src/shared/icons/SliceDiamondIcon.tsx +0 -16
- package/src/shared/icons/StarIcon.tsx +0 -17
- package/src/shared/icons/TimerIcon.tsx +0 -21
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
import React, { useState } from 'react'
|
|
2
|
-
import { ActivityIndicator, View, Pressable, StyleSheet, Text } from 'react-native'
|
|
3
|
-
import {
|
|
4
|
-
ArrowRightIcon,
|
|
5
|
-
CheckIcon,
|
|
6
|
-
COLORS,
|
|
7
|
-
FONT_FAMILY,
|
|
8
|
-
HeadingVariants,
|
|
9
|
-
Typography,
|
|
10
|
-
} from '@magmamath/react-native-ui'
|
|
11
|
-
import { useText } from '../../../../shared/translation'
|
|
12
|
-
|
|
13
|
-
const FINISHED_BG = '#EFFBF5'
|
|
14
|
-
const FINISHED_TITLE = '#00804A'
|
|
15
|
-
const FINISHED_SUBTITLE = '#29A96F'
|
|
16
|
-
const FINISHED_ICON = '#5CD497'
|
|
17
|
-
const CARD_HEIGHT = 52
|
|
18
|
-
const ICON_SIZE = 25
|
|
19
|
-
const SUBTITLE_FONT_SIZE = 10
|
|
20
|
-
const SUBTITLE_LINE_HEIGHT = 14
|
|
21
|
-
|
|
22
|
-
export type ListItemProps = {
|
|
23
|
-
title: string
|
|
24
|
-
subtitle: string
|
|
25
|
-
skillsLeft: number
|
|
26
|
-
isFinished?: boolean
|
|
27
|
-
isLoading?: boolean
|
|
28
|
-
onPress?: () => void
|
|
29
|
-
isSkillsLeftHidden?: boolean
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export const ListItem = ({
|
|
33
|
-
title,
|
|
34
|
-
subtitle,
|
|
35
|
-
skillsLeft,
|
|
36
|
-
isFinished = false,
|
|
37
|
-
isLoading = false,
|
|
38
|
-
onPress,
|
|
39
|
-
isSkillsLeftHidden = false,
|
|
40
|
-
}: ListItemProps) => {
|
|
41
|
-
const t = useText()
|
|
42
|
-
const [isHovered, setIsHovered] = useState(false)
|
|
43
|
-
const isSkillsLeftVisible = skillsLeft > 0 && !isFinished && !isSkillsLeftHidden
|
|
44
|
-
|
|
45
|
-
return (
|
|
46
|
-
<Pressable
|
|
47
|
-
onPress={onPress}
|
|
48
|
-
disabled={isLoading}
|
|
49
|
-
style={[
|
|
50
|
-
styles.card,
|
|
51
|
-
isFinished && styles.finished,
|
|
52
|
-
isHovered && styles.hovered,
|
|
53
|
-
isLoading && styles.loading,
|
|
54
|
-
]}
|
|
55
|
-
onHoverIn={() => setIsHovered(true)}
|
|
56
|
-
onHoverOut={() => setIsHovered(false)}
|
|
57
|
-
>
|
|
58
|
-
<View style={styles.content}>
|
|
59
|
-
<Typography
|
|
60
|
-
variant={HeadingVariants.H10}
|
|
61
|
-
style={[styles.title, isFinished && styles.titleFinished]}
|
|
62
|
-
numberOfLines={1}
|
|
63
|
-
>
|
|
64
|
-
{title}
|
|
65
|
-
</Typography>
|
|
66
|
-
<Typography
|
|
67
|
-
style={[styles.subtitle, isFinished && styles.subtitleFinished]}
|
|
68
|
-
numberOfLines={1}
|
|
69
|
-
>
|
|
70
|
-
{subtitle}
|
|
71
|
-
</Typography>
|
|
72
|
-
</View>
|
|
73
|
-
<View style={styles.trailing}>
|
|
74
|
-
{isLoading ? (
|
|
75
|
-
<View style={styles.loadingIndicator}>
|
|
76
|
-
<Text>{t('pmProgress.loading')} </Text>
|
|
77
|
-
<ActivityIndicator size="small" color={COLORS.NEUTRAL_7} />
|
|
78
|
-
</View>
|
|
79
|
-
) : (
|
|
80
|
-
<>
|
|
81
|
-
{isSkillsLeftVisible && (
|
|
82
|
-
<Typography variant={HeadingVariants.H10} style={styles.skills}>
|
|
83
|
-
{skillsLeft}{' '}
|
|
84
|
-
{skillsLeft === 1 ? t('pmProgress.skillLeft') : t('pmProgress.skillsLeft')}
|
|
85
|
-
</Typography>
|
|
86
|
-
)}
|
|
87
|
-
<View style={styles.icon}>
|
|
88
|
-
{isFinished ? (
|
|
89
|
-
<CheckIcon color={FINISHED_ICON} />
|
|
90
|
-
) : (
|
|
91
|
-
<ArrowRightIcon color={COLORS.NEUTRAL_9} />
|
|
92
|
-
)}
|
|
93
|
-
</View>
|
|
94
|
-
</>
|
|
95
|
-
)}
|
|
96
|
-
</View>
|
|
97
|
-
</Pressable>
|
|
98
|
-
)
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
const styles = StyleSheet.create({
|
|
102
|
-
card: {
|
|
103
|
-
flexDirection: 'row',
|
|
104
|
-
alignItems: 'center',
|
|
105
|
-
height: CARD_HEIGHT,
|
|
106
|
-
paddingLeft: 32,
|
|
107
|
-
paddingRight: 16,
|
|
108
|
-
backgroundColor: 'white',
|
|
109
|
-
borderRadius: 12,
|
|
110
|
-
gap: 8,
|
|
111
|
-
boxShadow: '0px 0px 1px 0px #33333366, 0px 1px 3px 0px #3333331A',
|
|
112
|
-
},
|
|
113
|
-
finished: {
|
|
114
|
-
backgroundColor: FINISHED_BG,
|
|
115
|
-
boxShadow: '0px 0px 1px 0px #33333366, 0px 1px 3px 0px #3333331A',
|
|
116
|
-
},
|
|
117
|
-
hovered: {
|
|
118
|
-
backgroundColor: '#FAFAFB',
|
|
119
|
-
boxShadow:
|
|
120
|
-
'0px 0px 1px 0px #33333366, 0px 1px 3px 0px #3333331A, 4px 4px 10px rgba(51, 51, 51, 0.15)',
|
|
121
|
-
},
|
|
122
|
-
content: {
|
|
123
|
-
flex: 1,
|
|
124
|
-
},
|
|
125
|
-
title: {
|
|
126
|
-
color: COLORS.NEUTRAL_9,
|
|
127
|
-
},
|
|
128
|
-
titleFinished: {
|
|
129
|
-
color: FINISHED_TITLE,
|
|
130
|
-
},
|
|
131
|
-
subtitle: {
|
|
132
|
-
color: COLORS.NEUTRAL_7,
|
|
133
|
-
fontSize: SUBTITLE_FONT_SIZE,
|
|
134
|
-
fontFamily: FONT_FAMILY.buenosAires,
|
|
135
|
-
lineHeight: SUBTITLE_LINE_HEIGHT,
|
|
136
|
-
},
|
|
137
|
-
subtitleFinished: {
|
|
138
|
-
color: FINISHED_SUBTITLE,
|
|
139
|
-
},
|
|
140
|
-
trailing: {
|
|
141
|
-
flexDirection: 'row',
|
|
142
|
-
alignItems: 'center',
|
|
143
|
-
gap: 8,
|
|
144
|
-
},
|
|
145
|
-
skills: {
|
|
146
|
-
color: COLORS.NEUTRAL_9,
|
|
147
|
-
},
|
|
148
|
-
icon: {
|
|
149
|
-
width: ICON_SIZE,
|
|
150
|
-
height: ICON_SIZE,
|
|
151
|
-
justifyContent: 'center',
|
|
152
|
-
alignItems: 'center',
|
|
153
|
-
},
|
|
154
|
-
loading: {
|
|
155
|
-
opacity: 0.5,
|
|
156
|
-
},
|
|
157
|
-
loadingIndicator: {
|
|
158
|
-
flexDirection: 'row',
|
|
159
|
-
gap: 8,
|
|
160
|
-
},
|
|
161
|
-
})
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import { StyleSheet, View } from 'react-native'
|
|
3
|
-
import { useUnit } from 'effector-react'
|
|
4
|
-
import { BORDER_RADIUS, COLORS, ScrollableList, SPACING } from '@magmamath/react-native-ui'
|
|
5
|
-
import { ListCard } from './ListCard'
|
|
6
|
-
import { Fluency } from './Fluency'
|
|
7
|
-
import { SliceDiamondIcon } from '../../../../shared/icons/SliceDiamondIcon'
|
|
8
|
-
import { usePmProgress } from '../../context/PmProgressContext'
|
|
9
|
-
import { isFluencyDomain } from '../../shared/pmProgress.helpers'
|
|
10
|
-
import { SolvingFlow } from '../../shared/pmProgress.constants'
|
|
11
|
-
|
|
12
|
-
export const PmDomainList = () => {
|
|
13
|
-
const { model, onStandardPress } = usePmProgress()
|
|
14
|
-
const domains = useUnit(model.tree.$domains)
|
|
15
|
-
const expandedId = useUnit(model.highlight.$expandedId)
|
|
16
|
-
const hoveredId = useUnit(model.highlight.$hoveredId)
|
|
17
|
-
const loaderOpeningId = useUnit(model.solving.$loaderOpeningId)
|
|
18
|
-
|
|
19
|
-
const fluency = domains.find(({ title }) => isFluencyDomain(title))
|
|
20
|
-
const list = fluency ? domains.filter(({ title }) => !isFluencyDomain(title)) : domains
|
|
21
|
-
|
|
22
|
-
return (
|
|
23
|
-
<View style={styles.container}>
|
|
24
|
-
<ScrollableList
|
|
25
|
-
data={list}
|
|
26
|
-
hideShadow
|
|
27
|
-
scrollbarWidth={8}
|
|
28
|
-
style={styles.scroll}
|
|
29
|
-
ListFooterComponent={<Fluency data={fluency} />}
|
|
30
|
-
keyExtractor={(item) => item.domainId}
|
|
31
|
-
renderItem={({ item, index }) => (
|
|
32
|
-
<ListCard
|
|
33
|
-
title={item.title}
|
|
34
|
-
items={item.standards.map((standard) => ({ ...standard, id: standard.standardId }))}
|
|
35
|
-
progress={item.scorePercentage}
|
|
36
|
-
color={item.color}
|
|
37
|
-
onPress={() => model.highlight.expand(item.domainId)}
|
|
38
|
-
onHoverIn={() => model.highlight.hover(item.domainId)}
|
|
39
|
-
onHoverOut={() => model.highlight.hover(null)}
|
|
40
|
-
onItemPress={async (item) => {
|
|
41
|
-
try {
|
|
42
|
-
model.solving.setLoaderOpeningId(item.id)
|
|
43
|
-
const skill = await model.solving.start({
|
|
44
|
-
type: SolvingFlow.STANDARD,
|
|
45
|
-
standardId: item.standardId,
|
|
46
|
-
})
|
|
47
|
-
await onStandardPress?.(skill)
|
|
48
|
-
} finally {
|
|
49
|
-
model.solving.setLoaderOpeningId(null)
|
|
50
|
-
}
|
|
51
|
-
}}
|
|
52
|
-
loadingItemId={loaderOpeningId}
|
|
53
|
-
isLast={index === list.length - 1}
|
|
54
|
-
isFirst={index === 0}
|
|
55
|
-
isExpanded={expandedId === item.domainId}
|
|
56
|
-
isHighlighted={hoveredId === item.domainId || expandedId === item.domainId}
|
|
57
|
-
icon={<SliceDiamondIcon color={item.color} />}
|
|
58
|
-
/>
|
|
59
|
-
)}
|
|
60
|
-
/>
|
|
61
|
-
</View>
|
|
62
|
-
)
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
const styles = StyleSheet.create({
|
|
66
|
-
container: {
|
|
67
|
-
flex: 1,
|
|
68
|
-
overflow: 'hidden',
|
|
69
|
-
padding: SPACING[200],
|
|
70
|
-
backgroundColor: COLORS.NEUTRAL_1,
|
|
71
|
-
borderRadius: BORDER_RADIUS[400],
|
|
72
|
-
},
|
|
73
|
-
scroll: {
|
|
74
|
-
flex: 1,
|
|
75
|
-
},
|
|
76
|
-
})
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react'
|
|
2
|
-
import { StyleSheet, View } from 'react-native'
|
|
3
|
-
import {
|
|
4
|
-
COLORS,
|
|
5
|
-
ErrorIcon,
|
|
6
|
-
HeadingVariants,
|
|
7
|
-
LockIcon,
|
|
8
|
-
SPACING,
|
|
9
|
-
Typography,
|
|
10
|
-
} from '@magmamath/react-native-ui'
|
|
11
|
-
import { useText } from '../../../../shared/translation'
|
|
12
|
-
import { TranslationKeys } from '../../../../shared/translation/types'
|
|
13
|
-
import { PmProgressStatus } from '../../shared/pmProgress.constants'
|
|
14
|
-
|
|
15
|
-
type EmptyStateVariant = {
|
|
16
|
-
icon: ReactNode
|
|
17
|
-
circleColor: string
|
|
18
|
-
titleKey: TranslationKeys
|
|
19
|
-
subtitleKey: TranslationKeys
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
const PM_EMPTY_STATE_VARIANTS: Record<PmProgressStatus, EmptyStateVariant> = {
|
|
23
|
-
[PmProgressStatus.LOCKED]: {
|
|
24
|
-
icon: <LockIcon color={COLORS.NEUTRAL_6} size={40} />,
|
|
25
|
-
circleColor: COLORS.NEUTRAL_2,
|
|
26
|
-
titleKey: 'pmProgress.allLockedTitle',
|
|
27
|
-
subtitleKey: 'pmProgress.allLockedSubtitle',
|
|
28
|
-
},
|
|
29
|
-
[PmProgressStatus.ERROR]: {
|
|
30
|
-
icon: <ErrorIcon color={COLORS.PRIMARY_RED} size={40} />,
|
|
31
|
-
circleColor: COLORS.RED_1,
|
|
32
|
-
titleKey: 'pmProgress.initErrorTitle',
|
|
33
|
-
subtitleKey: 'pmProgress.initErrorSubtitle',
|
|
34
|
-
},
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
type PmStatusOverlayProps = {
|
|
38
|
-
status: PmProgressStatus
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export const PmStatusOverlay = ({ status }: PmStatusOverlayProps) => {
|
|
42
|
-
const t = useText()
|
|
43
|
-
|
|
44
|
-
const variant = PM_EMPTY_STATE_VARIANTS[status]
|
|
45
|
-
if (!variant) return null
|
|
46
|
-
|
|
47
|
-
return (
|
|
48
|
-
<View style={styles.container}>
|
|
49
|
-
<View style={styles.content}>
|
|
50
|
-
<View style={[styles.iconCircle, { backgroundColor: variant.circleColor }]}>
|
|
51
|
-
{variant.icon}
|
|
52
|
-
</View>
|
|
53
|
-
<View style={styles.text}>
|
|
54
|
-
<Typography variant={HeadingVariants.H2} style={styles.title}>
|
|
55
|
-
{t(variant.titleKey)}
|
|
56
|
-
</Typography>
|
|
57
|
-
<Typography variant={HeadingVariants.H7} style={styles.subtitle}>
|
|
58
|
-
{t(variant.subtitleKey)}
|
|
59
|
-
</Typography>
|
|
60
|
-
</View>
|
|
61
|
-
</View>
|
|
62
|
-
</View>
|
|
63
|
-
)
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
const styles = StyleSheet.create({
|
|
67
|
-
container: {
|
|
68
|
-
flex: 1,
|
|
69
|
-
alignItems: 'center',
|
|
70
|
-
justifyContent: 'center',
|
|
71
|
-
},
|
|
72
|
-
content: {
|
|
73
|
-
alignItems: 'center',
|
|
74
|
-
gap: SPACING[500],
|
|
75
|
-
paddingBottom: SPACING[800],
|
|
76
|
-
},
|
|
77
|
-
iconCircle: {
|
|
78
|
-
width: 88,
|
|
79
|
-
height: 88,
|
|
80
|
-
borderRadius: 44,
|
|
81
|
-
alignItems: 'center',
|
|
82
|
-
justifyContent: 'center',
|
|
83
|
-
},
|
|
84
|
-
text: {
|
|
85
|
-
alignItems: 'center',
|
|
86
|
-
gap: SPACING[200],
|
|
87
|
-
maxWidth: 340,
|
|
88
|
-
},
|
|
89
|
-
title: {
|
|
90
|
-
color: COLORS.NEUTRAL_9,
|
|
91
|
-
textAlign: 'center',
|
|
92
|
-
fontSize: 24,
|
|
93
|
-
fontWeight: '500',
|
|
94
|
-
},
|
|
95
|
-
subtitle: {
|
|
96
|
-
color: COLORS.NEUTRAL_7,
|
|
97
|
-
textAlign: 'center',
|
|
98
|
-
fontSize: 16,
|
|
99
|
-
fontWeight: '400',
|
|
100
|
-
},
|
|
101
|
-
})
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import { StyleSheet, Text, View } from 'react-native'
|
|
3
|
-
import { ListCard } from '../list/ListCard'
|
|
4
|
-
import { PentagonIcon } from '../../../../shared/icons/PentagonIcon'
|
|
5
|
-
import {
|
|
6
|
-
BORDER_RADIUS,
|
|
7
|
-
Button,
|
|
8
|
-
ButtonSize,
|
|
9
|
-
ButtonVariant,
|
|
10
|
-
COLORS,
|
|
11
|
-
SPACING,
|
|
12
|
-
} from '@magmamath/react-native-ui'
|
|
13
|
-
import { useText } from '../../../../shared/translation'
|
|
14
|
-
import { useUnit, useStoreMap } from 'effector-react'
|
|
15
|
-
import { CustomDomain, OpeningLoaderId, SolvingFlow } from '../../shared/pmProgress.constants'
|
|
16
|
-
import { usePmProgress } from '../../context/PmProgressContext'
|
|
17
|
-
|
|
18
|
-
export const PmTeacherRecs = () => {
|
|
19
|
-
const t = useText()
|
|
20
|
-
const { model, onPracticePress, onTeacherRecommendationPress } = usePmProgress()
|
|
21
|
-
const expandedId = useUnit(model.highlight.$expandedId)
|
|
22
|
-
const loaderOpeningId = useUnit(model.solving.$loaderOpeningId)
|
|
23
|
-
|
|
24
|
-
const { total, recommendations } = useStoreMap(
|
|
25
|
-
model.recommendations.$teacher,
|
|
26
|
-
({ items, total }) => ({
|
|
27
|
-
total,
|
|
28
|
-
recommendations: items.map((skill) => ({
|
|
29
|
-
id: skill._id,
|
|
30
|
-
skillId: skill._id,
|
|
31
|
-
title: skill.nameTranslations,
|
|
32
|
-
subtitle: skill.shortDescriptionTranslations,
|
|
33
|
-
isCompleted: false,
|
|
34
|
-
skillsLeft: 0,
|
|
35
|
-
})),
|
|
36
|
-
}),
|
|
37
|
-
)
|
|
38
|
-
|
|
39
|
-
if (!recommendations.length) return null
|
|
40
|
-
|
|
41
|
-
return (
|
|
42
|
-
<View style={styles.container}>
|
|
43
|
-
<View style={styles.wrapper}>
|
|
44
|
-
<ListCard
|
|
45
|
-
title={t('pmProgress.teacherRecs')}
|
|
46
|
-
items={recommendations}
|
|
47
|
-
maxItems={3}
|
|
48
|
-
color={COLORS.PRIMARY_YELLOW}
|
|
49
|
-
expandedColor={COLORS.YELLOW_1}
|
|
50
|
-
onPress={() => model.highlight.expand(CustomDomain.TEACHER)}
|
|
51
|
-
onItemPress={async (item) => {
|
|
52
|
-
try {
|
|
53
|
-
model.solving.setLoaderOpeningId(item.id)
|
|
54
|
-
const skill = await model.solving.start({
|
|
55
|
-
type: SolvingFlow.TEACHER,
|
|
56
|
-
skillId: item.skillId,
|
|
57
|
-
})
|
|
58
|
-
await onPracticePress?.(skill)
|
|
59
|
-
} finally {
|
|
60
|
-
model.solving.setLoaderOpeningId(null)
|
|
61
|
-
}
|
|
62
|
-
}}
|
|
63
|
-
loadingItemId={loaderOpeningId}
|
|
64
|
-
isLast
|
|
65
|
-
isFirst
|
|
66
|
-
isSkillsLeftHidden
|
|
67
|
-
isExpanded={expandedId === CustomDomain.TEACHER}
|
|
68
|
-
isHighlighted={expandedId === CustomDomain.TEACHER}
|
|
69
|
-
icon={<PentagonIcon color={COLORS.PRIMARY_YELLOW} />}
|
|
70
|
-
rightContent={
|
|
71
|
-
<Button
|
|
72
|
-
onPress={async () => {
|
|
73
|
-
try {
|
|
74
|
-
model.solving.setLoaderOpeningId(OpeningLoaderId.PRACTICE_BUTTON)
|
|
75
|
-
const skill = await model.solving.start({ type: SolvingFlow.TEACHER })
|
|
76
|
-
await onTeacherRecommendationPress?.(skill)
|
|
77
|
-
} finally {
|
|
78
|
-
model.solving.setLoaderOpeningId(null)
|
|
79
|
-
}
|
|
80
|
-
}}
|
|
81
|
-
disabled={loaderOpeningId !== null}
|
|
82
|
-
isLoading={loaderOpeningId === OpeningLoaderId.PRACTICE_BUTTON}
|
|
83
|
-
size={ButtonSize.SMALL}
|
|
84
|
-
variant={ButtonVariant.SECONDARY}
|
|
85
|
-
>
|
|
86
|
-
{t('pmProgress.practiceButton')}
|
|
87
|
-
</Button>
|
|
88
|
-
}
|
|
89
|
-
/>
|
|
90
|
-
{recommendations.length > 0 && (
|
|
91
|
-
<View style={styles.badge}>
|
|
92
|
-
<Text style={styles.text}>{total}</Text>
|
|
93
|
-
</View>
|
|
94
|
-
)}
|
|
95
|
-
</View>
|
|
96
|
-
</View>
|
|
97
|
-
)
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
const styles = StyleSheet.create({
|
|
101
|
-
container: {
|
|
102
|
-
overflow: 'visible',
|
|
103
|
-
padding: SPACING[200],
|
|
104
|
-
borderRadius: BORDER_RADIUS[400],
|
|
105
|
-
backgroundColor: COLORS.NEUTRAL_1,
|
|
106
|
-
},
|
|
107
|
-
wrapper: {
|
|
108
|
-
position: 'relative',
|
|
109
|
-
},
|
|
110
|
-
badge: {
|
|
111
|
-
position: 'absolute',
|
|
112
|
-
top: -8,
|
|
113
|
-
right: -8,
|
|
114
|
-
width: 20,
|
|
115
|
-
height: 20,
|
|
116
|
-
backgroundColor: COLORS.PRIMARY_RED,
|
|
117
|
-
alignItems: 'center',
|
|
118
|
-
justifyContent: 'center',
|
|
119
|
-
borderRadius: '50%',
|
|
120
|
-
},
|
|
121
|
-
text: {
|
|
122
|
-
textAlign: 'center',
|
|
123
|
-
fontSize: 12,
|
|
124
|
-
fontWeight: '600',
|
|
125
|
-
color: COLORS.NEUTRAL_1,
|
|
126
|
-
},
|
|
127
|
-
})
|
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import { StyleSheet, View, Text } from 'react-native'
|
|
3
|
-
import { DomainColor, PmProgressModel } from '@magmamath/students-features'
|
|
4
|
-
import { SliceDiamondIcon } from '../../../../shared/icons/SliceDiamondIcon'
|
|
5
|
-
import { COLORS, FONT_FAMILY } from '@magmamath/react-native-ui'
|
|
6
|
-
import { usePmProgress } from '../../context/PmProgressContext'
|
|
7
|
-
import { useStoreMap } from 'effector-react'
|
|
8
|
-
|
|
9
|
-
type ColorPreset = {
|
|
10
|
-
background: string
|
|
11
|
-
titleColor: string
|
|
12
|
-
tagColor: string
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
const DOMAIN_COLOR_PRESETS: Record<DomainColor, ColorPreset> = {
|
|
16
|
-
[COLORS.PRIMARY_RED]: {
|
|
17
|
-
background: COLORS.RED_1,
|
|
18
|
-
titleColor: COLORS.RED_6,
|
|
19
|
-
tagColor: COLORS.PRIMARY_RED,
|
|
20
|
-
},
|
|
21
|
-
[COLORS.PRIMARY_MAGENTA]: {
|
|
22
|
-
background: COLORS.MAGENTA_1,
|
|
23
|
-
titleColor: COLORS.MAGENTA_6,
|
|
24
|
-
tagColor: COLORS.PRIMARY_MAGENTA,
|
|
25
|
-
},
|
|
26
|
-
[COLORS.PRIMARY_PURPLE]: {
|
|
27
|
-
background: COLORS.PURPLE_1,
|
|
28
|
-
titleColor: COLORS.PURPLE_6,
|
|
29
|
-
tagColor: COLORS.PRIMARY_PURPLE,
|
|
30
|
-
},
|
|
31
|
-
[COLORS.PRIMARY_INDIGO]: {
|
|
32
|
-
background: COLORS.INDIGO_1,
|
|
33
|
-
titleColor: COLORS.INDIGO_6,
|
|
34
|
-
tagColor: COLORS.PRIMARY_INDIGO,
|
|
35
|
-
},
|
|
36
|
-
[COLORS.PRIMARY_TURQUOISE]: {
|
|
37
|
-
background: COLORS.TURQUOISE_1,
|
|
38
|
-
titleColor: COLORS.TURQUOISE_6,
|
|
39
|
-
tagColor: COLORS.PRIMARY_TURQUOISE,
|
|
40
|
-
},
|
|
41
|
-
[COLORS.PRIMARY_GREEN]: {
|
|
42
|
-
background: COLORS.GREEN_1,
|
|
43
|
-
titleColor: COLORS.GREEN_6,
|
|
44
|
-
tagColor: COLORS.PRIMARY_GREEN,
|
|
45
|
-
},
|
|
46
|
-
[COLORS.PRIMARY_ORANGE]: {
|
|
47
|
-
background: COLORS.ORANGE_1,
|
|
48
|
-
titleColor: COLORS.ORANGE_6,
|
|
49
|
-
tagColor: COLORS.PRIMARY_ORANGE,
|
|
50
|
-
},
|
|
51
|
-
[COLORS.RED_4]: { background: COLORS.RED_1, titleColor: COLORS.RED_6, tagColor: COLORS.RED_4 },
|
|
52
|
-
[COLORS.MAGENTA_4]: {
|
|
53
|
-
background: COLORS.MAGENTA_1,
|
|
54
|
-
titleColor: COLORS.MAGENTA_6,
|
|
55
|
-
tagColor: COLORS.MAGENTA_4,
|
|
56
|
-
},
|
|
57
|
-
[COLORS.PURPLE_4]: {
|
|
58
|
-
background: COLORS.PURPLE_1,
|
|
59
|
-
titleColor: COLORS.PURPLE_6,
|
|
60
|
-
tagColor: COLORS.PURPLE_4,
|
|
61
|
-
},
|
|
62
|
-
[COLORS.INDIGO_4]: {
|
|
63
|
-
background: COLORS.INDIGO_1,
|
|
64
|
-
titleColor: COLORS.INDIGO_6,
|
|
65
|
-
tagColor: COLORS.INDIGO_4,
|
|
66
|
-
},
|
|
67
|
-
[COLORS.TURQUOISE_4]: {
|
|
68
|
-
background: COLORS.TURQUOISE_1,
|
|
69
|
-
titleColor: COLORS.TURQUOISE_6,
|
|
70
|
-
tagColor: COLORS.TURQUOISE_4,
|
|
71
|
-
},
|
|
72
|
-
[COLORS.GREEN_4]: {
|
|
73
|
-
background: COLORS.GREEN_1,
|
|
74
|
-
titleColor: COLORS.GREEN_6,
|
|
75
|
-
tagColor: COLORS.GREEN_4,
|
|
76
|
-
},
|
|
77
|
-
[COLORS.ORANGE_4]: {
|
|
78
|
-
background: COLORS.ORANGE_1,
|
|
79
|
-
titleColor: COLORS.ORANGE_6,
|
|
80
|
-
tagColor: COLORS.ORANGE_4,
|
|
81
|
-
},
|
|
82
|
-
[COLORS.RED_6]: { background: COLORS.RED_1, titleColor: COLORS.RED_6, tagColor: COLORS.RED_6 },
|
|
83
|
-
[COLORS.MAGENTA_6]: {
|
|
84
|
-
background: COLORS.MAGENTA_1,
|
|
85
|
-
titleColor: COLORS.MAGENTA_6,
|
|
86
|
-
tagColor: COLORS.MAGENTA_6,
|
|
87
|
-
},
|
|
88
|
-
[COLORS.PURPLE_6]: {
|
|
89
|
-
background: COLORS.PURPLE_1,
|
|
90
|
-
titleColor: COLORS.PURPLE_6,
|
|
91
|
-
tagColor: COLORS.PURPLE_6,
|
|
92
|
-
},
|
|
93
|
-
[COLORS.INDIGO_6]: {
|
|
94
|
-
background: COLORS.INDIGO_1,
|
|
95
|
-
titleColor: COLORS.INDIGO_6,
|
|
96
|
-
tagColor: COLORS.INDIGO_6,
|
|
97
|
-
},
|
|
98
|
-
[COLORS.TURQUOISE_6]: {
|
|
99
|
-
background: COLORS.TURQUOISE_1,
|
|
100
|
-
titleColor: COLORS.TURQUOISE_6,
|
|
101
|
-
tagColor: COLORS.TURQUOISE_6,
|
|
102
|
-
},
|
|
103
|
-
[COLORS.GREEN_6]: {
|
|
104
|
-
background: COLORS.GREEN_1,
|
|
105
|
-
titleColor: COLORS.GREEN_6,
|
|
106
|
-
tagColor: COLORS.GREEN_6,
|
|
107
|
-
},
|
|
108
|
-
[COLORS.ORANGE_6]: {
|
|
109
|
-
background: COLORS.ORANGE_1,
|
|
110
|
-
titleColor: COLORS.ORANGE_6,
|
|
111
|
-
tagColor: COLORS.ORANGE_6,
|
|
112
|
-
},
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
type StandardTagProps = {
|
|
116
|
-
skillId: string
|
|
117
|
-
model: PmProgressModel
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
export const StandardTag = ({ skillId, model }: StandardTagProps) => {
|
|
121
|
-
const standardInfo = useStoreMap({
|
|
122
|
-
store: model.tree.$domains,
|
|
123
|
-
keys: [skillId],
|
|
124
|
-
fn: (domains, [skillId]) => {
|
|
125
|
-
const domain = domains.find((d) => d.standards.some((s) => s.skillIds.includes(skillId)))
|
|
126
|
-
const standard = domain?.standards.find(({ skillIds }) => skillIds.includes(skillId))
|
|
127
|
-
if (!standard || !domain) return null
|
|
128
|
-
return { title: standard.title, tag: standard.subtitle, color: domain.color }
|
|
129
|
-
},
|
|
130
|
-
})
|
|
131
|
-
|
|
132
|
-
if (!standardInfo) return null
|
|
133
|
-
|
|
134
|
-
const preset = DOMAIN_COLOR_PRESETS[standardInfo.color as DomainColor]
|
|
135
|
-
|
|
136
|
-
return (
|
|
137
|
-
<View style={[styles.container, { backgroundColor: preset.background }]}>
|
|
138
|
-
<SliceDiamondIcon color={preset.tagColor} />
|
|
139
|
-
<View style={styles.textContainer}>
|
|
140
|
-
<Text numberOfLines={2} style={[styles.title, { color: preset.titleColor }]}>
|
|
141
|
-
{standardInfo.title}
|
|
142
|
-
</Text>
|
|
143
|
-
<Text numberOfLines={1} style={[styles.tag, { color: preset.tagColor }]}>
|
|
144
|
-
{standardInfo.tag}
|
|
145
|
-
</Text>
|
|
146
|
-
</View>
|
|
147
|
-
</View>
|
|
148
|
-
)
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
const styles = StyleSheet.create({
|
|
152
|
-
container: {
|
|
153
|
-
minWidth: 110,
|
|
154
|
-
maxWidth: 200,
|
|
155
|
-
paddingHorizontal: 8,
|
|
156
|
-
paddingVertical: 4,
|
|
157
|
-
borderRadius: 12,
|
|
158
|
-
flexDirection: 'row',
|
|
159
|
-
alignItems: 'center',
|
|
160
|
-
gap: 8,
|
|
161
|
-
alignSelf: 'flex-start',
|
|
162
|
-
shadowColor: '#333333',
|
|
163
|
-
shadowOffset: { width: 0, height: 1 },
|
|
164
|
-
shadowOpacity: 0.1,
|
|
165
|
-
shadowRadius: 3,
|
|
166
|
-
elevation: 2,
|
|
167
|
-
},
|
|
168
|
-
textContainer: {
|
|
169
|
-
flex: 1,
|
|
170
|
-
flexDirection: 'column',
|
|
171
|
-
justifyContent: 'center',
|
|
172
|
-
alignItems: 'flex-start',
|
|
173
|
-
},
|
|
174
|
-
title: {
|
|
175
|
-
fontSize: 13,
|
|
176
|
-
fontFamily: FONT_FAMILY.buenosAires,
|
|
177
|
-
},
|
|
178
|
-
tag: {
|
|
179
|
-
fontSize: 10,
|
|
180
|
-
fontFamily: FONT_FAMILY.buenosAires,
|
|
181
|
-
},
|
|
182
|
-
})
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { createContext, useContext } from 'react'
|
|
2
|
-
import { PmProgressModel } from '../model/PmProgressModel'
|
|
3
|
-
import { Skill, GradeLabelsMap } from '@magmamath/students-features'
|
|
4
|
-
|
|
5
|
-
export type PmProgressContextValue = {
|
|
6
|
-
model: PmProgressModel
|
|
7
|
-
customGradeLabels?: GradeLabelsMap
|
|
8
|
-
readOnly?: boolean
|
|
9
|
-
onStartPress?: (skill: Skill) => Promise<void>
|
|
10
|
-
onPracticePress?: (skill: Skill) => Promise<void>
|
|
11
|
-
onStandardPress?: (skill: Skill) => Promise<void>
|
|
12
|
-
onTeacherRecommendationPress?: (skill: Skill) => Promise<void>
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
const PmProgressContext = createContext<PmProgressContextValue | null>(null)
|
|
16
|
-
|
|
17
|
-
export function usePmProgress(): PmProgressContextValue {
|
|
18
|
-
const value = useContext(PmProgressContext)
|
|
19
|
-
if (!value) {
|
|
20
|
-
throw new Error('usePmProgress must be used within PmProgressProvider')
|
|
21
|
-
}
|
|
22
|
-
return value
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export const PmProgressProvider = PmProgressContext.Provider
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { PmProgress } from './PmProgress'
|
|
2
|
-
export { PmProgressModel } from './model/PmProgressModel'
|
|
3
|
-
export { StandardTag } from './components/standard/StandardTag'
|
|
4
|
-
export { TreeNormalizer } from './shared/TreeNormalizer'
|
|
5
|
-
export * from './shared/pmProgress.types'
|
|
6
|
-
export * from './shared/pmProgress.constants'
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { createEvent, createStore, restore } from 'effector'
|
|
2
|
-
|
|
3
|
-
export class PmHighlightModel {
|
|
4
|
-
public readonly expand = createEvent<string>()
|
|
5
|
-
public readonly hover = createEvent<string | null>()
|
|
6
|
-
|
|
7
|
-
public readonly $hoveredId = restore(this.hover, null)
|
|
8
|
-
public readonly $expandedId = createStore<string | null>(null).on(this.expand, (current, id) =>
|
|
9
|
-
current === id ? null : id,
|
|
10
|
-
)
|
|
11
|
-
}
|