@magmamath/students-features 1.3.3-rc.3 → 1.3.3

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 (532) hide show
  1. package/.claude/settings.local.json +25 -0
  2. package/.editorconfig +15 -0
  3. package/.eslintignore +2 -0
  4. package/.eslintrc +22 -0
  5. package/.gitattributes +3 -0
  6. package/.github/actions/setup/action.yml +37 -0
  7. package/.github/workflows/ci.yml +73 -0
  8. package/.gitignore +84 -0
  9. package/.idea/.gitignore +8 -0
  10. package/.idea/codeStyles/Project.xml +62 -0
  11. package/.idea/codeStyles/codeStyleConfig.xml +5 -0
  12. package/.idea/copilot.data.migration.agent.xml +6 -0
  13. package/.idea/copilot.data.migration.ask.xml +6 -0
  14. package/.idea/copilot.data.migration.ask2agent.xml +6 -0
  15. package/.idea/copilot.data.migration.edit.xml +6 -0
  16. package/.idea/inspectionProfiles/Project_Default.xml +8 -0
  17. package/.idea/jsLinters/eslint.xml +6 -0
  18. package/.idea/modules.xml +8 -0
  19. package/.idea/prettier.xml +7 -0
  20. package/.idea/students-features.iml +12 -0
  21. package/.idea/vcs.xml +6 -0
  22. package/.idea/workspace.xml +667 -0
  23. package/.nvmrc +1 -0
  24. package/.prettierrc +11 -0
  25. package/.release-it.json +17 -0
  26. package/.watchmanconfig +1 -0
  27. package/.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs +541 -0
  28. package/.yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs +28 -0
  29. package/.yarn/releases/yarn-3.6.1.cjs +874 -0
  30. package/babel.config.js +5 -0
  31. package/bob.config.js +25 -0
  32. package/dist/commonjs/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.js +2 -2
  33. package/dist/commonjs/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.js.map +1 -1
  34. package/dist/commonjs/features/chatbot/errorSpotting/ErrorSpottingButton.js +2 -2
  35. package/dist/commonjs/features/chatbot/errorSpotting/ErrorSpottingButton.js.map +1 -1
  36. package/dist/commonjs/features/chatbot/helpers.js +8 -4
  37. package/dist/commonjs/features/chatbot/helpers.js.map +1 -1
  38. package/dist/commonjs/features/chatbot/index.js.map +1 -1
  39. package/dist/commonjs/features/chatbot/model/ChatBotModel.js +7 -6
  40. package/dist/commonjs/features/chatbot/model/ChatBotModel.js.map +1 -1
  41. package/dist/commonjs/features/chatbot/model/ChatBoxTextManager.js +4 -3
  42. package/dist/commonjs/features/chatbot/model/ChatBoxTextManager.js.map +1 -1
  43. package/dist/commonjs/features/chatbot/model/DefaultMessageCreator.js +2 -4
  44. package/dist/commonjs/features/chatbot/model/DefaultMessageCreator.js.map +1 -1
  45. package/dist/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.js +4 -3
  46. package/dist/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.js.map +1 -1
  47. package/dist/commonjs/features/exampleSolution/model/ExampleSolutionApi.js +8 -4
  48. package/dist/commonjs/features/exampleSolution/model/ExampleSolutionApi.js.map +1 -1
  49. package/dist/commonjs/features/feedback/components/EmptyComment.js +2 -2
  50. package/dist/commonjs/features/feedback/components/EmptyComment.js.map +1 -1
  51. package/dist/commonjs/features/feedback/model/comments.js +2 -2
  52. package/dist/commonjs/features/feedback/model/comments.js.map +1 -1
  53. package/dist/commonjs/features/gifCelebrations/components/Gif.js +2 -2
  54. package/dist/commonjs/features/gifCelebrations/components/Gif.js.map +1 -1
  55. package/dist/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.js +20 -72
  56. package/dist/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.js.map +1 -1
  57. package/dist/commonjs/features/keyboard/components/GeometryLayout/GeometryLayout.js +33 -0
  58. package/dist/commonjs/features/keyboard/components/GeometryLayout/GeometryLayout.js.map +1 -0
  59. package/dist/commonjs/features/keyboard/components/Numpad/Numpad.js +2 -2
  60. package/dist/commonjs/features/keyboard/components/Numpad/Numpad.js.map +1 -1
  61. package/dist/commonjs/features/keyboard/components/SwitchableLayout/SwitchableLayout.js +94 -0
  62. package/dist/commonjs/features/keyboard/components/SwitchableLayout/SwitchableLayout.js.map +1 -0
  63. package/dist/commonjs/features/keyboard/components/SwitchableLayout/helpers.js +25 -0
  64. package/dist/commonjs/features/keyboard/components/SwitchableLayout/helpers.js.map +1 -0
  65. package/dist/commonjs/features/keyboard/components/{AlgebraLayout → SwitchableLayout}/types.js +1 -1
  66. package/dist/commonjs/features/keyboard/components/SwitchableLayout/types.js.map +1 -0
  67. package/dist/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js +2 -2
  68. package/dist/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js.map +1 -1
  69. package/dist/commonjs/features/keyboard/constants/groups/geometry.constants.js +11 -0
  70. package/dist/commonjs/features/keyboard/constants/groups/geometry.constants.js.map +1 -0
  71. package/dist/commonjs/features/keyboard/constants/groups/index.js +11 -0
  72. package/dist/commonjs/features/keyboard/constants/groups/index.js.map +1 -1
  73. package/dist/commonjs/features/keyboard/constants/keyboard.constants.js +6 -1
  74. package/dist/commonjs/features/keyboard/constants/keyboard.constants.js.map +1 -1
  75. package/dist/commonjs/features/keyboard/constants/keyboard.helpers.js +2 -0
  76. package/dist/commonjs/features/keyboard/constants/keyboard.helpers.js.map +1 -1
  77. package/dist/commonjs/features/keyboard/constants/keyboardLayouts.js +18 -8
  78. package/dist/commonjs/features/keyboard/constants/keyboardLayouts.js.map +1 -1
  79. package/dist/commonjs/features/keyboard/constants/keys/geometry.constants.js +86 -1
  80. package/dist/commonjs/features/keyboard/constants/keys/geometry.constants.js.map +1 -1
  81. package/dist/commonjs/features/keyboard/constants/keys/text.constants.js +9 -9
  82. package/dist/commonjs/features/keyboard/constants/keys/units.constants.js +2 -1
  83. package/dist/commonjs/features/keyboard/constants/keys/units.constants.js.map +1 -1
  84. package/dist/commonjs/features/keyboard/types/types.js +1 -0
  85. package/dist/commonjs/features/keyboard/types/types.js.map +1 -1
  86. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdown.js +2 -2
  87. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdown.js.map +1 -1
  88. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js +2 -2
  89. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js.map +1 -1
  90. package/dist/commonjs/features/voice/recording/components/VoiceRecordButton.js +2 -2
  91. package/dist/commonjs/features/voice/recording/components/VoiceRecordButton.js.map +1 -1
  92. package/dist/commonjs/features/voice/recording/modal/ModalFooterButtons.js +2 -2
  93. package/dist/commonjs/features/voice/recording/modal/ModalFooterButtons.js.map +1 -1
  94. package/dist/commonjs/features/voice/recording/modal/VoiceRecordDeleteModal.js +2 -2
  95. package/dist/commonjs/features/voice/recording/modal/VoiceRecordDeleteModal.js.map +1 -1
  96. package/dist/commonjs/features/voice/recording/modal/VoiceRecordUndoModal.js +2 -2
  97. package/dist/commonjs/features/voice/recording/modal/VoiceRecordUndoModal.js.map +1 -1
  98. package/dist/commonjs/features/voice/recording/model/VoiceRecord.model.js +7 -7
  99. package/dist/commonjs/features/voice/recording/model/VoiceRecord.model.js.map +1 -1
  100. package/dist/commonjs/index.js +38 -23
  101. package/dist/commonjs/index.js.map +1 -1
  102. package/dist/commonjs/lib/helpers/helpers.js +12 -12
  103. package/dist/commonjs/lib/helpers/helpers.js.map +1 -1
  104. package/dist/commonjs/lib/types/keys.js +2 -0
  105. package/dist/commonjs/lib/types/keys.js.map +1 -0
  106. package/dist/commonjs/shared/icons/GeometryIcon.js +32 -0
  107. package/dist/commonjs/shared/icons/GeometryIcon.js.map +1 -0
  108. package/dist/commonjs/shared/icons/keyboard/AngleIcon.js +4 -3
  109. package/dist/commonjs/shared/icons/keyboard/AngleIcon.js.map +1 -1
  110. package/dist/commonjs/shared/icons/keyboard/BidirectionalSegmentIcon.js +12 -8
  111. package/dist/commonjs/shared/icons/keyboard/BidirectionalSegmentIcon.js.map +1 -1
  112. package/dist/commonjs/shared/icons/keyboard/ImpliesIcon.js +30 -0
  113. package/dist/commonjs/shared/icons/keyboard/ImpliesIcon.js.map +1 -0
  114. package/dist/commonjs/shared/icons/keyboard/LetterAIcon.js +29 -0
  115. package/dist/commonjs/shared/icons/keyboard/LetterAIcon.js.map +1 -0
  116. package/dist/commonjs/shared/icons/keyboard/LetterBIcon.js +29 -0
  117. package/dist/commonjs/shared/icons/keyboard/LetterBIcon.js.map +1 -0
  118. package/dist/commonjs/shared/icons/keyboard/LetterCIcon.js +29 -0
  119. package/dist/commonjs/shared/icons/keyboard/LetterCIcon.js.map +1 -0
  120. package/dist/commonjs/shared/icons/keyboard/LineSegmentIcon.js +11 -6
  121. package/dist/commonjs/shared/icons/keyboard/LineSegmentIcon.js.map +1 -1
  122. package/dist/commonjs/shared/icons/keyboard/RightDirectedSegmentIcon.js +12 -8
  123. package/dist/commonjs/shared/icons/keyboard/RightDirectedSegmentIcon.js.map +1 -1
  124. package/dist/commonjs/shared/icons/keyboard/ThereforeIcon.js +42 -0
  125. package/dist/commonjs/shared/icons/keyboard/ThereforeIcon.js.map +1 -0
  126. package/dist/commonjs/shared/icons/keyboard/TriangleIcon.js +32 -0
  127. package/dist/commonjs/shared/icons/keyboard/TriangleIcon.js.map +1 -0
  128. package/dist/commonjs/shared/translation/constants.js +23 -0
  129. package/dist/commonjs/shared/translation/constants.js.map +1 -0
  130. package/dist/commonjs/shared/translation/helpers.js +47 -0
  131. package/dist/commonjs/shared/translation/helpers.js.map +1 -0
  132. package/dist/commonjs/shared/translation/hooks.js +25 -0
  133. package/dist/commonjs/shared/translation/hooks.js.map +1 -0
  134. package/dist/commonjs/shared/translation/index.js +45 -0
  135. package/dist/commonjs/shared/translation/index.js.map +1 -0
  136. package/dist/commonjs/shared/translation/localization/ca.json +61 -0
  137. package/dist/commonjs/shared/translation/localization/de.json +61 -0
  138. package/dist/commonjs/shared/translation/localization/en.json +61 -0
  139. package/dist/commonjs/shared/translation/localization/gb.json +61 -0
  140. package/dist/commonjs/shared/translation/localization/sct.json +61 -0
  141. package/dist/commonjs/shared/translation/localization/sw.json +61 -0
  142. package/dist/commonjs/shared/translation/model.js +15 -0
  143. package/dist/commonjs/shared/translation/model.js.map +1 -0
  144. package/dist/commonjs/shared/translation/types.js +6 -0
  145. package/dist/commonjs/shared/translation/types.js.map +1 -0
  146. package/dist/commonjs/shared/translation/validation.types.js +6 -0
  147. package/dist/commonjs/shared/translation/validation.types.js.map +1 -0
  148. package/dist/module/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.js +1 -1
  149. package/dist/module/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.js.map +1 -1
  150. package/dist/module/features/chatbot/errorSpotting/ErrorSpottingButton.js +1 -1
  151. package/dist/module/features/chatbot/errorSpotting/ErrorSpottingButton.js.map +1 -1
  152. package/dist/module/features/chatbot/helpers.js +6 -2
  153. package/dist/module/features/chatbot/helpers.js.map +1 -1
  154. package/dist/module/features/chatbot/index.js.map +1 -1
  155. package/dist/module/features/chatbot/model/ChatBotModel.js +7 -6
  156. package/dist/module/features/chatbot/model/ChatBotModel.js.map +1 -1
  157. package/dist/module/features/chatbot/model/ChatBoxTextManager.js +3 -2
  158. package/dist/module/features/chatbot/model/ChatBoxTextManager.js.map +1 -1
  159. package/dist/module/features/chatbot/model/DefaultMessageCreator.js +2 -3
  160. package/dist/module/features/chatbot/model/DefaultMessageCreator.js.map +1 -1
  161. package/dist/module/features/exampleSolution/components/ExampleSolutionModalContent.js +4 -3
  162. package/dist/module/features/exampleSolution/components/ExampleSolutionModalContent.js.map +1 -1
  163. package/dist/module/features/exampleSolution/model/ExampleSolutionApi.js +9 -5
  164. package/dist/module/features/exampleSolution/model/ExampleSolutionApi.js.map +1 -1
  165. package/dist/module/features/feedback/components/EmptyComment.js +1 -1
  166. package/dist/module/features/feedback/components/EmptyComment.js.map +1 -1
  167. package/dist/module/features/feedback/model/comments.js +1 -1
  168. package/dist/module/features/feedback/model/comments.js.map +1 -1
  169. package/dist/module/features/gifCelebrations/components/Gif.js +1 -1
  170. package/dist/module/features/gifCelebrations/components/Gif.js.map +1 -1
  171. package/dist/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.js +21 -72
  172. package/dist/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.js.map +1 -1
  173. package/dist/module/features/keyboard/components/GeometryLayout/GeometryLayout.js +27 -0
  174. package/dist/module/features/keyboard/components/GeometryLayout/GeometryLayout.js.map +1 -0
  175. package/dist/module/features/keyboard/components/Numpad/Numpad.js +1 -1
  176. package/dist/module/features/keyboard/components/Numpad/Numpad.js.map +1 -1
  177. package/dist/module/features/keyboard/components/SwitchableLayout/SwitchableLayout.js +87 -0
  178. package/dist/module/features/keyboard/components/SwitchableLayout/SwitchableLayout.js.map +1 -0
  179. package/dist/module/features/keyboard/components/SwitchableLayout/helpers.js +21 -0
  180. package/dist/module/features/keyboard/components/SwitchableLayout/helpers.js.map +1 -0
  181. package/dist/module/features/keyboard/components/{AlgebraLayout → SwitchableLayout}/types.js +1 -1
  182. package/dist/module/features/keyboard/components/SwitchableLayout/types.js.map +1 -0
  183. package/dist/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js +1 -1
  184. package/dist/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js.map +1 -1
  185. package/dist/module/features/keyboard/constants/groups/geometry.constants.js +7 -0
  186. package/dist/module/features/keyboard/constants/groups/geometry.constants.js.map +1 -0
  187. package/dist/module/features/keyboard/constants/groups/index.js +1 -0
  188. package/dist/module/features/keyboard/constants/groups/index.js.map +1 -1
  189. package/dist/module/features/keyboard/constants/keyboard.constants.js +5 -0
  190. package/dist/module/features/keyboard/constants/keyboard.constants.js.map +1 -1
  191. package/dist/module/features/keyboard/constants/keyboard.helpers.js +3 -1
  192. package/dist/module/features/keyboard/constants/keyboard.helpers.js.map +1 -1
  193. package/dist/module/features/keyboard/constants/keyboardLayouts.js +19 -9
  194. package/dist/module/features/keyboard/constants/keyboardLayouts.js.map +1 -1
  195. package/dist/module/features/keyboard/constants/keys/geometry.constants.js +86 -1
  196. package/dist/module/features/keyboard/constants/keys/geometry.constants.js.map +1 -1
  197. package/dist/module/features/keyboard/constants/keys/text.constants.js +9 -9
  198. package/dist/module/features/keyboard/constants/keys/units.constants.js +2 -1
  199. package/dist/module/features/keyboard/constants/keys/units.constants.js.map +1 -1
  200. package/dist/module/features/keyboard/types/types.js +1 -0
  201. package/dist/module/features/keyboard/types/types.js.map +1 -1
  202. package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdown.js +1 -1
  203. package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdown.js.map +1 -1
  204. package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js +1 -1
  205. package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js.map +1 -1
  206. package/dist/module/features/voice/recording/components/VoiceRecordButton.js +1 -1
  207. package/dist/module/features/voice/recording/components/VoiceRecordButton.js.map +1 -1
  208. package/dist/module/features/voice/recording/modal/ModalFooterButtons.js +1 -1
  209. package/dist/module/features/voice/recording/modal/ModalFooterButtons.js.map +1 -1
  210. package/dist/module/features/voice/recording/modal/VoiceRecordDeleteModal.js +1 -1
  211. package/dist/module/features/voice/recording/modal/VoiceRecordDeleteModal.js.map +1 -1
  212. package/dist/module/features/voice/recording/modal/VoiceRecordUndoModal.js +1 -1
  213. package/dist/module/features/voice/recording/modal/VoiceRecordUndoModal.js.map +1 -1
  214. package/dist/module/features/voice/recording/model/VoiceRecord.model.js +1 -1
  215. package/dist/module/features/voice/recording/model/VoiceRecord.model.js.map +1 -1
  216. package/dist/module/index.js +1 -0
  217. package/dist/module/index.js.map +1 -1
  218. package/dist/module/lib/helpers/helpers.js +1 -1
  219. package/dist/module/lib/helpers/helpers.js.map +1 -1
  220. package/dist/module/lib/types/keys.js +2 -0
  221. package/dist/module/lib/types/keys.js.map +1 -0
  222. package/dist/module/shared/icons/GeometryIcon.js +24 -0
  223. package/dist/module/shared/icons/GeometryIcon.js.map +1 -0
  224. package/dist/module/shared/icons/keyboard/AngleIcon.js +4 -3
  225. package/dist/module/shared/icons/keyboard/AngleIcon.js.map +1 -1
  226. package/dist/module/shared/icons/keyboard/BidirectionalSegmentIcon.js +13 -9
  227. package/dist/module/shared/icons/keyboard/BidirectionalSegmentIcon.js.map +1 -1
  228. package/dist/module/shared/icons/keyboard/ImpliesIcon.js +22 -0
  229. package/dist/module/shared/icons/keyboard/ImpliesIcon.js.map +1 -0
  230. package/dist/module/shared/icons/keyboard/LetterAIcon.js +21 -0
  231. package/dist/module/shared/icons/keyboard/LetterAIcon.js.map +1 -0
  232. package/dist/module/shared/icons/keyboard/LetterBIcon.js +21 -0
  233. package/dist/module/shared/icons/keyboard/LetterBIcon.js.map +1 -0
  234. package/dist/module/shared/icons/keyboard/LetterCIcon.js +21 -0
  235. package/dist/module/shared/icons/keyboard/LetterCIcon.js.map +1 -0
  236. package/dist/module/shared/icons/keyboard/LineSegmentIcon.js +12 -7
  237. package/dist/module/shared/icons/keyboard/LineSegmentIcon.js.map +1 -1
  238. package/dist/module/shared/icons/keyboard/RightDirectedSegmentIcon.js +13 -9
  239. package/dist/module/shared/icons/keyboard/RightDirectedSegmentIcon.js.map +1 -1
  240. package/dist/module/shared/icons/keyboard/ThereforeIcon.js +34 -0
  241. package/dist/module/shared/icons/keyboard/ThereforeIcon.js.map +1 -0
  242. package/dist/module/shared/icons/keyboard/TriangleIcon.js +24 -0
  243. package/dist/module/shared/icons/keyboard/TriangleIcon.js.map +1 -0
  244. package/dist/module/shared/translation/constants.js +18 -0
  245. package/dist/module/shared/translation/constants.js.map +1 -0
  246. package/dist/module/shared/translation/helpers.js +38 -0
  247. package/dist/module/shared/translation/helpers.js.map +1 -0
  248. package/dist/module/shared/translation/hooks.js +19 -0
  249. package/dist/module/shared/translation/hooks.js.map +1 -0
  250. package/dist/module/shared/translation/index.js +6 -0
  251. package/dist/module/shared/translation/index.js.map +1 -0
  252. package/dist/module/shared/translation/localization/ca.json +61 -0
  253. package/dist/module/shared/translation/localization/de.json +61 -0
  254. package/dist/module/shared/translation/localization/en.json +61 -0
  255. package/dist/module/shared/translation/localization/gb.json +61 -0
  256. package/dist/module/shared/translation/localization/sct.json +61 -0
  257. package/dist/module/shared/translation/localization/sw.json +61 -0
  258. package/dist/module/shared/translation/model.js +11 -0
  259. package/dist/module/shared/translation/model.js.map +1 -0
  260. package/dist/module/shared/translation/types.js +4 -0
  261. package/dist/module/shared/translation/types.js.map +1 -0
  262. package/dist/module/shared/translation/validation.types.js +4 -0
  263. package/dist/module/shared/translation/validation.types.js.map +1 -0
  264. package/dist/typescript/commonjs/features/chatbot/helpers.d.ts.map +1 -1
  265. package/dist/typescript/commonjs/features/chatbot/index.d.ts +1 -1
  266. package/dist/typescript/commonjs/features/chatbot/index.d.ts.map +1 -1
  267. package/dist/typescript/commonjs/features/chatbot/model/ChatBotModel.d.ts.map +1 -1
  268. package/dist/typescript/commonjs/features/chatbot/model/ChatBoxTextManager.d.ts +1 -1
  269. package/dist/typescript/commonjs/features/chatbot/model/ChatBoxTextManager.d.ts.map +1 -1
  270. package/dist/typescript/commonjs/features/chatbot/model/DefaultMessageCreator.d.ts +2 -1
  271. package/dist/typescript/commonjs/features/chatbot/model/DefaultMessageCreator.d.ts.map +1 -1
  272. package/dist/typescript/commonjs/features/chatbot/types/api.types.d.ts +8 -6
  273. package/dist/typescript/commonjs/features/chatbot/types/api.types.d.ts.map +1 -1
  274. package/dist/typescript/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.d.ts.map +1 -1
  275. package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolutionApi.d.ts.map +1 -1
  276. package/dist/typescript/commonjs/features/gifCelebrations/helpers.d.ts +1 -1
  277. package/dist/typescript/commonjs/features/gifCelebrations/helpers.d.ts.map +1 -1
  278. package/dist/typescript/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.d.ts +1 -1
  279. package/dist/typescript/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.d.ts.map +1 -1
  280. package/dist/typescript/commonjs/features/keyboard/components/GeometryLayout/GeometryLayout.d.ts +4 -0
  281. package/dist/typescript/commonjs/features/keyboard/components/GeometryLayout/GeometryLayout.d.ts.map +1 -0
  282. package/dist/typescript/commonjs/features/keyboard/components/SwitchableLayout/SwitchableLayout.d.ts +4 -0
  283. package/dist/typescript/commonjs/features/keyboard/components/SwitchableLayout/SwitchableLayout.d.ts.map +1 -0
  284. package/dist/typescript/commonjs/features/keyboard/components/SwitchableLayout/helpers.d.ts +12 -0
  285. package/dist/typescript/commonjs/features/keyboard/components/SwitchableLayout/helpers.d.ts.map +1 -0
  286. package/dist/typescript/commonjs/features/keyboard/components/SwitchableLayout/types.d.ts +21 -0
  287. package/dist/typescript/commonjs/features/keyboard/components/SwitchableLayout/types.d.ts.map +1 -0
  288. package/dist/typescript/commonjs/features/keyboard/constants/groups/geometry.constants.d.ts +3 -0
  289. package/dist/typescript/commonjs/features/keyboard/constants/groups/geometry.constants.d.ts.map +1 -0
  290. package/dist/typescript/commonjs/features/keyboard/constants/groups/index.d.ts +1 -0
  291. package/dist/typescript/commonjs/features/keyboard/constants/groups/index.d.ts.map +1 -1
  292. package/dist/typescript/commonjs/features/keyboard/constants/keyboard.constants.d.ts +5 -0
  293. package/dist/typescript/commonjs/features/keyboard/constants/keyboard.constants.d.ts.map +1 -1
  294. package/dist/typescript/commonjs/features/keyboard/constants/keyboard.helpers.d.ts.map +1 -1
  295. package/dist/typescript/commonjs/features/keyboard/constants/keyboardLayouts.d.ts +13 -4
  296. package/dist/typescript/commonjs/features/keyboard/constants/keyboardLayouts.d.ts.map +1 -1
  297. package/dist/typescript/commonjs/features/keyboard/constants/keys/geometry.constants.d.ts.map +1 -1
  298. package/dist/typescript/commonjs/features/keyboard/constants/keys/units.constants.d.ts.map +1 -1
  299. package/dist/typescript/commonjs/features/keyboard/types/types.d.ts +1 -0
  300. package/dist/typescript/commonjs/features/keyboard/types/types.d.ts.map +1 -1
  301. package/dist/typescript/commonjs/features/voice/recording/modal/ModalFooterButtons.d.ts +1 -1
  302. package/dist/typescript/commonjs/features/voice/recording/modal/ModalFooterButtons.d.ts.map +1 -1
  303. package/dist/typescript/commonjs/index.d.ts +1 -0
  304. package/dist/typescript/commonjs/index.d.ts.map +1 -1
  305. package/dist/typescript/commonjs/lib/components/ConditionalWrapper.d.ts +1 -1
  306. package/dist/typescript/commonjs/lib/types/keys.d.ts +8 -0
  307. package/dist/typescript/commonjs/lib/types/keys.d.ts.map +1 -0
  308. package/dist/typescript/commonjs/shared/icons/GeometryIcon.d.ts +4 -0
  309. package/dist/typescript/commonjs/shared/icons/GeometryIcon.d.ts.map +1 -0
  310. package/dist/typescript/commonjs/shared/icons/keyboard/AngleIcon.d.ts.map +1 -1
  311. package/dist/typescript/commonjs/shared/icons/keyboard/BidirectionalSegmentIcon.d.ts.map +1 -1
  312. package/dist/typescript/commonjs/shared/icons/keyboard/ImpliesIcon.d.ts +4 -0
  313. package/dist/typescript/commonjs/shared/icons/keyboard/ImpliesIcon.d.ts.map +1 -0
  314. package/dist/typescript/commonjs/shared/icons/keyboard/LetterAIcon.d.ts +4 -0
  315. package/dist/typescript/commonjs/shared/icons/keyboard/LetterAIcon.d.ts.map +1 -0
  316. package/dist/typescript/commonjs/shared/icons/keyboard/LetterBIcon.d.ts +4 -0
  317. package/dist/typescript/commonjs/shared/icons/keyboard/LetterBIcon.d.ts.map +1 -0
  318. package/dist/typescript/commonjs/shared/icons/keyboard/LetterCIcon.d.ts +4 -0
  319. package/dist/typescript/commonjs/shared/icons/keyboard/LetterCIcon.d.ts.map +1 -0
  320. package/dist/typescript/commonjs/shared/icons/keyboard/LineSegmentIcon.d.ts.map +1 -1
  321. package/dist/typescript/commonjs/shared/icons/keyboard/RightDirectedSegmentIcon.d.ts.map +1 -1
  322. package/dist/typescript/commonjs/shared/icons/keyboard/ThereforeIcon.d.ts +4 -0
  323. package/dist/typescript/commonjs/shared/icons/keyboard/ThereforeIcon.d.ts.map +1 -0
  324. package/dist/typescript/commonjs/shared/icons/keyboard/TriangleIcon.d.ts +4 -0
  325. package/dist/typescript/commonjs/shared/icons/keyboard/TriangleIcon.d.ts.map +1 -0
  326. package/dist/typescript/commonjs/shared/translation/constants.d.ts +369 -0
  327. package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +1 -0
  328. package/dist/typescript/commonjs/shared/translation/helpers.d.ts +7 -0
  329. package/dist/typescript/commonjs/shared/translation/helpers.d.ts.map +1 -0
  330. package/dist/typescript/commonjs/shared/translation/hooks.d.ts +5 -0
  331. package/dist/typescript/commonjs/shared/translation/hooks.d.ts.map +1 -0
  332. package/dist/typescript/commonjs/shared/translation/index.d.ts +4 -0
  333. package/dist/typescript/commonjs/shared/translation/index.d.ts.map +1 -0
  334. package/dist/typescript/commonjs/shared/translation/model.d.ts +125 -0
  335. package/dist/typescript/commonjs/shared/translation/model.d.ts.map +1 -0
  336. package/dist/typescript/commonjs/shared/translation/types.d.ts +6 -0
  337. package/dist/typescript/commonjs/shared/translation/types.d.ts.map +1 -0
  338. package/dist/typescript/commonjs/shared/translation/validation.types.d.ts +21 -0
  339. package/dist/typescript/commonjs/shared/translation/validation.types.d.ts.map +1 -0
  340. package/dist/typescript/module/features/chatbot/helpers.d.ts.map +1 -1
  341. package/dist/typescript/module/features/chatbot/index.d.ts +1 -1
  342. package/dist/typescript/module/features/chatbot/index.d.ts.map +1 -1
  343. package/dist/typescript/module/features/chatbot/model/ChatBotModel.d.ts.map +1 -1
  344. package/dist/typescript/module/features/chatbot/model/ChatBoxTextManager.d.ts +1 -1
  345. package/dist/typescript/module/features/chatbot/model/ChatBoxTextManager.d.ts.map +1 -1
  346. package/dist/typescript/module/features/chatbot/model/DefaultMessageCreator.d.ts +2 -1
  347. package/dist/typescript/module/features/chatbot/model/DefaultMessageCreator.d.ts.map +1 -1
  348. package/dist/typescript/module/features/chatbot/types/api.types.d.ts +8 -6
  349. package/dist/typescript/module/features/chatbot/types/api.types.d.ts.map +1 -1
  350. package/dist/typescript/module/features/exampleSolution/components/ExampleSolutionModalContent.d.ts.map +1 -1
  351. package/dist/typescript/module/features/exampleSolution/model/ExampleSolutionApi.d.ts.map +1 -1
  352. package/dist/typescript/module/features/gifCelebrations/helpers.d.ts +1 -1
  353. package/dist/typescript/module/features/gifCelebrations/helpers.d.ts.map +1 -1
  354. package/dist/typescript/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.d.ts +1 -1
  355. package/dist/typescript/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.d.ts.map +1 -1
  356. package/dist/typescript/module/features/keyboard/components/GeometryLayout/GeometryLayout.d.ts +4 -0
  357. package/dist/typescript/module/features/keyboard/components/GeometryLayout/GeometryLayout.d.ts.map +1 -0
  358. package/dist/typescript/module/features/keyboard/components/SwitchableLayout/SwitchableLayout.d.ts +4 -0
  359. package/dist/typescript/module/features/keyboard/components/SwitchableLayout/SwitchableLayout.d.ts.map +1 -0
  360. package/dist/typescript/module/features/keyboard/components/SwitchableLayout/helpers.d.ts +12 -0
  361. package/dist/typescript/module/features/keyboard/components/SwitchableLayout/helpers.d.ts.map +1 -0
  362. package/dist/typescript/module/features/keyboard/components/SwitchableLayout/types.d.ts +21 -0
  363. package/dist/typescript/module/features/keyboard/components/SwitchableLayout/types.d.ts.map +1 -0
  364. package/dist/typescript/module/features/keyboard/constants/groups/geometry.constants.d.ts +3 -0
  365. package/dist/typescript/module/features/keyboard/constants/groups/geometry.constants.d.ts.map +1 -0
  366. package/dist/typescript/module/features/keyboard/constants/groups/index.d.ts +1 -0
  367. package/dist/typescript/module/features/keyboard/constants/groups/index.d.ts.map +1 -1
  368. package/dist/typescript/module/features/keyboard/constants/keyboard.constants.d.ts +5 -0
  369. package/dist/typescript/module/features/keyboard/constants/keyboard.constants.d.ts.map +1 -1
  370. package/dist/typescript/module/features/keyboard/constants/keyboard.helpers.d.ts.map +1 -1
  371. package/dist/typescript/module/features/keyboard/constants/keyboardLayouts.d.ts +13 -4
  372. package/dist/typescript/module/features/keyboard/constants/keyboardLayouts.d.ts.map +1 -1
  373. package/dist/typescript/module/features/keyboard/constants/keys/geometry.constants.d.ts.map +1 -1
  374. package/dist/typescript/module/features/keyboard/constants/keys/units.constants.d.ts.map +1 -1
  375. package/dist/typescript/module/features/keyboard/types/types.d.ts +1 -0
  376. package/dist/typescript/module/features/keyboard/types/types.d.ts.map +1 -1
  377. package/dist/typescript/module/features/voice/recording/modal/ModalFooterButtons.d.ts +1 -1
  378. package/dist/typescript/module/features/voice/recording/modal/ModalFooterButtons.d.ts.map +1 -1
  379. package/dist/typescript/module/index.d.ts +1 -0
  380. package/dist/typescript/module/index.d.ts.map +1 -1
  381. package/dist/typescript/module/lib/components/ConditionalWrapper.d.ts +1 -1
  382. package/dist/typescript/module/lib/types/keys.d.ts +8 -0
  383. package/dist/typescript/module/lib/types/keys.d.ts.map +1 -0
  384. package/dist/typescript/module/shared/icons/GeometryIcon.d.ts +4 -0
  385. package/dist/typescript/module/shared/icons/GeometryIcon.d.ts.map +1 -0
  386. package/dist/typescript/module/shared/icons/keyboard/AngleIcon.d.ts.map +1 -1
  387. package/dist/typescript/module/shared/icons/keyboard/BidirectionalSegmentIcon.d.ts.map +1 -1
  388. package/dist/typescript/module/shared/icons/keyboard/ImpliesIcon.d.ts +4 -0
  389. package/dist/typescript/module/shared/icons/keyboard/ImpliesIcon.d.ts.map +1 -0
  390. package/dist/typescript/module/shared/icons/keyboard/LetterAIcon.d.ts +4 -0
  391. package/dist/typescript/module/shared/icons/keyboard/LetterAIcon.d.ts.map +1 -0
  392. package/dist/typescript/module/shared/icons/keyboard/LetterBIcon.d.ts +4 -0
  393. package/dist/typescript/module/shared/icons/keyboard/LetterBIcon.d.ts.map +1 -0
  394. package/dist/typescript/module/shared/icons/keyboard/LetterCIcon.d.ts +4 -0
  395. package/dist/typescript/module/shared/icons/keyboard/LetterCIcon.d.ts.map +1 -0
  396. package/dist/typescript/module/shared/icons/keyboard/LineSegmentIcon.d.ts.map +1 -1
  397. package/dist/typescript/module/shared/icons/keyboard/RightDirectedSegmentIcon.d.ts.map +1 -1
  398. package/dist/typescript/module/shared/icons/keyboard/ThereforeIcon.d.ts +4 -0
  399. package/dist/typescript/module/shared/icons/keyboard/ThereforeIcon.d.ts.map +1 -0
  400. package/dist/typescript/module/shared/icons/keyboard/TriangleIcon.d.ts +4 -0
  401. package/dist/typescript/module/shared/icons/keyboard/TriangleIcon.d.ts.map +1 -0
  402. package/dist/typescript/module/shared/translation/constants.d.ts +369 -0
  403. package/dist/typescript/module/shared/translation/constants.d.ts.map +1 -0
  404. package/dist/typescript/module/shared/translation/helpers.d.ts +7 -0
  405. package/dist/typescript/module/shared/translation/helpers.d.ts.map +1 -0
  406. package/dist/typescript/module/shared/translation/hooks.d.ts +5 -0
  407. package/dist/typescript/module/shared/translation/hooks.d.ts.map +1 -0
  408. package/dist/typescript/module/shared/translation/index.d.ts +4 -0
  409. package/dist/typescript/module/shared/translation/index.d.ts.map +1 -0
  410. package/dist/typescript/module/shared/translation/model.d.ts +125 -0
  411. package/dist/typescript/module/shared/translation/model.d.ts.map +1 -0
  412. package/dist/typescript/module/shared/translation/types.d.ts +6 -0
  413. package/dist/typescript/module/shared/translation/types.d.ts.map +1 -0
  414. package/dist/typescript/module/shared/translation/validation.types.d.ts +21 -0
  415. package/dist/typescript/module/shared/translation/validation.types.d.ts.map +1 -0
  416. package/example/.expo/README.md +8 -0
  417. package/example/.expo/devices.json +3 -0
  418. package/example/.expo/web/cache/production/images/favicon/favicon-24272cdaeff82cc5facdaccd982a6f05b60c4504704bbf94c19a6388659880bb-contain-transparent/favicon-48.png +0 -0
  419. package/example/app.json +30 -0
  420. package/example/assets/adaptive-icon.png +0 -0
  421. package/example/assets/favicon.png +0 -0
  422. package/example/assets/icon.png +0 -0
  423. package/example/assets/splash-icon.png +0 -0
  424. package/example/babel.config.js +28 -0
  425. package/example/index.js +8 -0
  426. package/example/metro.config.js +18 -0
  427. package/example/package.json +25 -0
  428. package/example/src/App.tsx +8 -0
  429. package/example/tsconfig.json +6 -0
  430. package/package.json +4 -9
  431. package/src/features/chatbot/components/ChatInput/FreeText/FreeTextInputBlock.tsx +1 -1
  432. package/src/features/chatbot/errorSpotting/ErrorSpottingButton.tsx +1 -1
  433. package/src/features/chatbot/helpers.ts +3 -1
  434. package/src/features/chatbot/index.ts +9 -1
  435. package/src/features/chatbot/model/ChatBotModel.ts +7 -10
  436. package/src/features/chatbot/model/ChatBoxTextManager.ts +4 -2
  437. package/src/features/chatbot/model/DefaultMessageCreator.ts +3 -3
  438. package/src/features/chatbot/types/api.types.ts +11 -6
  439. package/src/features/exampleSolution/components/ExampleSolutionModalContent.tsx +4 -3
  440. package/src/features/exampleSolution/model/ExampleSolutionApi.ts +9 -5
  441. package/src/features/feedback/components/EmptyComment.tsx +1 -1
  442. package/src/features/feedback/model/comments.ts +1 -1
  443. package/src/features/gifCelebrations/components/Gif.tsx +1 -1
  444. package/src/features/gifCelebrations/helpers.ts +1 -1
  445. package/src/features/keyboard/components/AlgebraLayout/AlgebraLayout.tsx +17 -73
  446. package/src/features/keyboard/components/GeometryLayout/GeometryLayout.tsx +21 -0
  447. package/src/features/keyboard/components/Numpad/Numpad.tsx +1 -1
  448. package/src/features/keyboard/components/SwitchableLayout/SwitchableLayout.tsx +100 -0
  449. package/src/features/keyboard/components/SwitchableLayout/helpers.tsx +31 -0
  450. package/src/features/keyboard/components/SwitchableLayout/types.ts +24 -0
  451. package/src/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.ts +1 -1
  452. package/src/features/keyboard/constants/groups/geometry.constants.ts +25 -0
  453. package/src/features/keyboard/constants/groups/index.ts +1 -0
  454. package/src/features/keyboard/constants/keyboard.constants.ts +6 -0
  455. package/src/features/keyboard/constants/keyboard.helpers.ts +3 -0
  456. package/src/features/keyboard/constants/keyboardLayouts.ts +15 -5
  457. package/src/features/keyboard/constants/keys/geometry.constants.tsx +61 -1
  458. package/src/features/keyboard/constants/keys/text.constants.tsx +9 -9
  459. package/src/features/keyboard/constants/keys/units.constants.tsx +1 -0
  460. package/src/features/keyboard/types/types.ts +1 -0
  461. package/src/features/voice/playing/components/VoiceTranscriptionsDropdown.tsx +1 -1
  462. package/src/features/voice/playing/components/VoiceTranscriptionsDropdownItem.tsx +1 -1
  463. package/src/features/voice/recording/components/VoiceRecordButton.tsx +1 -1
  464. package/src/features/voice/recording/modal/ModalFooterButtons.tsx +2 -2
  465. package/src/features/voice/recording/modal/VoiceRecordDeleteModal.tsx +1 -1
  466. package/src/features/voice/recording/modal/VoiceRecordUndoModal.tsx +1 -1
  467. package/src/features/voice/recording/model/VoiceRecord.model.ts +1 -1
  468. package/src/index.ts +1 -0
  469. package/src/lib/helpers/helpers.ts +1 -1
  470. package/src/lib/types/keys.ts +18 -0
  471. package/src/shared/icons/GeometryIcon.tsx +18 -0
  472. package/src/shared/icons/keyboard/AngleIcon.tsx +4 -2
  473. package/src/shared/icons/keyboard/BidirectionalSegmentIcon.tsx +5 -8
  474. package/src/shared/icons/keyboard/ImpliesIcon.tsx +16 -0
  475. package/src/shared/icons/keyboard/LetterAIcon.tsx +14 -0
  476. package/src/shared/icons/keyboard/LetterBIcon.tsx +14 -0
  477. package/src/shared/icons/keyboard/LetterCIcon.tsx +14 -0
  478. package/src/shared/icons/keyboard/LineSegmentIcon.tsx +6 -7
  479. package/src/shared/icons/keyboard/RightDirectedSegmentIcon.tsx +5 -8
  480. package/src/shared/icons/keyboard/ThereforeIcon.tsx +15 -0
  481. package/src/shared/icons/keyboard/TriangleIcon.tsx +18 -0
  482. package/src/shared/translation/constants.ts +16 -0
  483. package/src/shared/translation/helpers.ts +47 -0
  484. package/src/shared/translation/hooks.ts +25 -0
  485. package/src/shared/translation/index.ts +3 -0
  486. package/src/shared/translation/localization/ca.json +61 -0
  487. package/src/shared/translation/localization/de.json +61 -0
  488. package/src/shared/translation/localization/en.json +61 -0
  489. package/src/shared/translation/localization/gb.json +61 -0
  490. package/src/shared/translation/localization/sct.json +61 -0
  491. package/src/shared/translation/localization/sw.json +61 -0
  492. package/src/shared/translation/model.ts +16 -0
  493. package/src/shared/translation/types.ts +21 -0
  494. package/src/shared/translation/validation.types.ts +34 -0
  495. package/tsconfig.build.json +4 -0
  496. package/tsconfig.json +34 -0
  497. package/yarn.lock +10957 -0
  498. package/dist/commonjs/features/keyboard/components/AlgebraLayout/helpers.js +0 -41
  499. package/dist/commonjs/features/keyboard/components/AlgebraLayout/helpers.js.map +0 -1
  500. package/dist/commonjs/features/keyboard/components/AlgebraLayout/types.js.map +0 -1
  501. package/dist/commonjs/shared/translation/i18n.d.js +0 -5
  502. package/dist/commonjs/shared/translation/i18n.d.js.map +0 -1
  503. package/dist/commonjs/shared/translation/i18n.js +0 -26
  504. package/dist/commonjs/shared/translation/i18n.js.map +0 -1
  505. package/dist/commonjs/shared/translation/react-i18next.d.js +0 -5
  506. package/dist/commonjs/shared/translation/react-i18next.d.js.map +0 -1
  507. package/dist/module/features/keyboard/components/AlgebraLayout/helpers.js +0 -36
  508. package/dist/module/features/keyboard/components/AlgebraLayout/helpers.js.map +0 -1
  509. package/dist/module/features/keyboard/components/AlgebraLayout/types.js.map +0 -1
  510. package/dist/module/shared/translation/i18n.d.js +0 -5
  511. package/dist/module/shared/translation/i18n.d.js.map +0 -1
  512. package/dist/module/shared/translation/i18n.js +0 -19
  513. package/dist/module/shared/translation/i18n.js.map +0 -1
  514. package/dist/module/shared/translation/react-i18next.d.js +0 -5
  515. package/dist/module/shared/translation/react-i18next.d.js.map +0 -1
  516. package/dist/typescript/commonjs/features/keyboard/components/AlgebraLayout/helpers.d.ts +0 -15
  517. package/dist/typescript/commonjs/features/keyboard/components/AlgebraLayout/helpers.d.ts.map +0 -1
  518. package/dist/typescript/commonjs/features/keyboard/components/AlgebraLayout/types.d.ts +0 -5
  519. package/dist/typescript/commonjs/features/keyboard/components/AlgebraLayout/types.d.ts.map +0 -1
  520. package/dist/typescript/commonjs/shared/translation/i18n.d.ts +0 -7
  521. package/dist/typescript/commonjs/shared/translation/i18n.d.ts.map +0 -1
  522. package/dist/typescript/module/features/keyboard/components/AlgebraLayout/helpers.d.ts +0 -15
  523. package/dist/typescript/module/features/keyboard/components/AlgebraLayout/helpers.d.ts.map +0 -1
  524. package/dist/typescript/module/features/keyboard/components/AlgebraLayout/types.d.ts +0 -5
  525. package/dist/typescript/module/features/keyboard/components/AlgebraLayout/types.d.ts.map +0 -1
  526. package/dist/typescript/module/shared/translation/i18n.d.ts +0 -7
  527. package/dist/typescript/module/shared/translation/i18n.d.ts.map +0 -1
  528. package/src/features/keyboard/components/AlgebraLayout/helpers.tsx +0 -52
  529. package/src/features/keyboard/components/AlgebraLayout/types.ts +0 -4
  530. package/src/shared/translation/i18n.d.ts +0 -21
  531. package/src/shared/translation/i18n.ts +0 -17
  532. package/src/shared/translation/react-i18next.d.ts +0 -21
