@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
@@ -27,6 +27,5 @@ export default class HorizontalKeypad extends React.Component {
27
27
  additionalKeys: never[];
28
28
  };
29
29
  keypadPress: any;
30
- render(): JSX.Element;
30
+ render(): React.JSX.Element;
31
31
  }
32
- //# sourceMappingURL=horizontal-keypad.d.ts.map
package/dist/index.d.ts CHANGED
@@ -14,4 +14,3 @@ import * as mq from './mq';
14
14
  declare const addBrackets: (s: any) => any;
15
15
  declare const removeBrackets: (s: any) => any;
16
16
  export { keysForGrade, addBrackets, removeBrackets, keys, HorizontalKeypad, mq, updateSpans };
17
- //# sourceMappingURL=index.d.ts.map
@@ -28,7 +28,6 @@ export default class AccessibleKeypad extends React.Component {
28
28
  pressKey: (definition: any) => void;
29
29
  moveFocus: (nextIndex: any) => void;
30
30
  onButtonKeyDown: (event: any, index: any) => void;
31
- renderKey: (definition: any, index: any) => JSX.Element;
32
- render(): JSX.Element;
31
+ renderKey: (definition: any, index: any) => React.JSX.Element;
32
+ render(): React.JSX.Element;
33
33
  }
34
- //# sourceMappingURL=accessible-keypad.d.ts.map
@@ -1,3 +1,2 @@
1
1
  export { default as KeyPad } from './accessible-keypad';
2
2
  export { default } from './accessible-keypad';
3
- //# sourceMappingURL=index.d.ts.map
@@ -13,4 +13,3 @@
13
13
  * @param {} keys
14
14
  */
15
15
  export declare const sortKeys: (keys: any) => any;
16
- //# sourceMappingURL=keys-layout.d.ts.map
@@ -26,4 +26,3 @@ export declare const toDefinition: (key: LegacyKey, index: number) => KeyDefinit
26
26
  export declare const buildKeyDefinitions: (orderedKeys: LegacyKey[]) => KeyDefinition[];
27
27
  export declare const laneDefinitions: (definitions: KeyDefinition[]) => Record<KeypadLane, KeyDefinition[]>;
28
28
  export declare const toLaneGrid: (items: KeyDefinition[], rowCount?: number) => (KeyDefinition | null)[][];
29
- //# sourceMappingURL=model.d.ts.map
@@ -11,4 +11,3 @@ export declare const plus: any;
11
11
  export declare const minus: any;
12
12
  export declare const divide: any;
13
13
  export declare const multiply: any;
14
- //# sourceMappingURL=basic-operators.d.ts.map
@@ -11,4 +11,3 @@ export declare const LEFT_ARROW = "\u25C0";
11
11
  export declare const RIGHT_ARROW = "\u25B6";
12
12
  export declare const DIVIDE = "\u00F7";
13
13
  export declare const MULTIPLY = "\u00D7";
14
- //# sourceMappingURL=chars.d.ts.map
@@ -10,4 +10,3 @@ export declare const lessThan: any;
10
10
  export declare const greaterThan: any;
11
11
  export declare const lessThanEqual: any;
12
12
  export declare const greaterThanEqual: any;
13
- //# sourceMappingURL=comparison.d.ts.map
@@ -10,4 +10,3 @@ export declare const pi: any;
10
10
  export declare const eulers: any;
11
11
  export declare const infinity: any;
12
12
  export declare const halfInfinity: any;
13
- //# sourceMappingURL=constants.d.ts.map
@@ -8,4 +8,3 @@
8
8
  */
9
9
  declare const _default: any;
10
10
  export default _default;
11
- //# sourceMappingURL=digits.d.ts.map
@@ -12,4 +12,3 @@ export declare const del: {
12
12
  keystroke: string;
13
13
  ariaLabel: string;
14
14
  };
15
- //# sourceMappingURL=edit.d.ts.map
@@ -10,4 +10,3 @@ export declare const squared: any;
10
10
  export declare const xToPowerOfN: any;
