@magmamath/students-features 0.9.6 → 0.9.8-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. package/dist/commonjs/features/chatbot/model/t2s.js +4 -3
  2. package/dist/commonjs/features/chatbot/model/t2s.js.map +1 -1
  3. package/dist/commonjs/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.js +44 -0
  4. package/dist/commonjs/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.js.map +1 -0
  5. package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js +10 -3
  6. package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js.map +1 -1
  7. package/dist/commonjs/features/endOfAssignment/components/EOAModal.js +2 -4
  8. package/dist/commonjs/features/endOfAssignment/components/EOAModal.js.map +1 -1
  9. package/dist/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.js +5 -3
  10. package/dist/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.js.map +1 -1
  11. package/dist/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js +2 -1
  12. package/dist/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js.map +1 -1
  13. package/dist/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.js +9 -2
  14. package/dist/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.js.map +1 -1
  15. package/dist/commonjs/features/endOfAssignment/helpers.js +10 -3
  16. package/dist/commonjs/features/endOfAssignment/helpers.js.map +1 -1
  17. package/dist/commonjs/features/endOfAssignment/model/model.js +7 -0
  18. package/dist/commonjs/features/endOfAssignment/model/model.js.map +1 -1
  19. package/dist/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.js +2 -2
  20. package/dist/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.js.map +1 -1
  21. package/dist/commonjs/features/keyboard/components/BasicLayout/BasicLayout.js +3 -1
  22. package/dist/commonjs/features/keyboard/components/BasicLayout/BasicLayout.js.map +1 -1
  23. package/dist/commonjs/features/keyboard/components/Keyboard.js +2 -0
  24. package/dist/commonjs/features/keyboard/components/Keyboard.js.map +1 -1
  25. package/dist/commonjs/features/keyboard/components/KeysList/KeysList.js +4 -3
  26. package/dist/commonjs/features/keyboard/components/KeysList/KeysList.js.map +1 -1
  27. package/dist/commonjs/features/keyboard/components/MainLayout.js +2 -1
  28. package/dist/commonjs/features/keyboard/components/MainLayout.js.map +1 -1
  29. package/dist/commonjs/features/keyboard/components/Numpad/Numpad.js +14 -1
  30. package/dist/commonjs/features/keyboard/components/Numpad/Numpad.js.map +1 -1
  31. package/dist/commonjs/features/keyboard/components/UnitsLayout/UnitTabs.js +31 -25
  32. package/dist/commonjs/features/keyboard/components/UnitsLayout/UnitTabs.js.map +1 -1
  33. package/dist/commonjs/features/keyboard/components/UnitsLayout/UnitsLayout.js.map +1 -1
  34. package/dist/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js +15 -0
  35. package/dist/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js.map +1 -1
  36. package/dist/commonjs/features/keyboard/types/MathKeysGroups/units.js +18 -18
  37. package/dist/commonjs/features/keyboard/types/MathKeysGroups/units.js.map +1 -1
  38. package/dist/module/features/chatbot/model/t2s.js +4 -3
  39. package/dist/module/features/chatbot/model/t2s.js.map +1 -1
  40. package/dist/module/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.js +38 -0
  41. package/dist/module/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.js.map +1 -0
  42. package/dist/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js +10 -3
  43. package/dist/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js.map +1 -1
  44. package/dist/module/features/endOfAssignment/components/EOAModal.js +2 -4
  45. package/dist/module/features/endOfAssignment/components/EOAModal.js.map +1 -1
  46. package/dist/module/features/endOfAssignment/components/ExamPaused/ExamPaused.js +6 -4
  47. package/dist/module/features/endOfAssignment/components/ExamPaused/ExamPaused.js.map +1 -1
  48. package/dist/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js +3 -2
  49. package/dist/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js.map +1 -1
  50. package/dist/module/features/endOfAssignment/components/NoAnswer/NoAnswer.js +9 -2
  51. package/dist/module/features/endOfAssignment/components/NoAnswer/NoAnswer.js.map +1 -1
  52. package/dist/module/features/endOfAssignment/helpers.js +8 -2
  53. package/dist/module/features/endOfAssignment/helpers.js.map +1 -1
  54. package/dist/module/features/endOfAssignment/model/model.js +7 -0
  55. package/dist/module/features/endOfAssignment/model/model.js.map +1 -1
  56. package/dist/module/features/endOfAssignment/ui/PracticeButtonGroup.js +2 -2
  57. package/dist/module/features/endOfAssignment/ui/PracticeButtonGroup.js.map +1 -1
  58. package/dist/module/features/keyboard/components/BasicLayout/BasicLayout.js +3 -1
  59. package/dist/module/features/keyboard/components/BasicLayout/BasicLayout.js.map +1 -1
  60. package/dist/module/features/keyboard/components/Keyboard.js +2 -0
  61. package/dist/module/features/keyboard/components/Keyboard.js.map +1 -1
  62. package/dist/module/features/keyboard/components/KeysList/KeysList.js +4 -3
  63. package/dist/module/features/keyboard/components/KeysList/KeysList.js.map +1 -1
  64. package/dist/module/features/keyboard/components/MainLayout.js +2 -1
  65. package/dist/module/features/keyboard/components/MainLayout.js.map +1 -1
  66. package/dist/module/features/keyboard/components/Numpad/Numpad.js +14 -1
  67. package/dist/module/features/keyboard/components/Numpad/Numpad.js.map +1 -1
  68. package/dist/module/features/keyboard/components/UnitsLayout/UnitTabs.js +31 -25
  69. package/dist/module/features/keyboard/components/UnitsLayout/UnitTabs.js.map +1 -1
  70. package/dist/module/features/keyboard/components/UnitsLayout/UnitsLayout.js.map +1 -1
  71. package/dist/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js +15 -0
  72. package/dist/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js.map +1 -1
  73. package/dist/module/features/keyboard/types/MathKeysGroups/units.js +19 -19
  74. package/dist/module/features/keyboard/types/MathKeysGroups/units.js.map +1 -1
  75. package/dist/typescript/commonjs/features/chatbot/model/t2s.d.ts.map +1 -1
  76. package/dist/typescript/commonjs/features/chatbot/types/api.types.d.ts +7 -1
  77. package/dist/typescript/commonjs/features/chatbot/types/api.types.d.ts.map +1 -1
  78. package/dist/typescript/commonjs/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.d.ts +10 -0
  79. package/dist/typescript/commonjs/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.d.ts.map +1 -0
  80. package/dist/typescript/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.d.ts.map +1 -1
  81. package/dist/typescript/commonjs/features/endOfAssignment/components/EOAModal.d.ts +1 -3
  82. package/dist/typescript/commonjs/features/endOfAssignment/components/EOAModal.d.ts.map +1 -1
  83. package/dist/typescript/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.d.ts +1 -1
  84. package/dist/typescript/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.d.ts.map +1 -1
  85. package/dist/typescript/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.d.ts.map +1 -1
  86. package/dist/typescript/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.d.ts.map +1 -1
  87. package/dist/typescript/commonjs/features/endOfAssignment/helpers.d.ts +3 -1
  88. package/dist/typescript/commonjs/features/endOfAssignment/helpers.d.ts.map +1 -1
  89. package/dist/typescript/commonjs/features/endOfAssignment/model/model.d.ts +5 -0
  90. package/dist/typescript/commonjs/features/endOfAssignment/model/model.d.ts.map +1 -1
  91. package/dist/typescript/commonjs/features/endOfAssignment/types.d.ts +2 -2
  92. package/dist/typescript/commonjs/features/endOfAssignment/types.d.ts.map +1 -1
  93. package/dist/typescript/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.d.ts +3 -2
  94. package/dist/typescript/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.d.ts.map +1 -1
  95. package/dist/typescript/commonjs/features/keyboard/components/KeysList/KeysList.d.ts +4 -1
  96. package/dist/typescript/commonjs/features/keyboard/components/KeysList/KeysList.d.ts.map +1 -1
  97. package/dist/typescript/commonjs/features/keyboard/components/KeysList/helpers.d.ts +2 -0
  98. package/dist/typescript/commonjs/features/keyboard/components/KeysList/helpers.d.ts.map +1 -1
  99. package/dist/typescript/commonjs/features/keyboard/components/Numpad/Numpad.d.ts.map +1 -1
  100. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/UnitTabs.d.ts.map +1 -1
  101. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/UnitsLayout.d.ts.map +1 -1
  102. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.d.ts +26 -2
  103. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.d.ts.map +1 -1
  104. package/dist/typescript/commonjs/features/keyboard/types/MathKeysGroups/units.d.ts +208 -208
  105. package/dist/typescript/commonjs/features/keyboard/types/MathKeysGroups/units.d.ts.map +1 -1
  106. package/dist/typescript/module/features/chatbot/model/t2s.d.ts.map +1 -1
  107. package/dist/typescript/module/features/chatbot/types/api.types.d.ts +7 -1
  108. package/dist/typescript/module/features/chatbot/types/api.types.d.ts.map +1 -1
  109. package/dist/typescript/module/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.d.ts +10 -0
  110. package/dist/typescript/module/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.d.ts.map +1 -0
  111. package/dist/typescript/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.d.ts.map +1 -1
  112. package/dist/typescript/module/features/endOfAssignment/components/EOAModal.d.ts +1 -3
  113. package/dist/typescript/module/features/endOfAssignment/components/EOAModal.d.ts.map +1 -1
  114. package/dist/typescript/module/features/endOfAssignment/components/ExamPaused/ExamPaused.d.ts +1 -1
  115. package/dist/typescript/module/features/endOfAssignment/components/ExamPaused/ExamPaused.d.ts.map +1 -1
  116. package/dist/typescript/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.d.ts.map +1 -1
  117. package/dist/typescript/module/features/endOfAssignment/components/NoAnswer/NoAnswer.d.ts.map +1 -1
  118. package/dist/typescript/module/features/endOfAssignment/helpers.d.ts +3 -1
  119. package/dist/typescript/module/features/endOfAssignment/helpers.d.ts.map +1 -1
  120. package/dist/typescript/module/features/endOfAssignment/model/model.d.ts +5 -0
  121. package/dist/typescript/module/features/endOfAssignment/model/model.d.ts.map +1 -1
  122. package/dist/typescript/module/features/endOfAssignment/types.d.ts +2 -2
  123. package/dist/typescript/module/features/endOfAssignment/types.d.ts.map +1 -1
  124. package/dist/typescript/module/features/endOfAssignment/ui/PracticeButtonGroup.d.ts +3 -2
  125. package/dist/typescript/module/features/endOfAssignment/ui/PracticeButtonGroup.d.ts.map +1 -1
  126. package/dist/typescript/module/features/keyboard/components/KeysList/KeysList.d.ts +4 -1
  127. package/dist/typescript/module/features/keyboard/components/KeysList/KeysList.d.ts.map +1 -1
  128. package/dist/typescript/module/features/keyboard/components/KeysList/helpers.d.ts +2 -0
  129. package/dist/typescript/module/features/keyboard/components/KeysList/helpers.d.ts.map +1 -1
  130. package/dist/typescript/module/features/keyboard/components/Numpad/Numpad.d.ts.map +1 -1
  131. package/dist/typescript/module/features/keyboard/components/UnitsLayout/UnitTabs.d.ts.map +1 -1
  132. package/dist/typescript/module/features/keyboard/components/UnitsLayout/UnitsLayout.d.ts.map +1 -1
  133. package/dist/typescript/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.d.ts +26 -2
  134. package/dist/typescript/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.d.ts.map +1 -1
  135. package/dist/typescript/module/features/keyboard/types/MathKeysGroups/units.d.ts +208 -208
  136. package/dist/typescript/module/features/keyboard/types/MathKeysGroups/units.d.ts.map +1 -1
  137. package/package.json +2 -2
  138. package/src/features/chatbot/model/t2s.ts +3 -2
  139. package/src/features/chatbot/types/api.types.ts +10 -1
  140. package/src/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.tsx +43 -0
  141. package/src/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.tsx +20 -10
  142. package/src/features/endOfAssignment/components/EOAModal.tsx +2 -9
  143. package/src/features/endOfAssignment/components/ExamPaused/ExamPaused.tsx +6 -6
  144. package/src/features/endOfAssignment/components/ExamSubmit/ExamSubmit.tsx +2 -2
  145. package/src/features/endOfAssignment/components/NoAnswer/NoAnswer.tsx +17 -6
  146. package/src/features/endOfAssignment/helpers.ts +10 -3
  147. package/src/features/endOfAssignment/model/model.ts +5 -1
  148. package/src/features/endOfAssignment/types.ts +2 -1
  149. package/src/features/endOfAssignment/ui/PracticeButtonGroup.tsx +4 -3
  150. package/src/features/keyboard/components/BasicLayout/BasicLayout.tsx +3 -1
  151. package/src/features/keyboard/components/Keyboard.tsx +2 -0
  152. package/src/features/keyboard/components/KeysList/KeysList.tsx +4 -2
  153. package/src/features/keyboard/components/MainLayout.tsx +2 -1
  154. package/src/features/keyboard/components/Numpad/Numpad.tsx +18 -1
  155. package/src/features/keyboard/components/UnitsLayout/UnitTabs.tsx +29 -24
  156. package/src/features/keyboard/components/UnitsLayout/UnitsLayout.tsx +0 -1
  157. package/src/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.ts +4 -0
  158. package/src/features/keyboard/types/MathKeysGroups/units.tsx +13 -14
