@pie-lib/math-input 0.1.0 → 0.1.1-next.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.
Files changed (106) hide show
  1. package/dist/horizontal-keypad.d.ts +1 -2
  2. package/dist/index.d.ts +0 -1
  3. package/dist/keypad/accessible-keypad.d.ts +2 -3
  4. package/dist/keypad/index.d.ts +0 -1
  5. package/dist/keypad/keys-layout.d.ts +0 -1
  6. package/dist/keypad/model.d.ts +0 -1
  7. package/dist/keys/basic-operators.d.ts +0 -1
  8. package/dist/keys/chars.d.ts +0 -1
  9. package/dist/keys/comparison.d.ts +0 -1
  10. package/dist/keys/constants.d.ts +0 -1
  11. package/dist/keys/digits.d.ts +0 -1
  12. package/dist/keys/edit.d.ts +0 -1
  13. package/dist/keys/exponent.d.ts +0 -1
  14. package/dist/keys/fractions.d.ts +0 -1
  15. package/dist/keys/geometry.d.ts +0 -1
  16. package/dist/keys/grades.d.ts +0 -1
  17. package/dist/keys/index.d.ts +0 -1
  18. package/dist/keys/log.d.ts +0 -1
  19. package/dist/keys/logic.d.ts +0 -1
  20. package/dist/keys/matrices.d.ts +0 -1
  21. package/dist/keys/misc.d.ts +0 -1
  22. package/dist/keys/navigation.d.ts +0 -1
  23. package/dist/keys/operators.d.ts +0 -1
  24. package/dist/keys/statistics.d.ts +0 -1
  25. package/dist/keys/sub-sup.d.ts +0 -1
  26. package/dist/keys/trigonometry.d.ts +0 -1
  27. package/dist/keys/utils.d.ts +0 -1
  28. package/dist/keys/vars.d.ts +0 -1
  29. package/dist/math-input.d.ts +1 -2
  30. package/dist/mq/common-mq-styles.d.ts +0 -1
  31. package/dist/mq/custom-elements.d.ts +0 -1
  32. package/dist/mq/index.d.ts +0 -1
  33. package/dist/mq/input.d.ts +1 -2
  34. package/dist/mq/static.d.ts +1 -2
  35. package/dist/updateSpans.d.ts +0 -1
  36. package/package.json +10 -4
  37. package/dist/horizontal-keypad.d.ts.map +0 -1
  38. package/dist/index.d.ts.map +0 -1
  39. package/dist/keypad/accessible-keypad.d.ts.map +0 -1
  40. package/dist/keypad/index.d.ts.map +0 -1
  41. package/dist/keypad/keys-layout.d.ts.map +0 -1
  42. package/dist/keypad/model.d.ts.map +0 -1
  43. package/dist/keys/basic-operators.d.ts.map +0 -1
  44. package/dist/keys/chars.d.ts.map +0 -1
  45. package/dist/keys/comparison.d.ts.map +0 -1
  46. package/dist/keys/constants.d.ts.map +0 -1
  47. package/dist/keys/digits.d.ts.map +0 -1
  48. package/dist/keys/edit.d.ts.map +0 -1
  49. package/dist/keys/exponent.d.ts.map +0 -1
  50. package/dist/keys/fractions.d.ts.map +0 -1
  51. package/dist/keys/geometry.d.ts.map +0 -1
  52. package/dist/keys/grades.d.ts.map +0 -1
  53. package/dist/keys/index.d.ts.map +0 -1
  54. package/dist/keys/log.d.ts.map +0 -1
  55. package/dist/keys/logic.d.ts.map +0 -1
  56. package/dist/keys/matrices.d.ts.map +0 -1
  57. package/dist/keys/misc.d.ts.map +0 -1
  58. package/dist/keys/navigation.d.ts.map +0 -1
  59. package/dist/keys/operators.d.ts.map +0 -1
  60. package/dist/keys/statistics.d.ts.map +0 -1
  61. package/dist/keys/sub-sup.d.ts.map +0 -1
  62. package/dist/keys/trigonometry.d.ts.map +0 -1
  63. package/dist/keys/utils.d.ts.map +0 -1
  64. package/dist/keys/vars.d.ts.map +0 -1
  65. package/dist/math-input.d.ts.map +0 -1
  66. package/dist/mq/common-mq-styles.d.ts.map +0 -1
  67. package/dist/mq/custom-elements.d.ts.map +0 -1
  68. package/dist/mq/index.d.ts.map +0 -1
  69. package/dist/mq/input.d.ts.map +0 -1
  70. package/dist/mq/static.d.ts.map +0 -1
  71. package/dist/updateSpans.d.ts.map +0 -1
  72. package/src/horizontal-keypad.tsx +0 -82
  73. package/src/index.tsx +0 -27
  74. package/src/keypad/accessible-keypad.tsx +0 -731
  75. package/src/keypad/index.tsx +0 -3
  76. package/src/keypad/keys-layout.ts +0 -26
  77. package/src/keypad/model.ts +0 -149
  78. package/src/keys/basic-operators.ts +0 -42
  79. package/src/keys/chars.ts +0 -15
  80. package/src/keys/comparison.ts +0 -38
  81. package/src/keys/constants.ts +0 -45
  82. package/src/keys/digits.ts +0 -50
  83. package/src/keys/edit.ts +0 -13
  84. package/src/keys/exponent.ts +0 -38
  85. package/src/keys/fractions.ts +0 -36
  86. package/src/keys/geometry.ts +0 -154
  87. package/src/keys/grades.ts +0 -377
  88. package/src/keys/index.ts +0 -30
  89. package/src/keys/log.ts +0 -32
  90. package/src/keys/logic.ts +0 -25
  91. package/src/keys/matrices.ts +0 -25
  92. package/src/keys/misc.ts +0 -75
  93. package/src/keys/navigation.ts +0 -18
  94. package/src/keys/operators.ts +0 -20
  95. package/src/keys/statistics.ts +0 -48
  96. package/src/keys/sub-sup.ts +0 -25
  97. package/src/keys/trigonometry.ts +0 -25
  98. package/src/keys/utils.ts +0 -76
  99. package/src/keys/vars.ts +0 -29
  100. package/src/math-input.tsx +0 -129
  101. package/src/mq/common-mq-styles.ts +0 -115
  102. package/src/mq/custom-elements.tsx +0 -21
  103. package/src/mq/index.ts +0 -15
  104. package/src/mq/input.tsx +0 -172
  105. package/src/mq/static.tsx +0 -279
  106. package/src/updateSpans.ts +0 -26