@@ -0,0 +1,24 @@
1
+ import { ReactNode } from 'react'
2
+ import { KeyboardLayoutProps } from '../../types/types'
3
+ import { KEYBOARD_LAYOUTS } from '../../constants/keyboardLayouts'
4
+
5
+ export enum SelectedLayout {
6
+ BASIC = 'basic',
7
+ SECONDARY = 'secondary',
8
+ }
9
+
10
+ export type LayoutOption = {
11
+ key: SelectedLayout
12
+ title: ReactNode
13
+ onPressIn: () => void
14
+ }
15
+
16
+ export type SwitchableLayoutConfig = {
17
+ secondaryKeyboardType: keyof typeof KEYBOARD_LAYOUTS
18
+ BasicIcon: (isSelected: boolean) => ReactNode
19
+ SecondaryIcon: (isSelected: boolean) => ReactNode
20
+ }
21
+
22
+ export type SwitchableLayoutProps = KeyboardLayoutProps & {
23
+ config: SwitchableLayoutConfig
24
+ }
@@ -1,4 +1,4 @@
1
- import { useText } from '../../../../../shared/translation/i18n'
1
+ import { useText } from '../../../../../shared/translation'
2
2
  import { useMemo, useState } from 'react'
3
3
  import { KeyboardUnitsGroupType, UnitTab } from '../types'