@@ -7,34 +7,33 @@ import { YenIcon } from '../../../../shared/icons/keyboard/YenIcon/YenIcon'
7
7
  import { CentIcon } from '../../../../shared/icons/keyboard/CentIcon/CentIcon'
8
8
  import { DEFAULT_KEY_ICON_PROPS } from '../../constants/constants'
9
9
  import React from 'react'
10
- import { IS_MOBILE, IS_WEB } from '@magmamath/react-native-ui'
10
+ import { IS_MOBILE } from '@magmamath/react-native-ui'
11
11
  import { createMathKeysGroup } from './helpers'
12
12
 
13
13
  const BASE_TEXT_STYLE = {
14
14
  fontSize: 14,
15
- fontWeight: 700,
16
- } as const
15
+ fontWeight: 700 as const,
16
+ }
17
17
 
18
18
  const STYLE_PRESETS = {
19
19
  SMALL: {
20
- button: { width: IS_WEB ? 40 : 44 },
21
- container: IS_MOBILE ? { flexBasis: 48 } : undefined,
20
+ button: { width: IS_MOBILE ? 44 : 40 },
21
+ container: { flexBasis: IS_MOBILE ? 48 : undefined },
22
22
  text: BASE_TEXT_STYLE,
23
23
  },
24
24
  MEDIUM: {
25
- button: { width: IS_WEB ? 45 : 51 },
26
- container: IS_MOBILE ? { flexBasis: 55 } : undefined,
25
+ button: { width: IS_MOBILE ? 50 : 45 },
26
+ container: { flexBasis: IS_MOBILE ? 54 : undefined },
27
27
  text: BASE_TEXT_STYLE,
28
28
  },
29
29
  LARGE: {
30
- button: { width: IS_WEB ? 48 : 55 },
31
- container: IS_MOBILE ? { flexBasis: 59 } : undefined,
32
-
30
+ button: { width: IS_MOBILE ? 54 : 48 },
31
+ container: { flexBasis: IS_MOBILE ? 58 : undefined },
33
32
  text: BASE_TEXT_STYLE,
34
33
  },
35
34
  XL: {
36
- button: { width: IS_WEB ? 52 : 54 },
37
- container: IS_MOBILE ? { flexBasis: 60 } : undefined,
35
+ button: { width: IS_MOBILE ? 56 : 52 },
36
+ container: { flexBasis: IS_MOBILE ? 60 : undefined },
38
37
  text: BASE_TEXT_STYLE,
39
38
  },
40
39
  }
@@ -209,7 +208,7 @@ export const MATH_AREA_UNITS = createMathKeysGroup({
209
208
  mathliveValue: '\\mathrm{mi}^2',
210
209
  katexValue: 'mi^2',
211
210
  mathQuillValue: 'mi^{2}',
212
- style: STYLE_PRESETS.MEDIUM,
211
+ style: STYLE_PRESETS.SMALL,
213
212
  },
214
213
  SQUARE_YARD: {
215
214
  label: 'yd²',
@@ -325,7 +324,7 @@ export const MATH_VOLUME_UNITS = createMathKeysGroup({
325
324
  mathliveValue: '\\mathrm{cup}',
326
325
  katexValue: 'cup',
327
326
  mathQuillValue: '\\cup',
328
- style: STYLE_PRESETS.LARGE,
327
+ style: STYLE_PRESETS.MEDIUM,
329
328
  },
330
329
  GAL: {
331
330
  label: 'gal',