@khanacademy/math-input 17.0.4 → 17.0.5
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/es/index.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +5 -2
- package/.eslintrc.js +0 -18
- package/CHANGELOG.md +0 -660
- package/less/main.less +0 -2
- package/less/overrides.less +0 -122
- package/src/components/__tests__/integration.test.tsx +0 -300
- package/src/components/aphrodite-css-transition-group/index.tsx +0 -78
- package/src/components/aphrodite-css-transition-group/transition-child.tsx +0 -192
- package/src/components/aphrodite-css-transition-group/types.ts +0 -20
- package/src/components/aphrodite-css-transition-group/util.ts +0 -97
- package/src/components/input/__tests__/context-tracking.test.ts +0 -176
- package/src/components/input/__tests__/mathquill-helpers.test.ts +0 -105
- package/src/components/input/__tests__/mathquill.test.ts +0 -747
- package/src/components/input/__tests__/test-math-wrapper.ts +0 -29
- package/src/components/input/cursor-contexts.ts +0 -37
- package/src/components/input/cursor-handle.tsx +0 -137
- package/src/components/input/cursor-styles.ts +0 -10
- package/src/components/input/drag-listener.ts +0 -79
- package/src/components/input/math-input.tsx +0 -1036
- package/src/components/input/math-wrapper.ts +0 -189
- package/src/components/input/mathquill-helpers.ts +0 -262
- package/src/components/input/mathquill-instance.ts +0 -106
- package/src/components/input/mathquill-types.ts +0 -32
- package/src/components/input/scroll-into-view.ts +0 -65
- package/src/components/key-handlers/__tests__/handle-jump-out.test.ts +0 -94
- package/src/components/key-handlers/handle-arrow.ts +0 -70
- package/src/components/key-handlers/handle-backspace.ts +0 -277
- package/src/components/key-handlers/handle-exponent.ts +0 -53
- package/src/components/key-handlers/handle-jump-out.ts +0 -107
- package/src/components/key-handlers/key-translator.ts +0 -222
- package/src/components/keypad/__tests__/__snapshots__/keypad.test.tsx.snap +0 -1913
- package/src/components/keypad/__tests__/__snapshots__/mobile-keypad.test.tsx.snap +0 -600
- package/src/components/keypad/__tests__/keypad-button.test.tsx +0 -84
- package/src/components/keypad/__tests__/keypad-v2-mathquill.test.tsx +0 -304
- package/src/components/keypad/__tests__/keypad-v2.cypress.ts +0 -16
- package/src/components/keypad/__tests__/keypad.test.tsx +0 -321
- package/src/components/keypad/__tests__/mobile-keypad.test.tsx +0 -115
- package/src/components/keypad/__tests__/test-data-tabs.ts +0 -21
- package/src/components/keypad/button-assets.tsx +0 -1880
- package/src/components/keypad/index.tsx +0 -2
- package/src/components/keypad/keypad-button.stories.tsx +0 -81
- package/src/components/keypad/keypad-button.tsx +0 -124
- package/src/components/keypad/keypad-mathquill.stories.tsx +0 -109
- package/src/components/keypad/keypad-pages/extras-page.tsx +0 -35
- package/src/components/keypad/keypad-pages/fractions-page.tsx +0 -125
- package/src/components/keypad/keypad-pages/geometry-page.tsx +0 -34
- package/src/components/keypad/keypad-pages/keypad-pages.stories.tsx +0 -37
- package/src/components/keypad/keypad-pages/numbers-page.tsx +0 -94
- package/src/components/keypad/keypad-pages/operators-page.tsx +0 -117
- package/src/components/keypad/keypad.tsx +0 -233
- package/src/components/keypad/mobile-keypad-internals.tsx +0 -240
- package/src/components/keypad/mobile-keypad.tsx +0 -24
- package/src/components/keypad/navigation-button.tsx +0 -127
- package/src/components/keypad/navigation-pad.stories.tsx +0 -26
- package/src/components/keypad/navigation-pad.tsx +0 -67
- package/src/components/keypad/shared-keys.tsx +0 -109
- package/src/components/keypad/utils.ts +0 -34
- package/src/components/keypad-context.tsx +0 -70
- package/src/components/prop-types.ts +0 -16
- package/src/components/tabbar/__tests__/tabbar.test.tsx +0 -105
- package/src/components/tabbar/icons.tsx +0 -122
- package/src/components/tabbar/index.ts +0 -1
- package/src/components/tabbar/item.tsx +0 -146
- package/src/components/tabbar/tabbar.stories.tsx +0 -83
- package/src/components/tabbar/tabbar.tsx +0 -65
- package/src/data/key-configs.ts +0 -770
- package/src/data/keys.ts +0 -123
- package/src/enums.ts +0 -27
- package/src/fake-react-native-web/index.ts +0 -11
- package/src/fake-react-native-web/text.tsx +0 -55
- package/src/fake-react-native-web/view.tsx +0 -91
- package/src/full-keypad.stories.tsx +0 -142
- package/src/full-mobile-input.stories.tsx +0 -115
- package/src/index.ts +0 -52
- package/src/types.ts +0 -70
- package/src/utils.test.ts +0 -33
- package/src/utils.ts +0 -61
- package/src/version.ts +0 -10
- package/tsconfig-build.json +0 -11
- package/tsconfig-build.tsbuildinfo +0 -1
package/src/data/key-configs.ts
DELETED
|
@@ -1,770 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file contains configuration settings for the buttons in the keypad.
|
|
3
|
-
*/
|
|
4
|
-
import * as i18n from "@khanacademy/wonder-blocks-i18n";
|
|
5
|
-
|
|
6
|
-
import type Key from "./keys";
|
|
7
|
-
import type {KeyType} from "../enums";
|
|
8
|
-
import type {KeyConfig} from "../types";
|
|
9
|
-
|
|
10
|
-
type KeyConfigMapper = (args: {
|
|
11
|
-
key: Key;
|
|
12
|
-
keyType?: KeyType;
|
|
13
|
-
ariaLabel?: string;
|
|
14
|
-
data?: string;
|
|
15
|
-
}) => KeyConfig;
|
|
16
|
-
|
|
17
|
-
const getDefaultOperatorFields: KeyConfigMapper = ({
|
|
18
|
-
key,
|
|
19
|
-
keyType = "OPERATOR",
|
|
20
|
-
ariaLabel = key,
|
|
21
|
-
data = key,
|
|
22
|
-
}) => ({
|
|
23
|
-
id: key,
|
|
24
|
-
type: keyType,
|
|
25
|
-
ariaLabel,
|
|
26
|
-
icon: {
|
|
27
|
-
data,
|
|
28
|
-
},
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
const getDefaultValueFields: KeyConfigMapper = ({
|
|
32
|
-
key,
|
|
33
|
-
keyType = "VALUE",
|
|
34
|
-
ariaLabel = key,
|
|
35
|
-
data = key,
|
|
36
|
-
}) => ({
|
|
37
|
-
id: key,
|
|
38
|
-
type: keyType,
|
|
39
|
-
ariaLabel,
|
|
40
|
-
icon: {
|
|
41
|
-
data,
|
|
42
|
-
},
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
const getDefaultNumberFields: KeyConfigMapper = ({
|
|
46
|
-
key,
|
|
47
|
-
data = key.replace("NUM_", ""),
|
|
48
|
-
keyType = "VALUE",
|
|
49
|
-
ariaLabel = data,
|
|
50
|
-
}) => ({
|
|
51
|
-
id: key,
|
|
52
|
-
type: keyType,
|
|
53
|
-
ariaLabel,
|
|
54
|
-
icon: {
|
|
55
|
-
data,
|
|
56
|
-
},
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
const KeyConfigs: {
|
|
60
|
-
[key in Key]: KeyConfig;
|
|
61
|
-
} = {
|
|
62
|
-
// Basic math
|
|
63
|
-
PLUS: {
|
|
64
|
-
...getDefaultOperatorFields({
|
|
65
|
-
key: "PLUS",
|
|
66
|
-
// I18N: A label for a 'plus' sign.
|
|
67
|
-
ariaLabel: i18n._("Plus"),
|
|
68
|
-
}),
|
|
69
|
-
},
|
|
70
|
-
MINUS: {
|
|
71
|
-
...getDefaultOperatorFields({
|
|
72
|
-
key: "MINUS",
|
|
73
|
-
// I18N: A label for a 'minus' sign.
|
|
74
|
-
ariaLabel: i18n._("Minus"),
|
|
75
|
-
}),
|
|
76
|
-
},
|
|
77
|
-
NEGATIVE: {
|
|
78
|
-
...getDefaultOperatorFields({
|
|
79
|
-
key: "NEGATIVE",
|
|
80
|
-
// I18N: A label for a 'negative' sign.
|
|
81
|
-
ariaLabel: i18n._("Negative"),
|
|
82
|
-
}),
|
|
83
|
-
},
|
|
84
|
-
TIMES: {
|
|
85
|
-
...getDefaultOperatorFields({
|
|
86
|
-
key: "TIMES",
|
|
87
|
-
// I18N: A label for a 'multiply' sign.
|
|
88
|
-
ariaLabel: i18n._("Multiply"),
|
|
89
|
-
}),
|
|
90
|
-
},
|
|
91
|
-
DIVIDE: {
|
|
92
|
-
...getDefaultOperatorFields({
|
|
93
|
-
key: "DIVIDE",
|
|
94
|
-
// I18N: A label for a 'divide' sign.
|
|
95
|
-
ariaLabel: i18n._("Divide"),
|
|
96
|
-
}),
|
|
97
|
-
},
|
|
98
|
-
DECIMAL: {
|
|
99
|
-
...getDefaultOperatorFields({
|
|
100
|
-
key: "DECIMAL",
|
|
101
|
-
keyType: "VALUE",
|
|
102
|
-
// I18N: A label for a 'decimal' sign (represented as '.' or ',').
|
|
103
|
-
ariaLabel: i18n._("Decimal"),
|
|
104
|
-
}),
|
|
105
|
-
},
|
|
106
|
-
PERIOD: {
|
|
107
|
-
...getDefaultOperatorFields({
|
|
108
|
-
key: "PERIOD",
|
|
109
|
-
keyType: "VALUE",
|
|
110
|
-
ariaLabel: ".",
|
|
111
|
-
}),
|
|
112
|
-
},
|
|
113
|
-
PERCENT: {
|
|
114
|
-
...getDefaultOperatorFields({
|
|
115
|
-
key: "PERCENT",
|
|
116
|
-
// I18N: A label for a 'percent' sign (represented as '%').
|
|
117
|
-
ariaLabel: i18n._("Percent"),
|
|
118
|
-
}),
|
|
119
|
-
},
|
|
120
|
-
CDOT: {
|
|
121
|
-
...getDefaultOperatorFields({
|
|
122
|
-
key: "CDOT",
|
|
123
|
-
// I18N: A label for a 'centered dot' multiplication sign (represented as '⋅').
|
|
124
|
-
ariaLabel: i18n._("Multiply"),
|
|
125
|
-
}),
|
|
126
|
-
},
|
|
127
|
-
EQUAL: {
|
|
128
|
-
...getDefaultOperatorFields({
|
|
129
|
-
key: "EQUAL",
|
|
130
|
-
// I18N: A label for an 'equals' sign (represented as '=').
|
|
131
|
-
ariaLabel: i18n._("Equals sign"),
|
|
132
|
-
}),
|
|
133
|
-
},
|
|
134
|
-
NEQ: {
|
|
135
|
-
...getDefaultOperatorFields({
|
|
136
|
-
key: "NEQ",
|
|
137
|
-
// I18N: A label for a 'not-equals' sign (represented as '≠').
|
|
138
|
-
ariaLabel: i18n._("Not-equals sign"),
|
|
139
|
-
}),
|
|
140
|
-
},
|
|
141
|
-
GT: {
|
|
142
|
-
...getDefaultOperatorFields({
|
|
143
|
-
key: "GT",
|
|
144
|
-
// I18N: A label for a 'greater than' sign (represented as '>').
|
|
145
|
-
ariaLabel: i18n._("Greater than sign"),
|
|
146
|
-
}),
|
|
147
|
-
},
|
|
148
|
-
LT: {
|
|
149
|
-
...getDefaultOperatorFields({
|
|
150
|
-
key: "LT",
|
|
151
|
-
// I18N: A label for a 'less than' sign (represented as '<').
|
|
152
|
-
ariaLabel: i18n._("Less than sign"),
|
|
153
|
-
}),
|
|
154
|
-
},
|
|
155
|
-
GEQ: {
|
|
156
|
-
...getDefaultOperatorFields({
|
|
157
|
-
key: "GEQ",
|
|
158
|
-
// I18N: A label for a 'greater than or equal to' sign (represented as '≥').
|
|
159
|
-
ariaLabel: i18n._("Greater than or equal to sign"),
|
|
160
|
-
}),
|
|
161
|
-
},
|
|
162
|
-
LEQ: {
|
|
163
|
-
...getDefaultOperatorFields({
|
|
164
|
-
key: "LEQ",
|
|
165
|
-
// I18N: A label for a 'less than or equal to' sign (represented as '≤').
|
|
166
|
-
ariaLabel: i18n._("Less than or equal to sign"),
|
|
167
|
-
}),
|
|
168
|
-
},
|
|
169
|
-
// mobile native
|
|
170
|
-
FRAC_INCLUSIVE: {
|
|
171
|
-
...getDefaultOperatorFields({
|
|
172
|
-
key: "FRAC_INCLUSIVE",
|
|
173
|
-
// I18N: A label for a button that creates a new fraction and puts the
|
|
174
|
-
// current expression in the numerator of that fraction.
|
|
175
|
-
ariaLabel: i18n._("Fraction, with current expression in numerator"),
|
|
176
|
-
}),
|
|
177
|
-
},
|
|
178
|
-
// mobile native
|
|
179
|
-
FRAC_EXCLUSIVE: {
|
|
180
|
-
...getDefaultOperatorFields({
|
|
181
|
-
key: "FRAC_EXCLUSIVE",
|
|
182
|
-
// I18N: A label for a button that creates a new fraction next to the
|
|
183
|
-
// cursor.
|
|
184
|
-
ariaLabel: i18n._("Fraction, excluding the current expression"),
|
|
185
|
-
}),
|
|
186
|
-
},
|
|
187
|
-
// mobile web
|
|
188
|
-
FRAC: {
|
|
189
|
-
...getDefaultOperatorFields({
|
|
190
|
-
key: "FRAC",
|
|
191
|
-
// I18N: A label for a button that creates a new fraction next to the
|
|
192
|
-
// cursor.
|
|
193
|
-
ariaLabel: i18n._("Fraction, excluding the current expression"),
|
|
194
|
-
}),
|
|
195
|
-
},
|
|
196
|
-
EXP: {
|
|
197
|
-
...getDefaultOperatorFields({
|
|
198
|
-
key: "EXP",
|
|
199
|
-
// I18N: A label for a button that will allow the user to input a
|
|
200
|
-
// custom exponent.
|
|
201
|
-
ariaLabel: i18n._("Custom exponent"),
|
|
202
|
-
}),
|
|
203
|
-
},
|
|
204
|
-
EXP_2: {
|
|
205
|
-
...getDefaultOperatorFields({
|
|
206
|
-
key: "EXP_2",
|
|
207
|
-
// I18N: A label for a button that will square (take to the second
|
|
208
|
-
// power) some math.
|
|
209
|
-
ariaLabel: i18n._("Square"),
|
|
210
|
-
}),
|
|
211
|
-
},
|
|
212
|
-
EXP_3: {
|
|
213
|
-
...getDefaultOperatorFields({
|
|
214
|
-
key: "EXP_3",
|
|
215
|
-
// I18N: A label for a button that will cube (take to the third power)
|
|
216
|
-
// some math.
|
|
217
|
-
ariaLabel: i18n._("Cube"),
|
|
218
|
-
}),
|
|
219
|
-
},
|
|
220
|
-
SQRT: {
|
|
221
|
-
...getDefaultOperatorFields({
|
|
222
|
-
key: "SQRT",
|
|
223
|
-
// I18N: A label for a button that will allow the user to input a
|
|
224
|
-
// square root.
|
|
225
|
-
ariaLabel: i18n._("Square root"),
|
|
226
|
-
}),
|
|
227
|
-
},
|
|
228
|
-
CUBE_ROOT: {
|
|
229
|
-
...getDefaultOperatorFields({
|
|
230
|
-
key: "CUBE_ROOT",
|
|
231
|
-
// I18N: A label for a button that will allow the user to input a
|
|
232
|
-
// cube root.
|
|
233
|
-
ariaLabel: i18n._("Cube root"),
|
|
234
|
-
}),
|
|
235
|
-
},
|
|
236
|
-
RADICAL: {
|
|
237
|
-
...getDefaultOperatorFields({
|
|
238
|
-
key: "RADICAL",
|
|
239
|
-
// I18N: A label for a button that will allow the user to input a
|
|
240
|
-
// radical with a custom root.
|
|
241
|
-
ariaLabel: i18n._("Radical with custom root"),
|
|
242
|
-
}),
|
|
243
|
-
},
|
|
244
|
-
LEFT_PAREN: {
|
|
245
|
-
...getDefaultOperatorFields({
|
|
246
|
-
key: "LEFT_PAREN",
|
|
247
|
-
// I18N: A label for a button that will allow the user to input a
|
|
248
|
-
// left parenthesis (i.e. '(')
|
|
249
|
-
ariaLabel: i18n._("Left parenthesis"),
|
|
250
|
-
}),
|
|
251
|
-
},
|
|
252
|
-
RIGHT_PAREN: {
|
|
253
|
-
...getDefaultOperatorFields({
|
|
254
|
-
key: "RIGHT_PAREN",
|
|
255
|
-
// I18N: A label for a button that will allow the user to input a
|
|
256
|
-
// right parenthesis (i.e. ')')
|
|
257
|
-
ariaLabel: i18n._("Right parenthesis"),
|
|
258
|
-
}),
|
|
259
|
-
},
|
|
260
|
-
LN: {
|
|
261
|
-
...getDefaultOperatorFields({
|
|
262
|
-
key: "LN",
|
|
263
|
-
// I18N: A label for a button that will allow the user to input a
|
|
264
|
-
// natural logarithm.
|
|
265
|
-
ariaLabel: i18n._("Natural logarithm"),
|
|
266
|
-
}),
|
|
267
|
-
},
|
|
268
|
-
LOG: {
|
|
269
|
-
...getDefaultOperatorFields({
|
|
270
|
-
key: "LOG",
|
|
271
|
-
// I18N: A label for a button that will allow the user to input a
|
|
272
|
-
// logarithm with base 10.
|
|
273
|
-
ariaLabel: i18n._("Logarithm with base 10"),
|
|
274
|
-
}),
|
|
275
|
-
},
|
|
276
|
-
LOG_N: {
|
|
277
|
-
...getDefaultOperatorFields({
|
|
278
|
-
key: "LOG_N",
|
|
279
|
-
// I18N: A label for a button that will allow the user to input a
|
|
280
|
-
// logarithm with a custom base.
|
|
281
|
-
ariaLabel: i18n._("Logarithm with custom base"),
|
|
282
|
-
}),
|
|
283
|
-
},
|
|
284
|
-
SIN: {
|
|
285
|
-
...getDefaultOperatorFields({
|
|
286
|
-
key: "SIN",
|
|
287
|
-
// I18N: A label for a button that will allow the user to input a
|
|
288
|
-
// sine function.
|
|
289
|
-
ariaLabel: i18n._("Sine"),
|
|
290
|
-
}),
|
|
291
|
-
},
|
|
292
|
-
COS: {
|
|
293
|
-
...getDefaultOperatorFields({
|
|
294
|
-
key: "COS",
|
|
295
|
-
// I18N: A label for a button that will allow the user to input a
|
|
296
|
-
// cosine function.
|
|
297
|
-
ariaLabel: i18n._("Cosine"),
|
|
298
|
-
}),
|
|
299
|
-
},
|
|
300
|
-
TAN: {
|
|
301
|
-
...getDefaultOperatorFields({
|
|
302
|
-
key: "TAN",
|
|
303
|
-
// I18N: A label for a button that will allow the user to input a
|
|
304
|
-
// tangent function.
|
|
305
|
-
ariaLabel: i18n._("Tangent"),
|
|
306
|
-
}),
|
|
307
|
-
},
|
|
308
|
-
PI: {
|
|
309
|
-
...getDefaultValueFields({
|
|
310
|
-
key: "PI",
|
|
311
|
-
data: "\\pi",
|
|
312
|
-
// I18N: A label for a button that will allow the user to input the
|
|
313
|
-
// mathematical constant pi (i.e., π)
|
|
314
|
-
ariaLabel: i18n._("Pi"),
|
|
315
|
-
}),
|
|
316
|
-
},
|
|
317
|
-
THETA: {
|
|
318
|
-
...getDefaultValueFields({
|
|
319
|
-
key: "THETA",
|
|
320
|
-
data: "\\theta",
|
|
321
|
-
// I18N: A label for a button that will allow the user to input the
|
|
322
|
-
// mathematical constant theta (i.e., θ)
|
|
323
|
-
ariaLabel: i18n._("Theta"),
|
|
324
|
-
}),
|
|
325
|
-
},
|
|
326
|
-
NOOP: {
|
|
327
|
-
...getDefaultOperatorFields({
|
|
328
|
-
key: "NOOP",
|
|
329
|
-
keyType: "EMPTY",
|
|
330
|
-
}),
|
|
331
|
-
},
|
|
332
|
-
// Input navigation
|
|
333
|
-
UP: {
|
|
334
|
-
...getDefaultOperatorFields({
|
|
335
|
-
key: "UP",
|
|
336
|
-
keyType: "INPUT_NAVIGATION",
|
|
337
|
-
ariaLabel: i18n._("Up arrow"),
|
|
338
|
-
}),
|
|
339
|
-
},
|
|
340
|
-
RIGHT: {
|
|
341
|
-
...getDefaultOperatorFields({
|
|
342
|
-
key: "RIGHT",
|
|
343
|
-
keyType: "INPUT_NAVIGATION",
|
|
344
|
-
ariaLabel: i18n._("Right arrow"),
|
|
345
|
-
}),
|
|
346
|
-
},
|
|
347
|
-
DOWN: {
|
|
348
|
-
...getDefaultOperatorFields({
|
|
349
|
-
key: "DOWN",
|
|
350
|
-
keyType: "INPUT_NAVIGATION",
|
|
351
|
-
ariaLabel: i18n._("Down arrow"),
|
|
352
|
-
}),
|
|
353
|
-
},
|
|
354
|
-
LEFT: {
|
|
355
|
-
...getDefaultOperatorFields({
|
|
356
|
-
key: "LEFT",
|
|
357
|
-
keyType: "INPUT_NAVIGATION",
|
|
358
|
-
ariaLabel: i18n._("Left arrow"),
|
|
359
|
-
}),
|
|
360
|
-
},
|
|
361
|
-
JUMP_OUT_PARENTHESES: {
|
|
362
|
-
...getDefaultOperatorFields({
|
|
363
|
-
key: "JUMP_OUT_PARENTHESES",
|
|
364
|
-
keyType: "INPUT_NAVIGATION",
|
|
365
|
-
ariaLabel: i18n._("Navigate right out of a set of parentheses"),
|
|
366
|
-
}),
|
|
367
|
-
},
|
|
368
|
-
JUMP_OUT_EXPONENT: {
|
|
369
|
-
...getDefaultOperatorFields({
|
|
370
|
-
key: "JUMP_OUT_EXPONENT",
|
|
371
|
-
keyType: "INPUT_NAVIGATION",
|
|
372
|
-
ariaLabel: i18n._("Navigate right out of an exponent"),
|
|
373
|
-
}),
|
|
374
|
-
},
|
|
375
|
-
JUMP_OUT_BASE: {
|
|
376
|
-
...getDefaultOperatorFields({
|
|
377
|
-
key: "JUMP_OUT_BASE",
|
|
378
|
-
keyType: "INPUT_NAVIGATION",
|
|
379
|
-
ariaLabel: i18n._("Navigate right out of a base"),
|
|
380
|
-
}),
|
|
381
|
-
},
|
|
382
|
-
JUMP_INTO_NUMERATOR: {
|
|
383
|
-
...getDefaultOperatorFields({
|
|
384
|
-
key: "JUMP_INTO_NUMERATOR",
|
|
385
|
-
keyType: "INPUT_NAVIGATION",
|
|
386
|
-
ariaLabel: i18n._(
|
|
387
|
-
"Navigate right into the numerator of a fraction",
|
|
388
|
-
),
|
|
389
|
-
}),
|
|
390
|
-
},
|
|
391
|
-
JUMP_OUT_NUMERATOR: {
|
|
392
|
-
...getDefaultOperatorFields({
|
|
393
|
-
key: "JUMP_OUT_NUMERATOR",
|
|
394
|
-
keyType: "INPUT_NAVIGATION",
|
|
395
|
-
ariaLabel: i18n._(
|
|
396
|
-
"Navigate right out of the numerator and into the denominator",
|
|
397
|
-
),
|
|
398
|
-
}),
|
|
399
|
-
},
|
|
400
|
-
JUMP_OUT_DENOMINATOR: {
|
|
401
|
-
...getDefaultOperatorFields({
|
|
402
|
-
key: "JUMP_OUT_DENOMINATOR",
|
|
403
|
-
keyType: "INPUT_NAVIGATION",
|
|
404
|
-
ariaLabel: i18n._(
|
|
405
|
-
"Navigate right out of the denominator of a fraction",
|
|
406
|
-
),
|
|
407
|
-
}),
|
|
408
|
-
},
|
|
409
|
-
BACKSPACE: {
|
|
410
|
-
...getDefaultOperatorFields({
|
|
411
|
-
key: "BACKSPACE",
|
|
412
|
-
keyType: "INPUT_NAVIGATION",
|
|
413
|
-
ariaLabel: i18n._("Delete"),
|
|
414
|
-
}),
|
|
415
|
-
},
|
|
416
|
-
|
|
417
|
-
// Keypad navigation
|
|
418
|
-
DISMISS: {
|
|
419
|
-
...getDefaultOperatorFields({
|
|
420
|
-
key: "DISMISS",
|
|
421
|
-
keyType: "KEYPAD_NAVIGATION",
|
|
422
|
-
// I18N: A label for a button that will dismiss/hide a keypad.
|
|
423
|
-
ariaLabel: i18n._("Dismiss"),
|
|
424
|
-
}),
|
|
425
|
-
},
|
|
426
|
-
|
|
427
|
-
// TODO(charlie): Use the numeral color for the 'Many' key.
|
|
428
|
-
MANY: {
|
|
429
|
-
...getDefaultOperatorFields({
|
|
430
|
-
key: "MANY",
|
|
431
|
-
keyType: "MANY",
|
|
432
|
-
}),
|
|
433
|
-
},
|
|
434
|
-
|
|
435
|
-
// NUMBERS
|
|
436
|
-
NUM_0: {
|
|
437
|
-
...getDefaultNumberFields({
|
|
438
|
-
key: "NUM_0",
|
|
439
|
-
}),
|
|
440
|
-
},
|
|
441
|
-
NUM_1: {
|
|
442
|
-
...getDefaultNumberFields({
|
|
443
|
-
key: "NUM_1",
|
|
444
|
-
}),
|
|
445
|
-
},
|
|
446
|
-
NUM_2: {
|
|
447
|
-
...getDefaultNumberFields({
|
|
448
|
-
key: "NUM_2",
|
|
449
|
-
}),
|
|
450
|
-
},
|
|
451
|
-
NUM_3: {
|
|
452
|
-
...getDefaultNumberFields({
|
|
453
|
-
key: "NUM_3",
|
|
454
|
-
}),
|
|
455
|
-
},
|
|
456
|
-
NUM_4: {
|
|
457
|
-
...getDefaultNumberFields({
|
|
458
|
-
key: "NUM_4",
|
|
459
|
-
}),
|
|
460
|
-
},
|
|
461
|
-
NUM_5: {
|
|
462
|
-
...getDefaultNumberFields({
|
|
463
|
-
key: "NUM_5",
|
|
464
|
-
}),
|
|
465
|
-
},
|
|
466
|
-
NUM_6: {
|
|
467
|
-
...getDefaultNumberFields({
|
|
468
|
-
key: "NUM_6",
|
|
469
|
-
}),
|
|
470
|
-
},
|
|
471
|
-
NUM_7: {
|
|
472
|
-
...getDefaultNumberFields({
|
|
473
|
-
key: "NUM_7",
|
|
474
|
-
}),
|
|
475
|
-
},
|
|
476
|
-
NUM_8: {
|
|
477
|
-
...getDefaultNumberFields({
|
|
478
|
-
key: "NUM_8",
|
|
479
|
-
}),
|
|
480
|
-
},
|
|
481
|
-
NUM_9: {
|
|
482
|
-
...getDefaultNumberFields({
|
|
483
|
-
key: "NUM_9",
|
|
484
|
-
}),
|
|
485
|
-
},
|
|
486
|
-
|
|
487
|
-
// LETTERS
|
|
488
|
-
A: {
|
|
489
|
-
...getDefaultValueFields({
|
|
490
|
-
key: "A",
|
|
491
|
-
}),
|
|
492
|
-
},
|
|
493
|
-
B: {
|
|
494
|
-
...getDefaultValueFields({
|
|
495
|
-
key: "B",
|
|
496
|
-
}),
|
|
497
|
-
},
|
|
498
|
-
C: {
|
|
499
|
-
...getDefaultValueFields({
|
|
500
|
-
key: "C",
|
|
501
|
-
}),
|
|
502
|
-
},
|
|
503
|
-
D: {
|
|
504
|
-
...getDefaultValueFields({
|
|
505
|
-
key: "D",
|
|
506
|
-
}),
|
|
507
|
-
},
|
|
508
|
-
E: {
|
|
509
|
-
...getDefaultValueFields({
|
|
510
|
-
key: "E",
|
|
511
|
-
}),
|
|
512
|
-
},
|
|
513
|
-
F: {
|
|
514
|
-
...getDefaultValueFields({
|
|
515
|
-
key: "F",
|
|
516
|
-
}),
|
|
517
|
-
},
|
|
518
|
-
G: {
|
|
519
|
-
...getDefaultValueFields({
|
|
520
|
-
key: "G",
|
|
521
|
-
}),
|
|
522
|
-
},
|
|
523
|
-
H: {
|
|
524
|
-
...getDefaultValueFields({
|
|
525
|
-
key: "H",
|
|
526
|
-
}),
|
|
527
|
-
},
|
|
528
|
-
I: {
|
|
529
|
-
...getDefaultValueFields({
|
|
530
|
-
key: "I",
|
|
531
|
-
}),
|
|
532
|
-
},
|
|
533
|
-
J: {
|
|
534
|
-
...getDefaultValueFields({
|
|
535
|
-
key: "J",
|
|
536
|
-
}),
|
|
537
|
-
},
|
|
538
|
-
K: {
|
|
539
|
-
...getDefaultValueFields({
|
|
540
|
-
key: "K",
|
|
541
|
-
}),
|
|
542
|
-
},
|
|
543
|
-
L: {
|
|
544
|
-
...getDefaultValueFields({
|
|
545
|
-
key: "L",
|
|
546
|
-
}),
|
|
547
|
-
},
|
|
548
|
-
M: {
|
|
549
|
-
...getDefaultValueFields({
|
|
550
|
-
key: "M",
|
|
551
|
-
}),
|
|
552
|
-
},
|
|
553
|
-
N: {
|
|
554
|
-
...getDefaultValueFields({
|
|
555
|
-
key: "N",
|
|
556
|
-
}),
|
|
557
|
-
},
|
|
558
|
-
O: {
|
|
559
|
-
...getDefaultValueFields({
|
|
560
|
-
key: "O",
|
|
561
|
-
}),
|
|
562
|
-
},
|
|
563
|
-
P: {
|
|
564
|
-
...getDefaultValueFields({
|
|
565
|
-
key: "P",
|
|
566
|
-
}),
|
|
567
|
-
},
|
|
568
|
-
Q: {
|
|
569
|
-
...getDefaultValueFields({
|
|
570
|
-
key: "Q",
|
|
571
|
-
}),
|
|
572
|
-
},
|
|
573
|
-
R: {
|
|
574
|
-
...getDefaultValueFields({
|
|
575
|
-
key: "R",
|
|
576
|
-
}),
|
|
577
|
-
},
|
|
578
|
-
S: {
|
|
579
|
-
...getDefaultValueFields({
|
|
580
|
-
key: "S",
|
|
581
|
-
}),
|
|
582
|
-
},
|
|
583
|
-
T: {
|
|
584
|
-
...getDefaultValueFields({
|
|
585
|
-
key: "T",
|
|
586
|
-
}),
|
|
587
|
-
},
|
|
588
|
-
U: {
|
|
589
|
-
...getDefaultValueFields({
|
|
590
|
-
key: "U",
|
|
591
|
-
}),
|
|
592
|
-
},
|
|
593
|
-
V: {
|
|
594
|
-
...getDefaultValueFields({
|
|
595
|
-
key: "V",
|
|
596
|
-
}),
|
|
597
|
-
},
|
|
598
|
-
W: {
|
|
599
|
-
...getDefaultValueFields({
|
|
600
|
-
key: "W",
|
|
601
|
-
}),
|
|
602
|
-
},
|
|
603
|
-
X: {
|
|
604
|
-
...getDefaultValueFields({
|
|
605
|
-
key: "X",
|
|
606
|
-
}),
|
|
607
|
-
},
|
|
608
|
-
Y: {
|
|
609
|
-
...getDefaultValueFields({
|
|
610
|
-
key: "Y",
|
|
611
|
-
}),
|
|
612
|
-
},
|
|
613
|
-
Z: {
|
|
614
|
-
...getDefaultValueFields({
|
|
615
|
-
key: "Z",
|
|
616
|
-
}),
|
|
617
|
-
},
|
|
618
|
-
a: {
|
|
619
|
-
...getDefaultValueFields({
|
|
620
|
-
key: "a",
|
|
621
|
-
}),
|
|
622
|
-
},
|
|
623
|
-
b: {
|
|
624
|
-
...getDefaultValueFields({
|
|
625
|
-
key: "b",
|
|
626
|
-
}),
|
|
627
|
-
},
|
|
628
|
-
c: {
|
|
629
|
-
...getDefaultValueFields({
|
|
630
|
-
key: "c",
|
|
631
|
-
}),
|
|
632
|
-
},
|
|
633
|
-
d: {
|
|
634
|
-
...getDefaultValueFields({
|
|
635
|
-
key: "d",
|
|
636
|
-
}),
|
|
637
|
-
},
|
|
638
|
-
e: {
|
|
639
|
-
...getDefaultValueFields({
|
|
640
|
-
key: "e",
|
|
641
|
-
}),
|
|
642
|
-
},
|
|
643
|
-
f: {
|
|
644
|
-
...getDefaultValueFields({
|
|
645
|
-
key: "f",
|
|
646
|
-
}),
|
|
647
|
-
},
|
|
648
|
-
g: {
|
|
649
|
-
...getDefaultValueFields({
|
|
650
|
-
key: "g",
|
|
651
|
-
}),
|
|
652
|
-
},
|
|
653
|
-
h: {
|
|
654
|
-
...getDefaultValueFields({
|
|
655
|
-
key: "h",
|
|
656
|
-
}),
|
|
657
|
-
},
|
|
658
|
-
i: {
|
|
659
|
-
...getDefaultValueFields({
|
|
660
|
-
key: "i",
|
|
661
|
-
}),
|
|
662
|
-
},
|
|
663
|
-
j: {
|
|
664
|
-
...getDefaultValueFields({
|
|
665
|
-
key: "j",
|
|
666
|
-
}),
|
|
667
|
-
},
|
|
668
|
-
k: {
|
|
669
|
-
...getDefaultValueFields({
|
|
670
|
-
key: "k",
|
|
671
|
-
}),
|
|
672
|
-
},
|
|
673
|
-
l: {
|
|
674
|
-
...getDefaultValueFields({
|
|
675
|
-
key: "l",
|
|
676
|
-
}),
|
|
677
|
-
},
|
|
678
|
-
m: {
|
|
679
|
-
...getDefaultValueFields({
|
|
680
|
-
key: "m",
|
|
681
|
-
}),
|
|
682
|
-
},
|
|
683
|
-
n: {
|
|
684
|
-
...getDefaultValueFields({
|
|
685
|
-
key: "n",
|
|
686
|
-
}),
|
|
687
|
-
},
|
|
688
|
-
o: {
|
|
689
|
-
...getDefaultValueFields({
|
|
690
|
-
key: "o",
|
|
691
|
-
}),
|
|
692
|
-
},
|
|
693
|
-
p: {
|
|
694
|
-
...getDefaultValueFields({
|
|
695
|
-
key: "p",
|
|
696
|
-
}),
|
|
697
|
-
},
|
|
698
|
-
q: {
|
|
699
|
-
...getDefaultValueFields({
|
|
700
|
-
key: "q",
|
|
701
|
-
}),
|
|
702
|
-
},
|
|
703
|
-
r: {
|
|
704
|
-
...getDefaultValueFields({
|
|
705
|
-
key: "r",
|
|
706
|
-
}),
|
|
707
|
-
},
|
|
708
|
-
s: {
|
|
709
|
-
...getDefaultValueFields({
|
|
710
|
-
key: "s",
|
|
711
|
-
}),
|
|
712
|
-
},
|
|
713
|
-
t: {
|
|
714
|
-
...getDefaultValueFields({
|
|
715
|
-
key: "t",
|
|
716
|
-
}),
|
|
717
|
-
},
|
|
718
|
-
u: {
|
|
719
|
-
...getDefaultValueFields({
|
|
720
|
-
key: "u",
|
|
721
|
-
}),
|
|
722
|
-
},
|
|
723
|
-
v: {
|
|
724
|
-
...getDefaultValueFields({
|
|
725
|
-
key: "v",
|
|
726
|
-
}),
|
|
727
|
-
},
|
|
728
|
-
w: {
|
|
729
|
-
...getDefaultValueFields({
|
|
730
|
-
key: "w",
|
|
731
|
-
}),
|
|
732
|
-
},
|
|
733
|
-
x: {
|
|
734
|
-
...getDefaultValueFields({
|
|
735
|
-
key: "x",
|
|
736
|
-
}),
|
|
737
|
-
},
|
|
738
|
-
y: {
|
|
739
|
-
...getDefaultValueFields({
|
|
740
|
-
key: "y",
|
|
741
|
-
}),
|
|
742
|
-
},
|
|
743
|
-
z: {
|
|
744
|
-
...getDefaultValueFields({
|
|
745
|
-
key: "z",
|
|
746
|
-
}),
|
|
747
|
-
},
|
|
748
|
-
PHI: {
|
|
749
|
-
...getDefaultValueFields({
|
|
750
|
-
key: "PHI",
|
|
751
|
-
}),
|
|
752
|
-
},
|
|
753
|
-
NTHROOT3: {
|
|
754
|
-
...getDefaultValueFields({
|
|
755
|
-
key: "NTHROOT3",
|
|
756
|
-
}),
|
|
757
|
-
},
|
|
758
|
-
POW: {
|
|
759
|
-
...getDefaultValueFields({
|
|
760
|
-
key: "POW",
|
|
761
|
-
}),
|
|
762
|
-
},
|
|
763
|
-
LOG_B: {
|
|
764
|
-
...getDefaultValueFields({
|
|
765
|
-
key: "LOG_B",
|
|
766
|
-
}),
|
|
767
|
-
},
|
|
768
|
-
};
|
|
769
|
-
|
|
770
|
-
export default KeyConfigs;
|