@magmamath/students-features 0.9.104 → 0.9.105-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 (210) hide show
  1. package/dist/commonjs/features/feedback/model/model.js.map +1 -1
  2. package/dist/commonjs/features/feedback/model/sockets.js +5 -8
  3. package/dist/commonjs/features/feedback/model/sockets.js.map +1 -1
  4. package/dist/commonjs/features/keyboard/components/BasicPlusLayout/keyboardGroups.js +4 -4
  5. package/dist/commonjs/features/keyboard/components/BasicPlusLayout/keyboardGroups.js.map +1 -1
  6. package/dist/commonjs/features/keyboard/components/BasicPlusPlusLayout/keyboardGroups.js +4 -4
  7. package/dist/commonjs/features/keyboard/components/BasicPlusPlusLayout/keyboardGroups.js.map +1 -1
  8. package/dist/commonjs/features/keyboard/components/UnitsLayout/UnitTabs.js +1 -1
  9. package/dist/commonjs/features/keyboard/components/UnitsLayout/helpers.js +1 -3
  10. package/dist/commonjs/features/keyboard/components/UnitsLayout/helpers.js.map +1 -1
  11. package/dist/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js +6 -27
  12. package/dist/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js.map +1 -1
  13. package/dist/commonjs/features/keyboard/components/UnitsLayout/keyboardGroups.js +1 -9
  14. package/dist/commonjs/features/keyboard/components/UnitsLayout/keyboardGroups.js.map +1 -1
  15. package/dist/commonjs/features/keyboard/components/UnitsLayout/types.js +0 -1
  16. package/dist/commonjs/features/keyboard/components/UnitsLayout/types.js.map +1 -1
  17. package/dist/commonjs/features/keyboard/constants/keyboardGroupsByLocale.js +1 -2
  18. package/dist/commonjs/features/keyboard/constants/keyboardGroupsByLocale.js.map +1 -1
  19. package/dist/commonjs/features/keyboard/constants/keyboardLayouts.js +2 -2
  20. package/dist/commonjs/features/keyboard/constants/keyboardLayouts.js.map +1 -1
  21. package/dist/commonjs/features/keyboard/types/MathKeysGroups/basicOperators.js +2 -19
  22. package/dist/commonjs/features/keyboard/types/MathKeysGroups/basicOperators.js.map +1 -1
  23. package/dist/commonjs/features/keyboard/types/MathKeysGroups/units.js +3 -6
  24. package/dist/commonjs/features/keyboard/types/MathKeysGroups/units.js.map +1 -1
  25. package/dist/commonjs/shared/icons/keyboard/CDotIcon/CDotIcon.js +4 -4
  26. package/dist/commonjs/shared/icons/keyboard/CDotIcon/CDotIcon.js.map +1 -1
  27. package/dist/commonjs/shared/translation/localization/ca.json +1 -2
  28. package/dist/commonjs/shared/translation/localization/de.json +1 -2
  29. package/dist/commonjs/shared/translation/localization/en.json +1 -2
  30. package/dist/commonjs/shared/translation/localization/gb.json +1 -2
  31. package/dist/commonjs/shared/translation/localization/sct.json +1 -2
  32. package/dist/commonjs/shared/translation/localization/sw.json +1 -2
  33. package/dist/module/features/feedback/model/model.js.map +1 -1
  34. package/dist/module/features/feedback/model/sockets.js +5 -8
  35. package/dist/module/features/feedback/model/sockets.js.map +1 -1
  36. package/dist/module/features/keyboard/components/BasicPlusLayout/keyboardGroups.js +4 -4
  37. package/dist/module/features/keyboard/components/BasicPlusLayout/keyboardGroups.js.map +1 -1
  38. package/dist/module/features/keyboard/components/BasicPlusPlusLayout/keyboardGroups.js +4 -4
  39. package/dist/module/features/keyboard/components/BasicPlusPlusLayout/keyboardGroups.js.map +1 -1
  40. package/dist/module/features/keyboard/components/KeysList/KeysList.js.map +1 -1
  41. package/dist/module/features/keyboard/components/UnitsLayout/UnitTabs.js +1 -1
  42. package/dist/module/features/keyboard/components/UnitsLayout/helpers.js +1 -2
  43. package/dist/module/features/keyboard/components/UnitsLayout/helpers.js.map +1 -1
  44. package/dist/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js +6 -27
  45. package/dist/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js.map +1 -1
  46. package/dist/module/features/keyboard/components/UnitsLayout/keyboardGroups.js +1 -9
  47. package/dist/module/features/keyboard/components/UnitsLayout/keyboardGroups.js.map +1 -1
  48. package/dist/module/features/keyboard/components/UnitsLayout/types.js +0 -1
  49. package/dist/module/features/keyboard/components/UnitsLayout/types.js.map +1 -1
  50. package/dist/module/features/keyboard/constants/keyboardGroupsByLocale.js +2 -3
  51. package/dist/module/features/keyboard/constants/keyboardGroupsByLocale.js.map +1 -1
  52. package/dist/module/features/keyboard/constants/keyboardLayouts.js +2 -2
  53. package/dist/module/features/keyboard/constants/keyboardLayouts.js.map +1 -1
  54. package/dist/module/features/keyboard/types/MathKeysGroups/basicOperators.js +2 -19
  55. package/dist/module/features/keyboard/types/MathKeysGroups/basicOperators.js.map +1 -1
  56. package/dist/module/features/keyboard/types/MathKeysGroups/units.js +3 -6
  57. package/dist/module/features/keyboard/types/MathKeysGroups/units.js.map +1 -1
  58. package/dist/module/shared/icons/keyboard/CDotIcon/CDotIcon.js +4 -4
  59. package/dist/module/shared/icons/keyboard/CDotIcon/CDotIcon.js.map +1 -1
  60. package/dist/module/shared/translation/localization/ca.json +1 -2
  61. package/dist/module/shared/translation/localization/de.json +1 -2
  62. package/dist/module/shared/translation/localization/en.json +1 -2
  63. package/dist/module/shared/translation/localization/gb.json +1 -2
  64. package/dist/module/shared/translation/localization/sct.json +1 -2
  65. package/dist/module/shared/translation/localization/sw.json +1 -2
  66. package/dist/typescript/commonjs/features/feedback/model/model.d.ts +1 -4
  67. package/dist/typescript/commonjs/features/feedback/model/model.d.ts.map +1 -1
  68. package/dist/typescript/commonjs/features/feedback/model/sockets.d.ts.map +1 -1
  69. package/dist/typescript/commonjs/features/keyboard/components/BasicPlusLayout/keyboardGroups.d.ts.map +1 -1
  70. package/dist/typescript/commonjs/features/keyboard/components/BasicPlusPlusLayout/keyboardGroups.d.ts.map +1 -1
  71. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/helpers.d.ts +0 -1
  72. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/helpers.d.ts.map +1 -1
  73. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.d.ts +7 -4
  74. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.d.ts.map +1 -1
  75. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/keyboardGroups.d.ts +0 -1
  76. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/keyboardGroups.d.ts.map +1 -1
  77. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/types.d.ts +1 -7
  78. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/types.d.ts.map +1 -1
  79. package/dist/typescript/commonjs/features/keyboard/constants/keyboardGroupsByLocale.d.ts.map +1 -1
  80. package/dist/typescript/commonjs/features/keyboard/types/MathKeysGroups/basicOperators.d.ts +0 -10
  81. package/dist/typescript/commonjs/features/keyboard/types/MathKeysGroups/basicOperators.d.ts.map +1 -1
  82. package/dist/typescript/commonjs/features/keyboard/types/MathKeysGroups/units.d.ts +0 -36
  83. package/dist/typescript/commonjs/features/keyboard/types/MathKeysGroups/units.d.ts.map +1 -1
  84. package/dist/typescript/commonjs/shared/translation/constants.d.ts +0 -6
  85. package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +1 -1
  86. package/dist/typescript/commonjs/shared/translation/model.d.ts +0 -2
  87. package/dist/typescript/commonjs/shared/translation/model.d.ts.map +1 -1
  88. package/dist/typescript/module/features/feedback/model/model.d.ts +1 -4
  89. package/dist/typescript/module/features/feedback/model/model.d.ts.map +1 -1
  90. package/dist/typescript/module/features/feedback/model/sockets.d.ts.map +1 -1
  91. package/dist/typescript/module/features/keyboard/components/BasicPlusLayout/keyboardGroups.d.ts.map +1 -1
  92. package/dist/typescript/module/features/keyboard/components/BasicPlusPlusLayout/keyboardGroups.d.ts.map +1 -1
  93. package/dist/typescript/module/features/keyboard/components/UnitsLayout/helpers.d.ts +0 -1
  94. package/dist/typescript/module/features/keyboard/components/UnitsLayout/helpers.d.ts.map +1 -1
  95. package/dist/typescript/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.d.ts +7 -4
  96. package/dist/typescript/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.d.ts.map +1 -1
  97. package/dist/typescript/module/features/keyboard/components/UnitsLayout/keyboardGroups.d.ts +0 -1
  98. package/dist/typescript/module/features/keyboard/components/UnitsLayout/keyboardGroups.d.ts.map +1 -1
  99. package/dist/typescript/module/features/keyboard/components/UnitsLayout/types.d.ts +1 -7
  100. package/dist/typescript/module/features/keyboard/components/UnitsLayout/types.d.ts.map +1 -1
  101. package/dist/typescript/module/features/keyboard/constants/keyboardGroupsByLocale.d.ts.map +1 -1
  102. package/dist/typescript/module/features/keyboard/types/MathKeysGroups/basicOperators.d.ts +0 -10
  103. package/dist/typescript/module/features/keyboard/types/MathKeysGroups/basicOperators.d.ts.map +1 -1
  104. package/dist/typescript/module/features/keyboard/types/MathKeysGroups/units.d.ts +0 -36
  105. package/dist/typescript/module/features/keyboard/types/MathKeysGroups/units.d.ts.map +1 -1
  106. package/dist/typescript/module/shared/translation/constants.d.ts +0 -6
  107. package/dist/typescript/module/shared/translation/constants.d.ts.map +1 -1
  108. package/dist/typescript/module/shared/translation/model.d.ts +0 -2
  109. package/dist/typescript/module/shared/translation/model.d.ts.map +1 -1
  110. package/package.json +1 -1
  111. package/src/features/feedback/model/model.ts +1 -4
  112. package/src/features/feedback/model/sockets.ts +6 -8
  113. package/src/features/keyboard/components/BasicPlusLayout/keyboardGroups.ts +17 -27
  114. package/src/features/keyboard/components/BasicPlusPlusLayout/keyboardGroups.ts +24 -30
  115. package/src/features/keyboard/components/KeysList/KeysList.tsx +1 -1
  116. package/src/features/keyboard/components/UnitsLayout/UnitTabs.tsx +1 -1
  117. package/src/features/keyboard/components/UnitsLayout/helpers.tsx +0 -3
  118. package/src/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.ts +22 -36
  119. package/src/features/keyboard/components/UnitsLayout/keyboardGroups.ts +0 -11
  120. package/src/features/keyboard/components/UnitsLayout/types.ts +0 -7
  121. package/src/features/keyboard/constants/keyboardGroupsByLocale.ts +0 -2
  122. package/src/features/keyboard/constants/keyboardLayouts.ts +1 -1
  123. package/src/features/keyboard/types/MathKeysGroups/basicOperators.tsx +2 -14
  124. package/src/features/keyboard/types/MathKeysGroups/units.tsx +0 -3
  125. package/src/shared/icons/keyboard/CDotIcon/CDotIcon.tsx +2 -2
  126. package/src/shared/translation/localization/ca.json +1 -2
  127. package/src/shared/translation/localization/de.json +1 -2
  128. package/src/shared/translation/localization/en.json +1 -2
  129. package/src/shared/translation/localization/gb.json +1 -2
  130. package/src/shared/translation/localization/sct.json +1 -2
  131. package/src/shared/translation/localization/sw.json +1 -2
  132. package/.editorconfig +0 -15
  133. package/.eslintignore +0 -2
  134. package/.eslintrc +0 -22
  135. package/.gitattributes +0 -3
  136. package/.github/actions/setup/action.yml +0 -37
  137. package/.github/workflows/ci.yml +0 -73
  138. package/.gitignore +0 -84
  139. package/.idea/.gitignore +0 -8
  140. package/.idea/codeStyles/Project.xml +0 -62
  141. package/.idea/codeStyles/codeStyleConfig.xml +0 -5
  142. package/.idea/copilot.data.migration.agent.xml +0 -6
  143. package/.idea/copilot.data.migration.ask.xml +0 -6
  144. package/.idea/copilot.data.migration.ask2agent.xml +0 -6
  145. package/.idea/copilot.data.migration.edit.xml +0 -6
  146. package/.idea/inspectionProfiles/Project_Default.xml +0 -8
  147. package/.idea/jsLinters/eslint.xml +0 -6
  148. package/.idea/modules.xml +0 -8
  149. package/.idea/prettier.xml +0 -7
  150. package/.idea/shelf/Uncommitted_changes_before_Checkout_at_30_12_2025,_11_06_[Changes]/shelved.patch +0 -18
  151. package/.idea/shelf/Uncommitted_changes_before_Checkout_at_30_12_2025,_11_07_[Changes]/shelved.patch +0 -18
  152. package/.idea/shelf/Uncommitted_changes_before_Checkout_at_30_12_2025__11_06__Changes_.xml +0 -4
  153. package/.idea/shelf/Uncommitted_changes_before_Checkout_at_30_12_2025__11_07__Changes_.xml +0 -4
  154. package/.idea/students-features.iml +0 -12
  155. package/.idea/vcs.xml +0 -6
  156. package/.idea/workspace.xml +0 -643
  157. package/.nvmrc +0 -1
  158. package/.prettierrc +0 -11
  159. package/.release-it.json +0 -17
  160. package/.watchmanconfig +0 -1
  161. package/.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs +0 -541
  162. package/.yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs +0 -28
  163. package/.yarn/releases/yarn-3.6.1.cjs +0 -874
  164. package/babel.config.js +0 -5
  165. package/bob.config.js +0 -25
  166. package/dist/commonjs/shared/icons/TimeIcon.js +0 -37
  167. package/dist/commonjs/shared/icons/TimeIcon.js.map +0 -1
  168. package/dist/commonjs/shared/icons/keyboard/RoundBracketLeftIcon/RoundBracketLeftIcon.js +0 -32
  169. package/dist/commonjs/shared/icons/keyboard/RoundBracketLeftIcon/RoundBracketLeftIcon.js.map +0 -1
  170. package/dist/commonjs/shared/icons/keyboard/RoundBracketRightIcon/RoundBracketRightIcon.js +0 -32
  171. package/dist/commonjs/shared/icons/keyboard/RoundBracketRightIcon/RoundBracketRightIcon.js.map +0 -1
  172. package/dist/module/shared/icons/TimeIcon.js +0 -29
  173. package/dist/module/shared/icons/TimeIcon.js.map +0 -1
  174. package/dist/module/shared/icons/keyboard/RoundBracketLeftIcon/RoundBracketLeftIcon.js +0 -24
  175. package/dist/module/shared/icons/keyboard/RoundBracketLeftIcon/RoundBracketLeftIcon.js.map +0 -1
  176. package/dist/module/shared/icons/keyboard/RoundBracketRightIcon/RoundBracketRightIcon.js +0 -24
  177. package/dist/module/shared/icons/keyboard/RoundBracketRightIcon/RoundBracketRightIcon.js.map +0 -1
  178. package/dist/typescript/commonjs/shared/icons/TimeIcon.d.ts +0 -4
  179. package/dist/typescript/commonjs/shared/icons/TimeIcon.d.ts.map +0 -1
  180. package/dist/typescript/commonjs/shared/icons/keyboard/RoundBracketLeftIcon/RoundBracketLeftIcon.d.ts +0 -4
  181. package/dist/typescript/commonjs/shared/icons/keyboard/RoundBracketLeftIcon/RoundBracketLeftIcon.d.ts.map +0 -1
  182. package/dist/typescript/commonjs/shared/icons/keyboard/RoundBracketRightIcon/RoundBracketRightIcon.d.ts +0 -4
  183. package/dist/typescript/commonjs/shared/icons/keyboard/RoundBracketRightIcon/RoundBracketRightIcon.d.ts.map +0 -1
  184. package/dist/typescript/module/shared/icons/TimeIcon.d.ts +0 -4
  185. package/dist/typescript/module/shared/icons/TimeIcon.d.ts.map +0 -1
  186. package/dist/typescript/module/shared/icons/keyboard/RoundBracketLeftIcon/RoundBracketLeftIcon.d.ts +0 -4
  187. package/dist/typescript/module/shared/icons/keyboard/RoundBracketLeftIcon/RoundBracketLeftIcon.d.ts.map +0 -1
  188. package/dist/typescript/module/shared/icons/keyboard/RoundBracketRightIcon/RoundBracketRightIcon.d.ts +0 -4
  189. package/dist/typescript/module/shared/icons/keyboard/RoundBracketRightIcon/RoundBracketRightIcon.d.ts.map +0 -1
  190. package/example/.expo/README.md +0 -8
  191. package/example/.expo/devices.json +0 -3
  192. package/example/.expo/web/cache/production/images/favicon/favicon-24272cdaeff82cc5facdaccd982a6f05b60c4504704bbf94c19a6388659880bb-contain-transparent/favicon-48.png +0 -0
  193. package/example/app.json +0 -30
  194. package/example/assets/adaptive-icon.png +0 -0
  195. package/example/assets/favicon.png +0 -0
  196. package/example/assets/icon.png +0 -0
  197. package/example/assets/splash-icon.png +0 -0
  198. package/example/babel.config.js +0 -28
  199. package/example/index.js +0 -8
  200. package/example/metro.config.js +0 -18
  201. package/example/package.json +0 -25
  202. package/example/src/App.tsx +0 -8
  203. package/example/tsconfig.json +0 -6
  204. package/example/yarn.lock +0 -6552
  205. package/src/shared/icons/TimeIcon.tsx +0 -23
  206. package/src/shared/icons/keyboard/RoundBracketLeftIcon/RoundBracketLeftIcon.tsx +0 -18
  207. package/src/shared/icons/keyboard/RoundBracketRightIcon/RoundBracketRightIcon.tsx +0 -18
  208. package/tsconfig.build.json +0 -4
  209. package/tsconfig.json +0 -34
  210. package/yarn.lock +0 -8623
