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

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 (105) hide show
  1. package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js +3 -10
  2. package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js.map +1 -1
  3. package/dist/commonjs/features/endOfAssignment/components/EOAModal.js +4 -2
  4. package/dist/commonjs/features/endOfAssignment/components/EOAModal.js.map +1 -1
  5. package/dist/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.js +3 -5
  6. package/dist/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.js.map +1 -1
  7. package/dist/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js +1 -2
  8. package/dist/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js.map +1 -1
  9. package/dist/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.js +2 -9
  10. package/dist/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.js.map +1 -1
  11. package/dist/commonjs/features/endOfAssignment/helpers.js +3 -10
  12. package/dist/commonjs/features/endOfAssignment/helpers.js.map +1 -1
  13. package/dist/commonjs/features/endOfAssignment/model/model.js +0 -7
  14. package/dist/commonjs/features/endOfAssignment/model/model.js.map +1 -1
  15. package/dist/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.js +2 -2
  16. package/dist/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.js.map +1 -1
  17. package/dist/commonjs/features/keyboard/components/UnitsLayout/UnitTabs.js +0 -1
  18. package/dist/commonjs/features/keyboard/components/UnitsLayout/UnitTabs.js.map +1 -1
  19. package/dist/commonjs/features/keyboard/components/UnitsLayout/UnitsLayout.js.map +1 -1
  20. package/dist/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js +0 -15
  21. package/dist/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js.map +1 -1
  22. package/dist/commonjs/features/keyboard/types/MathKeysGroups/units.js +4 -4
  23. package/dist/commonjs/features/keyboard/types/MathKeysGroups/units.js.map +1 -1
  24. package/dist/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js +3 -10
  25. package/dist/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js.map +1 -1
  26. package/dist/module/features/endOfAssignment/components/EOAModal.js +4 -2
  27. package/dist/module/features/endOfAssignment/components/EOAModal.js.map +1 -1
  28. package/dist/module/features/endOfAssignment/components/ExamPaused/ExamPaused.js +4 -6
  29. package/dist/module/features/endOfAssignment/components/ExamPaused/ExamPaused.js.map +1 -1
  30. package/dist/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js +2 -3
  31. package/dist/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js.map +1 -1
  32. package/dist/module/features/endOfAssignment/components/NoAnswer/NoAnswer.js +2 -9
  33. package/dist/module/features/endOfAssignment/components/NoAnswer/NoAnswer.js.map +1 -1
  34. package/dist/module/features/endOfAssignment/helpers.js +2 -8
  35. package/dist/module/features/endOfAssignment/helpers.js.map +1 -1
  36. package/dist/module/features/endOfAssignment/model/model.js +0 -7
  37. package/dist/module/features/endOfAssignment/model/model.js.map +1 -1
  38. package/dist/module/features/endOfAssignment/ui/PracticeButtonGroup.js +2 -2
  39. package/dist/module/features/endOfAssignment/ui/PracticeButtonGroup.js.map +1 -1
  40. package/dist/module/features/keyboard/components/UnitsLayout/UnitTabs.js +0 -1
  41. package/dist/module/features/keyboard/components/UnitsLayout/UnitTabs.js.map +1 -1
  42. package/dist/module/features/keyboard/components/UnitsLayout/UnitsLayout.js.map +1 -1
  43. package/dist/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js +0 -15
  44. package/dist/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js.map +1 -1
  45. package/dist/module/features/keyboard/types/MathKeysGroups/units.js +4 -4
  46. package/dist/module/features/keyboard/types/MathKeysGroups/units.js.map +1 -1
  47. package/dist/typescript/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.d.ts.map +1 -1
  48. package/dist/typescript/commonjs/features/endOfAssignment/components/EOAModal.d.ts +3 -1
  49. package/dist/typescript/commonjs/features/endOfAssignment/components/EOAModal.d.ts.map +1 -1
  50. package/dist/typescript/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.d.ts +1 -1
  51. package/dist/typescript/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.d.ts.map +1 -1
  52. package/dist/typescript/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.d.ts.map +1 -1
  53. package/dist/typescript/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.d.ts.map +1 -1
  54. package/dist/typescript/commonjs/features/endOfAssignment/helpers.d.ts +1 -3
  55. package/dist/typescript/commonjs/features/endOfAssignment/helpers.d.ts.map +1 -1
  56. package/dist/typescript/commonjs/features/endOfAssignment/model/model.d.ts +0 -5
  57. package/dist/typescript/commonjs/features/endOfAssignment/model/model.d.ts.map +1 -1
  58. package/dist/typescript/commonjs/features/endOfAssignment/types.d.ts +2 -2
  59. package/dist/typescript/commonjs/features/endOfAssignment/types.d.ts.map +1 -1
  60. package/dist/typescript/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.d.ts +2 -3
  61. package/dist/typescript/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.d.ts.map +1 -1
  62. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/UnitsLayout.d.ts.map +1 -1
  63. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.d.ts +2 -26
  64. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.d.ts.map +1 -1
  65. package/dist/typescript/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.d.ts.map +1 -1
  66. package/dist/typescript/module/features/endOfAssignment/components/EOAModal.d.ts +3 -1
  67. package/dist/typescript/module/features/endOfAssignment/components/EOAModal.d.ts.map +1 -1
  68. package/dist/typescript/module/features/endOfAssignment/components/ExamPaused/ExamPaused.d.ts +1 -1
  69. package/dist/typescript/module/features/endOfAssignment/components/ExamPaused/ExamPaused.d.ts.map +1 -1
  70. package/dist/typescript/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.d.ts.map +1 -1
  71. package/dist/typescript/module/features/endOfAssignment/components/NoAnswer/NoAnswer.d.ts.map +1 -1
  72. package/dist/typescript/module/features/endOfAssignment/helpers.d.ts +1 -3
  73. package/dist/typescript/module/features/endOfAssignment/helpers.d.ts.map +1 -1
  74. package/dist/typescript/module/features/endOfAssignment/model/model.d.ts +0 -5
  75. package/dist/typescript/module/features/endOfAssignment/model/model.d.ts.map +1 -1
  76. package/dist/typescript/module/features/endOfAssignment/types.d.ts +2 -2
  77. package/dist/typescript/module/features/endOfAssignment/types.d.ts.map +1 -1
  78. package/dist/typescript/module/features/endOfAssignment/ui/PracticeButtonGroup.d.ts +2 -3
  79. package/dist/typescript/module/features/endOfAssignment/ui/PracticeButtonGroup.d.ts.map +1 -1
  80. package/dist/typescript/module/features/keyboard/components/UnitsLayout/UnitsLayout.d.ts.map +1 -1
  81. package/dist/typescript/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.d.ts +2 -26
  82. package/dist/typescript/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.d.ts.map +1 -1
  83. package/package.json +2 -2
  84. package/src/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.tsx +10 -20
  85. package/src/features/endOfAssignment/components/EOAModal.tsx +9 -2
  86. package/src/features/endOfAssignment/components/ExamPaused/ExamPaused.tsx +6 -6
  87. package/src/features/endOfAssignment/components/ExamSubmit/ExamSubmit.tsx +2 -2
  88. package/src/features/endOfAssignment/components/NoAnswer/NoAnswer.tsx +6 -17
  89. package/src/features/endOfAssignment/helpers.ts +3 -10
  90. package/src/features/endOfAssignment/model/model.ts +1 -5
  91. package/src/features/endOfAssignment/types.ts +1 -2
  92. package/src/features/endOfAssignment/ui/PracticeButtonGroup.tsx +3 -4
  93. package/src/features/keyboard/components/UnitsLayout/UnitTabs.tsx +0 -1
  94. package/src/features/keyboard/components/UnitsLayout/UnitsLayout.tsx +1 -0
  95. package/src/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.ts +0 -4
  96. package/src/features/keyboard/types/MathKeysGroups/units.tsx +4 -4
  97. package/dist/commonjs/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.js +0 -44
  98. package/dist/commonjs/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.js.map +0 -1
  99. package/dist/module/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.js +0 -38
  100. package/dist/module/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.js.map +0 -1
  101. package/dist/typescript/commonjs/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.d.ts +0 -10
  102. package/dist/typescript/commonjs/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.d.ts.map +0 -1
  103. package/dist/typescript/module/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.d.ts +0 -10
  104. package/dist/typescript/module/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.d.ts.map +0 -1
  105. package/src/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.tsx +0 -43