4
4
  import { useWindowDimensions } from 'react-native'
@@ -0,0 +1,25 @@
1
+ import {
2
+ MATH_BASIC_OPERATORS,
3
+ MATH_GEOMETRY_SYMBOLS,
4
+ } from '../keys'
5
+ import { KeyboardGroup } from '../../types/types'
6
+
7
+ export const KEYBOARD_GEOMETRY: KeyboardGroup = {
8
+ keys: [
9
+ MATH_GEOMETRY_SYMBOLS.ANGLE,
10
+ MATH_GEOMETRY_SYMBOLS.TRIANGLE,
11
+ MATH_GEOMETRY_SYMBOLS.THEREFORE,
12
+ MATH_GEOMETRY_SYMBOLS.IMPLIES,
13
+ MATH_BASIC_OPERATORS.SIMILARITY,
14
+ MATH_GEOMETRY_SYMBOLS.LINE_SEGMENT,
15
+ MATH_GEOMETRY_SYMBOLS.RIGHT_DIRECTED_SEGMENT,
16
+ MATH_GEOMETRY_SYMBOLS.BIDIRECTIONAL_SEGMENT,
17
+ MATH_GEOMETRY_SYMBOLS.PERPENDICULAR,
18
+ MATH_BASIC_OPERATORS.APPROXIMATELY_EQUAL,
19
+ MATH_GEOMETRY_SYMBOLS.A,
20
+ MATH_GEOMETRY_SYMBOLS.B,
21
+ MATH_GEOMETRY_SYMBOLS.C,
22
+ MATH_GEOMETRY_SYMBOLS.PARALLEL,
23
+ MATH_BASIC_OPERATORS.CONGRUENT,
24
+ ],
25
+ }
@@ -3,6 +3,7 @@ export * from './basic.constants'
3
3
  export * from './basicPlus.constants'
