@magmamath/students-features 0.9.103 → 0.9.104-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.idea/workspace.xml +18 -15
- package/dist/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.js +2 -2
- package/dist/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/BasicLayout/BasicLayout.js +2 -2
- package/dist/commonjs/features/keyboard/components/BasicLayout/BasicLayout.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/UnitsLayout/helpers.js +1 -3
- package/dist/commonjs/features/keyboard/components/UnitsLayout/helpers.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js +6 -26
- package/dist/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/UnitsLayout/keyboardGroups.js +1 -9
- package/dist/commonjs/features/keyboard/components/UnitsLayout/keyboardGroups.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/UnitsLayout/types.js +0 -1
- package/dist/commonjs/features/keyboard/components/UnitsLayout/types.js.map +1 -1
- package/dist/commonjs/features/keyboard/constants/keyboardGroupsByLocale.js +1 -2
- package/dist/commonjs/features/keyboard/constants/keyboardGroupsByLocale.js.map +1 -1
- package/dist/commonjs/features/keyboard/types/MathKeysGroups/units.js +3 -18
- package/dist/commonjs/features/keyboard/types/MathKeysGroups/units.js.map +1 -1
- package/dist/commonjs/shared/translation/localization/ca.json +1 -2
- package/dist/commonjs/shared/translation/localization/de.json +1 -2
- package/dist/commonjs/shared/translation/localization/en.json +1 -2
- package/dist/commonjs/shared/translation/localization/gb.json +1 -2
- package/dist/commonjs/shared/translation/localization/sct.json +1 -2
- package/dist/commonjs/shared/translation/localization/sw.json +1 -2
- package/dist/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.js +1 -1
- package/dist/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.js.map +1 -1
- package/dist/module/features/keyboard/components/BasicLayout/BasicLayout.js +1 -1
- package/dist/module/features/keyboard/components/BasicLayout/BasicLayout.js.map +1 -1
- package/dist/module/features/keyboard/components/UnitsLayout/helpers.js +1 -2
- package/dist/module/features/keyboard/components/UnitsLayout/helpers.js.map +1 -1
- package/dist/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js +6 -26
- package/dist/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.js.map +1 -1
- package/dist/module/features/keyboard/components/UnitsLayout/keyboardGroups.js +1 -9
- package/dist/module/features/keyboard/components/UnitsLayout/keyboardGroups.js.map +1 -1
- package/dist/module/features/keyboard/components/UnitsLayout/types.js +0 -1
- package/dist/module/features/keyboard/components/UnitsLayout/types.js.map +1 -1
- package/dist/module/features/keyboard/constants/keyboardGroupsByLocale.js +2 -3
- package/dist/module/features/keyboard/constants/keyboardGroupsByLocale.js.map +1 -1
- package/dist/module/features/keyboard/types/MathKeysGroups/units.js +3 -18
- package/dist/module/features/keyboard/types/MathKeysGroups/units.js.map +1 -1
- package/dist/module/shared/translation/localization/ca.json +1 -2
- package/dist/module/shared/translation/localization/de.json +1 -2
- package/dist/module/shared/translation/localization/en.json +1 -2
- package/dist/module/shared/translation/localization/gb.json +1 -2
- package/dist/module/shared/translation/localization/sct.json +1 -2
- package/dist/module/shared/translation/localization/sw.json +1 -2
- package/dist/typescript/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/BasicLayout/BasicLayout.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/helpers.d.ts +0 -1
- package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.d.ts +7 -4
- package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/keyboardGroups.d.ts +0 -1
- package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/keyboardGroups.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/types.d.ts +1 -7
- package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/types.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/constants/keyboardGroupsByLocale.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/types/MathKeysGroups/units.d.ts +0 -15
- package/dist/typescript/commonjs/features/keyboard/types/MathKeysGroups/units.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/translation/constants.d.ts +0 -6
- package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/translation/model.d.ts +0 -2
- package/dist/typescript/commonjs/shared/translation/model.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/BasicLayout/BasicLayout.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/UnitsLayout/helpers.d.ts +0 -1
- package/dist/typescript/module/features/keyboard/components/UnitsLayout/helpers.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.d.ts +7 -4
- package/dist/typescript/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/UnitsLayout/keyboardGroups.d.ts +0 -1
- package/dist/typescript/module/features/keyboard/components/UnitsLayout/keyboardGroups.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/UnitsLayout/types.d.ts +1 -7
- package/dist/typescript/module/features/keyboard/components/UnitsLayout/types.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/constants/keyboardGroupsByLocale.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/types/MathKeysGroups/units.d.ts +0 -15
- package/dist/typescript/module/features/keyboard/types/MathKeysGroups/units.d.ts.map +1 -1
- package/dist/typescript/module/shared/translation/constants.d.ts +0 -6
- package/dist/typescript/module/shared/translation/constants.d.ts.map +1 -1
- package/dist/typescript/module/shared/translation/model.d.ts +0 -2
- package/dist/typescript/module/shared/translation/model.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/features/keyboard/components/AlgebraLayout/AlgebraLayout.tsx +2 -1
- package/src/features/keyboard/components/BasicLayout/BasicLayout.tsx +2 -1
- package/src/features/keyboard/components/UnitsLayout/helpers.tsx +0 -3
- package/src/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.ts +21 -32
- package/src/features/keyboard/components/UnitsLayout/keyboardGroups.ts +0 -11
- package/src/features/keyboard/components/UnitsLayout/types.ts +0 -7
- package/src/features/keyboard/constants/keyboardGroupsByLocale.ts +0 -2
- package/src/features/keyboard/types/MathKeysGroups/units.tsx +0 -15
- package/src/shared/translation/localization/ca.json +1 -2
- package/src/shared/translation/localization/de.json +1 -2
- package/src/shared/translation/localization/en.json +1 -2
- package/src/shared/translation/localization/gb.json +1 -2
- package/src/shared/translation/localization/sct.json +1 -2
- package/src/shared/translation/localization/sw.json +1 -2
- package/dist/commonjs/shared/icons/TimeIcon.js +0 -37
- package/dist/commonjs/shared/icons/TimeIcon.js.map +0 -1
- package/dist/module/shared/icons/TimeIcon.js +0 -29
- package/dist/module/shared/icons/TimeIcon.js.map +0 -1
- package/dist/typescript/commonjs/shared/icons/TimeIcon.d.ts +0 -4
- package/dist/typescript/commonjs/shared/icons/TimeIcon.d.ts.map +0 -1
- package/dist/typescript/module/shared/icons/TimeIcon.d.ts +0 -4
- package/dist/typescript/module/shared/icons/TimeIcon.d.ts.map +0 -1
- package/src/shared/icons/TimeIcon.tsx +0 -23
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"units.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/keyboard/types/Math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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmI5B,CAAA;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6D5B,CAAA;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkE1B,CAAA"}
|
|
@@ -39,7 +39,6 @@ export declare const LOCALIZATION_CONFIGS: {
|
|
|
39
39
|
area: string;
|
|
40
40
|
volume: string;
|
|
41
41
|
weight: string;
|
|
42
|
-
time: string;
|
|
43
42
|
};
|
|
44
43
|
};
|
|
45
44
|
"en-GB": {
|
|
@@ -82,7 +81,6 @@ export declare const LOCALIZATION_CONFIGS: {
|
|
|
82
81
|
area: string;
|
|
83
82
|
volume: string;
|
|
84
83
|
weight: string;
|
|
85
|
-
time: string;
|
|
86
84
|
};
|
|
87
85
|
};
|
|
88
86
|
"sv-SE": {
|
|
@@ -125,7 +123,6 @@ export declare const LOCALIZATION_CONFIGS: {
|
|
|
125
123
|
area: string;
|
|
126
124
|
volume: string;
|
|
127
125
|
weight: string;
|
|
128
|
-
time: string;
|
|
129
126
|
};
|
|
130
127
|
};
|
|
131
128
|
"en-CA": {
|
|
@@ -168,7 +165,6 @@ export declare const LOCALIZATION_CONFIGS: {
|
|
|
168
165
|
area: string;
|
|
169
166
|
volume: string;
|
|
170
167
|
weight: string;
|
|
171
|
-
time: string;
|
|
172
168
|
};
|
|
173
169
|
};
|
|
174
170
|
"en-SCT": {
|
|
@@ -211,7 +207,6 @@ export declare const LOCALIZATION_CONFIGS: {
|
|
|
211
207
|
area: string;
|
|
212
208
|
volume: string;
|
|
213
209
|
weight: string;
|
|
214
|
-
time: string;
|
|
215
210
|
};
|
|
216
211
|
};
|
|
217
212
|
"de-DE": {
|
|
@@ -254,7 +249,6 @@ export declare const LOCALIZATION_CONFIGS: {
|
|
|
254
249
|
area: string;
|
|
255
250
|
volume: string;
|
|
256
251
|
weight: string;
|
|
257
|
-
time: string;
|
|
258
252
|
};
|
|
259
253
|
};
|
|
260
254
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/constants.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/constants.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhC,CAAA"}
|
|
@@ -40,7 +40,6 @@ export declare const setLocalization: import("effector").EventCallable<{
|
|
|
40
40
|
area: string;
|
|
41
41
|
volume: string;
|
|
42
42
|
weight: string;
|
|
43
|
-
time: string;
|
|
44
43
|
};
|
|
45
44
|
} | ((config: typeof LOCALIZATION_CONFIGS) => Translations)>;
|
|
46
45
|
export declare const $localization: import("effector").StoreWritable<{
|
|
@@ -83,7 +82,6 @@ export declare const $localization: import("effector").StoreWritable<{
|
|
|
83
82
|
area: string;
|
|
84
83
|
volume: string;
|
|
85
84
|
weight: string;
|
|
86
|
-
time: string;
|
|
87
85
|
};
|
|
88
86
|
}>;
|
|
89
87
|
//# sourceMappingURL=model.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/model.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,YAAY,EAAE,MAAM,SAAS,CAAA;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAElD,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/model.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,YAAY,EAAE,MAAM,SAAS,CAAA;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAElD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cACD,OAAO,oBAAoB,KAAK,YAAY,EACpE,CAAA;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMzB,CAAA"}
|
package/dist/typescript/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlgebraLayout.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/keyboard/components/AlgebraLayout/AlgebraLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAA;AAKhD,OAAO,EAAE,mBAAmB,EAAgB,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"AlgebraLayout.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/keyboard/components/AlgebraLayout/AlgebraLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAA;AAKhD,OAAO,EAAE,mBAAmB,EAAgB,MAAM,mBAAmB,CAAA;AAOrE,eAAO,MAAM,aAAa,iCAAkC,mBAAmB,sBA2C9E,CAAA"}
|
package/dist/typescript/module/features/keyboard/components/BasicLayout/BasicLayout.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BasicLayout.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/keyboard/components/BasicLayout/BasicLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAGhD,OAAO,EAAE,mBAAmB,EAAgB,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"BasicLayout.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/keyboard/components/BasicLayout/BasicLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAGhD,OAAO,EAAE,mBAAmB,EAAgB,MAAM,mBAAmB,CAAA;AAOrE,eAAO,MAAM,WAAW,UAAW,mBAAmB,GAAG,iBAAiB,6BAiBzE,CAAA"}
|
|
@@ -11,6 +11,5 @@ export declare const getSelectOptions: ({ activeTabKey, selectedLayout, setSelec
|
|
|
11
11
|
title: React.JSX.Element;
|
|
12
12
|
onPressIn: () => void;
|
|
13
13
|
}[];
|
|
14
|
-
export declare const isKeyboardUnitsGroupType: (k: string) => k is KeyboardUnitsGroupType;
|
|
15
14
|
export {};
|
|
16
15
|
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/keyboard/components/UnitsLayout/helpers.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAGhE,KAAK,2BAA2B,GAAG;IACjC,YAAY,EAAE,sBAAsB,CAAA;IACpC,cAAc,EAAE,cAAc,CAAA;IAC9B,iBAAiB,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,IAAI,CAAA;IACnD,cAAc,CAAC,EAAE,CAAC,iBAAiB,EAAE,OAAO,KAAK,IAAI,CAAA;CACtD,CAAA;AAED,eAAO,MAAM,gBAAgB,yEAK1B,2BAA2B;;;;GAiC7B,CAAA
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/keyboard/components/UnitsLayout/helpers.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAGhE,KAAK,2BAA2B,GAAG;IACjC,YAAY,EAAE,sBAAsB,CAAA;IACpC,cAAc,EAAE,cAAc,CAAA;IAC9B,iBAAiB,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,IAAI,CAAA;IACnD,cAAc,CAAC,EAAE,CAAC,iBAAiB,EAAE,OAAO,KAAK,IAAI,CAAA;CACtD,CAAA;AAED,eAAO,MAAM,gBAAgB,yEAK1B,2BAA2B;;;;GAiC7B,CAAA"}
|
package/dist/typescript/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { UnitTab } from '../types';
|
|
2
1
|
import { TabOptionProps } from '@magmamath/react-native-ui';
|
|
2
|
+
import { KeyboardUnitsGroupType } from '../types';
|
|
3
3
|
export declare const useUnitTabs: () => {
|
|
4
|
-
tabs:
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
tabs: {
|
|
5
|
+
title: string;
|
|
6
|
+
key: KeyboardUnitsGroupType;
|
|
7
|
+
}[];
|
|
8
|
+
activeTab: TabOptionProps;
|
|
9
|
+
setActiveTab: import("react").Dispatch<import("react").SetStateAction<TabOptionProps>>;
|
|
7
10
|
};
|
|
8
11
|
//# sourceMappingURL=useUnitTabs.d.ts.map
|
package/dist/typescript/module/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUnitTabs.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"useUnitTabs.d.ts","sourceRoot":"","sources":["../../../../../../../../src/features/keyboard/components/UnitsLayout/hooks/useUnitTabs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAE3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAA;AAEjD,eAAO,MAAM,WAAW;;;;;;;CAyBvB,CAAA"}
|
|
@@ -8,7 +8,6 @@ export declare const MATH_ENTRY_VOLUME_UNITS_SW_KEYBOARD_GROUPS: UnitKeyboardGro
|
|
|
8
8
|
export declare const MATH_ENTRY_VOLUME_UNITS_US_KEYBOARD_GROUPS: UnitKeyboardGroups;
|
|
9
9
|
export declare const MATH_ENTRY_VOLUME_UNITS_UK_KEYBOARD_GROUPS: UnitKeyboardGroups;
|
|
10
10
|
export declare const MATH_ENTRY_WEIGHT_UNITS_SW_KEYBOARD_GROUPS: UnitKeyboardGroups;
|
|
11
|
-
export declare const MATH_ENTRY_TIME_UNITS_SW_KEYBOARD_GROUPS: UnitKeyboardGroups;
|
|
12
11
|
export declare const MATH_ENTRY_WEIGHT_UNITS_US_KEYBOARD_GROUPS: UnitKeyboardGroups;
|
|
13
12
|
export declare const UNITS_KEYBOARD_GROUPS: Map<KeyboardUnitsGroupType, {
|
|
14
13
|
keys: import("../..").KeyboardKey[][];
|
package/dist/typescript/module/features/keyboard/components/UnitsLayout/keyboardGroups.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyboardGroups.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/keyboard/components/UnitsLayout/keyboardGroups.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"keyboardGroups.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/keyboard/components/UnitsLayout/keyboardGroups.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAGpE,eAAO,MAAM,0CAA0C,EAAE,kBAWxD,CAAA;AAED,eAAO,MAAM,0CAA0C,EAAE,kBAiBxD,CAAA;AAED,eAAO,MAAM,wCAAwC,EAAE,kBAYtD,CAAA;AAED,eAAO,MAAM,wCAAwC,EAAE,kBAiBtD,CAAA;AAED,eAAO,MAAM,wCAAwC,EAAE,kBAiBtD,CAAA;AAED,eAAO,MAAM,0CAA0C,EAAE,kBAiBxD,CAAA;AAED,eAAO,MAAM,0CAA0C,EAAE,kBAoBxD,CAAA;AAED,eAAO,MAAM,0CAA0C,EAAE,kBAoBxD,CAAA;AAED,eAAO,MAAM,0CAA0C,EAAE,kBAWxD,CAAA;AAED,eAAO,MAAM,0CAA0C,EAAE,kBAMxD,CAAA;AAED,eAAO,MAAM,qBAAqB;;;EAoBhC,CAAA"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { KeyboardGroup, KeyboardKey } from '@magmamath/students-features';
|
|
2
|
-
import { TabOptionProps } from '@magmamath/react-native-ui';
|
|
3
2
|
export declare enum SelectedLayout {
|
|
4
3
|
ALGEBRA = "algebra",
|
|
5
4
|
UNITS = "units"
|
|
@@ -8,14 +7,9 @@ export declare enum KeyboardUnitsGroupType {
|
|
|
8
7
|
LENGTH = "length",
|
|
9
8
|
AREA = "area",
|
|
10
9
|
VOLUME = "volume",
|
|
11
|
-
WEIGHT = "weight"
|
|
12
|
-
TIME = "time"
|
|
10
|
+
WEIGHT = "weight"
|
|
13
11
|
}
|
|
14
12
|
export type UnitKeyboardGroups = {
|
|
15
13
|
keys: KeyboardKey[][];
|
|
16
14
|
} & Omit<KeyboardGroup, 'keys'>;
|
|
17
|
-
export type UnitTab = Omit<TabOptionProps, 'key'> & {
|
|
18
|
-
key: KeyboardUnitsGroupType;
|
|
19
|
-
minWidth?: number;
|
|
20
|
-
};
|
|
21
15
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/keyboard/components/UnitsLayout/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/keyboard/components/UnitsLayout/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAEzE,oBAAY,cAAc;IACxB,OAAO,YAAY;IACnB,KAAK,UAAU;CAChB;AAED,oBAAY,sBAAsB;IAChC,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,WAAW,EAAE,EAAE,CAAA;CACtB,GAAG,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyboardGroupsByLocale.d.ts","sourceRoot":"","sources":["../../../../../../src/features/keyboard/constants/keyboardGroupsByLocale.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"keyboardGroupsByLocale.d.ts","sourceRoot":"","sources":["../../../../../../src/features/keyboard/constants/keyboardGroupsByLocale.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAuC5D,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAA;AAEpD,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAA;AAmC5F,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,YAAY,EAAE,aAAa,CAAC,CAuCzF,CAAA;AACD,eAAO,MAAM,+BAA+B,EAAE,MAAM,CAClD,MAAM,EACN,MAAM,CAAC,sBAAsB,EAAE,kBAAkB,CAAC,CAwBnD,CAAA"}
|
|
@@ -954,31 +954,16 @@ export declare const MATH_TIME_UNITS: {
|
|
|
954
954
|
label: string;
|
|
955
955
|
mathliveValue: string;
|
|
956
956
|
katexValue: string;
|
|
957
|
-
style: {
|
|
958
|
-
button: {
|
|
959
|
-
width: number;
|
|
960
|
-
};
|
|
961
|
-
};
|
|
962
957
|
};
|
|
963
958
|
M: {
|
|
964
959
|
label: string;
|
|
965
960
|
mathliveValue: string;
|
|
966
961
|
katexValue: string;
|
|
967
|
-
style: {
|
|
968
|
-
button: {
|
|
969
|
-
width: number;
|
|
970
|
-
};
|
|
971
|
-
};
|
|
972
962
|
};
|
|
973
963
|
H: {
|
|
974
964
|
label: string;
|
|
975
965
|
mathliveValue: string;
|
|
976
966
|
katexValue: string;
|
|
977
|
-
style: {
|
|
978
|
-
button: {
|
|
979
|
-
width: number;
|
|
980
|
-
};
|
|
981
|
-
};
|
|
982
967
|
};
|
|
983
968
|
DAY: {
|
|
984
969
|
label: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"units.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/keyboard/types/MathKeysGroups/units.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,MAAM,OAAO,CAAA;AAiCzB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqC9B,CAAA;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6D5B,CAAA;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkE1B,CAAA"}
|
|
@@ -39,7 +39,6 @@ export declare const LOCALIZATION_CONFIGS: {
|
|
|
39
39
|
area: string;
|
|
40
40
|
volume: string;
|
|
41
41
|
weight: string;
|
|
42
|
-
time: string;
|
|
43
42
|
};
|
|
44
43
|
};
|
|
45
44
|
"en-GB": {
|
|
@@ -82,7 +81,6 @@ export declare const LOCALIZATION_CONFIGS: {
|
|
|
82
81
|
area: string;
|
|
83
82
|
volume: string;
|
|
84
83
|
weight: string;
|
|
85
|
-
time: string;
|
|
86
84
|
};
|
|
87
85
|
};
|
|
88
86
|
"sv-SE": {
|
|
@@ -125,7 +123,6 @@ export declare const LOCALIZATION_CONFIGS: {
|
|
|
125
123
|
area: string;
|
|
126
124
|
volume: string;
|
|
127
125
|
weight: string;
|
|
128
|
-
time: string;
|
|
129
126
|
};
|
|
130
127
|
};
|
|
131
128
|
"en-CA": {
|
|
@@ -168,7 +165,6 @@ export declare const LOCALIZATION_CONFIGS: {
|
|
|
168
165
|
area: string;
|
|
169
166
|
volume: string;
|
|
170
167
|
weight: string;
|
|
171
|
-
time: string;
|
|
172
168
|
};
|
|
173
169
|
};
|
|
174
170
|
"en-SCT": {
|
|
@@ -211,7 +207,6 @@ export declare const LOCALIZATION_CONFIGS: {
|
|
|
211
207
|
area: string;
|
|
212
208
|
volume: string;
|
|
213
209
|
weight: string;
|
|
214
|
-
time: string;
|
|
215
210
|
};
|
|
216
211
|
};
|
|
217
212
|
"de-DE": {
|
|
@@ -254,7 +249,6 @@ export declare const LOCALIZATION_CONFIGS: {
|
|
|
254
249
|
area: string;
|
|
255
250
|
volume: string;
|
|
256
251
|
weight: string;
|
|
257
|
-
time: string;
|
|
258
252
|
};
|
|
259
253
|
};
|
|
260
254
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/constants.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/constants.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhC,CAAA"}
|
|
@@ -40,7 +40,6 @@ export declare const setLocalization: import("effector").EventCallable<{
|
|
|
40
40
|
area: string;
|
|
41
41
|
volume: string;
|
|
42
42
|
weight: string;
|
|
43
|
-
time: string;
|
|
44
43
|
};
|
|
45
44
|
} | ((config: typeof LOCALIZATION_CONFIGS) => Translations)>;
|
|
46
45
|
export declare const $localization: import("effector").StoreWritable<{
|
|
@@ -83,7 +82,6 @@ export declare const $localization: import("effector").StoreWritable<{
|
|
|
83
82
|
area: string;
|
|
84
83
|
volume: string;
|
|
85
84
|
weight: string;
|
|
86
|
-
time: string;
|
|
87
85
|
};
|
|
88
86
|
}>;
|
|
89
87
|
//# sourceMappingURL=model.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/model.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,YAAY,EAAE,MAAM,SAAS,CAAA;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAElD,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../../../src/shared/translation/model.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,YAAY,EAAE,MAAM,SAAS,CAAA;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAElD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cACD,OAAO,oBAAoB,KAAK,YAAY,EACpE,CAAA;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMzB,CAAA"}
|
package/package.json
CHANGED
|
@@ -4,11 +4,12 @@ import { StyleSheet, useWindowDimensions, View } from 'react-native'
|
|
|
4
4
|
import { COLORS, SelectGroup, SelectOptionSize, IS_MOBILE } from '@magmamath/react-native-ui'
|
|
5
5
|
import { Locale, useText } from '../../../../shared/translation'
|
|
6
6
|
import { KeyboardLayoutProps, KeyboardType } from '../../types/types'
|
|
7
|
-
import { MOBILE_LAYOUT_WIDTH } from '../../constants/constants'
|
|
8
7
|
import { SelectedLayout } from './types'
|
|
9
8
|
import { getKeyboardGroup } from '../../helpers'
|
|
10
9
|
import { getSelectOptions } from './helpers'
|
|
11
10
|
|
|
11
|
+
const MOBILE_LAYOUT_WIDTH = 1250
|
|
12
|
+
|
|
12
13
|
export const AlgebraLayout = ({ onLayoutChange, ...props }: KeyboardLayoutProps) => {
|
|
13
14
|
const [selectedLayout, setSelectedLayout] = useState<SelectedLayout>(SelectedLayout.BASIC)
|
|
14
15
|
const t = useText()
|
|
@@ -2,11 +2,12 @@ import React, { PropsWithChildren } from 'react'
|
|
|
2
2
|
import { KeysList } from '../KeysList/KeysList'
|
|
3
3
|
import { StyleSheet, useWindowDimensions, View } from 'react-native'
|
|
4
4
|
import { KeyboardLayoutProps, KeyboardType } from '../../types/types'
|
|
5
|
-
import { MOBILE_LAYOUT_WIDTH } from '../../constants/constants'
|
|
6
5
|
import { Locale, useText } from '../../../../shared/translation'
|
|
7
6
|
import { KEYBOARD_GROUPS_BY_LOCALE } from '../../constants/keyboardGroupsByLocale'
|
|
8
7
|
import { IS_MOBILE } from '@magmamath/react-native-ui'
|
|
9
8
|
|
|
9
|
+
const MOBILE_LAYOUT_WIDTH = 890
|
|
10
|
+
|
|
10
11
|
export const BasicLayout = (props: KeyboardLayoutProps & PropsWithChildren) => {
|
|
11
12
|
const t = useText()
|
|
12
13
|
const keysByLocale = KEYBOARD_GROUPS_BY_LOCALE[t('locale') as Locale][KeyboardType.Basic]
|
|
@@ -1,43 +1,32 @@
|
|
|
1
1
|
import { useText } from '../../../../../shared/translation'
|
|
2
2
|
import { useMemo, useState } from 'react'
|
|
3
|
-
import { KeyboardUnitsGroupType, UnitTab } from '../types'
|
|
4
|
-
import { useWindowDimensions } from 'react-native'
|
|
5
3
|
import { TabOptionProps } from '@magmamath/react-native-ui'
|
|
6
|
-
|
|
4
|
+
|
|
5
|
+
import { KeyboardUnitsGroupType } from '../types'
|
|
7
6
|
|
|
8
7
|
export const useUnitTabs = () => {
|
|
9
8
|
const t = useText()
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
const allTabs = useMemo<UnitTab[]>(
|
|
9
|
+
const tabs = useMemo(
|
|
13
10
|
() => [
|
|
14
|
-
{
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
{
|
|
11
|
+
{
|
|
12
|
+
title: t('keyboard.length'),
|
|
13
|
+
key: KeyboardUnitsGroupType.LENGTH,
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
title: t('keyboard.area'),
|
|
17
|
+
key: KeyboardUnitsGroupType.AREA,
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
title: t('keyboard.volume'),
|
|
21
|
+
key: KeyboardUnitsGroupType.VOLUME,
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
title: t('keyboard.weight'),
|
|
25
|
+
key: KeyboardUnitsGroupType.WEIGHT,
|
|
26
|
+
},
|
|
19
27
|
],
|
|
20
28
|
[t],
|
|
21
29
|
)
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
() => allTabs.filter((tab) => tab.minWidth === undefined || width >= tab.minWidth),
|
|
25
|
-
[allTabs, width],
|
|
26
|
-
)
|
|
27
|
-
|
|
28
|
-
const [activeKey, setActiveKey] = useState<KeyboardUnitsGroupType | undefined>(() => tabs[0]?.key)
|
|
29
|
-
|
|
30
|
-
const activeTab = useMemo(() => {
|
|
31
|
-
return tabs.find((t) => t?.key && t.key === activeKey) ?? tabs[0]
|
|
32
|
-
}, [tabs, activeKey])
|
|
33
|
-
|
|
34
|
-
return {
|
|
35
|
-
tabs,
|
|
36
|
-
activeTab,
|
|
37
|
-
setActiveTab: (tab: TabOptionProps) => {
|
|
38
|
-
if (isKeyboardUnitsGroupType(tab.key)) {
|
|
39
|
-
setActiveKey(tab.key)
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
}
|
|
30
|
+
const [activeTab, setActiveTab] = useState<TabOptionProps>(tabs[0])
|
|
31
|
+
return { tabs, activeTab, setActiveTab }
|
|
43
32
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MATH_AREA_UNITS,
|
|
3
3
|
MATH_LENGTH_UNITS,
|
|
4
|
-
MATH_TIME_UNITS,
|
|
5
4
|
MATH_VOLUME_UNITS,
|
|
6
5
|
MATH_WEIGHT_UNITS,
|
|
7
6
|
} from '../../types/MathKeysGroups/units'
|
|
@@ -11,7 +10,6 @@ import { VolumeIcon } from '../../../../shared/icons/VolumeIcon'
|
|
|
11
10
|
import { WeightIcon } from '../../../../shared/icons/WeightIcon'
|
|
12
11
|
import { KeyboardUnitsGroupType, UnitKeyboardGroups } from './types'
|
|
13
12
|
import { MathEntryKeyboardGroupId } from '../../types/keyboardGroupIds'
|
|
14
|
-
import { TimeIcon } from '../../../../shared/icons/TimeIcon'
|
|
15
13
|
|
|
16
14
|
export const MATH_ENTRY_LENGTH_UNITS_SW_KEYBOARD_GROUPS: UnitKeyboardGroups = {
|
|
17
15
|
id: MathEntryKeyboardGroupId.LENGTH_UNITS_SW,
|
|
@@ -173,11 +171,6 @@ export const MATH_ENTRY_WEIGHT_UNITS_SW_KEYBOARD_GROUPS: UnitKeyboardGroups = {
|
|
|
173
171
|
],
|
|
174
172
|
}
|
|
175
173
|
|
|
176
|
-
export const MATH_ENTRY_TIME_UNITS_SW_KEYBOARD_GROUPS: UnitKeyboardGroups = {
|
|
177
|
-
id: MathEntryKeyboardGroupId.TIME_SW,
|
|
178
|
-
keys: [[MATH_TIME_UNITS.S, MATH_TIME_UNITS.M, MATH_TIME_UNITS.H]],
|
|
179
|
-
}
|
|
180
|
-
|
|
181
174
|
export const MATH_ENTRY_WEIGHT_UNITS_US_KEYBOARD_GROUPS: UnitKeyboardGroups = {
|
|
182
175
|
id: MathEntryKeyboardGroupId.WEIGHT_UNITS_US,
|
|
183
176
|
keys: [
|
|
@@ -206,8 +199,4 @@ export const UNITS_KEYBOARD_GROUPS = new Map([
|
|
|
206
199
|
KeyboardUnitsGroupType.WEIGHT,
|
|
207
200
|
{ keys: MATH_ENTRY_WEIGHT_UNITS_SW_KEYBOARD_GROUPS.keys, icon: WeightIcon },
|
|
208
201
|
],
|
|
209
|
-
[
|
|
210
|
-
KeyboardUnitsGroupType.TIME,
|
|
211
|
-
{ keys: MATH_ENTRY_TIME_UNITS_SW_KEYBOARD_GROUPS.keys, icon: TimeIcon },
|
|
212
|
-
],
|
|
213
202
|
])
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { KeyboardGroup, KeyboardKey } from '@magmamath/students-features'
|
|
2
|
-
import { TabOptionProps } from '@magmamath/react-native-ui'
|
|
3
2
|
|
|
4
3
|
export enum SelectedLayout {
|
|
5
4
|
ALGEBRA = 'algebra',
|
|
@@ -11,14 +10,8 @@ export enum KeyboardUnitsGroupType {
|
|
|
11
10
|
AREA = 'area',
|
|
12
11
|
VOLUME = 'volume',
|
|
13
12
|
WEIGHT = 'weight',
|
|
14
|
-
TIME = 'time',
|
|
15
13
|
}
|
|
16
14
|
|
|
17
15
|
export type UnitKeyboardGroups = {
|
|
18
16
|
keys: KeyboardKey[][]
|
|
19
17
|
} & Omit<KeyboardGroup, 'keys'>
|
|
20
|
-
|
|
21
|
-
export type UnitTab = Omit<TabOptionProps, 'key'> & {
|
|
22
|
-
key: KeyboardUnitsGroupType
|
|
23
|
-
minWidth?: number
|
|
24
|
-
}
|
|
@@ -31,7 +31,6 @@ import {
|
|
|
31
31
|
MATH_ENTRY_AREA_UNITS_US_KEYBOARD_GROUPS,
|
|
32
32
|
MATH_ENTRY_LENGTH_UNITS_SW_KEYBOARD_GROUPS,
|
|
33
33
|
MATH_ENTRY_LENGTH_UNITS_US_KEYBOARD_GROUPS,
|
|
34
|
-
MATH_ENTRY_TIME_UNITS_SW_KEYBOARD_GROUPS,
|
|
35
34
|
MATH_ENTRY_VOLUME_UNITS_SW_KEYBOARD_GROUPS,
|
|
36
35
|
MATH_ENTRY_VOLUME_UNITS_UK_KEYBOARD_GROUPS,
|
|
37
36
|
MATH_ENTRY_VOLUME_UNITS_US_KEYBOARD_GROUPS,
|
|
@@ -71,7 +70,6 @@ function createKeyboardUnitsLocale(
|
|
|
71
70
|
[KeyboardUnitsGroupType.AREA]: MATH_ENTRY_AREA_UNITS_US_KEYBOARD_GROUPS,
|
|
72
71
|
[KeyboardUnitsGroupType.VOLUME]: MATH_ENTRY_VOLUME_UNITS_US_KEYBOARD_GROUPS,
|
|
73
72
|
[KeyboardUnitsGroupType.WEIGHT]: MATH_ENTRY_WEIGHT_UNITS_US_KEYBOARD_GROUPS,
|
|
74
|
-
[KeyboardUnitsGroupType.TIME]: MATH_ENTRY_TIME_UNITS_SW_KEYBOARD_GROUPS,
|
|
75
73
|
}
|
|
76
74
|
return { ...base, ...overrides }
|
|
77
75
|
}
|
|
@@ -427,31 +427,16 @@ export const MATH_TIME_UNITS = createMathKeysGroup({
|
|
|
427
427
|
label: 's',
|
|
428
428
|
mathliveValue: '\\mathrm{s}',
|
|
429
429
|
katexValue: 's',
|
|
430
|
-
style: {
|
|
431
|
-
button: {
|
|
432
|
-
width: 50,
|
|
433
|
-
},
|
|
434
|
-
},
|
|
435
430
|
},
|
|
436
431
|
M: {
|
|
437
432
|
label: 'min',
|
|
438
433
|
mathliveValue: '$\\mathrm{min}',
|
|
439
434
|
katexValue: 'min',
|
|
440
|
-
style: {
|
|
441
|
-
button: {
|
|
442
|
-
width: 50,
|
|
443
|
-
},
|
|
444
|
-
},
|
|
445
435
|
},
|
|
446
436
|
H: {
|
|
447
437
|
label: 'h',
|
|
448
438
|
mathliveValue: '\\mathrm{h}',
|
|
449
439
|
katexValue: 'h',
|
|
450
|
-
style: {
|
|
451
|
-
button: {
|
|
452
|
-
width: 50,
|
|
453
|
-
},
|
|
454
|
-
},
|
|
455
440
|
},
|
|
456
441
|
DAY: {
|
|
457
442
|
label: 'day',
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.TimeIcon = void 0;
|
|
7
|
-
var _reactNativeUi = require("@magmamath/react-native-ui");
|
|
8
|
-
var _reactNativeSvg = _interopRequireWildcard(require("react-native-svg"));
|
|
9
|
-
var _react = _interopRequireDefault(require("react"));
|
|
10
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
|
-
const TimeIcon = ({
|
|
15
|
-
size = 20,
|
|
16
|
-
color = _reactNativeUi.COLORS.NEUTRAL_9
|
|
17
|
-
}) => {
|
|
18
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.default, {
|
|
19
|
-
width: size,
|
|
20
|
-
height: size,
|
|
21
|
-
viewBox: "0 0 17 17",
|
|
22
|
-
fill: "none",
|
|
23
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
|
|
24
|
-
fillRule: "evenodd",
|
|
25
|
-
clipRule: "evenodd",
|
|
26
|
-
d: "M7.84 1.5C4.33851 1.5 1.5 4.33851 1.5 7.84C1.5 11.3415 4.33851 14.18 7.84 14.18C11.3415 14.18 14.18 11.3415 14.18 7.84C14.18 4.33851 11.3415 1.5 7.84 1.5ZM0 7.84C0 3.51009 3.51009 0 7.84 0C12.1699 0 15.68 3.51009 15.68 7.84C15.68 12.1699 12.1699 15.68 7.84 15.68C3.51009 15.68 0 12.1699 0 7.84Z",
|
|
27
|
-
fill: color
|
|
28
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
|
|
29
|
-
fillRule: "evenodd",
|
|
30
|
-
clipRule: "evenodd",
|
|
31
|
-
d: "M7.83999 3.0826C8.2542 3.0826 8.58999 3.41839 8.58999 3.8326V7.8033L10.4859 9.42838C10.8004 9.69794 10.8368 10.1714 10.5673 10.4859C10.2977 10.8004 9.82421 10.8368 9.50972 10.5673L7.57539 8.90926C7.2673 8.64519 7.08999 8.25967 7.08999 7.85389V3.8326C7.08999 3.41839 7.42578 3.0826 7.83999 3.0826Z",
|
|
32
|
-
fill: color
|
|
33
|
-
})]
|
|
34
|
-
});
|
|
35
|
-
};
|
|
36
|
-
exports.TimeIcon = TimeIcon;
|
|
37
|
-
//# sourceMappingURL=TimeIcon.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeUi","require","_reactNativeSvg","_interopRequireWildcard","_react","_interopRequireDefault","_jsxRuntime","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","TimeIcon","size","color","COLORS","NEUTRAL_9","jsxs","width","height","viewBox","fill","children","jsx","Path","fillRule","clipRule","d","exports"],"sourceRoot":"../../../../src","sources":["shared/icons/TimeIcon.tsx"],"mappings":";;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AAEA,IAAAC,eAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,MAAA,GAAAC,sBAAA,CAAAJ,OAAA;AAAyB,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAI,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6BAAAI,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAD,wBAAA,YAAAA,CAAAH,CAAA,WAAAA,CAAA,GAAAM,CAAA,GAAAD,CAAA,KAAAL,CAAA;AAAA,SAAAJ,wBAAAI,CAAA,EAAAK,CAAA,SAAAA,CAAA,IAAAL,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,C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