@@ -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)
21
16
 
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 = ({ textContent, model }: EOAModalContentProps) => {
39
39
 
40
40
  <Button
41
41
  variant={ButtonVariant.PRIMARY}
42
- colorScheme={getEoaButtonColor(popUpData)}
42
+ colorScheme={buttonColor}
43
43
  size={ButtonSize.LARGE}
44
44
  style={{ text: styles.buttonText }}
45
45
  onPress={model.hidePopUpAndLeave}
@@ -4,6 +4,7 @@ import { View, StyleSheet, Platform, Image } from 'react-native'
4
4
  import { useUnit } from 'effector-react'
5
5
  import {
6
6
  Button,
7
+ ButtonColor,
7
8
  ButtonSize,
8
9
  ButtonVariant,
9
10
  COLORS,
@@ -17,7 +18,6 @@ import { EOAModalContentProps } from '../../types'
17
18
  import { PracticeButton } from '../../ui/PracticeButton'
18
19
  import { useKeyBoard } from '../../../../shared/hooks/useKeyboard'
19
20
  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={getEoaButtonColor(popUpData)}
63
+ colorScheme={popUpData?.isExam ? ButtonColor.PURPLE : ButtonColor.BLUE}
64
64
  style={{ text: { textTransform: 'uppercase' } }}
65
65
  onPress={model.hidePopUpAndLeave}
66
66
  >
@@ -16,19 +16,17 @@ 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'
21
19
 
22
20
  export const NoAnswer = ({ model, textContent, onPracticePress }: EOAModalContentProps) => {
23
21
  const popUpData = useUnit(model.$popUpData)
24
22
 
25
- const { stats, isExam, isAssessment, user } = popUpData ?? {}
23
+ const { stats, isExam, user } = popUpData ?? {}
26
24
 
27
25
  function getButtons() {
28
26
  const buttons = [
29
27
  {
30
28
  text: textContent.leftButtonText ?? '',
31
- colorScheme: getEoaButtonColor(popUpData),
29
+ colorScheme: isExam ? ButtonColor.PURPLE : ButtonColor.BLUE,
32
30
  onPress: () => model.hidePopUpAndLeave(),
33
31
  },
34
32
  ]
@@ -86,19 +84,10 @@ export const NoAnswer = ({ model, textContent, onPracticePress }: EOAModalConten
86
84
  </Typography>
87
85
  )}
88
86
  </View>
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
-
87
+ <NoAnswerContent
88
+ solvedAmount={stats?.solvedAmount ?? 0}
89
+ problemsAmount={stats?.problemsAmount ?? 0}
90
+ />
102
91
  <View style={styles.buttonsContainer}>
103
92
  {buttons.map((button, index) => (
104
93
  <Button
@@ -1,17 +1,16 @@
1
1
  import { MODALS_WITH_BACKGROUND } from './constants'
2
- import { EOAModalData, EOAModalVariant } from './types'
3
- import { ButtonColor } from '@magmamath/react-native-ui'
2
+ import { EOAModalVariant } from './types'
4
3
 
5
4
  export const getModalContainerSize = (modalVariant: EOAModalVariant) => {
6
5
  switch (modalVariant) {
7
6
  case EOAModalVariant.EXAM_SUBMIT:
8
7
  case EOAModalVariant.EXAM_SAFE_MODE_SUBMIT:
9
- return { container: { width: 620, height: 384 } }
8
+ return { container: { width: 600, height: 384 } }
10
9
  case EOAModalVariant.EXAM_PAUSED:
11
10
  case EOAModalVariant.EXAM_SAFE_MODE_CHEAT_DETECTED:
12
11
  return { container: { width: 560, height: 338 } }
13
12
  case EOAModalVariant.EXAM_SAFE_MODE_LEAVE:
14
- return { container: { width: 550, height: 325 } }
13
+ return { container: { width: 550, height: 280 } }
15
14
  case EOAModalVariant.HAS_GOOD_DRAWING:
16
15
  return { container: { width: 957, height: 550 } }
17
16
  case EOAModalVariant.HAS_CORRECT_ANSWERS:
@@ -27,9 +26,3 @@ export const shouldDisplayModalBackground = (modalVariant: EOAModalVariant | nul
27
26
 
28
27
  return MODALS_WITH_BACKGROUND.includes(modalVariant)
29
28
  }
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
- }
@@ -9,7 +9,6 @@ export class EOAModel {
9
9
  public readonly leavePressed = createEvent()
10
10
  public readonly goToFirstProblemPressed = createEvent()
11
11
  public readonly recommendationsUpdated = createEvent<boolean>()
12
- public readonly popUpStatsUpdated = createEvent<Partial<EOAModalData['stats']>>()
13
12
  public readonly popUpTriggered = createEvent<EOAEventType>()
14
13
 
15
14
  public readonly $popUpData = createStore<EOAModalData | null>(null)
@@ -17,9 +16,6 @@ export class EOAModel {
17
16
  .on(this.recommendationsUpdated, (state, hasRecommendations) =>
18
17
  state ? { ...state, hasRecommendations } : state,
19
18
  )
20
- .on(this.popUpStatsUpdated, (state, payload) =>
21
- state ? { ...state, stats: { ...state.stats, ...payload } } : state,
22
- )
23
19
  .reset(this.hidePopUp)
24
20
 
25
21
  public readonly $modalVariant = createStore<EOAModalVariant | null>(null)
@@ -37,7 +33,7 @@ export class EOAModel {
37
33
  }
38
34
 
39
35
  if (eventType === EOAEventType.EXAM_PAUSED) return EOAModalVariant.EXAM_PAUSED
40
-
36
+
41
37
  if (eventType === EOAEventType.CHEAT_DETECTED) {
42
38
  return EOAModalVariant.EXAM_SAFE_MODE_CHEAT_DETECTED
43
39
  }
@@ -34,11 +34,11 @@ export type EOAModalContentProps = {
34
34
  textContent: EOAModalText
35
35
  model: EOAModel
36
36
  onPracticePress?: () => void
37
+ buttonColor?: ButtonColor
37
38
  }
38
39
 
39
40
  export type EOAModalData = {
40
41
  isExam: boolean
41
- isAssessment: boolean
42
42
  newerAssignmentAvailable?: boolean
43
43
  examFinished?: boolean
44
44
  cheatDetection?: boolean
@@ -63,6 +63,5 @@ export type EOAModalText = {
63
63
  correctAnswersPlural?: string
64
64
  goodCalculations?: string
65
65
  goodCalculationsPlural?: string
66
- score?: string
67
66
  }
68
67
  }
@@ -11,14 +11,13 @@ import Animated, {
11
11
  import { ButtonVariant, SPACING, Button, ButtonSize, ButtonColor } from '@magmamath/react-native-ui'
12
12
 
13
13
  import { PracticeButton } from './PracticeButton'
14
- import { getEoaButtonColor } from '../helpers'
15
14
 
16
15
  type PracticeButtonGroupProps = {
17
16
  textContent: { leftButtonText?: string; rightButtonText?: string }
18
17
  isPracticeButtonVisible: boolean
19
18
  onLeftButtonPress: () => void
20
19
  onRightButtonPress: () => void
21
- buttonColor?: ButtonColor
20
+ isExam: boolean
22
21
  }
23
22
 
24
23
  export const PracticeButtonGroup = ({
@@ -26,7 +25,7 @@ export const PracticeButtonGroup = ({
26
25
  isPracticeButtonVisible,
27
26
  onLeftButtonPress,
28
27
  onRightButtonPress,
29
- buttonColor = ButtonColor.BLUE,
28
+ isExam,
30
29
  }: PracticeButtonGroupProps) => {
31
30
  const buttonsContainerOpacity = useSharedValue(0)
32
31
 
@@ -46,7 +45,7 @@ export const PracticeButtonGroup = ({
46
45
  <Button
47
46
  variant={isPracticeButtonVisible ? ButtonVariant.TERTIARY : ButtonVariant.PRIMARY}
48
47
  size={ButtonSize.LARGE}
49
- colorScheme={buttonColor}
48
+ colorScheme={isExam ? ButtonColor.PURPLE : ButtonColor.BLUE}
50
49
  style={{ text: { textTransform: 'uppercase' } }}
51
50
  onPress={onLeftButtonPress}
52
51
  >
@@ -56,7 +56,6 @@ export const UnitTabs = ({ activeTab, tabs, onTabChange, ...props }: UnitTabsPro
56
56
 
57
57
  const styles = StyleSheet.create({
58
58
  container: {
59
- width: 283,
60
59
  flex: 1,
61
60
  },
62
61
  tabsContainer: {
@@ -46,6 +46,7 @@ export const UnitsLayout = ({ onLayoutChange, ...props }: KeyboardLayoutProps) =
46
46
  ]}
47
47
  />
48
48
  )}
49
+
49
50
  {selectedLayout === SelectedLayout.UNITS ? (
50
51
  <UnitTabs tabs={tabs} activeTab={activeTab} onTabChange={setActiveTab} {...props} />
51
52
  ) : (
@@ -10,22 +10,18 @@ export const useUnitTabs = () => {
10
10
  () => [
11
11
  {
12
12
  title: t('keyboard.length'),
13
- style: { paddingLeft: 0, paddingRight: 32, marginRight: -16 },
14
13
  key: KeyboardUnitsGroupType.LENGTH,
15
14
  },
16
15
  {
17
16
  title: t('keyboard.area'),
18
- style: { paddingHorizontal: 10 },
19
17
  key: KeyboardUnitsGroupType.AREA,
20
18
  },
21
19
  {
22
20
  title: t('keyboard.volume'),
23
- style: { paddingHorizontal: 10 },
24
21
  key: KeyboardUnitsGroupType.VOLUME,
25
22
  },
26
23
  {
27
24
  title: t('keyboard.weight'),
28
- style: { paddingHorizontal: 10, paddingRight: 0 },
29
25
  key: KeyboardUnitsGroupType.WEIGHT,
30
26
  },
31
27
  ],
@@ -27,8 +27,8 @@ const STYLE_PRESETS = {
27
27
  text: BASE_TEXT_STYLE,
28
28
  },
29
29
  LARGE: {
30
- button: { width: IS_MOBILE ? 54 : 48 },
31
- container: { flexBasis: IS_MOBILE ? 58 : undefined },
30
+ button: { width: IS_MOBILE ? 56 : 48 },
31
+ container: { flexBasis: IS_MOBILE ? 60 : undefined },
32
32
  text: BASE_TEXT_STYLE,
33
33
  },
34
34
  XL: {
@@ -208,7 +208,7 @@ export const MATH_AREA_UNITS = createMathKeysGroup({
208
208
  mathliveValue: '\\mathrm{mi}^2',
209
209
  katexValue: 'mi^2',
210
210
  mathQuillValue: 'mi^{2}',
211
- style: STYLE_PRESETS.SMALL,
211
+ style: STYLE_PRESETS.MEDIUM,
212
212
  },
213
213
  SQUARE_YARD: {
214
214
  label: 'yd²',
@@ -324,7 +324,7 @@ export const MATH_VOLUME_UNITS = createMathKeysGroup({
324
324
  mathliveValue: '\\mathrm{cup}',
325
325
  katexValue: 'cup',
326
326
  mathQuillValue: '\\cup',
327
- style: STYLE_PRESETS.MEDIUM,
327
+ style: STYLE_PRESETS.LARGE,
328
328
  },
329
329
  GAL: {
330
330
  label: 'gal',
@@ -1,44 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.AssessmentScoreCard = void 0;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _reactNative = require("react-native");
9
- var _reactNativeUi = require("@magmamath/react-native-ui");
10
- var _jsxRuntime = require("react/jsx-runtime");
11
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
- const AssessmentScoreCard = ({
13
- textContent,
14
- solvedAmount = 0,
15
- problemsAmount = 0
16
- }) => {
17
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
18
- style: styles.container,
19
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, {
20
- style: styles.text,
21
- children: [solvedAmount, " / ", problemsAmount, " ", textContent.stats?.score ?? 'pt']
22
- })
23
- });
24
- };
25
- exports.AssessmentScoreCard = AssessmentScoreCard;
26
- const styles = _reactNative.StyleSheet.create({
27
- container: {
28
- alignItems: 'center',
29
- justifyContent: 'center',
30
- minHeight: 130,
31
- minWidth: 410,
32
- padding: _reactNativeUi.SPACING['400'],
33
- borderRadius: _reactNativeUi.BORDER_RADIUS['400'],
34
- backgroundColor: _reactNativeUi.COLORS.NEUTRAL_1,
35
- ..._reactNativeUi.SHADOWS['1']
36
- },
37
- text: {
38
- fontSize: 96,
39
- fontWeight: '700',
40
- color: _reactNativeUi.COLORS.NEUTRAL_9,
41
- fontFamily: 'Buenos Aires'
42
- }
43
- });
44
- //# sourceMappingURL=AssessmentScoreCard.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeUi","_jsxRuntime","e","__esModule","default","AssessmentScoreCard","textContent","solvedAmount","problemsAmount","jsx","View","style","styles","container","children","jsxs","Text","text","stats","score","exports","StyleSheet","create","alignItems","justifyContent","minHeight","minWidth","padding","SPACING","borderRadius","BORDER_RADIUS","backgroundColor","COLORS","NEUTRAL_1","SHADOWS","fontSize","fontWeight","color","NEUTRAL_9","fontFamily"],"sourceRoot":"../../../../../../src","sources":["features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AAAoF,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAD,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAS7E,MAAMG,mBAAmB,GAAGA,CAAC;EAClCC,WAAW;EACXC,YAAY,GAAG,CAAC;EAChBC,cAAc,GAAG;AACO,CAAC,KAAK;EAC9B,oBACE,IAAAP,WAAA,CAAAQ,GAAA,EAACV,YAAA,CAAAW,IAAI;IAACC,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAC,QAAA,eAC5B,IAAAb,WAAA,CAAAc,IAAA,EAAChB,YAAA,CAAAiB,IAAI;MAACL,KAAK,EAAEC,MAAM,CAACK,IAAK;MAAAH,QAAA,GACtBP,YAAY,EAAC,KAAG,EAACC,cAAc,EAAC,GAAC,EAACF,WAAW,CAACY,KAAK,EAAEC,KAAK,IAAI,IAAI;IAAA,CAC/D;EAAC,CACH,CAAC;AAEX,CAAC;AAAAC,OAAA,CAAAf,mBAAA,GAAAA,mBAAA;AAED,MAAMO,MAAM,GAAGS,uBAAU,CAACC,MAAM,CAAC;EAC/BT,SAAS,EAAE;IACTU,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBC,SAAS,EAAE,GAAG;IACdC,QAAQ,EAAE,GAAG;IACbC,OAAO,EAAEC,sBAAO,CAAC,KAAK,CAAC;IACvBC,YAAY,EAAEC,4BAAa,CAAC,KAAK,CAAC;IAClCC,eAAe,EAAEC,qBAAM,CAACC,SAAS;IACjC,GAAGC,sBAAO,CAAC,GAAG;EAChB,CAAC;EACDjB,IAAI,EAAE;IACJkB,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,KAAK;IACjBC,KAAK,EAAEL,qBAAM,CAACM,SAAS;IACvBC,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
@@ -1,38 +0,0 @@
1
- "use strict";
2
-
3
- import React from 'react';
4
- import { StyleSheet, Text, View } from 'react-native';
5
- import { BORDER_RADIUS, COLORS, SHADOWS, SPACING } from '@magmamath/react-native-ui';
6
- import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
7
- export const AssessmentScoreCard = ({
8
- textContent,
9
- solvedAmount = 0,
10
- problemsAmount = 0
11
- }) => {
12
- return /*#__PURE__*/_jsx(View, {
13
- style: styles.container,
14
- children: /*#__PURE__*/_jsxs(Text, {
15
- style: styles.text,
16
- children: [solvedAmount, " / ", problemsAmount, " ", textContent.stats?.score ?? 'pt']
17
- })
18
- });
19
- };
20
- const styles = StyleSheet.create({
21
- container: {
22
- alignItems: 'center',
23
- justifyContent: 'center',
24
- minHeight: 130,
25
- minWidth: 410,
26
- padding: SPACING['400'],
27
- borderRadius: BORDER_RADIUS['400'],
28
- backgroundColor: COLORS.NEUTRAL_1,
29
- ...SHADOWS['1']
30
- },
31
- text: {
32
- fontSize: 96,
33
- fontWeight: '700',
34
- color: COLORS.NEUTRAL_9,
35
- fontFamily: 'Buenos Aires'
36
- }
37
- });
38
- //# sourceMappingURL=AssessmentScoreCard.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","StyleSheet","Text","View","BORDER_RADIUS","COLORS","SHADOWS","SPACING","jsxs","_jsxs","jsx","_jsx","AssessmentScoreCard","textContent","solvedAmount","problemsAmount","style","styles","container","children","text","stats","score","create","alignItems","justifyContent","minHeight","minWidth","padding","borderRadius","backgroundColor","NEUTRAL_1","fontSize","fontWeight","color","NEUTRAL_9","fontFamily"],"sourceRoot":"../../../../../../src","sources":["features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACrD,SAASC,aAAa,EAAEC,MAAM,EAAEC,OAAO,EAAEC,OAAO,QAAQ,4BAA4B;AAAA,SAAAC,IAAA,IAAAC,KAAA,EAAAC,GAAA,IAAAC,IAAA;AASpF,OAAO,MAAMC,mBAAmB,GAAGA,CAAC;EAClCC,WAAW;EACXC,YAAY,GAAG,CAAC;EAChBC,cAAc,GAAG;AACO,CAAC,KAAK;EAC9B,oBACEJ,IAAA,CAACR,IAAI;IAACa,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAC,QAAA,eAC5BV,KAAA,CAACP,IAAI;MAACc,KAAK,EAAEC,MAAM,CAACG,IAAK;MAAAD,QAAA,GACtBL,YAAY,EAAC,KAAG,EAACC,cAAc,EAAC,GAAC,EAACF,WAAW,CAACQ,KAAK,EAAEC,KAAK,IAAI,IAAI;IAAA,CAC/D;EAAC,CACH,CAAC;AAEX,CAAC;AAED,MAAML,MAAM,GAAGhB,UAAU,CAACsB,MAAM,CAAC;EAC/BL,SAAS,EAAE;IACTM,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBC,SAAS,EAAE,GAAG;IACdC,QAAQ,EAAE,GAAG;IACbC,OAAO,EAAErB,OAAO,CAAC,KAAK,CAAC;IACvBsB,YAAY,EAAEzB,aAAa,CAAC,KAAK,CAAC;IAClC0B,eAAe,EAAEzB,MAAM,CAAC0B,SAAS;IACjC,GAAGzB,OAAO,CAAC,GAAG;EAChB,CAAC;EACDc,IAAI,EAAE;IACJY,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,KAAK;IACjBC,KAAK,EAAE7B,MAAM,CAAC8B,SAAS;IACvBC,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import { EOAModalText } from '@magmamath/students-features';
3
- type AssessmentScoreCardProps = {
4
- textContent: EOAModalText;
5
- solvedAmount?: number;
6
- problemsAmount?: number;
7
- };
8
- export declare const AssessmentScoreCard: ({ textContent, solvedAmount, problemsAmount, }: AssessmentScoreCardProps) => React.JSX.Element;
9
- export {};
10
- //# sourceMappingURL=AssessmentScoreCard.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AssessmentScoreCard.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAE3D,KAAK,wBAAwB,GAAG;IAC9B,WAAW,EAAE,YAAY,CAAA;IACzB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,eAAO,MAAM,mBAAmB,mDAI7B,wBAAwB,sBAQ1B,CAAA"}
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import { EOAModalText } from '@magmamath/students-features';
3
- type AssessmentScoreCardProps = {
4
- textContent: EOAModalText;
5
- solvedAmount?: number;
6
- problemsAmount?: number;
7
- };
8
- export declare const AssessmentScoreCard: ({ textContent, solvedAmount, problemsAmount, }: AssessmentScoreCardProps) => React.JSX.Element;
9
- export {};
10
- //# sourceMappingURL=AssessmentScoreCard.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AssessmentScoreCard.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAE3D,KAAK,wBAAwB,GAAG;IAC9B,WAAW,EAAE,YAAY,CAAA;IACzB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,eAAO,MAAM,mBAAmB,mDAI7B,wBAAwB,sBAQ1B,CAAA"}
@@ -1,43 +0,0 @@
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
- })