4
4
  export * from './basicPlusPlus.constants'
5
5
  export * from './currency.constants'
6
+ export * from './geometry.constants'
6
7
  export * from './numpad.constants'
7
8
  export * from './time.constants'
8
9
  export * from './underlined.constants'
@@ -7,6 +7,12 @@ export const DEFAULT_KEY_ICON_PROPS = {
7
7
 
8
8
  export const MOBILE_LAYOUT_WIDTH = 1200
9
9
 
10
+ export const MOBILE_BREAKPOINT = {
11
+ LARGE: 1300,
12
+ MEDIUM: 1220,
13
+ SMALL: 990,
14
+ } as const
15
+
10
16
  export const KEYBOARD_DEFAULT_TEXT_STYLE = {
11
17
  fontSize: 14,
12
18
  fontWeight: 700,
@@ -18,6 +18,7 @@ import {
18
18
  KEYBOARD_BASIC_PLUS,
19
19
  KEYBOARD_BASIC_PLUS_PLUS,
20
20
  KEYBOARD_CURRENCY,
21
+ KEYBOARD_GEOMETRY,
21
22
  KEYBOARD_LENGTH,
22
23
  KEYBOARD_NUMPAD,
23
24
  KEYBOARD_TIME,
@@ -44,6 +45,7 @@ const PRESET_DOT_MIXED: KeyboardPresetConfig = {
44
45
  [KeyboardType.BasicPlusPlusMobile]: KEYBOARD_BASIC_PLUS_PLUS.MOBILE_DOT,
45
46
  [KeyboardType.BasicUnits]: { keys: KEYBOARD_LENGTH.MIXED.keys[0] },
46
47
  [KeyboardType.AlgebraAdvanced]: KEYBOARD_ALGEBRA,
48
+ [KeyboardType.Geometry]: KEYBOARD_GEOMETRY,
47
49
  [KeyboardType.Numpad]: KEYBOARD_NUMPAD.DOT,
48
50
  [KeyboardType.Underlined]: KEYBOARD_UNDERLINED,
49
51
  },
@@ -65,6 +67,7 @@ const PRESET_COMMA_METRIC: KeyboardPresetConfig = {
65
67
  [KeyboardType.BasicPlusPlusMobile]: KEYBOARD_BASIC_PLUS_PLUS.MOBILE_COMMA,
66
68
  [KeyboardType.BasicUnits]: { keys: KEYBOARD_LENGTH.METRIC.keys[0] },
67
69
  [KeyboardType.AlgebraAdvanced]: KEYBOARD_ALGEBRA,
70
+ [KeyboardType.Geometry]: KEYBOARD_GEOMETRY,
68
71
  [KeyboardType.Numpad]: KEYBOARD_NUMPAD.COMMA,
69
72
  [KeyboardType.Underlined]: KEYBOARD_UNDERLINED,
70
73
  },
@@ -5,8 +5,9 @@ import { TimeBasicLayout } from '../components/BasicLayout/TimeBasicLayout'
5
5
  import { CurrencyBasicLayout } from '../components/BasicLayout/CurrencyBasicLayout'
6
6
  import { UnitsLayout } from '../components/UnitsLayout/UnitsLayout'
7
7
  import { BasicPlusPlusLayout } from '../components/BasicPlusPlusLayout/BasicPlusPlusLayout'
8
+ import { GeometryLayout } from '../components/GeometryLayout/GeometryLayout'
8
9
  import { MyScriptMathCharacterTypes } from '../../../types/characterTypes'
9
- import { MOBILE_LAYOUT_WIDTH } from './keyboard.constants'
10
+ import { MOBILE_BREAKPOINT, MOBILE_LAYOUT_WIDTH } from './keyboard.constants'
10
11
  import { KeyboardType } from '../types/types'
11
12
 
12
13
  export const KEYBOARD_LAYOUTS = {
@@ -19,12 +20,12 @@ export const KEYBOARD_LAYOUTS = {
19
20
  MyScriptMathCharacterTypes.ALGEBRA_GREEK,
20
21
  MyScriptMathCharacterTypes.GENERAL_MATH,
21
22
  ],
22
- mobileBreakpoint: 1300,
23
+ mobileBreakpoint: MOBILE_BREAKPOINT.LARGE,
23
24
  },
24
25
  [KeyboardType.Basic]: {
25
26
  Component: BasicLayout,
26
27
  characterTypes: [MyScriptMathCharacterTypes.NUMBERS_WHOLE],
27
- mobileBreakpoint: 990,
28
+ mobileBreakpoint: MOBILE_BREAKPOINT.SMALL,
28
29
  },
29
30
  [KeyboardType.BasicPlus]: {
30
31
  Component: BasicPlusLayout,
@@ -37,14 +38,17 @@ export const KEYBOARD_LAYOUTS = {
37
38
  MyScriptMathCharacterTypes.PERCENT,
38
39
  MyScriptMathCharacterTypes.NUMBERS_RATIONAL,
39
40
  ],
41
+ mobileBreakpoint: MOBILE_LAYOUT_WIDTH,
40
42
  },
41
43
  [KeyboardType.BasicTime]: {
42
44
  Component: TimeBasicLayout,
43
45
  characterTypes: [MyScriptMathCharacterTypes.TIME],
46
+ mobileBreakpoint: MOBILE_LAYOUT_WIDTH,
44
47
  },
45
48
  [KeyboardType.BasicCurrency]: {
46
49
  Component: CurrencyBasicLayout,
47
50
  characterTypes: [MyScriptMathCharacterTypes.CURRENCY],
51
+ mobileBreakpoint: MOBILE_LAYOUT_WIDTH,
48
52
  },
49
53
  [KeyboardType.BasicUnits]: {
50
54
  Component: UnitsLayout,
@@ -52,14 +56,20 @@ export const KEYBOARD_LAYOUTS = {
52
56
  MyScriptMathCharacterTypes.NUMBERS_AND_UNITS,
53
57
  MyScriptMathCharacterTypes.UNITS,
54
58
  ],
59
+ mobileBreakpoint: MOBILE_LAYOUT_WIDTH,
55
60
  },
56
61
  [KeyboardType.BasicPlusPlus]: {
57
62
  Component: BasicPlusPlusLayout,
63
+ characterTypes: [] as MyScriptMathCharacterTypes[],
64
+ mobileBreakpoint: MOBILE_BREAKPOINT.MEDIUM,
65
+ },
66
+ [KeyboardType.Geometry]: {
67
+ Component: GeometryLayout,
58
68
  characterTypes: [
59
69
  MyScriptMathCharacterTypes.GEOM_ANGLES,
60
70
  MyScriptMathCharacterTypes.GEOM_COORDINATE,
61
71
  ],
62
- mobileBreakpoint: 1220,
72
+ mobileBreakpoint: MOBILE_BREAKPOINT.LARGE,
63
73
  },
64
74
  }
65
75
 
@@ -95,7 +105,7 @@ export function isBasicPlusPlusLayout(charType?: number) {
95
105
  }
96
106
 
97
107
  return (
98
- KEYBOARD_LAYOUTS[KeyboardType.BasicPlusPlus].characterTypes.includes(charType) ||
108
+ KEYBOARD_LAYOUTS[KeyboardType.Geometry].characterTypes.includes(charType) ||
99
109
  KEYBOARD_LAYOUTS[KeyboardType.AlgebraAdvanced].characterTypes.includes(charType)
100
110
  )
101
111
  }
@@ -5,6 +5,15 @@ import { DegreeIcon } from '../../../../shared/icons/keyboard/DegreeIcon'
5
5
  import { AngleIcon } from '../../../../shared/icons/keyboard/AngleIcon'
6
6
  import { ParallelIcon } from '../../../../shared/icons/keyboard/ParallelIcon'
7
7
  import { PerpendicularIcon } from '../../../../shared/icons/keyboard/PerpendicularIcon'
8
+ import { TriangleIcon } from '../../../../shared/icons/keyboard/TriangleIcon'
9
+ import { ThereforeIcon } from '../../../../shared/icons/keyboard/ThereforeIcon'
10
+ import { ImpliesIcon } from '../../../../shared/icons/keyboard/ImpliesIcon'
11
+ import { LineSegmentIcon } from '../../../../shared/icons/keyboard/LineSegmentIcon'
12
+ import { RightDirectedSegmentIcon } from '../../../../shared/icons/keyboard/RightDirectedSegmentIcon'
13
+ import { BidirectionalSegmentIcon } from '../../../../shared/icons/keyboard/BidirectionalSegmentIcon'
14
+ import { LetterAIcon } from '../../../../shared/icons/keyboard/LetterAIcon'
15
+ import { LetterBIcon } from '../../../../shared/icons/keyboard/LetterBIcon'
16
+ import { LetterCIcon } from '../../../../shared/icons/keyboard/LetterCIcon'
8
17
  import { DEFAULT_KEY_ICON_PROPS } from '../keyboard.constants'
9
18
 
10
19
  export const MATH_GEOMETRY_SYMBOLS: MathOperatorsGroup = {
@@ -14,7 +23,7 @@ export const MATH_GEOMETRY_SYMBOLS: MathOperatorsGroup = {
14
23
  katexValue: '°',
15
24
  },
16
25
  ANGLE: {
17
- icon: <AngleIcon {...DEFAULT_KEY_ICON_PROPS} />,
26
+ icon: <AngleIcon {...DEFAULT_KEY_ICON_PROPS} size={20} />,
18
27
  mathliveValue: '\\angle',
19
28
  katexValue: '∠',
20
29
  },
@@ -45,4 +54,55 @@ export const MATH_GEOMETRY_SYMBOLS: MathOperatorsGroup = {
45
54
  },
46
55
  },
47
56
  },
