@magmamath/students-features 1.8.0-rc.0-fluency-visuals → 1.8.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/EquationContent.js +8 -9
- 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 +1 -3
- 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 +10 -63
- 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 +0 -10
- 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 +2 -0
- package/dist/commonjs/features/fluency/components/fluency-solving/components/FluencySolvingProgress.js.map +1 -1
- package/dist/commonjs/features/fluency/index.js +0 -20
- package/dist/commonjs/features/fluency/index.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/assets/{SortDefaultIcon.js → DivisionIcon.js} +11 -8
- package/dist/commonjs/features/fluency-teacher/assets/DivisionIcon.js.map +1 -0
- package/dist/commonjs/features/fluency-teacher/components/FluencyTeacher.js +4 -3
- package/dist/commonjs/features/fluency-teacher/components/FluencyTeacher.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/drawer/DrawerHeader.js +48 -43
- package/dist/commonjs/features/fluency-teacher/components/drawer/DrawerHeader.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/drawer/DrawerMatrixes.js +11 -28
- package/dist/commonjs/features/fluency-teacher/components/drawer/DrawerMatrixes.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/drawer/DrawerOperatorBox.js +27 -44
- package/dist/commonjs/features/fluency-teacher/components/drawer/DrawerOperatorBox.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/drawer/DrawerOperatorStatCard.js +47 -40
- package/dist/commonjs/features/fluency-teacher/components/drawer/DrawerOperatorStatCard.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/drawer/DrawerStats.js +14 -24
- 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 +2 -16
- package/dist/commonjs/features/fluency-teacher/components/matrix/MatrixCell.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/matrix/MatrixLegend.js +83 -0
- package/dist/commonjs/features/fluency-teacher/components/matrix/MatrixLegend.js.map +1 -0
- package/dist/commonjs/features/fluency-teacher/components/matrix/MatrixRow.js +1 -2
- package/dist/commonjs/features/fluency-teacher/components/matrix/MatrixRow.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/table/AllPupilsTableRow.js +15 -41
- package/dist/commonjs/features/fluency-teacher/components/table/AllPupilsTableRow.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/table/AverageCell.js +55 -0
- package/dist/commonjs/features/fluency-teacher/components/table/AverageCell.js.map +1 -0
- package/dist/commonjs/features/fluency-teacher/components/table/AverageSortButton.js +6 -62
- package/dist/commonjs/features/fluency-teacher/components/table/AverageSortButton.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/table/FluencyTeacherStudentsTable.js +42 -40
- package/dist/commonjs/features/fluency-teacher/components/table/FluencyTeacherStudentsTable.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/table/OperatorBadge.js +25 -16
- package/dist/commonjs/features/fluency-teacher/components/table/OperatorBadge.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/table/SortOrderCarets.js +40 -0
- package/dist/commonjs/features/fluency-teacher/components/table/SortOrderCarets.js.map +1 -0
- package/dist/commonjs/features/fluency-teacher/components/table/TableColumnSortButton.js +30 -40
- package/dist/commonjs/features/fluency-teacher/components/table/TableColumnSortButton.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/table/TableRow.js +59 -72
- package/dist/commonjs/features/fluency-teacher/components/table/TableRow.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/components/table/tableCell.styles.js +45 -0
- package/dist/commonjs/features/fluency-teacher/components/table/tableCell.styles.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 +103 -38
- package/dist/commonjs/features/fluency-teacher/fluencyTeacher.constants.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/fluencyTeacher.helpers.js +52 -10
- package/dist/commonjs/features/fluency-teacher/fluencyTeacher.helpers.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/hooks/useDrawerGrid.js +3 -2
- 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 +2 -1
- package/dist/commonjs/features/fluency-teacher/model/TeacherFluencyFiltersModel.js.map +1 -1
- package/dist/commonjs/features/fluency-teacher/model/TeacherFluencyModel.js +9 -0
- 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/EquationContent.js +8 -9
- 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 +1 -3
- 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 +11 -64
- 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 +0 -10
- 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 +2 -0
- package/dist/module/features/fluency/components/fluency-solving/components/FluencySolvingProgress.js.map +1 -1
- package/dist/module/features/fluency/index.js +0 -2
- package/dist/module/features/fluency/index.js.map +1 -1
- package/dist/module/features/fluency-teacher/assets/DivisionIcon.js +26 -0
- package/dist/module/features/fluency-teacher/assets/DivisionIcon.js.map +1 -0
- package/dist/module/features/fluency-teacher/components/FluencyTeacher.js +4 -3
- package/dist/module/features/fluency-teacher/components/FluencyTeacher.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/drawer/DrawerHeader.js +49 -44
- package/dist/module/features/fluency-teacher/components/drawer/DrawerHeader.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/drawer/DrawerMatrixes.js +14 -31
- package/dist/module/features/fluency-teacher/components/drawer/DrawerMatrixes.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/drawer/DrawerOperatorBox.js +28 -45
- package/dist/module/features/fluency-teacher/components/drawer/DrawerOperatorBox.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/drawer/DrawerOperatorStatCard.js +48 -41
- package/dist/module/features/fluency-teacher/components/drawer/DrawerOperatorStatCard.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/drawer/DrawerStats.js +17 -27
- 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 +3 -17
- package/dist/module/features/fluency-teacher/components/matrix/MatrixCell.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/matrix/MatrixLegend.js +77 -0
- package/dist/module/features/fluency-teacher/components/matrix/MatrixLegend.js.map +1 -0
- package/dist/module/features/fluency-teacher/components/matrix/MatrixRow.js +1 -2
- package/dist/module/features/fluency-teacher/components/matrix/MatrixRow.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/table/AllPupilsTableRow.js +16 -42
- package/dist/module/features/fluency-teacher/components/table/AllPupilsTableRow.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/table/AverageCell.js +49 -0
- package/dist/module/features/fluency-teacher/components/table/AverageCell.js.map +1 -0
- package/dist/module/features/fluency-teacher/components/table/AverageSortButton.js +7 -63
- package/dist/module/features/fluency-teacher/components/table/AverageSortButton.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/table/FluencyTeacherStudentsTable.js +44 -42
- package/dist/module/features/fluency-teacher/components/table/FluencyTeacherStudentsTable.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/table/OperatorBadge.js +25 -16
- package/dist/module/features/fluency-teacher/components/table/OperatorBadge.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/table/SortOrderCarets.js +34 -0
- package/dist/module/features/fluency-teacher/components/table/SortOrderCarets.js.map +1 -0
- package/dist/module/features/fluency-teacher/components/table/TableColumnSortButton.js +32 -42
- package/dist/module/features/fluency-teacher/components/table/TableColumnSortButton.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/table/TableRow.js +62 -75
- package/dist/module/features/fluency-teacher/components/table/TableRow.js.map +1 -1
- package/dist/module/features/fluency-teacher/components/table/tableCell.styles.js +42 -0
- package/dist/module/features/fluency-teacher/components/table/tableCell.styles.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 +102 -37
- package/dist/module/features/fluency-teacher/fluencyTeacher.constants.js.map +1 -1
- package/dist/module/features/fluency-teacher/fluencyTeacher.helpers.js +43 -8
- package/dist/module/features/fluency-teacher/fluencyTeacher.helpers.js.map +1 -1
- package/dist/module/features/fluency-teacher/hooks/useDrawerGrid.js +3 -2
- 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 +2 -1
- package/dist/module/features/fluency-teacher/model/TeacherFluencyFiltersModel.js.map +1 -1
- package/dist/module/features/fluency-teacher/model/TeacherFluencyModel.js +9 -0
- package/dist/module/features/fluency-teacher/model/TeacherFluencyModel.js.map +1 -1
- 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 +1 -2
- 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 +0 -2
- package/dist/typescript/commonjs/features/fluency/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/assets/DivisionIcon.d.ts +4 -0
- package/dist/typescript/commonjs/features/fluency-teacher/assets/DivisionIcon.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/DrawerMatrixes.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/drawer/DrawerOperatorBox.d.ts +1 -4
- 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 +6 -4
- 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 +3 -2
- 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 +6 -5
- 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 +2 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/matrix/MatrixHeaderRow.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/matrix/MatrixLegend.d.ts +10 -0
- package/dist/typescript/commonjs/features/fluency-teacher/components/matrix/MatrixLegend.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency-teacher/components/matrix/MatrixRow.d.ts +5 -3
- 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/AverageCell.d.ts +9 -0
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/AverageCell.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/AverageSortButton.d.ts +2 -1
- 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 +5 -4
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/OperatorBadge.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/SortOrderCarets.d.ts +9 -0
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/SortOrderCarets.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/TableColumnSortButton.d.ts +7 -6
- 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 +4 -3
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/TableRow.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/tableCell.styles.d.ts +35 -0
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/tableCell.styles.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/fluency-teacher/context/TeacherFluencyContext.d.ts +1 -0
- 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 +16 -3
- 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 +11 -4
- 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 +35 -6
- 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 +1 -12
- 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 +1 -0
- 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/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 +1 -2
- 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 +0 -2
- package/dist/typescript/module/features/fluency/index.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/assets/DivisionIcon.d.ts +4 -0
- package/dist/typescript/module/features/fluency-teacher/assets/DivisionIcon.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/DrawerMatrixes.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/components/drawer/DrawerOperatorBox.d.ts +1 -4
- 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 +6 -4
- 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 +3 -2
- 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 +6 -5
- 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 +2 -1
- package/dist/typescript/module/features/fluency-teacher/components/matrix/MatrixHeaderRow.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/components/matrix/MatrixLegend.d.ts +10 -0
- package/dist/typescript/module/features/fluency-teacher/components/matrix/MatrixLegend.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency-teacher/components/matrix/MatrixRow.d.ts +5 -3
- 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/AverageCell.d.ts +9 -0
- package/dist/typescript/module/features/fluency-teacher/components/table/AverageCell.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency-teacher/components/table/AverageSortButton.d.ts +2 -1
- 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 +5 -4
- package/dist/typescript/module/features/fluency-teacher/components/table/OperatorBadge.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/components/table/SortOrderCarets.d.ts +9 -0
- package/dist/typescript/module/features/fluency-teacher/components/table/SortOrderCarets.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency-teacher/components/table/TableColumnSortButton.d.ts +7 -6
- 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 +4 -3
- package/dist/typescript/module/features/fluency-teacher/components/table/TableRow.d.ts.map +1 -1
- package/dist/typescript/module/features/fluency-teacher/components/table/tableCell.styles.d.ts +35 -0
- package/dist/typescript/module/features/fluency-teacher/components/table/tableCell.styles.d.ts.map +1 -0
- package/dist/typescript/module/features/fluency-teacher/context/TeacherFluencyContext.d.ts +1 -0
- 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 +16 -3
- 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 +11 -4
- 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 +35 -6
- 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 +1 -12
- 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 +1 -0
- 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/EquationContent.tsx +8 -12
- package/src/features/fluency/components/fluency-solving/components/FluencyCardDeck.tsx +1 -6
- package/src/features/fluency/components/fluency-solving/components/FluencyEquationCard.tsx +11 -63
- package/src/features/fluency/components/fluency-solving/components/FluencySolvingHeader.tsx +0 -9
- package/src/features/fluency/components/fluency-solving/components/FluencySolvingProgress.tsx +2 -0
- package/src/features/fluency/index.ts +0 -2
- package/src/features/fluency-teacher/assets/DivisionIcon.tsx +20 -0
- package/src/features/fluency-teacher/components/FluencyTeacher.tsx +3 -3
- package/src/features/fluency-teacher/components/drawer/DrawerHeader.tsx +37 -35
- package/src/features/fluency-teacher/components/drawer/DrawerMatrixes.tsx +13 -32
- package/src/features/fluency-teacher/components/drawer/DrawerOperatorBox.tsx +20 -40
- package/src/features/fluency-teacher/components/drawer/DrawerOperatorStatCard.tsx +35 -35
- package/src/features/fluency-teacher/components/drawer/DrawerStats.tsx +16 -28
- package/src/features/fluency-teacher/components/drawer/FluencyTeacherDrawer.tsx +4 -5
- package/src/features/fluency-teacher/components/matrix/DrawerMatrix.tsx +3 -2
- package/src/features/fluency-teacher/components/matrix/MatrixCell.tsx +7 -16
- package/src/features/fluency-teacher/components/matrix/MatrixHeaderRow.tsx +1 -1
- package/src/features/fluency-teacher/components/matrix/MatrixLegend.tsx +81 -0
- package/src/features/fluency-teacher/components/matrix/MatrixRow.tsx +4 -4
- package/src/features/fluency-teacher/components/table/AllPupilsTableRow.tsx +13 -40
- package/src/features/fluency-teacher/components/table/AverageCell.tsx +45 -0
- package/src/features/fluency-teacher/components/table/AverageSortButton.tsx +8 -62
- package/src/features/fluency-teacher/components/table/FluencyTeacherStudentsTable.tsx +49 -35
- package/src/features/fluency-teacher/components/table/OperatorBadge.tsx +18 -11
- package/src/features/fluency-teacher/components/table/SortOrderCarets.tsx +37 -0
- package/src/features/fluency-teacher/components/table/TableColumnSortButton.tsx +28 -49
- package/src/features/fluency-teacher/components/table/TableRow.tsx +65 -64
- package/src/features/fluency-teacher/components/table/tableCell.styles.ts +39 -0
- package/src/features/fluency-teacher/context/TeacherFluencyContext.ts +1 -0
- package/src/features/fluency-teacher/fluencyTeacher.constants.ts +138 -40
- package/src/features/fluency-teacher/fluencyTeacher.helpers.ts +82 -10
- package/src/features/fluency-teacher/fluencyTeacher.types.ts +39 -6
- package/src/features/fluency-teacher/hooks/useDrawerGrid.ts +4 -7
- package/src/features/fluency-teacher/hooks/useDrawerMatrix.ts +4 -3
- package/src/features/fluency-teacher/model/TeacherFluencyFiltersModel.ts +8 -5
- package/src/features/fluency-teacher/model/TeacherFluencyModel.ts +8 -0
- package/dist/commonjs/features/fluency/components/FluencyVisualPlayground.js +0 -386
- package/dist/commonjs/features/fluency/components/FluencyVisualPlayground.js.map +0 -1
- package/dist/commonjs/features/fluency/components/fluency-solving/components/DebugBoxIndicator.js +0 -48
- package/dist/commonjs/features/fluency/components/fluency-solving/components/DebugBoxIndicator.js.map +0 -1
- package/dist/commonjs/features/fluency/visual-scaffolding/adapter.js +0 -36
- package/dist/commonjs/features/fluency/visual-scaffolding/adapter.js.map +0 -1
- package/dist/commonjs/features/fluency/visual-scaffolding/components/DiscreteCounterGrid.js +0 -232
- package/dist/commonjs/features/fluency/visual-scaffolding/components/DiscreteCounterGrid.js.map +0 -1
- package/dist/commonjs/features/fluency/visual-scaffolding/components/Dot.js +0 -51
- package/dist/commonjs/features/fluency/visual-scaffolding/components/Dot.js.map +0 -1
- package/dist/commonjs/features/fluency/visual-scaffolding/components/DynamicNumberLine.js +0 -104
- package/dist/commonjs/features/fluency/visual-scaffolding/components/DynamicNumberLine.js.map +0 -1
- package/dist/commonjs/features/fluency/visual-scaffolding/components/FactVisual.js +0 -75
- package/dist/commonjs/features/fluency/visual-scaffolding/components/FactVisual.js.map +0 -1
- package/dist/commonjs/features/fluency/visual-scaffolding/components/QuotativeBars.js +0 -91
- package/dist/commonjs/features/fluency/visual-scaffolding/components/QuotativeBars.js.map +0 -1
- package/dist/commonjs/features/fluency/visual-scaffolding/components/RelationalBlock.js +0 -279
- package/dist/commonjs/features/fluency/visual-scaffolding/components/RelationalBlock.js.map +0 -1
- package/dist/commonjs/features/fluency/visual-scaffolding/components/visualColors.js +0 -44
- package/dist/commonjs/features/fluency/visual-scaffolding/components/visualColors.js.map +0 -1
- package/dist/commonjs/features/fluency/visual-scaffolding/index.js +0 -73
- package/dist/commonjs/features/fluency/visual-scaffolding/index.js.map +0 -1
- package/dist/commonjs/features/fluency/visual-scaffolding/renderFact.js +0 -276
- package/dist/commonjs/features/fluency/visual-scaffolding/renderFact.js.map +0 -1
- package/dist/commonjs/features/fluency/visual-scaffolding/types.js +0 -2
- package/dist/commonjs/features/fluency/visual-scaffolding/types.js.map +0 -1
- package/dist/commonjs/features/fluency-teacher/assets/SortDefaultIcon.js.map +0 -1
- package/dist/commonjs/features/fluency-teacher/components/drawer/DrawerMasteryLegend.js +0 -80
- package/dist/commonjs/features/fluency-teacher/components/drawer/DrawerMasteryLegend.js.map +0 -1
- package/dist/commonjs/features/fluency-teacher/components/table/TableRowAverageProgress.js +0 -71
- package/dist/commonjs/features/fluency-teacher/components/table/TableRowAverageProgress.js.map +0 -1
- package/dist/module/features/fluency/components/FluencyVisualPlayground.js +0 -379
- package/dist/module/features/fluency/components/FluencyVisualPlayground.js.map +0 -1
- package/dist/module/features/fluency/components/fluency-solving/components/DebugBoxIndicator.js +0 -43
- package/dist/module/features/fluency/components/fluency-solving/components/DebugBoxIndicator.js.map +0 -1
- package/dist/module/features/fluency/visual-scaffolding/adapter.js +0 -31
- package/dist/module/features/fluency/visual-scaffolding/adapter.js.map +0 -1
- package/dist/module/features/fluency/visual-scaffolding/components/DiscreteCounterGrid.js +0 -225
- package/dist/module/features/fluency/visual-scaffolding/components/DiscreteCounterGrid.js.map +0 -1
- package/dist/module/features/fluency/visual-scaffolding/components/Dot.js +0 -45
- package/dist/module/features/fluency/visual-scaffolding/components/Dot.js.map +0 -1
- package/dist/module/features/fluency/visual-scaffolding/components/DynamicNumberLine.js +0 -96
- package/dist/module/features/fluency/visual-scaffolding/components/DynamicNumberLine.js.map +0 -1
- package/dist/module/features/fluency/visual-scaffolding/components/FactVisual.js +0 -69
- package/dist/module/features/fluency/visual-scaffolding/components/FactVisual.js.map +0 -1
- package/dist/module/features/fluency/visual-scaffolding/components/QuotativeBars.js +0 -83
- package/dist/module/features/fluency/visual-scaffolding/components/QuotativeBars.js.map +0 -1
- package/dist/module/features/fluency/visual-scaffolding/components/RelationalBlock.js +0 -272
- package/dist/module/features/fluency/visual-scaffolding/components/RelationalBlock.js.map +0 -1
- package/dist/module/features/fluency/visual-scaffolding/components/visualColors.js +0 -41
- package/dist/module/features/fluency/visual-scaffolding/components/visualColors.js.map +0 -1
- package/dist/module/features/fluency/visual-scaffolding/index.js +0 -8
- package/dist/module/features/fluency/visual-scaffolding/index.js.map +0 -1
- package/dist/module/features/fluency/visual-scaffolding/renderFact.js +0 -269
- package/dist/module/features/fluency/visual-scaffolding/renderFact.js.map +0 -1
- package/dist/module/features/fluency/visual-scaffolding/types.js +0 -2
- package/dist/module/features/fluency/visual-scaffolding/types.js.map +0 -1
- package/dist/module/features/fluency-teacher/assets/SortDefaultIcon.js +0 -23
- package/dist/module/features/fluency-teacher/assets/SortDefaultIcon.js.map +0 -1
- package/dist/module/features/fluency-teacher/components/drawer/DrawerMasteryLegend.js +0 -74
- package/dist/module/features/fluency-teacher/components/drawer/DrawerMasteryLegend.js.map +0 -1
- package/dist/module/features/fluency-teacher/components/table/TableRowAverageProgress.js +0 -65
- package/dist/module/features/fluency-teacher/components/table/TableRowAverageProgress.js.map +0 -1
- package/dist/typescript/commonjs/features/fluency/components/FluencyVisualPlayground.d.ts +0 -8
- package/dist/typescript/commonjs/features/fluency/components/FluencyVisualPlayground.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/fluency/components/fluency-solving/components/DebugBoxIndicator.d.ts +0 -3
- package/dist/typescript/commonjs/features/fluency/components/fluency-solving/components/DebugBoxIndicator.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/__tests__/renderFact.test.d.ts +0 -2
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/__tests__/renderFact.test.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/adapter.d.ts +0 -4
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/adapter.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/DiscreteCounterGrid.d.ts +0 -10
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/DiscreteCounterGrid.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/Dot.d.ts +0 -10
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/Dot.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/DynamicNumberLine.d.ts +0 -10
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/DynamicNumberLine.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/FactVisual.d.ts +0 -10
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/FactVisual.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/QuotativeBars.d.ts +0 -10
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/QuotativeBars.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/RelationalBlock.d.ts +0 -10
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/RelationalBlock.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/visualColors.d.ts +0 -16
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/components/visualColors.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/index.d.ts +0 -6
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/index.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/renderFact.d.ts +0 -23
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/renderFact.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/types.d.ts +0 -103
- package/dist/typescript/commonjs/features/fluency/visual-scaffolding/types.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/fluency-teacher/assets/SortDefaultIcon.d.ts +0 -4
- package/dist/typescript/commonjs/features/fluency-teacher/assets/SortDefaultIcon.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/drawer/DrawerMasteryLegend.d.ts +0 -3
- package/dist/typescript/commonjs/features/fluency-teacher/components/drawer/DrawerMasteryLegend.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/TableRowAverageProgress.d.ts +0 -7
- package/dist/typescript/commonjs/features/fluency-teacher/components/table/TableRowAverageProgress.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency/components/FluencyVisualPlayground.d.ts +0 -8
- package/dist/typescript/module/features/fluency/components/FluencyVisualPlayground.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency/components/fluency-solving/components/DebugBoxIndicator.d.ts +0 -3
- package/dist/typescript/module/features/fluency/components/fluency-solving/components/DebugBoxIndicator.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency/visual-scaffolding/__tests__/renderFact.test.d.ts +0 -2
- package/dist/typescript/module/features/fluency/visual-scaffolding/__tests__/renderFact.test.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency/visual-scaffolding/adapter.d.ts +0 -4
- package/dist/typescript/module/features/fluency/visual-scaffolding/adapter.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/DiscreteCounterGrid.d.ts +0 -10
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/DiscreteCounterGrid.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/Dot.d.ts +0 -10
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/Dot.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/DynamicNumberLine.d.ts +0 -10
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/DynamicNumberLine.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/FactVisual.d.ts +0 -10
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/FactVisual.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/QuotativeBars.d.ts +0 -10
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/QuotativeBars.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/RelationalBlock.d.ts +0 -10
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/RelationalBlock.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/visualColors.d.ts +0 -16
- package/dist/typescript/module/features/fluency/visual-scaffolding/components/visualColors.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency/visual-scaffolding/index.d.ts +0 -6
- package/dist/typescript/module/features/fluency/visual-scaffolding/index.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency/visual-scaffolding/renderFact.d.ts +0 -23
- package/dist/typescript/module/features/fluency/visual-scaffolding/renderFact.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency/visual-scaffolding/types.d.ts +0 -103
- package/dist/typescript/module/features/fluency/visual-scaffolding/types.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency-teacher/assets/SortDefaultIcon.d.ts +0 -4
- package/dist/typescript/module/features/fluency-teacher/assets/SortDefaultIcon.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency-teacher/components/drawer/DrawerMasteryLegend.d.ts +0 -3
- package/dist/typescript/module/features/fluency-teacher/components/drawer/DrawerMasteryLegend.d.ts.map +0 -1
- package/dist/typescript/module/features/fluency-teacher/components/table/TableRowAverageProgress.d.ts +0 -7
- package/dist/typescript/module/features/fluency-teacher/components/table/TableRowAverageProgress.d.ts.map +0 -1
- package/src/features/fluency/components/FluencyVisualPlayground.tsx +0 -272
- package/src/features/fluency/components/fluency-solving/components/DebugBoxIndicator.tsx +0 -40
- package/src/features/fluency/visual-scaffolding/__tests__/__snapshots__/renderFact.test.ts.snap +0 -64
- package/src/features/fluency/visual-scaffolding/__tests__/renderFact.test.ts +0 -192
- package/src/features/fluency/visual-scaffolding/adapter.ts +0 -33
- package/src/features/fluency/visual-scaffolding/components/DiscreteCounterGrid.tsx +0 -222
- package/src/features/fluency/visual-scaffolding/components/Dot.tsx +0 -36
- package/src/features/fluency/visual-scaffolding/components/DynamicNumberLine.tsx +0 -98
- package/src/features/fluency/visual-scaffolding/components/FactVisual.tsx +0 -61
- package/src/features/fluency/visual-scaffolding/components/QuotativeBars.tsx +0 -92
- package/src/features/fluency/visual-scaffolding/components/RelationalBlock.tsx +0 -225
- package/src/features/fluency/visual-scaffolding/components/visualColors.ts +0 -45
- package/src/features/fluency/visual-scaffolding/index.ts +0 -5
- package/src/features/fluency/visual-scaffolding/renderFact.ts +0 -219
- package/src/features/fluency/visual-scaffolding/types.ts +0 -108
- package/src/features/fluency-teacher/assets/SortDefaultIcon.tsx +0 -10
- package/src/features/fluency-teacher/components/drawer/DrawerMasteryLegend.tsx +0 -63
- package/src/features/fluency-teacher/components/table/TableRowAverageProgress.tsx +0 -65
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
import { FluencyOperator } from '../fluencyTeacher.constants';
|
|
2
|
-
|
|
3
|
-
box: number | null;
|
|
4
|
-
isEmpty: boolean;
|
|
5
|
-
};
|
|
6
|
-
export type DrawerGridRow = {
|
|
7
|
-
label: number;
|
|
8
|
-
cells: DrawerGridCell[];
|
|
9
|
-
};
|
|
10
|
-
export type DrawerGrid = {
|
|
11
|
-
colLabels: number[];
|
|
12
|
-
rows: DrawerGridRow[];
|
|
13
|
-
};
|
|
2
|
+
import type { DrawerGrid } from '../fluencyTeacher.types';
|
|
14
3
|
export declare const useDrawerGrid: (operator: FluencyOperator) => DrawerGrid | null;
|
|
15
4
|
//# sourceMappingURL=useDrawerGrid.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDrawerGrid.d.ts","sourceRoot":"","sources":["../../../../../../src/features/fluency-teacher/hooks/useDrawerGrid.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAA;AAE7D,
|
|
1
|
+
{"version":3,"file":"useDrawerGrid.d.ts","sourceRoot":"","sources":["../../../../../../src/features/fluency-teacher/hooks/useDrawerGrid.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAA;AAE7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAEzD,eAAO,MAAM,aAAa,aAAc,eAAe,KAAG,UAAU,GAAG,IA+CtE,CAAA"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { LayoutChangeEvent } from 'react-native';
|
|
2
|
-
import { FluencyOperator } from '../fluencyTeacher.constants';
|
|
3
|
-
import {
|
|
2
|
+
import { FluencyOperator, MasteryLevel } from '../fluencyTeacher.constants';
|
|
3
|
+
import type { DrawerGrid } from '../fluencyTeacher.types';
|
|
4
4
|
type DrawerMatrixLayout = {
|
|
5
5
|
grid: DrawerGrid | null;
|
|
6
6
|
cellSize: number;
|
|
7
7
|
fontSize: number;
|
|
8
8
|
borderRadius: number;
|
|
9
|
-
cellColorMap: Record<
|
|
9
|
+
cellColorMap: Record<MasteryLevel, string>;
|
|
10
10
|
onLayout: (e: LayoutChangeEvent) => void;
|
|
11
11
|
};
|
|
12
12
|
export declare const useDrawerMatrix: (operator: FluencyOperator) => DrawerMatrixLayout;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDrawerMatrix.d.ts","sourceRoot":"","sources":["../../../../../../src/features/fluency-teacher/hooks/useDrawerMatrix.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AACrD,OAAO,EAAE,eAAe,EAAsB,MAAM,6BAA6B,CAAA;
|
|
1
|
+
{"version":3,"file":"useDrawerMatrix.d.ts","sourceRoot":"","sources":["../../../../../../src/features/fluency-teacher/hooks/useDrawerMatrix.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AACrD,OAAO,EAAE,eAAe,EAAE,YAAY,EAAsB,MAAM,6BAA6B,CAAA;AAC/F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAKzD,KAAK,kBAAkB,GAAG;IACxB,IAAI,EAAE,UAAU,GAAG,IAAI,CAAA;IACvB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,YAAY,EAAE,MAAM,CAAA;IACpB,YAAY,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,CAAA;IAC1C,QAAQ,EAAE,CAAC,CAAC,EAAE,iBAAiB,KAAK,IAAI,CAAA;CACzC,CAAA;AAED,eAAO,MAAM,eAAe,aAAc,eAAe,KAAG,kBA2B3D,CAAA"}
|
package/dist/typescript/module/features/fluency-teacher/model/TeacherFluencyFiltersModel.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export declare class TeacherFluencyFiltersModel {
|
|
|
4
4
|
readonly setSearch: import("effector").EventCallable<string>;
|
|
5
5
|
readonly $search: import("effector").StoreWritable<string>;
|
|
6
6
|
readonly toggleSort: import("effector").EventCallable<FluencyTableColumn>;
|
|
7
|
+
readonly resetSort: import("effector").EventCallable<void>;
|
|
7
8
|
readonly $sort: import("effector").StoreWritable<SortState>;
|
|
8
9
|
}
|
|
9
10
|
//# sourceMappingURL=TeacherFluencyFiltersModel.d.ts.map
|
package/dist/typescript/module/features/fluency-teacher/model/TeacherFluencyFiltersModel.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TeacherFluencyFiltersModel.d.ts","sourceRoot":"","sources":["../../../../../../src/features/fluency-teacher/model/TeacherFluencyFiltersModel.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAExD,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAA;AAEhE,qBAAa,0BAA0B;IACrC,SAAgB,SAAS,2CAAwB;IACjD,SAAgB,OAAO,2CAA8B;IAErD,SAAgB,UAAU,uDAAoC;IAC9D,SAAgB,KAAK,
|
|
1
|
+
{"version":3,"file":"TeacherFluencyFiltersModel.d.ts","sourceRoot":"","sources":["../../../../../../src/features/fluency-teacher/model/TeacherFluencyFiltersModel.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAExD,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAA;AAEhE,qBAAa,0BAA0B;IACrC,SAAgB,SAAS,2CAAwB;IACjD,SAAgB,OAAO,2CAA8B;IAErD,SAAgB,UAAU,uDAAoC;IAC9D,SAAgB,SAAS,yCAAgB;IACzC,SAAgB,KAAK,8CAUjB;CACL"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TeacherFluencyModel.d.ts","sourceRoot":"","sources":["../../../../../../src/features/fluency-teacher/model/TeacherFluencyModel.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AACzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"TeacherFluencyModel.d.ts","sourceRoot":"","sources":["../../../../../../src/features/fluency-teacher/model/TeacherFluencyModel.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AACzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AAErE,OAAO,KAAK,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAA;AAEhG,qBAAa,mBAAmB;IAC9B,SAAgB,IAAI,yDAAwC;IAE5D,SAAgB,GAAG,EAAE,sBAAsB,CAAA;IAC3C,SAAgB,OAAO,EAAE,0BAA0B,CAAA;IACnD,SAAgB,KAAK,EAAE,wBAAwB,CAAA;gBAEnC,EAAE,GAAG,EAAE,EAAE,wBAAwB;IAO7C,OAAO,CAAC,IAAI;CA8Bb"}
|
package/package.json
CHANGED
|
@@ -3,8 +3,8 @@ import { View, StyleSheet } from 'react-native'
|
|
|
3
3
|
import { COLORS } from '@magmamath/react-native-ui'
|
|
4
4
|
import { FluencyProvider } from '../context/FluencyContext'
|
|
5
5
|
import { FluencySolvingHeader } from './fluency-solving/components/FluencySolvingHeader'
|
|
6
|
+
import { FluencySolvingProgress } from './fluency-solving/components/FluencySolvingProgress'
|
|
6
7
|
import { FluencySolvingCard } from './fluency-solving/components/FluencySolvingCard'
|
|
7
|
-
import { DebugBoxIndicator } from './fluency-solving/components/DebugBoxIndicator'
|
|
8
8
|
import { FluencySessionResults } from './session-results/FluencySessionResults'
|
|
9
9
|
import { usePreventPageLeave } from '../hooks/usePreventPageLeave'
|
|
10
10
|
import type { FluencyModel } from '../model/FluencyModel'
|
|
@@ -22,8 +22,8 @@ export const FluencySolving = ({ model, onClosePress, onEndModalPress }: Fluency
|
|
|
22
22
|
<FluencyProvider value={{ model }}>
|
|
23
23
|
<View style={styles.container}>
|
|
24
24
|
<FluencySolvingHeader onClosePress={onClosePress} />
|
|
25
|
+
<FluencySolvingProgress />
|
|
25
26
|
<FluencySolvingCard />
|
|
26
|
-
<DebugBoxIndicator />
|
|
27
27
|
</View>
|
|
28
28
|
|
|
29
29
|
<FluencySessionResults onClosePress={onClosePress} onEndModalPress={onEndModalPress} />
|
|
@@ -53,6 +53,10 @@ export const EquationContent = ({
|
|
|
53
53
|
}: EquationContentProps) => {
|
|
54
54
|
const t = useText()
|
|
55
55
|
const modePreset = useFluencySolvingPreset({ mode })
|
|
56
|
+
const labelColor = status ? STATUS_COLOR[status] : COLORS.NEUTRAL_7
|
|
57
|
+
const labelText = status
|
|
58
|
+
? t(STATUS_LABELS[status], { answer: correctAnswer })
|
|
59
|
+
: t('student.fluency.typeYourAnswer')
|
|
56
60
|
const answerAreaColor =
|
|
57
61
|
status === AttemptStatus.INCORRECT ? COLORS.PRIMARY_RED : modePreset.colors.accent
|
|
58
62
|
|
|
@@ -61,14 +65,9 @@ export const EquationContent = ({
|
|
|
61
65
|
|
|
62
66
|
return (
|
|
63
67
|
<>
|
|
64
|
-
{
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
style={[styles.cardLabel, { color: STATUS_COLOR[status] }]}
|
|
68
|
-
>
|
|
69
|
-
{t(STATUS_LABELS[status], { answer: correctAnswer })}
|
|
70
|
-
</Typography>
|
|
71
|
-
)}
|
|
68
|
+
<Typography variant={HeadingVariants.H9} style={[styles.cardLabel, { color: labelColor }]}>
|
|
69
|
+
{labelText}
|
|
70
|
+
</Typography>
|
|
72
71
|
<View style={styles.equationRow}>
|
|
73
72
|
<Typography style={styles.number}>{leftOperand}</Typography>
|
|
74
73
|
<Typography style={[styles.number, { color: modePreset.colors.accent }]}>
|
|
@@ -108,10 +107,7 @@ const styles = StyleSheet.create({
|
|
|
108
107
|
flexDirection: 'row',
|
|
109
108
|
alignItems: 'center',
|
|
110
109
|
gap: SPACING[300],
|
|
111
|
-
|
|
112
|
-
// makes the row's measured box match its visual extent, so the parent
|
|
113
|
-
// centers the equation accurately at any card height (visual or mastered).
|
|
114
|
-
paddingBottom: SPACING[400],
|
|
110
|
+
marginTop: SPACING[600],
|
|
115
111
|
},
|
|
116
112
|
number: {
|
|
117
113
|
fontSize: 75,
|
|
@@ -45,11 +45,7 @@ export const FluencyCardDeck = ({
|
|
|
45
45
|
<Animated.View style={[styles.card, styles.cardMid, snapStyles.mid]} />
|
|
46
46
|
|
|
47
47
|
<Animated.View style={[styles.card, styles.cardNear, snapStyles.near]}>
|
|
48
|
-
<FluencyEquationCard
|
|
49
|
-
cardContent={backingCardContent}
|
|
50
|
-
readOnly
|
|
51
|
-
showVisual={!!exitingCardContent}
|
|
52
|
-
/>
|
|
48
|
+
<FluencyEquationCard cardContent={backingCardContent} readOnly />
|
|
53
49
|
</Animated.View>
|
|
54
50
|
|
|
55
51
|
{!exitingCardContent && (
|
|
@@ -96,7 +92,6 @@ const styles = StyleSheet.create({
|
|
|
96
92
|
height: 260,
|
|
97
93
|
borderRadius: BORDER_RADIUS[400],
|
|
98
94
|
backgroundColor: COLORS.NEUTRAL_1,
|
|
99
|
-
overflow: 'hidden',
|
|
100
95
|
...SHADOWS[5],
|
|
101
96
|
},
|
|
102
97
|
cardFar: {
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import { View, StyleSheet } from 'react-native'
|
|
3
|
-
import { SPACING } from '@magmamath/react-native-ui'
|
|
4
2
|
|
|
5
3
|
import { EquationContent } from './EquationContent'
|
|
6
|
-
import { FactVisual, renderFact, toFactPresentation, VISUAL_COLORS } from '../../../visual-scaffolding'
|
|
7
4
|
import type { FluencyCardDisplayContent, SolvingFact } from '../../../shared/fluencySolving.types'
|
|
8
5
|
import type { AttemptStatus, FluencyMode } from '../../../shared/fluency.constants'
|
|
9
6
|
|
|
@@ -17,10 +14,6 @@ type FluencyEquationCardProps = {
|
|
|
17
14
|
cardContent: FluencyCardDisplayContent
|
|
18
15
|
readOnly?: boolean
|
|
19
16
|
status?: AttemptStatus
|
|
20
|
-
// Whether to render the visual. The deck enables it on the active card, the
|
|
21
|
-
// exiting card, and the backing card *while it steps up*, so the visual is
|
|
22
|
-
// present as fast as the equation (no pop-in after the swipe).
|
|
23
|
-
showVisual?: boolean
|
|
24
17
|
onAnswerChange?: (text: string) => void
|
|
25
18
|
}
|
|
26
19
|
|
|
@@ -39,65 +32,20 @@ export const FluencyEquationCard = ({
|
|
|
39
32
|
cardContent,
|
|
40
33
|
readOnly = false,
|
|
41
34
|
status,
|
|
42
|
-
showVisual = true,
|
|
43
35
|
onAnswerChange,
|
|
44
36
|
}: FluencyEquationCardProps) => {
|
|
45
|
-
const
|
|
46
|
-
const equation = getDisplayedEquation(fact)
|
|
47
|
-
|
|
48
|
-
const presentation = fact && showVisual ? toFactPresentation(fact) : null
|
|
49
|
-
const spec = presentation ? renderFact(presentation) : null
|
|
50
|
-
const colors = presentation ? VISUAL_COLORS[presentation.operation] : null
|
|
51
|
-
// Narrow away the "none" variant (L4/L5 → no visual).
|
|
52
|
-
const visualSpec = spec && spec.kind !== 'none' ? spec : null
|
|
37
|
+
const equation = getDisplayedEquation(cardContent.fact)
|
|
53
38
|
|
|
54
39
|
return (
|
|
55
|
-
<
|
|
56
|
-
{
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
mode={equation.mode}
|
|
66
|
-
value={cardContent.answer}
|
|
67
|
-
readOnly={readOnly}
|
|
68
|
-
status={status}
|
|
69
|
-
correctAnswer={fact?.answer}
|
|
70
|
-
onChange={onAnswerChange}
|
|
71
|
-
/>
|
|
72
|
-
</View>
|
|
73
|
-
</View>
|
|
40
|
+
<EquationContent
|
|
41
|
+
leftOperand={equation.leftOperand}
|
|
42
|
+
rightOperand={equation.rightOperand}
|
|
43
|
+
mode={equation.mode}
|
|
44
|
+
value={cardContent.answer}
|
|
45
|
+
readOnly={readOnly}
|
|
46
|
+
status={status}
|
|
47
|
+
correctAnswer={cardContent.fact?.answer}
|
|
48
|
+
onChange={onAnswerChange}
|
|
49
|
+
/>
|
|
74
50
|
)
|
|
75
51
|
}
|
|
76
|
-
|
|
77
|
-
const styles = StyleSheet.create({
|
|
78
|
-
body: {
|
|
79
|
-
flex: 1,
|
|
80
|
-
alignSelf: 'stretch',
|
|
81
|
-
},
|
|
82
|
-
// Tinted top zone (background set per operation), ~40% of the card height.
|
|
83
|
-
// Clips oversized visuals so the fixed-size card never grows.
|
|
84
|
-
visualZone: {
|
|
85
|
-
flex: 4,
|
|
86
|
-
alignSelf: 'stretch',
|
|
87
|
-
alignItems: 'center',
|
|
88
|
-
justifyContent: 'center',
|
|
89
|
-
overflow: 'hidden',
|
|
90
|
-
paddingVertical: SPACING[200],
|
|
91
|
-
paddingHorizontal: SPACING[400],
|
|
92
|
-
},
|
|
93
|
-
// White equation zone, ~60% of the card height. The equation is centered so
|
|
94
|
-
// it keeps whitespace above and below (and clears the negative-margin answer
|
|
95
|
-
// input under the card's overflow:hidden clip).
|
|
96
|
-
eqZone: {
|
|
97
|
-
flex: 6,
|
|
98
|
-
alignSelf: 'stretch',
|
|
99
|
-
alignItems: 'center',
|
|
100
|
-
justifyContent: 'center',
|
|
101
|
-
paddingHorizontal: SPACING[400],
|
|
102
|
-
},
|
|
103
|
-
})
|
|
@@ -13,7 +13,6 @@ import {
|
|
|
13
13
|
Typography,
|
|
14
14
|
} from '@magmamath/react-native-ui'
|
|
15
15
|
import { useFluencySolvingPreset } from '../../../hooks/useFluencySolvingPreset'
|
|
16
|
-
import { FluencySolvingProgress } from './FluencySolvingProgress'
|
|
17
16
|
import { XCloseIcon } from '../../../../../shared/icons/XCloseIcon'
|
|
18
17
|
|
|
19
18
|
type FluencySolvingHeaderProps = {
|
|
@@ -40,9 +39,6 @@ export const FluencySolvingHeader = ({ onClosePress }: FluencySolvingHeaderProps
|
|
|
40
39
|
<Typography variant={HeadingVariants.H4} style={styles.title}>
|
|
41
40
|
{modePreset.label}
|
|
42
41
|
</Typography>
|
|
43
|
-
<View style={styles.progress} pointerEvents="none">
|
|
44
|
-
<FluencySolvingProgress />
|
|
45
|
-
</View>
|
|
46
42
|
</View>
|
|
47
43
|
)
|
|
48
44
|
}
|
|
@@ -58,11 +54,6 @@ const styles = StyleSheet.create({
|
|
|
58
54
|
backgroundColor: COLORS.NEUTRAL_1,
|
|
59
55
|
...SHADOWS[1],
|
|
60
56
|
},
|
|
61
|
-
progress: {
|
|
62
|
-
...StyleSheet.absoluteFillObject,
|
|
63
|
-
alignItems: 'center',
|
|
64
|
-
justifyContent: 'center',
|
|
65
|
-
},
|
|
66
57
|
operatorBadge: {
|
|
67
58
|
width: 32,
|
|
68
59
|
height: 32,
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
export * from './shared/fluency.constants'
|
|
2
2
|
export * from './shared/fluency.types'
|
|
3
3
|
export * from './shared/fluency.helpers'
|
|
4
|
-
export * from './visual-scaffolding'
|
|
5
4
|
export { Fluency } from './components/Fluency'
|
|
6
5
|
export { FluencySolving } from './components/FluencySolving'
|
|
7
|
-
export { FluencyVisualPlayground } from './components/FluencyVisualPlayground'
|
|
8
6
|
export { FluencyModel } from './model/FluencyModel'
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import Svg, { Path } from 'react-native-svg'
|
|
3
|
+
import { COLORS, IconProps } from '@magmamath/react-native-ui'
|
|
4
|
+
|
|
5
|
+
export const DivisionIcon = ({ color = COLORS.NEUTRAL_9, size = 16 }: IconProps) => (
|
|
6
|
+
<Svg width={size} height={size} viewBox="0 0 16 16" fill="none">
|
|
7
|
+
<Path
|
|
8
|
+
d="M8.0002 10.7996C8.82854 10.7996 9.50006 11.4713 9.5002 12.2996C9.5002 13.128 8.82862 13.7996 8.0002 13.7996C7.17177 13.7996 6.5002 13.128 6.5002 12.2996C6.50033 11.4713 7.17185 10.7996 8.0002 10.7996Z"
|
|
9
|
+
fill={color}
|
|
10
|
+
/>
|
|
11
|
+
<Path
|
|
12
|
+
d="M14.4006 7.2C14.8423 7.20019 15.2004 7.55809 15.2004 7.9998C15.2004 8.4415 14.8422 8.79942 14.4006 8.79961H1.59981C1.15819 8.79937 0.800026 8.44146 0.8 7.9998C0.8 7.55812 1.15818 7.20024 1.5998 7.2H14.4006Z"
|
|
13
|
+
fill={color}
|
|
14
|
+
/>
|
|
15
|
+
<Path
|
|
16
|
+
d="M8.0002 2.2C8.82862 2.2 9.5002 2.87157 9.5002 3.7C9.50006 4.52831 8.82854 5.2 8.0002 5.2C7.17185 5.2 6.50033 4.52831 6.5002 3.7C6.5002 2.87157 7.17177 2.2 8.0002 2.2Z"
|
|
17
|
+
fill={color}
|
|
18
|
+
/>
|
|
19
|
+
</Svg>
|
|
20
|
+
)
|
|
@@ -4,10 +4,10 @@ import { View, StyleSheet } from 'react-native'
|
|
|
4
4
|
import { SPACING } from '@magmamath/react-native-ui'
|
|
5
5
|
import { TeacherFluencyModel } from '../model/TeacherFluencyModel'
|
|
6
6
|
import { FluencyTeacherStudentsTable } from './table/FluencyTeacherStudentsTable'
|
|
7
|
+
import { FluencyTeacherFooter } from './FluencyTeacherFooter'
|
|
7
8
|
import { FluencyTeacherFilters } from './table/FluencyTeacherFilters'
|
|
8
9
|
import { FluencyTeacherHeader } from './header/FluencyTeacherHeader'
|
|
9
10
|
import { FluencyTeacherDrawer } from './drawer/FluencyTeacherDrawer'
|
|
10
|
-
import { FluencyTeacherFooter } from './FluencyTeacherFooter'
|
|
11
11
|
import { FluencyStudent } from '../fluencyTeacher.types'
|
|
12
12
|
import { TeacherFluencyProvider } from '../context/TeacherFluencyContext'
|
|
13
13
|
|
|
@@ -21,13 +21,13 @@ export const FluencyTeacher = ({ model, students, grade }: FluencyTeacherProps)
|
|
|
21
21
|
useGate(model.gate, { students, grade })
|
|
22
22
|
|
|
23
23
|
return (
|
|
24
|
-
<TeacherFluencyProvider value={{ model }}>
|
|
24
|
+
<TeacherFluencyProvider value={{ model, grade }}>
|
|
25
25
|
<View style={styles.container}>
|
|
26
26
|
<FluencyTeacherHeader />
|
|
27
27
|
<FluencyTeacherFilters />
|
|
28
28
|
<FluencyTeacherStudentsTable />
|
|
29
|
-
<FluencyTeacherDrawer />
|
|
30
29
|
<FluencyTeacherFooter />
|
|
30
|
+
<FluencyTeacherDrawer />
|
|
31
31
|
</View>
|
|
32
32
|
</TeacherFluencyProvider>
|
|
33
33
|
)
|
|
@@ -7,11 +7,10 @@ import {
|
|
|
7
7
|
COLORS,
|
|
8
8
|
CrossIcon,
|
|
9
9
|
FONT_FAMILY,
|
|
10
|
-
HeadingVariants,
|
|
11
10
|
SPACING,
|
|
12
|
-
Typography,
|
|
13
11
|
} from '@magmamath/react-native-ui'
|
|
14
12
|
import { useText } from '../../../../i18n/i18n'
|
|
13
|
+
import { AverageCell } from '../table/AverageCell'
|
|
15
14
|
|
|
16
15
|
import type { StudentResult } from '../../fluencyTeacher.types'
|
|
17
16
|
|
|
@@ -24,20 +23,24 @@ export const DrawerHeader = ({ student, onClose }: DrawerHeaderProps) => {
|
|
|
24
23
|
const t = useText()
|
|
25
24
|
return (
|
|
26
25
|
<View style={styles.container}>
|
|
27
|
-
<
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
<
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
26
|
+
<Text style={styles.name} numberOfLines={1}>
|
|
27
|
+
{student.name}
|
|
28
|
+
</Text>
|
|
29
|
+
<View style={styles.mastery}>
|
|
30
|
+
<View style={styles.masteryRow}>
|
|
31
|
+
<Text style={styles.masteryLabel} numberOfLines={1}>
|
|
32
|
+
{t('teacher.fluency.overallMastery')}
|
|
33
|
+
</Text>
|
|
34
|
+
<Text style={styles.masteryValue}>{student.averagePercent}%</Text>
|
|
35
|
+
</View>
|
|
36
|
+
<View style={styles.masteryBar}>
|
|
37
|
+
<AverageCell percent={student.averagePercent} height={22} showPercent={false} />
|
|
38
|
+
</View>
|
|
36
39
|
</View>
|
|
37
40
|
<Button
|
|
38
|
-
variant={ButtonVariant.
|
|
41
|
+
variant={ButtonVariant.TERTIARY}
|
|
39
42
|
colorScheme={ButtonColor.WHITE}
|
|
40
|
-
icon={<CrossIcon size={18} color={COLORS.
|
|
43
|
+
icon={<CrossIcon size={18} color={COLORS.NEUTRAL_9} />}
|
|
41
44
|
onPress={onClose}
|
|
42
45
|
style={{ container: styles.closeButton }}
|
|
43
46
|
/>
|
|
@@ -49,44 +52,43 @@ const styles = StyleSheet.create({
|
|
|
49
52
|
container: {
|
|
50
53
|
flexDirection: 'row',
|
|
51
54
|
alignItems: 'center',
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
borderTopWidth: 1,
|
|
55
|
+
gap: SPACING[400],
|
|
56
|
+
padding: SPACING[400],
|
|
55
57
|
borderBottomWidth: 1,
|
|
56
58
|
borderColor: COLORS.NEUTRAL_4,
|
|
57
59
|
},
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
},
|
|
61
|
-
label: {
|
|
62
|
-
color: COLORS.GREEN_7,
|
|
60
|
+
name: {
|
|
61
|
+
flex: 1,
|
|
63
62
|
fontFamily: FONT_FAMILY.buenosAiresSemiBold,
|
|
64
63
|
fontWeight: '600',
|
|
65
|
-
|
|
66
|
-
name: {
|
|
67
|
-
fontFamily: FONT_FAMILY.buenosAiresBold,
|
|
68
|
-
fontWeight: '700',
|
|
69
|
-
fontSize: 22,
|
|
64
|
+
fontSize: 24,
|
|
70
65
|
color: COLORS.NEUTRAL_10,
|
|
71
66
|
},
|
|
72
|
-
|
|
67
|
+
mastery: {
|
|
73
68
|
alignItems: 'flex-end',
|
|
74
|
-
|
|
69
|
+
},
|
|
70
|
+
masteryBar: {
|
|
71
|
+
width: 150,
|
|
72
|
+
},
|
|
73
|
+
masteryRow: {
|
|
74
|
+
flexDirection: 'row',
|
|
75
|
+
alignItems: 'flex-end',
|
|
76
|
+
gap: SPACING[100],
|
|
75
77
|
},
|
|
76
78
|
masteryLabel: {
|
|
77
|
-
fontFamily: FONT_FAMILY.
|
|
78
|
-
fontWeight: '
|
|
79
|
+
fontFamily: FONT_FAMILY.buenosAires,
|
|
80
|
+
fontWeight: '400',
|
|
79
81
|
fontSize: 13,
|
|
82
|
+
lineHeight: 26,
|
|
80
83
|
color: COLORS.NEUTRAL_7,
|
|
81
84
|
},
|
|
82
85
|
masteryValue: {
|
|
83
|
-
fontFamily: FONT_FAMILY.
|
|
84
|
-
fontWeight: '
|
|
85
|
-
fontSize:
|
|
86
|
-
color: COLORS.
|
|
86
|
+
fontFamily: FONT_FAMILY.buenosAiresSemiBold,
|
|
87
|
+
fontWeight: '600',
|
|
88
|
+
fontSize: 24,
|
|
89
|
+
color: COLORS.PRIMARY_YELLOW,
|
|
87
90
|
},
|
|
88
91
|
closeButton: {
|
|
89
92
|
alignSelf: 'center',
|
|
90
|
-
marginLeft: SPACING[600],
|
|
91
93
|
},
|
|
92
94
|
})
|
|
@@ -1,42 +1,24 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { StyleSheet, View } from 'react-native'
|
|
3
|
-
import {
|
|
3
|
+
import { SPACING } from '@magmamath/react-native-ui'
|
|
4
4
|
import { useText } from '../../../../i18n/i18n'
|
|
5
|
+
import { useTeacherFluency } from '../../context/TeacherFluencyContext'
|
|
5
6
|
import { DrawerOperatorBox } from './DrawerOperatorBox'
|
|
6
|
-
import {
|
|
7
|
+
import { OPERATOR_CARD_CONFIG } from '../../fluencyTeacher.constants'
|
|
8
|
+
import { getOperatorsForGrade } from '../../fluencyTeacher.helpers'
|
|
7
9
|
|
|
8
10
|
export const DrawerMatrixes = () => {
|
|
9
11
|
const t = useText()
|
|
12
|
+
const { grade } = useTeacherFluency()
|
|
10
13
|
return (
|
|
11
14
|
<View style={styles.grid}>
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
/>
|
|
15
|
+
{getOperatorsForGrade(grade).map((operator) => (
|
|
16
|
+
<DrawerOperatorBox
|
|
17
|
+
key={operator}
|
|
18
|
+
title={t(OPERATOR_CARD_CONFIG[operator].labelKey)}
|
|
19
|
+
operator={operator}
|
|
20
|
+
/>
|
|
21
|
+
))}
|
|
40
22
|
</View>
|
|
41
23
|
)
|
|
42
24
|
}
|
|
@@ -45,8 +27,7 @@ const styles = StyleSheet.create({
|
|
|
45
27
|
grid: {
|
|
46
28
|
flexDirection: 'row',
|
|
47
29
|
flexWrap: 'wrap',
|
|
48
|
-
gap: SPACING[
|
|
49
|
-
marginTop: SPACING[300],
|
|
30
|
+
gap: SPACING[400],
|
|
50
31
|
marginBottom: SPACING[600],
|
|
51
32
|
},
|
|
52
33
|
})
|
|
@@ -5,25 +5,17 @@ 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'
|
|
8
9
|
import { useTeacherFluency } from '../../context/TeacherFluencyContext'
|
|
9
10
|
|
|
10
|
-
import { FluencyOperator } from '../../fluencyTeacher.constants'
|
|
11
|
+
import { FluencyOperator, OPERATOR_PALETTES } from '../../fluencyTeacher.constants'
|
|
11
12
|
|
|
12
13
|
type DrawerOperatorBoxProps = {
|
|
13
14
|
title: string
|
|
14
|
-
symbol: string
|
|
15
|
-
iconBg: string
|
|
16
|
-
iconColor: string
|
|
17
15
|
operator: FluencyOperator
|
|
18
16
|
}
|
|
19
17
|
|
|
20
|
-
export const DrawerOperatorBox = ({
|
|
21
|
-
title,
|
|
22
|
-
symbol,
|
|
23
|
-
iconBg,
|
|
24
|
-
iconColor,
|
|
25
|
-
operator,
|
|
26
|
-
}: DrawerOperatorBoxProps) => {
|
|
18
|
+
export const DrawerOperatorBox = ({ title, operator }: DrawerOperatorBoxProps) => {
|
|
27
19
|
const t = useText()
|
|
28
20
|
const { model } = useTeacherFluency()
|
|
29
21
|
const isLoading = useUnit(model.api.getStudentDetailsFx.pending)
|
|
@@ -36,13 +28,9 @@ export const DrawerOperatorBox = ({
|
|
|
36
28
|
: ''
|
|
37
29
|
|
|
38
30
|
return (
|
|
39
|
-
<View style={styles.container}>
|
|
31
|
+
<View style={[styles.container, { borderColor: OPERATOR_PALETTES[operator].boxBorder }]}>
|
|
40
32
|
<View style={styles.header}>
|
|
41
|
-
<View style={[styles.iconBox, { backgroundColor: iconBg }]}>
|
|
42
|
-
<Text style={[styles.symbol, { color: iconColor }]}>{symbol}</Text>
|
|
43
|
-
</View>
|
|
44
33
|
<Text style={styles.title}>{title}</Text>
|
|
45
|
-
<View style={styles.spacer} />
|
|
46
34
|
<Text style={styles.factsLabel}>{factsLabel}</Text>
|
|
47
35
|
</View>
|
|
48
36
|
<View style={styles.content}>
|
|
@@ -51,7 +39,10 @@ export const DrawerOperatorBox = ({
|
|
|
51
39
|
<ActivityIndicator size="large" color={COLORS.PRIMARY_BLUE} />
|
|
52
40
|
</View>
|
|
53
41
|
) : (
|
|
54
|
-
|
|
42
|
+
<>
|
|
43
|
+
<DrawerMatrix {...matrixProps} />
|
|
44
|
+
{matrixProps.grid && <MatrixLegend operator={operator} grid={matrixProps.grid} />}
|
|
45
|
+
</>
|
|
55
46
|
)}
|
|
56
47
|
</View>
|
|
57
48
|
</View>
|
|
@@ -60,48 +51,37 @@ export const DrawerOperatorBox = ({
|
|
|
60
51
|
|
|
61
52
|
const styles = StyleSheet.create({
|
|
62
53
|
container: {
|
|
63
|
-
|
|
64
|
-
|
|
54
|
+
flexGrow: 1,
|
|
55
|
+
flexBasis: '45%',
|
|
65
56
|
borderWidth: 1,
|
|
66
|
-
borderColor: COLORS.NEUTRAL_4,
|
|
67
57
|
borderRadius: BORDER_RADIUS[300],
|
|
58
|
+
backgroundColor: COLORS.NEUTRAL_1,
|
|
68
59
|
padding: SPACING[400],
|
|
60
|
+
gap: SPACING[300],
|
|
69
61
|
},
|
|
70
62
|
header: {
|
|
71
63
|
flexDirection: 'row',
|
|
72
64
|
alignItems: 'center',
|
|
73
65
|
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,
|
|
87
66
|
},
|
|
88
67
|
title: {
|
|
89
|
-
fontFamily: FONT_FAMILY.buenosAiresSemiBold,
|
|
90
|
-
fontWeight: '700',
|
|
91
|
-
fontSize: 15,
|
|
92
|
-
color: COLORS.NEUTRAL_10,
|
|
93
|
-
},
|
|
94
|
-
spacer: {
|
|
95
68
|
flex: 1,
|
|
69
|
+
fontFamily: FONT_FAMILY.buenosAires,
|
|
70
|
+
fontWeight: '400',
|
|
71
|
+
fontSize: 16,
|
|
72
|
+
color: COLORS.NEUTRAL_10,
|
|
96
73
|
},
|
|
97
74
|
factsLabel: {
|
|
98
75
|
fontFamily: FONT_FAMILY.buenosAiresSemiBold,
|
|
99
76
|
fontSize: 13,
|
|
100
77
|
fontWeight: '600',
|
|
78
|
+
textTransform: 'uppercase',
|
|
101
79
|
color: COLORS.NEUTRAL_7,
|
|
102
80
|
},
|
|
103
81
|
content: {
|
|
104
|
-
|
|
82
|
+
height: 210,
|
|
83
|
+
flexDirection: 'row',
|
|
84
|
+
gap: SPACING[200],
|
|
105
85
|
},
|
|
106
86
|
loader: {
|
|
107
87
|
flex: 1,
|