11
11
  export declare const squareRoot: any;
12
12
  export declare const nthRoot: any;
13
- //# sourceMappingURL=exponent.d.ts.map
@@ -9,4 +9,3 @@
9
9
  export declare const blankOverBlank: any;
10
10
  export declare const xOverBlank: any;
11
11
  export declare const xBlankBlank: any;
12
- //# sourceMappingURL=fractions.d.ts.map
@@ -29,4 +29,3 @@ export declare const doublePrimeArcSecond: any;
29
29
  export declare const leftArrow: any;
30
30
  export declare const rightArrow: any;
31
31
  export declare const leftrightArrow: any;
32
- //# sourceMappingURL=geometry.d.ts.map
@@ -15,4 +15,3 @@ export declare const gradeSets: ({
15
15
  })[];
16
16
  export declare const keysForGrade: (n: any) => any[][] | undefined;
17
17
  export declare const normalizeAdditionalKeys: (additionalKeys: any) => any;
18
- //# sourceMappingURL=grades.d.ts.map
@@ -12,4 +12,3 @@ import * as exponent from './exponent';
12
12
  import * as misc from './misc';
13
13
  export declare const baseSet: any[][];
14
14
  export { comparison, fractions, exponent, misc };
15
- //# sourceMappingURL=index.d.ts.map
@@ -9,4 +9,3 @@
9
9
  export declare const log: any;
10
10
  export declare const logSubscript: any;
11
11
  export declare const ln: any;
12
- //# sourceMappingURL=log.d.ts.map
@@ -8,4 +8,3 @@
8
8
  */
9
9
  export declare const therefore: any;
10
10
  export declare const longDivision: any;
11
- //# sourceMappingURL=logic.d.ts.map
@@ -8,4 +8,3 @@
8
8
  */
9
9
  export declare const singleCellMatrix: any;
10
10
  export declare const doubleCellMatrix: any;
11
- //# sourceMappingURL=matrices.d.ts.map
@@ -16,4 +16,3 @@ export declare const nApprox: any;
16
16
  export declare const notEqual: any;
17
17
  export declare const similar: any;
18
18
  export declare const notSimilar: any;
19
- //# sourceMappingURL=misc.d.ts.map
@@ -8,4 +8,3 @@
8
8
  */
9
9
  export declare const left: any;
10
10
  export declare const right: any;
11
- //# sourceMappingURL=navigation.d.ts.map
@@ -7,4 +7,3 @@
7
7
  * To make changes, edit the upstream JavaScript file and run sync again.
8
8
  */
9
9
  export declare const circleDot: any;
10
- //# sourceMappingURL=operators.d.ts.map
@@ -11,4 +11,3 @@ export declare const yBar: any;
11
11
  export declare const mu: any;
12
12
  export declare const sigma: any;
13
13
  export declare const smallSigma: any;
14
- //# sourceMappingURL=statistics.d.ts.map
@@ -8,4 +8,3 @@
8
8
  */
9
9
  export declare const superscript: any;
10
10
  export declare const subscript: any;
11
- //# sourceMappingURL=sub-sup.d.ts.map
@@ -12,4 +12,3 @@ export declare const tan: any;
12
12
  export declare const sec: any;
13
13
  export declare const csc: any;
14
14
  export declare const cot: any;
15
- //# sourceMappingURL=trigonometry.d.ts.map
@@ -11,4 +11,3 @@ export declare const toArray: (o: any) => any[];
11
11
  export declare const toKey: (category: any) => (v: any) => any;
12
12
  export declare const transformToKeySetStructure: (data?: never[]) => any[];
13
13
  export declare const extendKeySet: (base?: never[], keySetData?: never[]) => any[][];
14
- //# sourceMappingURL=utils.d.ts.map
@@ -9,4 +9,3 @@
9
9
  export declare const x: any;
10
10
  export declare const y: any;
11
11
  export declare const theta: any;