57
+ TRIANGLE: {
58
+ icon: <TriangleIcon {...DEFAULT_KEY_ICON_PROPS} size={20} />,
59
+ mathliveValue: '\\triangle',
60
+ katexValue: '△',
61
+ },
62
+ THEREFORE: {
63
+ icon: <ThereforeIcon {...DEFAULT_KEY_ICON_PROPS} size={20} />,
64
+ mathliveValue: '\\therefore',
65
+ katexValue: '∴',
66
+ },
67
+ IMPLIES: {
68
+ icon: <ImpliesIcon {...DEFAULT_KEY_ICON_PROPS} size={20} />,
69
+ mathliveValue: '\\Rightarrow',
70
+ katexValue: '⇒',
71
+ },
72
+ LINE_SEGMENT: {
73
+ icon: <LineSegmentIcon {...DEFAULT_KEY_ICON_PROPS} size={20} />,
74
+ mathliveValue: '\\overline{\\placeholder{}}',
75
+ katexValue: 'LINE_SEGMENT',
76
+ spreadsheetValue: 'LINE_SEGMENT',
77
+ isSpecialSymbol: true,
78
+ },
79
+ RIGHT_DIRECTED_SEGMENT: {
80
+ icon: <RightDirectedSegmentIcon {...DEFAULT_KEY_ICON_PROPS} size={20} />,
81
+ mathliveValue: '\\overrightarrow{\\placeholder{}}',
82
+ katexValue: 'RIGHT_DIRECTED_SEGMENT',
83
+ spreadsheetValue: 'RIGHT_DIRECTED_SEGMENT',
84
+ isSpecialSymbol: true,
85
+ },
86
+ BIDIRECTIONAL_SEGMENT: {
87
+ icon: <BidirectionalSegmentIcon {...DEFAULT_KEY_ICON_PROPS} size={20} />,
88
+ mathliveValue: '\\overleftrightarrow{\\placeholder{}}',
89
+ katexValue: 'BIDIRECTIONAL_SEGMENT',
90
+ spreadsheetValue: 'BIDIRECTIONAL_SEGMENT',
91
+ isSpecialSymbol: true,
92
+ },
93
+ A: {
94
+ icon: <LetterAIcon {...DEFAULT_KEY_ICON_PROPS} />,
95
+ mathliveValue: '𝐴',
96
+ katexValue: 'A',
97
+ },
98
+ B: {
99
+ icon: <LetterBIcon {...DEFAULT_KEY_ICON_PROPS} />,
100
+ mathliveValue: '𝐵',
101
+ katexValue: 'B',
102
+ },
103
+ C: {
104
+ icon: <LetterCIcon {...DEFAULT_KEY_ICON_PROPS} />,
105
+ mathliveValue: '𝐶',
106
+ katexValue: 'C',
107
+ },
48
108
  } as const
