@pie-lib/math-input 6.31.2-next.11 → 6.31.2-next.164

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 (83) hide show
  1. package/CHANGELOG.md +6 -64
  2. package/lib/horizontal-keypad.js +16 -44
  3. package/lib/horizontal-keypad.js.map +1 -1
  4. package/lib/index.js +3 -25
  5. package/lib/index.js.map +1 -1
  6. package/lib/keypad/index.js +254 -332
  7. package/lib/keypad/index.js.map +1 -1
  8. package/lib/keypad/keys-layout.js +2 -12
  9. package/lib/keypad/keys-layout.js.map +1 -1
  10. package/lib/keys/basic-operators.js +5 -13
  11. package/lib/keys/basic-operators.js.map +1 -1
  12. package/lib/keys/chars.js +5 -10
  13. package/lib/keys/chars.js.map +1 -1
  14. package/lib/keys/comparison.js +6 -16
  15. package/lib/keys/comparison.js.map +1 -1
  16. package/lib/keys/constants.js +4 -10
  17. package/lib/keys/constants.js.map +1 -1
  18. package/lib/keys/digits.js +1 -7
  19. package/lib/keys/digits.js.map +1 -1
  20. package/lib/keys/edit.js +1 -4
  21. package/lib/keys/edit.js.map +1 -1
  22. package/lib/keys/exponent.js +4 -10
  23. package/lib/keys/exponent.js.map +1 -1
  24. package/lib/keys/fractions.js +3 -8
  25. package/lib/keys/fractions.js.map +1 -1
  26. package/lib/keys/geometry.js +25 -54
  27. package/lib/keys/geometry.js.map +1 -1
  28. package/lib/keys/grades.js +10 -46
  29. package/lib/keys/grades.js.map +1 -1
  30. package/lib/keys/index.js +13 -32
  31. package/lib/keys/index.js.map +1 -1
  32. package/lib/keys/log.js +3 -8
  33. package/lib/keys/log.js.map +1 -1
  34. package/lib/keys/logic.js +2 -6
  35. package/lib/keys/logic.js.map +1 -1
  36. package/lib/keys/matrices.js +2 -6
  37. package/lib/keys/matrices.js.map +1 -1
  38. package/lib/keys/misc.js +10 -22
  39. package/lib/keys/misc.js.map +1 -1
  40. package/lib/keys/navigation.js +2 -7
  41. package/lib/keys/navigation.js.map +1 -1
  42. package/lib/keys/operators.js +1 -4
  43. package/lib/keys/operators.js.map +1 -1
  44. package/lib/keys/statistics.js +5 -12
  45. package/lib/keys/statistics.js.map +1 -1
  46. package/lib/keys/sub-sup.js +2 -6
  47. package/lib/keys/sub-sup.js.map +1 -1
  48. package/lib/keys/trigonometry.js +6 -14
  49. package/lib/keys/trigonometry.js.map +1 -1
  50. package/lib/keys/utils.js +7 -40
  51. package/lib/keys/utils.js.map +1 -1
  52. package/lib/keys/vars.js +3 -8
  53. package/lib/keys/vars.js.map +1 -1
  54. package/lib/math-input.js +52 -103
  55. package/lib/math-input.js.map +1 -1
  56. package/lib/mq/common-mq-styles.js +7 -18
  57. package/lib/mq/common-mq-styles.js.map +1 -1
  58. package/lib/mq/custom-elements.js +1 -4
  59. package/lib/mq/custom-elements.js.map +1 -1
  60. package/lib/mq/index.js +0 -4
  61. package/lib/mq/index.js.map +1 -1
  62. package/lib/mq/input.js +22 -75
  63. package/lib/mq/input.js.map +1 -1
  64. package/lib/mq/static.js +34 -92
  65. package/lib/mq/static.js.map +1 -1
  66. package/lib/shared/constants.js +3 -6
  67. package/lib/updateSpans.js +1 -5
  68. package/lib/updateSpans.js.map +1 -1
  69. package/package.json +10 -10
  70. package/src/__tests__/math-input-test.jsx +31 -71
  71. package/src/keypad/__tests__/index.test.jsx +18 -17
  72. package/src/keypad/index.jsx +172 -169
  73. package/src/math-input.jsx +35 -44
  74. package/src/mq/__tests__/input.test.jsx +26 -78
  75. package/src/mq/__tests__/static.test.jsx +14 -38
  76. package/src/mq/input.jsx +9 -9
  77. package/src/mq/static.jsx +3 -0
  78. package/esm/index.css +0 -847
  79. package/esm/index.js +0 -44393
  80. package/esm/index.js.map +0 -1
  81. package/src/__tests__/__snapshots__/math-input-test.jsx.snap +0 -152
  82. package/src/keypad/__tests__/__snapshots__/index.test.jsx.snap +0 -193
  83. package/src/mq/__tests__/__snapshots__/input.test.jsx.snap +0 -9