12
- //# sourceMappingURL=vars.d.ts.map
@@ -25,7 +25,6 @@ export declare class MathInput extends React.Component {
25
25
  inputFocus: any;
26
26
  inputBlur: any;
27
27
  changeLatex: any;
28
- render(): JSX.Element;
28
+ render(): React.JSX.Element;
29
29
  }
30
30
  export default MathInput;
31
- //# sourceMappingURL=math-input.d.ts.map
@@ -223,4 +223,3 @@ declare const _default: {
223
223
  };
224
224
  };
225
225
  export default _default;
226
- //# sourceMappingURL=common-mq-styles.d.ts.map
@@ -8,4 +8,3 @@
8
8
  */
9
9
  declare const registerLineBreak: (MQ: any) => void;
10
10
  export { registerLineBreak };
11
- //# sourceMappingURL=custom-elements.d.ts.map
@@ -10,4 +10,3 @@ import Input from './input';
10
10
  import Static from './static';
11
11
  import CommonMqStyles from './common-mq-styles';
12
12
  export { Input, Static, CommonMqStyles };
13
- //# sourceMappingURL=index.d.ts.map
@@ -30,7 +30,6 @@ export declare class Input extends React.Component {
30
30
  onKeyPress: any;
31
31
  onClick: any;
32
32
  shouldComponentUpdate(nextProps: any): boolean;
33
- render(): JSX.Element;
33
+ render(): React.JSX.Element;
34
34
  }
35
35
  export default Input;
36
- //# sourceMappingURL=input.d.ts.map
@@ -39,6 +39,5 @@ export default class Static extends React.Component {
39
39
  focus: any;
40
40
  shouldComponentUpdate(nextProps: any): boolean;
41
41
  onFocus: any;
42
- render(): JSX.Element;
42
+ render(): React.JSX.Element;
43
43
  }
44
- //# sourceMappingURL=static.d.ts.map
@@ -8,4 +8,3 @@
8
8
  */
9
9
  declare const updateSpans: (root?: ParentNode) => void;
10
10
  export { updateSpans };
11
- //# sourceMappingURL=updateSpans.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-lib/math-input",
3
- "version": "0.1.0",
3
+ "version": "0.1.1-next.0",
4
4
  "description": "React implementation of @pie-lib/math-input synced from pie-lib",
5
5
  "dependencies": {
6
6
  "@emotion/react": "^11.14.0",
@@ -10,7 +10,7 @@
10
10
  "@mui/material": "^7.3.4",
11
11
  "@pie-framework/mathquill": "^1.1.4",
12
12
  "@pie-element/shared-math-rendering-mathjax": "0.1.0",
13
- "@pie-lib/render-ui": "0.1.0",
13
+ "@pie-lib/render-ui": "6.1.1-next.0",
14
14
  "debug": "^4.1.1",
15
15
  "lodash-es": "^4.17.23",
16
16
  "prop-types": "^15.7.2",
@@ -26,13 +26,19 @@
26
26
  }
27
27
  },
28
28
  "files": [
29
- "dist",
30
- "src"
29
+ "dist"
31
30
  ],
32
31
  "sideEffects": false,
33
32
  "scripts": {
34
33
  "build": "bun x vite build && bun x tsc --emitDeclarationOnly",
35
34
  "dev": "bun x vite",
36
35
  "test": "bun x vitest run"
36
+ },
37
+ "devDependencies": {
38
+ "vite": "^8.0.1",
39
+ "typescript": "^5.9.3",
40
+ "@vitejs/plugin-react": "^6.0.1",
41
+ "@types/react": "^18.2.0",
42
+ "@types/react-dom": "^18.2.0"
37
43
  }
