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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. package/dist/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.js +2 -9
  2. package/dist/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.js.map +1 -1
  3. package/dist/commonjs/features/keyboard/components/AlgebraLayout/helpers.js +3 -13
  4. package/dist/commonjs/features/keyboard/components/AlgebraLayout/helpers.js.map +1 -1
  5. package/dist/commonjs/features/keyboard/components/BasicLayout/keyboardGroups.js +5 -1
  6. package/dist/commonjs/features/keyboard/components/BasicLayout/keyboardGroups.js.map +1 -1
  7. package/dist/commonjs/features/keyboard/components/Keyboard.js +4 -4
  8. package/dist/commonjs/features/keyboard/components/Keyboard.js.map +1 -1
  9. package/dist/commonjs/features/keyboard/components/UnitsLayout/UnitsLayout.js +2 -6
  10. package/dist/commonjs/features/keyboard/components/UnitsLayout/UnitsLayout.js.map +1 -1
  11. package/dist/commonjs/features/keyboard/components/UnitsLayout/helpers.js +3 -10
  12. package/dist/commonjs/features/keyboard/components/UnitsLayout/helpers.js.map +1 -1
  13. package/dist/commonjs/features/keyboard/constants/keyboardGroupsByLocale.js +21 -3
  14. package/dist/commonjs/features/keyboard/constants/keyboardGroupsByLocale.js.map +1 -1
  15. package/dist/commonjs/features/keyboard/types/MathKeysGroups/basicOperators.js +0 -27
  16. package/dist/commonjs/features/keyboard/types/MathKeysGroups/basicOperators.js.map +1 -1
  17. package/dist/commonjs/features/keyboard/types/keyboardGroupIds.js +1 -1
  18. package/dist/commonjs/features/keyboard/types/types.js +0 -1
  19. package/dist/commonjs/features/keyboard/types/types.js.map +1 -1
  20. package/dist/commonjs/lib/helpers/helpers.js +28 -5
  21. package/dist/commonjs/lib/helpers/helpers.js.map +1 -1
  22. package/dist/commonjs/shared/translation/constants.js +3 -1
  23. package/dist/commonjs/shared/translation/constants.js.map +1 -1
  24. package/dist/commonjs/shared/translation/localization/ca.json +5 -5
  25. package/dist/commonjs/shared/translation/localization/de.json +42 -0
  26. package/dist/commonjs/shared/translation/localization/en.json +5 -5
  27. package/dist/commonjs/shared/translation/localization/gb.json +5 -5
  28. package/dist/commonjs/shared/translation/localization/sct.json +5 -5
  29. package/dist/commonjs/shared/translation/localization/sw.json +5 -5
  30. package/dist/commonjs/shared/translation/types.js +1 -0
  31. package/dist/commonjs/shared/translation/types.js.map +1 -1
  32. package/dist/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.js +2 -9
  33. package/dist/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.js.map +1 -1
  34. package/dist/module/features/keyboard/components/AlgebraLayout/helpers.js +3 -13
  35. package/dist/module/features/keyboard/components/AlgebraLayout/helpers.js.map +1 -1
  36. package/dist/module/features/keyboard/components/BasicLayout/keyboardGroups.js +4 -0
  37. package/dist/module/features/keyboard/components/BasicLayout/keyboardGroups.js.map +1 -1
  38. package/dist/module/features/keyboard/components/Keyboard.js +4 -4
  39. package/dist/module/features/keyboard/components/Keyboard.js.map +1 -1
  40. package/dist/module/features/keyboard/components/UnitsLayout/UnitsLayout.js +2 -6
  41. package/dist/module/features/keyboard/components/UnitsLayout/UnitsLayout.js.map +1 -1
  42. package/dist/module/features/keyboard/components/UnitsLayout/helpers.js +3 -10
  43. package/dist/module/features/keyboard/components/UnitsLayout/helpers.js.map +1 -1
  44. package/dist/module/features/keyboard/constants/keyboardGroupsByLocale.js +22 -4
  45. package/dist/module/features/keyboard/constants/keyboardGroupsByLocale.js.map +1 -1
  46. package/dist/module/features/keyboard/types/MathKeysGroups/basicOperators.js +0 -27
  47. package/dist/module/features/keyboard/types/MathKeysGroups/basicOperators.js.map +1 -1
  48. package/dist/module/features/keyboard/types/keyboardGroupIds.js +1 -1
  49. package/dist/module/features/keyboard/types/types.js +0 -1
  50. package/dist/module/features/keyboard/types/types.js.map +1 -1
  51. package/dist/module/lib/helpers/helpers.js +28 -5
  52. package/dist/module/lib/helpers/helpers.js.map +1 -1
  53. package/dist/module/shared/translation/constants.js +3 -1
  54. package/dist/module/shared/translation/constants.js.map +1 -1
  55. package/dist/module/shared/translation/localization/ca.json +5 -5
  56. package/dist/module/shared/translation/localization/de.json +42 -0
  57. package/dist/module/shared/translation/localization/en.json +5 -5
  58. package/dist/module/shared/translation/localization/gb.json +5 -5
  59. package/dist/module/shared/translation/localization/sct.json +5 -5
  60. package/dist/module/shared/translation/localization/sw.json +5 -5
  61. package/dist/module/shared/translation/types.js +1 -0
  62. package/dist/module/shared/translation/types.js.map +1 -1
  63. package/dist/typescript/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.d.ts +1 -1
  64. package/dist/typescript/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.d.ts.map +1 -1
  65. package/dist/typescript/commonjs/features/keyboard/components/AlgebraLayout/helpers.d.ts +1 -6
  66. package/dist/typescript/commonjs/features/keyboard/components/AlgebraLayout/helpers.d.ts.map +1 -1
  67. package/dist/typescript/commonjs/features/keyboard/components/BasicLayout/keyboardGroups.d.ts +1 -0
  68. package/dist/typescript/commonjs/features/keyboard/components/BasicLayout/keyboardGroups.d.ts.map +1 -1
  69. package/dist/typescript/commonjs/features/keyboard/components/Keyboard.d.ts +0 -1
  70. package/dist/typescript/commonjs/features/keyboard/components/Keyboard.d.ts.map +1 -1
  71. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/UnitsLayout.d.ts +1 -1
  72. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/UnitsLayout.d.ts.map +1 -1
  73. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/helpers.d.ts +1 -2
  74. package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/helpers.d.ts.map +1 -1
  75. package/dist/typescript/commonjs/features/keyboard/constants/keyboardGroupsByLocale.d.ts.map +1 -1
  76. package/dist/typescript/commonjs/features/keyboard/constants/keyboardLayouts.d.ts +2 -2
  77. package/dist/typescript/commonjs/features/keyboard/types/MathKeysGroups/basicOperators.d.ts +0 -18
  78. package/dist/typescript/commonjs/features/keyboard/types/MathKeysGroups/basicOperators.d.ts.map +1 -1
  79. package/dist/typescript/commonjs/features/keyboard/types/keyboardGroupIds.d.ts +1 -1
  80. package/dist/typescript/commonjs/features/keyboard/types/keyboardGroupIds.d.ts.map +1 -1
  81. package/dist/typescript/commonjs/features/keyboard/types/types.d.ts +1 -3
  82. package/dist/typescript/commonjs/features/keyboard/types/types.d.ts.map +1 -1
  83. package/dist/typescript/commonjs/lib/helpers/helpers.d.ts.map +1 -1
  84. package/dist/typescript/commonjs/shared/translation/constants.d.ts +42 -0
  85. package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +1 -1
  86. package/dist/typescript/commonjs/shared/translation/types.d.ts +2 -1
  87. package/dist/typescript/commonjs/shared/translation/types.d.ts.map +1 -1
  88. package/dist/typescript/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.d.ts +1 -1
  89. package/dist/typescript/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.d.ts.map +1 -1
  90. package/dist/typescript/module/features/keyboard/components/AlgebraLayout/helpers.d.ts +1 -6
  91. package/dist/typescript/module/features/keyboard/components/AlgebraLayout/helpers.d.ts.map +1 -1
  92. package/dist/typescript/module/features/keyboard/components/BasicLayout/keyboardGroups.d.ts +1 -0
  93. package/dist/typescript/module/features/keyboard/components/BasicLayout/keyboardGroups.d.ts.map +1 -1
  94. package/dist/typescript/module/features/keyboard/components/Keyboard.d.ts +0 -1
  95. package/dist/typescript/module/features/keyboard/components/Keyboard.d.ts.map +1 -1
  96. package/dist/typescript/module/features/keyboard/components/UnitsLayout/UnitsLayout.d.ts +1 -1
  97. package/dist/typescript/module/features/keyboard/components/UnitsLayout/UnitsLayout.d.ts.map +1 -1
  98. package/dist/typescript/module/features/keyboard/components/UnitsLayout/helpers.d.ts +1 -2
  99. package/dist/typescript/module/features/keyboard/components/UnitsLayout/helpers.d.ts.map +1 -1
  100. package/dist/typescript/module/features/keyboard/constants/keyboardGroupsByLocale.d.ts.map +1 -1
  101. package/dist/typescript/module/features/keyboard/constants/keyboardLayouts.d.ts +2 -2
  102. package/dist/typescript/module/features/keyboard/types/MathKeysGroups/basicOperators.d.ts +0 -18
  103. package/dist/typescript/module/features/keyboard/types/MathKeysGroups/basicOperators.d.ts.map +1 -1
  104. package/dist/typescript/module/features/keyboard/types/keyboardGroupIds.d.ts +1 -1
  105. package/dist/typescript/module/features/keyboard/types/keyboardGroupIds.d.ts.map +1 -1
  106. package/dist/typescript/module/features/keyboard/types/types.d.ts +1 -3
  107. package/dist/typescript/module/features/keyboard/types/types.d.ts.map +1 -1
  108. package/dist/typescript/module/lib/helpers/helpers.d.ts.map +1 -1
  109. package/dist/typescript/module/shared/translation/constants.d.ts +42 -0
  110. package/dist/typescript/module/shared/translation/constants.d.ts.map +1 -1
  111. package/dist/typescript/module/shared/translation/types.d.ts +2 -1
  112. package/dist/typescript/module/shared/translation/types.d.ts.map +1 -1
  113. package/package.json +1 -1
  114. package/src/features/keyboard/components/AlgebraLayout/AlgebraLayout.tsx +2 -2
  115. package/src/features/keyboard/components/AlgebraLayout/helpers.tsx +6 -19
  116. package/src/features/keyboard/components/BasicLayout/keyboardGroups.ts +4 -0
  117. package/src/features/keyboard/components/Keyboard.tsx +4 -4
  118. package/src/features/keyboard/components/UnitsLayout/UnitsLayout.tsx +1 -2
  119. package/src/features/keyboard/components/UnitsLayout/helpers.tsx +2 -10
  120. package/src/features/keyboard/constants/keyboardGroupsByLocale.ts +21 -2
  121. package/src/features/keyboard/types/MathKeysGroups/basicOperators.tsx +0 -21
  122. package/src/features/keyboard/types/keyboardGroupIds.ts +1 -1
  123. package/src/features/keyboard/types/types.ts +0 -2
  124. package/src/lib/helpers/helpers.ts +23 -8
  125. package/src/shared/translation/constants.ts +2 -0
  126. package/src/shared/translation/localization/ca.json +5 -5
  127. package/src/shared/translation/localization/de.json +42 -0
  128. package/src/shared/translation/localization/en.json +5 -5
  129. package/src/shared/translation/localization/gb.json +5 -5
  130. package/src/shared/translation/localization/sct.json +5 -5
  131. package/src/shared/translation/localization/sw.json +5 -5
  132. package/src/shared/translation/types.ts +4 -0
  133. package/dist/commonjs/features/keyboard/components/MainLayout.js +0 -74
  134. package/dist/commonjs/features/keyboard/components/MainLayout.js.map +0 -1
  135. package/dist/commonjs/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.js +0 -24
  136. package/dist/commonjs/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.js.map +0 -1
  137. package/dist/commonjs/features/keyboard/components/UnderlinedLayout/keyboardGroups.js +0 -13
  138. package/dist/commonjs/features/keyboard/components/UnderlinedLayout/keyboardGroups.js.map +0 -1
  139. package/dist/commonjs/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.js +0 -34
  140. package/dist/commonjs/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.js.map +0 -1
  141. package/dist/commonjs/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.js +0 -34
  142. package/dist/commonjs/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.js.map +0 -1
  143. package/dist/commonjs/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.js +0 -34
  144. package/dist/commonjs/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.js.map +0 -1
  145. package/dist/module/features/keyboard/components/MainLayout.js +0 -67
  146. package/dist/module/features/keyboard/components/MainLayout.js.map +0 -1
  147. package/dist/module/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.js +0 -18
  148. package/dist/module/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.js.map +0 -1
  149. package/dist/module/features/keyboard/components/UnderlinedLayout/keyboardGroups.js +0 -9
  150. package/dist/module/features/keyboard/components/UnderlinedLayout/keyboardGroups.js.map +0 -1
  151. package/dist/module/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.js +0 -26
  152. package/dist/module/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.js.map +0 -1
  153. package/dist/module/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.js +0 -26
  154. package/dist/module/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.js.map +0 -1
  155. package/dist/module/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.js +0 -26
  156. package/dist/module/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.js.map +0 -1
  157. package/dist/typescript/commonjs/features/keyboard/components/MainLayout.d.ts +0 -15
  158. package/dist/typescript/commonjs/features/keyboard/components/MainLayout.d.ts.map +0 -1
  159. package/dist/typescript/commonjs/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.d.ts +0 -4
  160. package/dist/typescript/commonjs/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.d.ts.map +0 -1
  161. package/dist/typescript/commonjs/features/keyboard/components/UnderlinedLayout/keyboardGroups.d.ts +0 -3
  162. package/dist/typescript/commonjs/features/keyboard/components/UnderlinedLayout/keyboardGroups.d.ts.map +0 -1
  163. package/dist/typescript/commonjs/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.d.ts +0 -4
  164. package/dist/typescript/commonjs/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.d.ts.map +0 -1
  165. package/dist/typescript/commonjs/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.d.ts +0 -4
  166. package/dist/typescript/commonjs/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.d.ts.map +0 -1
  167. package/dist/typescript/commonjs/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.d.ts +0 -4
  168. package/dist/typescript/commonjs/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.d.ts.map +0 -1
  169. package/dist/typescript/module/features/keyboard/components/MainLayout.d.ts +0 -15
  170. package/dist/typescript/module/features/keyboard/components/MainLayout.d.ts.map +0 -1
  171. package/dist/typescript/module/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.d.ts +0 -4
  172. package/dist/typescript/module/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.d.ts.map +0 -1
  173. package/dist/typescript/module/features/keyboard/components/UnderlinedLayout/keyboardGroups.d.ts +0 -3
  174. package/dist/typescript/module/features/keyboard/components/UnderlinedLayout/keyboardGroups.d.ts.map +0 -1
  175. package/dist/typescript/module/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.d.ts +0 -4
  176. package/dist/typescript/module/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.d.ts.map +0 -1
  177. package/dist/typescript/module/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.d.ts +0 -4
  178. package/dist/typescript/module/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.d.ts.map +0 -1
  179. package/dist/typescript/module/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.d.ts +0 -4
  180. package/dist/typescript/module/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.d.ts.map +0 -1
  181. package/src/features/keyboard/components/MainLayout.tsx +0 -80
  182. package/src/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.tsx +0 -12
  183. package/src/features/keyboard/components/UnderlinedLayout/keyboardGroups.ts +0 -12
  184. package/src/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.tsx +0 -17
  185. package/src/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.tsx +0 -20
  186. package/src/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.tsx +0 -20
