@magmamath/students-features 0.9.5-rc.1 → 0.9.5

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.
Files changed (266) hide show
  1. package/dist/commonjs/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.js +44 -0
  2. package/dist/commonjs/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.js.map +1 -0
  3. package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js +10 -3
  4. package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js.map +1 -1
  5. package/dist/commonjs/features/endOfAssignment/components/EOAModal.js +2 -4
  6. package/dist/commonjs/features/endOfAssignment/components/EOAModal.js.map +1 -1
  7. package/dist/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.js +5 -3
  8. package/dist/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.js.map +1 -1
  9. package/dist/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js +2 -1
  10. package/dist/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js.map +1 -1
  11. package/dist/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.js +9 -2
  12. package/dist/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.js.map +1 -1
  13. package/dist/commonjs/features/endOfAssignment/helpers.js +10 -3
  14. package/dist/commonjs/features/endOfAssignment/helpers.js.map +1 -1
  15. package/dist/commonjs/features/endOfAssignment/model/model.js +7 -0
  16. package/dist/commonjs/features/endOfAssignment/model/model.js.map +1 -1
  17. package/dist/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.js +2 -2
  18. package/dist/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.js.map +1 -1
  19. package/dist/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.js +9 -2
  20. package/dist/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.js.map +1 -1
  21. package/dist/commonjs/features/keyboard/components/AlgebraLayout/helpers.js +13 -3
  22. package/dist/commonjs/features/keyboard/components/AlgebraLayout/helpers.js.map +1 -1
  23. package/dist/commonjs/features/keyboard/components/BasicLayout/keyboardGroups.js +1 -5
  24. package/dist/commonjs/features/keyboard/components/BasicLayout/keyboardGroups.js.map +1 -1
  25. package/dist/commonjs/features/keyboard/components/Keyboard.js +4 -4
  26. package/dist/commonjs/features/keyboard/components/Keyboard.js.map +1 -1
  27. package/dist/commonjs/features/keyboard/components/MainLayout.js +74 -0
  28. package/dist/commonjs/features/keyboard/components/MainLayout.js.map +1 -0
  29. package/dist/commonjs/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.js +24 -0
  30. package/dist/commonjs/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.js.map +1 -0
  31. package/dist/commonjs/features/keyboard/components/UnderlinedLayout/keyboardGroups.js +13 -0
  32. package/dist/commonjs/features/keyboard/components/UnderlinedLayout/keyboardGroups.js.map +1 -0
  33. package/dist/commonjs/features/keyboard/components/UnitsLayout/UnitsLayout.js +6 -2
  34. package/dist/commonjs/features/keyboard/components/UnitsLayout/UnitsLayout.js.map +1 -1
  35. package/dist/commonjs/features/keyboard/components/UnitsLayout/helpers.js +10 -3
  36. package/dist/commonjs/features/keyboard/components/UnitsLayout/helpers.js.map +1 -1
  37. package/dist/commonjs/features/keyboard/constants/keyboardGroupsByLocale.js +3 -21
  38. package/dist/commonjs/features/keyboard/constants/keyboardGroupsByLocale.js.map +1 -1
  39. package/dist/commonjs/features/keyboard/types/MathKeysGroups/basicOperators.js +27 -0
  40. package/dist/commonjs/features/keyboard/types/MathKeysGroups/basicOperators.js.map +1 -1
  41. package/dist/commonjs/features/keyboard/types/keyboardGroupIds.js +1 -1
  42. package/dist/commonjs/features/keyboard/types/types.js +1 -0
  43. package/dist/commonjs/features/keyboard/types/types.js.map +1 -1
  44. package/dist/commonjs/lib/helpers/helpers.js +5 -28
  45. package/dist/commonjs/lib/helpers/helpers.js.map +1 -1
  46. package/dist/commonjs/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.js +34 -0
  47. package/dist/commonjs/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.js.map +1 -0
  48. package/dist/commonjs/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.js +34 -0
  49. package/dist/commonjs/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.js.map +1 -0
  50. package/dist/commonjs/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.js +34 -0
  51. package/dist/commonjs/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.js.map +1 -0
  52. package/dist/commonjs/shared/translation/constants.js +1 -3
  53. package/dist/commonjs/shared/translation/constants.js.map +1 -1
  54. package/dist/commonjs/shared/translation/localization/ca.json +5 -5
  55. package/dist/commonjs/shared/translation/localization/en.json +5 -5
  56. package/dist/commonjs/shared/translation/localization/gb.json +5 -5
  57. package/dist/commonjs/shared/translation/localization/sct.json +5 -5
  58. package/dist/commonjs/shared/translation/localization/sw.json +5 -5
  59. package/dist/commonjs/shared/translation/types.js +0 -1
  60. package/dist/commonjs/shared/translation/types.js.map +1 -1
  61. package/dist/module/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.js +38 -0
  62. package/dist/module/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.js.map +1 -0
  63. package/dist/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js +10 -3
  64. package/dist/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js.map +1 -1
  65. package/dist/module/features/endOfAssignment/components/EOAModal.js +2 -4
  66. package/dist/module/features/endOfAssignment/components/EOAModal.js.map +1 -1
  67. package/dist/module/features/endOfAssignment/components/ExamPaused/ExamPaused.js +6 -4
  68. package/dist/module/features/endOfAssignment/components/ExamPaused/ExamPaused.js.map +1 -1
  69. package/dist/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js +3 -2
  70. package/dist/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js.map +1 -1
  71. package/dist/module/features/endOfAssignment/components/NoAnswer/NoAnswer.js +9 -2
  72. package/dist/module/features/endOfAssignment/components/NoAnswer/NoAnswer.js.map +1 -1
  73. package/dist/module/features/endOfAssignment/helpers.js +8 -2
  74. package/dist/module/features/endOfAssignment/helpers.js.map +1 -1
  75. package/dist/module/features/endOfAssignment/model/model.js +7 -0
  76. package/dist/module/features/endOfAssignment/model/model.js.map +1 -1
  77. package/dist/module/features/endOfAssignment/ui/PracticeButtonGroup.js +2 -2
  78. package/dist/module/features/endOfAssignment/ui/PracticeButtonGroup.js.map +1 -1
  79. package/dist/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.js +9 -2
  80. package/dist/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.js.map +1 -1
  81. package/dist/module/features/keyboard/components/AlgebraLayout/helpers.js +13 -3
  82. package/dist/module/features/keyboard/components/AlgebraLayout/helpers.js.map +1 -1
  83. package/dist/module/features/keyboard/components/BasicLayout/keyboardGroups.js +0 -4
  84. package/dist/module/features/keyboard/components/BasicLayout/keyboardGroups.js.map +1 -1
  85. package/dist/module/features/keyboard/components/Keyboard.js +4 -4
  86. package/dist/module/features/keyboard/components/Keyboard.js.map +1 -1
  87. package/dist/module/features/keyboard/components/MainLayout.js +67 -0
  88. package/dist/module/features/keyboard/components/MainLayout.js.map +1 -0
  89. package/dist/module/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.js +18 -0
  90. package/dist/module/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.js.map +1 -0
  91. package/dist/module/features/keyboard/components/UnderlinedLayout/keyboardGroups.js +9 -0
  92. package/dist/module/features/keyboard/components/UnderlinedLayout/keyboardGroups.js.map +1 -0
  93. package/dist/module/features/keyboard/components/UnitsLayout/UnitsLayout.js +6 -2
  94. package/dist/module/features/keyboard/components/UnitsLayout/UnitsLayout.js.map +1 -1
  95. package/dist/module/features/keyboard/components/UnitsLayout/helpers.js +10 -3
  96. package/dist/module/features/keyboard/components/UnitsLayout/helpers.js.map +1 -1
  97. package/dist/module/features/keyboard/constants/keyboardGroupsByLocale.js +4 -22
  98. package/dist/module/features/keyboard/constants/keyboardGroupsByLocale.js.map +1 -1
  99. package/dist/module/features/keyboard/types/MathKeysGroups/basicOperators.js +27 -0
  100. package/dist/module/features/keyboard/types/MathKeysGroups/basicOperators.js.map +1 -1
  101. package/dist/module/features/keyboard/types/keyboardGroupIds.js +1 -1
  102. package/dist/module/features/keyboard/types/types.js +1 -0
  103. package/dist/module/features/keyboard/types/types.js.map +1 -1
  104. package/dist/module/lib/helpers/helpers.js +5 -28
  105. package/dist/module/lib/helpers/helpers.js.map +1 -1
  106. package/dist/module/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.js +26 -0
  107. package/dist/module/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.js.map +1 -0
  108. package/dist/module/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.js +26 -0
  109. package/dist/module/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.js.map +1 -0
  110. package/dist/module/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.js +26 -0
  111. package/dist/module/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.js.map +1 -0
  112. package/dist/module/shared/translation/constants.js +1 -3
  113. package/dist/module/shared/translation/constants.js.map +1 -1
  114. package/dist/module/shared/translation/localization/ca.json +5 -5
  115. package/dist/module/shared/translation/localization/en.json +5 -5
  116. package/dist/module/shared/translation/localization/gb.json +5 -5
  117. package/dist/module/shared/translation/localization/sct.json +5 -5
  118. package/dist/module/shared/translation/localization/sw.json +5 -5
  119. package/dist/module/shared/translation/types.js +0 -1
  120. package/dist/module/shared/translation/types.js.map +1 -1
  121. package/dist/typescript/commonjs/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.d.ts +10 -0
  122. package/dist/typescript/commonjs/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.d.ts.map +1 -0
  123. package/dist/typescript/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.d.ts.map +1 -1
  124. package/dist/typescript/commonjs/features/endOfAssignment/components/EOAModal.d.ts +1 -3
  125. package/dist/typescript/commonjs/features/endOfAssignment/components/EOAModal.d.ts.map +1 -1
  126. package/dist/typescript/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.d.ts +1 -1
  127. package/dist/typescript/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.d.ts.map +1 -1
  128. package/dist/typescript/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.d.ts.map +1 -1
  129. package/dist/typescript/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.d.ts.map +1 -1
  130. package/dist/typescript/commonjs/features/endOfAssignment/helpers.d.ts +3 -1
  131. package/dist/typescript/commonjs/features/endOfAssignment/helpers.d.ts.map +1 -1
  132. package/dist/typescript/commonjs/features/endOfAssignment/model/model.d.ts +5 -0
  133. package/dist/typescript/commonjs/features/endOfAssignment/model/model.d.ts.map +1 -1
  134. package/dist/typescript/commonjs/features/endOfAssignment/types.d.ts +2 -2
  135. package/dist/typescript/commonjs/features/endOfAssignment/types.d.ts.map +1 -1
  136. package/dist/typescript/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.d.ts +3 -2
  137. package/dist/typescript/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.d.ts.map +1 -1
  138. package/dist/typescript/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.d.ts +1 -1
  139. package/dist/typescript/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.d.ts.map +1 -1
  140. package/dist/typescript/commonjs/features/keyboard/components/AlgebraLayout/helpers.d.ts +6 -1
  141. package/dist/typescript/commonjs/features/keyboard/components/AlgebraLayout/helpers.d.ts.map +1 -1
  142. package/dist/typescript/commonjs/features/keyboard/components/BasicLayout/keyboardGroups.d.ts +0 -1
  143. package/dist/typescript/commonjs/features/keyboard/components/BasicLayout/keyboardGroups.d.ts.map +1 -1
  144. package/dist/typescript/commonjs/features/keyboard/components/Keyboard.d.ts +1 -0
  145. package/dist/typescript/commonjs/features/keyboard/components/Keyboard.d.ts.map +1 -1
  146. package/dist/typescript/commonjs/features/keyboard/components/MainLayout.d.ts +15 -0
  147. package/dist/typescript/commonjs/features/keyboard/components/MainLayout.d.ts.map +1 -0
  148. package/dist/typescript/commonjs/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.d.ts +4 -0
  149. package/dist/typescript/commonjs/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.d.ts.map +1 -0
  150. package/dist/typescript/commonjs/features/keyboard/components/UnderlinedLayout/keyboardGroups.d.ts +3 -0
  151. package/dist/typescript/commonjs/features/keyboard/components/UnderlinedLayout/keyboardGroups.d.ts.map +1 -0
  152. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/UnitsLayout.d.ts +1 -1
  153. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/UnitsLayout.d.ts.map +1 -1
  154. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/helpers.d.ts +2 -1
  155. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/helpers.d.ts.map +1 -1
  156. package/dist/typescript/commonjs/features/keyboard/constants/keyboardGroupsByLocale.d.ts.map +1 -1
  157. package/dist/typescript/commonjs/features/keyboard/constants/keyboardLayouts.d.ts +2 -2
  158. package/dist/typescript/commonjs/features/keyboard/types/MathKeysGroups/basicOperators.d.ts +18 -0
  159. package/dist/typescript/commonjs/features/keyboard/types/MathKeysGroups/basicOperators.d.ts.map +1 -1
  160. package/dist/typescript/commonjs/features/keyboard/types/keyboardGroupIds.d.ts +1 -1
  161. package/dist/typescript/commonjs/features/keyboard/types/keyboardGroupIds.d.ts.map +1 -1
  162. package/dist/typescript/commonjs/features/keyboard/types/types.d.ts +3 -1
  163. package/dist/typescript/commonjs/features/keyboard/types/types.d.ts.map +1 -1
  164. package/dist/typescript/commonjs/lib/helpers/helpers.d.ts.map +1 -1
  165. package/dist/typescript/commonjs/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.d.ts +4 -0
  166. package/dist/typescript/commonjs/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.d.ts.map +1 -0
  167. package/dist/typescript/commonjs/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.d.ts +4 -0
  168. package/dist/typescript/commonjs/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.d.ts.map +1 -0
  169. package/dist/typescript/commonjs/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.d.ts +4 -0
  170. package/dist/typescript/commonjs/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.d.ts.map +1 -0
  171. package/dist/typescript/commonjs/shared/translation/constants.d.ts +0 -42
  172. package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +1 -1
  173. package/dist/typescript/commonjs/shared/translation/types.d.ts +1 -2
  174. package/dist/typescript/commonjs/shared/translation/types.d.ts.map +1 -1
  175. package/dist/typescript/module/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.d.ts +10 -0
  176. package/dist/typescript/module/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.d.ts.map +1 -0
  177. package/dist/typescript/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.d.ts.map +1 -1
  178. package/dist/typescript/module/features/endOfAssignment/components/EOAModal.d.ts +1 -3
  179. package/dist/typescript/module/features/endOfAssignment/components/EOAModal.d.ts.map +1 -1
  180. package/dist/typescript/module/features/endOfAssignment/components/ExamPaused/ExamPaused.d.ts +1 -1
  181. package/dist/typescript/module/features/endOfAssignment/components/ExamPaused/ExamPaused.d.ts.map +1 -1
  182. package/dist/typescript/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.d.ts.map +1 -1
  183. package/dist/typescript/module/features/endOfAssignment/components/NoAnswer/NoAnswer.d.ts.map +1 -1
  184. package/dist/typescript/module/features/endOfAssignment/helpers.d.ts +3 -1
  185. package/dist/typescript/module/features/endOfAssignment/helpers.d.ts.map +1 -1
  186. package/dist/typescript/module/features/endOfAssignment/model/model.d.ts +5 -0
  187. package/dist/typescript/module/features/endOfAssignment/model/model.d.ts.map +1 -1
  188. package/dist/typescript/module/features/endOfAssignment/types.d.ts +2 -2
  189. package/dist/typescript/module/features/endOfAssignment/types.d.ts.map +1 -1
  190. package/dist/typescript/module/features/endOfAssignment/ui/PracticeButtonGroup.d.ts +3 -2
  191. package/dist/typescript/module/features/endOfAssignment/ui/PracticeButtonGroup.d.ts.map +1 -1
  192. package/dist/typescript/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.d.ts +1 -1
  193. package/dist/typescript/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.d.ts.map +1 -1
  194. package/dist/typescript/module/features/keyboard/components/AlgebraLayout/helpers.d.ts +6 -1
  195. package/dist/typescript/module/features/keyboard/components/AlgebraLayout/helpers.d.ts.map +1 -1
  196. package/dist/typescript/module/features/keyboard/components/BasicLayout/keyboardGroups.d.ts +0 -1
  197. package/dist/typescript/module/features/keyboard/components/BasicLayout/keyboardGroups.d.ts.map +1 -1
  198. package/dist/typescript/module/features/keyboard/components/Keyboard.d.ts +1 -0
  199. package/dist/typescript/module/features/keyboard/components/Keyboard.d.ts.map +1 -1
  200. package/dist/typescript/module/features/keyboard/components/MainLayout.d.ts +15 -0
  201. package/dist/typescript/module/features/keyboard/components/MainLayout.d.ts.map +1 -0
  202. package/dist/typescript/module/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.d.ts +4 -0
  203. package/dist/typescript/module/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.d.ts.map +1 -0
  204. package/dist/typescript/module/features/keyboard/components/UnderlinedLayout/keyboardGroups.d.ts +3 -0
  205. package/dist/typescript/module/features/keyboard/components/UnderlinedLayout/keyboardGroups.d.ts.map +1 -0
  206. package/dist/typescript/module/features/keyboard/components/UnitsLayout/UnitsLayout.d.ts +1 -1
  207. package/dist/typescript/module/features/keyboard/components/UnitsLayout/UnitsLayout.d.ts.map +1 -1
  208. package/dist/typescript/module/features/keyboard/components/UnitsLayout/helpers.d.ts +2 -1
  209. package/dist/typescript/module/features/keyboard/components/UnitsLayout/helpers.d.ts.map +1 -1
  210. package/dist/typescript/module/features/keyboard/constants/keyboardGroupsByLocale.d.ts.map +1 -1
  211. package/dist/typescript/module/features/keyboard/constants/keyboardLayouts.d.ts +2 -2
  212. package/dist/typescript/module/features/keyboard/types/MathKeysGroups/basicOperators.d.ts +18 -0
  213. package/dist/typescript/module/features/keyboard/types/MathKeysGroups/basicOperators.d.ts.map +1 -1
  214. package/dist/typescript/module/features/keyboard/types/keyboardGroupIds.d.ts +1 -1
  215. package/dist/typescript/module/features/keyboard/types/keyboardGroupIds.d.ts.map +1 -1
  216. package/dist/typescript/module/features/keyboard/types/types.d.ts +3 -1
  217. package/dist/typescript/module/features/keyboard/types/types.d.ts.map +1 -1
  218. package/dist/typescript/module/lib/helpers/helpers.d.ts.map +1 -1
  219. package/dist/typescript/module/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.d.ts +4 -0
  220. package/dist/typescript/module/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.d.ts.map +1 -0
  221. package/dist/typescript/module/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.d.ts +4 -0
  222. package/dist/typescript/module/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.d.ts.map +1 -0
  223. package/dist/typescript/module/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.d.ts +4 -0
  224. package/dist/typescript/module/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.d.ts.map +1 -0
  225. package/dist/typescript/module/shared/translation/constants.d.ts +0 -42
  226. package/dist/typescript/module/shared/translation/constants.d.ts.map +1 -1
  227. package/dist/typescript/module/shared/translation/types.d.ts +1 -2
  228. package/dist/typescript/module/shared/translation/types.d.ts.map +1 -1
  229. package/package.json +2 -2
  230. package/src/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.tsx +43 -0
  231. package/src/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.tsx +20 -10
  232. package/src/features/endOfAssignment/components/EOAModal.tsx +2 -9
  233. package/src/features/endOfAssignment/components/ExamPaused/ExamPaused.tsx +6 -6
  234. package/src/features/endOfAssignment/components/ExamSubmit/ExamSubmit.tsx +2 -2
  235. package/src/features/endOfAssignment/components/NoAnswer/NoAnswer.tsx +17 -6
  236. package/src/features/endOfAssignment/helpers.ts +10 -3
  237. package/src/features/endOfAssignment/model/model.ts +5 -1
  238. package/src/features/endOfAssignment/types.ts +2 -1
  239. package/src/features/endOfAssignment/ui/PracticeButtonGroup.tsx +4 -3
  240. package/src/features/keyboard/components/AlgebraLayout/AlgebraLayout.tsx +2 -2
  241. package/src/features/keyboard/components/AlgebraLayout/helpers.tsx +19 -6
  242. package/src/features/keyboard/components/BasicLayout/keyboardGroups.ts +0 -4
  243. package/src/features/keyboard/components/Keyboard.tsx +4 -4
  244. package/src/features/keyboard/components/MainLayout.tsx +80 -0
  245. package/src/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.tsx +12 -0
  246. package/src/features/keyboard/components/UnderlinedLayout/keyboardGroups.ts +12 -0
  247. package/src/features/keyboard/components/UnitsLayout/UnitsLayout.tsx +2 -1
  248. package/src/features/keyboard/components/UnitsLayout/helpers.tsx +10 -2
  249. package/src/features/keyboard/constants/keyboardGroupsByLocale.ts +2 -21
  250. package/src/features/keyboard/types/MathKeysGroups/basicOperators.tsx +21 -0
  251. package/src/features/keyboard/types/keyboardGroupIds.ts +1 -1
  252. package/src/features/keyboard/types/types.ts +2 -0
  253. package/src/lib/helpers/helpers.ts +8 -23
  254. package/src/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.tsx +17 -0
  255. package/src/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.tsx +20 -0
  256. package/src/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.tsx +20 -0
  257. package/src/shared/translation/constants.ts +0 -2
  258. package/src/shared/translation/localization/ca.json +5 -5
  259. package/src/shared/translation/localization/en.json +5 -5
  260. package/src/shared/translation/localization/gb.json +5 -5
  261. package/src/shared/translation/localization/sct.json +5 -5
  262. package/src/shared/translation/localization/sw.json +5 -5
  263. package/src/shared/translation/types.ts +0 -4
  264. package/dist/commonjs/shared/translation/localization/de.json +0 -42
  265. package/dist/module/shared/translation/localization/de.json +0 -42
  266. package/src/shared/translation/localization/de.json +0 -42
