@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
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { StyleSheet, Text, View } from 'react-native';
|
|
5
|
-
import { Button, ButtonColor, ButtonVariant, COLORS, CrossIcon, FONT_FAMILY,
|
|
5
|
+
import { Button, ButtonColor, ButtonVariant, COLORS, CrossIcon, FONT_FAMILY, SPACING } from '@magmamath/react-native-ui';
|
|
6
6
|
import { useText } from "../../../../i18n/i18n.js";
|
|
7
|
+
import { AverageCell } from "../table/AverageCell.js";
|
|
7
8
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
9
|
export const DrawerHeader = ({
|
|
9
10
|
student,
|
|
@@ -12,31 +13,36 @@ export const DrawerHeader = ({
|
|
|
12
13
|
const t = useText();
|
|
13
14
|
return /*#__PURE__*/_jsxs(View, {
|
|
14
15
|
style: styles.container,
|
|
15
|
-
children: [/*#__PURE__*/
|
|
16
|
-
style: styles.
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
style: styles.label,
|
|
20
|
-
children: t('teacher.fluency.studentFluency')
|
|
21
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
22
|
-
style: styles.name,
|
|
23
|
-
children: student.name
|
|
24
|
-
})]
|
|
16
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
17
|
+
style: styles.name,
|
|
18
|
+
numberOfLines: 1,
|
|
19
|
+
children: student.name
|
|
25
20
|
}), /*#__PURE__*/_jsxs(View, {
|
|
26
|
-
style: styles.
|
|
27
|
-
children: [/*#__PURE__*/
|
|
28
|
-
style: styles.
|
|
29
|
-
children:
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
21
|
+
style: styles.mastery,
|
|
22
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
23
|
+
style: styles.masteryRow,
|
|
24
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
25
|
+
style: styles.masteryLabel,
|
|
26
|
+
numberOfLines: 1,
|
|
27
|
+
children: t('teacher.fluency.overallMastery')
|
|
28
|
+
}), /*#__PURE__*/_jsxs(Text, {
|
|
29
|
+
style: styles.masteryValue,
|
|
30
|
+
children: [student.averagePercent, "%"]
|
|
31
|
+
})]
|
|
32
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
33
|
+
style: styles.masteryBar,
|
|
34
|
+
children: /*#__PURE__*/_jsx(AverageCell, {
|
|
35
|
+
percent: student.averagePercent,
|
|
36
|
+
height: 22,
|
|
37
|
+
showPercent: false
|
|
38
|
+
})
|
|
33
39
|
})]
|
|
34
40
|
}), /*#__PURE__*/_jsx(Button, {
|
|
35
|
-
variant: ButtonVariant.
|
|
41
|
+
variant: ButtonVariant.TERTIARY,
|
|
36
42
|
colorScheme: ButtonColor.WHITE,
|
|
37
43
|
icon: /*#__PURE__*/_jsx(CrossIcon, {
|
|
38
44
|
size: 18,
|
|
39
|
-
color: COLORS.
|
|
45
|
+
color: COLORS.NEUTRAL_9
|
|
40
46
|
}),
|
|
41
47
|
onPress: onClose,
|
|
42
48
|
style: {
|
|
@@ -49,45 +55,44 @@ const styles = StyleSheet.create({
|
|
|
49
55
|
container: {
|
|
50
56
|
flexDirection: 'row',
|
|
51
57
|
alignItems: 'center',
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
borderTopWidth: 1,
|
|
58
|
+
gap: SPACING[400],
|
|
59
|
+
padding: SPACING[400],
|
|
55
60
|
borderBottomWidth: 1,
|
|
56
61
|
borderColor: COLORS.NEUTRAL_4
|
|
57
62
|
},
|
|
58
|
-
left: {
|
|
59
|
-
marginLeft: 48
|
|
60
|
-
},
|
|
61
|
-
label: {
|
|
62
|
-
color: COLORS.GREEN_7,
|
|
63
|
-
fontFamily: FONT_FAMILY.buenosAiresSemiBold,
|
|
64
|
-
fontWeight: '600'
|
|
65
|
-
},
|
|
66
63
|
name: {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
64
|
+
flex: 1,
|
|
65
|
+
fontFamily: FONT_FAMILY.buenosAiresSemiBold,
|
|
66
|
+
fontWeight: '600',
|
|
67
|
+
fontSize: 24,
|
|
70
68
|
color: COLORS.NEUTRAL_10
|
|
71
69
|
},
|
|
72
|
-
|
|
70
|
+
mastery: {
|
|
71
|
+
alignItems: 'flex-end'
|
|
72
|
+
},
|
|
73
|
+
masteryBar: {
|
|
74
|
+
width: 150
|
|
75
|
+
},
|
|
76
|
+
masteryRow: {
|
|
77
|
+
flexDirection: 'row',
|
|
73
78
|
alignItems: 'flex-end',
|
|
74
|
-
|
|
79
|
+
gap: SPACING[100]
|
|
75
80
|
},
|
|
76
81
|
masteryLabel: {
|
|
77
|
-
fontFamily: FONT_FAMILY.
|
|
78
|
-
fontWeight: '
|
|
82
|
+
fontFamily: FONT_FAMILY.buenosAires,
|
|
83
|
+
fontWeight: '400',
|
|
79
84
|
fontSize: 13,
|
|
85
|
+
lineHeight: 26,
|
|
80
86
|
color: COLORS.NEUTRAL_7
|
|
81
87
|
},
|
|
82
88
|
masteryValue: {
|
|
83
|
-
fontFamily: FONT_FAMILY.
|
|
84
|
-
fontWeight: '
|
|
85
|
-
fontSize:
|
|
86
|
-
color: COLORS.
|
|
89
|
+
fontFamily: FONT_FAMILY.buenosAiresSemiBold,
|
|
90
|
+
fontWeight: '600',
|
|
91
|
+
fontSize: 24,
|
|
92
|
+
color: COLORS.PRIMARY_YELLOW
|
|
87
93
|
},
|
|
88
94
|
closeButton: {
|
|
89
|
-
alignSelf: 'center'
|
|
90
|
-
marginLeft: SPACING[600]
|
|
95
|
+
alignSelf: 'center'
|
|
91
96
|
}
|
|
92
97
|
});
|
|
93
98
|
//# sourceMappingURL=DrawerHeader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","Text","View","Button","ButtonColor","ButtonVariant","COLORS","CrossIcon","FONT_FAMILY","
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","Text","View","Button","ButtonColor","ButtonVariant","COLORS","CrossIcon","FONT_FAMILY","SPACING","useText","AverageCell","jsx","_jsx","jsxs","_jsxs","DrawerHeader","student","onClose","t","style","styles","container","children","name","numberOfLines","mastery","masteryRow","masteryLabel","masteryValue","averagePercent","masteryBar","percent","height","showPercent","variant","TERTIARY","colorScheme","WHITE","icon","size","color","NEUTRAL_9","onPress","closeButton","create","flexDirection","alignItems","gap","padding","borderBottomWidth","borderColor","NEUTRAL_4","flex","fontFamily","buenosAiresSemiBold","fontWeight","fontSize","NEUTRAL_10","width","buenosAires","lineHeight","NEUTRAL_7","PRIMARY_YELLOW","alignSelf"],"sourceRoot":"../../../../../../src","sources":["features/fluency-teacher/components/drawer/DrawerHeader.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,EAAEC,IAAI,Q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ACZI,UAAU,EAAE,EAAE;IACdpB,KAAK,EAAEnC,MAAM,CAACwD;EAChB,CAAC;EACDjC,YAAY,EAAE;IACZyB,UAAU,EAAE9C,WAAW,CAAC+C,mBAAmB;IAC3CC,UAAU,EAAE,KAAK;IACjBC,QAAQ,EAAE,EAAE;IACZhB,KAAK,EAAEnC,MAAM,CAACyD;EAChB,CAAC;EACDnB,WAAW,EAAE;IACXoB,SAAS,EAAE;EACb;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -2,48 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { StyleSheet, View } from 'react-native';
|
|
5
|
-
import {
|
|
5
|
+
import { SPACING } from '@magmamath/react-native-ui';
|
|
6
6
|
import { useText } from "../../../../i18n/i18n.js";
|
|
7
|
+
import { useTeacherFluency } from "../../context/TeacherFluencyContext.js";
|
|
7
8
|
import { DrawerOperatorBox } from "./DrawerOperatorBox.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
9
|
+
import { OPERATOR_CARD_CONFIG } from "../../fluencyTeacher.constants.js";
|
|
10
|
+
import { getOperatorsForGrade } from "../../fluencyTeacher.helpers.js";
|
|
11
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
12
|
export const DrawerMatrixes = () => {
|
|
11
13
|
const t = useText();
|
|
12
|
-
|
|
14
|
+
const {
|
|
15
|
+
grade
|
|
16
|
+
} = useTeacherFluency();
|
|
17
|
+
return /*#__PURE__*/_jsx(View, {
|
|
13
18
|
style: styles.grid,
|
|
14
|
-
children:
|
|
15
|
-
title: t(
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
iconColor: COLORS.GREEN_7,
|
|
19
|
-
operator: FluencyOperator.ADDITION
|
|
20
|
-
}), /*#__PURE__*/_jsx(DrawerOperatorBox, {
|
|
21
|
-
title: t('student.fluency.subtraction'),
|
|
22
|
-
symbol: FluencyMathOperatorSymbol.SUBTRACTION,
|
|
23
|
-
iconBg: COLORS.ORANGE_1,
|
|
24
|
-
iconColor: COLORS.ORANGE_7,
|
|
25
|
-
operator: FluencyOperator.SUBTRACTION
|
|
26
|
-
}), /*#__PURE__*/_jsx(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
|
-
}), /*#__PURE__*/_jsx(DrawerOperatorBox, {
|
|
33
|
-
title: t('student.fluency.division'),
|
|
34
|
-
symbol: FluencyMathOperatorSymbol.DIVISION,
|
|
35
|
-
iconBg: COLORS.PURPLE_1,
|
|
36
|
-
iconColor: COLORS.PURPLE_7,
|
|
37
|
-
operator: FluencyOperator.DIVISION
|
|
38
|
-
})]
|
|
19
|
+
children: getOperatorsForGrade(grade).map(operator => /*#__PURE__*/_jsx(DrawerOperatorBox, {
|
|
20
|
+
title: t(OPERATOR_CARD_CONFIG[operator].labelKey),
|
|
21
|
+
operator: operator
|
|
22
|
+
}, operator))
|
|
39
23
|
});
|
|
40
24
|
};
|
|
41
25
|
const styles = StyleSheet.create({
|
|
42
26
|
grid: {
|
|
43
27
|
flexDirection: 'row',
|
|
44
28
|
flexWrap: 'wrap',
|
|
45
|
-
gap: SPACING[
|
|
46
|
-
marginTop: SPACING[300],
|
|
29
|
+
gap: SPACING[400],
|
|
47
30
|
marginBottom: SPACING[600]
|
|
48
31
|
}
|
|
49
32
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","View","
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","View","SPACING","useText","useTeacherFluency","DrawerOperatorBox","OPERATOR_CARD_CONFIG","getOperatorsForGrade","jsx","_jsx","DrawerMatrixes","t","grade","style","styles","grid","children","map","operator","title","labelKey","create","flexDirection","flexWrap","gap","marginBottom"],"sourceRoot":"../../../../../../src","sources":["features/fluency-teacher/components/drawer/DrawerMatrixes.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,OAAO,QAAQ,4BAA4B;AACpD,SAASC,OAAO,QAAQ,0BAAuB;AAC/C,SAASC,iBAAiB,QAAQ,wCAAqC;AACvE,SAASC,iBAAiB,QAAQ,wBAAqB;AACvD,SAASC,oBAAoB,QAAQ,mCAAgC;AACrE,SAASC,oBAAoB,QAAQ,iCAA8B;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAEnE,OAAO,MAAMC,cAAc,GAAGA,CAAA,KAAM;EAClC,MAAMC,CAAC,GAAGR,OAAO,CAAC,CAAC;EACnB,MAAM;IAAES;EAAM,CAAC,GAAGR,iBAAiB,CAAC,CAAC;EACrC,oBACEK,IAAA,CAACR,IAAI;IAACY,KAAK,EAAEC,MAAM,CAACC,IAAK;IAAAC,QAAA,EACtBT,oBAAoB,CAACK,KAAK,CAAC,CAACK,GAAG,CAAEC,QAAQ,iBACxCT,IAAA,CAACJ,iBAAiB;MAEhBc,KAAK,EAAER,CAAC,CAACL,oBAAoB,CAACY,QAAQ,CAAC,CAACE,QAAQ,CAAE;MAClDF,QAAQ,EAAEA;IAAS,GAFdA,QAGN,CACF;EAAC,CACE,CAAC;AAEX,CAAC;AAED,MAAMJ,MAAM,GAAGd,UAAU,CAACqB,MAAM,CAAC;EAC/BN,IAAI,EAAE;IACJO,aAAa,EAAE,KAAK;IACpBC,QAAQ,EAAE,MAAM;IAChBC,GAAG,EAAEtB,OAAO,CAAC,GAAG,CAAC;IACjBuB,YAAY,EAAEvB,OAAO,CAAC,GAAG;EAC3B;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -7,13 +7,12 @@ import { BORDER_RADIUS, COLORS, FONT_FAMILY, SPACING } from '@magmamath/react-na
|
|
|
7
7
|
import { useText } from "../../../../i18n/i18n.js";
|
|
8
8
|
import { useDrawerMatrix } from "../../hooks/useDrawerMatrix.js";
|
|
9
9
|
import { DrawerMatrix } from "../matrix/DrawerMatrix.js";
|
|
10
|
+
import { MatrixLegend } from "../matrix/MatrixLegend.js";
|
|
10
11
|
import { useTeacherFluency } from "../../context/TeacherFluencyContext.js";
|
|
11
|
-
import {
|
|
12
|
+
import { OPERATOR_PALETTES } from "../../fluencyTeacher.constants.js";
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
12
14
|
export const DrawerOperatorBox = ({
|
|
13
15
|
title,
|
|
14
|
-
symbol,
|
|
15
|
-
iconBg,
|
|
16
|
-
iconColor,
|
|
17
16
|
operator
|
|
18
17
|
}) => {
|
|
19
18
|
const t = useText();
|
|
@@ -27,24 +26,14 @@ export const DrawerOperatorBox = ({
|
|
|
27
26
|
rows: matrixProps.grid.rows.length
|
|
28
27
|
}) : '';
|
|
29
28
|
return /*#__PURE__*/_jsxs(View, {
|
|
30
|
-
style: styles.container,
|
|
29
|
+
style: [styles.container, {
|
|
30
|
+
borderColor: OPERATOR_PALETTES[operator].boxBorder
|
|
31
|
+
}],
|
|
31
32
|
children: [/*#__PURE__*/_jsxs(View, {
|
|
32
33
|
style: styles.header,
|
|
33
|
-
children: [/*#__PURE__*/_jsx(
|
|
34
|
-
style: [styles.iconBox, {
|
|
35
|
-
backgroundColor: iconBg
|
|
36
|
-
}],
|
|
37
|
-
children: /*#__PURE__*/_jsx(Text, {
|
|
38
|
-
style: [styles.symbol, {
|
|
39
|
-
color: iconColor
|
|
40
|
-
}],
|
|
41
|
-
children: symbol
|
|
42
|
-
})
|
|
43
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
34
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
44
35
|
style: styles.title,
|
|
45
36
|
children: title
|
|
46
|
-
}), /*#__PURE__*/_jsx(View, {
|
|
47
|
-
style: styles.spacer
|
|
48
37
|
}), /*#__PURE__*/_jsx(Text, {
|
|
49
38
|
style: styles.factsLabel,
|
|
50
39
|
children: factsLabel
|
|
@@ -57,56 +46,50 @@ export const DrawerOperatorBox = ({
|
|
|
57
46
|
size: "large",
|
|
58
47
|
color: COLORS.PRIMARY_BLUE
|
|
59
48
|
})
|
|
60
|
-
}) : /*#__PURE__*/
|
|
61
|
-
|
|
49
|
+
}) : /*#__PURE__*/_jsxs(_Fragment, {
|
|
50
|
+
children: [/*#__PURE__*/_jsx(DrawerMatrix, {
|
|
51
|
+
...matrixProps
|
|
52
|
+
}), matrixProps.grid && /*#__PURE__*/_jsx(MatrixLegend, {
|
|
53
|
+
operator: operator,
|
|
54
|
+
grid: matrixProps.grid
|
|
55
|
+
})]
|
|
62
56
|
})
|
|
63
57
|
})]
|
|
64
58
|
});
|
|
65
59
|
};
|
|
66
60
|
const styles = StyleSheet.create({
|
|
67
61
|
container: {
|
|
68
|
-
|
|
69
|
-
|
|
62
|
+
flexGrow: 1,
|
|
63
|
+
flexBasis: '45%',
|
|
70
64
|
borderWidth: 1,
|
|
71
|
-
borderColor: COLORS.NEUTRAL_4,
|
|
72
65
|
borderRadius: BORDER_RADIUS[300],
|
|
73
|
-
|
|
66
|
+
backgroundColor: COLORS.NEUTRAL_1,
|
|
67
|
+
padding: SPACING[400],
|
|
68
|
+
gap: SPACING[300]
|
|
74
69
|
},
|
|
75
70
|
header: {
|
|
76
71
|
flexDirection: 'row',
|
|
77
72
|
alignItems: 'center',
|
|
78
|
-
gap: SPACING[200]
|
|
79
|
-
marginBottom: SPACING[300]
|
|
80
|
-
},
|
|
81
|
-
iconBox: {
|
|
82
|
-
width: 24,
|
|
83
|
-
height: 24,
|
|
84
|
-
borderRadius: 6,
|
|
85
|
-
alignItems: 'center',
|
|
86
|
-
justifyContent: 'center'
|
|
87
|
-
},
|
|
88
|
-
symbol: {
|
|
89
|
-
fontFamily: FONT_FAMILY.buenosAiresBold,
|
|
90
|
-
fontSize: 20,
|
|
91
|
-
marginBottom: 2
|
|
73
|
+
gap: SPACING[200]
|
|
92
74
|
},
|
|
93
75
|
title: {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
76
|
+
flex: 1,
|
|
77
|
+
fontFamily: FONT_FAMILY.buenosAires,
|
|
78
|
+
fontWeight: '400',
|
|
79
|
+
fontSize: 16,
|
|
97
80
|
color: COLORS.NEUTRAL_10
|
|
98
81
|
},
|
|
99
|
-
spacer: {
|
|
100
|
-
flex: 1
|
|
101
|
-
},
|
|
102
82
|
factsLabel: {
|
|
103
83
|
fontFamily: FONT_FAMILY.buenosAiresSemiBold,
|
|
104
84
|
fontSize: 13,
|
|
105
85
|
fontWeight: '600',
|
|
86
|
+
textTransform: 'uppercase',
|
|
106
87
|
color: COLORS.NEUTRAL_7
|
|
107
88
|
},
|
|
108
89
|
content: {
|
|
109
|
-
|
|
90
|
+
height: 210,
|
|
91
|
+
flexDirection: 'row',
|
|
92
|
+
gap: SPACING[200]
|
|
110
93
|
},
|
|
111
94
|
loader: {
|
|
112
95
|
flex: 1,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","ActivityIndicator","StyleSheet","Text","View","useUnit","BORDER_RADIUS","COLORS","FONT_FAMILY","SPACING","useText","useDrawerMatrix","DrawerMatrix","useTeacherFluency","jsx","_jsx","jsxs","_jsxs","
|
|
1
|
+
{"version":3,"names":["React","ActivityIndicator","StyleSheet","Text","View","useUnit","BORDER_RADIUS","COLORS","FONT_FAMILY","SPACING","useText","useDrawerMatrix","DrawerMatrix","MatrixLegend","useTeacherFluency","OPERATOR_PALETTES","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","DrawerOperatorBox","title","operator","t","model","isLoading","api","getStudentDetailsFx","pending","matrixProps","factsLabel","grid","cols","colLabels","length","rows","style","styles","container","borderColor","boxBorder","children","header","content","loader","size","color","PRIMARY_BLUE","create","flexGrow","flexBasis","borderWidth","borderRadius","backgroundColor","NEUTRAL_1","padding","gap","flexDirection","alignItems","flex","fontFamily","buenosAires","fontWeight","fontSize","NEUTRAL_10","buenosAiresSemiBold","textTransform","NEUTRAL_7","height","justifyContent"],"sourceRoot":"../../../../../../src","sources":["features/fluency-teacher/components/drawer/DrawerOperatorBox.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,iBAAiB,EAAEC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACxE,SAASC,OAAO,QAAQ,gBAAgB;AACxC,SAASC,aAAa,EAAEC,MAAM,EAAEC,WAAW,EAAEC,OAAO,QAAQ,4BAA4B;AACxF,SAASC,OAAO,QAAQ,0BAAuB;AAC/C,SAASC,eAAe,QAAQ,gCAA6B;AAC7D,SAASC,YAAY,QAAQ,2BAAwB;AACrD,SAASC,YAAY,QAAQ,2BAAwB;AACrD,SAASC,iBAAiB,QAAQ,wCAAqC;AAEvE,SAA0BC,iBAAiB,QAAQ,mCAAgC;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA,EAAAC,QAAA,IAAAC,SAAA;AAOnF,OAAO,MAAMC,iBAAiB,GAAGA,CAAC;EAAEC,KAAK;EAAEC;AAAiC,CAAC,KAAK;EAChF,MAAMC,CAAC,GAAGf,OAAO,CAAC,CAAC;EACnB,MAAM;IAAEgB;EAAM,CAAC,GAAGZ,iBAAiB,CAAC,CAAC;EACrC,MAAMa,SAAS,GAAGtB,OAAO,CAACqB,KAAK,CAACE,GAAG,CAACC,mBAAmB,CAACC,OAAO,CAAC;EAChE,MAAMC,WAAW,GAAGpB,eAAe,CAACa,QAAQ,CAAC;EAC7C,MAAMQ,UAAU,GAAGD,WAAW,CAACE,IAAI,GAC/BR,CAAC,CAAC,gCAAgC,EAAE;IAClCS,IAAI,EAAEH,WAAW,CAACE,IAAI,CAACE,SAAS,CAACC,MAAM;IACvCC,IAAI,EAAEN,WAAW,CAACE,IAAI,CAACI,IAAI,CAACD;EAC9B,CAAC,CAAC,GACF,EAAE;EAEN,oBACEjB,KAAA,CAACf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,eAAe,EAAEhD,MAAM,CAACiD,SAAS;IACjCC,OAAO,EAAEhD,OAAO,CAAC,GAAG,CAAC;IACrBiD,GAAG,EAAEjD,OAAO,CAAC,GAAG;EAClB,CAAC;EACDmC,MAAM,EAAE;IACNe,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBF,GAAG,EAAEjD,OAAO,CAAC,GAAG;EAClB,CAAC;EACDc,KAAK,EAAE;IACLsC,IAAI,EAAE,CAAC;IACPC,UAAU,EAAEtD,WAAW,CAACuD,WAAW;IACnCC,UAAU,EAAE,KAAK;IACjBC,QAAQ,EAAE,EAAE;IACZjB,KAAK,EAAEzC,MAAM,CAAC2D;EAChB,CAAC;EACDlC,UAAU,EAAE;IACV8B,UAAU,EAAEtD,WAAW,CAAC2D,mBAAmB;IAC3CF,QAAQ,EAAE,EAAE;IACZD,UAAU,EAAE,KAAK;IACjBI,aAAa,EAAE,WAAW;IAC1BpB,KAAK,EAAEzC,MAAM,CAAC8D;EAChB,CAAC;EACDxB,OAAO,EAAE;IACPyB,MAAM,EAAE,GAAG;IACXX,aAAa,EAAE,KAAK;IACpBD,GAAG,EAAEjD,OAAO,CAAC,GAAG;EAClB,CAAC;EACDqC,MAAM,EAAE;IACNe,IAAI,EAAE,CAAC;IACPU,cAAc,EAAE,QAAQ;IACxBX,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -2,70 +2,77 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { StyleSheet, Text, View } from 'react-native';
|
|
5
|
-
import {
|
|
5
|
+
import { BORDER_RADIUS, FONT_FAMILY, SPACING } from '@magmamath/react-native-ui';
|
|
6
|
+
import { getOperatorBandColors } from "../../fluencyTeacher.helpers.js";
|
|
6
7
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
8
|
export const DrawerOperatorStatCard = ({
|
|
8
9
|
title,
|
|
9
10
|
value,
|
|
10
11
|
symbol,
|
|
11
|
-
|
|
12
|
-
}) =>
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
operator
|
|
13
|
+
}) => {
|
|
14
|
+
const {
|
|
15
|
+
background,
|
|
16
|
+
border,
|
|
17
|
+
text
|
|
18
|
+
} = getOperatorBandColors(operator, value);
|
|
19
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
20
|
+
style: [styles.container, {
|
|
21
|
+
backgroundColor: background,
|
|
22
|
+
borderColor: border
|
|
17
23
|
}],
|
|
18
|
-
children: /*#__PURE__*/
|
|
19
|
-
style:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
25
|
+
style: styles.titleRow,
|
|
26
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
27
|
+
style: [styles.symbol, {
|
|
28
|
+
color: text
|
|
29
|
+
}],
|
|
30
|
+
children: symbol
|
|
31
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
32
|
+
style: [styles.title, {
|
|
33
|
+
color: text
|
|
34
|
+
}],
|
|
35
|
+
numberOfLines: 1,
|
|
36
|
+
children: title
|
|
37
|
+
})]
|
|
28
38
|
}), /*#__PURE__*/_jsxs(Text, {
|
|
29
|
-
style: styles.value,
|
|
39
|
+
style: [styles.value, {
|
|
40
|
+
color: text
|
|
41
|
+
}],
|
|
30
42
|
children: [value, "%"]
|
|
31
43
|
})]
|
|
32
|
-
})
|
|
33
|
-
}
|
|
44
|
+
});
|
|
45
|
+
};
|
|
34
46
|
const styles = StyleSheet.create({
|
|
35
47
|
container: {
|
|
36
48
|
flex: 1,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
borderWidth: 1,
|
|
43
|
-
borderColor: COLORS.NEUTRAL_4,
|
|
44
|
-
backgroundColor: COLORS.NEUTRAL_2
|
|
49
|
+
justifyContent: 'center',
|
|
50
|
+
gap: SPACING[100],
|
|
51
|
+
padding: SPACING[200],
|
|
52
|
+
borderRadius: BORDER_RADIUS[200],
|
|
53
|
+
borderWidth: 1
|
|
45
54
|
},
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
height: 32,
|
|
49
|
-
borderRadius: SPACING[200],
|
|
55
|
+
titleRow: {
|
|
56
|
+
flexDirection: 'row',
|
|
50
57
|
alignItems: 'center',
|
|
51
|
-
|
|
58
|
+
gap: SPACING[100]
|
|
52
59
|
},
|
|
53
60
|
symbol: {
|
|
61
|
+
width: 16,
|
|
54
62
|
fontFamily: FONT_FAMILY.buenosAiresBold,
|
|
55
|
-
fontSize:
|
|
56
|
-
|
|
63
|
+
fontSize: 16,
|
|
64
|
+
textAlign: 'center'
|
|
57
65
|
},
|
|
58
66
|
title: {
|
|
67
|
+
flexShrink: 1,
|
|
59
68
|
fontFamily: FONT_FAMILY.buenosAires,
|
|
60
69
|
fontWeight: '400',
|
|
61
|
-
fontSize:
|
|
62
|
-
color: COLORS.NEUTRAL_7
|
|
70
|
+
fontSize: 16
|
|
63
71
|
},
|
|
64
72
|
value: {
|
|
65
|
-
fontFamily: FONT_FAMILY.
|
|
66
|
-
fontWeight: '
|
|
67
|
-
fontSize:
|
|
68
|
-
color: COLORS.NEUTRAL_10
|
|
73
|
+
fontFamily: FONT_FAMILY.buenosAiresSemiBold,
|
|
74
|
+
fontWeight: '600',
|
|
75
|
+
fontSize: 24
|
|
69
76
|
}
|
|
70
77
|
});
|
|
71
78
|
//# sourceMappingURL=DrawerOperatorStatCard.js.map
|
package/dist/module/features/fluency-teacher/components/drawer/DrawerOperatorStatCard.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","Text","View","
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","Text","View","BORDER_RADIUS","FONT_FAMILY","SPACING","getOperatorBandColors","jsx","_jsx","jsxs","_jsxs","DrawerOperatorStatCard","title","value","symbol","operator","background","border","text","style","styles","container","backgroundColor","borderColor","children","titleRow","color","numberOfLines","create","flex","justifyContent","gap","padding","borderRadius","borderWidth","flexDirection","alignItems","width","fontFamily","buenosAiresBold","fontSize","textAlign","flexShrink","buenosAires","fontWeight","buenosAiresSemiBold"],"sourceRoot":"../../../../../../src","sources":["features/fluency-teacher/components/drawer/DrawerOperatorStatCard.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACrD,SAASC,aAAa,EAAEC,WAAW,EAAEC,OAAO,QAAQ,4BAA4B;AAChF,SAASC,qBAAqB,QAAQ,iCAA8B;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAUpE,OAAO,MAAMC,sBAAsB,GAAGA,CAAC;EACrCC,KAAK;EACLC,KAAK;EACLC,MAAM;EACNC;AAC2B,CAAC,KAAK;EACjC,MAAM;IAAEC,UAAU;IAAEC,MAAM;IAAEC;EAAK,CAAC,GAAGZ,qBAAqB,CAACS,QAAQ,EAAEF,KAAK,CAAC;EAC3E,oBACEH,KAAA,CAACR,IAAI;IAACiB,KAAK,EAAE,CAACC,MAAM,CAACC,SAAS,EAAE;MAAEC,eAAe,EAAEN,UAAU;MAAEO,WAAW,EAAEN;IAAO,CAAC,CAAE;IAAAO,QAAA,gBACpFd,KAAA,CAACR,IAAI;MAACiB,KAAK,EAAEC,MAAM,CAACK,QAAS;MAAAD,QAAA,gBAC3BhB,IAAA,CAACP,IAAI;QAACkB,KAAK,EAAE,CAACC,MAAM,CAACN,MAAM,EAAE;UAAEY,KAAK,EAAER;QAAK,CAAC,CAAE;QAAAM,QAAA,EAAEV;MAAM,CAAO,CAAC,eAC9DN,IAAA,CAACP,IAAI;QAACkB,KAAK,EAAE,CAACC,MAAM,CAACR,KAAK,EAAE;UAAEc,KAAK,EAAER;QAA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
5
|
-
import {
|
|
5
|
+
import { SPACING } from '@magmamath/react-native-ui';
|
|
6
6
|
import { useText } from "../../../../i18n/i18n.js";
|
|
7
|
+
import { useTeacherFluency } from "../../context/TeacherFluencyContext.js";
|
|
7
8
|
import { DrawerOperatorStatCard } from "./DrawerOperatorStatCard.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
9
|
+
import { OPERATOR_CARD_CONFIG, OPERATOR_TO_COLUMN } from "../../fluencyTeacher.constants.js";
|
|
10
|
+
import { getOperatorsForGrade } from "../../fluencyTeacher.helpers.js";
|
|
11
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
12
|
export const DrawerStats = ({
|
|
11
13
|
scores
|
|
12
14
|
}) => {
|
|
13
15
|
const t = useText();
|
|
14
|
-
|
|
16
|
+
const {
|
|
17
|
+
grade
|
|
18
|
+
} = useTeacherFluency();
|
|
19
|
+
return /*#__PURE__*/_jsx(View, {
|
|
15
20
|
style: styles.container,
|
|
16
|
-
children:
|
|
17
|
-
title: t(
|
|
18
|
-
symbol:
|
|
19
|
-
|
|
20
|
-
value: scores
|
|
21
|
-
}
|
|
22
|
-
title: t('student.fluency.subtraction'),
|
|
23
|
-
symbol: FluencyMathOperatorSymbol.SUBTRACTION,
|
|
24
|
-
color: COLORS.PRIMARY_ORANGE,
|
|
25
|
-
value: scores.subtraction
|
|
26
|
-
}), /*#__PURE__*/_jsx(DrawerOperatorStatCard, {
|
|
27
|
-
title: t('student.fluency.multiplication'),
|
|
28
|
-
symbol: FluencyMathOperatorSymbol.MULTIPLICATION,
|
|
29
|
-
color: COLORS.PRIMARY_BLUE,
|
|
30
|
-
value: scores.multiplication
|
|
31
|
-
}), /*#__PURE__*/_jsx(DrawerOperatorStatCard, {
|
|
32
|
-
title: t('student.fluency.division'),
|
|
33
|
-
symbol: FluencyMathOperatorSymbol.DIVISION,
|
|
34
|
-
color: COLORS.PRIMARY_PURPLE,
|
|
35
|
-
value: scores.division
|
|
36
|
-
})]
|
|
21
|
+
children: getOperatorsForGrade(grade).map(operator => /*#__PURE__*/_jsx(DrawerOperatorStatCard, {
|
|
22
|
+
title: t(OPERATOR_CARD_CONFIG[operator].labelKey),
|
|
23
|
+
symbol: OPERATOR_CARD_CONFIG[operator].symbol,
|
|
24
|
+
operator: operator,
|
|
25
|
+
value: scores[OPERATOR_TO_COLUMN[operator]]
|
|
26
|
+
}, operator))
|
|
37
27
|
});
|
|
38
28
|
};
|
|
39
29
|
const styles = StyleSheet.create({
|
|
40
30
|
container: {
|
|
41
31
|
flexDirection: 'row',
|
|
42
|
-
gap: SPACING[
|
|
43
|
-
paddingBottom: SPACING[
|
|
32
|
+
gap: SPACING[400],
|
|
33
|
+
paddingBottom: SPACING[400]
|
|
44
34
|
}
|
|
45
35
|
});
|
|
46
36
|
//# sourceMappingURL=DrawerStats.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","View","
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","View","SPACING","useText","useTeacherFluency","DrawerOperatorStatCard","OPERATOR_CARD_CONFIG","OPERATOR_TO_COLUMN","getOperatorsForGrade","jsx","_jsx","DrawerStats","scores","t","grade","style","styles","container","children","map","operator","title","labelKey","symbol","value","create","flexDirection","gap","paddingBottom"],"sourceRoot":"../../../../../../src","sources":["features/fluency-teacher/components/drawer/DrawerStats.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,OAAO,QAAQ,4BAA4B;AACpD,SAASC,OAAO,QAAQ,0BAAuB;AAC/C,SAASC,iBAAiB,QAAQ,wCAAqC;AACvE,SAASC,sBAAsB,QAAQ,6BAA0B;AAGjE,SAASC,oBAAoB,EAAEC,kBAAkB,QAAQ,mCAAgC;AACzF,SAASC,oBAAoB,QAAQ,iCAA8B;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAMnE,OAAO,MAAMC,WAAW,GAAGA,CA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