@@ -61,7 +61,7 @@ const styles = StyleSheet.create({
61
61
  borderBottomWidth: 1,
62
62
  borderBottomColor: COLORS.NEUTRAL_3,
63
63
  paddingTop: 0,
64
- gap: 12,
64
+ gap: 24,
65
65
  },
66
66
  keyGroupContainer: {
67
67
  gap: 8,
@@ -50,6 +50,3 @@ export const getSelectOptions = ({
50
50
  ]
51
51
  }
52
52
  }
53
-
54
- export const isKeyboardUnitsGroupType = (k: string): k is KeyboardUnitsGroupType =>
55
- (Object.values(KeyboardUnitsGroupType) as string[]).includes(k)
@@ -1,46 +1,32 @@
1
1
  import { useText } from '../../../../../shared/translation'
2
2
  import { useMemo, useState } from 'react'
3
- import { KeyboardUnitsGroupType, UnitTab } from '../types'
4
- import { useWindowDimensions } from 'react-native'
5
- import { IS_MOBILE, TabOptionProps } from '@magmamath/react-native-ui'
6
- import { isKeyboardUnitsGroupType } from '../helpers'
3
+ import { TabOptionProps } from '@magmamath/react-native-ui'
4
+
5
+ import { KeyboardUnitsGroupType } from '../types'
7
6
 
8
7
  export const useUnitTabs = () => {
9
8
  const t = useText()
10
- const { width } = useWindowDimensions()
11
-
12
- const allTabs = useMemo<UnitTab[]>(
9
+ const tabs = useMemo(
13
10
  () => [
14
- { title: t('keyboard.length'), key: KeyboardUnitsGroupType.LENGTH },
15
- { title: t('keyboard.area'), key: KeyboardUnitsGroupType.AREA, minBreakpoint: 1005 },
16
- { title: t('keyboard.volume'), key: KeyboardUnitsGroupType.VOLUME, minBreakpoint: 1060 },
17
- { title: t('keyboard.weight'), key: KeyboardUnitsGroupType.WEIGHT, minBreakpoint: 1060 },
18
- { title: t('keyboard.time'), key: KeyboardUnitsGroupType.TIME, minBreakpoint: 1125 },
11
+ {
12
+ title: t('keyboard.length'),
13
+ key: KeyboardUnitsGroupType.LENGTH,
14
+ },
15
+ {
16
+ title: t('keyboard.area'),
17
+ key: KeyboardUnitsGroupType.AREA,
18
+ },
19
+ {
20
+ title: t('keyboard.volume'),
21
+ key: KeyboardUnitsGroupType.VOLUME,
22
+ },
23
+ {
24
+ title: t('keyboard.weight'),
25
+ key: KeyboardUnitsGroupType.WEIGHT,
26
+ },
19
27
  ],
20
28
  [t],
21
29
  )
22
-
23
- const tabs = useMemo(
24
- () =>
25
- allTabs.filter(
26
- (tab) => IS_MOBILE || tab.minBreakpoint === undefined || width >= tab.minBreakpoint,
27
- ),
28
- [allTabs, width],
29
- )
30
-
31
- const [activeKey, setActiveKey] = useState<KeyboardUnitsGroupType | undefined>(() => tabs[0]?.key)
32
-
33
- const activeTab = useMemo(() => {
34
- return tabs.find((t) => t?.key && t.key === activeKey) ?? tabs[0]
35
- }, [tabs, activeKey])
36
-
37
- return {
38
- tabs,
39
- activeTab,
40
- setActiveTab: (tab: TabOptionProps) => {
41
- if (isKeyboardUnitsGroupType(tab.key)) {
42
- setActiveKey(tab.key)
43
- }
44
- },
45
- }
30
+ const [activeTab, setActiveTab] = useState<TabOptionProps>(tabs[0])
31
+ return { tabs, activeTab, setActiveTab }
46
32
  }
@@ -1,7 +1,6 @@
1
1
  import {
2
2
  MATH_AREA_UNITS,
3
3
  MATH_LENGTH_UNITS,
4
- MATH_TIME_UNITS,
5
4
  MATH_VOLUME_UNITS,
6
5
  MATH_WEIGHT_UNITS,
7
6
  } from '../../types/MathKeysGroups/units'
@@ -11,7 +10,6 @@ import { VolumeIcon } from '../../../../shared/icons/VolumeIcon'
11
10
  import { WeightIcon } from '../../../../shared/icons/WeightIcon'
12
11
  import { KeyboardUnitsGroupType, UnitKeyboardGroups } from './types'
13
12
  import { MathEntryKeyboardGroupId } from '../../types/keyboardGroupIds'
14
- import { TimeIcon } from '../../../../shared/icons/TimeIcon'
15
13
 
16
14
  export const MATH_ENTRY_LENGTH_UNITS_SW_KEYBOARD_GROUPS: UnitKeyboardGroups = {
17
15
  id: MathEntryKeyboardGroupId.LENGTH_UNITS_SW,
@@ -173,11 +171,6 @@ export const MATH_ENTRY_WEIGHT_UNITS_SW_KEYBOARD_GROUPS: UnitKeyboardGroups = {
173
171
  ],
174
172
  }
175
173
 
176
- export const MATH_ENTRY_TIME_UNITS_SW_KEYBOARD_GROUPS: UnitKeyboardGroups = {
177
- id: MathEntryKeyboardGroupId.TIME_SW,
178
- keys: [[MATH_TIME_UNITS.S, MATH_TIME_UNITS.M, MATH_TIME_UNITS.H]],
179
- }
180
-
181
174
  export const MATH_ENTRY_WEIGHT_UNITS_US_KEYBOARD_GROUPS: UnitKeyboardGroups = {
182
175
  id: MathEntryKeyboardGroupId.WEIGHT_UNITS_US,
183
176
  keys: [
@@ -206,8 +199,4 @@ export const UNITS_KEYBOARD_GROUPS = new Map([
206
199
  KeyboardUnitsGroupType.WEIGHT,
207
200
  { keys: MATH_ENTRY_WEIGHT_UNITS_SW_KEYBOARD_GROUPS.keys, icon: WeightIcon },
208
201
  ],
209
- [
210
- KeyboardUnitsGroupType.TIME,
211
- { keys: MATH_ENTRY_TIME_UNITS_SW_KEYBOARD_GROUPS.keys, icon: TimeIcon },
212
- ],
213
202
  ])
@@ -1,5 +1,4 @@
1
1
  import { KeyboardGroup, KeyboardKey } from '@magmamath/students-features'
2
- import { TabOptionProps } from '@magmamath/react-native-ui'
3
2
 
4
3
  export enum SelectedLayout {
5
4
  ALGEBRA = 'algebra',
@@ -11,14 +10,8 @@ export enum KeyboardUnitsGroupType {
11
10
  AREA = 'area',
12
11
  VOLUME = 'volume',
13
12
  WEIGHT = 'weight',
14
- TIME = 'time',
15
13
  }
16
14
 
17
15
  export type UnitKeyboardGroups = {
18
16
  keys: KeyboardKey[][]
19
17
  } & Omit<KeyboardGroup, 'keys'>
20
-
21
- export type UnitTab = Omit<TabOptionProps, 'key'> & {
22
- key: KeyboardUnitsGroupType
23
- minBreakpoint?: number
24
- }
@@ -31,7 +31,6 @@ import {
31
31
  MATH_ENTRY_AREA_UNITS_US_KEYBOARD_GROUPS,
32
32
  MATH_ENTRY_LENGTH_UNITS_SW_KEYBOARD_GROUPS,
33
33
  MATH_ENTRY_LENGTH_UNITS_US_KEYBOARD_GROUPS,
34
- MATH_ENTRY_TIME_UNITS_SW_KEYBOARD_GROUPS,
35
34
  MATH_ENTRY_VOLUME_UNITS_SW_KEYBOARD_GROUPS,
36
35
  MATH_ENTRY_VOLUME_UNITS_UK_KEYBOARD_GROUPS,
37
36
  MATH_ENTRY_VOLUME_UNITS_US_KEYBOARD_GROUPS,
@@ -71,7 +70,6 @@ function createKeyboardUnitsLocale(
71
70
  [KeyboardUnitsGroupType.AREA]: MATH_ENTRY_AREA_UNITS_US_KEYBOARD_GROUPS,
72
71
  [KeyboardUnitsGroupType.VOLUME]: MATH_ENTRY_VOLUME_UNITS_US_KEYBOARD_GROUPS,
73
72
  [KeyboardUnitsGroupType.WEIGHT]: MATH_ENTRY_WEIGHT_UNITS_US_KEYBOARD_GROUPS,
74
- [KeyboardUnitsGroupType.TIME]: MATH_ENTRY_TIME_UNITS_SW_KEYBOARD_GROUPS,
75
73
  }
76
74
  return { ...base, ...overrides }
77
75
  }
@@ -32,7 +32,6 @@ export const KEYBOARD_LAYOUTS = {
32
32
  MyScriptMathCharacterTypes.NUMBERS_AND_MULTIPLICATION,
33
33
  MyScriptMathCharacterTypes.OPERATORS,
34
34
  MyScriptMathCharacterTypes.PERCENT,
35
- MyScriptMathCharacterTypes.NUMBERS_RATIONAL,
36
35
  ],
37
36
  },
38
37
  [KeyboardType.BasicTime]: {
@@ -55,6 +54,7 @@ export const KEYBOARD_LAYOUTS = {
55
54
  characterTypes: [
56
55
  MyScriptMathCharacterTypes.GEOM_ANGLES,
57
56
  MyScriptMathCharacterTypes.GEOM_COORDINATE,
57
+ MyScriptMathCharacterTypes.NUMBERS_RATIONAL,
58
58
  ],
59
59
  },
60
60
  }
@@ -42,8 +42,6 @@ import { EqualsIcon } from '../../../../shared/icons/keyboard/EqualsIcon/EqualsI
42
42
  import { AbsoluteValueIcon } from '../../../../shared/icons/keyboard/AbsoluteValueIcon/AbsoluteValueIcon'
43
43
  import { IntervalIcon } from '../../../../shared/icons/keyboard/IntervalIcon/IntervalIcon'
44
44
  import { createMathKeysGroup } from './helpers'
45
- import { RoundBracketLeftIcon } from '../../../../shared/icons/keyboard/RoundBracketLeftIcon/RoundBracketLeftIcon'
46
- import { RoundBracketRightIcon } from '../../../../shared/icons/keyboard/RoundBracketRightIcon/RoundBracketRightIcon'
47
45
 
48
46
  export const MATH_BASIC_OPERATORS = createMathKeysGroup({
49
47
  ADDITION: {
@@ -121,7 +119,7 @@ export const MATH_BASIC_OPERATORS = createMathKeysGroup({
121
119
  katexValue: ':',
122
120
  },
123
121
  C_DOT: {
124
- icon: <CDotIcon {...DEFAULT_KEY_ICON_PROPS} size={6} />,
122
+ icon: <CDotIcon {...DEFAULT_KEY_ICON_PROPS} />,
125
123
  mathliveValue: '\\cdot',
126
124
  katexValue: '⋅',
127
125
  },
@@ -253,16 +251,6 @@ export const MATH_BASIC_OPERATORS = createMathKeysGroup({
253
251
  mathliveValue: '$\\left(#@\\right)$',
254
252
  katexValue: '( )',
255
253
  },
256
- ROUND_BRACKET_RIGHT: {
257
- icon: <RoundBracketRightIcon {...DEFAULT_KEY_ICON_PROPS} />,
258
- mathliveValue: ')',
259
- katexValue: ')',
260
- },
261
- ROUND_BRACKET_LEFT: {
262
- icon: <RoundBracketLeftIcon {...DEFAULT_KEY_ICON_PROPS} />,
263
- mathliveValue: '(',
264
- katexValue: '(',
265
- },
266
254
  ORDERED_PAIR: {
267
255
  icon: <OrderedPairIcon {...DEFAULT_KEY_ICON_PROPS} size={20} extraColor={COLORS.NEUTRAL_6} />,
268
256
  mathliveValue: '$\\left(\\placeholder{},\\placeholder{}\\right)$',
@@ -275,7 +263,7 @@ export const MATH_BASIC_OPERATORS = createMathKeysGroup({
275
263
  },
276
264
  INTERVAL: {
277
265
  icon: <IntervalIcon {...DEFAULT_KEY_ICON_PROPS} />,
278
- mathliveValue: '$\\left[\\placeholder{},\\placeholder{}\\right]$',
266
+ mathliveValue: '$\\left[, \\right]$',
279
267
  katexValue: '[ , ]',
280
268
  },
281
269
  })
@@ -427,19 +427,16 @@ export const MATH_TIME_UNITS = createMathKeysGroup({
427
427
  label: 's',
428
428
  mathliveValue: '\\mathrm{s}',
429
429
  katexValue: 's',
430
- style: STYLE_PRESETS.LARGE,
431
430
  },
432
431
  M: {
433
432
  label: 'min',
434
433
  mathliveValue: '$\\mathrm{min}',
435
434
  katexValue: 'min',
436
- style: STYLE_PRESETS.LARGE,
437
435
  },
438
436
  H: {
439
437
  label: 'h',
440
438
  mathliveValue: '\\mathrm{h}',
441
439
  katexValue: 'h',
442
- style: STYLE_PRESETS.LARGE,
443
440
  },
444
441
  DAY: {
445
442
  label: 'day',
@@ -4,8 +4,8 @@ import Svg, { Circle } from 'react-native-svg'
4
4
 
5
5
  export const CDotIcon = ({ size = 20, color }: IconProps) => {
6
6
  return (
7
- <Svg width={size} height={size} viewBox="0 0 6 6" fill="none">
8
- <Circle cx="3.00001" cy="3.00001" r="3.00001" fill={color} />
7
+ <Svg width={size} height={size} viewBox="0 0 16 16" fill="none">
8
+ <Circle cx="8.00001" cy="8.00001" r="2.00001" fill={color} />
9
9
  </Svg>
10
10
  )
11
11
  }
@@ -37,7 +37,6 @@
37
37
  "length": "Length",
38
38
  "area": "Area",
39
39
  "volume": "Volume",
40
- "weight": "Weight",
41
- "time": "Time"
40
+ "weight": "Weight"
42
41
  }
43
42
  }
@@ -37,7 +37,6 @@
37
37
  "length": "Länge",
38
38
  "area": "Fläche",
39
39
  "volume": "Volumen",
40
- "weight": "Gewicht",
41
- "time": "Zeit"
40
+ "weight": "Gewicht"
42
41
  }
43
42
  }
@@ -37,7 +37,6 @@
37
37
  "length": "Length",
38
38
  "area": "Area",
39
39
  "volume": "Volume",
40
- "weight": "Weight",
41
- "time": "Time"
40
+ "weight": "Weight"
42
41
  }
43
42
  }
@@ -37,7 +37,6 @@
37
37
  "length": "Length",
38
38
  "area": "Area",
39
39
  "volume": "Volume",
40
- "weight": "Weight",
41
- "time": "Time"
40
+ "weight": "Weight"
42
41
  }
43
42
  }
@@ -37,7 +37,6 @@
37
37
  "length": "Length",
38
38
  "area": "Area",
39
39
  "volume": "Volume",
40
- "weight": "Weight",
41
- "time": "Time"
40
+ "weight": "Weight"
42
41
  }
43
42
  }
