@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.
- package/dist/commonjs/features/chatbot/model/t2s.js +4 -3
- package/dist/commonjs/features/chatbot/model/t2s.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.js +44 -0
- package/dist/commonjs/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.js.map +1 -0
- package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js +10 -3
- package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/EOAModal.js +2 -4
- package/dist/commonjs/features/endOfAssignment/components/EOAModal.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.js +5 -3
- package/dist/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js +2 -1
- package/dist/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.js +9 -2
- package/dist/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/helpers.js +10 -3
- package/dist/commonjs/features/endOfAssignment/helpers.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/model/model.js +7 -0
- package/dist/commonjs/features/endOfAssignment/model/model.js.map +1 -1
- package/dist/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.js +2 -2
- package/dist/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/BasicLayout/BasicLayout.js +3 -1
- package/dist/commonjs/features/keyboard/components/BasicLayout/BasicLayout.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/Keyboard.js +2 -0
- package/dist/commonjs/features/keyboard/components/Keyboard.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/KeysList/KeysList.js +4 -3
- package/dist/commonjs/features/keyboard/components/KeysList/KeysList.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/MainLayout.js +2 -1
- package/dist/commonjs/features/keyboard/components/MainLayout.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/Numpad/Numpad.js +14 -1
- package/dist/commonjs/features/keyboard/components/Numpad/Numpad.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/UnitsLayout/UnitTabs.js +31 -25
- package/dist/commonjs/features/keyboard/components/UnitsLayout/UnitTabs.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/UnitsLayout/UnitsLayout.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js +15 -0
- package/dist/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js.map +1 -1
- package/dist/commonjs/features/keyboard/types/MathKeysGroups/units.js +18 -18
- package/dist/commonjs/features/keyboard/types/MathKeysGroups/units.js.map +1 -1
- package/dist/module/features/chatbot/model/t2s.js +4 -3
- package/dist/module/features/chatbot/model/t2s.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.js +38 -0
- package/dist/module/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.js.map +1 -0
- package/dist/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js +10 -3
- package/dist/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/EOAModal.js +2 -4
- package/dist/module/features/endOfAssignment/components/EOAModal.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/ExamPaused/ExamPaused.js +6 -4
- package/dist/module/features/endOfAssignment/components/ExamPaused/ExamPaused.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js +3 -2
- package/dist/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js.map +1 -1
- package/dist/module/features/endOfAssignment/components/NoAnswer/NoAnswer.js +9 -2
- package/dist/module/features/endOfAssignment/components/NoAnswer/NoAnswer.js.map +1 -1
- package/dist/module/features/endOfAssignment/helpers.js +8 -2
- package/dist/module/features/endOfAssignment/helpers.js.map +1 -1
- package/dist/module/features/endOfAssignment/model/model.js +7 -0
- package/dist/module/features/endOfAssignment/model/model.js.map +1 -1
- package/dist/module/features/endOfAssignment/ui/PracticeButtonGroup.js +2 -2
- package/dist/module/features/endOfAssignment/ui/PracticeButtonGroup.js.map +1 -1
- package/dist/module/features/keyboard/components/BasicLayout/BasicLayout.js +3 -1
- package/dist/module/features/keyboard/components/BasicLayout/BasicLayout.js.map +1 -1
- package/dist/module/features/keyboard/components/Keyboard.js +2 -0
- package/dist/module/features/keyboard/components/Keyboard.js.map +1 -1
- package/dist/module/features/keyboard/components/KeysList/KeysList.js +4 -3
- package/dist/module/features/keyboard/components/KeysList/KeysList.js.map +1 -1
- package/dist/module/features/keyboard/components/MainLayout.js +2 -1
- package/dist/module/features/keyboard/components/MainLayout.js.map +1 -1
- package/dist/module/features/keyboard/components/Numpad/Numpad.js +14 -1
- package/dist/module/features/keyboard/components/Numpad/Numpad.js.map +1 -1
- package/dist/module/features/keyboard/components/UnitsLayout/UnitTabs.js +31 -25
- package/dist/module/features/keyboard/components/UnitsLayout/UnitTabs.js.map +1 -1
- package/dist/module/features/keyboard/components/UnitsLayout/UnitsLayout.js.map +1 -1
- package/dist/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js +15 -0
- package/dist/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js.map +1 -1
- package/dist/module/features/keyboard/types/MathKeysGroups/units.js +19 -19
- package/dist/module/features/keyboard/types/MathKeysGroups/units.js.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/model/t2s.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/types/api.types.d.ts +7 -1
- package/dist/typescript/commonjs/features/chatbot/types/api.types.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.d.ts +10 -0
- package/dist/typescript/commonjs/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/EOAModal.d.ts +1 -3
- package/dist/typescript/commonjs/features/endOfAssignment/components/EOAModal.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.d.ts +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/helpers.d.ts +3 -1
- package/dist/typescript/commonjs/features/endOfAssignment/helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/model/model.d.ts +5 -0
- package/dist/typescript/commonjs/features/endOfAssignment/model/model.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/types.d.ts +2 -2
- package/dist/typescript/commonjs/features/endOfAssignment/types.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.d.ts +3 -2
- package/dist/typescript/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/KeysList/KeysList.d.ts +4 -1
- package/dist/typescript/commonjs/features/keyboard/components/KeysList/KeysList.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/KeysList/helpers.d.ts +2 -0
- package/dist/typescript/commonjs/features/keyboard/components/KeysList/helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/Numpad/Numpad.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/UnitTabs.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/UnitsLayout.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.d.ts +26 -2
- package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/types/MathKeysGroups/units.d.ts +208 -208
- package/dist/typescript/commonjs/features/keyboard/types/MathKeysGroups/units.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/model/t2s.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/types/api.types.d.ts +7 -1
- package/dist/typescript/module/features/chatbot/types/api.types.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.d.ts +10 -0
- package/dist/typescript/module/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.d.ts.map +1 -0
- package/dist/typescript/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/EOAModal.d.ts +1 -3
- package/dist/typescript/module/features/endOfAssignment/components/EOAModal.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/ExamPaused/ExamPaused.d.ts +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/ExamPaused/ExamPaused.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/components/NoAnswer/NoAnswer.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/helpers.d.ts +3 -1
- package/dist/typescript/module/features/endOfAssignment/helpers.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/model/model.d.ts +5 -0
- package/dist/typescript/module/features/endOfAssignment/model/model.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/types.d.ts +2 -2
- package/dist/typescript/module/features/endOfAssignment/types.d.ts.map +1 -1
- package/dist/typescript/module/features/endOfAssignment/ui/PracticeButtonGroup.d.ts +3 -2
- package/dist/typescript/module/features/endOfAssignment/ui/PracticeButtonGroup.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/KeysList/KeysList.d.ts +4 -1
- package/dist/typescript/module/features/keyboard/components/KeysList/KeysList.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/KeysList/helpers.d.ts +2 -0
- package/dist/typescript/module/features/keyboard/components/KeysList/helpers.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/Numpad/Numpad.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/UnitsLayout/UnitTabs.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/UnitsLayout/UnitsLayout.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.d.ts +26 -2
- package/dist/typescript/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/types/MathKeysGroups/units.d.ts +208 -208
- package/dist/typescript/module/features/keyboard/types/MathKeysGroups/units.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/features/chatbot/model/t2s.ts +3 -2
- package/src/features/chatbot/types/api.types.ts +10 -1
- package/src/features/endOfAssignment/components/AssessmentScoreCard/AssessmentScoreCard.tsx +43 -0
- package/src/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.tsx +20 -10
- package/src/features/endOfAssignment/components/EOAModal.tsx +2 -9
- package/src/features/endOfAssignment/components/ExamPaused/ExamPaused.tsx +6 -6
- package/src/features/endOfAssignment/components/ExamSubmit/ExamSubmit.tsx +2 -2
- package/src/features/endOfAssignment/components/NoAnswer/NoAnswer.tsx +17 -6
- package/src/features/endOfAssignment/helpers.ts +10 -3
- package/src/features/endOfAssignment/model/model.ts +5 -1
- package/src/features/endOfAssignment/types.ts +2 -1
- package/src/features/endOfAssignment/ui/PracticeButtonGroup.tsx +4 -3
- package/src/features/keyboard/components/BasicLayout/BasicLayout.tsx +3 -1
- package/src/features/keyboard/components/Keyboard.tsx +2 -0
- package/src/features/keyboard/components/KeysList/KeysList.tsx +4 -2
- package/src/features/keyboard/components/MainLayout.tsx +2 -1
- package/src/features/keyboard/components/Numpad/Numpad.tsx +18 -1
- package/src/features/keyboard/components/UnitsLayout/UnitTabs.tsx +29 -24
- package/src/features/keyboard/components/UnitsLayout/UnitsLayout.tsx +0 -1
- package/src/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.ts +4 -0
- 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
|
|
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
|
-
}
|
|
15
|
+
fontWeight: 700 as const,
|
|
16
|
+
}
|
|
17
17
|
|
|
18
18
|
const STYLE_PRESETS = {
|
|
19
19
|
SMALL: {
|
|
20
|
-
button: { width:
|
|
21
|
-
container:
|
|
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:
|
|
26
|
-
container:
|
|
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:
|
|
31
|
-
container:
|
|
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:
|
|
37
|
-
container:
|
|
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.
|
|
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.
|
|
327
|
+
style: STYLE_PRESETS.MEDIUM,
|
|
329
328
|
},
|
|
330
329
|
GAL: {
|
|
331
330
|
label: 'gal',
|