@@ -1,377 +0,0 @@
1
- // @ts-nocheck
2
- /**
3
- * @synced-from pie-lib/packages/math-input/src/keys/grades.js
4
- * @auto-generated
5
- *
6
- * This file is automatically synced from pie-elements and converted to TypeScript.
7
- * Manual edits will be overwritten on next sync.
8
- * To make changes, edit the upstream JavaScript file and run sync again.
9
- */
10
-
11
- import * as comparison from './comparison';
12
- import * as vars from './vars';
13
- import * as fractions from './fractions';
14
- import * as exponent from './exponent';
15
- import * as misc from './misc';
16
- import * as constants from './constants';
17
- import * as trigonometry from './trigonometry';
18
- import * as geometry from './geometry';
19
- import * as operators from './operators';
20
- import * as log from './log';
21
- import * as subSup from './sub-sup';
22
- import * as statistics from './statistics';
23
- import * as basicOperators from './basic-operators';
24
- import * as matrices from './matrices';
25
- import digits from './digits';
26
- import * as logic from './logic';
27
- import * as nav from './navigation';
28
- import * as edit from './edit';
29
-
30
- const hs = [
31
- [fractions.blankOverBlank, misc.percentage, vars.x, exponent.squared, exponent.squareRoot],
32
- [operators.circleDot, vars.y, subSup.subscript, exponent.xToPowerOfN, exponent.nthRoot],
33
- [misc.plusMinus, comparison.lessThan, comparison.greaterThan, comparison.lessThanEqual, comparison.greaterThanEqual],
34
- [constants.pi, vars.theta, misc.parenthesis, misc.brackets, misc.absValue],
35
- [misc.notEqual, trigonometry.sin, trigonometry.cos, trigonometry.tan, geometry.degree],
36
- ];
37
-
38
- const advancedAlgebra = (() => {
39
- const out = [...hs.map((arr) => [...arr])];
40
-
41
- out[0].push({ name: 'i', latex: 'i', write: 'i' });
42
- out[1].push(log.log);
43
- out[2].push(log.logSubscript);
44
- out[3].push(log.ln);
45
- out[4].push(constants.eulers);
46
- return out;
47
- })();
48
-
49
- const statisticsSet = (() => {
50
- const out = [...hs.map((arr) => [...arr])];
51
- out[0].push(statistics.mu);
52
- out[1].push(statistics.xBar);
53
- out[2].push(statistics.yBar);
54
- out[3].push(statistics.sigma);
55
- out[4].push(statistics.smallSigma);
56
- return out;
57
- })();
58
-
59
- export const gradeSets = [
60
- {
61
- predicate: (n) => n >= 3 && n <= 5,
62
- set: [
63
- [comparison.lessThan, comparison.greaterThan],
64
- [fractions.xOverBlank, fractions.xBlankBlank],
65
- [vars.x, logic.longDivision],
66
- [exponent.squared, exponent.xToPowerOfN],
67
- ],
68
- },
69
- {
70
- predicate: (n) => n >= 6 && n <= 7,
71
- set: [
72
- [geometry.degree, comparison.lessThan, comparison.greaterThan],
73
- [operators.circleDot, comparison.lessThanEqual, comparison.greaterThanEqual],
74
- [vars.x, vars.y, exponent.squared, exponent.xToPowerOfN],
75
- [misc.plusMinus, fractions.xOverBlank, fractions.xBlankBlank, exponent.squareRoot],
76
- [constants.pi, misc.parenthesis, misc.absValue, exponent.nthRoot],
77
- ],
78
- },
79
- {
80
- predicate: (n) => n >= 8 || n === 'HS',
81
- set: hs,
82
- },
83
- {
84
- predicate: 'non-negative-integers',
85
- set: [
86
- [digits.seven, digits.eight, digits.nine],
87
- [digits.four, digits.five, digits.six],
88
- [digits.one, digits.two, digits.three],
89
- [digits.zero, { name: '', latex: '', write: '' }, { name: '', latex: '', write: '' }],
90
- [nav.left, nav.right, edit.del],
91
- ],
92
- },
93
- {
94
- predicate: 'integers',
95
- set: [
96
- [digits.seven, digits.eight, digits.nine],
97
- [digits.four, digits.five, digits.six],
98
- [digits.one, digits.two, digits.three],
99
- [digits.zero, { name: '', latex: '', write: '' }, basicOperators.minus],
100
- [nav.left, nav.right, edit.del],
101
- ],
102
- },
103
- {
104
- predicate: 'decimals',
105
- set: [
106
- [digits.seven, digits.eight, digits.nine],
107
- [digits.four, digits.five, digits.six],
108
- [digits.one, digits.two, digits.three],
109
- [digits.zero, digits.decimalPoint, basicOperators.minus],
110
- [nav.left, nav.right, edit.del],
111
- ],
112
- },
113
- {
114
- predicate: 'fractions',
115
- set: [
116
- [digits.seven, digits.eight, digits.nine],
117
- [digits.four, digits.five, digits.six],
118
- [digits.one, digits.two, digits.three],
119
- [digits.zero, fractions.blankOverBlank, basicOperators.minus],
120
- [nav.left, nav.right, edit.del],
121
- ],
122
- },
123
- {
124
- predicate: 'geometry',
125
- set: [
126
- [
127
- fractions.blankOverBlank,
128
- geometry.degree,
129
- geometry.primeArcminute,
130
- geometry.doublePrimeArcSecond,
131
- geometry.congruentTo,
132
- geometry.similarTo,
133
- ],
134
- [
135
- operators.circleDot,
136
- geometry.angle,
137
- geometry.measureOfAngle,
138
- geometry.triangle,
139
- geometry.notCongruentTo,
140
- misc.notSimilar,
141
- ],
142
- [trigonometry.sin, trigonometry.cos, trigonometry.tan, constants.pi, exponent.squareRoot, exponent.nthRoot],
143
- [trigonometry.csc, trigonometry.sec, trigonometry.cot, vars.theta, subSup.subscript, exponent.xToPowerOfN],
144
- [
145
- geometry.overline,
146
- geometry.overRightArrow,
147
- geometry.overLeftRightArrow,
148
- geometry.overArc,
149
- geometry.perpindicular,
150
- geometry.parallel,
151
- ],
152
- ],
153
- },
154
- // {
155
- // predicate: 'miscellaneous',
156
- // set: [
157
- // [
158
- // subSup.superscript,
159
- // subSup.subscript,
160
- // fractions.blankOverBlank,
161
- // misc.percentage,
162
- // geometry.segment,
163
- // geometry.parallel
164
- // ],
165
- // [
166
- // exponent.squareRoot,
167
- // exponent.nthRoot,
168
- // misc.absValue,
169
- // misc.parenthesis,
170
- // geometry.perpindicular,
171
- // geometry.angle
172
- // ],
173
- // [
174
- // comparison.lessThan,
175
- // comparison.greaterThan,
176
- // geometry.degree,
177
- // misc.approx,
178
- // geometry.measureOfAngle,
179
- // geometry.triangle
180
- // ],
181
- // [
182
- // misc.nApprox,
183
- // misc.notEqual,
184
- // geometry.congruentTo,
185
- // geometry.notCongruentTo,
186
- // geometry.parallelogram,
187
- // geometry.circledDot
188
- // ],
189
- // [
190
- // misc.similar,
191
- // misc.notSimilar,
192
- // comparison.lessThanEqual,
193
- // comparison.greaterThanEqual,
194
- // vars.x,
195
- // vars.y
196
- // ]
197
- // ]
198
- // },
199
- // {
200
- // predicate: 'everything',
201
- // set: [
202
- // [
203
- // subSup.superscript,
204
- // subSup.subscript,
205
- // fractions.blankOverBlank,
206
- // misc.percentage,
207
- // geometry.segment,
208
- // geometry.parallel
209
- // ],
210
- // [
211
- // exponent.squareRoot,
212
- // exponent.nthRoot,
213
- // misc.absValue,
214
- // misc.parenthesis,
215
- // geometry.perpindicular,
216
- // geometry.angle
217
- // ],
218
- // [
219
- // comparison.lessThan,
220
- // comparison.greaterThan,
221
- // geometry.degree,
222
- // misc.approx,
223
- // geometry.measureOfAngle,
224
- // geometry.triangle
225
- // ],
226
- // [
227
- // misc.nApprox,
228
- // misc.notEqual,
229
- // geometry.congruentTo,
230
- // geometry.notCongruentTo,
231
- // geometry.parallelogram,
232
- // geometry.circledDot
233
- // ],
234
- // [
235
- // misc.similar,
236
- // misc.notSimilar,
237
- // comparison.lessThanEqual,
238
- // comparison.greaterThanEqual,
239
- // vars.x,
240
- // vars.y
241
- // ]
242
- // ]
243
- // },
244
- {
245
- predicate: 'advanced-algebra',
246
- set: advancedAlgebra,
247
- },
248
- {
249
- predicate: 'statistics',
250
- set: statisticsSet,
251
- },
252
- {
253
- predicate: 'item-authoring',
254
- set: [
255
- [
256
- basicOperators.divide,
257
- fractions.blankOverBlank,
258
- logic.longDivision,
259
- constants.halfInfinity,
260
- exponent.squared,
261
- exponent.squareRoot,
262
- geometry.overline,
263
- geometry.overRightArrow,
264
- geometry.overLeftRightArrow,
265
- log.log,
266
- ],
267
- [
268
- basicOperators.multiply,
269
- operators.circleDot,
270
- { name: '', latex: '', write: '' },
271
- subSup.subscript,
272
- exponent.xToPowerOfN,
273
- exponent.nthRoot,
274
- geometry.perpindicular,
275
- geometry.parallel,
276
- geometry.overArc,
277
- log.logSubscript,
278
- ],
279
- [
280
- misc.plusMinus,
281
- constants.pi,
282
- vars.theta,
283
- geometry.degree,
284
- geometry.angle,
285
- geometry.leftArrow,
286
- geometry.rightArrow,
287
- geometry.triangle,
288
- geometry.square,
289
- log.ln,
290
- ],
291
- [
292
- misc.notEqual,
293
- misc.absValue,
294
- statistics.smallSigma,
295
- statistics.mu,
296
- logic.therefore,
297
- statistics.sigma,
298
- geometry.leftrightArrow,
299
- trigonometry.sin,
300
- trigonometry.cos,
301
- trigonometry.tan,
302
- ],
303
- [
304
- comparison.lessThanEqual,
305
- comparison.greaterThanEqual,
306
- { name: '', latex: '', write: '' },
307
- { name: '', latex: '', write: '' },
308
- constants.infinity,
309
- { name: '', latex: '', write: '' },
310
- { name: '', latex: '', write: '' },
311
- trigonometry.csc,
312
- trigonometry.sec,
313
- trigonometry.cot,
314
- ],
315
- ],
316
- },
317
- // for grade 1-2, we want to display the base set only
318
- // we need it here because we don't want to display the default set (grade 8)
319
- {
320
- predicate: (n) => n >= 1 && n <= 2,
321
- set: [],
322
- },
323
- ];
324
-
325
- export const keysForGrade = (n) => {
326
- const number = parseInt(n, 10);
327
- n = isNaN(number) ? n : number;
328
- if (!n) {
329
- return [];
330
- }
331
-
332
- const match = gradeSets.find((gs) => {
333
- if (typeof gs.predicate === 'string') {
334
- return gs.predicate === n;
335
- } else {
336
- return gs.predicate(n);
337
- }
338
- });
339
-
340
- if (match) {
341
- return match.set || [];
342
- }
343
-
344
- // if the grade is not found, return the default set which is grade 8 (as per PD-3549), for mode language it is not the default
345
- if (n !== 'language') {
346
- return gradeSets[2].set;
347
- }
348
- };
349
-
350
- const ALL_KEYS = [
351
- ...Object.values(basicOperators),
352
- ...Object.values(comparison),
353
- ...Object.values(constants),
354
- ...Object.values(digits),
355
- ...Object.values(exponent),
356
- ...Object.values(fractions),
357
- ...Object.values(geometry),
358
- ...Object.values(log),
359
- ...Object.values(matrices),
360
- ...Object.values(misc),
361
- ...Object.values(operators),
362
- ...Object.values(statistics),
363
- ...Object.values(subSup),
364
- ...Object.values(trigonometry),
365
- ...Object.values(vars),
366
- ];
367
-
368
- export const normalizeAdditionalKeys = (additionalKeys) => {
369
- return (additionalKeys || []).map((additionalkey) => {
370
- const { latex } = additionalkey;
371
- const predefinedKey = (ALL_KEYS || []).find(
372
- (key) => latex === key.latex || latex === key.write || latex === key.command || latex === key.otherNotation,
373
- );
374
-
375
- return !latex ? additionalkey : predefinedKey || additionalkey;
376
- });
377
- };
package/src/keys/index.ts DELETED
@@ -1,30 +0,0 @@
1
- // @ts-nocheck
2
- /**
3
- * @synced-from pie-lib/packages/math-input/src/keys/index.js
4
- * @auto-generated
5
- *
6
- * This file is automatically synced from pie-elements and converted to TypeScript.
7
- * Manual edits will be overwritten on next sync.
8
- * To make changes, edit the upstream JavaScript file and run sync again.
9
- */
10
-
11
- import digits from './digits';
12
- import * as nav from './navigation';
13
- import * as edit from './edit';
14
- import { divide, equals, minus, multiply, plus } from './basic-operators';
15
- import * as comparison from './comparison';
16
- import * as fractions from './fractions';
17
- import * as exponent from './exponent';
18
- import * as misc from './misc';
19
-
20
- const { one, two, three, four, five, six, seven, eight, nine, zero, comma, decimalPoint } = digits;
21
-
22
- export const baseSet = [
23
- [seven, eight, nine, divide],
24
- [four, five, six, multiply],
25
- [one, two, three, minus],
26
- [zero, decimalPoint, comma, plus],
27
- [nav.left, nav.right, edit.del, equals],
28
- ];
29
-
30
- export { comparison, fractions, exponent, misc };
package/src/keys/log.ts DELETED
@@ -1,32 +0,0 @@
1
- // @ts-nocheck
2
- /**
3
- * @synced-from pie-lib/packages/math-input/src/keys/log.js
4
- * @auto-generated
5
- *
6
- * This file is automatically synced from pie-elements and converted to TypeScript.
7
- * Manual edits will be overwritten on next sync.
8
- * To make changes, edit the upstream JavaScript file and run sync again.
9
- */
10
-
11
- import { mkSet } from './utils';
12
-
13
- const set = mkSet('log');
14
-
15
- export const log = set({
16
- name: 'Log',
17
- label: 'log',
18
- command: '\\log',
19
- latex: '\\log',
20
- });
21
- export const logSubscript = set({
22
- name: 'log base n',
23
- label: 'log s',
24
- latex: '\\log_{}',
25
- command: ['\\log', '_'],
26
- });
27
- export const ln = set({
28
- name: 'natural log',
29
- label: 'ln',
30
- command: '\\ln',
31
- latex: '\\ln',
32
- });
package/src/keys/logic.ts DELETED
@@ -1,25 +0,0 @@
1
- // @ts-nocheck
2
- /**
3
- * @synced-from pie-lib/packages/math-input/src/keys/logic.js
4
- * @auto-generated
5
- *
6
- * This file is automatically synced from pie-elements and converted to TypeScript.
7
- * Manual edits will be overwritten on next sync.
8
- * To make changes, edit the upstream JavaScript file and run sync again.
9
- */
10
-
11
- import { mkSet } from './utils';
12
-
13
- const set = mkSet('logic');
14
-
15
- export const therefore = set({
16
- name: 'Therefore',
17
- label: '∴',
18
- write: '∴',
19
- });
20
-
21
- export const longDivision = set({
22
- name: 'Long division',
23
- latex: '\\longdiv{}',
24
- command: '\\longdiv',
25
- });
@@ -1,25 +0,0 @@
1
- // @ts-nocheck
2
- /**
3
- * @synced-from pie-lib/packages/math-input/src/keys/matrices.js
4
- * @auto-generated
5
- *
6
- * This file is automatically synced from pie-elements and converted to TypeScript.
7
- * Manual edits will be overwritten on next sync.
8
- * To make changes, edit the upstream JavaScript file and run sync again.
9
- */
10
-
11
- import { mkSet } from './utils';
12
-
13
- const set = mkSet('matrices');
14
-
15
- export const singleCellMatrix = set({
16
- name: 'Single Cell Matrix',
17
- label: '[ ]',
18
- write: '\\begin{pmatrix}\\end{pmatrix}',
19
- });
20
-
21
- export const doubleCellMatrix = set({
22
- name: 'Double Cell Matrix',
23
- label: '[ ] [ ] \\\\newline [ ] [ ]',
24
- write: '\\begin{bmatrix}&\\\\&\\end{bmatrix}',
25
- });
package/src/keys/misc.ts DELETED
@@ -1,75 +0,0 @@
1
- // @ts-nocheck
2
- /**
3
- * @synced-from pie-lib/packages/math-input/src/keys/misc.js
4
- * @auto-generated
5
- *
6
- * This file is automatically synced from pie-elements and converted to TypeScript.
7
- * Manual edits will be overwritten on next sync.
8
- * To make changes, edit the upstream JavaScript file and run sync again.
9
- */
10
-
11
- import { mkSet } from './utils';
12
-
13
- const set = mkSet('misc');
14
-
15
- export const plusMinus = set({
16
- name: 'Plus or Minus',
17
- latex: '\\pm',
18
- write: '\\pm',
19
- });
20
-
21
- export const absValue = set({
22
- name: 'Absolute Value',
23
- latex: '\\abs{}',
24
- symbol: '| |',
25
- command: '|',
26
- });
27
-
28
- export const parenthesis = set({
29
- name: 'Parenthesis',
30
- latex: '\\left(\\right)',
31
- symbol: '( )',
32
- command: '(',
33
- });
34
-
35
- export const brackets = set({
36
- name: 'Brackets',
37
- latex: '\\left[\\right]',
38
- symbol: '[ ]',
39
- command: '[',
40
- });
41
-
42
- export const percentage = set({
43
- name: 'Percent',
44
- latex: '%',
45
- command: '%',
46
- });
47
-
48
- export const approx = set({
49
- latex: '\\approx',
50
- command: '\\approx',
51
- ariaLabel: 'Approximately equal to',
52
- });
53
-
54
- export const nApprox = set({
55
- latex: '\\napprox',
56
- command: '\\napprox',
57
- ariaLabel: 'Not pproximately equal to',
58
- });
59
-
60
- export const notEqual = set({
61
- latex: '\\neq',
62
- command: '\\neq',
63
- ariaLabel: 'Not equals',
64
- });
65
-
66
- export const similar = set({
67
- latex: '\\sim',
68
- command: '\\sim',
69
- ariaLabel: 'Similar',
70
- });
71
- export const notSimilar = set({
72
- latex: '\\nsim',
73
- command: '\\nsim',
74
- ariaLabel: 'Not similar',
75
- });
@@ -1,18 +0,0 @@
1
- // @ts-nocheck
2
- /**
3
- * @synced-from pie-lib/packages/math-input/src/keys/navigation.js
4
- * @auto-generated
5
- *
6
- * This file is automatically synced from pie-elements and converted to TypeScript.
7
- * Manual edits will be overwritten on next sync.
8
- * To make changes, edit the upstream JavaScript file and run sync again.
9
- */
10
-
11
- import { LEFT_ARROW, RIGHT_ARROW } from './chars';
12
- import { mkSet } from './utils';
13
-
14
- const set = mkSet('navigation');
15
-
16
- export const left = set({ label: LEFT_ARROW, keystroke: 'Left', ariaLabel: 'Move cursor left' });
17
-
18
- export const right = set({ label: RIGHT_ARROW, keystroke: 'Right', ariaLabel: 'Move cursor right' });
@@ -1,20 +0,0 @@
1
- // @ts-nocheck
2
- /**
3
- * @synced-from pie-lib/packages/math-input/src/keys/operators.js
4
- * @auto-generated
5
- *
6
- * This file is automatically synced from pie-elements and converted to TypeScript.
7
- * Manual edits will be overwritten on next sync.
8
- * To make changes, edit the upstream JavaScript file and run sync again.
9
- */
10
-
11
- import { mkSet } from './utils';
12
-
13
- const set = mkSet('operators');
14
-
15
- export const circleDot = set({
16
- name: 'CircleDot',
17
- label: '⋅',
18
- write: '\\cdot',
19
- ariaLabel: 'Dot multiplier',
20
- });
@@ -1,48 +0,0 @@
1
- // @ts-nocheck
2
- /**
3
- * @synced-from pie-lib/packages/math-input/src/keys/statistics.js
4
- * @auto-generated
5
- *
6
- * This file is automatically synced from pie-elements and converted to TypeScript.
7
- * Manual edits will be overwritten on next sync.
8
- * To make changes, edit the upstream JavaScript file and run sync again.
9
- */
10
-
11
- import { mkSet } from './utils';
12
-
13
- const set = mkSet('statistics');
14
- export const xBar = set({
15
- name: 'X Bar',
16
- label: 'x̄',
17
- latex: '\\overline{x}',
18
- write: '\\overline{x}',
19
- });
20
-
21
- export const yBar = set({
22
- name: 'Y Bar',
23
- latex: '\\overline{y}',
24
- write: '\\overline{y}',
25
- });
26
-
27
- export const mu = set({
28
- name: 'mu',
29
- label: 'mu',
30
- latex: '\\mu',
31
- write: '\\mu',
32
- });
33
-
34
- export const sigma = set({
35
- name: 'Sigma',
36
- ariaLabel: 'Uppercase Sigma',
37
- label: '\\Sigma',
38
- latex: '\\Sigma',
39
- write: '\\Sigma',
40
- });
41
-
42
- export const smallSigma = set({
43
- name: 'sigma',
44
- ariaLabel: 'Lowercase Sigma',
45
- label: '\\sigma',
46
- latex: '\\sigma',
47
- write: '\\sigma',
48
- });
@@ -1,25 +0,0 @@
1
- // @ts-nocheck
2
- /**
3
- * @synced-from pie-lib/packages/math-input/src/keys/sub-sup.js
4
- * @auto-generated
5
- *
6
- * This file is automatically synced from pie-elements and converted to TypeScript.
7
- * Manual edits will be overwritten on next sync.
8
- * To make changes, edit the upstream JavaScript file and run sync again.
9
- */
10
-
11
- import { mkSet } from './utils';
12
-
13
- const set = mkSet('sub-sup');
14
-
15
- export const superscript = set({
16
- name: 'Superscript',
17
- latex: 'x^{}',
18
- command: '^',
19
- });
20
-
21
- export const subscript = set({
22
- name: 'Subscript',
23
- latex: 'x_{}',
24
- command: '_',
25
- });