@magmamath/students-features 1.8.0 → 1.8.1-rc.0
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/fluency/components/FluencySolving.js +2 -2
- package/dist/commonjs/features/fluency/components/FluencySolving.js.map +1 -1
- package/dist/commonjs/features/fluency/components/fluency-solving/components/DebugBoxIndicator.js +48 -0
- package/dist/commonjs/features/fluency/components/fluency-solving/components/DebugBoxIndicator.js.map +1 -0
- package/dist/commonjs/features/fluency/components/fluency-solving/components/EquationContent.js +9 -8
- package/dist/commonjs/features/fluency/components/fluency-solving/components/EquationContent.js.map +1 -1
- package/dist/commonjs/features/fluency/components/fluency-solving/components/FluencyCardDeck.js +3 -1
- package/dist/commonjs/features/fluency/components/fluency-solving/components/FluencyCardDeck.js.map +1 -1
- package/dist/commonjs/features/fluency/components/fluency-solving/components/FluencyEquationCard.js +63 -10
- package/dist/commonjs/features/fluency/components/fluency-solving/components/FluencyEquationCard.js.map +1 -1
- package/dist/commonjs/features/fluency/components/fluency-solving/components/FluencySolvingHeader.js +10 -0
- package/dist/commonjs/features/fluency/components/fluency-solving/components/FluencySolvingHeader.js.map +1 -1
- package/dist/commonjs/features/fluency/components/fluency-solving/components/FluencySolvingProgress.js +0 -2
- package/dist/commonjs/features/fluency/components/fluency-solving/components/FluencySolvingProgress.js.map +1 -1
- package/dist/commonjs/features/fluency/index.js +12 -0
- package/dist/commonjs/features/fluency/index.js.map +1 -1
- package/dist/commonjs/features/fluency/visual-scaffolding/adapter.js +36 -0
- package/dist/commonjs/features/fluency/visual-scaffolding/adapter.js.map +1 -0
- package/dist/commonjs/features/fluency/visual-scaffolding/components/DiscreteCounterGrid.js +232 -0
- package/dist/commonjs/features/fluency/visual-scaffolding/components/DiscreteCounterGrid.js.map +1 -0
- package/dist/commonjs/features/fluency/visual-scaffolding/components/Dot.js +51 -0
- package/dist/commonjs/features/fluency/visual-scaffolding/components/Dot.js.map +1 -0
- package/dist/commonjs/features/fluency/visual-scaffolding/components/DynamicNumberLine.js +104 -0
- package/dist/commonjs/features/fluency/visual-scaffolding/components/DynamicNumberLine.js.map +1 -0
- package/dist/commonjs/features/fluency/visual-scaffolding/components/FactVisual.js +75 -0
- package/dist/commonjs/features/fluency/visual-scaffolding/components/FactVisual.js.map +1 -0
- package/dist/commonjs/features/fluency/visual-scaffolding/components/QuotativeBars.js +91 -0
- package/dist/commonjs/features/fluency/visual-scaffolding/components/QuotativeBars.js.map +1 -0
- package/dist/commonjs/features/fluency/visual-scaffolding/components/RelationalBlock.js +279 -0
- package/dist/commonjs/features/fluency/visual-scaffolding/components/RelationalBlock.js.map +1 -0
- package/dist/commonjs/features/fluency/visual-scaffolding/components/visualColors.js +44 -0
- package/dist/commonjs/features/fluency/visual-scaffolding/components/visualColors.js.map +1 -0
- package/dist/commonjs/features/fluency/visual-scaffolding/index.js +73 -0
- package/dist/commonjs/features/fluency/visual-scaffolding/index.js.map +1 -0
- package/dist/commonjs/features/fluency/visual-scaffolding/renderFact.js +276 -0
- package/dist/commonjs/features/fluency/visual-scaffolding/renderFact.js.map +1 -0
- package/dist/commonjs/features/fluency/visual-scaffolding/types.js +2 -0
- package/dist/commonjs/features/fluency/visual-scaffolding/types.js.map +1 -0
- package/dist/commonjs/features/fluency-teacher/assets/{DivisionIcon.js → SortDefaultIcon.js} +8 -11
- package/dist/commonjs/features/fluency-teacher/assets/SortDefaultIcon.js.map +1 -0
- package/dist/commonjs/features/fluency-teacher/components/FluencyTeacher.js +3 -4
- package/dist/commonjs/features/fluency-teacher/components/FluencyTeacher.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/drawer/DrawerHeader.js +43 -48
- package/dist/commonjs/features/fluency-teacher/components/drawer/DrawerHeader.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/drawer/DrawerMasteryLegend.js +80 -0
- package/dist/commonjs/features/fluency-teacher/components/drawer/DrawerMasteryLegend.js.map +1 -0
- package/dist/commonjs/features/fluency-teacher/components/drawer/DrawerMatrixes.js +28 -11
- package/dist/commonjs/features/fluency-teacher/components/drawer/DrawerMatrixes.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/drawer/DrawerOperatorBox.js +44 -27
- package/dist/commonjs/features/fluency-teacher/components/drawer/DrawerOperatorBox.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/drawer/DrawerOperatorStatCard.js +40 -47
- package/dist/commonjs/features/fluency-teacher/components/drawer/DrawerOperatorStatCard.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/drawer/DrawerStats.js +24 -14
- package/dist/commonjs/features/fluency-teacher/components/drawer/DrawerStats.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/drawer/FluencyTeacherDrawer.js +6 -6
- package/dist/commonjs/features/fluency-teacher/components/drawer/FluencyTeacherDrawer.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/matrix/DrawerMatrix.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/matrix/MatrixCell.js +16 -2
- package/dist/commonjs/features/fluency-teacher/components/matrix/MatrixCell.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/matrix/MatrixRow.js +2 -1
- package/dist/commonjs/features/fluency-teacher/components/matrix/MatrixRow.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/table/AllPupilsTableRow.js +41 -15
- package/dist/commonjs/features/fluency-teacher/components/table/AllPupilsTableRow.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/table/AverageSortButton.js +62 -6
- package/dist/commonjs/features/fluency-teacher/components/table/AverageSortButton.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/table/FluencyTeacherStudentsTable.js +40 -42
- package/dist/commonjs/features/fluency-teacher/components/table/FluencyTeacherStudentsTable.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/table/OperatorBadge.js +16 -25
- package/dist/commonjs/features/fluency-teacher/components/table/OperatorBadge.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/table/TableColumnSortButton.js +40 -30
- package/dist/commonjs/features/fluency-teacher/components/table/TableColumnSortButton.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/table/TableRow.js +72 -59
- package/dist/commonjs/features/fluency-teacher/components/table/TableRow.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/table/TableRowAverageProgress.js +71 -0
- package/dist/commonjs/features/fluency-teacher/components/table/TableRowAverageProgress.js.map +1 -0
- package/dist/commonjs/features/fluency-teacher/context/TeacherFluencyContext.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/fluencyTeacher.constants.js +38 -103
- package/dist/commonjs/features/fluency-teacher/fluencyTeacher.constants.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/fluencyTeacher.helpers.js +10 -52
- package/dist/commonjs/features/fluency-teacher/fluencyTeacher.helpers.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/hooks/useDrawerGrid.js +2 -3
- package/dist/commonjs/features/fluency-teacher/hooks/useDrawerGrid.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/hooks/useDrawerMatrix.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/model/TeacherFluencyFiltersModel.js +1 -2
- package/dist/commonjs/features/fluency-teacher/model/TeacherFluencyFiltersModel.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/model/TeacherFluencyModel.js +0 -9
- package/dist/commonjs/features/fluency-teacher/model/TeacherFluencyModel.js.map +1 -1
- package/dist/module/features/fluency/components/FluencySolving.js +2 -2
- package/dist/module/features/fluency/components/FluencySolving.js.map +1 -1
- package/dist/module/features/fluency/components/fluency-solving/components/DebugBoxIndicator.js +43 -0
- package/dist/module/features/fluency/components/fluency-solving/components/DebugBoxIndicator.js.map +1 -0
- package/dist/module/features/fluency/components/fluency-solving/components/EquationContent.js +9 -8
- package/dist/module/features/fluency/components/fluency-solving/components/EquationContent.js.map +1 -1
- package/dist/module/features/fluency/components/fluency-solving/components/FluencyCardDeck.js +3 -1
- package/dist/module/features/fluency/components/fluency-solving/components/FluencyCardDeck.js.map +1 -1
- package/dist/module/features/fluency/components/fluency-solving/components/FluencyEquationCard.js +64 -11
- package/dist/module/features/fluency/components/fluency-solving/components/FluencyEquationCard.js.map +1 -1
- package/dist/module/features/fluency/components/fluency-solving/components/FluencySolvingHeader.js +10 -0
- package/dist/module/features/fluency/components/fluency-solving/components/FluencySolvingHeader.js.map +1 -1
- package/dist/module/features/fluency/components/fluency-solving/components/FluencySolvingProgress.js +0 -2
- package/dist/module/features/fluency/components/fluency-solving/components/FluencySolvingProgress.js.map +1 -1
- package/dist/module/features/fluency/index.js +1 -0
- package/dist/module/features/fluency/index.js.map +1 -1
- package/dist/module/features/fluency/visual-scaffolding/adapter.js +31 -0
- package/dist/module/features/fluency/visual-scaffolding/adapter.js.map +1 -0
- package/dist/module/features/fluency/visual-scaffolding/components/DiscreteCounterGrid.js +225 -0
- package/dist/module/features/fluency/visual-scaffolding/components/DiscreteCounterGrid.js.map +1 -0
- package/dist/module/features/fluency/visual-scaffolding/components/Dot.js +45 -0
- package/dist/module/features/fluency/visual-scaffolding/components/Dot.js.map +1 -0
- package/dist/module/features/fluency/visual-scaffolding/components/DynamicNumberLine.js +96 -0
- package/dist/module/features/fluency/visual-scaffolding/components/DynamicNumberLine.js.map +1 -0
- package/dist/module/features/fluency/visual-scaffolding/components/FactVisual.js +69 -0
- package/dist/module/features/fluency/visual-scaffolding/components/FactVisual.js.map +1 -0
- package/dist/module/features/fluency/visual-scaffolding/components/QuotativeBars.js +83 -0
- package/dist/module/features/fluency/visual-scaffolding/components/QuotativeBars.js.map +1 -0
- package/dist/module/features/fluency/visual-scaffolding/components/RelationalBlock.js +272 -0
- package/dist/module/features/fluency/visual-scaffolding/components/RelationalBlock.js.map +1 -0
- package/dist/module/features/fluency/visual-scaffolding/components/visualColors.js +41 -0
- package/dist/module/features/fluency/visual-scaffolding/components/visualColors.js.map +1 -0
- package/dist/module/features/fluency/visual-scaffolding/index.js +8 -0
- package/dist/module/features/fluency/visual-scaffolding/index.js.map +1 -0
- package/dist/module/features/fluency/visual-scaffolding/renderFact.js +269 -0
- package/dist/module/features/fluency/visual-scaffolding/renderFact.js.map +1 -0
- package/dist/module/features/fluency/visual-scaffolding/types.js +2 -0
- package/dist/module/features/fluency/visual-scaffolding/types.js.map +1 -0
- package/dist/module/features/fluency-teacher/assets/SortDefaultIcon.js +23 -0
- package/dist/module/features/fluency-teacher/assets/SortDefaultIcon.js.map +1 -0
- package/dist/module/features/fluency-teacher/components/FluencyTeacher.js +3 -4
- package/dist/module/features/fluency-teacher/components/FluencyTeacher.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/drawer/DrawerHeader.js +44 -49
- package/dist/module/features/fluency-teacher/components/drawer/DrawerHeader.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/drawer/DrawerMasteryLegend.js +74 -0
- package/dist/module/features/fluency-teacher/components/drawer/DrawerMasteryLegend.js.map +1 -0
- package/dist/module/features/fluency-teacher/components/drawer/DrawerMatrixes.js +31 -14
- package/dist/module/features/fluency-teacher/components/drawer/DrawerMatrixes.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/drawer/DrawerOperatorBox.js +45 -28
- package/dist/module/features/fluency-teacher/components/drawer/DrawerOperatorBox.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/drawer/DrawerOperatorStatCard.js +41 -48
- package/dist/module/features/fluency-teacher/components/drawer/DrawerOperatorStatCard.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/drawer/DrawerStats.js +27 -17
- package/dist/module/features/fluency-teacher/components/drawer/DrawerStats.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/drawer/FluencyTeacherDrawer.js +6 -6
- package/dist/module/features/fluency-teacher/components/drawer/FluencyTeacherDrawer.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/matrix/DrawerMatrix.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/matrix/MatrixCell.js +17 -3
- package/dist/module/features/fluency-teacher/components/matrix/MatrixCell.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/matrix/MatrixRow.js +2 -1
- package/dist/module/features/fluency-teacher/components/matrix/MatrixRow.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/table/AllPupilsTableRow.js +42 -16
- package/dist/module/features/fluency-teacher/components/table/AllPupilsTableRow.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/table/AverageSortButton.js +63 -7
- package/dist/module/features/fluency-teacher/components/table/AverageSortButton.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/table/FluencyTeacherStudentsTable.js +42 -44
- package/dist/module/features/fluency-teacher/components/table/FluencyTeacherStudentsTable.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/table/OperatorBadge.js +16 -25
- package/dist/module/features/fluency-teacher/components/table/OperatorBadge.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/table/TableColumnSortButton.js +42 -32
- package/dist/module/features/fluency-teacher/components/table/TableColumnSortButton.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/table/TableRow.js +75 -62
- package/dist/module/features/fluency-teacher/components/table/TableRow.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/table/TableRowAverageProgress.js +65 -0
- package/dist/module/features/fluency-teacher/components/table/TableRowAverageProgress.js.map +1 -0
- package/dist/module/features/fluency-teacher/context/TeacherFluencyContext.js.map +1 -1
- package/dist/module/features/fluency-teacher/fluencyTeacher.constants.js +37 -102
- package/dist/module/features/fluency-teacher/fluencyTeacher.constants.js.map +1 -1
- package/dist/module/features/fluency-teacher/fluencyTeacher.helpers.js +8 -43
- package/dist/module/features/fluency-teacher/fluencyTeacher.helpers.js.map +1 -1
- package/dist/module/features/fluency-teacher/hooks/useDrawerGrid.js +2 -3
- package/dist/module/features/fluency-teacher/hooks/useDrawerGrid.js.map +1 -1
- package/dist/module/features/fluency-teacher/hooks/useDrawerMatrix.js.map +1 -1
- package/dist/module/features/fluency-teacher/model/TeacherFluencyFiltersModel.js +1 -2
- package/dist/module/features/fluency-teacher/model/TeacherFluencyFiltersModel.js.map +1 -1
- package/dist/module/features/fluency-teacher/model/TeacherFluencyModel.js +0 -9
- package/dist/module/features/fluency-teacher/model/TeacherFluencyModel.js.map +1 -1
- package/dist/typescript/commonjs/features/fluency/components/fluency-solving/components/DebugBoxIndicator.d.ts +3 -0
- package/dist/typescript/commonjs/features/fluency/components/fluency-solving/components/DebugBoxIndicator.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency/components/fluency-solving/components/EquationContent.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency/components/fluency-solving/components/FluencyCardDeck.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency/components/fluency-solving/components/FluencyEquationCard.d.ts +2 -1
- package/dist/typescript/commonjs/features/fluency/components/fluency-solving/components/FluencyEquationCard.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency/components/fluency-solving/components/FluencySolvingHeader.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency/index.d.ts +1 -0
- package/dist/typescript/commonjs/features/fluency/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/__tests__/renderFact.test.d.ts +2 -0
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/__tests__/renderFact.test.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/adapter.d.ts +4 -0
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/adapter.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/DiscreteCounterGrid.d.ts +10 -0
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/DiscreteCounterGrid.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/Dot.d.ts +10 -0
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/Dot.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/DynamicNumberLine.d.ts +10 -0
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/DynamicNumberLine.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/FactVisual.d.ts +10 -0
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/FactVisual.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/QuotativeBars.d.ts +10 -0
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/QuotativeBars.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/RelationalBlock.d.ts +10 -0
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/RelationalBlock.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/visualColors.d.ts +16 -0
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/visualColors.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/index.d.ts +6 -0
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/renderFact.d.ts +23 -0
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/renderFact.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/types.d.ts +103 -0
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/types.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency-teacher/assets/SortDefaultIcon.d.ts +4 -0
- package/dist/typescript/commonjs/features/fluency-teacher/assets/SortDefaultIcon.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency-teacher/components/drawer/DrawerHeader.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/drawer/DrawerMasteryLegend.d.ts +3 -0
- package/dist/typescript/commonjs/features/fluency-teacher/components/drawer/DrawerMasteryLegend.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency-teacher/components/drawer/DrawerMatrixes.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/drawer/DrawerOperatorBox.d.ts +4 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/drawer/DrawerOperatorBox.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/drawer/DrawerOperatorStatCard.d.ts +4 -6
- package/dist/typescript/commonjs/features/fluency-teacher/components/drawer/DrawerOperatorStatCard.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/drawer/DrawerStats.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/drawer/FluencyTeacherDrawer.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/matrix/DrawerMatrix.d.ts +2 -3
- package/dist/typescript/commonjs/features/fluency-teacher/components/matrix/DrawerMatrix.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/matrix/MatrixCell.d.ts +5 -6
- package/dist/typescript/commonjs/features/fluency-teacher/components/matrix/MatrixCell.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/matrix/MatrixHeaderRow.d.ts +1 -2
- package/dist/typescript/commonjs/features/fluency-teacher/components/matrix/MatrixHeaderRow.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/matrix/MatrixRow.d.ts +3 -5
- package/dist/typescript/commonjs/features/fluency-teacher/components/matrix/MatrixRow.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/AllPupilsTableRow.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/AverageSortButton.d.ts +1 -2
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/AverageSortButton.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/FluencyTeacherStudentsTable.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/OperatorBadge.d.ts +4 -5
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/OperatorBadge.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/TableColumnSortButton.d.ts +6 -7
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/TableColumnSortButton.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/TableRow.d.ts +3 -4
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/TableRow.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/TableRowAverageProgress.d.ts +7 -0
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/TableRowAverageProgress.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency-teacher/context/TeacherFluencyContext.d.ts +0 -1
- package/dist/typescript/commonjs/features/fluency-teacher/context/TeacherFluencyContext.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/fluencyTeacher.constants.d.ts +3 -16
- package/dist/typescript/commonjs/features/fluency-teacher/fluencyTeacher.constants.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/fluencyTeacher.helpers.d.ts +4 -11
- package/dist/typescript/commonjs/features/fluency-teacher/fluencyTeacher.helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/fluencyTeacher.types.d.ts +6 -35
- package/dist/typescript/commonjs/features/fluency-teacher/fluencyTeacher.types.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/hooks/useDrawerGrid.d.ts +12 -1
- package/dist/typescript/commonjs/features/fluency-teacher/hooks/useDrawerGrid.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/hooks/useDrawerMatrix.d.ts +3 -3
- package/dist/typescript/commonjs/features/fluency-teacher/hooks/useDrawerMatrix.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/model/TeacherFluencyFiltersModel.d.ts +0 -1
- package/dist/typescript/commonjs/features/fluency-teacher/model/TeacherFluencyFiltersModel.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/model/TeacherFluencyModel.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency/components/fluency-solving/components/DebugBoxIndicator.d.ts +3 -0
- package/dist/typescript/module/features/fluency/components/fluency-solving/components/DebugBoxIndicator.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency/components/fluency-solving/components/EquationContent.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency/components/fluency-solving/components/FluencyCardDeck.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency/components/fluency-solving/components/FluencyEquationCard.d.ts +2 -1
- package/dist/typescript/module/features/fluency/components/fluency-solving/components/FluencyEquationCard.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency/components/fluency-solving/components/FluencySolvingHeader.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency/index.d.ts +1 -0
- package/dist/typescript/module/features/fluency/index.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency/visual-scaffolding/__tests__/renderFact.test.d.ts +2 -0
- package/dist/typescript/module/features/fluency/visual-scaffolding/__tests__/renderFact.test.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency/visual-scaffolding/adapter.d.ts +4 -0
- package/dist/typescript/module/features/fluency/visual-scaffolding/adapter.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/DiscreteCounterGrid.d.ts +10 -0
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/DiscreteCounterGrid.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/Dot.d.ts +10 -0
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/Dot.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/DynamicNumberLine.d.ts +10 -0
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/DynamicNumberLine.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/FactVisual.d.ts +10 -0
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/FactVisual.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/QuotativeBars.d.ts +10 -0
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/QuotativeBars.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/RelationalBlock.d.ts +10 -0
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/RelationalBlock.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/visualColors.d.ts +16 -0
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/visualColors.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency/visual-scaffolding/index.d.ts +6 -0
- package/dist/typescript/module/features/fluency/visual-scaffolding/index.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency/visual-scaffolding/renderFact.d.ts +23 -0
- package/dist/typescript/module/features/fluency/visual-scaffolding/renderFact.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency/visual-scaffolding/types.d.ts +103 -0
- package/dist/typescript/module/features/fluency/visual-scaffolding/types.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency-teacher/assets/SortDefaultIcon.d.ts +4 -0
- package/dist/typescript/module/features/fluency-teacher/assets/SortDefaultIcon.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency-teacher/components/drawer/DrawerHeader.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/components/drawer/DrawerMasteryLegend.d.ts +3 -0
- package/dist/typescript/module/features/fluency-teacher/components/drawer/DrawerMasteryLegend.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency-teacher/components/drawer/DrawerMatrixes.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/components/drawer/DrawerOperatorBox.d.ts +4 -1
- package/dist/typescript/module/features/fluency-teacher/components/drawer/DrawerOperatorBox.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/components/drawer/DrawerOperatorStatCard.d.ts +4 -6
- package/dist/typescript/module/features/fluency-teacher/components/drawer/DrawerOperatorStatCard.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/components/drawer/DrawerStats.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/components/drawer/FluencyTeacherDrawer.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/components/matrix/DrawerMatrix.d.ts +2 -3
- package/dist/typescript/module/features/fluency-teacher/components/matrix/DrawerMatrix.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/components/matrix/MatrixCell.d.ts +5 -6
- package/dist/typescript/module/features/fluency-teacher/components/matrix/MatrixCell.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/components/matrix/MatrixHeaderRow.d.ts +1 -2
- package/dist/typescript/module/features/fluency-teacher/components/matrix/MatrixHeaderRow.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/components/matrix/MatrixRow.d.ts +3 -5
- package/dist/typescript/module/features/fluency-teacher/components/matrix/MatrixRow.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/components/table/AllPupilsTableRow.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/components/table/AverageSortButton.d.ts +1 -2
- package/dist/typescript/module/features/fluency-teacher/components/table/AverageSortButton.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/components/table/FluencyTeacherStudentsTable.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/components/table/OperatorBadge.d.ts +4 -5
- package/dist/typescript/module/features/fluency-teacher/components/table/OperatorBadge.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/components/table/TableColumnSortButton.d.ts +6 -7
- package/dist/typescript/module/features/fluency-teacher/components/table/TableColumnSortButton.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/components/table/TableRow.d.ts +3 -4
- package/dist/typescript/module/features/fluency-teacher/components/table/TableRow.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/components/table/TableRowAverageProgress.d.ts +7 -0
- package/dist/typescript/module/features/fluency-teacher/components/table/TableRowAverageProgress.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency-teacher/context/TeacherFluencyContext.d.ts +0 -1
- package/dist/typescript/module/features/fluency-teacher/context/TeacherFluencyContext.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/fluencyTeacher.constants.d.ts +3 -16
- package/dist/typescript/module/features/fluency-teacher/fluencyTeacher.constants.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/fluencyTeacher.helpers.d.ts +4 -11
- package/dist/typescript/module/features/fluency-teacher/fluencyTeacher.helpers.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/fluencyTeacher.types.d.ts +6 -35
- package/dist/typescript/module/features/fluency-teacher/fluencyTeacher.types.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/hooks/useDrawerGrid.d.ts +12 -1
- package/dist/typescript/module/features/fluency-teacher/hooks/useDrawerGrid.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/hooks/useDrawerMatrix.d.ts +3 -3
- package/dist/typescript/module/features/fluency-teacher/hooks/useDrawerMatrix.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/model/TeacherFluencyFiltersModel.d.ts +0 -1
- package/dist/typescript/module/features/fluency-teacher/model/TeacherFluencyFiltersModel.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/model/TeacherFluencyModel.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/features/fluency/components/FluencySolving.tsx +2 -2
- package/src/features/fluency/components/fluency-solving/components/DebugBoxIndicator.tsx +40 -0
- package/src/features/fluency/components/fluency-solving/components/EquationContent.tsx +12 -8
- package/src/features/fluency/components/fluency-solving/components/FluencyCardDeck.tsx +6 -1
- package/src/features/fluency/components/fluency-solving/components/FluencyEquationCard.tsx +63 -11
- package/src/features/fluency/components/fluency-solving/components/FluencySolvingHeader.tsx +9 -0
- package/src/features/fluency/components/fluency-solving/components/FluencySolvingProgress.tsx +0 -2
- package/src/features/fluency/index.ts +1 -0
- package/src/features/fluency/visual-scaffolding/__tests__/__snapshots__/renderFact.test.ts.snap +64 -0
- package/src/features/fluency/visual-scaffolding/__tests__/renderFact.test.ts +192 -0
- package/src/features/fluency/visual-scaffolding/adapter.ts +33 -0
- package/src/features/fluency/visual-scaffolding/components/DiscreteCounterGrid.tsx +222 -0
- package/src/features/fluency/visual-scaffolding/components/Dot.tsx +36 -0
- package/src/features/fluency/visual-scaffolding/components/DynamicNumberLine.tsx +98 -0
- package/src/features/fluency/visual-scaffolding/components/FactVisual.tsx +61 -0
- package/src/features/fluency/visual-scaffolding/components/QuotativeBars.tsx +92 -0
- package/src/features/fluency/visual-scaffolding/components/RelationalBlock.tsx +225 -0
- package/src/features/fluency/visual-scaffolding/components/visualColors.ts +45 -0
- package/src/features/fluency/visual-scaffolding/index.ts +5 -0
- package/src/features/fluency/visual-scaffolding/renderFact.ts +219 -0
- package/src/features/fluency/visual-scaffolding/types.ts +108 -0
- package/src/features/fluency-teacher/assets/SortDefaultIcon.tsx +10 -0
- package/src/features/fluency-teacher/components/FluencyTeacher.tsx +3 -3
- package/src/features/fluency-teacher/components/drawer/DrawerHeader.tsx +35 -37
- package/src/features/fluency-teacher/components/drawer/DrawerMasteryLegend.tsx +63 -0
- package/src/features/fluency-teacher/components/drawer/DrawerMatrixes.tsx +32 -13
- package/src/features/fluency-teacher/components/drawer/DrawerOperatorBox.tsx +40 -20
- package/src/features/fluency-teacher/components/drawer/DrawerOperatorStatCard.tsx +35 -35
- package/src/features/fluency-teacher/components/drawer/DrawerStats.tsx +28 -16
- package/src/features/fluency-teacher/components/drawer/FluencyTeacherDrawer.tsx +5 -4
- package/src/features/fluency-teacher/components/matrix/DrawerMatrix.tsx +2 -3
- package/src/features/fluency-teacher/components/matrix/MatrixCell.tsx +16 -7
- package/src/features/fluency-teacher/components/matrix/MatrixHeaderRow.tsx +1 -1
- package/src/features/fluency-teacher/components/matrix/MatrixRow.tsx +4 -4
- package/src/features/fluency-teacher/components/table/AllPupilsTableRow.tsx +40 -13
- package/src/features/fluency-teacher/components/table/AverageSortButton.tsx +62 -8
- package/src/features/fluency-teacher/components/table/FluencyTeacherStudentsTable.tsx +35 -49
- package/src/features/fluency-teacher/components/table/OperatorBadge.tsx +11 -18
- package/src/features/fluency-teacher/components/table/TableColumnSortButton.tsx +49 -28
- package/src/features/fluency-teacher/components/table/TableRow.tsx +64 -65
- package/src/features/fluency-teacher/components/table/TableRowAverageProgress.tsx +65 -0
- package/src/features/fluency-teacher/context/TeacherFluencyContext.ts +0 -1
- package/src/features/fluency-teacher/fluencyTeacher.constants.ts +40 -138
- package/src/features/fluency-teacher/fluencyTeacher.helpers.ts +10 -82
- package/src/features/fluency-teacher/fluencyTeacher.types.ts +6 -39
- package/src/features/fluency-teacher/hooks/useDrawerGrid.ts +7 -4
- package/src/features/fluency-teacher/hooks/useDrawerMatrix.ts +3 -4
- package/src/features/fluency-teacher/model/TeacherFluencyFiltersModel.ts +5 -8
- package/src/features/fluency-teacher/model/TeacherFluencyModel.ts +0 -8
- package/dist/commonjs/features/fluency-teacher/assets/DivisionIcon.js.map +0 -1
- package/dist/commonjs/features/fluency-teacher/components/matrix/MatrixLegend.js +0 -83
- package/dist/commonjs/features/fluency-teacher/components/matrix/MatrixLegend.js.map +0 -1
- package/dist/commonjs/features/fluency-teacher/components/table/AverageCell.js +0 -55
- package/dist/commonjs/features/fluency-teacher/components/table/AverageCell.js.map +0 -1
- package/dist/commonjs/features/fluency-teacher/components/table/SortOrderCarets.js +0 -40
- package/dist/commonjs/features/fluency-teacher/components/table/SortOrderCarets.js.map +0 -1
- package/dist/commonjs/features/fluency-teacher/components/table/tableCell.styles.js +0 -45
- package/dist/commonjs/features/fluency-teacher/components/table/tableCell.styles.js.map +0 -1
- package/dist/module/features/fluency-teacher/assets/DivisionIcon.js +0 -26
- package/dist/module/features/fluency-teacher/assets/DivisionIcon.js.map +0 -1
- package/dist/module/features/fluency-teacher/components/matrix/MatrixLegend.js +0 -77
- package/dist/module/features/fluency-teacher/components/matrix/MatrixLegend.js.map +0 -1
- package/dist/module/features/fluency-teacher/components/table/AverageCell.js +0 -49
- package/dist/module/features/fluency-teacher/components/table/AverageCell.js.map +0 -1
- package/dist/module/features/fluency-teacher/components/table/SortOrderCarets.js +0 -34
- package/dist/module/features/fluency-teacher/components/table/SortOrderCarets.js.map +0 -1
- package/dist/module/features/fluency-teacher/components/table/tableCell.styles.js +0 -42
- package/dist/module/features/fluency-teacher/components/table/tableCell.styles.js.map +0 -1
- package/dist/typescript/commonjs/features/fluency-teacher/assets/DivisionIcon.d.ts +0 -4
- package/dist/typescript/commonjs/features/fluency-teacher/assets/DivisionIcon.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/matrix/MatrixLegend.d.ts +0 -10
- package/dist/typescript/commonjs/features/fluency-teacher/components/matrix/MatrixLegend.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/AverageCell.d.ts +0 -9
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/AverageCell.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/SortOrderCarets.d.ts +0 -9
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/SortOrderCarets.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/tableCell.styles.d.ts +0 -35
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/tableCell.styles.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency-teacher/assets/DivisionIcon.d.ts +0 -4
- package/dist/typescript/module/features/fluency-teacher/assets/DivisionIcon.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency-teacher/components/matrix/MatrixLegend.d.ts +0 -10
- package/dist/typescript/module/features/fluency-teacher/components/matrix/MatrixLegend.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency-teacher/components/table/AverageCell.d.ts +0 -9
- package/dist/typescript/module/features/fluency-teacher/components/table/AverageCell.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency-teacher/components/table/SortOrderCarets.d.ts +0 -9
- package/dist/typescript/module/features/fluency-teacher/components/table/SortOrderCarets.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency-teacher/components/table/tableCell.styles.d.ts +0 -35
- package/dist/typescript/module/features/fluency-teacher/components/table/tableCell.styles.d.ts.map +0 -1
- package/src/features/fluency-teacher/assets/DivisionIcon.tsx +0 -20
- package/src/features/fluency-teacher/components/matrix/MatrixLegend.tsx +0 -81
- package/src/features/fluency-teacher/components/table/AverageCell.tsx +0 -45
- package/src/features/fluency-teacher/components/table/SortOrderCarets.tsx +0 -37
- package/src/features/fluency-teacher/components/table/tableCell.styles.ts +0 -39
|
@@ -7,10 +7,11 @@ import {
|
|
|
7
7
|
COLORS,
|
|
8
8
|
CrossIcon,
|
|
9
9
|
FONT_FAMILY,
|
|
10
|
+
HeadingVariants,
|
|
10
11
|
SPACING,
|
|
12
|
+
Typography,
|
|
11
13
|
} from '@magmamath/react-native-ui'
|
|
12
14
|
import { useText } from '../../../../i18n/i18n'
|
|
13
|
-
import { AverageCell } from '../table/AverageCell'
|
|
14
15
|
|
|
15
16
|
import type { StudentResult } from '../../fluencyTeacher.types'
|
|
16
17
|
|
|
@@ -23,24 +24,20 @@ export const DrawerHeader = ({ student, onClose }: DrawerHeaderProps) => {
|
|
|
23
24
|
const t = useText()
|
|
24
25
|
return (
|
|
25
26
|
<View style={styles.container}>
|
|
26
|
-
<
|
|
27
|
-
{
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
<
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
</View>
|
|
36
|
-
<View style={styles.masteryBar}>
|
|
37
|
-
<AverageCell percent={student.averagePercent} height={22} showPercent={false} />
|
|
38
|
-
</View>
|
|
27
|
+
<View style={styles.left}>
|
|
28
|
+
<Typography variant={HeadingVariants.H9} style={styles.label}>
|
|
29
|
+
{t('teacher.fluency.studentFluency')}
|
|
30
|
+
</Typography>
|
|
31
|
+
<Text style={styles.name}>{student.name}</Text>
|
|
32
|
+
</View>
|
|
33
|
+
<View style={styles.right}>
|
|
34
|
+
<Text style={styles.masteryLabel}>{t('teacher.fluency.overallMastery')}</Text>
|
|
35
|
+
<Text style={styles.masteryValue}>{student.averagePercent}%</Text>
|
|
39
36
|
</View>
|
|
40
37
|
<Button
|
|
41
|
-
variant={ButtonVariant.
|
|
38
|
+
variant={ButtonVariant.SECONDARY}
|
|
42
39
|
colorScheme={ButtonColor.WHITE}
|
|
43
|
-
icon={<CrossIcon size={18} color={COLORS.
|
|
40
|
+
icon={<CrossIcon size={18} color={COLORS.NEUTRAL_7} />}
|
|
44
41
|
onPress={onClose}
|
|
45
42
|
style={{ container: styles.closeButton }}
|
|
46
43
|
/>
|
|
@@ -52,43 +49,44 @@ const styles = StyleSheet.create({
|
|
|
52
49
|
container: {
|
|
53
50
|
flexDirection: 'row',
|
|
54
51
|
alignItems: 'center',
|
|
55
|
-
|
|
56
|
-
|
|
52
|
+
paddingVertical: SPACING[500],
|
|
53
|
+
paddingHorizontal: SPACING[700],
|
|
54
|
+
borderTopWidth: 1,
|
|
57
55
|
borderBottomWidth: 1,
|
|
58
56
|
borderColor: COLORS.NEUTRAL_4,
|
|
59
57
|
},
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
left: {
|
|
59
|
+
marginLeft: 48,
|
|
60
|
+
},
|
|
61
|
+
label: {
|
|
62
|
+
color: COLORS.GREEN_7,
|
|
62
63
|
fontFamily: FONT_FAMILY.buenosAiresSemiBold,
|
|
63
64
|
fontWeight: '600',
|
|
64
|
-
fontSize: 24,
|
|
65
|
-
color: COLORS.NEUTRAL_10,
|
|
66
|
-
},
|
|
67
|
-
mastery: {
|
|
68
|
-
alignItems: 'flex-end',
|
|
69
65
|
},
|
|
70
|
-
|
|
71
|
-
|
|
66
|
+
name: {
|
|
67
|
+
fontFamily: FONT_FAMILY.buenosAiresBold,
|
|
68
|
+
fontWeight: '700',
|
|
69
|
+
fontSize: 22,
|
|
70
|
+
color: COLORS.NEUTRAL_10,
|
|
72
71
|
},
|
|
73
|
-
|
|
74
|
-
flexDirection: 'row',
|
|
72
|
+
right: {
|
|
75
73
|
alignItems: 'flex-end',
|
|
76
|
-
|
|
74
|
+
marginLeft: 'auto',
|
|
77
75
|
},
|
|
78
76
|
masteryLabel: {
|
|
79
|
-
fontFamily: FONT_FAMILY.
|
|
80
|
-
fontWeight: '
|
|
77
|
+
fontFamily: FONT_FAMILY.buenosAiresBold,
|
|
78
|
+
fontWeight: '700',
|
|
81
79
|
fontSize: 13,
|
|
82
|
-
lineHeight: 26,
|
|
83
80
|
color: COLORS.NEUTRAL_7,
|
|
84
81
|
},
|
|
85
82
|
masteryValue: {
|
|
86
|
-
fontFamily: FONT_FAMILY.
|
|
87
|
-
fontWeight: '
|
|
88
|
-
fontSize:
|
|
89
|
-
color: COLORS.
|
|
83
|
+
fontFamily: FONT_FAMILY.buenosAiresBold,
|
|
84
|
+
fontWeight: '700',
|
|
85
|
+
fontSize: 28,
|
|
86
|
+
color: COLORS.GREEN_7,
|
|
90
87
|
},
|
|
91
88
|
closeButton: {
|
|
92
89
|
alignSelf: 'center',
|
|
90
|
+
marginLeft: SPACING[600],
|
|
93
91
|
},
|
|
94
92
|
})
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { StyleSheet, Text, View } from 'react-native'
|
|
3
|
+
import { COLORS, FONT_FAMILY, SPACING } from '@magmamath/react-native-ui'
|
|
4
|
+
import { useText } from '../../../../i18n/i18n'
|
|
5
|
+
import type { TranslationKey } from '../../../../i18n/i18n'
|
|
6
|
+
|
|
7
|
+
type MasteryLevelConfig = {
|
|
8
|
+
labelKey: TranslationKey
|
|
9
|
+
color: string
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
const MASTERY_LEVEL_CONFIG: MasteryLevelConfig[] = [
|
|
13
|
+
{ labelKey: 'student.fluency.notStarted', color: COLORS.NEUTRAL_3 },
|
|
14
|
+
{ labelKey: 'student.fluency.masteryLearning', color: COLORS.GREEN_2 },
|
|
15
|
+
{ labelKey: 'student.fluency.masteryGrowing', color: COLORS.GREEN_3 },
|
|
16
|
+
{ labelKey: 'student.fluency.masteryStrong', color: COLORS.GREEN_4 },
|
|
17
|
+
{ labelKey: 'student.fluency.masteryMastered', color: COLORS.GREEN_7 },
|
|
18
|
+
]
|
|
19
|
+
|
|
20
|
+
export const DrawerMasteryLegend = () => {
|
|
21
|
+
const t = useText()
|
|
22
|
+
return (
|
|
23
|
+
<View style={styles.container}>
|
|
24
|
+
{MASTERY_LEVEL_CONFIG.map(({ labelKey, color }) => (
|
|
25
|
+
<View key={labelKey} style={styles.item}>
|
|
26
|
+
<View style={[styles.swatch, { backgroundColor: color }]} />
|
|
27
|
+
<Text style={styles.label}>{t(labelKey)}</Text>
|
|
28
|
+
</View>
|
|
29
|
+
))}
|
|
30
|
+
</View>
|
|
31
|
+
)
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const styles = StyleSheet.create({
|
|
35
|
+
container: {
|
|
36
|
+
flexDirection: 'row',
|
|
37
|
+
alignItems: 'center',
|
|
38
|
+
gap: SPACING[300],
|
|
39
|
+
paddingVertical: SPACING[150],
|
|
40
|
+
paddingHorizontal: SPACING[300],
|
|
41
|
+
borderRadius: 999,
|
|
42
|
+
backgroundColor: COLORS.NEUTRAL_1,
|
|
43
|
+
borderWidth: 1,
|
|
44
|
+
borderColor: COLORS.NEUTRAL_4,
|
|
45
|
+
alignSelf: 'center',
|
|
46
|
+
},
|
|
47
|
+
item: {
|
|
48
|
+
flexDirection: 'row',
|
|
49
|
+
alignItems: 'center',
|
|
50
|
+
gap: SPACING[150],
|
|
51
|
+
},
|
|
52
|
+
swatch: {
|
|
53
|
+
width: 14,
|
|
54
|
+
height: 14,
|
|
55
|
+
borderRadius: 4,
|
|
56
|
+
},
|
|
57
|
+
label: {
|
|
58
|
+
fontFamily: FONT_FAMILY.buenosAiresSemiBold,
|
|
59
|
+
fontSize: 12,
|
|
60
|
+
fontWeight: '600',
|
|
61
|
+
color: COLORS.NEUTRAL_8,
|
|
62
|
+
},
|
|
63
|
+
})
|
|
@@ -1,24 +1,42 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { StyleSheet, View } from 'react-native'
|
|
3
|
-
import { SPACING } from '@magmamath/react-native-ui'
|
|
3
|
+
import { COLORS, SPACING } from '@magmamath/react-native-ui'
|
|
4
4
|
import { useText } from '../../../../i18n/i18n'
|
|
5
|
-
import { useTeacherFluency } from '../../context/TeacherFluencyContext'
|
|
6
5
|
import { DrawerOperatorBox } from './DrawerOperatorBox'
|
|
7
|
-
import {
|
|
8
|
-
import { getOperatorsForGrade } from '../../fluencyTeacher.helpers'
|
|
6
|
+
import { FluencyMathOperatorSymbol, FluencyOperator } from '../../fluencyTeacher.constants'
|
|
9
7
|
|
|
10
8
|
export const DrawerMatrixes = () => {
|
|
11
9
|
const t = useText()
|
|
12
|
-
const { grade } = useTeacherFluency()
|
|
13
10
|
return (
|
|
14
11
|
<View style={styles.grid}>
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
12
|
+
<DrawerOperatorBox
|
|
13
|
+
title={t('student.fluency.addition')}
|
|
14
|
+
symbol={FluencyMathOperatorSymbol.ADDITION}
|
|
15
|
+
iconBg={COLORS.GREEN_1}
|
|
16
|
+
iconColor={COLORS.GREEN_7}
|
|
17
|
+
operator={FluencyOperator.ADDITION}
|
|
18
|
+
/>
|
|
19
|
+
<DrawerOperatorBox
|
|
20
|
+
title={t('student.fluency.subtraction')}
|
|
21
|
+
symbol={FluencyMathOperatorSymbol.SUBTRACTION}
|
|
22
|
+
iconBg={COLORS.ORANGE_1}
|
|
23
|
+
iconColor={COLORS.ORANGE_7}
|
|
24
|
+
operator={FluencyOperator.SUBTRACTION}
|
|
25
|
+
/>
|
|
26
|
+
<DrawerOperatorBox
|
|
27
|
+
title={t('student.fluency.multiplication')}
|
|
28
|
+
symbol={FluencyMathOperatorSymbol.MULTIPLICATION}
|
|
29
|
+
iconBg={COLORS.BLUE_1}
|
|
30
|
+
iconColor={COLORS.BLUE_7}
|
|
31
|
+
operator={FluencyOperator.MULTIPLICATION}
|
|
32
|
+
/>
|
|
33
|
+
<DrawerOperatorBox
|
|
34
|
+
title={t('student.fluency.division')}
|
|
35
|
+
symbol={FluencyMathOperatorSymbol.DIVISION}
|
|
36
|
+
iconBg={COLORS.PURPLE_1}
|
|
37
|
+
iconColor={COLORS.PURPLE_7}
|
|
38
|
+
operator={FluencyOperator.DIVISION}
|
|
39
|
+
/>
|
|
22
40
|
</View>
|
|
23
41
|
)
|
|
24
42
|
}
|
|
@@ -27,7 +45,8 @@ const styles = StyleSheet.create({
|
|
|
27
45
|
grid: {
|
|
28
46
|
flexDirection: 'row',
|
|
29
47
|
flexWrap: 'wrap',
|
|
30
|
-
gap: SPACING[
|
|
48
|
+
gap: SPACING[300],
|
|
49
|
+
marginTop: SPACING[300],
|
|
31
50
|
marginBottom: SPACING[600],
|
|
32
51
|
},
|
|
33
52
|
})
|
|
@@ -5,17 +5,25 @@ import { BORDER_RADIUS, COLORS, FONT_FAMILY, SPACING } from '@magmamath/react-na
|
|
|
5
5
|
import { useText } from '../../../../i18n/i18n'
|
|
6
6
|
import { useDrawerMatrix } from '../../hooks/useDrawerMatrix'
|
|
7
7
|
import { DrawerMatrix } from '../matrix/DrawerMatrix'
|
|
8
|
-
import { MatrixLegend } from '../matrix/MatrixLegend'
|
|
9
8
|
import { useTeacherFluency } from '../../context/TeacherFluencyContext'
|
|
10
9
|
|
|
11
|
-
import { FluencyOperator
|
|
10
|
+
import { FluencyOperator } from '../../fluencyTeacher.constants'
|
|
12
11
|
|
|
13
12
|
type DrawerOperatorBoxProps = {
|
|
14
13
|
title: string
|
|
14
|
+
symbol: string
|
|
15
|
+
iconBg: string
|
|
16
|
+
iconColor: string
|
|
15
17
|
operator: FluencyOperator
|
|
16
18
|
}
|
|
17
19
|
|
|
18
|
-
export const DrawerOperatorBox = ({
|
|
20
|
+
export const DrawerOperatorBox = ({
|
|
21
|
+
title,
|
|
22
|
+
symbol,
|
|
23
|
+
iconBg,
|
|
24
|
+
iconColor,
|
|
25
|
+
operator,
|
|
26
|
+
}: DrawerOperatorBoxProps) => {
|
|
19
27
|
const t = useText()
|
|
20
28
|
const { model } = useTeacherFluency()
|
|
21
29
|
const isLoading = useUnit(model.api.getStudentDetailsFx.pending)
|
|
@@ -28,9 +36,13 @@ export const DrawerOperatorBox = ({ title, operator }: DrawerOperatorBoxProps) =
|
|
|
28
36
|
: ''
|
|
29
37
|
|
|
30
38
|
return (
|
|
31
|
-
<View style={
|
|
39
|
+
<View style={styles.container}>
|
|
32
40
|
<View style={styles.header}>
|
|
41
|
+
<View style={[styles.iconBox, { backgroundColor: iconBg }]}>
|
|
42
|
+
<Text style={[styles.symbol, { color: iconColor }]}>{symbol}</Text>
|
|
43
|
+
</View>
|
|
33
44
|
<Text style={styles.title}>{title}</Text>
|
|
45
|
+
<View style={styles.spacer} />
|
|
34
46
|
<Text style={styles.factsLabel}>{factsLabel}</Text>
|
|
35
47
|
</View>
|
|
36
48
|
<View style={styles.content}>
|
|
@@ -39,10 +51,7 @@ export const DrawerOperatorBox = ({ title, operator }: DrawerOperatorBoxProps) =
|
|
|
39
51
|
<ActivityIndicator size="large" color={COLORS.PRIMARY_BLUE} />
|
|
40
52
|
</View>
|
|
41
53
|
) : (
|
|
42
|
-
|
|
43
|
-
<DrawerMatrix {...matrixProps} />
|
|
44
|
-
{matrixProps.grid && <MatrixLegend operator={operator} grid={matrixProps.grid} />}
|
|
45
|
-
</>
|
|
54
|
+
<DrawerMatrix {...matrixProps} />
|
|
46
55
|
)}
|
|
47
56
|
</View>
|
|
48
57
|
</View>
|
|
@@ -51,37 +60,48 @@ export const DrawerOperatorBox = ({ title, operator }: DrawerOperatorBoxProps) =
|
|
|
51
60
|
|
|
52
61
|
const styles = StyleSheet.create({
|
|
53
62
|
container: {
|
|
54
|
-
|
|
55
|
-
|
|
63
|
+
width: 315,
|
|
64
|
+
height: 315,
|
|
56
65
|
borderWidth: 1,
|
|
66
|
+
borderColor: COLORS.NEUTRAL_4,
|
|
57
67
|
borderRadius: BORDER_RADIUS[300],
|
|
58
|
-
backgroundColor: COLORS.NEUTRAL_1,
|
|
59
68
|
padding: SPACING[400],
|
|
60
|
-
gap: SPACING[300],
|
|
61
69
|
},
|
|
62
70
|
header: {
|
|
63
71
|
flexDirection: 'row',
|
|
64
72
|
alignItems: 'center',
|
|
65
73
|
gap: SPACING[200],
|
|
74
|
+
marginBottom: SPACING[300],
|
|
75
|
+
},
|
|
76
|
+
iconBox: {
|
|
77
|
+
width: 24,
|
|
78
|
+
height: 24,
|
|
79
|
+
borderRadius: 6,
|
|
80
|
+
alignItems: 'center',
|
|
81
|
+
justifyContent: 'center',
|
|
82
|
+
},
|
|
83
|
+
symbol: {
|
|
84
|
+
fontFamily: FONT_FAMILY.buenosAiresBold,
|
|
85
|
+
fontSize: 20,
|
|
86
|
+
marginBottom: 2,
|
|
66
87
|
},
|
|
67
88
|
title: {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
fontSize: 16,
|
|
89
|
+
fontFamily: FONT_FAMILY.buenosAiresSemiBold,
|
|
90
|
+
fontWeight: '700',
|
|
91
|
+
fontSize: 15,
|
|
72
92
|
color: COLORS.NEUTRAL_10,
|
|
73
93
|
},
|
|
94
|
+
spacer: {
|
|
95
|
+
flex: 1,
|
|
96
|
+
},
|
|
74
97
|
factsLabel: {
|
|
75
98
|
fontFamily: FONT_FAMILY.buenosAiresSemiBold,
|
|
76
99
|
fontSize: 13,
|
|
77
100
|
fontWeight: '600',
|
|
78
|
-
textTransform: 'uppercase',
|
|
79
101
|
color: COLORS.NEUTRAL_7,
|
|
80
102
|
},
|
|
81
103
|
content: {
|
|
82
|
-
|
|
83
|
-
flexDirection: 'row',
|
|
84
|
-
gap: SPACING[200],
|
|
104
|
+
flex: 1,
|
|
85
105
|
},
|
|
86
106
|
loader: {
|
|
87
107
|
flex: 1,
|
|
@@ -1,65 +1,65 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { StyleSheet, Text, View } from 'react-native'
|
|
3
|
-
import {
|
|
4
|
-
import { getOperatorBandColors } from '../../fluencyTeacher.helpers'
|
|
5
|
-
import { FluencyOperator } from '../../fluencyTeacher.constants'
|
|
3
|
+
import { COLORS, FONT_FAMILY, SPACING } from '@magmamath/react-native-ui'
|
|
6
4
|
|
|
7
|
-
type DrawerOperatorStatCardProps = {
|
|
5
|
+
export type DrawerOperatorStatCardProps = {
|
|
8
6
|
title: string
|
|
9
|
-
value: number
|
|
7
|
+
value: number | string
|
|
10
8
|
symbol: string
|
|
11
|
-
|
|
9
|
+
color: string
|
|
12
10
|
}
|
|
13
11
|
|
|
14
12
|
export const DrawerOperatorStatCard = ({
|
|
15
13
|
title,
|
|
16
14
|
value,
|
|
17
15
|
symbol,
|
|
18
|
-
|
|
19
|
-
}: DrawerOperatorStatCardProps) =>
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
<View style={styles.titleRow}>
|
|
24
|
-
<Text style={[styles.symbol, { color: text }]}>{symbol}</Text>
|
|
25
|
-
<Text style={[styles.title, { color: text }]} numberOfLines={1}>
|
|
26
|
-
{title}
|
|
27
|
-
</Text>
|
|
28
|
-
</View>
|
|
29
|
-
<Text style={[styles.value, { color: text }]}>{value}%</Text>
|
|
16
|
+
color,
|
|
17
|
+
}: DrawerOperatorStatCardProps) => (
|
|
18
|
+
<View style={styles.container}>
|
|
19
|
+
<View style={[styles.iconContainer, { backgroundColor: color + '26' }]}>
|
|
20
|
+
<Text style={[styles.symbol, { color }]}>{symbol}</Text>
|
|
30
21
|
</View>
|
|
31
|
-
|
|
32
|
-
}
|
|
22
|
+
<View>
|
|
23
|
+
<Text style={styles.title}>{title}</Text>
|
|
24
|
+
<Text style={styles.value}>{value}%</Text>
|
|
25
|
+
</View>
|
|
26
|
+
</View>
|
|
27
|
+
)
|
|
33
28
|
|
|
34
29
|
const styles = StyleSheet.create({
|
|
35
30
|
container: {
|
|
36
31
|
flex: 1,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
32
|
+
flexDirection: 'row',
|
|
33
|
+
alignItems: 'center',
|
|
34
|
+
gap: SPACING[300],
|
|
35
|
+
padding: SPACING[300],
|
|
36
|
+
borderRadius: SPACING[300],
|
|
41
37
|
borderWidth: 1,
|
|
38
|
+
borderColor: COLORS.NEUTRAL_4,
|
|
39
|
+
backgroundColor: COLORS.NEUTRAL_2,
|
|
42
40
|
},
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
iconContainer: {
|
|
42
|
+
width: 32,
|
|
43
|
+
height: 32,
|
|
44
|
+
borderRadius: SPACING[200],
|
|
45
45
|
alignItems: 'center',
|
|
46
|
-
|
|
46
|
+
justifyContent: 'center',
|
|
47
47
|
},
|
|
48
48
|
symbol: {
|
|
49
|
-
width: 16,
|
|
50
49
|
fontFamily: FONT_FAMILY.buenosAiresBold,
|
|
51
|
-
fontSize:
|
|
52
|
-
|
|
50
|
+
fontSize: 28,
|
|
51
|
+
marginBottom: 2,
|
|
53
52
|
},
|
|
54
53
|
title: {
|
|
55
|
-
flexShrink: 1,
|
|
56
54
|
fontFamily: FONT_FAMILY.buenosAires,
|
|
57
55
|
fontWeight: '400',
|
|
58
|
-
fontSize:
|
|
56
|
+
fontSize: 12,
|
|
57
|
+
color: COLORS.NEUTRAL_7,
|
|
59
58
|
},
|
|
60
59
|
value: {
|
|
61
|
-
fontFamily: FONT_FAMILY.
|
|
62
|
-
fontWeight: '
|
|
63
|
-
fontSize:
|
|
60
|
+
fontFamily: FONT_FAMILY.buenosAiresBold,
|
|
61
|
+
fontWeight: '700',
|
|
62
|
+
fontSize: 18,
|
|
63
|
+
color: COLORS.NEUTRAL_10,
|
|
64
64
|
},
|
|
65
65
|
})
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { StyleSheet, View } from 'react-native'
|
|
3
|
-
import { SPACING } from '@magmamath/react-native-ui'
|
|
3
|
+
import { COLORS, SPACING } from '@magmamath/react-native-ui'
|
|
4
4
|
import { useText } from '../../../../i18n/i18n'
|
|
5
|
-
import { useTeacherFluency } from '../../context/TeacherFluencyContext'
|
|
6
5
|
import { DrawerOperatorStatCard } from './DrawerOperatorStatCard'
|
|
7
6
|
import type { StudentOperatorScores } from '../../fluencyTeacher.types'
|
|
8
7
|
|
|
9
|
-
import {
|
|
10
|
-
import { getOperatorsForGrade } from '../../fluencyTeacher.helpers'
|
|
8
|
+
import { FluencyMathOperatorSymbol } from '../../fluencyTeacher.constants'
|
|
11
9
|
|
|
12
10
|
type DrawerStatsProps = {
|
|
13
11
|
scores: StudentOperatorScores
|
|
@@ -15,18 +13,32 @@ type DrawerStatsProps = {
|
|
|
15
13
|
|
|
16
14
|
export const DrawerStats = ({ scores }: DrawerStatsProps) => {
|
|
17
15
|
const t = useText()
|
|
18
|
-
const { grade } = useTeacherFluency()
|
|
19
16
|
return (
|
|
20
17
|
<View style={styles.container}>
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
18
|
+
<DrawerOperatorStatCard
|
|
19
|
+
title={t('student.fluency.addition')}
|
|
20
|
+
symbol={FluencyMathOperatorSymbol.ADDITION}
|
|
21
|
+
color={COLORS.PRIMARY_GREEN}
|
|
22
|
+
value={scores.addition}
|
|
23
|
+
/>
|
|
24
|
+
<DrawerOperatorStatCard
|
|
25
|
+
title={t('student.fluency.subtraction')}
|
|
26
|
+
symbol={FluencyMathOperatorSymbol.SUBTRACTION}
|
|
27
|
+
color={COLORS.PRIMARY_ORANGE}
|
|
28
|
+
value={scores.subtraction}
|
|
29
|
+
/>
|
|
30
|
+
<DrawerOperatorStatCard
|
|
31
|
+
title={t('student.fluency.multiplication')}
|
|
32
|
+
symbol={FluencyMathOperatorSymbol.MULTIPLICATION}
|
|
33
|
+
color={COLORS.PRIMARY_BLUE}
|
|
34
|
+
value={scores.multiplication}
|
|
35
|
+
/>
|
|
36
|
+
<DrawerOperatorStatCard
|
|
37
|
+
title={t('student.fluency.division')}
|
|
38
|
+
symbol={FluencyMathOperatorSymbol.DIVISION}
|
|
39
|
+
color={COLORS.PRIMARY_PURPLE}
|
|
40
|
+
value={scores.division}
|
|
41
|
+
/>
|
|
30
42
|
</View>
|
|
31
43
|
)
|
|
32
44
|
}
|
|
@@ -34,7 +46,7 @@ export const DrawerStats = ({ scores }: DrawerStatsProps) => {
|
|
|
34
46
|
const styles = StyleSheet.create({
|
|
35
47
|
container: {
|
|
36
48
|
flexDirection: 'row',
|
|
37
|
-
gap: SPACING[
|
|
38
|
-
paddingBottom: SPACING[
|
|
49
|
+
gap: SPACING[300],
|
|
50
|
+
paddingBottom: SPACING[300],
|
|
39
51
|
},
|
|
40
52
|
})
|
|
@@ -7,8 +7,9 @@ import { DrawerHeader } from './DrawerHeader'
|
|
|
7
7
|
import { DrawerStats } from './DrawerStats'
|
|
8
8
|
import { DrawerMatrixes } from './DrawerMatrixes'
|
|
9
9
|
import { useTeacherFluency } from '../../context/TeacherFluencyContext'
|
|
10
|
+
import { DrawerMasteryLegend } from './DrawerMasteryLegend'
|
|
10
11
|
|
|
11
|
-
const DRAWER_WIDTH =
|
|
12
|
+
const DRAWER_WIDTH = 700
|
|
12
13
|
const BACKDROP_COLOR = 'rgba(0, 0, 0, 0.2)'
|
|
13
14
|
|
|
14
15
|
const backdropOpacity = new Animated.Value(0)
|
|
@@ -54,6 +55,7 @@ export const FluencyTeacherDrawer = () => {
|
|
|
54
55
|
<DrawerStats scores={student.scores} />
|
|
55
56
|
<ScrollView showsVerticalScrollIndicator={false}>
|
|
56
57
|
<DrawerMatrixes />
|
|
58
|
+
<DrawerMasteryLegend />
|
|
57
59
|
</ScrollView>
|
|
58
60
|
</View>
|
|
59
61
|
</Animated.View>
|
|
@@ -76,13 +78,12 @@ const styles = StyleSheet.create({
|
|
|
76
78
|
right: 0,
|
|
77
79
|
bottom: 0,
|
|
78
80
|
width: DRAWER_WIDTH,
|
|
79
|
-
maxWidth: '100%',
|
|
80
81
|
backgroundColor: COLORS.NEUTRAL_1,
|
|
81
82
|
...SHADOWS[3],
|
|
82
83
|
},
|
|
83
84
|
content: {
|
|
84
85
|
flex: 1,
|
|
85
|
-
paddingVertical: SPACING[
|
|
86
|
-
paddingHorizontal: SPACING[
|
|
86
|
+
paddingVertical: SPACING[500],
|
|
87
|
+
paddingHorizontal: SPACING[700],
|
|
87
88
|
},
|
|
88
89
|
})
|
|
@@ -5,15 +5,14 @@ import { COLORS, FONT_FAMILY } from '@magmamath/react-native-ui'
|
|
|
5
5
|
import { useText } from '../../../../i18n/i18n'
|
|
6
6
|
import { MatrixHeaderRow } from './MatrixHeaderRow'
|
|
7
7
|
import { MatrixRow } from './MatrixRow'
|
|
8
|
-
import {
|
|
9
|
-
import type { DrawerGrid } from '../../fluencyTeacher.types'
|
|
8
|
+
import type { DrawerGrid } from '../../hooks/useDrawerGrid'
|
|
10
9
|
|
|
11
10
|
type DrawerMatrixProps = {
|
|
12
11
|
grid: DrawerGrid | null
|
|
13
12
|
cellSize: number
|
|
14
13
|
fontSize: number
|
|
15
14
|
borderRadius: number
|
|
16
|
-
cellColorMap: Record<
|
|
15
|
+
cellColorMap: Record<number, string>
|
|
17
16
|
onLayout: (e: LayoutChangeEvent) => void
|
|
18
17
|
}
|
|
19
18
|
|
|
@@ -1,24 +1,27 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import { StyleSheet, View } from 'react-native'
|
|
2
|
+
import { StyleSheet, Text, View } from 'react-native'
|
|
3
|
+
import { COLORS, FONT_FAMILY } from '@magmamath/react-native-ui'
|
|
3
4
|
import { getCellColor } from '../../fluencyTeacher.helpers'
|
|
4
|
-
import { MasteryLevel } from '../../fluencyTeacher.constants'
|
|
5
5
|
|
|
6
|
-
type MatrixCellProps = {
|
|
7
|
-
box:
|
|
6
|
+
export type MatrixCellProps = {
|
|
7
|
+
box: number | null
|
|
8
8
|
isEmpty: boolean
|
|
9
9
|
cellSize: number
|
|
10
10
|
borderRadius: number
|
|
11
|
-
colorMap: Record<
|
|
11
|
+
colorMap: Record<number, string>
|
|
12
|
+
fontSize: number
|
|
12
13
|
}
|
|
13
14
|
|
|
14
|
-
export const MatrixCell = ({ box, isEmpty, cellSize, borderRadius, colorMap }: MatrixCellProps) => (
|
|
15
|
+
export const MatrixCell = ({ box, isEmpty, cellSize, borderRadius, colorMap, fontSize }: MatrixCellProps) => (
|
|
15
16
|
<View
|
|
16
17
|
style={[
|
|
17
18
|
styles.cell,
|
|
18
19
|
{ width: cellSize, height: cellSize, borderRadius },
|
|
19
20
|
{ backgroundColor: isEmpty ? 'transparent' : getCellColor(box, colorMap) },
|
|
20
21
|
]}
|
|
21
|
-
|
|
22
|
+
>
|
|
23
|
+
{isEmpty && <Text style={[styles.label, { fontSize }]}>-</Text>}
|
|
24
|
+
</View>
|
|
22
25
|
)
|
|
23
26
|
|
|
24
27
|
const styles = StyleSheet.create({
|
|
@@ -26,4 +29,10 @@ const styles = StyleSheet.create({
|
|
|
26
29
|
alignItems: 'center',
|
|
27
30
|
justifyContent: 'center',
|
|
28
31
|
},
|
|
32
|
+
label: {
|
|
33
|
+
color: COLORS.NEUTRAL_7,
|
|
34
|
+
fontFamily: FONT_FAMILY.buenosAires,
|
|
35
|
+
fontWeight: '600',
|
|
36
|
+
textAlign: 'center',
|
|
37
|
+
},
|
|
29
38
|
})
|
|
@@ -2,7 +2,7 @@ import React from 'react'
|
|
|
2
2
|
import { StyleSheet, Text, View } from 'react-native'
|
|
3
3
|
import { COLORS, FONT_FAMILY } from '@magmamath/react-native-ui'
|
|
4
4
|
|
|
5
|
-
type MatrixHeaderRowProps = {
|
|
5
|
+
export type MatrixHeaderRowProps = {
|
|
6
6
|
colLabels: number[]
|
|
7
7
|
cellSize: number
|
|
8
8
|
fontSize: number
|
|
@@ -2,15 +2,14 @@ import React from 'react'
|
|
|
2
2
|
import { StyleSheet, Text, View } from 'react-native'
|
|
3
3
|
import { COLORS, FONT_FAMILY } from '@magmamath/react-native-ui'
|
|
4
4
|
import { MatrixCell } from './MatrixCell'
|
|
5
|
-
import {
|
|
6
|
-
import type { DrawerGridCell } from '../../fluencyTeacher.types'
|
|
5
|
+
import type { DrawerGridCell } from '../../hooks/useDrawerGrid'
|
|
7
6
|
|
|
8
|
-
type MatrixRowProps = {
|
|
7
|
+
export type MatrixRowProps = {
|
|
9
8
|
label: number
|
|
10
9
|
cells: DrawerGridCell[]
|
|
11
10
|
cellSize: number
|
|
12
11
|
borderRadius: number
|
|
13
|
-
colorMap: Record<
|
|
12
|
+
colorMap: Record<number, string>
|
|
14
13
|
fontSize: number
|
|
15
14
|
}
|
|
16
15
|
|
|
@@ -34,6 +33,7 @@ export const MatrixRow = ({
|
|
|
34
33
|
cellSize={cellSize}
|
|
35
34
|
borderRadius={borderRadius}
|
|
36
35
|
colorMap={colorMap}
|
|
36
|
+
fontSize={fontSize}
|
|
37
37
|
/>
|
|
38
38
|
))}
|
|
39
39
|
</View>
|