@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,141 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useRef, useState } from 'react'
|
|
2
|
-
import { Animated, StyleSheet, View } from 'react-native'
|
|
3
|
-
import {
|
|
4
|
-
Button,
|
|
5
|
-
ButtonColor,
|
|
6
|
-
ButtonSize,
|
|
7
|
-
ButtonVariant,
|
|
8
|
-
COLORS,
|
|
9
|
-
HeadingVariants,
|
|
10
|
-
PlayIcon,
|
|
11
|
-
Typography,
|
|
12
|
-
} from '@magmamath/react-native-ui'
|
|
13
|
-
import { useText } from '../../../../shared/translation'
|
|
14
|
-
|
|
15
|
-
type Sizes = {
|
|
16
|
-
width: number
|
|
17
|
-
height: number
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
type StartButtonProps = {
|
|
21
|
-
onPress: () => void
|
|
22
|
-
disabled: boolean
|
|
23
|
-
isLoading: boolean
|
|
24
|
-
isActive: boolean
|
|
25
|
-
withPulsation?: boolean
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export const StartButton = ({
|
|
29
|
-
onPress,
|
|
30
|
-
disabled,
|
|
31
|
-
isLoading,
|
|
32
|
-
isActive,
|
|
33
|
-
withPulsation,
|
|
34
|
-
}: StartButtonProps) => {
|
|
35
|
-
const t = useText()
|
|
36
|
-
const [sizes, setSizes] = useState<Sizes | null>(null)
|
|
37
|
-
const [aspectRatio, setAspectRatio] = useState<number | null>(null)
|
|
38
|
-
const showPulsation = withPulsation && sizes && aspectRatio
|
|
39
|
-
|
|
40
|
-
const scaleAnimValue = useRef(new Animated.Value(0)).current
|
|
41
|
-
const fadeAnimValue = useRef(new Animated.Value(1)).current
|
|
42
|
-
|
|
43
|
-
const scaleAnimation = Animated.timing(scaleAnimValue, {
|
|
44
|
-
toValue: 1,
|
|
45
|
-
duration: 1000,
|
|
46
|
-
useNativeDriver: true,
|
|
47
|
-
})
|
|
48
|
-
|
|
49
|
-
const fadeOutAnimation = Animated.timing(fadeAnimValue, {
|
|
50
|
-
toValue: 0,
|
|
51
|
-
duration: 1000,
|
|
52
|
-
useNativeDriver: true,
|
|
53
|
-
})
|
|
54
|
-
|
|
55
|
-
const pulsationAnimation = Animated.loop(
|
|
56
|
-
Animated.sequence([scaleAnimation, Animated.delay(1000), fadeOutAnimation]),
|
|
57
|
-
)
|
|
58
|
-
|
|
59
|
-
useEffect(() => {
|
|
60
|
-
if (sizes && withPulsation) {
|
|
61
|
-
pulsationAnimation.start()
|
|
62
|
-
}
|
|
63
|
-
}, [sizes, withPulsation])
|
|
64
|
-
|
|
65
|
-
return (
|
|
66
|
-
<View
|
|
67
|
-
style={styles.container}
|
|
68
|
-
onLayout={(event) => {
|
|
69
|
-
setSizes({
|
|
70
|
-
width: event.nativeEvent.layout.width + 16,
|
|
71
|
-
height: event.nativeEvent.layout.height + 18,
|
|
72
|
-
})
|
|
73
|
-
setAspectRatio(event.nativeEvent.layout.width / event.nativeEvent.layout.height)
|
|
74
|
-
}}
|
|
75
|
-
>
|
|
76
|
-
{showPulsation && (
|
|
77
|
-
<Animated.View
|
|
78
|
-
style={[
|
|
79
|
-
styles.animatedBackground,
|
|
80
|
-
{
|
|
81
|
-
width: sizes.width,
|
|
82
|
-
height: sizes.height,
|
|
83
|
-
top: -6,
|
|
84
|
-
left: -8,
|
|
85
|
-
transform: [
|
|
86
|
-
{
|
|
87
|
-
scaleX: scaleAnimValue.interpolate({
|
|
88
|
-
inputRange: [0, 1],
|
|
89
|
-
outputRange: [aspectRatio / 10 > 0.7 ? 0.7 : aspectRatio / 10, 1],
|
|
90
|
-
}),
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
scaleY: scaleAnimValue.interpolate({
|
|
94
|
-
inputRange: [0, 1],
|
|
95
|
-
outputRange: [0, 1],
|
|
96
|
-
}),
|
|
97
|
-
},
|
|
98
|
-
],
|
|
99
|
-
opacity: fadeAnimValue,
|
|
100
|
-
},
|
|
101
|
-
]}
|
|
102
|
-
/>
|
|
103
|
-
)}
|
|
104
|
-
<Button
|
|
105
|
-
onPress={onPress}
|
|
106
|
-
disabled={disabled}
|
|
107
|
-
isLoading={isLoading}
|
|
108
|
-
isActive={isActive}
|
|
109
|
-
icon={<PlayIcon size={16} color={COLORS.NEUTRAL_1} />}
|
|
110
|
-
variant={ButtonVariant.PRIMARY}
|
|
111
|
-
size={ButtonSize.LARGE}
|
|
112
|
-
colorScheme={ButtonColor.YELLOW}
|
|
113
|
-
raiseLevel={6}
|
|
114
|
-
style={{ container: styles.startButton }}
|
|
115
|
-
>
|
|
116
|
-
<Typography variant={HeadingVariants.H6} style={styles.startButtonText}>
|
|
117
|
-
{t('pmProgress.startButton')}
|
|
118
|
-
</Typography>
|
|
119
|
-
</Button>
|
|
120
|
-
</View>
|
|
121
|
-
)
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
const styles = StyleSheet.create({
|
|
125
|
-
container: {
|
|
126
|
-
marginRight: 8,
|
|
127
|
-
},
|
|
128
|
-
startButton: {
|
|
129
|
-
minWidth: 145,
|
|
130
|
-
},
|
|
131
|
-
startButtonText: {
|
|
132
|
-
fontWeight: '700',
|
|
133
|
-
textTransform: 'uppercase',
|
|
134
|
-
color: COLORS.NEUTRAL_1,
|
|
135
|
-
},
|
|
136
|
-
animatedBackground: {
|
|
137
|
-
backgroundColor: '#FFBE4E66',
|
|
138
|
-
position: 'absolute',
|
|
139
|
-
borderRadius: 50,
|
|
140
|
-
},
|
|
141
|
-
})
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import React, { useMemo, useState } from 'react'
|
|
2
|
-
import { useStoreMap } from 'effector-react'
|
|
3
|
-
import { LayoutChangeEvent, StyleSheet, View } from 'react-native'
|
|
4
|
-
import { BORDER_RADIUS, COLORS, SPACING } from '@magmamath/react-native-ui'
|
|
5
|
-
import { PracticeProgressPieChart } from '../chart/components/PracticeProgressPieChart'
|
|
6
|
-
import { PmTimeframeStats } from './PmTimeframeStats'
|
|
7
|
-
import { usePmProgress } from '../../context/PmProgressContext'
|
|
8
|
-
import { createChartConfig } from '../../shared/pmProgress.helpers'
|
|
9
|
-
import {
|
|
10
|
-
EMPTY_PIE_CHART_DATA,
|
|
11
|
-
MAX_PIE_CHART_SIZE,
|
|
12
|
-
STATS_MAX_HEIGHT,
|
|
13
|
-
} from '../../shared/pmProgress.constants'
|
|
14
|
-
|
|
15
|
-
export const PmInsights = () => {
|
|
16
|
-
const { model } = usePmProgress()
|
|
17
|
-
const [chartSize, setChartSize] = useState(MAX_PIE_CHART_SIZE)
|
|
18
|
-
const chartData = useStoreMap(model.tree.$domains, (domains) =>
|
|
19
|
-
domains.map((domain) => ({
|
|
20
|
-
value: 1,
|
|
21
|
-
fillPercent: Math.round(domain.scorePercentage),
|
|
22
|
-
fillColor: domain.color,
|
|
23
|
-
borderColor: domain.borderColor,
|
|
24
|
-
backgroundColor: domain.backgroundColor,
|
|
25
|
-
})),
|
|
26
|
-
)
|
|
27
|
-
|
|
28
|
-
const chartConfig = useMemo(() => {
|
|
29
|
-
const size = Math.max(0, chartSize - SPACING[400])
|
|
30
|
-
return createChartConfig(size)
|
|
31
|
-
}, [chartSize])
|
|
32
|
-
|
|
33
|
-
const measureLayout = (event: LayoutChangeEvent) => {
|
|
34
|
-
const height = event.nativeEvent.layout.height
|
|
35
|
-
const size = Math.min(height - STATS_MAX_HEIGHT - SPACING[800], MAX_PIE_CHART_SIZE)
|
|
36
|
-
setChartSize(size)
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
return (
|
|
40
|
-
<View style={styles.container} onLayout={measureLayout}>
|
|
41
|
-
<View style={[styles.chart, { width: chartSize, height: chartSize }]}>
|
|
42
|
-
<PracticeProgressPieChart
|
|
43
|
-
data={chartData.length > 0 ? chartData : EMPTY_PIE_CHART_DATA}
|
|
44
|
-
config={chartConfig}
|
|
45
|
-
/>
|
|
46
|
-
</View>
|
|
47
|
-
<PmTimeframeStats />
|
|
48
|
-
</View>
|
|
49
|
-
)
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
const styles = StyleSheet.create({
|
|
53
|
-
container: {
|
|
54
|
-
height: '100%',
|
|
55
|
-
},
|
|
56
|
-
chart: {
|
|
57
|
-
alignItems: 'center',
|
|
58
|
-
justifyContent: 'center',
|
|
59
|
-
backgroundColor: COLORS.NEUTRAL_1,
|
|
60
|
-
borderRadius: BORDER_RADIUS[250],
|
|
61
|
-
padding: SPACING[400],
|
|
62
|
-
marginBottom: SPACING[400],
|
|
63
|
-
marginTop: SPACING[400],
|
|
64
|
-
},
|
|
65
|
-
})
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import { StyleSheet, View } from 'react-native'
|
|
3
|
-
import {
|
|
4
|
-
COLORS,
|
|
5
|
-
SelectGroup,
|
|
6
|
-
SelectOptionColor,
|
|
7
|
-
SelectOptionProps,
|
|
8
|
-
SPACING,
|
|
9
|
-
} from '@magmamath/react-native-ui'
|
|
10
|
-
import { StatsCard } from './StatsCard'
|
|
11
|
-
import { StarIcon } from '../../../../shared/icons/StarIcon'
|
|
12
|
-
import { TimerIcon } from '../../../../shared/icons/TimerIcon'
|
|
13
|
-
import { BORDER_RADIUS } from '@magmamath/react-native-ui'
|
|
14
|
-
import { useText } from '../../../../shared/translation'
|
|
15
|
-
import { useUnit } from 'effector-react'
|
|
16
|
-
import { formatTime } from '../../shared/pmProgress.helpers'
|
|
17
|
-
import { InsightsTimeframe, STATS_MAX_HEIGHT } from '../../shared/pmProgress.constants'
|
|
18
|
-
import { usePmProgress } from '../../context/PmProgressContext'
|
|
19
|
-
|
|
20
|
-
export const PmTimeframeStats = () => {
|
|
21
|
-
const t = useText()
|
|
22
|
-
const { model } = usePmProgress()
|
|
23
|
-
const timeframe = useUnit(model.insights.$timeframe)
|
|
24
|
-
const insights = useUnit(model.insights.$insights)
|
|
25
|
-
|
|
26
|
-
const OPTIONS: SelectOptionProps[] = [
|
|
27
|
-
{ key: InsightsTimeframe.WEEK, title: t('pmProgress.thisWeek') },
|
|
28
|
-
{ key: InsightsTimeframe.LAST_WEEK, title: t('pmProgress.lastWeek') },
|
|
29
|
-
{ key: InsightsTimeframe.ALL, title: t('pmProgress.allTime') },
|
|
30
|
-
]
|
|
31
|
-
|
|
32
|
-
return (
|
|
33
|
-
<View style={styles.container}>
|
|
34
|
-
<View style={styles.content}>
|
|
35
|
-
<View style={styles.cards}>
|
|
36
|
-
<StatsCard
|
|
37
|
-
value={insights?.numberOfStars ?? 0}
|
|
38
|
-
label={t('pmProgress.stars')}
|
|
39
|
-
color={COLORS.PRIMARY_YELLOW}
|
|
40
|
-
icon={<StarIcon />}
|
|
41
|
-
/>
|
|
42
|
-
<StatsCard
|
|
43
|
-
value={formatTime(insights?.timeInPracticeMs ?? 0)}
|
|
44
|
-
label={t('pmProgress.time')}
|
|
45
|
-
color={COLORS.PRIMARY_PURPLE}
|
|
46
|
-
iconStyle={styles.timeIcon}
|
|
47
|
-
icon={<TimerIcon />}
|
|
48
|
-
/>
|
|
49
|
-
</View>
|
|
50
|
-
|
|
51
|
-
<SelectGroup
|
|
52
|
-
color={SelectOptionColor.GREY}
|
|
53
|
-
options={OPTIONS}
|
|
54
|
-
selectedOptions={OPTIONS.filter(({ key }) => key === timeframe)}
|
|
55
|
-
onOptionChange={({ key }) => model.insights.setTimeframe(key as InsightsTimeframe)}
|
|
56
|
-
/>
|
|
57
|
-
</View>
|
|
58
|
-
</View>
|
|
59
|
-
)
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
const styles = StyleSheet.create({
|
|
63
|
-
container: {
|
|
64
|
-
maxHeight: STATS_MAX_HEIGHT,
|
|
65
|
-
height: '100%',
|
|
66
|
-
padding: SPACING[200],
|
|
67
|
-
backgroundColor: COLORS.NEUTRAL_1,
|
|
68
|
-
borderRadius: BORDER_RADIUS[300],
|
|
69
|
-
shadowColor: COLORS.NEUTRAL_9,
|
|
70
|
-
shadowOffset: { width: 0, height: 1 },
|
|
71
|
-
shadowOpacity: 0.1,
|
|
72
|
-
shadowRadius: 3,
|
|
73
|
-
elevation: 2,
|
|
74
|
-
},
|
|
75
|
-
content: {
|
|
76
|
-
gap: SPACING[100],
|
|
77
|
-
marginBottom: 4,
|
|
78
|
-
},
|
|
79
|
-
cards: {
|
|
80
|
-
flexDirection: 'row',
|
|
81
|
-
justifyContent: 'space-between',
|
|
82
|
-
gap: SPACING[300],
|
|
83
|
-
},
|
|
84
|
-
timeIcon: {
|
|
85
|
-
paddingBottom: 2,
|
|
86
|
-
paddingLeft: 2,
|
|
87
|
-
},
|
|
88
|
-
})
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react'
|
|
2
|
-
import { View, StyleSheet, Text, ViewStyle } from 'react-native'
|
|
3
|
-
import { COLORS, FONT_FAMILY } from '@magmamath/react-native-ui'
|
|
4
|
-
|
|
5
|
-
type StatsCardProps = {
|
|
6
|
-
value: number | string
|
|
7
|
-
label: string
|
|
8
|
-
color: string
|
|
9
|
-
icon: ReactNode
|
|
10
|
-
iconStyle?: ViewStyle
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export const StatsCard = ({ value, label, color, icon, iconStyle }: StatsCardProps) => {
|
|
14
|
-
return (
|
|
15
|
-
<View style={[styles.card, { borderColor: color }]}>
|
|
16
|
-
<View style={[styles.iconContainer, { backgroundColor: color }, iconStyle]}>{icon}</View>
|
|
17
|
-
<View>
|
|
18
|
-
<Text style={[styles.value, { color }]}>{value}</Text>
|
|
19
|
-
<Text style={styles.label}>{label}</Text>
|
|
20
|
-
</View>
|
|
21
|
-
</View>
|
|
22
|
-
)
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
const styles = StyleSheet.create({
|
|
26
|
-
card: {
|
|
27
|
-
flex: 1,
|
|
28
|
-
height: 65,
|
|
29
|
-
alignItems: 'center',
|
|
30
|
-
flexDirection: 'row',
|
|
31
|
-
borderRadius: 12,
|
|
32
|
-
borderWidth: 4,
|
|
33
|
-
padding: 8,
|
|
34
|
-
gap: 8,
|
|
35
|
-
},
|
|
36
|
-
iconContainer: {
|
|
37
|
-
width: 42,
|
|
38
|
-
height: 42,
|
|
39
|
-
alignItems: 'center',
|
|
40
|
-
justifyContent: 'center',
|
|
41
|
-
borderRadius: 100,
|
|
42
|
-
},
|
|
43
|
-
value: {
|
|
44
|
-
fontSize: 32,
|
|
45
|
-
fontWeight: '700',
|
|
46
|
-
fontFamily: FONT_FAMILY.buenosAires,
|
|
47
|
-
},
|
|
48
|
-
label: {
|
|
49
|
-
color: COLORS.NEUTRAL_8,
|
|
50
|
-
fontSize: 12,
|
|
51
|
-
fontFamily: FONT_FAMILY.buenosAires,
|
|
52
|
-
top: -6,
|
|
53
|
-
},
|
|
54
|
-
})
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import { StyleSheet, View } from 'react-native'
|
|
3
|
-
import { ListCard } from './ListCard'
|
|
4
|
-
import { COLORS, SPACING } from '@magmamath/react-native-ui'
|
|
5
|
-
import { SliceDiamondIcon } from '../../../../shared/icons/SliceDiamondIcon'
|
|
6
|
-
import { useText } from '../../../../shared/translation'
|
|
7
|
-
import { useUnit } from 'effector-react'
|
|
8
|
-
import { SolvingFlow } from '../../shared/pmProgress.constants'
|
|
9
|
-
import { Domain } from '../../shared/pmProgress.types'
|
|
10
|
-
import { usePmProgress } from '../../context/PmProgressContext'
|
|
11
|
-
|
|
12
|
-
type FluencyProps = {
|
|
13
|
-
data: Domain | undefined
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export const Fluency = ({ data }: FluencyProps) => {
|
|
17
|
-
const t = useText()
|
|
18
|
-
const { model, onStandardPress } = usePmProgress()
|
|
19
|
-
const expandedId = useUnit(model.highlight.$expandedId)
|
|
20
|
-
const hoveredId = useUnit(model.highlight.$hoveredId)
|
|
21
|
-
const loaderOpeningId = useUnit(model.solving.$loaderOpeningId)
|
|
22
|
-
|
|
23
|
-
if (!data) return null
|
|
24
|
-
|
|
25
|
-
return (
|
|
26
|
-
<View style={styles.container}>
|
|
27
|
-
<View style={styles.separator} />
|
|
28
|
-
<ListCard
|
|
29
|
-
title={t('pmProgress.fluency')}
|
|
30
|
-
items={data.standards.map((standard) => ({ ...standard, id: standard.standardId }))}
|
|
31
|
-
progress={data.scorePercentage}
|
|
32
|
-
color={COLORS.PRIMARY_ORANGE}
|
|
33
|
-
onPress={() => model.highlight.expand(data.domainId)}
|
|
34
|
-
onHoverIn={() => model.highlight.hover(data.domainId)}
|
|
35
|
-
onHoverOut={() => model.highlight.hover(null)}
|
|
36
|
-
onItemPress={async (item) => {
|
|
37
|
-
try {
|
|
38
|
-
model.solving.setLoaderOpeningId(item.id)
|
|
39
|
-
const skill = await model.solving.start({
|
|
40
|
-
type: SolvingFlow.STANDARD,
|
|
41
|
-
standardId: item.standardId,
|
|
42
|
-
})
|
|
43
|
-
await onStandardPress?.(skill)
|
|
44
|
-
} finally {
|
|
45
|
-
model.solving.setLoaderOpeningId(null)
|
|
46
|
-
}
|
|
47
|
-
}}
|
|
48
|
-
loadingItemId={loaderOpeningId}
|
|
49
|
-
isFirst
|
|
50
|
-
isLast
|
|
51
|
-
isExpanded={expandedId === data.domainId}
|
|
52
|
-
isHighlighted={hoveredId === data.domainId || expandedId === data.domainId}
|
|
53
|
-
icon={<SliceDiamondIcon color={COLORS.PRIMARY_ORANGE} />}
|
|
54
|
-
/>
|
|
55
|
-
</View>
|
|
56
|
-
)
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
const styles = StyleSheet.create({
|
|
60
|
-
container: {
|
|
61
|
-
marginBottom: SPACING[800],
|
|
62
|
-
},
|
|
63
|
-
separator: {
|
|
64
|
-
height: 1,
|
|
65
|
-
marginHorizontal: SPACING[100],
|
|
66
|
-
marginVertical: SPACING[200],
|
|
67
|
-
backgroundColor: COLORS.NEUTRAL_4,
|
|
68
|
-
},
|
|
69
|
-
})
|
|
@@ -1,230 +0,0 @@
|
|
|
1
|
-
import React, { useState } from 'react'
|
|
2
|
-
import { Pressable, View, StyleSheet } from 'react-native'
|
|
3
|
-
import {
|
|
4
|
-
BORDER_RADIUS,
|
|
5
|
-
CaretDownIcon,
|
|
6
|
-
CaretRightIcon,
|
|
7
|
-
COLORS,
|
|
8
|
-
HeadingVariants,
|
|
9
|
-
SPACING,
|
|
10
|
-
Typography,
|
|
11
|
-
} from '@magmamath/react-native-ui'
|
|
12
|
-
import { ListItem } from './ListItem'
|
|
13
|
-
import { useText } from '../../../../shared/translation'
|
|
14
|
-
const HEADER_HEIGHT = 60
|
|
15
|
-
const PROGRESS_BAR_WIDTH = 50
|
|
16
|
-
const PROGRESS_BAR_HEIGHT = 10
|
|
17
|
-
|
|
18
|
-
export type ListCardItem = {
|
|
19
|
-
id: string
|
|
20
|
-
title: string
|
|
21
|
-
subtitle: string
|
|
22
|
-
isCompleted: boolean
|
|
23
|
-
skillsLeft: number
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
function getVisibleItems<T>(items: T[], maxItems?: number) {
|
|
27
|
-
const visible = maxItems != null ? items.slice(0, maxItems) : items
|
|
28
|
-
const remainingCount = maxItems != null ? Math.max(0, items.length - maxItems) : 0
|
|
29
|
-
return { visible, remainingCount }
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
type ListCardProps<T extends ListCardItem> = {
|
|
33
|
-
title: string
|
|
34
|
-
icon: React.ReactElement
|
|
35
|
-
color: string
|
|
36
|
-
items: T[]
|
|
37
|
-
onItemPress?: (item: T) => void
|
|
38
|
-
isExpanded?: boolean
|
|
39
|
-
onPress?: () => void
|
|
40
|
-
onHoverIn?: () => void
|
|
41
|
-
onHoverOut?: () => void
|
|
42
|
-
progress?: number
|
|
43
|
-
rightContent?: React.ReactNode
|
|
44
|
-
isFirst?: boolean
|
|
45
|
-
isLast?: boolean
|
|
46
|
-
maxItems?: number
|
|
47
|
-
expandedColor?: string
|
|
48
|
-
isSkillsLeftHidden?: boolean
|
|
49
|
-
isHighlighted?: boolean
|
|
50
|
-
loadingItemId?: string | null
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export const ListCard = <T extends ListCardItem>({
|
|
54
|
-
title,
|
|
55
|
-
icon,
|
|
56
|
-
color,
|
|
57
|
-
items,
|
|
58
|
-
isExpanded = false,
|
|
59
|
-
isHighlighted = false,
|
|
60
|
-
onPress,
|
|
61
|
-
onHoverIn,
|
|
62
|
-
onHoverOut,
|
|
63
|
-
onItemPress,
|
|
64
|
-
progress = 0,
|
|
65
|
-
rightContent,
|
|
66
|
-
isFirst,
|
|
67
|
-
isLast,
|
|
68
|
-
maxItems,
|
|
69
|
-
expandedColor = COLORS.NEUTRAL_3,
|
|
70
|
-
isSkillsLeftHidden = false,
|
|
71
|
-
loadingItemId = null,
|
|
72
|
-
}: ListCardProps<T>) => {
|
|
73
|
-
const t = useText()
|
|
74
|
-
const [isHovered, setIsHovered] = useState(false)
|
|
75
|
-
|
|
76
|
-
const { visible: standards, remainingCount } = getVisibleItems(items, maxItems)
|
|
77
|
-
const withHighlight = isHovered || isExpanded || isHighlighted
|
|
78
|
-
|
|
79
|
-
const Caret = isExpanded ? CaretDownIcon : CaretRightIcon
|
|
80
|
-
|
|
81
|
-
return (
|
|
82
|
-
<View
|
|
83
|
-
style={[
|
|
84
|
-
styles.container,
|
|
85
|
-
!isFirst && styles.containerCollapsed,
|
|
86
|
-
isFirst && styles.containerFirst,
|
|
87
|
-
isLast && styles.containerLast,
|
|
88
|
-
withHighlight && { backgroundColor: expandedColor },
|
|
89
|
-
]}
|
|
90
|
-
>
|
|
91
|
-
<Pressable
|
|
92
|
-
style={[
|
|
93
|
-
styles.header,
|
|
94
|
-
isFirst && styles.headerFirst,
|
|
95
|
-
isLast && !isExpanded && styles.headerLast,
|
|
96
|
-
withHighlight && { backgroundColor: expandedColor },
|
|
97
|
-
]}
|
|
98
|
-
onPress={onPress}
|
|
99
|
-
onHoverIn={() => {
|
|
100
|
-
setIsHovered(true)
|
|
101
|
-
onHoverIn?.()
|
|
102
|
-
}}
|
|
103
|
-
onHoverOut={() => {
|
|
104
|
-
setIsHovered(false)
|
|
105
|
-
onHoverOut?.()
|
|
106
|
-
}}
|
|
107
|
-
>
|
|
108
|
-
{icon}
|
|
109
|
-
<View style={styles.caret}>
|
|
110
|
-
<Caret color={COLORS.NEUTRAL_9} />
|
|
111
|
-
</View>
|
|
112
|
-
<Typography variant={HeadingVariants.H6} style={styles.title}>
|
|
113
|
-
{title}
|
|
114
|
-
</Typography>
|
|
115
|
-
{rightContent ?? (
|
|
116
|
-
<View style={styles.progress}>
|
|
117
|
-
<Typography variant={HeadingVariants.H7} style={[styles.percentage, { color }]}>
|
|
118
|
-
{Math.round(progress)}%
|
|
119
|
-
</Typography>
|
|
120
|
-
<View style={styles.track}>
|
|
121
|
-
<View
|
|
122
|
-
style={[styles.fill, { width: `${Math.round(progress)}%`, backgroundColor: color }]}
|
|
123
|
-
/>
|
|
124
|
-
</View>
|
|
125
|
-
</View>
|
|
126
|
-
)}
|
|
127
|
-
</Pressable>
|
|
128
|
-
{isExpanded && (
|
|
129
|
-
<View style={[styles.items, isLast && styles.itemsLast]}>
|
|
130
|
-
{standards.map((standard) => (
|
|
131
|
-
<ListItem
|
|
132
|
-
key={standard.id}
|
|
133
|
-
title={standard.title}
|
|
134
|
-
skillsLeft={standard.skillsLeft}
|
|
135
|
-
subtitle={standard.subtitle}
|
|
136
|
-
isFinished={standard.isCompleted}
|
|
137
|
-
isLoading={loadingItemId === standard.id}
|
|
138
|
-
isSkillsLeftHidden={isSkillsLeftHidden}
|
|
139
|
-
onPress={() => onItemPress?.(standard)}
|
|
140
|
-
/>
|
|
141
|
-
))}
|
|
142
|
-
{remainingCount > 0 && (
|
|
143
|
-
<Typography variant={HeadingVariants.H8} style={styles.moreText}>
|
|
144
|
-
{t('pmProgress.andMore', { count: `${remainingCount}` })}
|
|
145
|
-
</Typography>
|
|
146
|
-
)}
|
|
147
|
-
</View>
|
|
148
|
-
)}
|
|
149
|
-
</View>
|
|
150
|
-
)
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
const styles = StyleSheet.create({
|
|
154
|
-
container: {
|
|
155
|
-
justifyContent: 'center',
|
|
156
|
-
backgroundColor: COLORS.NEUTRAL_2,
|
|
157
|
-
overflow: 'hidden',
|
|
158
|
-
cursor: 'pointer',
|
|
159
|
-
},
|
|
160
|
-
containerCollapsed: {
|
|
161
|
-
marginTop: -1,
|
|
162
|
-
},
|
|
163
|
-
containerFirst: {
|
|
164
|
-
borderTopLeftRadius: BORDER_RADIUS[200],
|
|
165
|
-
borderTopRightRadius: BORDER_RADIUS[200],
|
|
166
|
-
},
|
|
167
|
-
containerLast: {
|
|
168
|
-
borderBottomLeftRadius: BORDER_RADIUS[200],
|
|
169
|
-
borderBottomRightRadius: BORDER_RADIUS[200],
|
|
170
|
-
},
|
|
171
|
-
header: {
|
|
172
|
-
flexDirection: 'row',
|
|
173
|
-
alignItems: 'center',
|
|
174
|
-
height: HEADER_HEIGHT,
|
|
175
|
-
padding: SPACING[400],
|
|
176
|
-
backgroundColor: COLORS.NEUTRAL_2,
|
|
177
|
-
borderWidth: 1,
|
|
178
|
-
borderColor: COLORS.NEUTRAL_4,
|
|
179
|
-
cursor: 'pointer',
|
|
180
|
-
},
|
|
181
|
-
headerFirst: {
|
|
182
|
-
borderTopLeftRadius: BORDER_RADIUS[200],
|
|
183
|
-
borderTopRightRadius: BORDER_RADIUS[200],
|
|
184
|
-
},
|
|
185
|
-
headerLast: {
|
|
186
|
-
borderBottomLeftRadius: BORDER_RADIUS[200],
|
|
187
|
-
borderBottomRightRadius: BORDER_RADIUS[200],
|
|
188
|
-
},
|
|
189
|
-
caret: {
|
|
190
|
-
marginLeft: SPACING[400],
|
|
191
|
-
},
|
|
192
|
-
title: {
|
|
193
|
-
color: COLORS.NEUTRAL_9,
|
|
194
|
-
marginLeft: SPACING[200],
|
|
195
|
-
flex: 1,
|
|
196
|
-
},
|
|
197
|
-
progress: {
|
|
198
|
-
flexDirection: 'row',
|
|
199
|
-
alignItems: 'center',
|
|
200
|
-
gap: SPACING[200],
|
|
201
|
-
},
|
|
202
|
-
percentage: {
|
|
203
|
-
textAlign: 'right',
|
|
204
|
-
},
|
|
205
|
-
track: {
|
|
206
|
-
width: PROGRESS_BAR_WIDTH,
|
|
207
|
-
height: PROGRESS_BAR_HEIGHT,
|
|
208
|
-
backgroundColor: COLORS.NEUTRAL_4,
|
|
209
|
-
borderRadius: BORDER_RADIUS[200],
|
|
210
|
-
overflow: 'hidden',
|
|
211
|
-
},
|
|
212
|
-
fill: {
|
|
213
|
-
height: '100%',
|
|
214
|
-
borderRadius: BORDER_RADIUS[200],
|
|
215
|
-
},
|
|
216
|
-
items: {
|
|
217
|
-
gap: SPACING[200],
|
|
218
|
-
padding: SPACING[200],
|
|
219
|
-
backgroundColor: COLORS.NEUTRAL_1,
|
|
220
|
-
},
|
|
221
|
-
itemsLast: {
|
|
222
|
-
borderBottomLeftRadius: BORDER_RADIUS[200],
|
|
223
|
-
borderBottomRightRadius: BORDER_RADIUS[200],
|
|
224
|
-
},
|
|
225
|
-
moreText: {
|
|
226
|
-
textAlign: 'center',
|
|
227
|
-
color: COLORS.NEUTRAL_7,
|
|
228
|
-
marginVertical: SPACING[200],
|
|
229
|
-
},
|
|
230
|
-
})
|