@@ -7,19 +7,19 @@ import { DEFAULT_KEY_ICON_PROPS } from '../keyboard.constants'
7
7
 
8
8
  export const MATH_TEXT_SYMBOLS: MathOperatorsGroup = {
9
9
  A: {
10
- label: 'a',
11
- mathliveValue: 'a',
12
- katexValue: 'a',
10
+ label: 'A',
11
+ mathliveValue: 'A',
12
+ katexValue: 'A',
13
13
  },
14
14
  B: {
15
- label: 'b',
16
- mathliveValue: 'b',
17
- katexValue: 'b',
15
+ label: 'B',
16
+ mathliveValue: 'B',
17
+ katexValue: 'B',
18
18
  },
19
19
  C: {
20
- label: 'c',
21
- mathliveValue: 'c',
22
- katexValue: 'c',
20
+ label: 'C',
21
+ mathliveValue: 'C',
22
+ katexValue: 'C',
23
23
  },
24
24
  F: {
25
25
  label: 'f',
@@ -460,5 +460,6 @@ export const MATH_TIME_UNITS: MathOperatorsGroup = {
460
460
  label: 'pm',
461
461
  mathliveValue: '\\mathrm{pm}',
462
462
  katexValue: 'pm',
463
+ mathQuillValue: 'pm',
463
464
  },
464
465
  } as const
@@ -23,6 +23,7 @@ export enum KeyboardType {
23
23
  BasicUnits = 'BasicUnits',
24
24
  BasicPlusPlus = 'BasicPlusPlus',
25
25
  BasicPlusPlusMobile = 'BasicPlusPlusMobile',
26
+ Geometry = 'Geometry',
26
27
  Numpad = 'Numpad',
27
28
  Underlined = 'Underlined',
28
29
  }
@@ -24,7 +24,7 @@ import { useVoiceTranscriptionsDropdown } from '../hooks/useVoiceTranscriptionsD
24
24
  import { VoicePlayerModel, PlayerState } from '../model'
25
25
  import { VoiceTranscriptionsDropdownItem } from './VoiceTranscriptionsDropdownItem'
26
26
  import { DROPDOWN_MAX_CONTENT_HEIGHT, NO_AUDIO_BE_MESSAGE } from '../../constants'
27
- import { useText } from '../../../../shared/translation/i18n'
27
+ import { useText } from '../../../../shared/translation'
28
28
  import { PlayButton } from '../../../../shared/components/PlayButton'
29
29
  import { getActiveAttempt, getAudioStatus } from '../../helpers'
30
30
 
@@ -12,7 +12,7 @@ import {
12
12
  } from '@magmamath/react-native-ui'
13
13
  import Animated, { runOnJS, useAnimatedReaction } from 'react-native-reanimated'
14
14
  import { useVoiceTranscriptionsDropdownItemAnimation } from '../hooks/useVoiceTranscriptionsDropdownItemAnimation'
15
- import { useText } from '../../../../shared/translation/i18n'
15
+ import { useText } from '../../../../shared/translation'
16
16
 
17
17
  type VoiceTranscriptionsDropdownItemProps = {
18
18
  attempt: number
@@ -12,7 +12,7 @@ import { MicrophoneIcon, CheckIcon } from '@magmamath/react-native-ui'
12
12
  import { VoiceRecordModel } from '../model/VoiceRecord.model'
13
13
  import { useUnit } from 'effector-react'
14
14
  import { VoiceRecorderState } from '../../constants'
15
- import { useText } from '../../../../shared/translation/i18n'
15
+ import { useText } from '../../../../shared/translation'
16
16
 
17
17
  type VoiceRecordButtonProps = {
18
18
  style?: ButtonStyle
@@ -1,8 +1,8 @@
1
1
  import React from 'react'
2
2
  import { Button, ButtonColor, ButtonSize, ButtonVariant, SPACING } from '@magmamath/react-native-ui'
3
3
  import { StyleSheet, View } from 'react-native'
4
- import { useText } from '../../../../shared/translation/i18n'
5
- import { TranslationKeys } from '../../../../shared/translation/i18n'
4
+ import { useText } from '../../../../shared/translation'
5
+ import { TranslationKeys } from '../../../../shared/translation/types'
6
6
 
7
7
  type ModalFooterButtonsProps = {
8
8
  onCancel: () => void
@@ -3,7 +3,7 @@ import { BaseModal, ButtonColor } from '@magmamath/react-native-ui'
3
3
  import { StyleSheet } from 'react-native'
4
4
  import { useUnit } from 'effector-react'
5
5
  import { VoiceRecorderState } from '../../constants'
6
- import { useText } from '../../../../shared/translation/i18n'
6
+ import { useText } from '../../../../shared/translation'
7
7
  import { ModalFooterButtons } from './ModalFooterButtons'
8
8
  import { VoiceRecordModalParams } from '../../types'
9
9
 
@@ -1,7 +1,7 @@
1
1
  import React from 'react'
2
2
  import { BaseModal } from '@magmamath/react-native-ui'
3
3
  import { StyleSheet } from 'react-native'
4
- import { useText } from '../../../../shared/translation/i18n'
4
+ import { useText } from '../../../../shared/translation'
5
5
  import { ModalFooterButtons } from './ModalFooterButtons'
6
6
  import { VoiceRecordModalParams } from '../../types'
7
7
 
@@ -10,7 +10,7 @@ import {
10
10
  } from '../../types'
11
11
  import { ensureRecordingPermissions, getAvailableInputs } from '../../helpers'
12
12
  import { VOICE_RECORDER_MIN_DURATION_MS } from '../../constants'
13
- import { getText as t } from '../../../../shared/translation/i18n'
13
+ import { t } from '../../../../shared/translation'
14
14
 
15
15
  type VoiceRecordModelParams = {
16
16
  api: VoiceRecorderApi
package/src/index.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export { useFeaturesLocalization, setFeaturesLocalization } from './shared/translation'
1
2
  export { generateRandomId } from './lib/helpers/helpers'
2
3
  export * from './features/chatbot'
3
4
  export * from './features/feedback'
@@ -1,4 +1,4 @@
1
- import { getText } from '../../shared/translation/i18n'
1
+ import { getText } from '../../shared/translation/helpers'
2
2
 
3
3
  export const noop = () => {}
4
4
 
@@ -0,0 +1,18 @@
1
+ type JoinKeys<K extends string, P extends string> = `${K}.${P}`
2
+
3
+ type NestedKeys<T, Prefix extends string = ''> = T extends object
4
+ ? T extends Array<any>
5
+ ? never
6
+ : {
7
+ [K in keyof T & string]: T[K] extends object
8
+ ?
9
+ | JoinKeys<Prefix extends '' ? K : `${Prefix}.${K}`, NestedKeys<T[K], ''>>
10
+ | (Prefix extends '' ? K : `${Prefix}.${K}`)
11
+ : Prefix extends ''
12
+ ? K
13
+ : `${Prefix}.${K}`
14
+ }[keyof T & string]
15
+ : never
16
+
17
+ type FlattenKeys<T> = T extends string ? T : never
18
+ export type RetrieveKeys<T> = FlattenKeys<NestedKeys<T>>
@@ -0,0 +1,18 @@
1
+ import React from 'react'
2
+ import { IconProps } from './keyboard/icon.types'
3
+ import Svg, { Path } from 'react-native-svg'
4
+
5
+ export const GeometryIcon = ({ size = 16, color }: IconProps) => {
6
+ return (
7
+ <Svg width={size} height={size} viewBox="0 0 16 16" fill="none">
8
+ <Path
9
+ d="M15.499 16.0009H14.998L15.499 15.4999V16.0009ZM0.399414 15.9902C0.204051 15.9502 0.0497107 15.7968 0.00976562 15.6015L0 15.5009V0.500901C9.37645e-05 0.0555518 0.538555 -0.167482 0.853516 0.147385L15.8525 15.1474C16.1674 15.4624 15.9444 16.0009 15.499 16.0009V15.4999L14.998 16.0009H0.5L0.399414 15.9902ZM1.59961 14.4003H12.8428L1.59961 3.15715V14.4003Z"
10
+ fill={color}
11
+ />
12
+ <Path
13
+ d="M5.09541 10.7012C5.20587 10.7012 5.29541 10.7907 5.29541 10.9012V13.5055C5.29541 13.616 5.20587 13.7055 5.09541 13.7055H4.20604C4.09558 13.7055 4.00604 13.616 4.00604 13.5055V12.1898C4.00604 12.0793 3.9165 11.9898 3.80604 11.9898H2.49108C2.38062 11.9898 2.29108 11.9002 2.29108 11.7898V10.9012C2.29108 10.7907 2.38062 10.7012 2.49108 10.7012H5.09541Z"
14
+ fill={color}
15
+ />
16
+ </Svg>
17
+ )
18
+ }
@@ -2,11 +2,13 @@ import React from 'react'
2
2
  import { IconProps } from './icon.types'
3
3
  import Svg, { Path } from 'react-native-svg'
4
4
 
5
+ const ASPECT_RATIO = 20 / 18
6
+
5
7
  export const AngleIcon = ({ size = 20, color }: IconProps) => {
6
8
  return (
7
- <Svg width={size} height={size} viewBox="0 0 16 16" fill="none">
9
+ <Svg width={size} height={size / ASPECT_RATIO} viewBox="0 0 20 18" fill="none">
8
10
  <Path
9
- d="M8.94912 6.74144C9.20676 6.46187 9.63941 6.41761 9.9501 6.65062C10.2606 6.88377 10.3389 7.31141 10.1425 7.63695L10.0995 7.70043L6.49991 12.5002H10.9999C11.4141 12.5002 11.7499 12.836 11.7499 13.2502C11.7499 13.6644 11.4141 14.0002 10.9999 14.0002H4.99991C4.71583 14.0002 4.45605 13.8393 4.32901 13.5852C4.20219 13.3312 4.22994 13.0272 4.4003 12.8L8.9003 6.80004L8.94912 6.74144Z"
11
+ d="M11.841 3.87043C12.1077 3.5183 12.6099 3.44943 12.962 3.71614C13.3142 3.98288 13.384 4.48502 13.1173 4.83723L7.17238 12.6866C7.12249 12.7525 7.16947 12.847 7.25209 12.847H14.5587C15.0004 12.8471 15.3584 13.2051 15.3585 13.6468C15.3585 14.0885 15.0004 14.4465 14.5587 14.4466H5.44154C5.13785 14.4466 4.85992 14.2752 4.72474 14.0032C4.58961 13.7314 4.62065 13.4065 4.80384 13.1644L11.841 3.87043Z"
10
12
  fill={color}
11
13
  />
12
14
  </Svg>
@@ -1,20 +1,17 @@
1
1
  import React from 'react'
2
2
  import { IconProps } from './icon.types'
3
- import Svg, { Path } from 'react-native-svg'
3
+ import Svg, { Path, Rect } from 'react-native-svg'
4
4
 
5
- const ASPECT_RATIO = 20 / 21
5
+ const ASPECT_RATIO = 19 / 20
6
6
 
7
7
  export const BidirectionalSegmentIcon = ({ size = 20, color }: IconProps) => {
8
8
  return (
9
- <Svg width={size * ASPECT_RATIO} height={size} viewBox="0 0 20 21" fill="none">
9
+ <Svg width={size} height={size / ASPECT_RATIO} viewBox="0 0 19 20" fill="none">
10
10
  <Path
11
- d="M16.6464 0.146692C16.8173 -0.0241721 17.0813 -0.0459256 17.2754 0.0822385L17.3535 0.146692L19.3535 2.14669L19.4179 2.22482C19.5461 2.4189 19.5243 2.68286 19.3535 2.85372L17.3535 4.85372C17.1582 5.04899 16.8417 5.04899 16.6464 4.85372C16.4512 4.65846 16.4512 4.34195 16.6464 4.14669L17.7929 3.00021H2.20699L3.35348 4.14669L3.41793 4.22482C3.5461 4.4189 3.52434 4.68286 3.35348 4.85372C3.18261 5.02459 2.91865 5.04634 2.72457 4.91818L2.64645 4.85372L0.646447 2.85372C0.451184 2.65846 0.451184 2.34195 0.646447 2.14669L2.64645 0.146692L2.72457 0.0822385C2.91865 -0.0459256 3.18261 -0.0241721 3.35348 0.146692C3.52434 0.317555 3.5461 0.581519 3.41793 0.775598L3.35348 0.853723L2.20699 2.00021H17.7929L16.6464 0.853723L16.582 0.775598C16.4538 0.581519 16.4756 0.317555 16.6464 0.146692Z"
12
- fill={color}
13
- />
14
- <Path
15
- d="M8.07948 17L7.70148 14.55H3.52948L2.01748 17H0.407484L6.55348 7.2H7.91149L9.52148 17H8.07948ZM4.32748 13.22H7.51948L6.87548 9.09L4.32748 13.22ZM16.4822 7.2C18.0922 7.2 18.8762 8.236 18.8762 9.342C18.8762 10.434 18.1762 11.54 16.8322 11.82C17.9662 12.128 18.4842 12.996 18.4842 13.906C18.4842 15.432 17.1402 17 14.8162 17H11.0502L13.3182 7.2H16.4822ZM12.7582 15.698H14.9842C16.3842 15.698 17.0562 14.788 17.0562 13.906C17.0562 13.164 16.4822 12.506 15.4042 12.506H13.5002L12.7582 15.698ZM13.7522 11.358H15.5722C16.7762 11.358 17.4482 10.49 17.4482 9.692C17.4482 8.95 16.9862 8.502 16.0202 8.502H14.4102L13.7522 11.358Z"
11
+ d="M16.1464 1.52657C16.3173 1.35571 16.5813 1.33396 16.7754 1.46212L16.8535 1.52657L18.8535 3.52657L18.9179 3.6047C19.0461 3.79878 19.0243 4.06274 18.8535 4.23361L16.8535 6.23361C16.6582 6.42887 16.3417 6.42887 16.1464 6.23361C15.9512 6.03834 15.9512 5.72184 16.1464 5.52657L17.2929 4.38009H1.70699L2.85348 5.52657L2.91793 5.6047C3.0461 5.79878 3.02434 6.06274 2.85348 6.23361C2.68261 6.40447 2.41865 6.42622 2.22457 6.29806L2.14645 6.23361L0.146447 4.23361C-0.0488155 4.03834 -0.0488155 3.72184 0.146447 3.52657L2.14645 1.52657L2.22457 1.46212C2.41865 1.33396 2.68261 1.35571 2.85348 1.52657C3.02434 1.69744 3.0461 1.9614 2.91793 2.15548L2.85348 2.23361L1.70699 3.38009H17.2929L16.1464 2.23361L16.082 2.15548C15.9538 1.9614 15.9756 1.69744 16.1464 1.52657Z"
16
12
  fill={color}
17
13
  />
14
+ <Rect x="4.8801" y="8.87988" width="9.24" height="9.24" rx="1.548" stroke="#B3B3BC" />
18
15
  </Svg>
19
16
  )
20
17
  }
@@ -0,0 +1,16 @@
1
+ import React from 'react'
2
+ import { IconProps } from './icon.types'
3
+ import Svg, { Path } from 'react-native-svg'
4
+
5
+ const ASPECT_RATIO = 20 / 18
6
+
7
+ export const ImpliesIcon = ({ size = 20, color }: IconProps) => {
8
+ return (
9
+ <Svg width={size} height={size / ASPECT_RATIO} viewBox="0 0 20 18" fill="none">
10
+ <Path
11
+ d="M11.1808 4.25566C11.4933 3.94351 12.0004 3.94333 12.3127 4.25566L16.4904 8.43438C16.8025 8.74673 16.8025 9.25289 16.4904 9.56524L12.3127 13.7439C12.0004 14.0563 11.4933 14.0561 11.1808 13.7439C10.8684 13.4315 10.8684 12.9245 11.1808 12.6121L11.5441 12.2488H4.07538C3.63366 12.2487 3.27557 11.8908 3.27557 11.449C3.27573 11.0074 3.63376 10.6494 4.07538 10.6492H12.9781C13.0841 10.6492 13.1859 10.6071 13.2609 10.5321L14.7224 9.07052C14.7615 9.03146 14.7615 8.96815 14.7224 8.92909L13.2599 7.46657C13.1849 7.39156 13.0832 7.34941 12.9771 7.34941H4.07538C3.63366 7.34928 3.27557 6.99136 3.27557 6.54961C3.27573 6.108 3.63376 5.74994 4.07538 5.74981H11.5432L11.1808 5.3875C10.8685 5.07514 10.8686 4.5681 11.1808 4.25566Z"
12
+ fill={color}
13
+ />
14
+ </Svg>
15
+ )
16
+ }
@@ -0,0 +1,14 @@
1
+ import React from 'react'
2
+ import { IconProps } from './icon.types'
3
+ import Svg, { Path } from 'react-native-svg'
4
+
5
+ export const LetterAIcon = ({ size = 16, color }: IconProps) => {
6
+ return (
7
+ <Svg width={size} height={size} viewBox="0 0 16 16" fill="none">
8
+ <Path
9
+ d="M10.352 14L9.92 11.2H5.152L3.424 14H1.584L8.608 2.8H10.16L12 14H10.352ZM6.064 9.68H9.712L8.976 4.96L6.064 9.68Z"
10
+ fill={color}
11
+ />
12
+ </Svg>
13
+ )
14
+ }
@@ -0,0 +1,14 @@
1
+ import React from 'react'
2
+ import { IconProps } from './icon.types'
3
+ import Svg, { Path } from 'react-native-svg'
4
+
5
+ export const LetterBIcon = ({ size = 16, color }: IconProps) => {
6
+ return (
7
+ <Svg width={size} height={size} viewBox="0 0 16 16" fill="none">
8
+ <Path
9
+ d="M9.752 2.8C11.592 2.8 12.488 3.984 12.488 5.248C12.488 6.496 11.688 7.76 10.152 8.08C11.448 8.432 12.04 9.424 12.04 10.464C12.04 12.208 10.504 14 7.848 14H3.544L6.136 2.8H9.752ZM5.496 12.512H8.04C9.64 12.512 10.408 11.472 10.408 10.464C10.408 9.616 9.752 8.864 8.52 8.864H6.344L5.496 12.512ZM6.632 7.552H8.712C10.088 7.552 10.856 6.56 10.856 5.648C10.856 4.8 10.328 4.288 9.224 4.288H7.384L6.632 7.552Z"
10
+ fill={color}
11
+ />
12
+ </Svg>
13
+ )
14
+ }
@@ -0,0 +1,14 @@
1
+ import React from 'react'
2
+ import { IconProps } from './icon.types'
3
+ import Svg, { Path } from 'react-native-svg'
4
+
5
+ export const LetterCIcon = ({ size = 16, color }: IconProps) => {
6
+ return (
7
+ <Svg width={size} height={size} viewBox="0 0 16 16" fill="none">
8
+ <Path
9
+ d="M7.98 12.688C9.596 12.688 10.716 11.808 11.516 10.272L12.86 11.024C11.692 13.232 10.012 14.256 7.82 14.256C4.444 14.256 2.732 11.808 2.732 9.024C2.732 5.68 5.148 2.544 8.94 2.544C10.876 2.544 12.348 3.376 13.324 4.88L11.996 5.856C11.356 4.752 10.316 4.096 8.796 4.096C5.948 4.096 4.38 6.464 4.38 8.816C4.38 10.896 5.612 12.688 7.98 12.688Z"
10
+ fill={color}
11
+ />
12
+ </Svg>
13
+ )
14
+ }
@@ -1,18 +1,17 @@
1
1
  import React from 'react'
2
2
  import { IconProps } from './icon.types'
3
- import Svg, { Path } from 'react-native-svg'
3
+ import Svg, { Path, Rect } from 'react-native-svg'
4
+
5
+ const ASPECT_RATIO = 19 / 20
4
6
 
5
7
  export const LineSegmentIcon = ({ size = 20, color }: IconProps) => {
6
8
  return (
7
- <Svg width={size} height={size} viewBox="0 0 20 20" fill="none">
8
- <Path
9
- d="M19 1C19.2761 1 19.5 1.22386 19.5 1.5C19.5 1.77614 19.2761 2 19 2H1C0.723858 2 0.5 1.77614 0.5 1.5C0.5 1.22386 0.723858 1 1 1H19Z"
10
- fill={color}
11
- />
9
+ <Svg width={size} height={size / ASPECT_RATIO} viewBox="0 0 19 20" fill="none">
12
10
  <Path
13
- d="M8.07948 16L7.70148 13.55H3.52948L2.01748 16H0.407484L6.55348 6.2H7.91149L9.52148 16H8.07948ZM4.32748 12.22H7.51948L6.87548 8.09L4.32748 12.22ZM16.4822 6.2C18.0922 6.2 18.8762 7.236 18.8762 8.342C18.8762 9.434 18.1762 10.54 16.8322 10.82C17.9662 11.128 18.4842 11.996 18.4842 12.906C18.4842 14.432 17.1402 16 14.8162 16H11.0502L13.3182 6.2H16.4822ZM12.7582 14.698H14.9842C16.3842 14.698 17.0562 13.788 17.0562 12.906C17.0562 12.164 16.4822 11.506 15.4042 11.506H13.5002L12.7582 14.698ZM13.7522 10.358H15.5722C16.7762 10.358 17.4482 9.49 17.4482 8.692C17.4482 7.95 16.9862 7.502 16.0202 7.502H14.4102L13.7522 10.358Z"
11
+ d="M18.5 3.37988C18.7761 3.37988 19 3.60374 19 3.87988C19 4.15603 18.7761 4.37988 18.5 4.37988H0.5C0.223858 4.37988 0 4.15603 0 3.87988C0 3.60374 0.223858 3.37988 0.5 3.37988H18.5Z"
14
12
  fill={color}
15
13
  />
14
+ <Rect x="4.88" y="8.87988" width="9.24" height="9.24" rx="1.548" stroke="#B3B3BC" />
16
15
  </Svg>
17
16
  )
18
17
  }
@@ -1,20 +1,17 @@
1
1
  import React from 'react'
2
2
  import { IconProps } from './icon.types'
3
- import Svg, { Path } from 'react-native-svg'
3
+ import Svg, { Path, Rect } from 'react-native-svg'
4
4
 
5
- const ASPECT_RATIO = 20 / 21
5
+ const ASPECT_RATIO = 19 / 20
6
6
 
7
7
  export const RightDirectedSegmentIcon = ({ size = 20, color }: IconProps) => {
8
8
  return (
9
- <Svg width={size * ASPECT_RATIO} height={size} viewBox="0 0 20 21" fill="none">
9
+ <Svg width={size} height={size / ASPECT_RATIO} viewBox="0 0 19 20" fill="none">
10
10
  <Path
11
- d="M16.6465 0.146692C16.8173 -0.0241721 17.0813 -0.0459256 17.2754 0.0822385L17.3535 0.146692L19.3535 2.14669L19.418 2.22482C19.5461 2.4189 19.5244 2.68286 19.3535 2.85372L17.3535 4.85372C17.1583 5.04899 16.8417 5.04899 16.6465 4.85372C16.4512 4.65846 16.4512 4.34195 16.6465 4.14669L17.793 3.00021H1C0.723858 3.00021 0.5 2.77635 0.5 2.50021C0.5 2.22406 0.723858 2.00021 1 2.00021H17.793L16.6465 0.853723L16.582 0.775598C16.4539 0.581519 16.4756 0.317555 16.6465 0.146692Z"
12
- fill={color}
13
- />
14
- <Path
15
- d="M8.07948 17L7.70148 14.55H3.52948L2.01748 17H0.407484L6.55348 7.2H7.91149L9.52148 17H8.07948ZM4.32748 13.22H7.51948L6.87548 9.09L4.32748 13.22ZM16.4822 7.2C18.0922 7.2 18.8762 8.236 18.8762 9.342C18.8762 10.434 18.1762 11.54 16.8322 11.82C17.9662 12.128 18.4842 12.996 18.4842 13.906C18.4842 15.432 17.1402 17 14.8162 17H11.0502L13.3182 7.2H16.4822ZM12.7582 15.698H14.9842C16.3842 15.698 17.0562 14.788 17.0562 13.906C17.0562 13.164 16.4822 12.506 15.4042 12.506H13.5002L12.7582 15.698ZM13.7522 11.358H15.5722C16.7762 11.358 17.4482 10.49 17.4482 9.692C17.4482 8.95 16.9862 8.502 16.0202 8.502H14.4102L13.7522 11.358Z"
11
+ d="M16.1465 1.52657C16.3173 1.35571 16.5813 1.33396 16.7754 1.46212L16.8535 1.52657L18.8535 3.52657L18.918 3.6047C19.0461 3.79878 19.0244 4.06274 18.8535 4.23361L16.8535 6.23361C16.6583 6.42887 16.3417 6.42887 16.1465 6.23361C15.9512 6.03834 15.9512 5.72184 16.1465 5.52657L17.293 4.38009H0.5C0.223858 4.38009 0 4.15623 0 3.88009C0 3.60395 0.223858 3.38009 0.5 3.38009H17.293L16.1465 2.23361L16.082 2.15548C15.9539 1.9614 15.9756 1.69744 16.1465 1.52657Z"
16
12
  fill={color}
17
13
  />
14
+ <Rect x="4.8801" y="8.87988" width="9.24" height="9.24" rx="1.548" stroke="#B3B3BC" />
18
15
  </Svg>
19
16
  )
20
17
  }
@@ -0,0 +1,15 @@
1
+ import React from 'react'
2
+ import { IconProps } from './icon.types'
3
+ import Svg, { Circle } from 'react-native-svg'
4
+
5
+ const ASPECT_RATIO = 20 / 18
6
+
7
+ export const ThereforeIcon = ({ size = 20, color }: IconProps) => {
8
+ return (
9
+ <Svg width={size} height={size / ASPECT_RATIO} viewBox="0 0 20 18" fill="none">
10
+ <Circle cx="7.07972" cy="11.6398" r="1.8" fill={color} />
11
+ <Circle cx="12.9203" cy="11.6398" r="1.8" fill={color} />
12
+ <Circle cx="10" cy="6.36006" r="1.8" fill={color} />
13
+ </Svg>
14
+ )
15
+ }