@@ -6,5 +6,4 @@ export declare const MATH_TIME_US_KEYBOARD_GROUP: KeyboardGroup;
6
6
  export declare const MATH_CURRENCY_SW_KEYBOARD_GROUP: KeyboardGroup;
7
7
  export declare const MATH_CURRENCY_UK_KEYBOARD_GROUP: KeyboardGroup;
8
8
  export declare const MATH_CURRENCY_US_KEYBOARD_GROUP: KeyboardGroup;
9
- export declare const MATH_CURRENCY_DE_KEYBOARD_GROUP: KeyboardGroup;
10
9
  //# sourceMappingURL=keyboardGroups.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"keyboardGroups.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/keyboard/components/BasicLayout/keyboardGroups.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAKjD,eAAO,MAAM,+BAA+B,EAAE,aAU7C,CAAA;AAED,eAAO,MAAM,kCAAkC,EAAE,aAUhD,CAAA;AAED,eAAO,MAAM,2BAA2B,EAAE,aAIzC,CAAA;AAED,eAAO,MAAM,2BAA2B,EAAE,aAWzC,CAAA;AAED,eAAO,MAAM,+BAA+B,EAAE,aAG7C,CAAA;AACD,eAAO,MAAM,+BAA+B,EAAE,aAG7C,CAAA;AACD,eAAO,MAAM,+BAA+B,EAAE,aAG7C,CAAA;AACD,eAAO,MAAM,+BAA+B,EAAE,aAG7C,CAAA"}
