@magmamath/students-features 1.3.3-rc.2 → 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.
- package/.claude/settings.local.json +25 -0
- package/.editorconfig +15 -0
- package/.eslintignore +2 -0
- package/.eslintrc +22 -0
- package/.gitattributes +3 -0
- package/.github/actions/setup/action.yml +37 -0
- package/.github/workflows/ci.yml +73 -0
- package/.gitignore +84 -0
- package/.idea/.gitignore +8 -0
- package/.idea/codeStyles/Project.xml +62 -0
- package/.idea/codeStyles/codeStyleConfig.xml +5 -0
- package/.idea/copilot.data.migration.agent.xml +6 -0
- package/.idea/copilot.data.migration.ask.xml +6 -0
- package/.idea/copilot.data.migration.ask2agent.xml +6 -0
- package/.idea/copilot.data.migration.edit.xml +6 -0
- package/.idea/inspectionProfiles/Project_Default.xml +8 -0
- package/.idea/jsLinters/eslint.xml +6 -0
- package/.idea/modules.xml +8 -0
- package/.idea/prettier.xml +7 -0
- package/.idea/students-features.iml +12 -0
- package/.idea/vcs.xml +6 -0
- package/.idea/workspace.xml +667 -0
- package/.nvmrc +1 -0
- package/.prettierrc +11 -0
- package/.release-it.json +17 -0
- package/.watchmanconfig +1 -0
- package/.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs +541 -0
- package/.yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs +28 -0
- package/.yarn/releases/yarn-3.6.1.cjs +874 -0
- package/babel.config.js +5 -0
- package/bob.config.js +25 -0
- package/dist/commonjs/features/chatbot/helpers.js +5 -1
- package/dist/commonjs/features/chatbot/helpers.js.map +1 -1
- package/dist/commonjs/features/chatbot/index.js.map +1 -1
- package/dist/commonjs/features/chatbot/model/ChatBotModel.js +7 -6
- package/dist/commonjs/features/chatbot/model/ChatBotModel.js.map +1 -1
- package/dist/commonjs/features/chatbot/model/ChatBoxTextManager.js +2 -1
- package/dist/commonjs/features/chatbot/model/ChatBoxTextManager.js.map +1 -1
- package/dist/commonjs/features/chatbot/model/DefaultMessageCreator.js +2 -4
- package/dist/commonjs/features/chatbot/model/DefaultMessageCreator.js.map +1 -1
- package/dist/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.js +3 -2
- package/dist/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.js.map +1 -1
- package/dist/commonjs/features/exampleSolution/model/ExampleSolutionApi.js +8 -4
- package/dist/commonjs/features/exampleSolution/model/ExampleSolutionApi.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.js +20 -72
- package/dist/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/GeometryLayout/GeometryLayout.js +33 -0
- package/dist/commonjs/features/keyboard/components/GeometryLayout/GeometryLayout.js.map +1 -0
- package/dist/commonjs/features/keyboard/components/SwitchableLayout/SwitchableLayout.js +94 -0
- package/dist/commonjs/features/keyboard/components/SwitchableLayout/SwitchableLayout.js.map +1 -0
- package/dist/commonjs/features/keyboard/components/SwitchableLayout/helpers.js +25 -0
- package/dist/commonjs/features/keyboard/components/SwitchableLayout/helpers.js.map +1 -0
- package/dist/commonjs/features/keyboard/components/{AlgebraLayout → SwitchableLayout}/types.js +1 -1
- package/dist/commonjs/features/keyboard/components/SwitchableLayout/types.js.map +1 -0
- package/dist/commonjs/features/keyboard/constants/groups/geometry.constants.js +11 -0
- package/dist/commonjs/features/keyboard/constants/groups/geometry.constants.js.map +1 -0
- package/dist/commonjs/features/keyboard/constants/groups/index.js +11 -0
- package/dist/commonjs/features/keyboard/constants/groups/index.js.map +1 -1
- package/dist/commonjs/features/keyboard/constants/keyboard.constants.js +6 -1
- package/dist/commonjs/features/keyboard/constants/keyboard.constants.js.map +1 -1
- package/dist/commonjs/features/keyboard/constants/keyboard.helpers.js +2 -0
- package/dist/commonjs/features/keyboard/constants/keyboard.helpers.js.map +1 -1
- package/dist/commonjs/features/keyboard/constants/keyboardLayouts.js +18 -8
- package/dist/commonjs/features/keyboard/constants/keyboardLayouts.js.map +1 -1
- package/dist/commonjs/features/keyboard/constants/keys/geometry.constants.js +86 -1
- package/dist/commonjs/features/keyboard/constants/keys/geometry.constants.js.map +1 -1
- package/dist/commonjs/features/keyboard/constants/keys/text.constants.js +9 -9
- package/dist/commonjs/features/keyboard/constants/keys/units.constants.js +2 -1
- package/dist/commonjs/features/keyboard/constants/keys/units.constants.js.map +1 -1
- package/dist/commonjs/features/keyboard/types/types.js +1 -0
- package/dist/commonjs/features/keyboard/types/types.js.map +1 -1
- package/dist/commonjs/index.js +38 -23
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/lib/types/keys.js +2 -0
- package/dist/commonjs/lib/types/keys.js.map +1 -0
- package/dist/commonjs/shared/icons/GeometryIcon.js +32 -0
- package/dist/commonjs/shared/icons/GeometryIcon.js.map +1 -0
- package/dist/commonjs/shared/icons/keyboard/AngleIcon.js +4 -3
- package/dist/commonjs/shared/icons/keyboard/AngleIcon.js.map +1 -1
- package/dist/commonjs/shared/icons/keyboard/BidirectionalSegmentIcon.js +12 -8
- package/dist/commonjs/shared/icons/keyboard/BidirectionalSegmentIcon.js.map +1 -1
- package/dist/commonjs/shared/icons/keyboard/ImpliesIcon.js +30 -0
- package/dist/commonjs/shared/icons/keyboard/ImpliesIcon.js.map +1 -0
- package/dist/commonjs/shared/icons/keyboard/LetterAIcon.js +29 -0
- package/dist/commonjs/shared/icons/keyboard/LetterAIcon.js.map +1 -0
- package/dist/commonjs/shared/icons/keyboard/LetterBIcon.js +29 -0
- package/dist/commonjs/shared/icons/keyboard/LetterBIcon.js.map +1 -0
- package/dist/commonjs/shared/icons/keyboard/LetterCIcon.js +29 -0
- package/dist/commonjs/shared/icons/keyboard/LetterCIcon.js.map +1 -0
- package/dist/commonjs/shared/icons/keyboard/LineSegmentIcon.js +11 -6
- package/dist/commonjs/shared/icons/keyboard/LineSegmentIcon.js.map +1 -1
- package/dist/commonjs/shared/icons/keyboard/RightDirectedSegmentIcon.js +12 -8
- package/dist/commonjs/shared/icons/keyboard/RightDirectedSegmentIcon.js.map +1 -1
- package/dist/commonjs/shared/icons/keyboard/ThereforeIcon.js +42 -0
- package/dist/commonjs/shared/icons/keyboard/ThereforeIcon.js.map +1 -0
- package/dist/commonjs/shared/icons/keyboard/TriangleIcon.js +32 -0
- package/dist/commonjs/shared/icons/keyboard/TriangleIcon.js.map +1 -0
- package/dist/commonjs/shared/translation/constants.js +17 -2
- package/dist/commonjs/shared/translation/constants.js.map +1 -1
- package/dist/commonjs/shared/translation/helpers.js +38 -8
- package/dist/commonjs/shared/translation/helpers.js.map +1 -1
- package/dist/commonjs/shared/translation/hooks.js +15 -7
- package/dist/commonjs/shared/translation/hooks.js.map +1 -1
- package/dist/commonjs/shared/translation/index.js +25 -0
- package/dist/commonjs/shared/translation/index.js.map +1 -1
- package/dist/commonjs/shared/translation/localization/ca.json +61 -0
- package/dist/commonjs/shared/translation/localization/de.json +61 -0
- package/{src/shared/translation/schema.json → dist/commonjs/shared/translation/localization/en.json} +38 -43
- package/dist/commonjs/shared/translation/localization/gb.json +61 -0
- package/dist/commonjs/shared/translation/localization/sct.json +61 -0
- package/dist/commonjs/shared/translation/localization/sw.json +61 -0
- package/dist/commonjs/shared/translation/model.js +15 -0
- package/dist/commonjs/shared/translation/model.js.map +1 -0
- package/dist/commonjs/shared/translation/validation.types.js +6 -0
- package/dist/commonjs/shared/translation/validation.types.js.map +1 -0
- package/dist/module/features/chatbot/helpers.js +5 -1
- package/dist/module/features/chatbot/helpers.js.map +1 -1
- package/dist/module/features/chatbot/index.js.map +1 -1
- package/dist/module/features/chatbot/model/ChatBotModel.js +7 -6
- package/dist/module/features/chatbot/model/ChatBotModel.js.map +1 -1
- package/dist/module/features/chatbot/model/ChatBoxTextManager.js +2 -1
- package/dist/module/features/chatbot/model/ChatBoxTextManager.js.map +1 -1
- package/dist/module/features/chatbot/model/DefaultMessageCreator.js +2 -3
- package/dist/module/features/chatbot/model/DefaultMessageCreator.js.map +1 -1
- package/dist/module/features/exampleSolution/components/ExampleSolutionModalContent.js +4 -3
- package/dist/module/features/exampleSolution/components/ExampleSolutionModalContent.js.map +1 -1
- package/dist/module/features/exampleSolution/model/ExampleSolutionApi.js +9 -5
- package/dist/module/features/exampleSolution/model/ExampleSolutionApi.js.map +1 -1
- package/dist/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.js +21 -72
- package/dist/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.js.map +1 -1
- package/dist/module/features/keyboard/components/GeometryLayout/GeometryLayout.js +27 -0
- package/dist/module/features/keyboard/components/GeometryLayout/GeometryLayout.js.map +1 -0
- package/dist/module/features/keyboard/components/SwitchableLayout/SwitchableLayout.js +87 -0
- package/dist/module/features/keyboard/components/SwitchableLayout/SwitchableLayout.js.map +1 -0
- package/dist/module/features/keyboard/components/SwitchableLayout/helpers.js +21 -0
- package/dist/module/features/keyboard/components/SwitchableLayout/helpers.js.map +1 -0
- package/dist/module/features/keyboard/components/{AlgebraLayout → SwitchableLayout}/types.js +1 -1
- package/dist/module/features/keyboard/components/SwitchableLayout/types.js.map +1 -0
- package/dist/module/features/keyboard/constants/groups/geometry.constants.js +7 -0
- package/dist/module/features/keyboard/constants/groups/geometry.constants.js.map +1 -0
- package/dist/module/features/keyboard/constants/groups/index.js +1 -0
- package/dist/module/features/keyboard/constants/groups/index.js.map +1 -1
- package/dist/module/features/keyboard/constants/keyboard.constants.js +5 -0
- package/dist/module/features/keyboard/constants/keyboard.constants.js.map +1 -1
- package/dist/module/features/keyboard/constants/keyboard.helpers.js +3 -1
- package/dist/module/features/keyboard/constants/keyboard.helpers.js.map +1 -1
- package/dist/module/features/keyboard/constants/keyboardLayouts.js +19 -9
- package/dist/module/features/keyboard/constants/keyboardLayouts.js.map +1 -1
- package/dist/module/features/keyboard/constants/keys/geometry.constants.js +86 -1
- package/dist/module/features/keyboard/constants/keys/geometry.constants.js.map +1 -1
- package/dist/module/features/keyboard/constants/keys/text.constants.js +9 -9
- package/dist/module/features/keyboard/constants/keys/units.constants.js +2 -1
- package/dist/module/features/keyboard/constants/keys/units.constants.js.map +1 -1
- package/dist/module/features/keyboard/types/types.js +1 -0
- package/dist/module/features/keyboard/types/types.js.map +1 -1
- package/dist/module/index.js +1 -0
- package/dist/module/index.js.map +1 -1
- package/dist/module/lib/types/keys.js +2 -0
- package/dist/module/lib/types/keys.js.map +1 -0
- package/dist/module/shared/icons/GeometryIcon.js +24 -0
- package/dist/module/shared/icons/GeometryIcon.js.map +1 -0
- package/dist/module/shared/icons/keyboard/AngleIcon.js +4 -3
- package/dist/module/shared/icons/keyboard/AngleIcon.js.map +1 -1
- package/dist/module/shared/icons/keyboard/BidirectionalSegmentIcon.js +13 -9
- package/dist/module/shared/icons/keyboard/BidirectionalSegmentIcon.js.map +1 -1
- package/dist/module/shared/icons/keyboard/ImpliesIcon.js +22 -0
- package/dist/module/shared/icons/keyboard/ImpliesIcon.js.map +1 -0
- package/dist/module/shared/icons/keyboard/LetterAIcon.js +21 -0
- package/dist/module/shared/icons/keyboard/LetterAIcon.js.map +1 -0
- package/dist/module/shared/icons/keyboard/LetterBIcon.js +21 -0
- package/dist/module/shared/icons/keyboard/LetterBIcon.js.map +1 -0
- package/dist/module/shared/icons/keyboard/LetterCIcon.js +21 -0
- package/dist/module/shared/icons/keyboard/LetterCIcon.js.map +1 -0
- package/dist/module/shared/icons/keyboard/LineSegmentIcon.js +12 -7
- package/dist/module/shared/icons/keyboard/LineSegmentIcon.js.map +1 -1
- package/dist/module/shared/icons/keyboard/RightDirectedSegmentIcon.js +13 -9
- package/dist/module/shared/icons/keyboard/RightDirectedSegmentIcon.js.map +1 -1
- package/dist/module/shared/icons/keyboard/ThereforeIcon.js +34 -0
- package/dist/module/shared/icons/keyboard/ThereforeIcon.js.map +1 -0
- package/dist/module/shared/icons/keyboard/TriangleIcon.js +24 -0
- package/dist/module/shared/icons/keyboard/TriangleIcon.js.map +1 -0
- package/dist/module/shared/translation/constants.js +15 -1
- package/dist/module/shared/translation/constants.js.map +1 -1
- package/dist/module/shared/translation/helpers.js +33 -6
- package/dist/module/shared/translation/helpers.js.map +1 -1
- package/dist/module/shared/translation/hooks.js +14 -7
- package/dist/module/shared/translation/hooks.js.map +1 -1
- package/dist/module/shared/translation/index.js +3 -2
- package/dist/module/shared/translation/index.js.map +1 -1
- package/dist/module/shared/translation/localization/ca.json +61 -0
- package/dist/module/shared/translation/localization/de.json +61 -0
- package/dist/{commonjs/shared/translation/schema.json → module/shared/translation/localization/en.json} +38 -43
- package/dist/module/shared/translation/localization/gb.json +61 -0
- package/dist/module/shared/translation/localization/sct.json +61 -0
- package/dist/module/shared/translation/localization/sw.json +61 -0
- package/dist/module/shared/translation/model.js +11 -0
- package/dist/module/shared/translation/model.js.map +1 -0
- package/dist/module/shared/translation/validation.types.js +4 -0
- package/dist/module/shared/translation/validation.types.js.map +1 -0
- package/dist/typescript/commonjs/features/chatbot/helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/index.d.ts +1 -1
- package/dist/typescript/commonjs/features/chatbot/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/model/ChatBotModel.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/model/ChatBoxTextManager.d.ts +1 -1
- package/dist/typescript/commonjs/features/chatbot/model/ChatBoxTextManager.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/model/DefaultMessageCreator.d.ts +2 -1
- package/dist/typescript/commonjs/features/chatbot/model/DefaultMessageCreator.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/chatbot/types/api.types.d.ts +8 -6
- package/dist/typescript/commonjs/features/chatbot/types/api.types.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolutionApi.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.d.ts +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/GeometryLayout/GeometryLayout.d.ts +4 -0
- package/dist/typescript/commonjs/features/keyboard/components/GeometryLayout/GeometryLayout.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/keyboard/components/SwitchableLayout/SwitchableLayout.d.ts +4 -0
- package/dist/typescript/commonjs/features/keyboard/components/SwitchableLayout/SwitchableLayout.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/keyboard/components/SwitchableLayout/helpers.d.ts +12 -0
- package/dist/typescript/commonjs/features/keyboard/components/SwitchableLayout/helpers.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/keyboard/components/SwitchableLayout/types.d.ts +21 -0
- package/dist/typescript/commonjs/features/keyboard/components/SwitchableLayout/types.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/keyboard/constants/groups/geometry.constants.d.ts +3 -0
- package/dist/typescript/commonjs/features/keyboard/constants/groups/geometry.constants.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/keyboard/constants/groups/index.d.ts +1 -0
- package/dist/typescript/commonjs/features/keyboard/constants/groups/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/constants/keyboard.constants.d.ts +5 -0
- package/dist/typescript/commonjs/features/keyboard/constants/keyboard.constants.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/constants/keyboard.helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/constants/keyboardLayouts.d.ts +13 -4
- package/dist/typescript/commonjs/features/keyboard/constants/keyboardLayouts.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/constants/keys/geometry.constants.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/constants/keys/units.constants.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/types/types.d.ts +1 -0
- package/dist/typescript/commonjs/features/keyboard/types/types.d.ts.map +1 -1
- package/dist/typescript/commonjs/index.d.ts +1 -0
- package/dist/typescript/commonjs/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/lib/components/ConditionalWrapper.d.ts +1 -1
- package/dist/typescript/commonjs/lib/types/keys.d.ts +8 -0
- package/dist/typescript/commonjs/lib/types/keys.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/icons/GeometryIcon.d.ts +4 -0
- package/dist/typescript/commonjs/shared/icons/GeometryIcon.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/icons/keyboard/AngleIcon.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/icons/keyboard/BidirectionalSegmentIcon.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/icons/keyboard/ImpliesIcon.d.ts +4 -0
- package/dist/typescript/commonjs/shared/icons/keyboard/ImpliesIcon.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/icons/keyboard/LetterAIcon.d.ts +4 -0
- package/dist/typescript/commonjs/shared/icons/keyboard/LetterAIcon.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/icons/keyboard/LetterBIcon.d.ts +4 -0
- package/dist/typescript/commonjs/shared/icons/keyboard/LetterBIcon.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/icons/keyboard/LetterCIcon.d.ts +4 -0
- package/dist/typescript/commonjs/shared/icons/keyboard/LetterCIcon.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/icons/keyboard/LineSegmentIcon.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/icons/keyboard/RightDirectedSegmentIcon.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/icons/keyboard/ThereforeIcon.d.ts +4 -0
- package/dist/typescript/commonjs/shared/icons/keyboard/ThereforeIcon.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/icons/keyboard/TriangleIcon.d.ts +4 -0
- package/dist/typescript/commonjs/shared/icons/keyboard/TriangleIcon.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/translation/constants.d.ts +368 -1
- package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/translation/helpers.d.ts +5 -1
- package/dist/typescript/commonjs/shared/translation/helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/translation/hooks.d.ts +3 -1
- package/dist/typescript/commonjs/shared/translation/hooks.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/translation/index.d.ts +3 -3
- package/dist/typescript/commonjs/shared/translation/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/translation/model.d.ts +125 -0
- package/dist/typescript/commonjs/shared/translation/model.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/translation/types.d.ts +4 -3
- package/dist/typescript/commonjs/shared/translation/types.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/translation/validation.types.d.ts +21 -0
- package/dist/typescript/commonjs/shared/translation/validation.types.d.ts.map +1 -0
- package/dist/typescript/module/features/chatbot/helpers.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/index.d.ts +1 -1
- package/dist/typescript/module/features/chatbot/index.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/model/ChatBotModel.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/model/ChatBoxTextManager.d.ts +1 -1
- package/dist/typescript/module/features/chatbot/model/ChatBoxTextManager.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/model/DefaultMessageCreator.d.ts +2 -1
- package/dist/typescript/module/features/chatbot/model/DefaultMessageCreator.d.ts.map +1 -1
- package/dist/typescript/module/features/chatbot/types/api.types.d.ts +8 -6
- package/dist/typescript/module/features/chatbot/types/api.types.d.ts.map +1 -1
- package/dist/typescript/module/features/exampleSolution/components/ExampleSolutionModalContent.d.ts.map +1 -1
- package/dist/typescript/module/features/exampleSolution/model/ExampleSolutionApi.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.d.ts +1 -1
- package/dist/typescript/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/GeometryLayout/GeometryLayout.d.ts +4 -0
- package/dist/typescript/module/features/keyboard/components/GeometryLayout/GeometryLayout.d.ts.map +1 -0
- package/dist/typescript/module/features/keyboard/components/SwitchableLayout/SwitchableLayout.d.ts +4 -0
- package/dist/typescript/module/features/keyboard/components/SwitchableLayout/SwitchableLayout.d.ts.map +1 -0
- package/dist/typescript/module/features/keyboard/components/SwitchableLayout/helpers.d.ts +12 -0
- package/dist/typescript/module/features/keyboard/components/SwitchableLayout/helpers.d.ts.map +1 -0
- package/dist/typescript/module/features/keyboard/components/SwitchableLayout/types.d.ts +21 -0
- package/dist/typescript/module/features/keyboard/components/SwitchableLayout/types.d.ts.map +1 -0
- package/dist/typescript/module/features/keyboard/constants/groups/geometry.constants.d.ts +3 -0
- package/dist/typescript/module/features/keyboard/constants/groups/geometry.constants.d.ts.map +1 -0
- package/dist/typescript/module/features/keyboard/constants/groups/index.d.ts +1 -0
- package/dist/typescript/module/features/keyboard/constants/groups/index.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/constants/keyboard.constants.d.ts +5 -0
- package/dist/typescript/module/features/keyboard/constants/keyboard.constants.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/constants/keyboard.helpers.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/constants/keyboardLayouts.d.ts +13 -4
- package/dist/typescript/module/features/keyboard/constants/keyboardLayouts.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/constants/keys/geometry.constants.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/constants/keys/units.constants.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/types/types.d.ts +1 -0
- package/dist/typescript/module/features/keyboard/types/types.d.ts.map +1 -1
- package/dist/typescript/module/index.d.ts +1 -0
- package/dist/typescript/module/index.d.ts.map +1 -1
- package/dist/typescript/module/lib/components/ConditionalWrapper.d.ts +1 -1
- package/dist/typescript/module/lib/types/keys.d.ts +8 -0
- package/dist/typescript/module/lib/types/keys.d.ts.map +1 -0
- package/dist/typescript/module/shared/icons/GeometryIcon.d.ts +4 -0
- package/dist/typescript/module/shared/icons/GeometryIcon.d.ts.map +1 -0
- package/dist/typescript/module/shared/icons/keyboard/AngleIcon.d.ts.map +1 -1
- package/dist/typescript/module/shared/icons/keyboard/BidirectionalSegmentIcon.d.ts.map +1 -1
- package/dist/typescript/module/shared/icons/keyboard/ImpliesIcon.d.ts +4 -0
- package/dist/typescript/module/shared/icons/keyboard/ImpliesIcon.d.ts.map +1 -0
- package/dist/typescript/module/shared/icons/keyboard/LetterAIcon.d.ts +4 -0
- package/dist/typescript/module/shared/icons/keyboard/LetterAIcon.d.ts.map +1 -0
- package/dist/typescript/module/shared/icons/keyboard/LetterBIcon.d.ts +4 -0
- package/dist/typescript/module/shared/icons/keyboard/LetterBIcon.d.ts.map +1 -0
- package/dist/typescript/module/shared/icons/keyboard/LetterCIcon.d.ts +4 -0
- package/dist/typescript/module/shared/icons/keyboard/LetterCIcon.d.ts.map +1 -0
- package/dist/typescript/module/shared/icons/keyboard/LineSegmentIcon.d.ts.map +1 -1
- package/dist/typescript/module/shared/icons/keyboard/RightDirectedSegmentIcon.d.ts.map +1 -1
- package/dist/typescript/module/shared/icons/keyboard/ThereforeIcon.d.ts +4 -0
- package/dist/typescript/module/shared/icons/keyboard/ThereforeIcon.d.ts.map +1 -0
- package/dist/typescript/module/shared/icons/keyboard/TriangleIcon.d.ts +4 -0
- package/dist/typescript/module/shared/icons/keyboard/TriangleIcon.d.ts.map +1 -0
- package/dist/typescript/module/shared/translation/constants.d.ts +368 -1
- package/dist/typescript/module/shared/translation/constants.d.ts.map +1 -1
- package/dist/typescript/module/shared/translation/helpers.d.ts +5 -1
- package/dist/typescript/module/shared/translation/helpers.d.ts.map +1 -1
- package/dist/typescript/module/shared/translation/hooks.d.ts +3 -1
- package/dist/typescript/module/shared/translation/hooks.d.ts.map +1 -1
- package/dist/typescript/module/shared/translation/index.d.ts +3 -3
- package/dist/typescript/module/shared/translation/index.d.ts.map +1 -1
- package/dist/typescript/module/shared/translation/model.d.ts +125 -0
- package/dist/typescript/module/shared/translation/model.d.ts.map +1 -0
- package/dist/typescript/module/shared/translation/types.d.ts +4 -3
- package/dist/typescript/module/shared/translation/types.d.ts.map +1 -1
- package/dist/typescript/module/shared/translation/validation.types.d.ts +21 -0
- package/dist/typescript/module/shared/translation/validation.types.d.ts.map +1 -0
- package/example/.expo/README.md +8 -0
- package/example/.expo/devices.json +3 -0
- package/example/.expo/web/cache/production/images/favicon/favicon-24272cdaeff82cc5facdaccd982a6f05b60c4504704bbf94c19a6388659880bb-contain-transparent/favicon-48.png +0 -0
- package/example/app.json +30 -0
- package/example/assets/adaptive-icon.png +0 -0
- package/example/assets/favicon.png +0 -0
- package/example/assets/icon.png +0 -0
- package/example/assets/splash-icon.png +0 -0
- package/example/babel.config.js +28 -0
- package/example/index.js +8 -0
- package/example/metro.config.js +18 -0
- package/example/package.json +25 -0
- package/example/src/App.tsx +8 -0
- package/example/tsconfig.json +6 -0
- package/package.json +4 -9
- package/src/features/chatbot/helpers.ts +2 -0
- package/src/features/chatbot/index.ts +9 -1
- package/src/features/chatbot/model/ChatBotModel.ts +7 -10
- package/src/features/chatbot/model/ChatBoxTextManager.ts +3 -2
- package/src/features/chatbot/model/DefaultMessageCreator.ts +3 -3
- package/src/features/chatbot/types/api.types.ts +11 -6
- package/src/features/exampleSolution/components/ExampleSolutionModalContent.tsx +4 -3
- package/src/features/exampleSolution/model/ExampleSolutionApi.ts +9 -5
- package/src/features/keyboard/components/AlgebraLayout/AlgebraLayout.tsx +17 -73
- package/src/features/keyboard/components/GeometryLayout/GeometryLayout.tsx +21 -0
- package/src/features/keyboard/components/SwitchableLayout/SwitchableLayout.tsx +100 -0
- package/src/features/keyboard/components/SwitchableLayout/helpers.tsx +31 -0
- package/src/features/keyboard/components/SwitchableLayout/types.ts +24 -0
- package/src/features/keyboard/constants/groups/geometry.constants.ts +25 -0
- package/src/features/keyboard/constants/groups/index.ts +1 -0
- package/src/features/keyboard/constants/keyboard.constants.ts +6 -0
- package/src/features/keyboard/constants/keyboard.helpers.ts +3 -0
- package/src/features/keyboard/constants/keyboardLayouts.ts +15 -5
- package/src/features/keyboard/constants/keys/geometry.constants.tsx +61 -1
- package/src/features/keyboard/constants/keys/text.constants.tsx +9 -9
- package/src/features/keyboard/constants/keys/units.constants.tsx +1 -0
- package/src/features/keyboard/types/types.ts +1 -0
- package/src/index.ts +1 -0
- package/src/lib/types/keys.ts +18 -0
- package/src/shared/icons/GeometryIcon.tsx +18 -0
- package/src/shared/icons/keyboard/AngleIcon.tsx +4 -2
- package/src/shared/icons/keyboard/BidirectionalSegmentIcon.tsx +5 -8
- package/src/shared/icons/keyboard/ImpliesIcon.tsx +16 -0
- package/src/shared/icons/keyboard/LetterAIcon.tsx +14 -0
- package/src/shared/icons/keyboard/LetterBIcon.tsx +14 -0
- package/src/shared/icons/keyboard/LetterCIcon.tsx +14 -0
- package/src/shared/icons/keyboard/LineSegmentIcon.tsx +6 -7
- package/src/shared/icons/keyboard/RightDirectedSegmentIcon.tsx +5 -8
- package/src/shared/icons/keyboard/ThereforeIcon.tsx +15 -0
- package/src/shared/icons/keyboard/TriangleIcon.tsx +18 -0
- package/src/shared/translation/constants.ts +16 -1
- package/src/shared/translation/helpers.ts +45 -5
- package/src/shared/translation/hooks.ts +22 -6
- package/src/shared/translation/index.ts +3 -3
- package/src/shared/translation/localization/ca.json +61 -0
- package/src/shared/translation/localization/de.json +61 -0
- package/{dist/module/shared/translation/schema.json → src/shared/translation/localization/en.json} +38 -43
- package/src/shared/translation/localization/gb.json +61 -0
- package/src/shared/translation/localization/sct.json +61 -0
- package/src/shared/translation/localization/sw.json +61 -0
- package/src/shared/translation/model.ts +16 -0
- package/src/shared/translation/types.ts +19 -3
- package/src/shared/translation/validation.types.ts +34 -0
- package/tsconfig.build.json +4 -0
- package/tsconfig.json +34 -0
- package/yarn.lock +10957 -0
- package/dist/commonjs/features/keyboard/components/AlgebraLayout/helpers.js +0 -41
- package/dist/commonjs/features/keyboard/components/AlgebraLayout/helpers.js.map +0 -1
- package/dist/commonjs/features/keyboard/components/AlgebraLayout/types.js.map +0 -1
- package/dist/commonjs/shared/translation/react-i18next.d.js +0 -5
- package/dist/commonjs/shared/translation/react-i18next.d.js.map +0 -1
- package/dist/module/features/keyboard/components/AlgebraLayout/helpers.js +0 -36
- package/dist/module/features/keyboard/components/AlgebraLayout/helpers.js.map +0 -1
- package/dist/module/features/keyboard/components/AlgebraLayout/types.js.map +0 -1
- package/dist/module/shared/translation/react-i18next.d.js +0 -5
- package/dist/module/shared/translation/react-i18next.d.js.map +0 -1
- package/dist/typescript/commonjs/features/keyboard/components/AlgebraLayout/helpers.d.ts +0 -15
- package/dist/typescript/commonjs/features/keyboard/components/AlgebraLayout/helpers.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/keyboard/components/AlgebraLayout/types.d.ts +0 -5
- package/dist/typescript/commonjs/features/keyboard/components/AlgebraLayout/types.d.ts.map +0 -1
- package/dist/typescript/module/features/keyboard/components/AlgebraLayout/helpers.d.ts +0 -15
- package/dist/typescript/module/features/keyboard/components/AlgebraLayout/helpers.d.ts.map +0 -1
- package/dist/typescript/module/features/keyboard/components/AlgebraLayout/types.d.ts +0 -5
- package/dist/typescript/module/features/keyboard/components/AlgebraLayout/types.d.ts.map +0 -1
- package/src/features/keyboard/components/AlgebraLayout/helpers.tsx +0 -52
- package/src/features/keyboard/components/AlgebraLayout/types.ts +0 -4
- package/src/shared/translation/react-i18next.d.ts +0 -21
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ReactNode } from 'react'
|
|
2
|
+
import { SelectedLayout, LayoutOption } from './types'
|
|
3
|
+
|
|
4
|
+
type GetSelectOptionsProps = {
|
|
5
|
+
selectedLayout: SelectedLayout
|
|
6
|
+
onBasicPressIn: () => void
|
|
7
|
+
onSecondaryPressIn: () => void
|
|
8
|
+
BasicIcon: (isSelected: boolean) => ReactNode
|
|
9
|
+
SecondaryIcon: (isSelected: boolean) => ReactNode
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export function getSelectOptions({
|
|
13
|
+
selectedLayout,
|
|
14
|
+
onBasicPressIn,
|
|
15
|
+
onSecondaryPressIn,
|
|
16
|
+
BasicIcon,
|
|
17
|
+
SecondaryIcon,
|
|
18
|
+
}: GetSelectOptionsProps): LayoutOption[] {
|
|
19
|
+
return [
|
|
20
|
+
{
|
|
21
|
+
key: SelectedLayout.BASIC,
|
|
22
|
+
title: BasicIcon(selectedLayout === SelectedLayout.BASIC),
|
|
23
|
+
onPressIn: onBasicPressIn,
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
key: SelectedLayout.SECONDARY,
|
|
27
|
+
title: SecondaryIcon(selectedLayout === SelectedLayout.SECONDARY),
|
|
28
|
+
onPressIn: onSecondaryPressIn,
|
|
29
|
+
},
|
|
30
|
+
]
|
|
31
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -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:
|
|
23
|
+
mobileBreakpoint: MOBILE_BREAKPOINT.LARGE,
|
|
23
24
|
},
|
|
24
25
|
[KeyboardType.Basic]: {
|
|
25
26
|
Component: BasicLayout,
|
|
26
27
|
characterTypes: [MyScriptMathCharacterTypes.NUMBERS_WHOLE],
|
|
27
|
-
mobileBreakpoint:
|
|
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:
|
|
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.
|
|
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: '
|
|
11
|
-
mathliveValue: '
|
|
12
|
-
katexValue: '
|
|
10
|
+
label: 'A',
|
|
11
|
+
mathliveValue: 'A',
|
|
12
|
+
katexValue: 'A',
|
|
13
13
|
},
|
|
14
14
|
B: {
|
|
15
|
-
label: '
|
|
16
|
-
mathliveValue: '
|
|
17
|
-
katexValue: '
|
|
15
|
+
label: 'B',
|
|
16
|
+
mathliveValue: 'B',
|
|
17
|
+
katexValue: 'B',
|
|
18
18
|
},
|
|
19
19
|
C: {
|
|
20
|
-
label: '
|
|
21
|
-
mathliveValue: '
|
|
22
|
-
katexValue: '
|
|
20
|
+
label: 'C',
|
|
21
|
+
mathliveValue: 'C',
|
|
22
|
+
katexValue: 'C',
|
|
23
23
|
},
|
|
24
24
|
F: {
|
|
25
25
|
label: 'f',
|
package/src/index.ts
CHANGED
|
@@ -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
|
|
9
|
+
<Svg width={size} height={size / ASPECT_RATIO} viewBox="0 0 20 18" fill="none">
|
|
8
10
|
<Path
|
|
9
|
-
d="
|
|
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 =
|
|
5
|
+
const ASPECT_RATIO = 19 / 20
|
|
6
6
|
|
|
7
7
|
export const BidirectionalSegmentIcon = ({ size = 20, color }: IconProps) => {
|
|
8
8
|
return (
|
|
9
|
-
<Svg width={size
|
|
9
|
+
<Svg width={size} height={size / ASPECT_RATIO} viewBox="0 0 19 20" fill="none">
|
|
10
10
|
<Path
|
|
11
|
-
d="M16.
|
|
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
|
|
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="
|
|
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 =
|
|
5
|
+
const ASPECT_RATIO = 19 / 20
|
|
6
6
|
|
|
7
7
|
export const RightDirectedSegmentIcon = ({ size = 20, color }: IconProps) => {
|
|
8
8
|
return (
|
|
9
|
-
<Svg width={size
|
|
9
|
+
<Svg width={size} height={size / ASPECT_RATIO} viewBox="0 0 19 20" fill="none">
|
|
10
10
|
<Path
|
|
11
|
-
d="M16.
|
|
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
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
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 TriangleIcon = ({ 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="M9.82983 3.56494C9.9081 3.43933 10.0913 3.43941 10.1697 3.56494L16.2488 13.3228C16.3317 13.4559 16.2366 13.6281 16.0798 13.6284H3.92065C3.76376 13.6284 3.66791 13.456 3.75073 13.3228L9.82983 3.56494Z"
|
|
12
|
+
stroke={color}
|
|
13
|
+
strokeWidth="1.6"
|
|
14
|
+
strokeLinejoin="round"
|
|
15
|
+
/>
|
|
16
|
+
</Svg>
|
|
17
|
+
)
|
|
18
|
+
}
|
|
@@ -1 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
import { Locale } from '@magmamath/frontend-config'
|
|
2
|
+
import EN from './localization/en.json'
|
|
3
|
+
import GB from './localization/gb.json'
|
|
4
|
+
import SW from './localization/sw.json'
|
|
5
|
+
import CA from './localization/ca.json'
|
|
6
|
+
import SCT from './localization/sct.json'
|
|
7
|
+
import DE from './localization/de.json'
|
|
8
|
+
|
|
9
|
+
export const LOCALIZATION_CONFIGS = {
|
|
10
|
+
[Locale.US]: EN,
|
|
11
|
+
[Locale.GB]: GB,
|
|
12
|
+
[Locale.SE]: SW,
|
|
13
|
+
[Locale.CA]: CA,
|
|
14
|
+
[Locale.SCT]: SCT,
|
|
15
|
+
[Locale.DE]: DE,
|
|
16
|
+
}
|