@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,65 +1,65 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { StyleSheet, Text, View } from 'react-native'
|
|
3
|
-
import {
|
|
3
|
+
import { BORDER_RADIUS, FONT_FAMILY, SPACING } from '@magmamath/react-native-ui'
|
|
4
|
+
import { getOperatorBandColors } from '../../fluencyTeacher.helpers'
|
|
5
|
+
import { FluencyOperator } from '../../fluencyTeacher.constants'
|
|
4
6
|
|
|
5
|
-
|
|
7
|
+
type DrawerOperatorStatCardProps = {
|
|
6
8
|
title: string
|
|
7
|
-
value: number
|
|
9
|
+
value: number
|
|
8
10
|
symbol: string
|
|
9
|
-
|
|
11
|
+
operator: FluencyOperator
|
|
10
12
|
}
|
|
11
13
|
|
|
12
14
|
export const DrawerOperatorStatCard = ({
|
|
13
15
|
title,
|
|
14
16
|
value,
|
|
15
17
|
symbol,
|
|
16
|
-
|
|
17
|
-
}: DrawerOperatorStatCardProps) =>
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
operator,
|
|
19
|
+
}: DrawerOperatorStatCardProps) => {
|
|
20
|
+
const { background, border, text } = getOperatorBandColors(operator, value)
|
|
21
|
+
return (
|
|
22
|
+
<View style={[styles.container, { backgroundColor: background, borderColor: border }]}>
|
|
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>
|
|
21
30
|
</View>
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
<Text style={styles.value}>{value}%</Text>
|
|
25
|
-
</View>
|
|
26
|
-
</View>
|
|
27
|
-
)
|
|
31
|
+
)
|
|
32
|
+
}
|
|
28
33
|
|
|
29
34
|
const styles = StyleSheet.create({
|
|
30
35
|
container: {
|
|
31
36
|
flex: 1,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
borderRadius: SPACING[300],
|
|
37
|
+
justifyContent: 'center',
|
|
38
|
+
gap: SPACING[100],
|
|
39
|
+
padding: SPACING[200],
|
|
40
|
+
borderRadius: BORDER_RADIUS[200],
|
|
37
41
|
borderWidth: 1,
|
|
38
|
-
borderColor: COLORS.NEUTRAL_4,
|
|
39
|
-
backgroundColor: COLORS.NEUTRAL_2,
|
|
40
42
|
},
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
height: 32,
|
|
44
|
-
borderRadius: SPACING[200],
|
|
43
|
+
titleRow: {
|
|
44
|
+
flexDirection: 'row',
|
|
45
45
|
alignItems: 'center',
|
|
46
|
-
|
|
46
|
+
gap: SPACING[100],
|
|
47
47
|
},
|
|
48
48
|
symbol: {
|
|
49
|
+
width: 16,
|
|
49
50
|
fontFamily: FONT_FAMILY.buenosAiresBold,
|
|
50
|
-
fontSize:
|
|
51
|
-
|
|
51
|
+
fontSize: 16,
|
|
52
|
+
textAlign: 'center',
|
|
52
53
|
},
|
|
53
54
|
title: {
|
|
55
|
+
flexShrink: 1,
|
|
54
56
|
fontFamily: FONT_FAMILY.buenosAires,
|
|
55
57
|
fontWeight: '400',
|
|
56
|
-
fontSize:
|
|
57
|
-
color: COLORS.NEUTRAL_7,
|
|
58
|
+
fontSize: 16,
|
|
58
59
|
},
|
|
59
60
|
value: {
|
|
60
|
-
fontFamily: FONT_FAMILY.
|
|
61
|
-
fontWeight: '
|
|
62
|
-
fontSize:
|
|
63
|
-
color: COLORS.NEUTRAL_10,
|
|
61
|
+
fontFamily: FONT_FAMILY.buenosAiresSemiBold,
|
|
62
|
+
fontWeight: '600',
|
|
63
|
+
fontSize: 24,
|
|
64
64
|
},
|
|
65
65
|
})
|
|
@@ -1,11 +1,13 @@
|
|
|
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 { DrawerOperatorStatCard } from './DrawerOperatorStatCard'
|
|
6
7
|
import type { StudentOperatorScores } from '../../fluencyTeacher.types'
|
|
7
8
|
|
|
8
|
-
import {
|
|
9
|
+
import { OPERATOR_CARD_CONFIG, OPERATOR_TO_COLUMN } from '../../fluencyTeacher.constants'
|
|
10
|
+
import { getOperatorsForGrade } from '../../fluencyTeacher.helpers'
|
|
9
11
|
|
|
10
12
|
type DrawerStatsProps = {
|
|
11
13
|
scores: StudentOperatorScores
|
|
@@ -13,32 +15,18 @@ type DrawerStatsProps = {
|
|
|
13
15
|
|
|
14
16
|
export const DrawerStats = ({ scores }: DrawerStatsProps) => {
|
|
15
17
|
const t = useText()
|
|
18
|
+
const { grade } = useTeacherFluency()
|
|
16
19
|
return (
|
|
17
20
|
<View style={styles.container}>
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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
|
-
/>
|
|
21
|
+
{getOperatorsForGrade(grade).map((operator) => (
|
|
22
|
+
<DrawerOperatorStatCard
|
|
23
|
+
key={operator}
|
|
24
|
+
title={t(OPERATOR_CARD_CONFIG[operator].labelKey)}
|
|
25
|
+
symbol={OPERATOR_CARD_CONFIG[operator].symbol}
|
|
26
|
+
operator={operator}
|
|
27
|
+
value={scores[OPERATOR_TO_COLUMN[operator]]}
|
|
28
|
+
/>
|
|
29
|
+
))}
|
|
42
30
|
</View>
|
|
43
31
|
)
|
|
44
32
|
}
|
|
@@ -46,7 +34,7 @@ export const DrawerStats = ({ scores }: DrawerStatsProps) => {
|
|
|
46
34
|
const styles = StyleSheet.create({
|
|
47
35
|
container: {
|
|
48
36
|
flexDirection: 'row',
|
|
49
|
-
gap: SPACING[
|
|
50
|
-
paddingBottom: SPACING[
|
|
37
|
+
gap: SPACING[400],
|
|
38
|
+
paddingBottom: SPACING[400],
|
|
51
39
|
},
|
|
52
40
|
})
|
|
@@ -7,9 +7,8 @@ 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'
|
|
11
10
|
|
|
12
|
-
const DRAWER_WIDTH =
|
|
11
|
+
const DRAWER_WIDTH = 815
|
|
13
12
|
const BACKDROP_COLOR = 'rgba(0, 0, 0, 0.2)'
|
|
14
13
|
|
|
15
14
|
const backdropOpacity = new Animated.Value(0)
|
|
@@ -55,7 +54,6 @@ export const FluencyTeacherDrawer = () => {
|
|
|
55
54
|
<DrawerStats scores={student.scores} />
|
|
56
55
|
<ScrollView showsVerticalScrollIndicator={false}>
|
|
57
56
|
<DrawerMatrixes />
|
|
58
|
-
<DrawerMasteryLegend />
|
|
59
57
|
</ScrollView>
|
|
60
58
|
</View>
|
|
61
59
|
</Animated.View>
|
|
@@ -78,12 +76,13 @@ const styles = StyleSheet.create({
|
|
|
78
76
|
right: 0,
|
|
79
77
|
bottom: 0,
|
|
80
78
|
width: DRAWER_WIDTH,
|
|
79
|
+
maxWidth: '100%',
|
|
81
80
|
backgroundColor: COLORS.NEUTRAL_1,
|
|
82
81
|
...SHADOWS[3],
|
|
83
82
|
},
|
|
84
83
|
content: {
|
|
85
84
|
flex: 1,
|
|
86
|
-
paddingVertical: SPACING[
|
|
87
|
-
paddingHorizontal: SPACING[
|
|
85
|
+
paddingVertical: SPACING[200],
|
|
86
|
+
paddingHorizontal: SPACING[400],
|
|
88
87
|
},
|
|
89
88
|
})
|
|
@@ -5,14 +5,15 @@ 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
|
|
8
|
+
import { MasteryLevel } from '../../fluencyTeacher.constants'
|
|
9
|
+
import type { DrawerGrid } from '../../fluencyTeacher.types'
|
|
9
10
|
|
|
10
11
|
type DrawerMatrixProps = {
|
|
11
12
|
grid: DrawerGrid | null
|
|
12
13
|
cellSize: number
|
|
13
14
|
fontSize: number
|
|
14
15
|
borderRadius: number
|
|
15
|
-
cellColorMap: Record<
|
|
16
|
+
cellColorMap: Record<MasteryLevel, string>
|
|
16
17
|
onLayout: (e: LayoutChangeEvent) => void
|
|
17
18
|
}
|
|
18
19
|
|
|
@@ -1,27 +1,24 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import { StyleSheet,
|
|
3
|
-
import { COLORS, FONT_FAMILY } from '@magmamath/react-native-ui'
|
|
2
|
+
import { StyleSheet, View } from 'react-native'
|
|
4
3
|
import { getCellColor } from '../../fluencyTeacher.helpers'
|
|
4
|
+
import { MasteryLevel } from '../../fluencyTeacher.constants'
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
box:
|
|
6
|
+
type MatrixCellProps = {
|
|
7
|
+
box: MasteryLevel | null
|
|
8
8
|
isEmpty: boolean
|
|
9
9
|
cellSize: number
|
|
10
10
|
borderRadius: number
|
|
11
|
-
colorMap: Record<
|
|
12
|
-
fontSize: number
|
|
11
|
+
colorMap: Record<MasteryLevel, string>
|
|
13
12
|
}
|
|
14
13
|
|
|
15
|
-
export const MatrixCell = ({ box, isEmpty, cellSize, borderRadius, colorMap
|
|
14
|
+
export const MatrixCell = ({ box, isEmpty, cellSize, borderRadius, colorMap }: MatrixCellProps) => (
|
|
16
15
|
<View
|
|
17
16
|
style={[
|
|
18
17
|
styles.cell,
|
|
19
18
|
{ width: cellSize, height: cellSize, borderRadius },
|
|
20
19
|
{ backgroundColor: isEmpty ? 'transparent' : getCellColor(box, colorMap) },
|
|
21
20
|
]}
|
|
22
|
-
|
|
23
|
-
{isEmpty && <Text style={[styles.label, { fontSize }]}>-</Text>}
|
|
24
|
-
</View>
|
|
21
|
+
/>
|
|
25
22
|
)
|
|
26
23
|
|
|
27
24
|
const styles = StyleSheet.create({
|
|
@@ -29,10 +26,4 @@ const styles = StyleSheet.create({
|
|
|
29
26
|
alignItems: 'center',
|
|
30
27
|
justifyContent: 'center',
|
|
31
28
|
},
|
|
32
|
-
label: {
|
|
33
|
-
color: COLORS.NEUTRAL_7,
|
|
34
|
-
fontFamily: FONT_FAMILY.buenosAires,
|
|
35
|
-
fontWeight: '600',
|
|
36
|
-
textAlign: 'center',
|
|
37
|
-
},
|
|
38
29
|
})
|
|
@@ -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
|
-
|
|
5
|
+
type MatrixHeaderRowProps = {
|
|
6
6
|
colLabels: number[]
|
|
7
7
|
cellSize: number
|
|
8
8
|
fontSize: number
|
|
@@ -0,0 +1,81 @@
|
|
|
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 {
|
|
6
|
+
FluencyOperator,
|
|
7
|
+
LEGEND_LEVELS,
|
|
8
|
+
MATRIX_CELL_COLORS,
|
|
9
|
+
MATRIX_NOT_STARTED_COLOR,
|
|
10
|
+
OPERATOR_PALETTES,
|
|
11
|
+
} from '../../fluencyTeacher.constants'
|
|
12
|
+
import { countFactsByMasteryLevel } from '../../fluencyTeacher.helpers'
|
|
13
|
+
import type { DrawerGrid } from '../../fluencyTeacher.types'
|
|
14
|
+
|
|
15
|
+
type MatrixLegendProps = {
|
|
16
|
+
operator: FluencyOperator
|
|
17
|
+
grid: DrawerGrid | null
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export const MatrixLegend = ({ operator, grid }: MatrixLegendProps) => {
|
|
21
|
+
const t = useText()
|
|
22
|
+
const counts = countFactsByMasteryLevel(grid, operator)
|
|
23
|
+
const countColor = OPERATOR_PALETTES[operator].legendCount
|
|
24
|
+
|
|
25
|
+
return (
|
|
26
|
+
<View style={styles.container}>
|
|
27
|
+
{LEGEND_LEVELS.map(({ box, labelKey }) => (
|
|
28
|
+
<View key={labelKey} style={styles.item}>
|
|
29
|
+
<View style={styles.labelWrap}>
|
|
30
|
+
<View
|
|
31
|
+
style={[
|
|
32
|
+
styles.swatch,
|
|
33
|
+
{
|
|
34
|
+
backgroundColor:
|
|
35
|
+
box === null ? MATRIX_NOT_STARTED_COLOR : MATRIX_CELL_COLORS[operator][box],
|
|
36
|
+
},
|
|
37
|
+
]}
|
|
38
|
+
/>
|
|
39
|
+
<Text style={styles.label}>{t(labelKey)}:</Text>
|
|
40
|
+
</View>
|
|
41
|
+
<Text style={[styles.count, { color: countColor }]}>{counts.get(box) ?? 0}</Text>
|
|
42
|
+
</View>
|
|
43
|
+
))}
|
|
44
|
+
</View>
|
|
45
|
+
)
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
const styles = StyleSheet.create({
|
|
49
|
+
container: {
|
|
50
|
+
width: 130,
|
|
51
|
+
gap: SPACING[100],
|
|
52
|
+
paddingTop: SPACING[200],
|
|
53
|
+
paddingHorizontal: SPACING[100],
|
|
54
|
+
},
|
|
55
|
+
item: {
|
|
56
|
+
flexDirection: 'row',
|
|
57
|
+
alignItems: 'center',
|
|
58
|
+
justifyContent: 'space-between',
|
|
59
|
+
},
|
|
60
|
+
labelWrap: {
|
|
61
|
+
flexDirection: 'row',
|
|
62
|
+
alignItems: 'center',
|
|
63
|
+
gap: SPACING[100],
|
|
64
|
+
},
|
|
65
|
+
swatch: {
|
|
66
|
+
width: 10,
|
|
67
|
+
height: 10,
|
|
68
|
+
borderRadius: 4,
|
|
69
|
+
},
|
|
70
|
+
label: {
|
|
71
|
+
fontFamily: FONT_FAMILY.buenosAires,
|
|
72
|
+
fontWeight: '400',
|
|
73
|
+
fontSize: 10,
|
|
74
|
+
color: COLORS.NEUTRAL_7,
|
|
75
|
+
},
|
|
76
|
+
count: {
|
|
77
|
+
fontFamily: FONT_FAMILY.buenosAiresSemiBold,
|
|
78
|
+
fontWeight: '600',
|
|
79
|
+
fontSize: 13,
|
|
80
|
+
},
|
|
81
|
+
})
|
|
@@ -2,14 +2,15 @@ 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
|
|
5
|
+
import { MasteryLevel } from '../../fluencyTeacher.constants'
|
|
6
|
+
import type { DrawerGridCell } from '../../fluencyTeacher.types'
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
type MatrixRowProps = {
|
|
8
9
|
label: number
|
|
9
10
|
cells: DrawerGridCell[]
|
|
10
11
|
cellSize: number
|
|
11
12
|
borderRadius: number
|
|
12
|
-
colorMap: Record<
|
|
13
|
+
colorMap: Record<MasteryLevel, string>
|
|
13
14
|
fontSize: number
|
|
14
15
|
}
|
|
15
16
|
|
|
@@ -33,7 +34,6 @@ export const MatrixRow = ({
|
|
|
33
34
|
cellSize={cellSize}
|
|
34
35
|
borderRadius={borderRadius}
|
|
35
36
|
colorMap={colorMap}
|
|
36
|
-
fontSize={fontSize}
|
|
37
37
|
/>
|
|
38
38
|
))}
|
|
39
39
|
</View>
|
|
@@ -10,21 +10,22 @@ import {
|
|
|
10
10
|
import { useUnit } from 'effector-react'
|
|
11
11
|
import { useText } from '../../../../i18n/i18n'
|
|
12
12
|
import { useTeacherFluency } from '../../context/TeacherFluencyContext'
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
13
|
+
import { COLUMN_TO_OPERATOR } from '../../fluencyTeacher.constants'
|
|
14
|
+
import { getTableOperatorColumns } from '../../fluencyTeacher.helpers'
|
|
15
|
+
import { AverageCell } from './AverageCell'
|
|
16
16
|
import { OperatorBadge } from './OperatorBadge'
|
|
17
|
+
import { tableCellStyles } from './tableCell.styles'
|
|
17
18
|
|
|
18
19
|
export const AllPupilsTableRow = () => {
|
|
19
20
|
const t = useText()
|
|
20
|
-
const { model } = useTeacherFluency()
|
|
21
|
+
const { model, grade } = useTeacherFluency()
|
|
21
22
|
const stats = useUnit(model.table.$stats)
|
|
22
23
|
|
|
23
24
|
if (!stats) return null
|
|
24
25
|
|
|
25
26
|
return (
|
|
26
27
|
<View style={styles.row}>
|
|
27
|
-
<View style={
|
|
28
|
+
<View style={tableCellStyles.name}>
|
|
28
29
|
<View style={styles.icon}>
|
|
29
30
|
<StudentsIcon size={25} color={COLORS.NEUTRAL_7} />
|
|
30
31
|
</View>
|
|
@@ -33,20 +34,16 @@ export const AllPupilsTableRow = () => {
|
|
|
33
34
|
</Typography>
|
|
34
35
|
</View>
|
|
35
36
|
|
|
36
|
-
<View style={
|
|
37
|
-
<
|
|
38
|
-
percent={stats.classAverage}
|
|
39
|
-
label={t(toAverageLabel(stats.classAverage / 100))}
|
|
40
|
-
/>
|
|
37
|
+
<View style={tableCellStyles.average}>
|
|
38
|
+
<AverageCell percent={stats.classAverage} />
|
|
41
39
|
</View>
|
|
42
40
|
|
|
43
|
-
<View style={
|
|
44
|
-
{
|
|
45
|
-
<View key={operator} style={
|
|
41
|
+
<View style={tableCellStyles.operators}>
|
|
42
|
+
{getTableOperatorColumns(grade).map(({ operator }) => (
|
|
43
|
+
<View key={operator} style={tableCellStyles.operator}>
|
|
46
44
|
<OperatorBadge
|
|
47
45
|
value={stats.operatorAverages[operator]}
|
|
48
|
-
|
|
49
|
-
textColor={badgeText}
|
|
46
|
+
operator={COLUMN_TO_OPERATOR[operator]}
|
|
50
47
|
/>
|
|
51
48
|
</View>
|
|
52
49
|
))}
|
|
@@ -64,14 +61,7 @@ const styles = StyleSheet.create({
|
|
|
64
61
|
gap: SPACING[400],
|
|
65
62
|
backgroundColor: COLORS.NEUTRAL_2,
|
|
66
63
|
borderBottomWidth: 1,
|
|
67
|
-
borderBottomColor: COLORS.
|
|
68
|
-
},
|
|
69
|
-
name: {
|
|
70
|
-
width: 137,
|
|
71
|
-
height: 40,
|
|
72
|
-
flexDirection: 'row',
|
|
73
|
-
alignItems: 'center',
|
|
74
|
-
gap: 12,
|
|
64
|
+
borderBottomColor: COLORS.NEUTRAL_6,
|
|
75
65
|
},
|
|
76
66
|
icon: {
|
|
77
67
|
width: 25,
|
|
@@ -83,21 +73,4 @@ const styles = StyleSheet.create({
|
|
|
83
73
|
width: 100,
|
|
84
74
|
color: COLORS.NEUTRAL_9,
|
|
85
75
|
},
|
|
86
|
-
average: {
|
|
87
|
-
width: 145,
|
|
88
|
-
height: 40,
|
|
89
|
-
paddingHorizontal: 12,
|
|
90
|
-
justifyContent: 'center',
|
|
91
|
-
},
|
|
92
|
-
operators: {
|
|
93
|
-
flex: 1,
|
|
94
|
-
height: 40,
|
|
95
|
-
flexDirection: 'row',
|
|
96
|
-
alignItems: 'center',
|
|
97
|
-
paddingHorizontal: SPACING[800],
|
|
98
|
-
},
|
|
99
|
-
operator: {
|
|
100
|
-
flex: 1,
|
|
101
|
-
alignItems: 'center',
|
|
102
|
-
},
|
|
103
76
|
})
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { StyleSheet, View } from 'react-native'
|
|
3
|
+
import { BORDER_RADIUS, COLORS, HeadingVariants, Typography } from '@magmamath/react-native-ui'
|
|
4
|
+
|
|
5
|
+
type AverageCellProps = {
|
|
6
|
+
percent: number
|
|
7
|
+
height?: number
|
|
8
|
+
showPercent?: boolean
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const AverageCell = ({ percent, height = 32, showPercent = true }: AverageCellProps) => (
|
|
12
|
+
<View style={[styles.track, { height }]}>
|
|
13
|
+
<View style={[styles.fill, { width: `${percent}%` }]} />
|
|
14
|
+
{showPercent && (
|
|
15
|
+
<Typography variant={HeadingVariants.H9} style={styles.percent}>
|
|
16
|
+
{percent}%
|
|
17
|
+
</Typography>
|
|
18
|
+
)}
|
|
19
|
+
</View>
|
|
20
|
+
)
|
|
21
|
+
|
|
22
|
+
const styles = StyleSheet.create({
|
|
23
|
+
track: {
|
|
24
|
+
width: '100%',
|
|
25
|
+
flexDirection: 'row',
|
|
26
|
+
alignItems: 'center',
|
|
27
|
+
justifyContent: 'center',
|
|
28
|
+
borderRadius: BORDER_RADIUS[200],
|
|
29
|
+
borderWidth: 1.5,
|
|
30
|
+
borderColor: COLORS.PRIMARY_YELLOW,
|
|
31
|
+
backgroundColor: COLORS.YELLOW_1,
|
|
32
|
+
overflow: 'hidden',
|
|
33
|
+
},
|
|
34
|
+
fill: {
|
|
35
|
+
position: 'absolute',
|
|
36
|
+
top: 0,
|
|
37
|
+
bottom: 0,
|
|
38
|
+
left: 0,
|
|
39
|
+
backgroundColor: COLORS.PRIMARY_YELLOW,
|
|
40
|
+
},
|
|
41
|
+
percent: {
|
|
42
|
+
color: COLORS.YELLOW_9,
|
|
43
|
+
textTransform: 'uppercase',
|
|
44
|
+
},
|
|
45
|
+
})
|
|
@@ -1,76 +1,22 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import { Pressable, StyleSheet, Text, View } from 'react-native'
|
|
3
|
-
import {
|
|
4
|
-
CaretDownIcon,
|
|
5
|
-
CaretUpIcon,
|
|
6
|
-
COLORS,
|
|
7
|
-
FONT_FAMILY,
|
|
8
|
-
SHADOWS,
|
|
9
|
-
SPACING,
|
|
10
|
-
StudentsIcon,
|
|
11
|
-
} from '@magmamath/react-native-ui'
|
|
12
2
|
import { useText } from '../../../../i18n/i18n'
|
|
13
|
-
import { SortDefaultIcon } from '../../assets/SortDefaultIcon'
|
|
14
3
|
import type { SortState } from '../../fluencyTeacher.types'
|
|
15
|
-
import { SortingDirection } from '../../../../shared/common.constants'
|
|
16
4
|
import { FluencyTableColumn } from '../../fluencyTeacher.constants'
|
|
5
|
+
import { TableColumnSortButton } from './TableColumnSortButton'
|
|
17
6
|
|
|
18
|
-
|
|
7
|
+
type AverageSortButtonProps = {
|
|
19
8
|
sort: SortState
|
|
20
9
|
onPress: () => void
|
|
21
10
|
}
|
|
22
11
|
|
|
23
12
|
export const AverageSortButton = ({ sort, onPress }: AverageSortButtonProps) => {
|
|
24
13
|
const t = useText()
|
|
25
|
-
const isActive = sort.column === FluencyTableColumn.AVERAGE
|
|
26
|
-
const color = isActive ? COLORS.NEUTRAL_1 : COLORS.NEUTRAL_7
|
|
27
|
-
|
|
28
|
-
const ActiveSortIcon = (() => {
|
|
29
|
-
return sort.direction === SortingDirection.DESC ? (
|
|
30
|
-
<CaretUpIcon size={12} color={color} />
|
|
31
|
-
) : (
|
|
32
|
-
<CaretDownIcon size={12} color={color} />
|
|
33
|
-
)
|
|
34
|
-
})()
|
|
35
|
-
|
|
36
14
|
return (
|
|
37
|
-
<
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</Text>
|
|
44
|
-
{isActive ? ActiveSortIcon : <SortDefaultIcon size={10} color={color} />}
|
|
45
|
-
</Pressable>
|
|
15
|
+
<TableColumnSortButton
|
|
16
|
+
label={t('teacher.fluency.average')}
|
|
17
|
+
isActive={sort.column === FluencyTableColumn.AVERAGE}
|
|
18
|
+
direction={sort.direction}
|
|
19
|
+
onPress={onPress}
|
|
20
|
+
/>
|
|
46
21
|
)
|
|
47
22
|
}
|
|
48
|
-
|
|
49
|
-
const styles = StyleSheet.create({
|
|
50
|
-
button: {
|
|
51
|
-
flexDirection: 'row',
|
|
52
|
-
alignItems: 'center',
|
|
53
|
-
gap: SPACING[100],
|
|
54
|
-
paddingLeft: 6,
|
|
55
|
-
paddingRight: SPACING[200],
|
|
56
|
-
paddingVertical: SPACING[100],
|
|
57
|
-
borderRadius: 6,
|
|
58
|
-
borderWidth: 0.5,
|
|
59
|
-
borderColor: COLORS.NEUTRAL_3,
|
|
60
|
-
backgroundColor: COLORS.NEUTRAL_1,
|
|
61
|
-
...SHADOWS[2],
|
|
62
|
-
},
|
|
63
|
-
buttonActive: {
|
|
64
|
-
backgroundColor: COLORS.PRIMARY_YELLOW,
|
|
65
|
-
borderColor: COLORS.PRIMARY_YELLOW,
|
|
66
|
-
},
|
|
67
|
-
iconWrapper: {
|
|
68
|
-
marginHorizontal: SPACING[100],
|
|
69
|
-
},
|
|
70
|
-
label: {
|
|
71
|
-
fontFamily: FONT_FAMILY.buenosAiresBold,
|
|
72
|
-
fontSize: 12,
|
|
73
|
-
letterSpacing: 0.24,
|
|
74
|
-
textTransform: 'uppercase',
|
|
75
|
-
},
|
|
76
|
-
})
|