1
+ {"version":3,"file":"keyboardGroups.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/keyboard/components/BasicLayout/keyboardGroups.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAKjD,eAAO,MAAM,+BAA+B,EAAE,aAU7C,CAAA;AAED,eAAO,MAAM,kCAAkC,EAAE,aAUhD,CAAA;AAED,eAAO,MAAM,2BAA2B,EAAE,aAIzC,CAAA;AAED,eAAO,MAAM,2BAA2B,EAAE,aAWzC,CAAA;AAED,eAAO,MAAM,+BAA+B,EAAE,aAG7C,CAAA;AACD,eAAO,MAAM,+BAA+B,EAAE,aAG7C,CAAA;AACD,eAAO,MAAM,+BAA+B,EAAE,aAG7C,CAAA"}
@@ -9,6 +9,7 @@ type KeyboardProps = {
9
9
  color?: SelectOptionColor;
10
10
  isVisible?: boolean;
11
11
  isDisabled?: boolean;
12
+ showUnderlinedKeys?: boolean;
12
13
  disabledKeys?: KeyboardKey[];
13
14
  };
14
15
  export declare const Keyboard: ({ style, characterType, isVisible, ...props }: KeyboardProps) => React.JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"Keyboard.d.ts","sourceRoot":"","sources":["../../../../../../src/features/keyboard/components/Keyboard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqC,MAAM,OAAO,CAAA;AACzD,OAAO,EAAY,SAAS,EAAmC,SAAS,EAAE,MAAM,cAAc,CAAA;AAC9F,OAAO,EAAqB,iBAAiB,EAAW,MAAM,4BAA4B,CAAA;AAE1F,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAU9D,KAAK,aAAa,GAAG;IACnB,UAAU,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,IAAI,CAAA;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;IAC5B,KAAK,CAAC,EAAE,iBAAiB,CAAA;IACzB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,WAAW,EAAE,CAAA;CAC7B,CAAA;AAED,eAAO,MAAM,QAAQ,kDAA0D,aAAa,sBAuC3F,CAAA"}