@@ -1,152 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`MathInput snapshot renders 1`] = `
4
- <div
5
- className="className"
6
- >
7
- <WithStyles(Input)
8
- innerRef={[Function]}
9
- onBlur={[Function]}
10
- onChange={[Function]}
11
- onFocus={[Function]}
12
- />
13
- <div>
14
- <WithStyles(KeyPad)
15
- additionalKeys={Array []}
16
- baseSet={
17
- Array [
18
- Array [
19
- Object {
20
- "category": "digit",
21
- "label": "7",
22
- "name": "seven",
23
- "write": "7",
24
- },
25
- Object {
26
- "category": "digit",
27
- "label": "8",
28
- "name": "eight",
29
- "write": "8",
30
- },
31
- Object {
32
- "category": "digit",
33
- "label": "9",
34
- "name": "nine",
35
- "write": "9",
36
- },
37
- Object {
38
- "category": "operators",
39
- "command": "\\\\divide",
40
- "label": "÷",
41
- "name": "divide",
42
- "otherNotation": "\\\\div",
43
- },
44
- ],
45
- Array [
46
- Object {
47
- "category": "digit",
48
- "label": "4",
49
- "name": "four",
50
- "write": "4",
51
- },
52
- Object {
53
- "category": "digit",
54
- "label": "5",
55
- "name": "five",
56
- "write": "5",
57
- },
58
- Object {
59
- "category": "digit",
60
- "label": "6",
61
- "name": "six",
62
- "write": "6",
63
- },
64
- Object {
65
- "category": "operators",
66
- "command": "\\\\times",
67
- "label": "×",
68
- "name": "multiply",
69
- },
70
- ],
71
- Array [
72
- Object {
73
- "category": "digit",
74
- "label": "1",
75
- "name": "one",
76
- "write": "1",
77
- },
78
- Object {
79
- "category": "digit",
80
- "label": "2",
81
- "name": "two",
82
- "write": "2",
83
- },
84
- Object {
85
- "category": "digit",
86
- "label": "3",
87
- "name": "three",
88
- "write": "3",
89
- },
90
- Object {
91
- "category": "operators",
92
- "label": "−",
93
- "write": "−",
94
- },
95
- ],
96
- Array [
97
- Object {
98
- "category": "digit",
99
- "label": "0",
100
- "name": "zero",
101
- "write": "0",
102
- },
103
- Object {
104
- "category": "digit",
105
- "label": ".",
106
- "name": "decimal-point",
107
- "write": ".",
108
- },
109
- Object {
110
- "category": "digit",
111
- "label": ",",
112
- "name": "comma",
113
- "write": ",",
114
- },
115
- Object {
116
- "category": "operators",
117
- "label": "+",
118
- "write": "+",
119
- },
120
- ],
121
- Array [
122
- Object {
123
- "ariaLabel": "Move cursor left",
124
- "category": "navigation",
125
- "keystroke": "Left",
126
- "label": "◀",
127
- },
128
- Object {
129
- "ariaLabel": "Move cursor right",
130
- "category": "navigation",
131
- "keystroke": "Right",
132
- "label": "▶",
133
- },
134
- Object {
135
- "ariaLabel": "Delete",
136
- "category": "edit",
137
- "keystroke": "Backspace",
138
- "label": "⌫",
139
- },
140
- Object {
141
- "category": "operators",
142
- "label": "=",
143
- "write": "=",
144
- },
145
- ],
146
- ]
147
- }
148
- onPress={[Function]}
149
- />
150
- </div>
151
- </div>
152
- `;
@@ -1,193 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`Keypad snapshot renders 1`] = `
4
- <div
5
- className="className"
6
- style={
7
- Object {
8
- "gridTemplateColumns": "repeat(4, minmax(min-content, 150px))",
9
- }
10
- }
11
- >
12
- <WithStyles(Button)
13
- aria-label="seven"
14
- className=""
15
- disabled={false}
16
- key="7-0"
17
- onClick={[Function]}
18
- >
19
- 7
20
- </WithStyles(Button)>
21
- <WithStyles(Button)
22
- aria-label="four"
23
- className=""
24
- disabled={false}
25
- key="4-1"
26
- onClick={[Function]}
27
- >
28
- 4
29
- </WithStyles(Button)>
30
- <WithStyles(Button)
31
- aria-label="one"
32
- className=""
33
- disabled={false}
34
- key="1-2"
35
- onClick={[Function]}
36
- >
37
- 1
38
- </WithStyles(Button)>
39
- <WithStyles(Button)
40
- aria-label="zero"
41
- className=""
42
- disabled={false}
43
- key="0-3"
44
- onClick={[Function]}
45
- >
46
- 0
47
- </WithStyles(Button)>
48
- <WithStyles(Button)
49
- aria-label="Move cursor left"
50
- className=""
51
- disabled={false}
52
- key="◀-4"
53
- onClick={[Function]}
54
- >
55
-
56
- </WithStyles(Button)>
57
- <WithStyles(Button)
58
- aria-label="eight"
59
- className=""
60
- disabled={false}
61
- key="8-5"
62
- onClick={[Function]}
63
- >
64
- 8
65
- </WithStyles(Button)>
66
- <WithStyles(Button)
67
- aria-label="five"
68
- className=""
69
- disabled={false}
70
- key="5-6"
71
- onClick={[Function]}
72
- >
73
- 5
74
- </WithStyles(Button)>
75
- <WithStyles(Button)
76
- aria-label="two"
77
- className=""
78
- disabled={false}
79
- key="2-7"
80
- onClick={[Function]}
81
- >
82
- 2
83
- </WithStyles(Button)>
84
- <WithStyles(Button)
85
- aria-label="decimal-point"
86
- className=""
87
- disabled={false}
88
- key=".-8"
89
- onClick={[Function]}
90
- >
91
- .
92
- </WithStyles(Button)>
93
- <WithStyles(Button)
94
- aria-label="Move cursor right"
95
- className=""
96
- disabled={false}
97
- key="▶-9"
98
- onClick={[Function]}
99
- >
100
-
101
- </WithStyles(Button)>
102
- <WithStyles(Button)
103
- aria-label="nine"
104
- className=""
105
- disabled={false}
106
- key="9-10"
107
- onClick={[Function]}
108
- >
109
- 9
110
- </WithStyles(Button)>
111
- <WithStyles(Button)
112
- aria-label="six"
113
- className=""
114
- disabled={false}
115
- key="6-11"
116
- onClick={[Function]}
117
- >
118
- 6
119
- </WithStyles(Button)>
120
- <WithStyles(Button)
121
- aria-label="three"
122
- className=""
123
- disabled={false}
124
- key="3-12"
125
- onClick={[Function]}
126
- >
127
- 3
128
- </WithStyles(Button)>
129
- <WithStyles(Button)
130
- aria-label="comma"
131
- className=""
132
- disabled={false}
133
- key=",-13"
134
- onClick={[Function]}
135
- >
136
- ,
137
- </WithStyles(Button)>
138
- <WithStyles(Button)
139
- aria-label="Delete"
140
- className="undefined"
141
- disabled={false}
142
- key="⌫-14"
143
- onClick={[Function]}
144
- >
145
-
146
- </WithStyles(Button)>
147
- <WithStyles(Button)
148
- aria-label="divide"
149
- className=""
150
- disabled={false}
151
- key="÷-15"
152
- onClick={[Function]}
153
- >
154
- ÷
155
- </WithStyles(Button)>
156
- <WithStyles(Button)
157
- aria-label="multiply"
158
- className=""
159
- disabled={false}
160
- key="×-16"
161
- onClick={[Function]}
162
- >
163
- ×
164
- </WithStyles(Button)>
165
- <WithStyles(Button)
166
- aria-label="−"
167
- className=""
168
- disabled={false}
169
- key="−-17"
170
- onClick={[Function]}
171
- >
172
-
173
- </WithStyles(Button)>
174
- <WithStyles(Button)
175
- aria-label="+"
176
- className=""
177
- disabled={false}
178
- key="+-18"
179
- onClick={[Function]}
180
- >
181
- +
182
- </WithStyles(Button)>
183
- <WithStyles(Button)
184
- aria-label="="
185
- className=""
186
- disabled={false}
187
- key="=-19"
188
- onClick={[Function]}
189
- >
190
- =
191
- </WithStyles(Button)>
192
- </div>
193
- `;
@@ -1,9 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`Input snapshot renders 1`] = `
4
- <span
5
- className="className"
6
- onClick={[Function]}
7
- onKeyDown={[Function]}
8
- />
9
- `;