@@ -1,26 +0,0 @@
1
- "use strict";
2
-
3
- import React from 'react';
4
- import Svg, { Path } from 'react-native-svg';
5
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
- export const UnderlinedUIcon = ({
7
- size = 20,
8
- color
9
- }) => {
10
- return /*#__PURE__*/_jsxs(Svg, {
11
- width: size,
12
- height: size,
13
- viewBox: "0 0 17 17",
14
- fill: "none",
15
- children: [/*#__PURE__*/_jsx(Path, {
16
- d: "M10.6573 1.69238H12.8473V8.42738C12.8473 10.7824 11.4523 12.4174 8.6473 12.4174C5.8273 12.4174 4.4473 10.7824 4.4473 8.42738V1.69238H6.6223V8.26238C6.6223 9.56738 7.4023 10.3474 8.6473 10.3474C9.8923 10.3474 10.6573 9.56738 10.6573 8.26238V1.69238Z",
17
- fill: color
18
- }), /*#__PURE__*/_jsx(Path, {
19
- d: "M2.15088 15.1924H15.1509",
20
- stroke: color,
21
- "stroke-width": "1.2",
22
- "stroke-linecap": "square"
23
- })]
24
- });
25
- };
26
- //# sourceMappingURL=UnderlinedUIcon.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","Svg","Path","jsx","_jsx","jsxs","_jsxs","UnderlinedUIcon","size","color","width","height","viewBox","fill","children","d","stroke"],"sourceRoot":"../../../../../../src","sources":["shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,OAAOC,GAAG,IAAIC,IAAI,QAAQ,kBAAkB;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAE5C,OAAO,MAAMC,eAAe,GAAGA,CAAC;EAAEC,IAAI,GAAG,EAAE;EAAEC;AAAiB,CAAC,KAAK;EAClE,oBACEH,KAAA,CAACL,GAAG;IAACS,KAAK,EAAEF,IAAK;IAACG,MAAM,EAAEH,IAAK;IAACI,OAAO,EAAC,WAAW;IAACC,IAAI,EAAC,MAAM;IAAAC,QAAA,gBAC7DV,IAAA,CAACF,IAAI;MACHa,CAAC,EAAC,0PAA0P;MAC5PF,IAAI,EAAEJ;IAAM,CACb,CAAC,eACFL,IAAA,CAACF,IAAI;MACHa,CAAC,EAAC,0BAA0B;MAC5BC,MAAM,EAAEP,KAAM;MACd,gBAAa,KAAK;MAClB,kBAAe;IAAQ,CACxB,CAAC;EAAA,CACC,CAAC;AAEV,CAAC","ignoreList":[]}
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import { SelectOptionColor } from '@magmamath/react-native-ui';
3
- import { KeyboardKey, KeyboardKeyValue } from '../types/types';
4
- type LayoutProps = {
5
- onKeyPress: (key: KeyboardKeyValue) => void;
6
- characterType?: number;
7
- color?: SelectOptionColor;
8
- isVisible?: boolean;
9
- isDisabled?: boolean;
10
- showUnderlinedKeys?: boolean;
11
- disabledKeys?: KeyboardKey[];
12
- };
13
- export declare const MainLayout: ({ characterType, showUnderlinedKeys, ...props }: LayoutProps) => React.JSX.Element;
14
- export {};
15
- //# sourceMappingURL=MainLayout.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MainLayout.d.ts","sourceRoot":"","sources":["../../../../../../src/features/keyboard/components/MainLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAA;AAEhF,OAAO,EAAE,iBAAiB,EAAqB,MAAM,4BAA4B,CAAA;AAEjF,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAI9D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,IAAI,CAAA;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,KAAK,CAAC,EAAE,iBAAiB,CAAA;IACzB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,YAAY,CAAC,EAAE,WAAW,EAAE,CAAA;CAC7B,CAAA;AAED,eAAO,MAAM,UAAU,oDAIpB,WAAW,sBAiDb,CAAA"}
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { KeyboardLayoutProps } from '../../types/types';
3
- export declare const UnderlinedLayout: (props: KeyboardLayoutProps) => React.JSX.Element;
4
- //# sourceMappingURL=UnderlinedLayout.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UnderlinedLayout.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,mBAAmB,EAAgB,MAAM,mBAAmB,CAAA;AAIrE,eAAO,MAAM,gBAAgB,UAAW,mBAAmB,sBAK1D,CAAA"}
@@ -1,3 +0,0 @@
1
- import { KeyboardGroup } from '../../types/types';
2
- export declare const MATH_ENTRY_UNDERLINED_KEYBOARD_GROUP: KeyboardGroup;
3
- //# sourceMappingURL=keyboardGroups.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"keyboardGroups.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/keyboard/components/UnderlinedLayout/keyboardGroups.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAIjD,eAAO,MAAM,oCAAoC,EAAE,aAOlD,CAAA"}
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { IconProps } from '../../icon.types';
3
- export declare const UnderlinedOneIcon: ({ size, color }: IconProps) => React.JSX.Element;
4
- //# sourceMappingURL=UnderlinedOneIcon.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UnderlinedOneIcon.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAG5C,eAAO,MAAM,iBAAiB,oBAA0B,SAAS,sBAYhE,CAAA"}
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { IconProps } from '../../icon.types';
3
- export declare const UnderlinedTenIcon: ({ size, color }: IconProps) => React.JSX.Element;
4
- //# sourceMappingURL=UnderlinedTenIcon.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UnderlinedTenIcon.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAG5C,eAAO,MAAM,iBAAiB,oBAA0B,SAAS,sBAehE,CAAA"}
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { IconProps } from '../../icon.types';
3
- export declare const UnderlinedUIcon: ({ size, color }: IconProps) => React.JSX.Element;
4
- //# sourceMappingURL=UnderlinedUIcon.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UnderlinedUIcon.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAG5C,eAAO,MAAM,eAAe,oBAA0B,SAAS,sBAe9D,CAAA"}
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import { SelectOptionColor } from '@magmamath/react-native-ui';
3
- import { KeyboardKey, KeyboardKeyValue } from '../types/types';
4
- type LayoutProps = {
5
- onKeyPress: (key: KeyboardKeyValue) => void;
6
- characterType?: number;
7
- color?: SelectOptionColor;
8
- isVisible?: boolean;
9
- isDisabled?: boolean;
10
- showUnderlinedKeys?: boolean;
11
- disabledKeys?: KeyboardKey[];
12
- };
13
- export declare const MainLayout: ({ characterType, showUnderlinedKeys, ...props }: LayoutProps) => React.JSX.Element;
14
- export {};
15
- //# sourceMappingURL=MainLayout.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MainLayout.d.ts","sourceRoot":"","sources":["../../../../../../src/features/keyboard/components/MainLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAA;AAEhF,OAAO,EAAE,iBAAiB,EAAqB,MAAM,4BAA4B,CAAA;AAEjF,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAI9D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,IAAI,CAAA;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,KAAK,CAAC,EAAE,iBAAiB,CAAA;IACzB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,YAAY,CAAC,EAAE,WAAW,EAAE,CAAA;CAC7B,CAAA;AAED,eAAO,MAAM,UAAU,oDAIpB,WAAW,sBAiDb,CAAA"}
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { KeyboardLayoutProps } from '../../types/types';
3
- export declare const UnderlinedLayout: (props: KeyboardLayoutProps) => React.JSX.Element;
4
- //# sourceMappingURL=UnderlinedLayout.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UnderlinedLayout.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,mBAAmB,EAAgB,MAAM,mBAAmB,CAAA;AAIrE,eAAO,MAAM,gBAAgB,UAAW,mBAAmB,sBAK1D,CAAA"}
@@ -1,3 +0,0 @@
1
- import { KeyboardGroup } from '../../types/types';
2
- export declare const MATH_ENTRY_UNDERLINED_KEYBOARD_GROUP: KeyboardGroup;
3
- //# sourceMappingURL=keyboardGroups.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"keyboardGroups.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/keyboard/components/UnderlinedLayout/keyboardGroups.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAIjD,eAAO,MAAM,oCAAoC,EAAE,aAOlD,CAAA"}
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { IconProps } from '../../icon.types';
3
- export declare const UnderlinedOneIcon: ({ size, color }: IconProps) => React.JSX.Element;
4
- //# sourceMappingURL=UnderlinedOneIcon.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UnderlinedOneIcon.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAG5C,eAAO,MAAM,iBAAiB,oBAA0B,SAAS,sBAYhE,CAAA"}
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { IconProps } from '../../icon.types';
3
- export declare const UnderlinedTenIcon: ({ size, color }: IconProps) => React.JSX.Element;
4
- //# sourceMappingURL=UnderlinedTenIcon.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UnderlinedTenIcon.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAG5C,eAAO,MAAM,iBAAiB,oBAA0B,SAAS,sBAehE,CAAA"}
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { IconProps } from '../../icon.types';
3
- export declare const UnderlinedUIcon: ({ size, color }: IconProps) => React.JSX.Element;
4
- //# sourceMappingURL=UnderlinedUIcon.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UnderlinedUIcon.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAG5C,eAAO,MAAM,eAAe,oBAA0B,SAAS,sBAe9D,CAAA"}
@@ -1,80 +0,0 @@
1
- import React, { useEffect, useMemo, useRef, useState, useCallback } from 'react'
2
- import { Animated, StyleSheet, useWindowDimensions, View } from 'react-native'
3
- import { SelectOptionColor, IS_MOBILE, IS_WEB } from '@magmamath/react-native-ui'
4
- import { getLayoutByCharType } from '../constants/keyboardLayouts'
5
- import { KeyboardKey, KeyboardKeyValue } from '../types/types'
6
- import { UnderlinedLayout } from './UnderlinedLayout/UnderlinedLayout'
7
- import { MOBILE_LAYOUT_WIDTH } from '../constants/constants'
8
-
9
- type LayoutProps = {
10
- onKeyPress: (key: KeyboardKeyValue) => void
11
- characterType?: number
12
- color?: SelectOptionColor
13
- isVisible?: boolean
14
- isDisabled?: boolean
15
- showUnderlinedKeys?: boolean
16
- disabledKeys?: KeyboardKey[]
17
- }
18
-
19
- export const MainLayout = ({
20
- characterType,
21
- showUnderlinedKeys = false,
22
- ...props
23
- }: LayoutProps) => {
24
- const [isUnderlinedVisible, setIsUnderlinedVisible] = useState(showUnderlinedKeys)
25
- const [isSecondaryLayoutSelected, setIsSecondaryLayoutSelected] = useState(false)
26
-
27
- const fadeAnim = useRef(new Animated.Value(showUnderlinedKeys ? 1 : 0)).current
28
- const fadeRef = useRef<Animated.CompositeAnimation | null>(null)
29
-
30
- const { width } = useWindowDimensions()
31
- const isMobile = width <= MOBILE_LAYOUT_WIDTH || IS_MOBILE
32
-
33
- const Layout = useMemo(() => getLayoutByCharType(characterType), [characterType])
34
- const isUnderlinedLayoutVisible = isUnderlinedVisible && !isSecondaryLayoutSelected && !isMobile
35
-
36
- const animateFade = useCallback(
37
- (toValue: number, onComplete?: () => void) => {
38
- fadeRef.current?.stop()
39
- fadeRef.current = Animated.timing(fadeAnim, {
40
- toValue,
41
- duration: 250,
42
- useNativeDriver: !IS_WEB,
43
- })
44
- fadeRef.current.start(() => onComplete?.())
45
- },
46
- [fadeAnim],
47
- )
48
-
49
- useEffect(() => {
50
- if (showUnderlinedKeys) {
51
- setIsUnderlinedVisible(true)
52
- animateFade(1)
53
- return
54
- }
55
- animateFade(0, () => setIsUnderlinedVisible(false))
56
-
57
- return () => {
58
- fadeRef.current?.stop()
59
- }
60
- }, [showUnderlinedKeys, animateFade])
61
-
62
- return (
63
- <View style={styles.container}>
64
- <Layout {...props} onLayoutChange={setIsSecondaryLayoutSelected} />
65
- {isUnderlinedLayoutVisible && (
66
- <Animated.View style={{ opacity: fadeAnim }}>
67
- <UnderlinedLayout {...props} />
68
- </Animated.View>
69
- )}
70
- </View>
71
- )
72
- }
73
-
74
- const styles = StyleSheet.create({
75
- container: {
76
- flexDirection: 'row',
77
- alignItems: 'flex-start',
78
- justifyContent: 'space-between',
79
- },
80
- })
@@ -1,12 +0,0 @@
1
- import React from 'react'
2
- import { KeysList } from '../KeysList/KeysList'
3
- import { KeyboardLayoutProps, KeyboardType } from '../../types/types'
4
- import { Locale, useText } from '../../../../shared/translation'
5
- import { getKeyboardGroup } from '../../helpers'
6
-
7
- export const UnderlinedLayout = (props: KeyboardLayoutProps) => {
8
- const t = useText()
9
- const keysGroup = getKeyboardGroup(t('locale') as Locale, KeyboardType.Underlined)
10
-
11
- return <KeysList keys={keysGroup.keys} numOfRows={keysGroup.keys.length} {...props} />
12
- }
@@ -1,12 +0,0 @@
1
- import { KeyboardGroup } from '../../types/types'
2
- import { MathEntryKeyboardGroupId } from '../../types/keyboardGroupIds'
3
- import { MATH_BASIC_OPERATORS } from '../../types/MathKeysGroups/basicOperators'
4
-
5
- export const MATH_ENTRY_UNDERLINED_KEYBOARD_GROUP: KeyboardGroup = {
6
- id: MathEntryKeyboardGroupId.UNDERLINED,
7
- keys: [
8
- MATH_BASIC_OPERATORS.UNDERLINED_TEN,
9
- MATH_BASIC_OPERATORS.UNDERLINED_ONE,
10
- MATH_BASIC_OPERATORS.UNDERLINED_U,
11
- ],
12
- }
@@ -1,17 +0,0 @@
1
- import React from 'react'
2
- import { IconProps } from '../../icon.types'
3
- import Svg, { Path } from 'react-native-svg'
4
-
5
- export const UnderlinedOneIcon = ({ size = 20, color }: IconProps) => {
6
- return (
7
- <Svg width={size} height={size} viewBox="0 0 17 17" fill="none">
8
- <Path d="M7.93176 12.1924V3.83738H6.46176V1.84238H10.0918V12.1924H7.93176Z" fill={color} />
9
- <Path
10
- d="M2.15088 15.1924H15.1509"
11
- stroke={color}
12
- stroke-width="1.2"
13
- stroke-linecap="square"
14
- />
15
- </Svg>
16
- )
17
- }
@@ -1,20 +0,0 @@
1
- import React from 'react'
2
- import { IconProps } from '../../icon.types'
3
- import Svg, { Path } from 'react-native-svg'
4
-
5
- export const UnderlinedTenIcon = ({ size = 20, color }: IconProps) => {
6
- return (
7
- <Svg width={size} height={size} viewBox="0 0 17 17" fill="none">
8
- <Path
9
- d="M3.25158 12.1924V3.83738H1.78158V1.84238H5.41158V12.1924H3.25158ZM11.4998 1.69238C14.0348 1.69238 15.5198 3.52238 15.5198 6.80738V7.16738C15.5198 10.4524 14.0348 12.2824 11.4998 12.2824C8.96482 12.2824 7.47982 10.4524 7.47982 7.16738V6.80738C7.47982 3.52238 8.96482 1.69238 11.4998 1.69238ZM9.65482 7.16738C9.65482 9.38738 10.2698 10.3024 11.4998 10.3024C12.7298 10.3024 13.3448 9.38738 13.3448 7.16738V6.80738C13.3448 4.58738 12.7298 3.67238 11.4998 3.67238C10.2698 3.67238 9.65482 4.58738 9.65482 6.80738V7.16738Z"
10
- fill={color}
11
- />
12
- <path
13
- d="M2.15088 15.1924H15.1509"
14
- stroke={color}
15
- stroke-width="1.2"
16
- stroke-linecap="square"
17
- />
18
- </Svg>
19
- )
20
- }
@@ -1,20 +0,0 @@
1
- import React from 'react'
2
- import { IconProps } from '../../icon.types'
3
- import Svg, { Path } from 'react-native-svg'
4
-
5
- export const UnderlinedUIcon = ({ size = 20, color }: IconProps) => {
6
- return (
7
- <Svg width={size} height={size} viewBox="0 0 17 17" fill="none">
8
- <Path
9
- d="M10.6573 1.69238H12.8473V8.42738C12.8473 10.7824 11.4523 12.4174 8.6473 12.4174C5.8273 12.4174 4.4473 10.7824 4.4473 8.42738V1.69238H6.6223V8.26238C6.6223 9.56738 7.4023 10.3474 8.6473 10.3474C9.8923 10.3474 10.6573 9.56738 10.6573 8.26238V1.69238Z"
10
- fill={color}
11
- />
12
- <Path
13
- d="M2.15088 15.1924H15.1509"
14
- stroke={color}
15
- stroke-width="1.2"
16
- stroke-linecap="square"
17
- />
18
- </Svg>
19
- )
20
- }