38
44
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"horizontal-keypad.d.ts","sourceRoot":"","sources":["../src/horizontal-keypad.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,YAAY,CAAC;AAenC,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,KAAK,CAAC,SAAS;IAC3D,MAAM,CAAC,SAAS;;;;;;;;;;;MAWd;IAEF,MAAM,CAAC,YAAY;;;;MAIjB;IAEF,WAAW,EAAE,GAAG,CAId;IAEF,MAAM;CA6BP"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAE/B,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AAEnD,OAAO,KAAK,EAAE,MAAM,MAAM,CAAC;AAO3B,QAAA,MAAM,WAAW,GAAI,MAAC,QAAuC,CAAC;AAC9D,QAAA,MAAM,cAAc,GAAI,MAAC,QAAqC,CAAC;AAE/D,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,IAAI,EAAE,gBAAgB,EAAE,EAAE,EAAE,WAAW,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"accessible-keypad.d.ts","sourceRoot":"","sources":["../../src/keypad/accessible-keypad.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,YAAY,CAAC;AAkfnC,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,KAAK,CAAC,SAAS;IAC3D,MAAM,CAAC,SAAS;;;;;;;;;;;;MAYd;IAEF,MAAM,CAAC,YAAY;;;MAGjB;gBAEU,KAAK,KAAA;IAOjB,iBAAiB;IAmBjB,oBAAoB;IAcpB,uBAAuB,aAIrB;IAEF,eAAe,GAAI,QAAG,SAGpB;IAEF,QAAQ,GAAI,SAAI,EAAE,WAAM,SAGtB;IAEF,aAAa,YAuBX;IAEF,QAAQ,GAAI,eAAU,UAMpB;IAEF,SAAS,GAAI,cAAS,UAQpB;IAEF,eAAe,GAAI,UAAK,EAAE,UAAK,UAyB7B;IAEF,SAAS,GAAI,eAAU,EAAE,UAAK,iBAiD5B;IAEF,MAAM;CAiCP"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/keypad/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"keys-layout.d.ts","sourceRoot":"","sources":["../../src/keypad/keys-layout.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAIH;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,GAAI,SAAI,QAO5B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/keypad/model.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,WAAW,GAAG,WAAW,CAAC;AAE/D,MAAM,MAAM,aAAa,GACrB,MAAM,GACN,MAAM,GACN,YAAY,GACZ,kBAAkB,GAClB,uBAAuB,GACvB,iBAAiB,GACjB,iBAAiB,GACjB,aAAa,GACb,aAAa,GACb,cAAc,GACd,iBAAiB,GACjB,eAAe,GACf,iBAAiB,GACjB,aAAa,GACb,gBAAgB,GAChB,kBAAkB,GAClB,mBAAmB,GACnB,qBAAqB,GACrB,iBAAiB,CAAC;AAEtB,MAAM,WAAW,SAAS;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,UAAU,CAAC;IACjB,UAAU,EAAE,aAAa,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,SAAS,CAAC;CAChB;AA0BD,eAAO,MAAM,aAAa,GAAI,MAAM,SAAS,EAAE,EAAE,KAAG,SAAS,EAgB5D,CAAC;AA4BF,eAAO,MAAM,YAAY,GAAI,KAAK,SAAS,KAAG,MAE7C,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,KAAK,SAAS,EAAE,OAAO,MAAM,KAAG,aAM3D,CAAC;AAEH,eAAO,MAAM,mBAAmB,GAAI,aAAa,SAAS,EAAE,KAAG,aAAa,EAE3E,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,aAAa,aAAa,EAAE,KAAG,MAAM,CAAC,UAAU,EAAE,aAAa,EAAE,CAQhG,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,OAAO,aAAa,EAAE,EAAE,iBAAY,KAAG,CAAC,aAAa,GAAG,IAAI,CAAC,EAAE,EASzF,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"basic-operators.d.ts","sourceRoot":"","sources":["../../src/keys/basic-operators.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAOH,eAAO,MAAM,MAAM,KAGjB,CAAC;AAEH,eAAO,MAAM,IAAI,KAGf,CAAC;AAEH,eAAO,MAAM,KAAK,KAGhB,CAAC;AAEH,eAAO,MAAM,MAAM,KAKjB,CAAC;AAEH,eAAO,MAAM,QAAQ,KAInB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"chars.d.ts","sourceRoot":"","sources":["../../src/keys/chars.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,eAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,eAAO,MAAM,UAAU,WAAM,CAAC;AAC9B,eAAO,MAAM,WAAW,WAAM,CAAC;AAC/B,eAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,eAAO,MAAM,QAAQ,WAAW,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"comparison.d.ts","sourceRoot":"","sources":["../../src/keys/comparison.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAIH,eAAO,MAAM,QAAQ,KAInB,CAAC;AAEH,eAAO,MAAM,WAAW,KAItB,CAAC;AAEH,eAAO,MAAM,aAAa,KAMxB,CAAC;AAEH,eAAO,MAAM,gBAAgB,KAK3B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/keys/constants.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAMH,eAAO,MAAM,EAAE,KAMb,CAAC;AAEH,eAAO,MAAM,MAAM,KAMjB,CAAC;AAEH,eAAO,MAAM,QAAQ,KAMnB,CAAC;AAEH,eAAO,MAAM,YAAY,KAMvB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"digits.d.ts","sourceRoot":"","sources":["../../src/keys/digits.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;;AA0BH,wBAeI"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"edit.d.ts","sourceRoot":"","sources":["../../src/keys/edit.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAIH,eAAO,MAAM,GAAG;;;;;CAAmF,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"exponent.d.ts","sourceRoot":"","sources":["../../src/keys/exponent.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAMH,eAAO,MAAM,OAAO,KAIlB,CAAC;AAEH,eAAO,MAAM,WAAW,KAKtB,CAAC;AAEH,eAAO,MAAM,UAAU,KAIrB,CAAC;AAEH,eAAO,MAAM,OAAO,KAIlB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"fractions.d.ts","sourceRoot":"","sources":["../../src/keys/fractions.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAMH,eAAO,MAAM,cAAc,KAKzB,CAAC;AAEH,eAAO,MAAM,UAAU,KAMrB,CAAC;AAEH,eAAO,MAAM,WAAW,KAMtB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"geometry.d.ts","sourceRoot":"","sources":["../../src/keys/geometry.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAIH,eAAO,MAAM,QAAQ,KAInB,CAAC;AAEH,eAAO,MAAM,cAAc,KAIzB,CAAC;AAEH,eAAO,MAAM,kBAAkB,KAK7B,CAAC;AAEH,eAAO,MAAM,OAAO,KAKlB,CAAC;AAEH,eAAO,MAAM,QAAQ,KAInB,CAAC;AAEH,eAAO,MAAM,WAAW,KAItB,CAAC;AAEH,eAAO,MAAM,aAAa,KAIxB,CAAC;AAEH,eAAO,MAAM,KAAK,KAIhB,CAAC;AACH,eAAO,MAAM,OAAO,KAIlB,CAAC;AACH,eAAO,MAAM,cAAc,KAIzB,CAAC;AAEH,eAAO,MAAM,QAAQ,KAInB,CAAC;AAEH,eAAO,MAAM,MAAM,KAIjB,CAAC;AAEH,eAAO,MAAM,aAAa,KAIxB,CAAC;AAEH,eAAO,MAAM,UAAU,KAIrB,CAAC;AAEH,eAAO,MAAM,MAAM,KAIjB,CAAC;AAEH,eAAO,MAAM,SAAS,KAIpB,CAAC;AAEH,eAAO,MAAM,WAAW,KAItB,CAAC;AAEH,eAAO,MAAM,cAAc,KAIzB,CAAC;AAEH,eAAO,MAAM,cAAc,KAOzB,CAAC;AAEH,eAAO,MAAM,oBAAoB,KAM/B,CAAC;AAEH,eAAO,MAAM,SAAS,KAIpB,CAAC;AAEH,eAAO,MAAM,UAAU,KAIrB,CAAC;AAEH,eAAO,MAAM,cAAc,KAIzB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"grades.d.ts","sourceRoot":"","sources":["../../src/keys/grades.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAkDH,eAAO,MAAM,SAAS;;;;;;IAwQrB,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,MAAC,wBAuB7B,CAAC;AAoBF,eAAO,MAAM,uBAAuB,GAAI,mBAAc,QASrD,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/keys/index.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAMH,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAI/B,eAAO,MAAM,OAAO,SAMnB,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../src/keys/log.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAMH,eAAO,MAAM,GAAG,KAKd,CAAC;AACH,eAAO,MAAM,YAAY,KAKvB,CAAC;AACH,eAAO,MAAM,EAAE,KAKb,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"logic.d.ts","sourceRoot":"","sources":["../../src/keys/logic.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAMH,eAAO,MAAM,SAAS,KAIpB,CAAC;AAEH,eAAO,MAAM,YAAY,KAIvB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"matrices.d.ts","sourceRoot":"","sources":["../../src/keys/matrices.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAMH,eAAO,MAAM,gBAAgB,KAI3B,CAAC;AAEH,eAAO,MAAM,gBAAgB,KAI3B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"misc.d.ts","sourceRoot":"","sources":["../../src/keys/misc.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAMH,eAAO,MAAM,SAAS,KAIpB,CAAC;AAEH,eAAO,MAAM,QAAQ,KAKnB,CAAC;AAEH,eAAO,MAAM,WAAW,KAKtB,CAAC;AAEH,eAAO,MAAM,QAAQ,KAKnB,CAAC;AAEH,eAAO,MAAM,UAAU,KAIrB,CAAC;AAEH,eAAO,MAAM,MAAM,KAIjB,CAAC;AAEH,eAAO,MAAM,OAAO,KAIlB,CAAC;AAEH,eAAO,MAAM,QAAQ,KAInB,CAAC;AAEH,eAAO,MAAM,OAAO,KAIlB,CAAC;AACH,eAAO,MAAM,UAAU,KAIrB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../src/keys/navigation.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAOH,eAAO,MAAM,IAAI,KAA+E,CAAC;AAEjG,eAAO,MAAM,KAAK,KAAkF,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"operators.d.ts","sourceRoot":"","sources":["../../src/keys/operators.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAMH,eAAO,MAAM,SAAS,KAKpB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"statistics.d.ts","sourceRoot":"","sources":["../../src/keys/statistics.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAKH,eAAO,MAAM,IAAI,KAKf,CAAC;AAEH,eAAO,MAAM,IAAI,KAIf,CAAC;AAEH,eAAO,MAAM,EAAE,KAKb,CAAC;AAEH,eAAO,MAAM,KAAK,KAMhB,CAAC;AAEH,eAAO,MAAM,UAAU,KAMrB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"sub-sup.d.ts","sourceRoot":"","sources":["../../src/keys/sub-sup.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAMH,eAAO,MAAM,WAAW,KAItB,CAAC;AAEH,eAAO,MAAM,SAAS,KAIpB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"trigonometry.d.ts","sourceRoot":"","sources":["../../src/keys/trigonometry.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAMH,eAAO,MAAM,GAAG,KAAwE,CAAC;AAEzF,eAAO,MAAM,GAAG,KAA0E,CAAC;AAE3F,eAAO,MAAM,GAAG,KAA0E,CAAC;AAE3F,eAAO,MAAM,GAAG,KAA0E,CAAC;AAE3F,eAAO,MAAM,GAAG,KAA4E,CAAC;AAE7F,eAAO,MAAM,GAAG,KAA6E,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/keys/utils.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAIH,eAAO,MAAM,KAAK,GAAI,aAAQ,MAAM,MAAC,QAAyB,CAAC;AAE/D,eAAO,MAAM,OAAO,GAAI,MAAC,UAAoC,CAAC;AAE9D,eAAO,MAAM,KAAK,GAAI,aAAQ,MAAM,MAAC,QAcpC,CAAC;AAEF,eAAO,MAAM,0BAA0B,GAAI,cAAS,UAkBnD,CAAC;AAUF,eAAO,MAAM,YAAY,GAAI,cAAS,EAAE,oBAAe,YAetD,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"vars.d.ts","sourceRoot":"","sources":["../../src/keys/vars.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAMH,eAAO,MAAM,CAAC,KAIZ,CAAC;AACH,eAAO,MAAM,CAAC,KAIZ,CAAC;AACH,eAAO,MAAM,KAAK,KAIhB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"math-input.d.ts","sourceRoot":"","sources":["../src/math-input.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,YAAY,CAAC;AAoCnC,qBAAa,SAAU,SAAQ,KAAK,CAAC,SAAS;IAC5C,MAAM,CAAC,SAAS;;;;;;MAMd;IAEF,MAAM,CAAC,YAAY;;;MAGjB;gBAEU,KAAK,KAAA;IAOjB,WAAW,EAAE,GAAG,CAgBd;IAEF,UAAU,EAAE,GAAG,CAEb;IAEF,SAAS,EAAE,GAAG,CAEZ;IAEF,WAAW,EAAE,GAAG,CAOd;IAEF,MAAM;CAuBP;AAED,eAAe,SAAS,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"common-mq-styles.d.ts","sourceRoot":"","sources":["../../src/mq/common-mq-styles.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;CAgB9B,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;CAezB,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;CA2BxB,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiClC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF,wBAKE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"custom-elements.d.ts","sourceRoot":"","sources":["../../src/mq/custom-elements.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,QAAA,MAAM,iBAAiB,GAAY,OAAE,SAQpC,CAAC;AAEF,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mq/index.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAEhD,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../src/mq/input.tsx"],"names":[],"mappings":"AACA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,YAAY,CAAC;AAqBnC;;GAEG;AACH,qBAAa,KAAM,SAAQ,KAAK,CAAC,SAAS;IACxC,MAAM,CAAC,SAAS;;;;;;;MAOd;IAEF,iBAAiB;IAcjB,kBAAkB;IAIlB,WAAW;IAYX,KAAK;IAML,IAAI;IAKJ,KAAK;IAKL,OAAO,CAAC,CAAC,KAAA;IAeT,SAAS,CAAC,CAAC,KAAA;IAOX,KAAK,CAAC,CAAC,KAAA;IAQP,WAAW,EAAE,GAAG,CAWd;IAEF,OAAO,EAAE,GAAG,CAGV;IAEF,UAAU,EAAE,GAAG,CAIb;IAEF,OAAO,EAAE,GAAG,CAKV;IAEF,qBAAqB,CAAC,SAAS,KAAA;IAO/B,MAAM;CAcP;AAED,eAAe,KAAK,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"static.d.ts","sourceRoot":"","sources":["../../src/mq/static.tsx"],"names":[],"mappings":"AACA;;;GAGG;AAEH,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,MAAM,OAAO,CAAC;AA8B1B;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,KAAK,CAAC,SAAS;IACjD,MAAM,CAAC,SAAS;;;;;;;;;MASd;IAEF,MAAM,CAAC,YAAY;;MAEjB;gBAEU,KAAK,KAAA;IAYjB,iBAAiB;IAQjB,kBAAkB;IAKlB,oBAAoB;IAKpB,gBAAgB,EAAE,GAAG,CAYnB;IAEF,iBAAiB,EAAE,GAAG,CAOpB;IAEF,oBAAoB,EAAE,GAAG,CAOvB;IAEF,gBAAgB,EAAE,GAAG,CAKnB;IAEF,aAAa,EAAE,GAAG,CAKhB;IAEF,uBAAuB,EAAE,GAAG,CAE1B;IAEF,WAAW,EAAE,GAAG,CAWd;IAEF,uBAAuB,EAAE,GAAG,CAkC1B;IAEF,eAAe,EAAE,GAAG,CAUlB;IAEF,MAAM,EAAE,GAAG,CAkBT;IAEF,IAAI,EAAE,GAAG,CAGP;IAEF,KAAK,EAAE,GAAG,CAGR;IAEF,qBAAqB,CAAC,SAAS,KAAA;IAqB/B,OAAO,EAAE,GAAG,CAuBV;IAEF,MAAM;CAKP"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"updateSpans.d.ts","sourceRoot":"","sources":["../src/updateSpans.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAGH,QAAA,MAAM,WAAW,GAAI,OAAO,UAAU,SAYrC,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC"}
@@ -1,82 +0,0 @@
1
- // @ts-nocheck
2
- /**
3
- * @synced-from pie-lib/packages/math-input/src/horizontal-keypad.jsx
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 React from 'react';
12
- import PropTypes from 'prop-types';
13
- import { keysForGrade, normalizeAdditionalKeys } from './keys/grades';
14
- import { extendKeySet } from './keys/utils';
15
- import Keypad from './keypad';
16
-
17
- const toOldModel = (d) => {
18
- if (d.command) {
19
- return { value: d.command, type: 'command' };
20
- } else if (d.write) {
21
- return { value: d.write };
22
- } else if (d.keystroke) {
23
- return { type: 'cursor', value: d.keystroke };
24
- }
25
- };
26
-
27
- export default class HorizontalKeypad extends React.Component {
28
- static propTypes = {
29
- className: PropTypes.string,
30
- controlledKeypadMode: PropTypes.bool,
31
- mode: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
32
- layoutForKeyPad: PropTypes.object,
33
- onClick: PropTypes.func.isRequired,
34
- onFocus: PropTypes.func,
35
- noDecimal: PropTypes.bool,
36
- additionalKeys: PropTypes.array,
37
- setKeypadInteraction: PropTypes.func,
38
- onRequestClose: PropTypes.func,
39
- };
40
-
41
- static defaultProps = {
42
- mode: 'scientific',
43
- noDecimal: false,
44
- additionalKeys: [],
45
- };
46
-
47
- keypadPress: any = (data) => {
48
- const { onClick } = this.props;
49
-
50
- onClick(toOldModel(data));
51
- };
52
-
53
- render() {
54
- const {
55
- mode,
56
- onFocus,
57
- controlledKeypadMode,
58
- noDecimal,
59
- className,
60
- additionalKeys,
61
- layoutForKeyPad,
62
- setKeypadInteraction,
63
- onRequestClose,
64
- } = this.props;
65
- const normalizedKeys = normalizeAdditionalKeys(additionalKeys);
66
-
67
- return (
68
- <Keypad
69
- className={className}
70
- controlledKeypadMode={controlledKeypadMode}
71
- onFocus={onFocus}
72
- noDecimal={noDecimal}
73
- layoutForKeyPad={layoutForKeyPad}
74
- additionalKeys={extendKeySet(keysForGrade(mode), normalizedKeys)}
75
- onPress={this.keypadPress}
76
- mode={mode}
77
- setKeypadInteraction={setKeypadInteraction}
78
- onRequestClose={onRequestClose}
79
- />
80
- );
81
- }
82
- }
package/src/index.tsx DELETED
@@ -1,27 +0,0 @@
1
- // @ts-nocheck
2
- /**
3
- * @synced-from pie-lib/packages/math-input/src/index.jsx
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 { keysForGrade } from './keys/grades';
12
- import { updateSpans } from './updateSpans';
13
- import * as keys from './keys';
14
-
15
- import HorizontalKeypad from './horizontal-keypad';
16
-
17
- import * as mq from './mq';
18
-
19
- const addLeftBracket = (s) => (s.indexOf('\\(') === 0 ? s : `\\(${s}`);
20
- const addRightBracket = (s) => (s.indexOf('\\)') === s.length - 2 ? s : `${s}\\)`);
21
- const rmLeftBracket = (s) => (s.indexOf('\\(') === 0 ? s.substring(2) : s);
22
- const rmRightBracket = (s) => (s.indexOf('\\)') === s.length - 2 ? s.substring(0, s.length - 2) : s);
23
-
24
- const addBrackets = (s) => addRightBracket(addLeftBracket(s));
25
- const removeBrackets = (s) => rmRightBracket(rmLeftBracket(s));
26
-
27
- export { keysForGrade, addBrackets, removeBrackets, keys, HorizontalKeypad, mq, updateSpans };