@magmamath/students-features 0.9.2 → 0.9.4-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/dist/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.js +9 -2
- package/dist/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/AlgebraLayout/helpers.js +13 -3
- package/dist/commonjs/features/keyboard/components/AlgebraLayout/helpers.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.js +7 -1
- package/dist/commonjs/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/BasicPlusLayout/keyboardGroups.js +2 -4
- package/dist/commonjs/features/keyboard/components/BasicPlusLayout/keyboardGroups.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/BasicPlusPlusLayout/keyboardGroups.js +2 -2
- package/dist/commonjs/features/keyboard/components/BasicPlusPlusLayout/keyboardGroups.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/Keyboard.js +2 -4
- package/dist/commonjs/features/keyboard/components/Keyboard.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/KeysList/KeysList.js +3 -2
- package/dist/commonjs/features/keyboard/components/KeysList/KeysList.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/KeysList/helpers.js +3 -2
- package/dist/commonjs/features/keyboard/components/KeysList/helpers.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/MainLayout.js +75 -0
- package/dist/commonjs/features/keyboard/components/MainLayout.js.map +1 -0
- package/dist/commonjs/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.js +24 -0
- package/dist/commonjs/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.js.map +1 -0
- package/dist/commonjs/features/keyboard/components/UnderlinedLayout/keyboardGroups.js +13 -0
- package/dist/commonjs/features/keyboard/components/UnderlinedLayout/keyboardGroups.js.map +1 -0
- package/dist/commonjs/features/keyboard/components/UnitsLayout/UnitsLayout.js +6 -2
- package/dist/commonjs/features/keyboard/components/UnitsLayout/UnitsLayout.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/UnitsLayout/helpers.js +10 -3
- package/dist/commonjs/features/keyboard/components/UnitsLayout/helpers.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/constants.js +1 -8
- package/dist/commonjs/features/keyboard/components/constants.js.map +1 -1
- package/dist/commonjs/features/keyboard/constants/keyboardGroupsByLocale.js +3 -1
- package/dist/commonjs/features/keyboard/constants/keyboardGroupsByLocale.js.map +1 -1
- package/dist/commonjs/features/keyboard/constants/keyboardLayouts.js +2 -2
- package/dist/commonjs/features/keyboard/constants/keyboardLayouts.js.map +1 -1
- package/dist/commonjs/features/keyboard/types/MathKeysGroups/basicOperators.js +27 -0
- package/dist/commonjs/features/keyboard/types/MathKeysGroups/basicOperators.js.map +1 -1
- package/dist/commonjs/features/keyboard/types/keyboardGroupIds.js +1 -0
- package/dist/commonjs/features/keyboard/types/keyboardGroupIds.js.map +1 -1
- package/dist/commonjs/features/keyboard/types/types.js +1 -0
- package/dist/commonjs/features/keyboard/types/types.js.map +1 -1
- package/dist/commonjs/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.js +34 -0
- package/dist/commonjs/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.js.map +1 -0
- package/dist/commonjs/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.js +34 -0
- package/dist/commonjs/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.js.map +1 -0
- package/dist/commonjs/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.js +34 -0
- package/dist/commonjs/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.js.map +1 -0
- package/dist/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.js +9 -2
- package/dist/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.js.map +1 -1
- package/dist/module/features/keyboard/components/AlgebraLayout/helpers.js +13 -3
- package/dist/module/features/keyboard/components/AlgebraLayout/helpers.js.map +1 -1
- package/dist/module/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.js +8 -2
- package/dist/module/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.js.map +1 -1
- package/dist/module/features/keyboard/components/BasicPlusLayout/keyboardGroups.js +2 -4
- package/dist/module/features/keyboard/components/BasicPlusLayout/keyboardGroups.js.map +1 -1
- package/dist/module/features/keyboard/components/BasicPlusPlusLayout/keyboardGroups.js +2 -2
- package/dist/module/features/keyboard/components/BasicPlusPlusLayout/keyboardGroups.js.map +1 -1
- package/dist/module/features/keyboard/components/Keyboard.js +2 -4
- package/dist/module/features/keyboard/components/Keyboard.js.map +1 -1
- package/dist/module/features/keyboard/components/KeysList/KeysList.js +3 -2
- package/dist/module/features/keyboard/components/KeysList/KeysList.js.map +1 -1
- package/dist/module/features/keyboard/components/KeysList/helpers.js +3 -2
- package/dist/module/features/keyboard/components/KeysList/helpers.js.map +1 -1
- package/dist/module/features/keyboard/components/MainLayout.js +68 -0
- package/dist/module/features/keyboard/components/MainLayout.js.map +1 -0
- package/dist/module/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.js +18 -0
- package/dist/module/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.js.map +1 -0
- package/dist/module/features/keyboard/components/UnderlinedLayout/keyboardGroups.js +9 -0
- package/dist/module/features/keyboard/components/UnderlinedLayout/keyboardGroups.js.map +1 -0
- package/dist/module/features/keyboard/components/UnitsLayout/UnitsLayout.js +6 -2
- package/dist/module/features/keyboard/components/UnitsLayout/UnitsLayout.js.map +1 -1
- package/dist/module/features/keyboard/components/UnitsLayout/helpers.js +10 -3
- package/dist/module/features/keyboard/components/UnitsLayout/helpers.js.map +1 -1
- package/dist/module/features/keyboard/components/constants.js +1 -8
- package/dist/module/features/keyboard/components/constants.js.map +1 -1
- package/dist/module/features/keyboard/constants/keyboardGroupsByLocale.js +3 -1
- package/dist/module/features/keyboard/constants/keyboardGroupsByLocale.js.map +1 -1
- package/dist/module/features/keyboard/constants/keyboardLayouts.js +2 -2
- package/dist/module/features/keyboard/constants/keyboardLayouts.js.map +1 -1
- package/dist/module/features/keyboard/types/MathKeysGroups/basicOperators.js +27 -0
- package/dist/module/features/keyboard/types/MathKeysGroups/basicOperators.js.map +1 -1
- package/dist/module/features/keyboard/types/keyboardGroupIds.js +1 -0
- package/dist/module/features/keyboard/types/keyboardGroupIds.js.map +1 -1
- package/dist/module/features/keyboard/types/types.js +1 -0
- package/dist/module/features/keyboard/types/types.js.map +1 -1
- package/dist/module/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.js +26 -0
- package/dist/module/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.js.map +1 -0
- package/dist/module/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.js +26 -0
- package/dist/module/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.js.map +1 -0
- package/dist/module/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.js +26 -0
- package/dist/module/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.js.map +1 -0
- 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 +6 -1
- package/dist/typescript/commonjs/features/keyboard/components/AlgebraLayout/helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/BasicPlusLayout/keyboardGroups.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/BasicPlusPlusLayout/keyboardGroups.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/Keyboard.d.ts +1 -0
- package/dist/typescript/commonjs/features/keyboard/components/Keyboard.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/KeysList/KeysList.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/KeysList/helpers.d.ts +2 -1
- package/dist/typescript/commonjs/features/keyboard/components/KeysList/helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/MainLayout.d.ts +17 -0
- package/dist/typescript/commonjs/features/keyboard/components/MainLayout.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.d.ts +4 -0
- package/dist/typescript/commonjs/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/keyboard/components/UnderlinedLayout/keyboardGroups.d.ts +3 -0
- package/dist/typescript/commonjs/features/keyboard/components/UnderlinedLayout/keyboardGroups.d.ts.map +1 -0
- 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 +2 -1
- package/dist/typescript/commonjs/features/keyboard/components/UnitsLayout/helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/constants.d.ts +0 -7
- package/dist/typescript/commonjs/features/keyboard/components/constants.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 +18 -0
- package/dist/typescript/commonjs/features/keyboard/types/MathKeysGroups/basicOperators.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/types/keyboardGroupIds.d.ts +2 -1
- package/dist/typescript/commonjs/features/keyboard/types/keyboardGroupIds.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/types/types.d.ts +3 -1
- package/dist/typescript/commonjs/features/keyboard/types/types.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.d.ts +4 -0
- package/dist/typescript/commonjs/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.d.ts +4 -0
- package/dist/typescript/commonjs/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.d.ts +4 -0
- package/dist/typescript/commonjs/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.d.ts.map +1 -0
- 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 +6 -1
- package/dist/typescript/module/features/keyboard/components/AlgebraLayout/helpers.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/BasicPlusLayout/keyboardGroups.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/BasicPlusPlusLayout/keyboardGroups.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/Keyboard.d.ts +1 -0
- package/dist/typescript/module/features/keyboard/components/Keyboard.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/KeysList/KeysList.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/KeysList/helpers.d.ts +2 -1
- package/dist/typescript/module/features/keyboard/components/KeysList/helpers.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/MainLayout.d.ts +17 -0
- package/dist/typescript/module/features/keyboard/components/MainLayout.d.ts.map +1 -0
- package/dist/typescript/module/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.d.ts +4 -0
- package/dist/typescript/module/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.d.ts.map +1 -0
- package/dist/typescript/module/features/keyboard/components/UnderlinedLayout/keyboardGroups.d.ts +3 -0
- package/dist/typescript/module/features/keyboard/components/UnderlinedLayout/keyboardGroups.d.ts.map +1 -0
- 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 +2 -1
- package/dist/typescript/module/features/keyboard/components/UnitsLayout/helpers.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/constants.d.ts +0 -7
- package/dist/typescript/module/features/keyboard/components/constants.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 +18 -0
- package/dist/typescript/module/features/keyboard/types/MathKeysGroups/basicOperators.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/types/keyboardGroupIds.d.ts +2 -1
- package/dist/typescript/module/features/keyboard/types/keyboardGroupIds.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/types/types.d.ts +3 -1
- package/dist/typescript/module/features/keyboard/types/types.d.ts.map +1 -1
- package/dist/typescript/module/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.d.ts +4 -0
- package/dist/typescript/module/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.d.ts.map +1 -0
- package/dist/typescript/module/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.d.ts +4 -0
- package/dist/typescript/module/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.d.ts.map +1 -0
- package/dist/typescript/module/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.d.ts +4 -0
- package/dist/typescript/module/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/features/keyboard/components/AlgebraLayout/AlgebraLayout.tsx +2 -2
- package/src/features/keyboard/components/AlgebraLayout/helpers.tsx +19 -6
- package/src/features/keyboard/components/BasicPlusLayout/BasicPlusLayout.tsx +9 -2
- package/src/features/keyboard/components/BasicPlusLayout/keyboardGroups.ts +7 -21
- package/src/features/keyboard/components/BasicPlusPlusLayout/keyboardGroups.ts +0 -4
- package/src/features/keyboard/components/Keyboard.tsx +4 -5
- package/src/features/keyboard/components/KeysList/KeysList.tsx +2 -1
- package/src/features/keyboard/components/KeysList/helpers.ts +3 -1
- package/src/features/keyboard/components/MainLayout.tsx +72 -0
- package/src/features/keyboard/components/UnderlinedLayout/UnderlinedLayout.tsx +12 -0
- package/src/features/keyboard/components/UnderlinedLayout/keyboardGroups.ts +12 -0
- package/src/features/keyboard/components/UnitsLayout/UnitsLayout.tsx +2 -1
- package/src/features/keyboard/components/UnitsLayout/helpers.tsx +10 -2
- package/src/features/keyboard/components/constants.ts +1 -5
- package/src/features/keyboard/constants/keyboardGroupsByLocale.ts +2 -0
- package/src/features/keyboard/constants/keyboardLayouts.ts +1 -1
- package/src/features/keyboard/types/MathKeysGroups/basicOperators.tsx +21 -0
- package/src/features/keyboard/types/keyboardGroupIds.ts +1 -0
- package/src/features/keyboard/types/types.ts +2 -0
- package/src/shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon.tsx +17 -0
- package/src/shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon.tsx +20 -0
- package/src/shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon.tsx +20 -0
|
@@ -9,19 +9,15 @@ export const LAYOUT_STYLES_CONFIG = {
|
|
|
9
9
|
paddingLeft: SPACING[800],
|
|
10
10
|
},
|
|
11
11
|
BASIC: { borderColor: 'transparent', paddingLeft: SPACING[800] },
|
|
12
|
-
ALGEBRA: { borderColor: COLORS.NEUTRAL_3, paddingLeft: SPACING[200] },
|
|
13
12
|
} as const
|
|
14
13
|
|
|
15
14
|
export const getLayoutConfigStyles = (characterType?: number, isMobile?: boolean) => {
|
|
16
15
|
if (!characterType || !isMobile) return LAYOUT_STYLES_CONFIG.DEFAULT
|
|
17
16
|
|
|
18
|
-
const { Basic
|
|
17
|
+
const { Basic } = KEYBOARD_LAYOUTS
|
|
19
18
|
|
|
20
19
|
if (Basic.characterTypes.includes(characterType)) return LAYOUT_STYLES_CONFIG.BASIC
|
|
21
20
|
|
|
22
|
-
if ([...AlgebraAdvanced.characterTypes, ...BasicPlus.characterTypes].includes(characterType))
|
|
23
|
-
return LAYOUT_STYLES_CONFIG.ALGEBRA
|
|
24
|
-
|
|
25
21
|
return LAYOUT_STYLES_CONFIG.DEFAULT
|
|
26
22
|
}
|
|
27
23
|
|
|
@@ -39,6 +39,7 @@ import {
|
|
|
39
39
|
import { Locale } from '../../../shared/translation'
|
|
40
40
|
import { MATH_ENTRY_ALGEBRA_KEYBOARD_GROUP } from '../components/AlgebraLayout/keyboardGroups'
|
|
41
41
|
import { KeyboardUnitsGroupType, UnitKeyboardGroups } from '../components/UnitsLayout/types'
|
|
42
|
+
import { MATH_ENTRY_UNDERLINED_KEYBOARD_GROUP } from '../components/UnderlinedLayout/keyboardGroups'
|
|
42
43
|
|
|
43
44
|
function createKeyboardLocale(overrides: Partial<Record<KeyboardType, KeyboardGroup>>) {
|
|
44
45
|
const base: Record<KeyboardType, KeyboardGroup> = {
|
|
@@ -55,6 +56,7 @@ function createKeyboardLocale(overrides: Partial<Record<KeyboardType, KeyboardGr
|
|
|
55
56
|
[KeyboardType.BasicTime]: MATH_TIME_US_KEYBOARD_GROUP,
|
|
56
57
|
[KeyboardType.AlgebraAdvanced]: MATH_ENTRY_ALGEBRA_KEYBOARD_GROUP,
|
|
57
58
|
[KeyboardType.Numpad]: MATH_ENTRY_NUMBERS_US_KEYBOARD_GROUP,
|
|
59
|
+
[KeyboardType.Underlined]: MATH_ENTRY_UNDERLINED_KEYBOARD_GROUP,
|
|
58
60
|
}
|
|
59
61
|
return { ...base, ...overrides }
|
|
60
62
|
}
|
|
@@ -30,7 +30,6 @@ export const KEYBOARD_LAYOUTS = {
|
|
|
30
30
|
MyScriptMathCharacterTypes.NUMBERS,
|
|
31
31
|
MyScriptMathCharacterTypes.NUMBERS_AND_X,
|
|
32
32
|
MyScriptMathCharacterTypes.NUMBERS_AND_MULTIPLICATION,
|
|
33
|
-
MyScriptMathCharacterTypes.NUMBERS_RATIONAL,
|
|
34
33
|
MyScriptMathCharacterTypes.OPERATORS,
|
|
35
34
|
MyScriptMathCharacterTypes.PERCENT,
|
|
36
35
|
],
|
|
@@ -55,6 +54,7 @@ export const KEYBOARD_LAYOUTS = {
|
|
|
55
54
|
characterTypes: [
|
|
56
55
|
MyScriptMathCharacterTypes.GEOM_ANGLES,
|
|
57
56
|
MyScriptMathCharacterTypes.GEOM_COORDINATE,
|
|
57
|
+
MyScriptMathCharacterTypes.NUMBERS_RATIONAL,
|
|
58
58
|
],
|
|
59
59
|
},
|
|
60
60
|
}
|
|
@@ -42,6 +42,9 @@ import { EqualsIcon } from '../../../../shared/icons/keyboard/EqualsIcon/EqualsI
|
|
|
42
42
|
import { AbsoluteValueIcon } from '../../../../shared/icons/keyboard/AbsoluteValueIcon/AbsoluteValueIcon'
|
|
43
43
|
import { IntervalIcon } from '../../../../shared/icons/keyboard/IntervalIcon/IntervalIcon'
|
|
44
44
|
import { createMathKeysGroup } from './helpers'
|
|
45
|
+
import { UnderlinedTenIcon } from '../../../../shared/icons/keyboard/UnderlinedTenIcon/UnderlinedTenIcon'
|
|
46
|
+
import { UnderlinedOneIcon } from '../../../../shared/icons/keyboard/UnderlinedOneIcon/UnderlinedOneIcon'
|
|
47
|
+
import { UnderlinedUIcon } from '../../../../shared/icons/keyboard/UnderlinedUIcon/UnderlinedUIcon'
|
|
45
48
|
|
|
46
49
|
export const MATH_BASIC_OPERATORS = createMathKeysGroup({
|
|
47
50
|
ADDITION: {
|
|
@@ -266,4 +269,22 @@ export const MATH_BASIC_OPERATORS = createMathKeysGroup({
|
|
|
266
269
|
mathliveValue: '$\\left[, \\right]$',
|
|
267
270
|
katexValue: '[ , ]',
|
|
268
271
|
},
|
|
272
|
+
UNDERLINED_TEN: {
|
|
273
|
+
icon: <UnderlinedTenIcon {...DEFAULT_KEY_ICON_PROPS} />,
|
|
274
|
+
mathliveValue: '\\underline{10}',
|
|
275
|
+
katexValue: '10̲',
|
|
276
|
+
spreadsheetValue: 'TEN',
|
|
277
|
+
},
|
|
278
|
+
UNDERLINED_ONE: {
|
|
279
|
+
icon: <UnderlinedOneIcon {...DEFAULT_KEY_ICON_PROPS} />,
|
|
280
|
+
mathliveValue: '\\underline{1}',
|
|
281
|
+
katexValue: '1̲',
|
|
282
|
+
spreadsheetValue: 'ONE_FOOT_NOTE',
|
|
283
|
+
},
|
|
284
|
+
UNDERLINED_U: {
|
|
285
|
+
icon: <UnderlinedUIcon {...DEFAULT_KEY_ICON_PROPS} />,
|
|
286
|
+
mathliveValue: '\\underline{u}',
|
|
287
|
+
katexValue: 'U̲',
|
|
288
|
+
spreadsheetValue: 'FRACTION',
|
|
289
|
+
},
|
|
269
290
|
})
|
|
@@ -13,6 +13,7 @@ export const enum KeyboardType {
|
|
|
13
13
|
BasicPlusPlus = 'BasicPlusPlus',
|
|
14
14
|
BasicPlusPlusMobile = 'BasicPlusPlusMobile',
|
|
15
15
|
Numpad = 'Numpad',
|
|
16
|
+
Underlined = 'Underlined',
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
export type KeyboardKey = {
|
|
@@ -44,6 +45,7 @@ export type KeyboardGroup = {
|
|
|
44
45
|
|
|
45
46
|
export type KeyboardLayoutProps = {
|
|
46
47
|
onKeyPress: (key: KeyboardKeyValue) => void
|
|
48
|
+
onLayoutChange?: (isSecondaryLayout: boolean) => void
|
|
47
49
|
color?: SelectOptionColor
|
|
48
50
|
isDisabled?: boolean
|
|
49
51
|
disabledKeys?: KeyboardKey[]
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
}
|