@magmamath/students-features 1.3.4-rc.1 → 1.3.4-rc.2
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 +20 -72
- package/dist/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/GeometryLayout/GeometryLayout.js +33 -0
- package/dist/commonjs/features/keyboard/components/GeometryLayout/GeometryLayout.js.map +1 -0
- package/dist/commonjs/features/keyboard/components/SwitchableLayout/SwitchableLayout.js +94 -0
- package/dist/commonjs/features/keyboard/components/SwitchableLayout/SwitchableLayout.js.map +1 -0
- package/dist/commonjs/features/keyboard/components/SwitchableLayout/helpers.js +25 -0
- package/dist/commonjs/features/keyboard/components/SwitchableLayout/helpers.js.map +1 -0
- package/dist/commonjs/features/keyboard/components/{AlgebraLayout → SwitchableLayout}/types.js +1 -1
- package/dist/commonjs/features/keyboard/components/SwitchableLayout/types.js.map +1 -0
- package/dist/commonjs/features/keyboard/constants/groups/geometry.constants.js +11 -0
- package/dist/commonjs/features/keyboard/constants/groups/geometry.constants.js.map +1 -0
- package/dist/commonjs/features/keyboard/constants/groups/index.js +11 -0
- package/dist/commonjs/features/keyboard/constants/groups/index.js.map +1 -1
- package/dist/commonjs/features/keyboard/constants/keyboard.constants.js +6 -1
- package/dist/commonjs/features/keyboard/constants/keyboard.constants.js.map +1 -1
- package/dist/commonjs/features/keyboard/constants/keyboard.helpers.js +2 -0
- package/dist/commonjs/features/keyboard/constants/keyboard.helpers.js.map +1 -1
- package/dist/commonjs/features/keyboard/constants/keyboardLayouts.js +18 -8
- package/dist/commonjs/features/keyboard/constants/keyboardLayouts.js.map +1 -1
- package/dist/commonjs/features/keyboard/constants/keys/geometry.constants.js +86 -1
- package/dist/commonjs/features/keyboard/constants/keys/geometry.constants.js.map +1 -1
- package/dist/commonjs/features/keyboard/constants/keys/text.constants.js +9 -9
- package/dist/commonjs/features/keyboard/constants/keys/units.constants.js +2 -1
- package/dist/commonjs/features/keyboard/constants/keys/units.constants.js.map +1 -1
- package/dist/commonjs/features/keyboard/types/types.js +1 -0
- package/dist/commonjs/features/keyboard/types/types.js.map +1 -1
- package/dist/commonjs/shared/icons/GeometryIcon.js +32 -0
- package/dist/commonjs/shared/icons/GeometryIcon.js.map +1 -0
- package/dist/commonjs/shared/icons/keyboard/AngleIcon.js +4 -3
- package/dist/commonjs/shared/icons/keyboard/AngleIcon.js.map +1 -1
- package/dist/commonjs/shared/icons/keyboard/BidirectionalSegmentIcon.js +12 -8
- package/dist/commonjs/shared/icons/keyboard/BidirectionalSegmentIcon.js.map +1 -1
- package/dist/commonjs/shared/icons/keyboard/ImpliesIcon.js +30 -0
- package/dist/commonjs/shared/icons/keyboard/ImpliesIcon.js.map +1 -0
- package/dist/commonjs/shared/icons/keyboard/LetterAIcon.js +29 -0
- package/dist/commonjs/shared/icons/keyboard/LetterAIcon.js.map +1 -0
- package/dist/commonjs/shared/icons/keyboard/LetterBIcon.js +29 -0
- package/dist/commonjs/shared/icons/keyboard/LetterBIcon.js.map +1 -0
- package/dist/commonjs/shared/icons/keyboard/LetterCIcon.js +29 -0
- package/dist/commonjs/shared/icons/keyboard/LetterCIcon.js.map +1 -0
- package/dist/commonjs/shared/icons/keyboard/LineSegmentIcon.js +11 -6
- package/dist/commonjs/shared/icons/keyboard/LineSegmentIcon.js.map +1 -1
- package/dist/commonjs/shared/icons/keyboard/RightDirectedSegmentIcon.js +12 -8
- package/dist/commonjs/shared/icons/keyboard/RightDirectedSegmentIcon.js.map +1 -1
- package/dist/commonjs/shared/icons/keyboard/ThereforeIcon.js +42 -0
- package/dist/commonjs/shared/icons/keyboard/ThereforeIcon.js.map +1 -0
- package/dist/commonjs/shared/icons/keyboard/TriangleIcon.js +32 -0
- package/dist/commonjs/shared/icons/keyboard/TriangleIcon.js.map +1 -0
- package/dist/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.js +21 -72
- package/dist/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.js.map +1 -1
- package/dist/module/features/keyboard/components/GeometryLayout/GeometryLayout.js +27 -0
- package/dist/module/features/keyboard/components/GeometryLayout/GeometryLayout.js.map +1 -0
- package/dist/module/features/keyboard/components/SwitchableLayout/SwitchableLayout.js +87 -0
- package/dist/module/features/keyboard/components/SwitchableLayout/SwitchableLayout.js.map +1 -0
- package/dist/module/features/keyboard/components/SwitchableLayout/helpers.js +21 -0
- package/dist/module/features/keyboard/components/SwitchableLayout/helpers.js.map +1 -0
- package/dist/module/features/keyboard/components/{AlgebraLayout → SwitchableLayout}/types.js +1 -1
- package/dist/module/features/keyboard/components/SwitchableLayout/types.js.map +1 -0
- package/dist/module/features/keyboard/constants/groups/geometry.constants.js +7 -0
- package/dist/module/features/keyboard/constants/groups/geometry.constants.js.map +1 -0
- package/dist/module/features/keyboard/constants/groups/index.js +1 -0
- package/dist/module/features/keyboard/constants/groups/index.js.map +1 -1
- package/dist/module/features/keyboard/constants/keyboard.constants.js +5 -0
- package/dist/module/features/keyboard/constants/keyboard.constants.js.map +1 -1
- package/dist/module/features/keyboard/constants/keyboard.helpers.js +3 -1
- package/dist/module/features/keyboard/constants/keyboard.helpers.js.map +1 -1
- package/dist/module/features/keyboard/constants/keyboardLayouts.js +19 -9
- package/dist/module/features/keyboard/constants/keyboardLayouts.js.map +1 -1
- package/dist/module/features/keyboard/constants/keys/geometry.constants.js +86 -1
- package/dist/module/features/keyboard/constants/keys/geometry.constants.js.map +1 -1
- package/dist/module/features/keyboard/constants/keys/text.constants.js +9 -9
- package/dist/module/features/keyboard/constants/keys/units.constants.js +2 -1
- package/dist/module/features/keyboard/constants/keys/units.constants.js.map +1 -1
- package/dist/module/features/keyboard/types/types.js +1 -0
- package/dist/module/features/keyboard/types/types.js.map +1 -1
- package/dist/module/shared/icons/GeometryIcon.js +24 -0
- package/dist/module/shared/icons/GeometryIcon.js.map +1 -0
- package/dist/module/shared/icons/keyboard/AngleIcon.js +4 -3
- package/dist/module/shared/icons/keyboard/AngleIcon.js.map +1 -1
- package/dist/module/shared/icons/keyboard/BidirectionalSegmentIcon.js +13 -9
- package/dist/module/shared/icons/keyboard/BidirectionalSegmentIcon.js.map +1 -1
- package/dist/module/shared/icons/keyboard/ImpliesIcon.js +22 -0
- package/dist/module/shared/icons/keyboard/ImpliesIcon.js.map +1 -0
- package/dist/module/shared/icons/keyboard/LetterAIcon.js +21 -0
- package/dist/module/shared/icons/keyboard/LetterAIcon.js.map +1 -0
- package/dist/module/shared/icons/keyboard/LetterBIcon.js +21 -0
- package/dist/module/shared/icons/keyboard/LetterBIcon.js.map +1 -0
- package/dist/module/shared/icons/keyboard/LetterCIcon.js +21 -0
- package/dist/module/shared/icons/keyboard/LetterCIcon.js.map +1 -0
- package/dist/module/shared/icons/keyboard/LineSegmentIcon.js +12 -7
- package/dist/module/shared/icons/keyboard/LineSegmentIcon.js.map +1 -1
- package/dist/module/shared/icons/keyboard/RightDirectedSegmentIcon.js +13 -9
- package/dist/module/shared/icons/keyboard/RightDirectedSegmentIcon.js.map +1 -1
- package/dist/module/shared/icons/keyboard/ThereforeIcon.js +34 -0
- package/dist/module/shared/icons/keyboard/ThereforeIcon.js.map +1 -0
- package/dist/module/shared/icons/keyboard/TriangleIcon.js +24 -0
- package/dist/module/shared/icons/keyboard/TriangleIcon.js.map +1 -0
- package/dist/typescript/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.d.ts +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/AlgebraLayout/AlgebraLayout.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/GeometryLayout/GeometryLayout.d.ts +4 -0
- package/dist/typescript/commonjs/features/keyboard/components/GeometryLayout/GeometryLayout.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/keyboard/components/SwitchableLayout/SwitchableLayout.d.ts +4 -0
- package/dist/typescript/commonjs/features/keyboard/components/SwitchableLayout/SwitchableLayout.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/keyboard/components/SwitchableLayout/helpers.d.ts +12 -0
- package/dist/typescript/commonjs/features/keyboard/components/SwitchableLayout/helpers.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/keyboard/components/SwitchableLayout/types.d.ts +21 -0
- package/dist/typescript/commonjs/features/keyboard/components/SwitchableLayout/types.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/keyboard/constants/groups/geometry.constants.d.ts +3 -0
- package/dist/typescript/commonjs/features/keyboard/constants/groups/geometry.constants.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/keyboard/constants/groups/index.d.ts +1 -0
- package/dist/typescript/commonjs/features/keyboard/constants/groups/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/constants/keyboard.constants.d.ts +5 -0
- package/dist/typescript/commonjs/features/keyboard/constants/keyboard.constants.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/constants/keyboard.helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/constants/keyboardLayouts.d.ts +13 -4
- package/dist/typescript/commonjs/features/keyboard/constants/keyboardLayouts.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/constants/keys/geometry.constants.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/constants/keys/units.constants.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/types/types.d.ts +1 -0
- package/dist/typescript/commonjs/features/keyboard/types/types.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/icons/GeometryIcon.d.ts +4 -0
- package/dist/typescript/commonjs/shared/icons/GeometryIcon.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/icons/keyboard/AngleIcon.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/icons/keyboard/BidirectionalSegmentIcon.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/icons/keyboard/ImpliesIcon.d.ts +4 -0
- package/dist/typescript/commonjs/shared/icons/keyboard/ImpliesIcon.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/icons/keyboard/LetterAIcon.d.ts +4 -0
- package/dist/typescript/commonjs/shared/icons/keyboard/LetterAIcon.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/icons/keyboard/LetterBIcon.d.ts +4 -0
- package/dist/typescript/commonjs/shared/icons/keyboard/LetterBIcon.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/icons/keyboard/LetterCIcon.d.ts +4 -0
- package/dist/typescript/commonjs/shared/icons/keyboard/LetterCIcon.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/icons/keyboard/LineSegmentIcon.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/icons/keyboard/RightDirectedSegmentIcon.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/icons/keyboard/ThereforeIcon.d.ts +4 -0
- package/dist/typescript/commonjs/shared/icons/keyboard/ThereforeIcon.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/icons/keyboard/TriangleIcon.d.ts +4 -0
- package/dist/typescript/commonjs/shared/icons/keyboard/TriangleIcon.d.ts.map +1 -0
- package/dist/typescript/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.d.ts +1 -1
- package/dist/typescript/module/features/keyboard/components/AlgebraLayout/AlgebraLayout.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/GeometryLayout/GeometryLayout.d.ts +4 -0
- package/dist/typescript/module/features/keyboard/components/GeometryLayout/GeometryLayout.d.ts.map +1 -0
- package/dist/typescript/module/features/keyboard/components/SwitchableLayout/SwitchableLayout.d.ts +4 -0
- package/dist/typescript/module/features/keyboard/components/SwitchableLayout/SwitchableLayout.d.ts.map +1 -0
- package/dist/typescript/module/features/keyboard/components/SwitchableLayout/helpers.d.ts +12 -0
- package/dist/typescript/module/features/keyboard/components/SwitchableLayout/helpers.d.ts.map +1 -0
- package/dist/typescript/module/features/keyboard/components/SwitchableLayout/types.d.ts +21 -0
- package/dist/typescript/module/features/keyboard/components/SwitchableLayout/types.d.ts.map +1 -0
- package/dist/typescript/module/features/keyboard/constants/groups/geometry.constants.d.ts +3 -0
- package/dist/typescript/module/features/keyboard/constants/groups/geometry.constants.d.ts.map +1 -0
- package/dist/typescript/module/features/keyboard/constants/groups/index.d.ts +1 -0
- package/dist/typescript/module/features/keyboard/constants/groups/index.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/constants/keyboard.constants.d.ts +5 -0
- package/dist/typescript/module/features/keyboard/constants/keyboard.constants.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/constants/keyboard.helpers.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/constants/keyboardLayouts.d.ts +13 -4
- package/dist/typescript/module/features/keyboard/constants/keyboardLayouts.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/constants/keys/geometry.constants.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/constants/keys/units.constants.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/types/types.d.ts +1 -0
- package/dist/typescript/module/features/keyboard/types/types.d.ts.map +1 -1
- package/dist/typescript/module/shared/icons/GeometryIcon.d.ts +4 -0
- package/dist/typescript/module/shared/icons/GeometryIcon.d.ts.map +1 -0
- package/dist/typescript/module/shared/icons/keyboard/AngleIcon.d.ts.map +1 -1
- package/dist/typescript/module/shared/icons/keyboard/BidirectionalSegmentIcon.d.ts.map +1 -1
- package/dist/typescript/module/shared/icons/keyboard/ImpliesIcon.d.ts +4 -0
- package/dist/typescript/module/shared/icons/keyboard/ImpliesIcon.d.ts.map +1 -0
- package/dist/typescript/module/shared/icons/keyboard/LetterAIcon.d.ts +4 -0
- package/dist/typescript/module/shared/icons/keyboard/LetterAIcon.d.ts.map +1 -0
- package/dist/typescript/module/shared/icons/keyboard/LetterBIcon.d.ts +4 -0
- package/dist/typescript/module/shared/icons/keyboard/LetterBIcon.d.ts.map +1 -0
- package/dist/typescript/module/shared/icons/keyboard/LetterCIcon.d.ts +4 -0
- package/dist/typescript/module/shared/icons/keyboard/LetterCIcon.d.ts.map +1 -0
- package/dist/typescript/module/shared/icons/keyboard/LineSegmentIcon.d.ts.map +1 -1
- package/dist/typescript/module/shared/icons/keyboard/RightDirectedSegmentIcon.d.ts.map +1 -1
- package/dist/typescript/module/shared/icons/keyboard/ThereforeIcon.d.ts +4 -0
- package/dist/typescript/module/shared/icons/keyboard/ThereforeIcon.d.ts.map +1 -0
- package/dist/typescript/module/shared/icons/keyboard/TriangleIcon.d.ts +4 -0
- package/dist/typescript/module/shared/icons/keyboard/TriangleIcon.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/features/keyboard/components/AlgebraLayout/AlgebraLayout.tsx +17 -73
- package/src/features/keyboard/components/GeometryLayout/GeometryLayout.tsx +21 -0
- package/src/features/keyboard/components/SwitchableLayout/SwitchableLayout.tsx +100 -0
- package/src/features/keyboard/components/SwitchableLayout/helpers.tsx +31 -0
- package/src/features/keyboard/components/SwitchableLayout/types.ts +24 -0
- package/src/features/keyboard/constants/groups/geometry.constants.ts +25 -0
- package/src/features/keyboard/constants/groups/index.ts +1 -0
- package/src/features/keyboard/constants/keyboard.constants.ts +6 -0
- package/src/features/keyboard/constants/keyboard.helpers.ts +3 -0
- package/src/features/keyboard/constants/keyboardLayouts.ts +15 -5
- package/src/features/keyboard/constants/keys/geometry.constants.tsx +61 -1
- package/src/features/keyboard/constants/keys/text.constants.tsx +9 -9
- package/src/features/keyboard/constants/keys/units.constants.tsx +1 -0
- package/src/features/keyboard/types/types.ts +1 -0
- package/src/shared/icons/GeometryIcon.tsx +18 -0
- package/src/shared/icons/keyboard/AngleIcon.tsx +4 -2
- package/src/shared/icons/keyboard/BidirectionalSegmentIcon.tsx +5 -8
- package/src/shared/icons/keyboard/ImpliesIcon.tsx +16 -0
- package/src/shared/icons/keyboard/LetterAIcon.tsx +14 -0
- package/src/shared/icons/keyboard/LetterBIcon.tsx +14 -0
- package/src/shared/icons/keyboard/LetterCIcon.tsx +14 -0
- package/src/shared/icons/keyboard/LineSegmentIcon.tsx +6 -7
- package/src/shared/icons/keyboard/RightDirectedSegmentIcon.tsx +5 -8
- package/src/shared/icons/keyboard/ThereforeIcon.tsx +15 -0
- package/src/shared/icons/keyboard/TriangleIcon.tsx +18 -0
- package/dist/commonjs/features/keyboard/components/AlgebraLayout/helpers.js +0 -41
- package/dist/commonjs/features/keyboard/components/AlgebraLayout/helpers.js.map +0 -1
- package/dist/commonjs/features/keyboard/components/AlgebraLayout/types.js.map +0 -1
- package/dist/module/features/keyboard/components/AlgebraLayout/helpers.js +0 -36
- package/dist/module/features/keyboard/components/AlgebraLayout/helpers.js.map +0 -1
- package/dist/module/features/keyboard/components/AlgebraLayout/types.js.map +0 -1
- package/dist/typescript/commonjs/features/keyboard/components/AlgebraLayout/helpers.d.ts +0 -15
- package/dist/typescript/commonjs/features/keyboard/components/AlgebraLayout/helpers.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/keyboard/components/AlgebraLayout/types.d.ts +0 -5
- package/dist/typescript/commonjs/features/keyboard/components/AlgebraLayout/types.d.ts.map +0 -1
- package/dist/typescript/module/features/keyboard/components/AlgebraLayout/helpers.d.ts +0 -15
- package/dist/typescript/module/features/keyboard/components/AlgebraLayout/helpers.d.ts.map +0 -1
- package/dist/typescript/module/features/keyboard/components/AlgebraLayout/types.d.ts +0 -5
- package/dist/typescript/module/features/keyboard/components/AlgebraLayout/types.d.ts.map +0 -1
- package/src/features/keyboard/components/AlgebraLayout/helpers.tsx +0 -52
- package/src/features/keyboard/components/AlgebraLayout/types.ts +0 -4
|
@@ -5,6 +5,15 @@ import { DegreeIcon } from '../../../../shared/icons/keyboard/DegreeIcon'
|
|
|
5
5
|
import { AngleIcon } from '../../../../shared/icons/keyboard/AngleIcon'
|
|
6
6
|
import { ParallelIcon } from '../../../../shared/icons/keyboard/ParallelIcon'
|
|
7
7
|
import { PerpendicularIcon } from '../../../../shared/icons/keyboard/PerpendicularIcon'
|
|
8
|
+
import { TriangleIcon } from '../../../../shared/icons/keyboard/TriangleIcon'
|
|
9
|
+
import { ThereforeIcon } from '../../../../shared/icons/keyboard/ThereforeIcon'
|
|
10
|
+
import { ImpliesIcon } from '../../../../shared/icons/keyboard/ImpliesIcon'
|
|
11
|
+
import { LineSegmentIcon } from '../../../../shared/icons/keyboard/LineSegmentIcon'
|
|
12
|
+
import { RightDirectedSegmentIcon } from '../../../../shared/icons/keyboard/RightDirectedSegmentIcon'
|
|
13
|
+
import { BidirectionalSegmentIcon } from '../../../../shared/icons/keyboard/BidirectionalSegmentIcon'
|
|
14
|
+
import { LetterAIcon } from '../../../../shared/icons/keyboard/LetterAIcon'
|
|
15
|
+
import { LetterBIcon } from '../../../../shared/icons/keyboard/LetterBIcon'
|
|
16
|
+
import { LetterCIcon } from '../../../../shared/icons/keyboard/LetterCIcon'
|
|
8
17
|
import { DEFAULT_KEY_ICON_PROPS } from '../keyboard.constants'
|
|
9
18
|
|
|
10
19
|
export const MATH_GEOMETRY_SYMBOLS: MathOperatorsGroup = {
|
|
@@ -14,7 +23,7 @@ export const MATH_GEOMETRY_SYMBOLS: MathOperatorsGroup = {
|
|
|
14
23
|
katexValue: '°',
|
|
15
24
|
},
|
|
16
25
|
ANGLE: {
|
|
17
|
-
icon: <AngleIcon {...DEFAULT_KEY_ICON_PROPS} />,
|
|
26
|
+
icon: <AngleIcon {...DEFAULT_KEY_ICON_PROPS} size={20} />,
|
|
18
27
|
mathliveValue: '\\angle',
|
|
19
28
|
katexValue: '∠',
|
|
20
29
|
},
|
|
@@ -45,4 +54,55 @@ export const MATH_GEOMETRY_SYMBOLS: MathOperatorsGroup = {
|
|
|
45
54
|
},
|
|
46
55
|
},
|
|
47
56
|
},
|
|
57
|
+
TRIANGLE: {
|
|
58
|
+
icon: <TriangleIcon {...DEFAULT_KEY_ICON_PROPS} size={20} />,
|
|
59
|
+
mathliveValue: '\\triangle',
|
|
60
|
+
katexValue: '△',
|
|
61
|
+
},
|
|
62
|
+
THEREFORE: {
|
|
63
|
+
icon: <ThereforeIcon {...DEFAULT_KEY_ICON_PROPS} size={20} />,
|
|
64
|
+
mathliveValue: '\\therefore',
|
|
65
|
+
katexValue: '∴',
|
|
66
|
+
},
|
|
67
|
+
IMPLIES: {
|
|
68
|
+
icon: <ImpliesIcon {...DEFAULT_KEY_ICON_PROPS} size={20} />,
|
|
69
|
+
mathliveValue: '\\Rightarrow',
|
|
70
|
+
katexValue: '⇒',
|
|
71
|
+
},
|
|
72
|
+
LINE_SEGMENT: {
|
|
73
|
+
icon: <LineSegmentIcon {...DEFAULT_KEY_ICON_PROPS} size={20} />,
|
|
74
|
+
mathliveValue: '\\overline{\\placeholder{}}',
|
|
75
|
+
katexValue: 'LINE_SEGMENT',
|
|
76
|
+
spreadsheetValue: 'LINE_SEGMENT',
|
|
77
|
+
isSpecialSymbol: true,
|
|
78
|
+
},
|
|
79
|
+
RIGHT_DIRECTED_SEGMENT: {
|
|
80
|
+
icon: <RightDirectedSegmentIcon {...DEFAULT_KEY_ICON_PROPS} size={20} />,
|
|
81
|
+
mathliveValue: '\\overrightarrow{\\placeholder{}}',
|
|
82
|
+
katexValue: 'RIGHT_DIRECTED_SEGMENT',
|
|
83
|
+
spreadsheetValue: 'RIGHT_DIRECTED_SEGMENT',
|
|
84
|
+
isSpecialSymbol: true,
|
|
85
|
+
},
|
|
86
|
+
BIDIRECTIONAL_SEGMENT: {
|
|
87
|
+
icon: <BidirectionalSegmentIcon {...DEFAULT_KEY_ICON_PROPS} size={20} />,
|
|
88
|
+
mathliveValue: '\\overleftrightarrow{\\placeholder{}}',
|
|
89
|
+
katexValue: 'BIDIRECTIONAL_SEGMENT',
|
|
90
|
+
spreadsheetValue: 'BIDIRECTIONAL_SEGMENT',
|
|
91
|
+
isSpecialSymbol: true,
|
|
92
|
+
},
|
|
93
|
+
A: {
|
|
94
|
+
icon: <LetterAIcon {...DEFAULT_KEY_ICON_PROPS} />,
|
|
95
|
+
mathliveValue: '𝐴',
|
|
96
|
+
katexValue: 'A',
|
|
97
|
+
},
|
|
98
|
+
B: {
|
|
99
|
+
icon: <LetterBIcon {...DEFAULT_KEY_ICON_PROPS} />,
|
|
100
|
+
mathliveValue: '𝐵',
|
|
101
|
+
katexValue: 'B',
|
|
102
|
+
},
|
|
103
|
+
C: {
|
|
104
|
+
icon: <LetterCIcon {...DEFAULT_KEY_ICON_PROPS} />,
|
|
105
|
+
mathliveValue: '𝐶',
|
|
106
|
+
katexValue: 'C',
|
|
107
|
+
},
|
|
48
108
|
} as const
|
|
@@ -7,19 +7,19 @@ import { DEFAULT_KEY_ICON_PROPS } from '../keyboard.constants'
|
|
|
7
7
|
|
|
8
8
|
export const MATH_TEXT_SYMBOLS: MathOperatorsGroup = {
|
|
9
9
|
A: {
|
|
10
|
-
label: '
|
|
11
|
-
mathliveValue: '
|
|
12
|
-
katexValue: '
|
|
10
|
+
label: 'A',
|
|
11
|
+
mathliveValue: 'A',
|
|
12
|
+
katexValue: 'A',
|
|
13
13
|
},
|
|
14
14
|
B: {
|
|
15
|
-
label: '
|
|
16
|
-
mathliveValue: '
|
|
17
|
-
katexValue: '
|
|
15
|
+
label: 'B',
|
|
16
|
+
mathliveValue: 'B',
|
|
17
|
+
katexValue: 'B',
|
|
18
18
|
},
|
|
19
19
|
C: {
|
|
20
|
-
label: '
|
|
21
|
-
mathliveValue: '
|
|
22
|
-
katexValue: '
|
|
20
|
+
label: 'C',
|
|
21
|
+
mathliveValue: 'C',
|
|
22
|
+
katexValue: 'C',
|
|
23
23
|
},
|
|
24
24
|
F: {
|
|
25
25
|
label: 'f',
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { IconProps } from './keyboard/icon.types'
|
|
3
|
+
import Svg, { Path } from 'react-native-svg'
|
|
4
|
+
|
|
5
|
+
export const GeometryIcon = ({ size = 16, color }: IconProps) => {
|
|
6
|
+
return (
|
|
7
|
+
<Svg width={size} height={size} viewBox="0 0 16 16" fill="none">
|
|
8
|
+
<Path
|
|
9
|
+
d="M15.499 16.0009H14.998L15.499 15.4999V16.0009ZM0.399414 15.9902C0.204051 15.9502 0.0497107 15.7968 0.00976562 15.6015L0 15.5009V0.500901C9.37645e-05 0.0555518 0.538555 -0.167482 0.853516 0.147385L15.8525 15.1474C16.1674 15.4624 15.9444 16.0009 15.499 16.0009V15.4999L14.998 16.0009H0.5L0.399414 15.9902ZM1.59961 14.4003H12.8428L1.59961 3.15715V14.4003Z"
|
|
10
|
+
fill={color}
|
|
11
|
+
/>
|
|
12
|
+
<Path
|
|
13
|
+
d="M5.09541 10.7012C5.20587 10.7012 5.29541 10.7907 5.29541 10.9012V13.5055C5.29541 13.616 5.20587 13.7055 5.09541 13.7055H4.20604C4.09558 13.7055 4.00604 13.616 4.00604 13.5055V12.1898C4.00604 12.0793 3.9165 11.9898 3.80604 11.9898H2.49108C2.38062 11.9898 2.29108 11.9002 2.29108 11.7898V10.9012C2.29108 10.7907 2.38062 10.7012 2.49108 10.7012H5.09541Z"
|
|
14
|
+
fill={color}
|
|
15
|
+
/>
|
|
16
|
+
</Svg>
|
|
17
|
+
)
|
|
18
|
+
}
|
|
@@ -2,11 +2,13 @@ import React from 'react'
|
|
|
2
2
|
import { IconProps } from './icon.types'
|
|
3
3
|
import Svg, { Path } from 'react-native-svg'
|
|
4
4
|
|
|
5
|
+
const ASPECT_RATIO = 20 / 18
|
|
6
|
+
|
|
5
7
|
export const AngleIcon = ({ size = 20, color }: IconProps) => {
|
|
6
8
|
return (
|
|
7
|
-
<Svg width={size} height={size} viewBox="0 0
|
|
9
|
+
<Svg width={size} height={size / ASPECT_RATIO} viewBox="0 0 20 18" fill="none">
|
|
8
10
|
<Path
|
|
9
|
-
d="
|
|
11
|
+
d="M11.841 3.87043C12.1077 3.5183 12.6099 3.44943 12.962 3.71614C13.3142 3.98288 13.384 4.48502 13.1173 4.83723L7.17238 12.6866C7.12249 12.7525 7.16947 12.847 7.25209 12.847H14.5587C15.0004 12.8471 15.3584 13.2051 15.3585 13.6468C15.3585 14.0885 15.0004 14.4465 14.5587 14.4466H5.44154C5.13785 14.4466 4.85992 14.2752 4.72474 14.0032C4.58961 13.7314 4.62065 13.4065 4.80384 13.1644L11.841 3.87043Z"
|
|
10
12
|
fill={color}
|
|
11
13
|
/>
|
|
12
14
|
</Svg>
|
|
@@ -1,20 +1,17 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { IconProps } from './icon.types'
|
|
3
|
-
import Svg, { Path } from 'react-native-svg'
|
|
3
|
+
import Svg, { Path, Rect } from 'react-native-svg'
|
|
4
4
|
|
|
5
|
-
const ASPECT_RATIO =
|
|
5
|
+
const ASPECT_RATIO = 19 / 20
|
|
6
6
|
|
|
7
7
|
export const BidirectionalSegmentIcon = ({ size = 20, color }: IconProps) => {
|
|
8
8
|
return (
|
|
9
|
-
<Svg width={size
|
|
9
|
+
<Svg width={size} height={size / ASPECT_RATIO} viewBox="0 0 19 20" fill="none">
|
|
10
10
|
<Path
|
|
11
|
-
d="M16.
|
|
12
|
-
fill={color}
|
|
13
|
-
/>
|
|
14
|
-
<Path
|
|
15
|
-
d="M8.07948 17L7.70148 14.55H3.52948L2.01748 17H0.407484L6.55348 7.2H7.91149L9.52148 17H8.07948ZM4.32748 13.22H7.51948L6.87548 9.09L4.32748 13.22ZM16.4822 7.2C18.0922 7.2 18.8762 8.236 18.8762 9.342C18.8762 10.434 18.1762 11.54 16.8322 11.82C17.9662 12.128 18.4842 12.996 18.4842 13.906C18.4842 15.432 17.1402 17 14.8162 17H11.0502L13.3182 7.2H16.4822ZM12.7582 15.698H14.9842C16.3842 15.698 17.0562 14.788 17.0562 13.906C17.0562 13.164 16.4822 12.506 15.4042 12.506H13.5002L12.7582 15.698ZM13.7522 11.358H15.5722C16.7762 11.358 17.4482 10.49 17.4482 9.692C17.4482 8.95 16.9862 8.502 16.0202 8.502H14.4102L13.7522 11.358Z"
|
|
11
|
+
d="M16.1464 1.52657C16.3173 1.35571 16.5813 1.33396 16.7754 1.46212L16.8535 1.52657L18.8535 3.52657L18.9179 3.6047C19.0461 3.79878 19.0243 4.06274 18.8535 4.23361L16.8535 6.23361C16.6582 6.42887 16.3417 6.42887 16.1464 6.23361C15.9512 6.03834 15.9512 5.72184 16.1464 5.52657L17.2929 4.38009H1.70699L2.85348 5.52657L2.91793 5.6047C3.0461 5.79878 3.02434 6.06274 2.85348 6.23361C2.68261 6.40447 2.41865 6.42622 2.22457 6.29806L2.14645 6.23361L0.146447 4.23361C-0.0488155 4.03834 -0.0488155 3.72184 0.146447 3.52657L2.14645 1.52657L2.22457 1.46212C2.41865 1.33396 2.68261 1.35571 2.85348 1.52657C3.02434 1.69744 3.0461 1.9614 2.91793 2.15548L2.85348 2.23361L1.70699 3.38009H17.2929L16.1464 2.23361L16.082 2.15548C15.9538 1.9614 15.9756 1.69744 16.1464 1.52657Z"
|
|
16
12
|
fill={color}
|
|
17
13
|
/>
|
|
14
|
+
<Rect x="4.8801" y="8.87988" width="9.24" height="9.24" rx="1.548" stroke="#B3B3BC" />
|
|
18
15
|
</Svg>
|
|
19
16
|
)
|
|
20
17
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { IconProps } from './icon.types'
|
|
3
|
+
import Svg, { Path } from 'react-native-svg'
|
|
4
|
+
|
|
5
|
+
const ASPECT_RATIO = 20 / 18
|
|
6
|
+
|
|
7
|
+
export const ImpliesIcon = ({ size = 20, color }: IconProps) => {
|
|
8
|
+
return (
|
|
9
|
+
<Svg width={size} height={size / ASPECT_RATIO} viewBox="0 0 20 18" fill="none">
|
|
10
|
+
<Path
|
|
11
|
+
d="M11.1808 4.25566C11.4933 3.94351 12.0004 3.94333 12.3127 4.25566L16.4904 8.43438C16.8025 8.74673 16.8025 9.25289 16.4904 9.56524L12.3127 13.7439C12.0004 14.0563 11.4933 14.0561 11.1808 13.7439C10.8684 13.4315 10.8684 12.9245 11.1808 12.6121L11.5441 12.2488H4.07538C3.63366 12.2487 3.27557 11.8908 3.27557 11.449C3.27573 11.0074 3.63376 10.6494 4.07538 10.6492H12.9781C13.0841 10.6492 13.1859 10.6071 13.2609 10.5321L14.7224 9.07052C14.7615 9.03146 14.7615 8.96815 14.7224 8.92909L13.2599 7.46657C13.1849 7.39156 13.0832 7.34941 12.9771 7.34941H4.07538C3.63366 7.34928 3.27557 6.99136 3.27557 6.54961C3.27573 6.108 3.63376 5.74994 4.07538 5.74981H11.5432L11.1808 5.3875C10.8685 5.07514 10.8686 4.5681 11.1808 4.25566Z"
|
|
12
|
+
fill={color}
|
|
13
|
+
/>
|
|
14
|
+
</Svg>
|
|
15
|
+
)
|
|
16
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { IconProps } from './icon.types'
|
|
3
|
+
import Svg, { Path } from 'react-native-svg'
|
|
4
|
+
|
|
5
|
+
export const LetterAIcon = ({ size = 16, color }: IconProps) => {
|
|
6
|
+
return (
|
|
7
|
+
<Svg width={size} height={size} viewBox="0 0 16 16" fill="none">
|
|
8
|
+
<Path
|
|
9
|
+
d="M10.352 14L9.92 11.2H5.152L3.424 14H1.584L8.608 2.8H10.16L12 14H10.352ZM6.064 9.68H9.712L8.976 4.96L6.064 9.68Z"
|
|
10
|
+
fill={color}
|
|
11
|
+
/>
|
|
12
|
+
</Svg>
|
|
13
|
+
)
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { IconProps } from './icon.types'
|
|
3
|
+
import Svg, { Path } from 'react-native-svg'
|
|
4
|
+
|
|
5
|
+
export const LetterBIcon = ({ size = 16, color }: IconProps) => {
|
|
6
|
+
return (
|
|
7
|
+
<Svg width={size} height={size} viewBox="0 0 16 16" fill="none">
|
|
8
|
+
<Path
|
|
9
|
+
d="M9.752 2.8C11.592 2.8 12.488 3.984 12.488 5.248C12.488 6.496 11.688 7.76 10.152 8.08C11.448 8.432 12.04 9.424 12.04 10.464C12.04 12.208 10.504 14 7.848 14H3.544L6.136 2.8H9.752ZM5.496 12.512H8.04C9.64 12.512 10.408 11.472 10.408 10.464C10.408 9.616 9.752 8.864 8.52 8.864H6.344L5.496 12.512ZM6.632 7.552H8.712C10.088 7.552 10.856 6.56 10.856 5.648C10.856 4.8 10.328 4.288 9.224 4.288H7.384L6.632 7.552Z"
|
|
10
|
+
fill={color}
|
|
11
|
+
/>
|
|
12
|
+
</Svg>
|
|
13
|
+
)
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { IconProps } from './icon.types'
|
|
3
|
+
import Svg, { Path } from 'react-native-svg'
|
|
4
|
+
|
|
5
|
+
export const LetterCIcon = ({ size = 16, color }: IconProps) => {
|
|
6
|
+
return (
|
|
7
|
+
<Svg width={size} height={size} viewBox="0 0 16 16" fill="none">
|
|
8
|
+
<Path
|
|
9
|
+
d="M7.98 12.688C9.596 12.688 10.716 11.808 11.516 10.272L12.86 11.024C11.692 13.232 10.012 14.256 7.82 14.256C4.444 14.256 2.732 11.808 2.732 9.024C2.732 5.68 5.148 2.544 8.94 2.544C10.876 2.544 12.348 3.376 13.324 4.88L11.996 5.856C11.356 4.752 10.316 4.096 8.796 4.096C5.948 4.096 4.38 6.464 4.38 8.816C4.38 10.896 5.612 12.688 7.98 12.688Z"
|
|
10
|
+
fill={color}
|
|
11
|
+
/>
|
|
12
|
+
</Svg>
|
|
13
|
+
)
|
|
14
|
+
}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { IconProps } from './icon.types'
|
|
3
|
-
import Svg, { Path } from 'react-native-svg'
|
|
3
|
+
import Svg, { Path, Rect } from 'react-native-svg'
|
|
4
|
+
|
|
5
|
+
const ASPECT_RATIO = 19 / 20
|
|
4
6
|
|
|
5
7
|
export const LineSegmentIcon = ({ size = 20, color }: IconProps) => {
|
|
6
8
|
return (
|
|
7
|
-
<Svg width={size} height={size} viewBox="0 0
|
|
8
|
-
<Path
|
|
9
|
-
d="M19 1C19.2761 1 19.5 1.22386 19.5 1.5C19.5 1.77614 19.2761 2 19 2H1C0.723858 2 0.5 1.77614 0.5 1.5C0.5 1.22386 0.723858 1 1 1H19Z"
|
|
10
|
-
fill={color}
|
|
11
|
-
/>
|
|
9
|
+
<Svg width={size} height={size / ASPECT_RATIO} viewBox="0 0 19 20" fill="none">
|
|
12
10
|
<Path
|
|
13
|
-
d="
|
|
11
|
+
d="M18.5 3.37988C18.7761 3.37988 19 3.60374 19 3.87988C19 4.15603 18.7761 4.37988 18.5 4.37988H0.5C0.223858 4.37988 0 4.15603 0 3.87988C0 3.60374 0.223858 3.37988 0.5 3.37988H18.5Z"
|
|
14
12
|
fill={color}
|
|
15
13
|
/>
|
|
14
|
+
<Rect x="4.88" y="8.87988" width="9.24" height="9.24" rx="1.548" stroke="#B3B3BC" />
|
|
16
15
|
</Svg>
|
|
17
16
|
)
|
|
18
17
|
}
|
|
@@ -1,20 +1,17 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { IconProps } from './icon.types'
|
|
3
|
-
import Svg, { Path } from 'react-native-svg'
|
|
3
|
+
import Svg, { Path, Rect } from 'react-native-svg'
|
|
4
4
|
|
|
5
|
-
const ASPECT_RATIO =
|
|
5
|
+
const ASPECT_RATIO = 19 / 20
|
|
6
6
|
|
|
7
7
|
export const RightDirectedSegmentIcon = ({ size = 20, color }: IconProps) => {
|
|
8
8
|
return (
|
|
9
|
-
<Svg width={size
|
|
9
|
+
<Svg width={size} height={size / ASPECT_RATIO} viewBox="0 0 19 20" fill="none">
|
|
10
10
|
<Path
|
|
11
|
-
d="M16.
|
|
12
|
-
fill={color}
|
|
13
|
-
/>
|
|
14
|
-
<Path
|
|
15
|
-
d="M8.07948 17L7.70148 14.55H3.52948L2.01748 17H0.407484L6.55348 7.2H7.91149L9.52148 17H8.07948ZM4.32748 13.22H7.51948L6.87548 9.09L4.32748 13.22ZM16.4822 7.2C18.0922 7.2 18.8762 8.236 18.8762 9.342C18.8762 10.434 18.1762 11.54 16.8322 11.82C17.9662 12.128 18.4842 12.996 18.4842 13.906C18.4842 15.432 17.1402 17 14.8162 17H11.0502L13.3182 7.2H16.4822ZM12.7582 15.698H14.9842C16.3842 15.698 17.0562 14.788 17.0562 13.906C17.0562 13.164 16.4822 12.506 15.4042 12.506H13.5002L12.7582 15.698ZM13.7522 11.358H15.5722C16.7762 11.358 17.4482 10.49 17.4482 9.692C17.4482 8.95 16.9862 8.502 16.0202 8.502H14.4102L13.7522 11.358Z"
|
|
11
|
+
d="M16.1465 1.52657C16.3173 1.35571 16.5813 1.33396 16.7754 1.46212L16.8535 1.52657L18.8535 3.52657L18.918 3.6047C19.0461 3.79878 19.0244 4.06274 18.8535 4.23361L16.8535 6.23361C16.6583 6.42887 16.3417 6.42887 16.1465 6.23361C15.9512 6.03834 15.9512 5.72184 16.1465 5.52657L17.293 4.38009H0.5C0.223858 4.38009 0 4.15623 0 3.88009C0 3.60395 0.223858 3.38009 0.5 3.38009H17.293L16.1465 2.23361L16.082 2.15548C15.9539 1.9614 15.9756 1.69744 16.1465 1.52657Z"
|
|
16
12
|
fill={color}
|
|
17
13
|
/>
|
|
14
|
+
<Rect x="4.8801" y="8.87988" width="9.24" height="9.24" rx="1.548" stroke="#B3B3BC" />
|
|
18
15
|
</Svg>
|
|
19
16
|
)
|
|
20
17
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { IconProps } from './icon.types'
|
|
3
|
+
import Svg, { Circle } from 'react-native-svg'
|
|
4
|
+
|
|
5
|
+
const ASPECT_RATIO = 20 / 18
|
|
6
|
+
|
|
7
|
+
export const ThereforeIcon = ({ size = 20, color }: IconProps) => {
|
|
8
|
+
return (
|
|
9
|
+
<Svg width={size} height={size / ASPECT_RATIO} viewBox="0 0 20 18" fill="none">
|
|
10
|
+
<Circle cx="7.07972" cy="11.6398" r="1.8" fill={color} />
|
|
11
|
+
<Circle cx="12.9203" cy="11.6398" r="1.8" fill={color} />
|
|
12
|
+
<Circle cx="10" cy="6.36006" r="1.8" fill={color} />
|
|
13
|
+
</Svg>
|
|
14
|
+
)
|
|
15
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { IconProps } from './icon.types'
|
|
3
|
+
import Svg, { Path } from 'react-native-svg'
|
|
4
|
+
|
|
5
|
+
const ASPECT_RATIO = 20 / 18
|
|
6
|
+
|
|
7
|
+
export const TriangleIcon = ({ size = 20, color }: IconProps) => {
|
|
8
|
+
return (
|
|
9
|
+
<Svg width={size} height={size / ASPECT_RATIO} viewBox="0 0 20 18" fill="none">
|
|
10
|
+
<Path
|
|
11
|
+
d="M9.82983 3.56494C9.9081 3.43933 10.0913 3.43941 10.1697 3.56494L16.2488 13.3228C16.3317 13.4559 16.2366 13.6281 16.0798 13.6284H3.92065C3.76376 13.6284 3.66791 13.456 3.75073 13.3228L9.82983 3.56494Z"
|
|
12
|
+
stroke={color}
|
|
13
|
+
strokeWidth="1.6"
|
|
14
|
+
strokeLinejoin="round"
|
|
15
|
+
/>
|
|
16
|
+
</Svg>
|
|
17
|
+
)
|
|
18
|
+
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.getSelectOptions = getSelectOptions;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _reactNativeUi = require("@magmamath/react-native-ui");
|
|
9
|
-
var _AlgebraIcon = require("../../../../shared/icons/AlgebraIcon.js");
|
|
10
|
-
var _IntegralABIcon = require("../../../../shared/icons/IntegralABIcon.js");
|
|
11
|
-
var _types = require("./types.js");
|
|
12
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
-
function getSelectOptions({
|
|
15
|
-
selectedLayout,
|
|
16
|
-
setSelectedLayout,
|
|
17
|
-
onLayoutChange
|
|
18
|
-
}) {
|
|
19
|
-
return [{
|
|
20
|
-
key: _types.SelectedLayout.BASIC,
|
|
21
|
-
title: /*#__PURE__*/(0, _jsxRuntime.jsx)(_AlgebraIcon.AlgebraIcon, {
|
|
22
|
-
color: selectedLayout === _types.SelectedLayout.BASIC ? _reactNativeUi.COLORS.NEUTRAL_1 : _reactNativeUi.COLORS.NEUTRAL_9,
|
|
23
|
-
size: 22
|
|
24
|
-
}),
|
|
25
|
-
onPressIn: () => {
|
|
26
|
-
setSelectedLayout(_types.SelectedLayout.BASIC);
|
|
27
|
-
onLayoutChange?.(false);
|
|
28
|
-
}
|
|
29
|
-
}, {
|
|
30
|
-
key: _types.SelectedLayout.ALGEBRA,
|
|
31
|
-
title: /*#__PURE__*/(0, _jsxRuntime.jsx)(_IntegralABIcon.IntegralABIcon, {
|
|
32
|
-
color: selectedLayout === _types.SelectedLayout.ALGEBRA ? _reactNativeUi.COLORS.NEUTRAL_1 : _reactNativeUi.COLORS.NEUTRAL_9,
|
|
33
|
-
size: 25
|
|
34
|
-
}),
|
|
35
|
-
onPressIn: () => {
|
|
36
|
-
setSelectedLayout(_types.SelectedLayout.ALGEBRA);
|
|
37
|
-
onLayoutChange?.(true);
|
|
38
|
-
}
|
|
39
|
-
}];
|
|
40
|
-
}
|
|
41
|
-
//# sourceMappingURL=helpers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNativeUi","_AlgebraIcon","_IntegralABIcon","_types","_jsxRuntime","e","__esModule","default","getSelectOptions","selectedLayout","setSelectedLayout","onLayoutChange","key","SelectedLayout","BASIC","title","jsx","AlgebraIcon","color","COLORS","NEUTRAL_1","NEUTRAL_9","size","onPressIn","ALGEBRA","IntegralABIcon"],"sourceRoot":"../../../../../../src","sources":["features/keyboard/components/AlgebraLayout/helpers.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,eAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AAAwC,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAcjC,SAASG,gBAAgBA,CAAC;EAC/BC,cAAc;EACdC,iBAAiB;EACjBC;AACqB,CAAC,EAAkB;EACxC,OAAO,CACL;IACEC,GAAG,EAAEC,qBAAc,CAACC,KAAK;IACzBC,KAAK,eACH,IAAAX,WAAA,CAAAY,GAAA,EAACf,YAAA,CAAAgB,WAAW;MACVC,KAAK,EAAET,cAAc,KAAKI,qBAAc,CAACC,KAAK,GAAGK,qBAAM,CAACC,SAAS,GAAGD,qBAAM,CAACE,SAAU;MACrFC,IAAI,EAAE;IAAG,CACV,CACF;IACDC,SAAS,EAAEA,CAAA,KAAM;MACfb,iBAAiB,CAACG,qBAAc,CAACC,KAAK,CAAC;MACvCH,cAAc,GAAG,KAAK,CAAC;IACzB;EACF,CAAC,EACD;IACEC,GAAG,EAAEC,qBAAc,CAACW,OAAO;IAC3BT,KAAK,eACH,IAAAX,WAAA,CAAAY,GAAA,EAACd,eAAA,CAAAuB,cAAc;MACbP,KAAK,EAAET,cAAc,KAAKI,qBAAc,CAACW,OAAO,GAAGL,qBAAM,CAACC,SAAS,GAAGD,qBAAM,CAACE,SAAU;MACvFC,IAAI,EAAE;IAAG,CACV,CACF;IACDC,SAAS,EAAEA,CAAA,KAAM;MACfb,iBAAiB,CAACG,qBAAc,CAACW,OAAO,CAAC;MACzCb,cAAc,GAAG,IAAI,CAAC;IACxB;EACF,CAAC,CACF;AACH","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["SelectedLayout","exports"],"sourceRoot":"../../../../../../src","sources":["features/keyboard/components/AlgebraLayout/types.ts"],"mappings":";;;;;;IAAYA,cAAc,GAAAC,OAAA,CAAAD,cAAA,0BAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAA,OAAdA,cAAc;AAAA","ignoreList":[]}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { COLORS } from '@magmamath/react-native-ui';
|
|
5
|
-
import { AlgebraIcon } from "../../../../shared/icons/AlgebraIcon.js";
|
|
6
|
-
import { IntegralABIcon } from "../../../../shared/icons/IntegralABIcon.js";
|
|
7
|
-
import { SelectedLayout } from "./types.js";
|
|
8
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
-
export function getSelectOptions({
|
|
10
|
-
selectedLayout,
|
|
11
|
-
setSelectedLayout,
|
|
12
|
-
onLayoutChange
|
|
13
|
-
}) {
|
|
14
|
-
return [{
|
|
15
|
-
key: SelectedLayout.BASIC,
|
|
16
|
-
title: /*#__PURE__*/_jsx(AlgebraIcon, {
|
|
17
|
-
color: selectedLayout === SelectedLayout.BASIC ? COLORS.NEUTRAL_1 : COLORS.NEUTRAL_9,
|
|
18
|
-
size: 22
|
|
19
|
-
}),
|
|
20
|
-
onPressIn: () => {
|
|
21
|
-
setSelectedLayout(SelectedLayout.BASIC);
|
|
22
|
-
onLayoutChange?.(false);
|
|
23
|
-
}
|
|
24
|
-
}, {
|
|
25
|
-
key: SelectedLayout.ALGEBRA,
|
|
26
|
-
title: /*#__PURE__*/_jsx(IntegralABIcon, {
|
|
27
|
-
color: selectedLayout === SelectedLayout.ALGEBRA ? COLORS.NEUTRAL_1 : COLORS.NEUTRAL_9,
|
|
28
|
-
size: 25
|
|
29
|
-
}),
|
|
30
|
-
onPressIn: () => {
|
|
31
|
-
setSelectedLayout(SelectedLayout.ALGEBRA);
|
|
32
|
-
onLayoutChange?.(true);
|
|
33
|
-
}
|
|
34
|
-
}];
|
|
35
|
-
}
|
|
36
|
-
//# sourceMappingURL=helpers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","COLORS","AlgebraIcon","IntegralABIcon","SelectedLayout","jsx","_jsx","getSelectOptions","selectedLayout","setSelectedLayout","onLayoutChange","key","BASIC","title","color","NEUTRAL_1","NEUTRAL_9","size","onPressIn","ALGEBRA"],"sourceRoot":"../../../../../../src","sources":["features/keyboard/components/AlgebraLayout/helpers.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAqB,OAAO;AACxC,SAASC,MAAM,QAAQ,4BAA4B;AACnD,SAASC,WAAW,QAAQ,yCAAsC;AAClE,SAASC,cAAc,QAAQ,4CAAyC;AACxE,SAASC,cAAc,QAAQ,YAAS;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAcxC,OAAO,SAASC,gBAAgBA,CAAC;EAC/BC,cAAc;EACdC,iBAAiB;EACjBC;AACqB,CAAC,EAAkB;EACxC,OAAO,CACL;IACEC,GAAG,EAAEP,cAAc,CAACQ,KAAK;IACzBC,KAAK,eACHP,IAAA,CAACJ,WAAW;MACVY,KAAK,EAAEN,cAAc,KAAKJ,cAAc,CAACQ,KAAK,GAAGX,MAAM,CAACc,SAAS,GAAGd,MAAM,CAACe,SAAU;MACrFC,IAAI,EAAE;IAAG,CACV,CACF;IACDC,SAAS,EAAEA,CAAA,KAAM;MACfT,iBAAiB,CAACL,cAAc,CAACQ,KAAK,CAAC;MACvCF,cAAc,GAAG,KAAK,CAAC;IACzB;EACF,CAAC,EACD;IACEC,GAAG,EAAEP,cAAc,CAACe,OAAO;IAC3BN,KAAK,eACHP,IAAA,CAACH,cAAc;MACbW,KAAK,EAAEN,cAAc,KAAKJ,cAAc,CAACe,OAAO,GAAGlB,MAAM,CAACc,SAAS,GAAGd,MAAM,CAACe,SAAU;MACvFC,IAAI,EAAE;IAAG,CACV,CACF;IACDC,SAAS,EAAEA,CAAA,KAAM;MACfT,iBAAiB,CAACL,cAAc,CAACe,OAAO,CAAC;MACzCT,cAAc,GAAG,IAAI,CAAC;IACxB;EACF,CAAC,CACF;AACH","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["SelectedLayout"],"sourceRoot":"../../../../../../src","sources":["features/keyboard/components/AlgebraLayout/types.ts"],"mappings":";;AAAA,WAAYA,cAAc,0BAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAA,OAAdA,cAAc;AAAA","ignoreList":[]}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { SelectedLayout } from './types';
|
|
3
|
-
type LayoutOption = {
|
|
4
|
-
key: SelectedLayout;
|
|
5
|
-
title: ReactNode;
|
|
6
|
-
onPressIn: () => void;
|
|
7
|
-
};
|
|
8
|
-
type GetSelectOptionsProps = {
|
|
9
|
-
selectedLayout: SelectedLayout;
|
|
10
|
-
setSelectedLayout: (layout: SelectedLayout) => void;
|
|
11
|
-
onLayoutChange?: (isSecondaryLayout: boolean) => void;
|
|
12
|
-
};
|
|
13
|
-
export declare function getSelectOptions({ selectedLayout, setSelectedLayout, onLayoutChange, }: GetSelectOptionsProps): LayoutOption[];
|
|
14
|
-
export {};
|
|
15
|
-
//# sourceMappingURL=helpers.d.ts.map
|
package/dist/typescript/commonjs/features/keyboard/components/AlgebraLayout/helpers.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/keyboard/components/AlgebraLayout/helpers.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAIxC,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAExC,KAAK,YAAY,GAAG;IAClB,GAAG,EAAE,cAAc,CAAA;IACnB,KAAK,EAAE,SAAS,CAAA;IAChB,SAAS,EAAE,MAAM,IAAI,CAAA;CACtB,CAAA;AAED,KAAK,qBAAqB,GAAG;IAC3B,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,wBAAgB,gBAAgB,CAAC,EAC/B,cAAc,EACd,iBAAiB,EACjB,cAAc,GACf,EAAE,qBAAqB,GAAG,YAAY,EAAE,CA6BxC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/keyboard/components/AlgebraLayout/types.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc;IACxB,KAAK,UAAU;IACf,OAAO,YAAY;CACpB"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { SelectedLayout } from './types';
|
|
3
|
-
type LayoutOption = {
|
|
4
|
-
key: SelectedLayout;
|
|
5
|
-
title: ReactNode;
|
|
6
|
-
onPressIn: () => void;
|
|
7
|
-
};
|
|
8
|
-
type GetSelectOptionsProps = {
|
|
9
|
-
selectedLayout: SelectedLayout;
|
|
10
|
-
setSelectedLayout: (layout: SelectedLayout) => void;
|
|
11
|
-
onLayoutChange?: (isSecondaryLayout: boolean) => void;
|
|
12
|
-
};
|
|
13
|
-
export declare function getSelectOptions({ selectedLayout, setSelectedLayout, onLayoutChange, }: GetSelectOptionsProps): LayoutOption[];
|
|
14
|
-
export {};
|
|
15
|
-
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/keyboard/components/AlgebraLayout/helpers.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAIxC,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAExC,KAAK,YAAY,GAAG;IAClB,GAAG,EAAE,cAAc,CAAA;IACnB,KAAK,EAAE,SAAS,CAAA;IAChB,SAAS,EAAE,MAAM,IAAI,CAAA;CACtB,CAAA;AAED,KAAK,qBAAqB,GAAG;IAC3B,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,wBAAgB,gBAAgB,CAAC,EAC/B,cAAc,EACd,iBAAiB,EACjB,cAAc,GACf,EAAE,qBAAqB,GAAG,YAAY,EAAE,CA6BxC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/keyboard/components/AlgebraLayout/types.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc;IACxB,KAAK,UAAU;IACf,OAAO,YAAY;CACpB"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react'
|
|
2
|
-
import { COLORS } from '@magmamath/react-native-ui'
|
|
3
|
-
import { AlgebraIcon } from '../../../../shared/icons/AlgebraIcon'
|
|
4
|
-
import { IntegralABIcon } from '../../../../shared/icons/IntegralABIcon'
|
|
5
|
-
import { SelectedLayout } from './types'
|
|
6
|
-
|
|
7
|
-
type LayoutOption = {
|
|
8
|
-
key: SelectedLayout
|
|
9
|
-
title: ReactNode
|
|
10
|
-
onPressIn: () => void
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
type GetSelectOptionsProps = {
|
|
14
|
-
selectedLayout: SelectedLayout
|
|
15
|
-
setSelectedLayout: (layout: SelectedLayout) => void
|
|
16
|
-
onLayoutChange?: (isSecondaryLayout: boolean) => void
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export function getSelectOptions({
|
|
20
|
-
selectedLayout,
|
|
21
|
-
setSelectedLayout,
|
|
22
|
-
onLayoutChange,
|
|
23
|
-
}: GetSelectOptionsProps): LayoutOption[] {
|
|
24
|
-
return [
|
|
25
|
-
{
|
|
26
|
-
key: SelectedLayout.BASIC,
|
|
27
|
-
title: (
|
|
28
|
-
<AlgebraIcon
|
|
29
|
-
color={selectedLayout === SelectedLayout.BASIC ? COLORS.NEUTRAL_1 : COLORS.NEUTRAL_9}
|
|
30
|
-
size={22}
|
|
31
|
-
/>
|
|
32
|
-
),
|
|
33
|
-
onPressIn: () => {
|
|
34
|
-
setSelectedLayout(SelectedLayout.BASIC)
|
|
35
|
-
onLayoutChange?.(false)
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
key: SelectedLayout.ALGEBRA,
|
|
40
|
-
title: (
|
|
41
|
-
<IntegralABIcon
|
|
42
|
-
color={selectedLayout === SelectedLayout.ALGEBRA ? COLORS.NEUTRAL_1 : COLORS.NEUTRAL_9}
|
|
43
|
-
size={25}
|
|
44
|
-
/>
|
|
45
|
-
),
|
|
46
|
-
onPressIn: () => {
|
|
47
|
-
setSelectedLayout(SelectedLayout.ALGEBRA)
|
|
48
|
-
onLayoutChange?.(true)
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
]
|
|
52
|
-
}
|