1
+ {"version":3,"file":"Keyboard.d.ts","sourceRoot":"","sources":["../../../../../../src/features/keyboard/components/Keyboard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqC,MAAM,OAAO,CAAA;AACzD,OAAO,EAAY,SAAS,EAAmC,SAAS,EAAE,MAAM,cAAc,CAAA;AAC9F,OAAO,EAAqB,iBAAiB,EAAW,MAAM,4BAA4B,CAAA;AAC1F,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAW9D,KAAK,aAAa,GAAG;IACnB,UAAU,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,IAAI,CAAA;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;IAC5B,KAAK,CAAC,EAAE,iBAAiB,CAAA;IACzB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,YAAY,CAAC,EAAE,WAAW,EAAE,CAAA;CAC7B,CAAA;AAED,eAAO,MAAM,QAAQ,kDAA0D,aAAa,sBAsC3F,CAAA"}
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { SelectOptionColor } from '@magmamath/react-native-ui';
3
+ import { KeyboardKey, KeyboardKeyValue } from '../types/types';
4
+ type LayoutProps = {
5
+ onKeyPress: (key: KeyboardKeyValue) => void;
6
+ characterType?: number;
7
+ color?: SelectOptionColor;
8
+ isVisible?: boolean;
9
+ isDisabled?: boolean;
10
+ showUnderlinedKeys?: boolean;
11
+ disabledKeys?: KeyboardKey[];
12
+ };
13
+ export declare const MainLayout: ({ characterType, showUnderlinedKeys, ...props }: LayoutProps) => React.JSX.Element;
14
+ export {};
15
+ //# sourceMappingURL=MainLayout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MainLayout.d.ts","sourceRoot":"","sources":["../../../../../../src/features/keyboard/components/MainLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAA;AAEhF,OAAO,EAAE,iBAAiB,EAAqB,MAAM,4BAA4B,CAAA;AAEjF,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAI9D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,IAAI,CAAA;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,KAAK,CAAC,EAAE,iBAAiB,CAAA;IACzB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,YAAY,CAAC,EAAE,WAAW,EAAE,CAAA;CAC7B,CAAA;AAED,eAAO,MAAM,UAAU,oDAIpB,WAAW,sBAiDb,CAAA"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { KeyboardLayoutProps } from '../../types/types';
3
+ export declare const UnderlinedLayout: (props: KeyboardLayoutProps) => React.JSX.Element;
4
+ //# sourceMappingURL=UnderlinedLayout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UnderlinedLayout.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,mBAAmB,EAAgB,MAAM,mBAAmB,CAAA;AAIrE,eAAO,MAAM,gBAAgB,UAAW,mBAAmB,sBAK1D,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { KeyboardGroup } from '../../types/types';
2
+ export declare const MATH_ENTRY_UNDERLINED_KEYBOARD_GROUP: KeyboardGroup;
3
+ //# sourceMappingURL=keyboardGroups.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"keyboardGroups.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/keyboard/components/UnderlinedLayout/keyboardGroups.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAIjD,eAAO,MAAM,oCAAoC,EAAE,aAOlD,CAAA"}
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { KeyboardLayoutProps } from '../../types/types';
3
- export declare const UnitsLayout: (props: KeyboardLayoutProps) => React.JSX.Element;
3
+ export declare const UnitsLayout: ({ onLayoutChange, ...props }: KeyboardLayoutProps) => React.JSX.Element;
4
4
  //# sourceMappingURL=UnitsLayout.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UnitsLayout.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/keyboard/components/UnitsLayout/UnitsLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAMvC,OAAO,EAAE,mBAAmB,EAAgB,MAAM,mBAAmB,CAAA;AAQrE,eAAO,MAAM,WAAW,UAAW,mBAAmB,sBAwCrD,CAAA"}
1
+ {"version":3,"file":"UnitsLayout.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/keyboard/components/UnitsLayout/UnitsLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAMvC,OAAO,EAAE,mBAAmB,EAAgB,MAAM,mBAAmB,CAAA;AAQrE,eAAO,MAAM,WAAW,iCAAkC,mBAAmB,sBAyC5E,CAAA"}
@@ -4,8 +4,9 @@ type UseLayoutSelectOptionsProps = {
4
4
  activeTabKey: KeyboardUnitsGroupType;
5
5
  selectedLayout: SelectedLayout;
6
6
  setSelectedLayout: (layout: SelectedLayout) => void;
7
+ onLayoutChange?: (isSecondaryLayout: boolean) => void;
7
8
  };
8
- export declare const getSelectOptions: ({ activeTabKey, selectedLayout, setSelectedLayout, }: UseLayoutSelectOptionsProps) => {
9
+ export declare const getSelectOptions: ({ activeTabKey, selectedLayout, setSelectedLayout, onLayoutChange, }: UseLayoutSelectOptionsProps) => {
9
10
  key: SelectedLayout;
10
11
  title: React.JSX.Element;
11
12
  onPressIn: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/keyboard/components/UnitsLayout/helpers.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAGhE,KAAK,2BAA2B,GAAG;IACjC,YAAY,EAAE,sBAAsB,CAAA;IACpC,cAAc,EAAE,cAAc,CAAA;IAC9B,iBAAiB,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,IAAI,CAAA;CACpD,CAAA;AAED,eAAO,MAAM,gBAAgB,yDAI1B,2BAA2B;;;;GA2B7B,CAAA"}
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/keyboard/components/UnitsLayout/helpers.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAGhE,KAAK,2BAA2B,GAAG;IACjC,YAAY,EAAE,sBAAsB,CAAA;IACpC,cAAc,EAAE,cAAc,CAAA;IAC9B,iBAAiB,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,IAAI,CAAA;IACnD,cAAc,CAAC,EAAE,CAAC,iBAAiB,EAAE,OAAO,KAAK,IAAI,CAAA;CACtD,CAAA;AAED,eAAO,MAAM,gBAAgB,yEAK1B,2BAA2B;;;;GAiC7B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"keyboardGroupsByLocale.d.ts","sourceRoot":"","sources":["../../../../../../src/features/keyboard/constants/keyboardGroupsByLocale.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAuC5D,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAA;AAEpD,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAA;AAiC5F,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,YAAY,EAAE,aAAa,CAAC,CAuCzF,CAAA;AACD,eAAO,MAAM,+BAA+B,EAAE,MAAM,CAClD,MAAM,EACN,MAAM,CAAC,sBAAsB,EAAE,kBAAkB,CAAC,CAwBnD,CAAA"}
1
+ {"version":3,"file":"keyboardGroupsByLocale.d.ts","sourceRoot":"","sources":["../../../../../../src/features/keyboard/constants/keyboardGroupsByLocale.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAsC5D,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAA;AAEpD,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAA;AAmC5F,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,YAAY,EAAE,aAAa,CAAC,CAyBzF,CAAA;AACD,eAAO,MAAM,+BAA+B,EAAE,MAAM,CAClD,MAAM,EACN,MAAM,CAAC,sBAAsB,EAAE,kBAAkB,CAAC,CAkBnD,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import { MyScriptMathCharacterTypes } from '../../../types/characterTypes';
2
2
  export declare const KEYBOARD_LAYOUTS: {
3
3
  AlgebraAdvanced: {
4
- Component: (props: import("../types/types").KeyboardLayoutProps) => import("react").JSX.Element;
4
+ Component: ({ onLayoutChange, ...props }: import("../types/types").KeyboardLayoutProps) => import("react").JSX.Element;
5
5
  characterTypes: MyScriptMathCharacterTypes[];
6
6
  };
7
7
  Basic: {
@@ -21,7 +21,7 @@ export declare const KEYBOARD_LAYOUTS: {
21
21
  characterTypes: MyScriptMathCharacterTypes[];
22
22
  };
23
23
  BasicUnits: {
24
- Component: (props: import("../types/types").KeyboardLayoutProps) => import("react").JSX.Element;
24
+ Component: ({ onLayoutChange, ...props }: import("../types/types").KeyboardLayoutProps) => import("react").JSX.Element;
25
25
  characterTypes: MyScriptMathCharacterTypes[];
26
26
  };
27
27
  BasicPlusPlus: {
@@ -222,5 +222,23 @@ export declare const MATH_BASIC_OPERATORS: {
222
222
  mathliveValue: string;
223
223
  katexValue: string;
224
224
  };
225
+ UNDERLINED_TEN: {
226
+ icon: React.JSX.Element;
227
+ mathliveValue: string;
228
+ katexValue: string;
229
+ spreadsheetValue: string;
230
+ };
231
+ UNDERLINED_ONE: {
232
+ icon: React.JSX.Element;
233
+ mathliveValue: string;
234
+ katexValue: string;
235
+ spreadsheetValue: string;
236
+ };
237
+ UNDERLINED_U: {
238
+ icon: React.JSX.Element;
239
+ mathliveValue: string;
240
+ katexValue: string;
241
+ spreadsheetValue: string;
242
+ };
225
243
  };
226
244
  //# sourceMappingURL=basicOperators.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"basicOperators.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/keyboard/types/MathKeysGroups/basicOperators.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AA6CzB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+N/B,CAAA"}
1
+ {"version":3,"file":"basicOperators.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/keyboard/types/MathKeysGroups/basicOperators.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAgDzB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiP/B,CAAA"}
@@ -27,6 +27,6 @@ export declare enum MathEntryKeyboardGroupId {
27
27
  CURRENCY_SW = "math-entry-currency-sw",
28
28
  CURRENCY_UK = "math-entry-currency-uk",
29
29
  CURRENCY_US = "math-entry-currency-us",
30
- CURRENCY_DE = "math-entry-currency-de"
30
+ UNDERLINED = "math-entry-underlined"
31
31
  }
32
32
  //# sourceMappingURL=keyboardGroupIds.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"keyboardGroupIds.d.ts","sourceRoot":"","sources":["../../../../../../src/features/keyboard/types/keyboardGroupIds.ts"],"names":[],"mappings":"AAAA,oBAAY,wBAAwB;IAClC,eAAe,+BAA+B;IAC9C,sBAAsB,sCAAsC;IAC5D,kBAAkB,kCAAkC;IACpD,yBAAyB,yCAAyC;IAClE,aAAa,6BAA6B;IAC1C,oBAAoB,oCAAoC;IACxD,aAAa,6BAA6B;IAC1C,iBAAiB,iCAAiC;IAClD,OAAO,uBAAuB;IAC9B,UAAU,0BAA0B;IACpC,UAAU,0BAA0B;IACpC,eAAe,+BAA+B;IAC9C,eAAe,+BAA+B;IAC9C,aAAa,6BAA6B;IAC1C,aAAa,6BAA6B;IAC1C,aAAa,6BAA6B;IAC1C,eAAe,+BAA+B;IAC9C,eAAe,+BAA+B;IAC9C,eAAe,+BAA+B;IAC9C,eAAe,+BAA+B;IAC9C,eAAe,+BAA+B;IAC9C,KAAK,qBAAqB;IAC1B,QAAQ,wBAAwB;IAChC,OAAO,uBAAuB;IAC9B,OAAO,uBAAuB;IAC9B,WAAW,2BAA2B;IACtC,WAAW,2BAA2B;IACtC,WAAW,2BAA2B;IACtC,WAAW,2BAA2B;CACvC"}
1
+ {"version":3,"file":"keyboardGroupIds.d.ts","sourceRoot":"","sources":["../../../../../../src/features/keyboard/types/keyboardGroupIds.ts"],"names":[],"mappings":"AAAA,oBAAY,wBAAwB;IAClC,eAAe,+BAA+B;IAC9C,sBAAsB,sCAAsC;IAC5D,kBAAkB,kCAAkC;IACpD,yBAAyB,yCAAyC;IAClE,aAAa,6BAA6B;IAC1C,oBAAoB,oCAAoC;IACxD,aAAa,6BAA6B;IAC1C,iBAAiB,iCAAiC;IAClD,OAAO,uBAAuB;IAC9B,UAAU,0BAA0B;IACpC,UAAU,0BAA0B;IACpC,eAAe,+BAA+B;IAC9C,eAAe,+BAA+B;IAC9C,aAAa,6BAA6B;IAC1C,aAAa,6BAA6B;IAC1C,aAAa,6BAA6B;IAC1C,eAAe,+BAA+B;IAC9C,eAAe,+BAA+B;IAC9C,eAAe,+BAA+B;IAC9C,eAAe,+BAA+B;IAC9C,eAAe,+BAA+B;IAC9C,KAAK,qBAAqB;IAC1B,QAAQ,wBAAwB;IAChC,OAAO,uBAAuB;IAC9B,OAAO,uBAAuB;IAC9B,WAAW,2BAA2B;IACtC,WAAW,2BAA2B;IACtC,WAAW,2BAA2B;IACtC,UAAU,0BAA0B;CACrC"}
@@ -11,7 +11,8 @@ export declare const enum KeyboardType {
11
11
  BasicUnits = "BasicUnits",
12
12
  BasicPlusPlus = "BasicPlusPlus",
13
13
  BasicPlusPlusMobile = "BasicPlusPlusMobile",
14
- Numpad = "Numpad"
14
+ Numpad = "Numpad",
15
+ Underlined = "Underlined"
15
16
  }
16
17
  export type KeyboardKey = {
17
18
  katexValue: string;
@@ -39,6 +40,7 @@ export type KeyboardGroup = {
39
40
  };
40
41
  export type KeyboardLayoutProps = {
41
42
  onKeyPress: (key: KeyboardKeyValue) => void;
43
+ onLayoutChange?: (isSecondaryLayout: boolean) => void;
42
44
  color?: SelectOptionColor;
43
45
  isDisabled?: boolean;
44
46
  disabledKeys?: KeyboardKey[];
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/features/keyboard/types/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAA;AAEpD,0BAAkB,YAAY;IAC5B,eAAe,oBAAoB;IACnC,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,eAAe,oBAAoB;IACnC,SAAS,cAAc;IACvB,aAAa,kBAAkB;IAC/B,UAAU,eAAe;IACzB,aAAa,kBAAkB;IAC/B,mBAAmB,wBAAwB;IAC3C,MAAM,WAAW;CAClB;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,KAAK,CAAC,EAAE,WAAW,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,qBAAqB,CAAA;IAC5B,UAAU,EAAE,MAAM,CAAA;IAClB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,WAAW,EAAE,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,UAAU,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,IAAI,CAAA;IAC3C,KAAK,CAAC,EAAE,iBAAiB,CAAA;IACzB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,WAAW,EAAE,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI;KAC3D,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,WAAW;CACpC,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/features/keyboard/types/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAA;AAEpD,0BAAkB,YAAY;IAC5B,eAAe,oBAAoB;IACnC,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,eAAe,oBAAoB;IACnC,SAAS,cAAc;IACvB,aAAa,kBAAkB;IAC/B,UAAU,eAAe;IACzB,aAAa,kBAAkB;IAC/B,mBAAmB,wBAAwB;IAC3C,MAAM,WAAW;IACjB,UAAU,eAAe;CAC1B;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,KAAK,CAAC,EAAE,WAAW,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,qBAAqB,CAAA;IAC5B,UAAU,EAAE,MAAM,CAAA;IAClB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,WAAW,EAAE,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,UAAU,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,IAAI,CAAA;IAC3C,cAAc,CAAC,EAAE,CAAC,iBAAiB,EAAE,OAAO,KAAK,IAAI,CAAA;IACrD,KAAK,CAAC,EAAE,iBAAiB,CAAA;IACzB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,WAAW,EAAE,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI;KAC3D,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,WAAW;CACpC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/lib/helpers/helpers.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,YAAW,CAAA;AAE5B,eAAO,MAAM,gBAAgB,cACsC,CAAA;AASnE,eAAO,MAAM,mBAAmB,SAAU,IAAI,WAsC7C,CAAA"}
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../src/lib/helpers/helpers.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,YAAW,CAAA;AAE5B,eAAO,MAAM,gBAAgB,cACsC,CAAA;AASnE,eAAO,MAAM,mBAAmB,SAAU,IAAI,WAuB7C,CAAA"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from '../../icon.types';
3
+ export declare const UnderlinedOneIcon: ({ size, color }: IconProps) => React.JSX.Element;
4
+ //# sourceMappingURL=UnderlinedOneIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UnderlinedOneIcon.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAG5C,eAAO,MAAM,iBAAiB,oBAA0B,SAAS,sBAYhE,CAAA"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from '../../icon.types';
3
+ export declare const UnderlinedTenIcon: ({ size, color }: IconProps) => React.JSX.Element;
4
+ //# sourceMappingURL=UnderlinedTenIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UnderlinedTenIcon.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAG5C,eAAO,MAAM,iBAAiB,oBAA0B,SAAS,sBAehE,CAAA"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from '../../icon.types';
3
+ export declare const UnderlinedUIcon: ({ size, color }: IconProps) => React.JSX.Element;
4
+ //# sourceMappingURL=UnderlinedUIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UnderlinedUIcon.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAG5C,eAAO,MAAM,eAAe,oBAA0B,SAAS,sBAe9D,CAAA"}
@@ -209,47 +209,5 @@ export declare const LOCALIZATION_CONFIGS: {
209
209
  weight: string;
210
210
  };
211
211
  };
212
- "de-DE": {
213
- locale: string;
214
- "teacherFeedback.noComments": string;
215
- "time.justNow": string;
216
- "time.minuteAgo": string;
217
- "time.minutesAgo": string;
218
- "time.hourAgo": string;
219
- "time.hoursAgo": string;
220
- "time.dayAgo": string;
221
- "time.daysAgo": string;
222
- "time.monthAgo": string;
223
- "time.monthsAgo": string;
224
- "time.yearAgo": string;
225
- "time.yearsAgo": string;
226
- chat: {
227
- anotherHint: string;
228
- giveHint: string;
229
- giveHintOpenChat: string;
230
- answerAgain: string;
231
- errorMessage: string;
232
- howCanIHelp: string;
233
- showError: string;
234
- inputPlaceholder: string;
235
- };
236
- gifCelebrations: {
237
- greatStart: string;
238
- onTheWay: string;
239
- almostThere: string;
240
- };
241
- exampleSolution: {
242
- exampleSolution: string;
243
- letMeThink: string;
244
- aha: string;
245
- errorMessage: string;
246
- };
247
- keyboard: {
248
- length: string;
249
- area: string;
250
- volume: string;
251
- weight: string;
252
- };
253
- };
254
212
  };
255
213
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/constants.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhC,CAAA"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/constants.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMhC,CAAA"}
@@ -8,7 +8,6 @@ export declare enum Locale {
8
8
  SW = "sv-SE",
9
9
  GB = "en-GB",
10
10
  CA = "en-CA",
11
- SCT = "en-SCT",
12
- DE = "de-DE"
11
+ SCT = "en-SCT"
13
12
  }
14
13
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/types.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,wBAAwB,CAAA;AAOnD,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAGnD,MAAM,MAAM,YAAY,GAAG,OAAO,cAAc,CAAA;AAChD,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC,YAAY,CAAC,CAAA;AACxD,MAAM,MAAM,OAAO,GAAG,CAAC,GAAG,EAAE,eAAe,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,KAAK,MAAM,CAAA;AAE5F,oBAAY,MAAM;IAChB,EAAE,UAAU;IACZ,EAAE,UAAU;IACZ,EAAE,UAAU;IACZ,EAAE,UAAU;IACZ,GAAG,WAAW;IACd,EAAE,UAAU;CACb"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/types.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,wBAAwB,CAAA;AAKnD,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAGnD,MAAM,MAAM,YAAY,GAAG,OAAO,cAAc,CAAA;AAChD,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC,YAAY,CAAC,CAAA;AACxD,MAAM,MAAM,OAAO,GAAG,CAAC,GAAG,EAAE,eAAe,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,KAAK,MAAM,CAAA;AAE5F,oBAAY,MAAM;IAChB,EAAE,UAAU;IACZ,EAAE,UAAU;IACZ,EAAE,UAAU;IACZ,EAAE,UAAU;IACZ,GAAG,WAAW;CACf"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magmamath/students-features",
3
- "version": "0.9.5-rc.1",
3
+ "version": "0.9.5",
4
4
  "description": "Magmamath features library",
5
5
  "source": "src/index.ts",
6
6
  "main": "src/index.ts",
@@ -29,7 +29,7 @@
29
29
  "react-native-svg": "^15.10.0"
30
30
  },
31
31
  "devDependencies": {
32
- "@magmamath/react-native-ui": "0.4.44",
32
+ "@magmamath/react-native-ui": "0.4.61",
33
33
  "@react-native/eslint-config": "^0.73.1",
34
34
  "@release-it/conventional-changelog": "^9.0.2",
35
35
  "@types/jest": "^29.5.5",
@@ -0,0 +1,43 @@
1
+ import React from 'react'
2
+ import { StyleSheet, Text, View } from 'react-native'
3
+ import { BORDER_RADIUS, COLORS, SHADOWS, SPACING } from '@magmamath/react-native-ui'
4
+ import { EOAModalText } from '@magmamath/students-features'
5
+
6
+ type AssessmentScoreCardProps = {
7
+ textContent: EOAModalText
8
+ solvedAmount?: number
9
+ problemsAmount?: number
10
+ }
11
+
12
+ export const AssessmentScoreCard = ({
13
+ textContent,
14
+ solvedAmount = 0,
15
+ problemsAmount = 0,
16
+ }: AssessmentScoreCardProps) => {
17
+ return (
18
+ <View style={styles.container}>
19
+ <Text style={styles.text}>
20
+ {solvedAmount} / {problemsAmount} {textContent.stats?.score ?? 'pt'}
21
+ </Text>
22
+ </View>
23
+ )
24
+ }
25
+
26
+ const styles = StyleSheet.create({
27
+ container: {
28
+ alignItems: 'center',
29
+ justifyContent: 'center',
30
+ minHeight: 130,
31
+ minWidth: 410,
32
+ padding: SPACING['400'],
33
+ borderRadius: BORDER_RADIUS['400'],
34
+ backgroundColor: COLORS.NEUTRAL_1,
35
+ ...SHADOWS['1'],
36
+ },
37
+ text: {
38
+ fontSize: 96,
39
+ fontWeight: '700',
40
+ color: COLORS.NEUTRAL_9,
41
+ fontFamily: 'Buenos Aires',
42
+ },
43
+ })
@@ -1,6 +1,5 @@
1
1
  import React, { useCallback, useState } from 'react'
2
2
  import { View, StyleSheet } from 'react-native'
3
-
4
3
  import { useUnit } from 'effector-react'
5
4
  import { SPACING, Typography, COLORS, FONT_FAMILY } from '@magmamath/react-native-ui'
6
5
 
@@ -11,6 +10,8 @@ import { GOOD_DRAWING_CARD_APPEARENCE_DELAY } from '../../constants'
11
10
  import { AnimatedCardVariant, EOAModalContentProps, EOAModalVariant } from '../../types'
12
11
  import { useKeyBoard } from '../../../../shared/hooks/useKeyboard'
13
12
  import { KeyboardKeys } from '../../../../lib/constants'
13
+ import { getEoaButtonColor } from '../../helpers'
14
+ import { AssessmentScoreCard } from '../AssessmentScoreCard/AssessmentScoreCard'
14
15
 
15
16
  export const CorrectAnswer = ({ textContent, model, onPracticePress }: EOAModalContentProps) => {
16
17
  const popUpData = useUnit(model.$popUpData)
@@ -22,6 +23,7 @@ export const CorrectAnswer = ({ textContent, model, onPracticePress }: EOAModalC
22
23
  stats,
23
24
  hasRecommendations,
24
25
  isExam = false,
26
+ isAssessment = false,
25
27
  newerAssignmentAvailable,
26
28
  } = popUpData ?? {}
27
29
 
@@ -72,14 +74,22 @@ export const CorrectAnswer = ({ textContent, model, onPracticePress }: EOAModalC
72
74
  </View>
73
75
 
74
76
  <View style={styles.animationContainer}>
75
- <AnimatedCard
76
- variant={AnimatedCardVariant.CORRECT_ANSWER}
77
- textContent={textContent}
78
- solvedAmount={stats?.solvedAmount}
79
- problemsAmount={stats?.problemsAmount}
80
- shouldTriggerSparkles={cardsAnimationCompleted}
81
- onAnimationEnd={onCorrectAnswerAnimationEnd}
82
- />
77
+ {isAssessment ? (
78
+ <AssessmentScoreCard
79
+ textContent={textContent}
80
+ solvedAmount={stats?.solvedAmount}
81
+ problemsAmount={stats?.problemsAmount}
82
+ />
83
+ ) : (
84
+ <AnimatedCard
85
+ variant={AnimatedCardVariant.CORRECT_ANSWER}
86
+ textContent={textContent}
87
+ solvedAmount={stats?.solvedAmount}
88
+ problemsAmount={stats?.problemsAmount}
89
+ shouldTriggerSparkles={cardsAnimationCompleted}
90
+ onAnimationEnd={onCorrectAnswerAnimationEnd}
91
+ />
92
+ )}
83
93
 
84
94
  {modalVariant === EOAModalVariant.HAS_GOOD_DRAWING && (
85
95
  <AnimatedCard
@@ -96,9 +106,9 @@ export const CorrectAnswer = ({ textContent, model, onPracticePress }: EOAModalC
96
106
  <PracticeButtonGroup
97
107
  textContent={textContent}
98
108
  isPracticeButtonVisible={isPracticeButtonVisible}
99
- isExam={isExam}
100
109
  onLeftButtonPress={model.hidePopUpAndLeave}
101
110
  onRightButtonPress={handlePracticeButtonPress}
111
+ buttonColor={getEoaButtonColor(popUpData)}
102
112
  />
103
113
  </View>
104
114
  )
@@ -14,7 +14,6 @@ import { ExamPaused } from './ExamPaused/ExamPaused'
14
14
  import { ExamSubmit } from './ExamSubmit/ExamSubmit'
15
15
 
16
16
  import { getModalContainerSize, shouldDisplayModalBackground } from '../helpers'
17
- import { ButtonColor } from '@magmamath/react-native-ui'
18
17
 
19
18
  const MODAL_CONTENT_VARIANTS_MAP = new Map([
20
19
  [EOAModalVariant.NO_CORRECT_ANSWERS, NoAnswer],
@@ -33,7 +32,6 @@ type EOAModalProps = {
33
32
  model: EOAModel
34
33
  textContent: EOAModalText
35
34
  onPracticePress: () => void
36
- buttonColor?: ButtonColor
37
35
  }
38
36
 
39
37
  /**
@@ -42,7 +40,7 @@ type EOAModalProps = {
42
40
  * Dynamically renders a modal UI after an assignment ends, using the current `modalVariant`
43
41
  * to determine which specific view to display (e.g., `NoAnswer`, `CorrectAnswer`, `CheatDetected`).
44
42
  */
45
- export const EOAModal = ({ model, textContent, onPracticePress, buttonColor }: EOAModalProps) => {
43
+ export const EOAModal = ({ model, textContent, onPracticePress }: EOAModalProps) => {
46
44
  const popUpData = useUnit(model.$popUpData)
47
45
  const modalVariant = useUnit(model.$modalVariant)
48
46
 
@@ -64,12 +62,7 @@ export const EOAModal = ({ model, textContent, onPracticePress, buttonColor }: E
64
62
  style={getModalContainerSize(modalVariant)}
65
63
  onClose={model.hidePopUp}
66
64
  content={
67
- <ModalContent
68
- model={model}
69
- textContent={textContent}
70
- onPracticePress={onPracticePress}
71
- buttonColor={buttonColor}
72
- />
65
+ <ModalContent model={model} textContent={textContent} onPracticePress={onPracticePress} />
73
66
  }
74
67
  withBackground={withBackground}
75
68
  />
@@ -13,12 +13,12 @@ import {
13
13
  import { EOAModalContentProps } from '../../types'
14
14
  import { useKeyBoard } from '../../../../shared/hooks/useKeyboard'
15
15
  import { KeyboardKeys } from '../../../../lib/constants'
16
+ import { getEoaButtonColor } from '../../helpers'
17
+ import { useUnit } from 'effector-react'
18
+
19
+ export const ExamPaused = ({ textContent, model }: EOAModalContentProps) => {
20
+ const popUpData = useUnit(model.$popUpData)
16
21
 
17
- export const ExamPaused = ({
18
- textContent,
19
- model,
20
- buttonColor = ButtonColor.PURPLE,
21
- }: EOAModalContentProps) => {
22
22
  useKeyBoard({
23
23
  callback: (event) => {
24
24
  if (event.key === KeyboardKeys.ENTER) {
@@ -39,7 +39,7 @@ export const ExamPaused = ({
39
39
 
40
40
  <Button
41
41
  variant={ButtonVariant.PRIMARY}
42
- colorScheme={buttonColor}
42
+ colorScheme={getEoaButtonColor(popUpData)}
43
43
  size={ButtonSize.LARGE}
44
44
  style={{ text: styles.buttonText }}
45
45
  onPress={model.hidePopUpAndLeave}
@@ -4,7 +4,6 @@ import { View, StyleSheet, Platform, Image } from 'react-native'
4
4
  import { useUnit } from 'effector-react'
5
5
  import {
6
6
  Button,
7
- ButtonColor,
8
7
  ButtonSize,
9
8
  ButtonVariant,
10
9
  COLORS,
@@ -18,6 +17,7 @@ import { EOAModalContentProps } from '../../types'
18
17
  import { PracticeButton } from '../../ui/PracticeButton'
19
18
  import { useKeyBoard } from '../../../../shared/hooks/useKeyboard'
20
19
  import { KeyboardKeys } from '../../../../lib/constants'
20
+ import { getEoaButtonColor } from '../../helpers'
21
21
 
22
22
  export const ExamSubmit = ({ textContent, model, onPracticePress }: EOAModalContentProps) => {
23
23
  const popUpData = useUnit(model.$popUpData)
@@ -60,7 +60,7 @@ export const ExamSubmit = ({ textContent, model, onPracticePress }: EOAModalCont
60
60
  <Button
61
61
  variant={isPracticeButtonVisible ? ButtonVariant.TERTIARY : ButtonVariant.PRIMARY}
62
62
  size={ButtonSize.LARGE}
63
- colorScheme={popUpData?.isExam ? ButtonColor.PURPLE : ButtonColor.BLUE}
63
+ colorScheme={getEoaButtonColor(popUpData)}
64
64
  style={{ text: { textTransform: 'uppercase' } }}
65
65
  onPress={model.hidePopUpAndLeave}
66
66
  >
@@ -16,17 +16,19 @@ import { EOAModalContentProps } from '../../types'
16
16
  import { NoAnswerContent } from './NoAnswerContent'
17
17
  import { useKeyBoard } from '../../../../shared/hooks/useKeyboard'
18
18
  import { KeyboardKeys } from '../../../../lib/constants'
19
+ import { getEoaButtonColor } from '../../helpers'
20
+ import { AssessmentScoreCard } from '../AssessmentScoreCard/AssessmentScoreCard'
19
21
 
20
22
  export const NoAnswer = ({ model, textContent, onPracticePress }: EOAModalContentProps) => {
21
23
  const popUpData = useUnit(model.$popUpData)
22
24
 
23
- const { stats, isExam, user } = popUpData ?? {}
25
+ const { stats, isExam, isAssessment, user } = popUpData ?? {}
24
26
 
25
27
  function getButtons() {
26
28
  const buttons = [
27
29
  {
28
30
  text: textContent.leftButtonText ?? '',
29
- colorScheme: isExam ? ButtonColor.PURPLE : ButtonColor.BLUE,
31
+ colorScheme: getEoaButtonColor(popUpData),
30
32
  onPress: () => model.hidePopUpAndLeave(),
31
33
  },
32
34
  ]
@@ -84,10 +86,19 @@ export const NoAnswer = ({ model, textContent, onPracticePress }: EOAModalConten
84
86
  </Typography>
85
87
  )}
86
88
  </View>
87
- <NoAnswerContent
88
- solvedAmount={stats?.solvedAmount ?? 0}
89
- problemsAmount={stats?.problemsAmount ?? 0}
90
- />
89
+ {isAssessment ? (
90
+ <AssessmentScoreCard
91
+ textContent={textContent}
92
+ solvedAmount={stats?.solvedAmount}
93
+ problemsAmount={stats?.problemsAmount}
94
+ />
95
+ ) : (
96
+ <NoAnswerContent
97
+ solvedAmount={stats?.solvedAmount ?? 0}
98
+ problemsAmount={stats?.problemsAmount ?? 0}
99
+ />
100
+ )}
101
+
91
102
  <View style={styles.buttonsContainer}>
92
103
  {buttons.map((button, index) => (
93
104
  <Button
@@ -1,16 +1,17 @@
1
1
  import { MODALS_WITH_BACKGROUND } from './constants'
2
- import { EOAModalVariant } from './types'
2
+ import { EOAModalData, EOAModalVariant } from './types'
3
+ import { ButtonColor } from '@magmamath/react-native-ui'
3
4
 
4
5
  export const getModalContainerSize = (modalVariant: EOAModalVariant) => {
5
6
  switch (modalVariant) {
6
7
  case EOAModalVariant.EXAM_SUBMIT:
7
8
  case EOAModalVariant.EXAM_SAFE_MODE_SUBMIT:
8
- return { container: { width: 600, height: 384 } }
9
+ return { container: { width: 620, height: 384 } }
9
10
  case EOAModalVariant.EXAM_PAUSED:
10
11
  case EOAModalVariant.EXAM_SAFE_MODE_CHEAT_DETECTED:
11
12
  return { container: { width: 560, height: 338 } }
12
13
  case EOAModalVariant.EXAM_SAFE_MODE_LEAVE:
13
- return { container: { width: 550, height: 280 } }
14
+ return { container: { width: 550, height: 325 } }
14
15
  case EOAModalVariant.HAS_GOOD_DRAWING:
15
16
  return { container: { width: 957, height: 550 } }
16
17
  case EOAModalVariant.HAS_CORRECT_ANSWERS:
@@ -26,3 +27,9 @@ export const shouldDisplayModalBackground = (modalVariant: EOAModalVariant | nul
26
27
 
27
28
  return MODALS_WITH_BACKGROUND.includes(modalVariant)
28
29
  }
30
+
31
+ export const getEoaButtonColor = (popupData: EOAModalData | null): ButtonColor => {
32
+ if (popupData?.isAssessment) return ButtonColor.SUNSET
33
+ if (popupData?.isExam) return ButtonColor.PURPLE
34
+ return ButtonColor.BLUE
35
+ }