@@ -37,7 +37,6 @@
37
37
  "length": "Längd",
38
38
  "area": "Area",
39
39
  "volume": "Volym",
40
- "weight": "Vikt",
41
- "time": "Tid"
40
+ "weight": "Vikt"
42
41
  }
43
42
  }
package/.editorconfig DELETED
@@ -1,15 +0,0 @@
1
- # EditorConfig helps developers define and maintain consistent
2
- # coding styles between different editors and IDEs
3
- # editorconfig.org
4
-
5
- root = true
6
-
7
- [*]
8
-
9
- indent_style = space
10
- indent_size = 2
11
-
12
- end_of_line = lf
13
- charset = utf-8
14
- trim_trailing_whitespace = true
15
- insert_final_newline = true
package/.eslintignore DELETED
@@ -1,2 +0,0 @@
1
- node_modules/
2
- ./lib/
package/.eslintrc DELETED
@@ -1,22 +0,0 @@
1
- {
2
- "env": {
3
- "browser": true,
4
- "es2020": true
5
- },
6
- "extends": [
7
- "eslint:recommended",
8
- "plugin:@typescript-eslint/recommended",
9
- "plugin:react-hooks/recommended",
10
- "plugin:storybook/recommended",
11
- "prettier"
12
- ],
13
- "parser": "@typescript-eslint/parser",
14
- "parserOptions": {
15
- "ecmaVersion": "latest",
16
- "sourceType": "module"
17
- },
18
- "plugins": ["react-refresh"],
19
- "rules": {
20
- "react-refresh/only-export-components": "warn"
21
- }
22
- }
package/.gitattributes DELETED
@@ -1,3 +0,0 @@
1
- *.pbxproj -text
2
- # specific for windows script files
3
- *.bat text eol=crlf
@@ -1,37 +0,0 @@
1
- name: Setup
2
- description: Setup Node.js and install dependencies
3
-
4
- inputs:
5
- npmrc-auth-token:
6
- required: true
7
-
8
- runs:
9
- using: composite
10
- steps:
11
- - name: Setup Node.js
12
- uses: actions/setup-node@v3
13
- with:
14
- node-version-file: .nvmrc
15
-
16
- - name: Create .npmrc
17
- shell: bash
18
- run: |
19
- echo "registry=https://registry.npmjs.org" > .npmrc
20
- echo "//registry.npmjs.org/:_authToken=${{ inputs.npmrc-auth-token }}" >> .npmrc
21
-
22
- - name: Cache dependencies
23
- id: yarn-cache
24
- uses: actions/cache@v3
25
- with:
26
- path: |
27
- **/node_modules
28
- .yarn/install-state.gz
29
- key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}-${{ hashFiles('**/package.json', '!node_modules/**') }}
30
- restore-keys: |
31
- ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
32
- ${{ runner.os }}-yarn-
33
-
34
- - name: Install dependencies
35
- if: steps.yarn-cache.outputs.cache-hit != 'true'
36
- run: yarn install --immutable
37
- shell: bash
@@ -1,73 +0,0 @@
1
- name: CI
2
-
3
- on:
4
- push:
5
- branches:
6
- - main
7
- pull_request:
8
- branches:
9
- - main
10
- merge_group:
11
- types:
12
- - checks_requested
13
-
14
- jobs:
15
- lint:
16
- runs-on: ubuntu-latest
17
- steps:
18
- - name: Checkout
19
- uses: actions/checkout@v3
20
-
21
- - name: Setup
22
- uses: ./.github/actions/setup
23
- with:
24
- npmrc-auth-token: ${{ secrets.MAGMA_NPMRC_TOKEN }}
25
-
26
- - name: Lint files
27
- run: yarn lint
28
-
29
- - name: Typecheck files
30
- run: yarn typecheck
31
-
32
- test:
33
- runs-on: ubuntu-latest
34
- steps:
35
- - name: Checkout
36
- uses: actions/checkout@v3
37
-
38
- - name: Setup
39
- uses: ./.github/actions/setup
40
- with:
41
- npmrc-auth-token: ${{ secrets.MAGMA_NPMRC_TOKEN }}
42
-
43
- - name: Run unit tests
44
- run: yarn test --maxWorkers=2 --coverage
45
-
46
- build-library:
47
- runs-on: ubuntu-latest
48
- steps:
49
- - name: Checkout
50
- uses: actions/checkout@v3
51
-
52
- - name: Setup
53
- uses: ./.github/actions/setup
54
- with:
55
- npmrc-auth-token: ${{ secrets.MAGMA_NPMRC_TOKEN }}
56
-
57
- - name: Build package
58
- run: yarn prepare
59
-
60
- build-web:
61
- runs-on: ubuntu-latest
62
- steps:
63
- - name: Checkout
64
- uses: actions/checkout@v3
65
-
66
- - name: Setup
67
- uses: ./.github/actions/setup
68
- with:
69
- npmrc-auth-token: ${{ secrets.MAGMA_NPMRC_TOKEN }}
70
-
71
- - name: Build example for Web
72
- run: |
73
- yarn example expo export --platform web
package/.gitignore DELETED
@@ -1,84 +0,0 @@
1
- # OSX
2
- #
3
- .DS_Store
4
-
5
- # XDE
6
- .expo/
7
-
8
- # VSCode
9
- .vscode/
10
- jsconfig.json
11
-
12
- # Xcode
13
- #
14
- build/
15
- *.pbxuser
16
- !default.pbxuser
17
- *.mode1v3
18
- !default.mode1v3
19
- *.mode2v3
20
- !default.mode2v3
21
- *.perspectivev3
22
- !default.perspectivev3
23
- xcuserdata
24
- *.xccheckout
25
- *.moved-aside
26
- DerivedData
27
- *.hmap
28
- *.ipa
29
- *.xcuserstate
30
- project.xcworkspace
31
-
32
- # Android/IJ
33
- #
34
- .classpath
35
- .cxx
36
- .gradle
37
- .idea
38
- .project
39
- .settings
40
- local.properties
41
- android.iml
42
-
43
- # Cocoapods
44
- #
45
- example/ios/Pods
46
-
47
- # Ruby
48
- example/vendor/
49
-
50
- # node.js
51
- #
52
- node_modules/
53
- npm-debug.log
54
- yarn-debug.log
55
- yarn-error.log
56
-
57
- # BUCK
58
- buck-out/
59
- \.buckd/
60
- android/app/libs
61
- android/keystores/debug.keystore
62
-
63
- # Yarn
64
- .yarn/*
65
- !.yarn/patches
66
- !.yarn/plugins
67
- !.yarn/releases
68
- !.yarn/sdks
69
- !.yarn/versions
70
-
71
- # Expo
72
- .expo/
73
-
74
- # Turborepo
75
- .turbo/
76
-
77
- # generated by bob
78
- dist/
79
- !src/lib/
80
-
81
- # React Native Codegen
82
- ios/generated
83
- android/generated
84
- .npmrc
package/.idea/.gitignore DELETED
@@ -1,8 +0,0 @@
1
- # Default ignored files
2
- /shelf/
3
- /workspace.xml
4
- # Editor-based HTTP Client requests
5
- /httpRequests/
6
- # Datasource local storage ignored files
7
- /dataSources/
8
- /dataSources.local.xml
@@ -1,62 +0,0 @@
1
- <component name="ProjectCodeStyleConfiguration">
2
- <code_scheme name="Project" version="173">
3
- <option name="LINE_SEPARATOR" value="&#10;" />
4
- <HTMLCodeStyleSettings>
5
- <option name="HTML_SPACE_INSIDE_EMPTY_TAG" value="true" />
6
- </HTMLCodeStyleSettings>
7
- <JSCodeStyleSettings version="0">
8
- <option name="USE_SEMICOLON_AFTER_STATEMENT" value="false" />
9
- <option name="FORCE_SEMICOLON_STYLE" value="true" />
10
- <option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
11
- <option name="USE_DOUBLE_QUOTES" value="false" />
12
- <option name="FORCE_QUOTE_STYlE" value="true" />
13
- <option name="ENFORCE_TRAILING_COMMA" value="WhenMultiline" />
14
- <option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
15
- <option name="SPACES_WITHIN_IMPORTS" value="true" />
16
- </JSCodeStyleSettings>
17
- <TypeScriptCodeStyleSettings version="0">
18
- <option name="USE_SEMICOLON_AFTER_STATEMENT" value="false" />
19
- <option name="FORCE_SEMICOLON_STYLE" value="true" />
20
- <option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
21
- <option name="USE_DOUBLE_QUOTES" value="false" />
22
- <option name="FORCE_QUOTE_STYlE" value="true" />
23
- <option name="ENFORCE_TRAILING_COMMA" value="WhenMultiline" />
24
- <option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
25
- <option name="SPACES_WITHIN_IMPORTS" value="true" />
26
- </TypeScriptCodeStyleSettings>
27
- <VueCodeStyleSettings>
28
- <option name="INTERPOLATION_NEW_LINE_AFTER_START_DELIMITER" value="false" />
29
- <option name="INTERPOLATION_NEW_LINE_BEFORE_END_DELIMITER" value="false" />
30
- </VueCodeStyleSettings>
31
- <codeStyleSettings language="HTML">
32
- <option name="SOFT_MARGINS" value="100" />
33
- <indentOptions>
34
- <option name="INDENT_SIZE" value="2" />
35
- <option name="CONTINUATION_INDENT_SIZE" value="2" />
36
- <option name="TAB_SIZE" value="2" />
37
- </indentOptions>
38
- </codeStyleSettings>
39
- <codeStyleSettings language="JavaScript">
40
- <option name="SOFT_MARGINS" value="100" />
41
- <indentOptions>
42
- <option name="INDENT_SIZE" value="2" />
43
- <option name="CONTINUATION_INDENT_SIZE" value="2" />
44
- <option name="TAB_SIZE" value="2" />
45
- </indentOptions>
46
- </codeStyleSettings>
47
- <codeStyleSettings language="TypeScript">
48
- <option name="SOFT_MARGINS" value="100" />
49
- <indentOptions>
50
- <option name="INDENT_SIZE" value="2" />
51
- <option name="CONTINUATION_INDENT_SIZE" value="2" />
52
- <option name="TAB_SIZE" value="2" />
53
- </indentOptions>
54
- </codeStyleSettings>
55
- <codeStyleSettings language="Vue">
56
- <option name="SOFT_MARGINS" value="100" />
57
- <indentOptions>
58
- <option name="CONTINUATION_INDENT_SIZE" value="2" />
59
- </indentOptions>
60
- </codeStyleSettings>
61
- </code_scheme>
62
- </component>
@@ -1,5 +0,0 @@
1
- <component name="ProjectCodeStyleConfiguration">
2
- <state>
3
- <option name="USE_PER_PROJECT_SETTINGS" value="true" />
4
- </state>
5
- </component>
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="AgentMigrationStateService">
4
- <option name="migrationStatus" value="COMPLETED" />
5
- </component>
6
- </project>
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="AskMigrationStateService">
4
- <option name="migrationStatus" value="COMPLETED" />
5
- </component>
6
- </project>
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="Ask2AgentMigrationStateService">
4
- <option name="migrationStatus" value="COMPLETED" />
5
- </component>
6
- </project>
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="EditMigrationStateService">
4
- <option name="migrationStatus" value="COMPLETED" />
5
- </component>
6
- </project>