@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.
- package/dist/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.js +2 -9
- package/dist/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/AlgebraLayout/helpers.js +3 -13
- package/dist/commonjs/features/keyboard/components/AlgebraLayout/helpers.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/BasicLayout/keyboardGroups.js +5 -1
- package/dist/commonjs/features/keyboard/components/BasicLayout/keyboardGroups.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/Keyboard.js +4 -4
- package/dist/commonjs/features/keyboard/components/Keyboard.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/UnitsLayout/UnitsLayout.js +2 -6
- package/dist/commonjs/features/keyboard/components/UnitsLayout/UnitsLayout.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/UnitsLayout/helpers.js +3 -10
- package/dist/commonjs/features/keyboard/components/UnitsLayout/helpers.js.map +1 -1
- package/dist/commonjs/features/keyboard/constants/keyboardGroupsByLocale.js +21 -3
- package/dist/commonjs/features/keyboard/constants/keyboardGroupsByLocale.js.map +1 -1
- package/dist/commonjs/features/keyboard/types/MathKeysGroups/basicOperators.js +0 -27
- package/dist/commonjs/features/keyboard/types/MathKeysGroups/basicOperators.js.map +1 -1
- package/dist/commonjs/features/keyboard/types/keyboardGroupIds.js +1 -1
- package/dist/commonjs/features/keyboard/types/types.js +0 -1
- package/dist/commonjs/features/keyboard/types/types.js.map +1 -1
- package/dist/commonjs/lib/helpers/helpers.js +28 -5
- package/dist/commonjs/lib/helpers/helpers.js.map +1 -1
- package/dist/commonjs/shared/translation/constants.js +3 -1
- package/dist/commonjs/shared/translation/constants.js.map +1 -1
- package/dist/commonjs/shared/translation/localization/ca.json +5 -5
- package/dist/commonjs/shared/translation/localization/de.json +42 -0
- package/dist/commonjs/shared/translation/localization/en.json +5 -5
- package/dist/commonjs/shared/translation/localization/gb.json +5 -5
- package/dist/commonjs/shared/translation/localization/sct.json +5 -5
- package/dist/commonjs/shared/translation/localization/sw.json +5 -5
- package/dist/commonjs/shared/translation/types.js +1 -0
- package/dist/commonjs/shared/translation/types.js.map +1 -1
- package/dist/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.js +2 -9
- package/dist/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.js.map +1 -1
- package/dist/module/features/keyboard/components/AlgebraLayout/helpers.js +3 -13
- package/dist/module/features/keyboard/components/AlgebraLayout/helpers.js.map +1 -1
- package/dist/module/features/keyboard/components/BasicLayout/keyboardGroups.js +4 -0
- package/dist/module/features/keyboard/components/BasicLayout/keyboardGroups.js.map +1 -1
- package/dist/module/features/keyboard/components/Keyboard.js +4 -4
- package/dist/module/features/keyboard/components/Keyboard.js.map +1 -1
- package/dist/module/features/keyboard/components/UnitsLayout/UnitsLayout.js +2 -6
- package/dist/module/features/keyboard/components/UnitsLayout/UnitsLayout.js.map +1 -1
- package/dist/module/features/keyboard/components/UnitsLayout/helpers.js +3 -10
- package/dist/module/features/keyboard/components/UnitsLayout/helpers.js.map +1 -1
- package/dist/module/features/keyboard/constants/keyboardGroupsByLocale.js +22 -4
- package/dist/module/features/keyboard/constants/keyboardGroupsByLocale.js.map +1 -1
- package/dist/module/features/keyboard/types/MathKeysGroups/basicOperators.js +0 -27
- package/dist/module/features/keyboard/types/MathKeysGroups/basicOperators.js.map +1 -1
- package/dist/module/features/keyboard/types/keyboardGroupIds.js +1 -1
- package/dist/module/features/keyboard/types/types.js +0 -1
- package/dist/module/features/keyboard/types/types.js.map +1 -1
- package/dist/module/lib/helpers/helpers.js +28 -5
- package/dist/module/lib/helpers/helpers.js.map +1 -1
- package/dist/module/shared/translation/constants.js +3 -1
- package/dist/module/shared/translation/constants.js.map +1 -1
- package/dist/module/shared/translation/localization/ca.json +5 -5
- package/dist/module/shared/translation/localization/de.json +42 -0
- package/dist/module/shared/translation/localization/en.json +5 -5
- package/dist/module/shared/translation/localization/gb.json +5 -5
- package/dist/module/shared/translation/localization/sct.json +5 -5
- package/dist/module/shared/translation/localization/sw.json +5 -5
- package/dist/module/shared/translation/types.js +1 -0
- package/dist/module/shared/translation/types.js.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/AlgebraLayout/helpers.d.ts +1 -6
- package/dist/typescript/commonjs/features/keyboard/components/AlgebraLayout/helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/BasicLayout/keyboardGroups.d.ts +1 -0
- package/dist/typescript/commonjs/features/keyboard/components/BasicLayout/keyboardGroups.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/Keyboard.d.ts +0 -1
- package/dist/typescript/commonjs/features/keyboard/components/Keyboard.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/UnitsLayout.d.ts +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/UnitsLayout.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/helpers.d.ts +1 -2
- package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/constants/keyboardGroupsByLocale.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/constants/keyboardLayouts.d.ts +2 -2
- package/dist/typescript/commonjs/features/keyboard/types/MathKeysGroups/basicOperators.d.ts +0 -18
- package/dist/typescript/commonjs/features/keyboard/types/MathKeysGroups/basicOperators.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/types/keyboardGroupIds.d.ts +1 -1
- package/dist/typescript/commonjs/features/keyboard/types/keyboardGroupIds.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/types/types.d.ts +1 -3
- package/dist/typescript/commonjs/features/keyboard/types/types.d.ts.map +1 -1
- package/dist/typescript/commonjs/lib/helpers/helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/translation/constants.d.ts +42 -0
- package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/translation/types.d.ts +2 -1
- package/dist/typescript/commonjs/shared/translation/types.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/AlgebraLayout/helpers.d.ts +1 -6
- package/dist/typescript/module/features/keyboard/components/AlgebraLayout/helpers.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/BasicLayout/keyboardGroups.d.ts +1 -0
- package/dist/typescript/module/features/keyboard/components/BasicLayout/keyboardGroups.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/Keyboard.d.ts +0 -1
- package/dist/typescript/module/features/keyboard/components/Keyboard.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/UnitsLayout/UnitsLayout.d.ts +1 -1
- package/dist/typescript/module/features/keyboard/components/UnitsLayout/UnitsLayout.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/UnitsLayout/helpers.d.ts +1 -2
- package/dist/typescript/module/features/keyboard/components/UnitsLayout/helpers.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/constants/keyboardGroupsByLocale.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/constants/keyboardLayouts.d.ts +2 -2
- package/dist/typescript/module/features/keyboard/types/MathKeysGroups/basicOperators.d.ts +0 -18
- package/dist/typescript/module/features/keyboard/types/MathKeysGroups/basicOperators.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/types/keyboardGroupIds.d.ts +1 -1
- package/dist/typescript/module/features/keyboard/types/keyboardGroupIds.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/types/types.d.ts +1 -3
- package/dist/typescript/module/features/keyboard/types/types.d.ts.map +1 -1
- package/dist/typescript/module/lib/helpers/helpers.d.ts.map +1 -1
- package/dist/typescript/module/shared/translation/constants.d.ts +42 -0
- package/dist/typescript/module/shared/translation/constants.d.ts.map +1 -1
- package/dist/typescript/module/shared/translation/types.d.ts +2 -1
- package/dist/typescript/module/shared/translation/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/features/keyboard/components/AlgebraLayout/AlgebraLayout.tsx +2 -2
- package/src/features/keyboard/components/AlgebraLayout/helpers.tsx +6 -19
- package/src/features/keyboard/components/BasicLayout/keyboardGroups.ts +4 -0
- package/src/features/keyboard/components/Keyboard.tsx +4 -4
- package/src/features/keyboard/components/UnitsLayout/UnitsLayout.tsx +1 -2
- package/src/features/keyboard/components/UnitsLayout/helpers.tsx +2 -10
- package/src/features/keyboard/constants/keyboardGroupsByLocale.ts +21 -2
- package/src/features/keyboard/types/MathKeysGroups/basicOperators.tsx +0 -21
- package/src/features/keyboard/types/keyboardGroupIds.ts +1 -1
- package/src/features/keyboard/types/types.ts +0 -2
- package/src/lib/helpers/helpers.ts +23 -8
- package/src/shared/translation/constants.ts +2 -0
- package/src/shared/translation/localization/ca.json +5 -5
- package/src/shared/translation/localization/de.json +42 -0
- package/src/shared/translation/localization/en.json +5 -5
- package/src/shared/translation/localization/gb.json +5 -5
- package/src/shared/translation/localization/sct.json +5 -5
- package/src/shared/translation/localization/sw.json +5 -5
- package/src/shared/translation/types.ts +4 -0
- package/dist/commonjs/features/keyboard/components/MainLayout.js +0 -74
- package/dist/commonjs/features/keyboard/components/MainLayout.js.map +0 -1
- package/dist/commonjs/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.js +0 -24
- package/dist/commonjs/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.js.map +0 -1
- package/dist/commonjs/features/keyboard/components/UnderlinedLayout/keyboardGroups.js +0 -13
- package/dist/commonjs/features/keyboard/components/UnderlinedLayout/keyboardGroups.js.map +0 -1
- package/dist/commonjs/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.js +0 -34
- package/dist/commonjs/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.js.map +0 -1
- package/dist/commonjs/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.js +0 -34
- package/dist/commonjs/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.js.map +0 -1
- package/dist/commonjs/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.js +0 -34
- package/dist/commonjs/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.js.map +0 -1
- package/dist/module/features/keyboard/components/MainLayout.js +0 -67
- package/dist/module/features/keyboard/components/MainLayout.js.map +0 -1
- package/dist/module/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.js +0 -18
- package/dist/module/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.js.map +0 -1
- package/dist/module/features/keyboard/components/UnderlinedLayout/keyboardGroups.js +0 -9
- package/dist/module/features/keyboard/components/UnderlinedLayout/keyboardGroups.js.map +0 -1
- package/dist/module/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.js +0 -26
- package/dist/module/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.js.map +0 -1
- package/dist/module/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.js +0 -26
- package/dist/module/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.js.map +0 -1
- package/dist/module/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.js +0 -26
- package/dist/module/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.js.map +0 -1
- package/dist/typescript/commonjs/features/keyboard/components/MainLayout.d.ts +0 -15
- package/dist/typescript/commonjs/features/keyboard/components/MainLayout.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.d.ts +0 -4
- package/dist/typescript/commonjs/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/keyboard/components/UnderlinedLayout/keyboardGroups.d.ts +0 -3
- package/dist/typescript/commonjs/features/keyboard/components/UnderlinedLayout/keyboardGroups.d.ts.map +0 -1
- package/dist/typescript/commonjs/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.d.ts +0 -4
- package/dist/typescript/commonjs/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.d.ts.map +0 -1
- package/dist/typescript/commonjs/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.d.ts +0 -4
- package/dist/typescript/commonjs/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.d.ts.map +0 -1
- package/dist/typescript/commonjs/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.d.ts +0 -4
- package/dist/typescript/commonjs/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.d.ts.map +0 -1
- package/dist/typescript/module/features/keyboard/components/MainLayout.d.ts +0 -15
- package/dist/typescript/module/features/keyboard/components/MainLayout.d.ts.map +0 -1
- package/dist/typescript/module/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.d.ts +0 -4
- package/dist/typescript/module/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.d.ts.map +0 -1
- package/dist/typescript/module/features/keyboard/components/UnderlinedLayout/keyboardGroups.d.ts +0 -3
- package/dist/typescript/module/features/keyboard/components/UnderlinedLayout/keyboardGroups.d.ts.map +0 -1
- package/dist/typescript/module/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.d.ts +0 -4
- package/dist/typescript/module/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.d.ts.map +0 -1
- package/dist/typescript/module/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.d.ts +0 -4
- package/dist/typescript/module/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.d.ts.map +0 -1
- package/dist/typescript/module/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.d.ts +0 -4
- package/dist/typescript/module/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.d.ts.map +0 -1
- package/src/features/keyboard/components/MainLayout.tsx +0 -80
- package/src/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.tsx +0 -12
- package/src/features/keyboard/components/UnderlinedLayout/keyboardGroups.ts +0 -12
- package/src/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.tsx +0 -17
- package/src/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.tsx +0 -20
- 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 +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 +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"}
|
package/dist/typescript/commonjs/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.d.ts.map
DELETED
|
@@ -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"}
|
package/dist/typescript/commonjs/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.d.ts.map
DELETED
|
@@ -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"}
|
package/dist/typescript/commonjs/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.d.ts.map
DELETED
|
@@ -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 +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"}
|
package/dist/typescript/module/features/keyboard/components/UnderlinedLayout/keyboardGroups.d.ts.map
DELETED
|
@@ -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"}
|
package/dist/typescript/module/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.d.ts.map
DELETED
|
@@ -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"}
|
package/dist/typescript/module/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.d.ts.map
DELETED
|
@@ -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"}
|
package/dist/typescript/module/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.d.ts.map
DELETED
|
@@ -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
|
-
}
|