@khanacademy/math-input 0.4.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/README.md +1 -1
- package/{build/math-input.css → dist/es/index.css} +0 -150
- package/dist/es/index.js +7798 -0
- package/dist/es/index.js.map +1 -0
- package/dist/index.css +586 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +7768 -0
- package/dist/index.js.flow +2 -0
- package/dist/index.js.map +1 -0
- package/dist/strings.js +71 -0
- package/index.html +20 -0
- package/less/echo.less +56 -0
- package/less/main.less +5 -0
- package/less/overrides.less +129 -0
- package/less/popover.less +22 -0
- package/less/tabbar.less +6 -0
- package/package.json +60 -89
- package/src/actions/index.js +57 -0
- package/src/components/__tests__/gesture-state-machine_test.js +437 -0
- package/src/components/__tests__/node-manager_test.js +89 -0
- package/src/components/__tests__/two-page-keypad_test.js +42 -0
- package/src/components/app.js +73 -0
- package/src/components/common-style.js +47 -0
- package/src/components/compute-layout-parameters.js +157 -0
- package/src/components/corner-decal.js +56 -0
- package/src/components/echo-manager.js +160 -0
- package/src/components/empty-keypad-button.js +49 -0
- package/src/components/expression-keypad.js +323 -0
- package/src/components/fraction-keypad.js +176 -0
- package/src/components/gesture-manager.js +226 -0
- package/src/components/gesture-state-machine.js +283 -0
- package/src/components/icon.js +74 -0
- package/src/components/iconography/arrow.js +22 -0
- package/src/components/iconography/backspace.js +29 -0
- package/src/components/iconography/cdot.js +29 -0
- package/src/components/iconography/cos.js +30 -0
- package/src/components/iconography/cube-root.js +36 -0
- package/src/components/iconography/dismiss.js +25 -0
- package/src/components/iconography/divide.js +34 -0
- package/src/components/iconography/down.js +16 -0
- package/src/components/iconography/equal.js +33 -0
- package/src/components/iconography/exp-2.js +29 -0
- package/src/components/iconography/exp-3.js +29 -0
- package/src/components/iconography/exp.js +29 -0
- package/src/components/iconography/frac.js +44 -0
- package/src/components/iconography/geq.js +33 -0
- package/src/components/iconography/gt.js +33 -0
- package/src/components/iconography/index.js +45 -0
- package/src/components/iconography/jump-into-numerator.js +41 -0
- package/src/components/iconography/jump-out-base.js +30 -0
- package/src/components/iconography/jump-out-denominator.js +41 -0
- package/src/components/iconography/jump-out-exponent.js +30 -0
- package/src/components/iconography/jump-out-numerator.js +41 -0
- package/src/components/iconography/jump-out-parentheses.js +33 -0
- package/src/components/iconography/left-paren.js +33 -0
- package/src/components/iconography/left.js +16 -0
- package/src/components/iconography/leq.js +33 -0
- package/src/components/iconography/ln.js +29 -0
- package/src/components/iconography/log-n.js +29 -0
- package/src/components/iconography/log.js +29 -0
- package/src/components/iconography/lt.js +33 -0
- package/src/components/iconography/minus.js +32 -0
- package/src/components/iconography/neq.js +33 -0
- package/src/components/iconography/parens.js +33 -0
- package/src/components/iconography/percent.js +49 -0
- package/src/components/iconography/period.js +26 -0
- package/src/components/iconography/plus.js +32 -0
- package/src/components/iconography/radical.js +36 -0
- package/src/components/iconography/right-paren.js +33 -0
- package/src/components/iconography/right.js +16 -0
- package/src/components/iconography/sin.js +30 -0
- package/src/components/iconography/sqrt.js +32 -0
- package/src/components/iconography/tan.js +30 -0
- package/src/components/iconography/times.js +33 -0
- package/src/components/iconography/up.js +16 -0
- package/src/components/input/__tests__/context-tracking_test.js +177 -0
- package/src/components/input/__tests__/math-wrapper.jsx +33 -0
- package/src/components/input/__tests__/mathquill_test.js +747 -0
- package/src/components/input/cursor-contexts.js +29 -0
- package/src/components/input/cursor-handle.js +137 -0
- package/src/components/input/drag-listener.js +75 -0
- package/src/components/input/math-input.js +924 -0
- package/src/components/input/math-wrapper.js +959 -0
- package/src/components/input/scroll-into-view.js +72 -0
- package/src/components/keypad/button-assets.js +492 -0
- package/src/components/keypad/button.js +106 -0
- package/src/components/keypad/button.stories.js +29 -0
- package/src/components/keypad/index.js +64 -0
- package/src/components/keypad/keypad-page-items.js +106 -0
- package/src/components/keypad/keypad-pages.stories.js +32 -0
- package/src/components/keypad/keypad.stories.js +35 -0
- package/src/components/keypad/numeric-input-page.js +100 -0
- package/src/components/keypad/pre-algebra-page.js +98 -0
- package/src/components/keypad/trigonometry-page.js +90 -0
- package/src/components/keypad-button.js +366 -0
- package/src/components/keypad-container.js +303 -0
- package/src/components/keypad.js +154 -0
- package/src/components/many-keypad-button.js +44 -0
- package/src/components/math-icon.js +65 -0
- package/src/components/multi-symbol-grid.js +182 -0
- package/src/components/multi-symbol-popover.js +59 -0
- package/src/components/navigation-pad.js +139 -0
- package/src/components/node-manager.js +129 -0
- package/src/components/popover-manager.js +76 -0
- package/src/components/popover-state-machine.js +173 -0
- package/src/components/prop-types.js +82 -0
- package/src/components/provided-keypad.js +103 -0
- package/src/components/styles.js +38 -0
- package/src/components/svg-icon.js +25 -0
- package/src/components/tabbar/__tests__/tabbar_test.js +65 -0
- package/src/components/tabbar/icons.js +69 -0
- package/src/components/tabbar/item.js +138 -0
- package/src/components/tabbar/tabbar.js +61 -0
- package/src/components/tabbar/tabbar.stories.js +60 -0
- package/src/components/tabbar/types.js +3 -0
- package/src/components/text-icon.js +52 -0
- package/src/components/touchable-keypad-button.js +146 -0
- package/src/components/two-page-keypad.js +99 -0
- package/src/components/velocity-tracker.js +76 -0
- package/src/components/z-indexes.js +9 -0
- package/src/consts.js +74 -0
- package/src/data/key-configs.js +349 -0
- package/src/data/keys.js +72 -0
- package/src/demo.js +8 -0
- package/src/fake-react-native-web/index.js +12 -0
- package/src/fake-react-native-web/text.js +56 -0
- package/src/fake-react-native-web/view.js +91 -0
- package/src/index.js +14 -0
- package/src/native-app.js +84 -0
- package/src/store/index.js +505 -0
- package/src/utils.js +18 -0
- package/tools/svg-to-react/convert.py +111 -0
- package/tools/svg-to-react/icons/math-keypad-icon-0.svg +32 -0
- package/tools/svg-to-react/icons/math-keypad-icon-1.svg +32 -0
- package/tools/svg-to-react/icons/math-keypad-icon-2.svg +32 -0
- package/tools/svg-to-react/icons/math-keypad-icon-3.svg +32 -0
- package/tools/svg-to-react/icons/math-keypad-icon-4.svg +32 -0
- package/tools/svg-to-react/icons/math-keypad-icon-5.svg +32 -0
- package/tools/svg-to-react/icons/math-keypad-icon-6.svg +32 -0
- package/tools/svg-to-react/icons/math-keypad-icon-7.svg +32 -0
- package/tools/svg-to-react/icons/math-keypad-icon-8.svg +32 -0
- package/tools/svg-to-react/icons/math-keypad-icon-9.svg +32 -0
- package/tools/svg-to-react/icons/math-keypad-icon-addition.svg +34 -0
- package/tools/svg-to-react/icons/math-keypad-icon-cos.svg +38 -0
- package/tools/svg-to-react/icons/math-keypad-icon-delete.svg +36 -0
- package/tools/svg-to-react/icons/math-keypad-icon-dismiss.svg +36 -0
- package/tools/svg-to-react/icons/math-keypad-icon-division.svg +36 -0
- package/tools/svg-to-react/icons/math-keypad-icon-equals-not.svg +50 -0
- package/tools/svg-to-react/icons/math-keypad-icon-equals.svg +48 -0
- package/tools/svg-to-react/icons/math-keypad-icon-exponent-2.svg +38 -0
- package/tools/svg-to-react/icons/math-keypad-icon-exponent-3.svg +38 -0
- package/tools/svg-to-react/icons/math-keypad-icon-exponent.svg +38 -0
- package/tools/svg-to-react/icons/math-keypad-icon-fraction.svg +42 -0
- package/tools/svg-to-react/icons/math-keypad-icon-greater-than.svg +46 -0
- package/tools/svg-to-react/icons/math-keypad-icon-jump-out-base.svg +44 -0
- package/tools/svg-to-react/icons/math-keypad-icon-jump-out-denominator.svg +48 -0
- package/tools/svg-to-react/icons/math-keypad-icon-jump-out-exponent.svg +44 -0
- package/tools/svg-to-react/icons/math-keypad-icon-jump-out-parentheses.svg +44 -0
- package/tools/svg-to-react/icons/math-keypad-icon-less-than.svg +46 -0
- package/tools/svg-to-react/icons/math-keypad-icon-log-10.svg +36 -0
- package/tools/svg-to-react/icons/math-keypad-icon-log-e.svg +36 -0
- package/tools/svg-to-react/icons/math-keypad-icon-log.svg +38 -0
- package/tools/svg-to-react/icons/math-keypad-icon-multiplication-cross.svg +40 -0
- package/tools/svg-to-react/icons/math-keypad-icon-multiplication-dot.svg +38 -0
- package/tools/svg-to-react/icons/math-keypad-icon-percent.svg +42 -0
- package/tools/svg-to-react/icons/math-keypad-icon-radical-2.svg +36 -0
- package/tools/svg-to-react/icons/math-keypad-icon-radical-3.svg +38 -0
- package/tools/svg-to-react/icons/math-keypad-icon-radical.svg +38 -0
- package/tools/svg-to-react/icons/math-keypad-icon-radix-character.svg +32 -0
- package/tools/svg-to-react/icons/math-keypad-icon-sin.svg +38 -0
- package/tools/svg-to-react/icons/math-keypad-icon-subtraction.svg +32 -0
- package/tools/svg-to-react/icons/math-keypad-icon-tan.svg +38 -0
- package/tools/svg-to-react/symbol_map.py +41 -0
- package/LICENSE.txt +0 -21
- package/build/math-input.js +0 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An autogenerated component that renders the CUBE_ROOT iconograpy in SVG.
|
|
3
|
+
*
|
|
4
|
+
* Generated with: https://gist.github.com/crm416/3c7abc88e520eaed72347af240b32590.
|
|
5
|
+
*/
|
|
6
|
+
import PropTypes from "prop-types";
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
|
|
9
|
+
class CubeRoot extends React.Component {
|
|
10
|
+
static propTypes = {
|
|
11
|
+
color: PropTypes.string.isRequired,
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
render() {
|
|
15
|
+
return (
|
|
16
|
+
<svg width="48" height="48" viewBox="0 0 48 48">
|
|
17
|
+
<g fill="none" fillRule="evenodd">
|
|
18
|
+
<path fill="none" d="M0 0h48v48H0z" />
|
|
19
|
+
<path
|
|
20
|
+
d="M17.91 23.12c1.66 0 2.76-.81 2.76-1.98 0-.96-.86-1.51-1.57-1.58.79-.13 1.46-.72 1.46-1.5 0-1.1-.95-1.83-2.65-1.83-1.23 0-2.11.45-2.67 1.08l.83 1.08c.47-.42 1.05-.64 1.66-.64.64 0 1.12.19 1.12.61 0 .35-.39.52-1.08.52-.25 0-.77 0-.9-.01v1.53c.1-.01.61-.01.9-.01.91 0 1.19.18 1.19.56 0 .37-.38.65-1.12.65-.58 0-1.34-.23-1.82-.7l-.87 1.17c.52.6 1.48 1.05 2.76 1.05z"
|
|
21
|
+
fill={this.props.color}
|
|
22
|
+
/>
|
|
23
|
+
<path
|
|
24
|
+
stroke={this.props.color}
|
|
25
|
+
strokeWidth="2"
|
|
26
|
+
strokeLinecap="round"
|
|
27
|
+
strokeLinejoin="round"
|
|
28
|
+
d="M14 29l4 6 9-14h7"
|
|
29
|
+
/>
|
|
30
|
+
</g>
|
|
31
|
+
</svg>
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export default CubeRoot;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An autogenerated component that renders the DISMISS iconograpy in SVG.
|
|
3
|
+
*
|
|
4
|
+
* Generated with: https://gist.github.com/crm416/3c7abc88e520eaed72347af240b32590.
|
|
5
|
+
*/
|
|
6
|
+
import * as React from "react";
|
|
7
|
+
|
|
8
|
+
const Dismiss = () => {
|
|
9
|
+
return (
|
|
10
|
+
<svg width="48" height="48" viewBox="0 0 48 48">
|
|
11
|
+
<g fill="none" fillRule="evenodd">
|
|
12
|
+
<path fill="none" d="M0 0h48v48H0z" />
|
|
13
|
+
<path
|
|
14
|
+
d="M18 21l6 6 6-6"
|
|
15
|
+
strokeLinecap="round"
|
|
16
|
+
strokeWidth="2"
|
|
17
|
+
stroke="#71B307"
|
|
18
|
+
strokeLinejoin="round"
|
|
19
|
+
/>
|
|
20
|
+
</g>
|
|
21
|
+
</svg>
|
|
22
|
+
);
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export default Dismiss;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An autogenerated component that renders the DIVIDE iconograpy in SVG.
|
|
3
|
+
*
|
|
4
|
+
* Generated with: https://gist.github.com/crm416/3c7abc88e520eaed72347af240b32590.
|
|
5
|
+
*/
|
|
6
|
+
import PropTypes from "prop-types";
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
|
|
9
|
+
class Divide extends React.Component {
|
|
10
|
+
static propTypes = {
|
|
11
|
+
color: PropTypes.string.isRequired,
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
render() {
|
|
15
|
+
return (
|
|
16
|
+
<svg width="48" height="48" viewBox="0 0 48 48">
|
|
17
|
+
<g fill="none" fillRule="evenodd">
|
|
18
|
+
<path fill="none" d="M0 0h48v48H0z" />
|
|
19
|
+
<path
|
|
20
|
+
d="M19 24h10"
|
|
21
|
+
stroke={this.props.color}
|
|
22
|
+
strokeWidth="2"
|
|
23
|
+
strokeLinecap="round"
|
|
24
|
+
strokeLinejoin="round"
|
|
25
|
+
/>
|
|
26
|
+
<circle fill={this.props.color} cx="24" cy="19.5" r="1.5" />
|
|
27
|
+
<circle fill={this.props.color} cx="24" cy="28.5" r="1.5" />
|
|
28
|
+
</g>
|
|
29
|
+
</svg>
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export default Divide;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A component that renders the DOWN iconograpy in SVG.
|
|
3
|
+
*/
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
|
|
6
|
+
import Arrow from "./arrow.js";
|
|
7
|
+
|
|
8
|
+
const Down = () => {
|
|
9
|
+
return (
|
|
10
|
+
<svg width="48" height="48" viewBox="0 0 48 48">
|
|
11
|
+
<Arrow transform="rotate(270 24 24)" />
|
|
12
|
+
</svg>
|
|
13
|
+
);
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export default Down;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An autogenerated component that renders the EQUAL iconograpy in SVG.
|
|
3
|
+
*
|
|
4
|
+
* Generated with: https://gist.github.com/crm416/3c7abc88e520eaed72347af240b32590.
|
|
5
|
+
*/
|
|
6
|
+
import PropTypes from "prop-types";
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
|
|
9
|
+
class Equal extends React.Component {
|
|
10
|
+
static propTypes = {
|
|
11
|
+
color: PropTypes.string.isRequired,
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
render() {
|
|
15
|
+
return (
|
|
16
|
+
<svg width="48" height="48" viewBox="0 0 48 48">
|
|
17
|
+
<g fill="none" fillRule="evenodd">
|
|
18
|
+
<path fill="none" d="M0 0h48v48H0z" />
|
|
19
|
+
<path fill="none" d="M12 12h24v24H12z" />
|
|
20
|
+
<path
|
|
21
|
+
d="M16 21h17M16 27h17"
|
|
22
|
+
stroke={this.props.color}
|
|
23
|
+
strokeWidth="2"
|
|
24
|
+
strokeLinecap="round"
|
|
25
|
+
strokeLinejoin="round"
|
|
26
|
+
/>
|
|
27
|
+
</g>
|
|
28
|
+
</svg>
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export default Equal;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An autogenerated component that renders the EXP_2 iconograpy in SVG.
|
|
3
|
+
*
|
|
4
|
+
* Generated with: https://gist.github.com/crm416/3c7abc88e520eaed72347af240b32590.
|
|
5
|
+
*/
|
|
6
|
+
import PropTypes from "prop-types";
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
|
|
9
|
+
class Exp2 extends React.Component {
|
|
10
|
+
static propTypes = {
|
|
11
|
+
color: PropTypes.string.isRequired,
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
render() {
|
|
15
|
+
return (
|
|
16
|
+
<svg width="48" height="48" viewBox="0 0 48 48">
|
|
17
|
+
<g fill="none" fillRule="evenodd">
|
|
18
|
+
<path fill="none" d="M0 0h48v48H0z" />
|
|
19
|
+
<path
|
|
20
|
+
d="M14 21c0-.552.456-1 1.002-1h9.996A1 1 0 0 1 26 21v14c0 .552-.456 1-1.002 1h-9.996A1 1 0 0 1 14 35V21zm2 1h8v12h-8V22zM33.67 23v-1.5h-2.44c1.66-1.16 2.39-2.03 2.39-3.05 0-1.34-1.13-2.22-2.7-2.22-.93 0-1.99.33-2.7 1.11l.95 1.14c.48-.45 1.04-.73 1.78-.73.49 0 .92.24.92.7 0 .66-.54 1.12-3.43 3.21V23h5.23z"
|
|
21
|
+
fill={this.props.color}
|
|
22
|
+
/>
|
|
23
|
+
</g>
|
|
24
|
+
</svg>
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export default Exp2;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An autogenerated component that renders the EXP_3 iconograpy in SVG.
|
|
3
|
+
*
|
|
4
|
+
* Generated with: https://gist.github.com/crm416/3c7abc88e520eaed72347af240b32590.
|
|
5
|
+
*/
|
|
6
|
+
import PropTypes from "prop-types";
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
|
|
9
|
+
class Exp3 extends React.Component {
|
|
10
|
+
static propTypes = {
|
|
11
|
+
color: PropTypes.string.isRequired,
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
render() {
|
|
15
|
+
return (
|
|
16
|
+
<svg width="48" height="48" viewBox="0 0 48 48">
|
|
17
|
+
<g fill="none" fillRule="evenodd">
|
|
18
|
+
<path fill="none" d="M0 0h48v48H0z" />
|
|
19
|
+
<path
|
|
20
|
+
d="M14 21c0-.552.456-1 1.002-1h9.996A1 1 0 0 1 26 21v14c0 .552-.456 1-1.002 1h-9.996A1 1 0 0 1 14 35V21zm2 1h8v12h-8V22zM30.92 23.12c1.66 0 2.76-.81 2.76-1.98 0-.96-.86-1.51-1.57-1.58.79-.13 1.46-.72 1.46-1.5 0-1.1-.95-1.83-2.65-1.83-1.23 0-2.11.45-2.67 1.08l.83 1.08c.47-.42 1.05-.64 1.66-.64.64 0 1.12.19 1.12.61 0 .35-.39.52-1.08.52-.25 0-.77 0-.9-.01v1.53c.1-.01.61-.01.9-.01.91 0 1.19.18 1.19.56 0 .37-.38.65-1.12.65-.58 0-1.34-.23-1.82-.7l-.87 1.17c.52.6 1.48 1.05 2.76 1.05z"
|
|
21
|
+
fill={this.props.color}
|
|
22
|
+
/>
|
|
23
|
+
</g>
|
|
24
|
+
</svg>
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export default Exp3;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An autogenerated component that renders the EXP iconograpy in SVG.
|
|
3
|
+
*
|
|
4
|
+
* Generated with: https://gist.github.com/crm416/3c7abc88e520eaed72347af240b32590.
|
|
5
|
+
*/
|
|
6
|
+
import PropTypes from "prop-types";
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
|
|
9
|
+
class Exp extends React.Component {
|
|
10
|
+
static propTypes = {
|
|
11
|
+
color: PropTypes.string.isRequired,
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
render() {
|
|
15
|
+
return (
|
|
16
|
+
<svg width="48" height="48" viewBox="0 0 48 48">
|
|
17
|
+
<g fill="none" fillRule="evenodd">
|
|
18
|
+
<path fill="none" d="M0 0h48v48H0z" />
|
|
19
|
+
<path
|
|
20
|
+
d="M28 16.997c0-.55.453-.997.997-.997h6.006c.55 0 .997.453.997.997v6.006c0 .55-.453.997-.997.997h-6.006c-.55 0-.997-.453-.997-.997v-6.006zM30 18h4v4h-4v-4zM14 21c0-.552.456-1 1.002-1h9.996A1 1 0 0 1 26 21v14c0 .552-.456 1-1.002 1h-9.996A1 1 0 0 1 14 35V21zm2 1h8v12h-8V22z"
|
|
21
|
+
fill={this.props.color}
|
|
22
|
+
/>
|
|
23
|
+
</g>
|
|
24
|
+
</svg>
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export default Exp;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An autogenerated component that renders the FRAC iconograpy in SVG.
|
|
3
|
+
*
|
|
4
|
+
* Generated with: https://gist.github.com/crm416/3c7abc88e520eaed72347af240b32590.
|
|
5
|
+
*/
|
|
6
|
+
import PropTypes from "prop-types";
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
|
|
9
|
+
class FracInclusive extends React.Component {
|
|
10
|
+
static propTypes = {
|
|
11
|
+
color: PropTypes.string.isRequired,
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
render() {
|
|
15
|
+
return (
|
|
16
|
+
<svg width="48" height="48" viewBox="0 0 48 48">
|
|
17
|
+
<g fill="none" fillRule="evenodd">
|
|
18
|
+
<path fill="none" d="M0 0h48v48H0z" />
|
|
19
|
+
<g transform="translate(12 12)">
|
|
20
|
+
<path fill="none" d="M0 0h24v24H0z" />
|
|
21
|
+
<path
|
|
22
|
+
d="M8 16.997c0-.55.453-.997.997-.997h6.006c.55 0 .997.453.997.997v6.006c0 .55-.453.997-.997.997H8.997c-.55 0-.997-.453-.997-.997v-6.006zM10 18h4v4h-4v-4z"
|
|
23
|
+
fill={this.props.color}
|
|
24
|
+
/>
|
|
25
|
+
<rect
|
|
26
|
+
fill={this.props.color}
|
|
27
|
+
x="2"
|
|
28
|
+
y="11"
|
|
29
|
+
width="20"
|
|
30
|
+
height="2"
|
|
31
|
+
rx="1"
|
|
32
|
+
/>
|
|
33
|
+
<path
|
|
34
|
+
d="M8 .997C8 .447 8.453 0 8.997 0h6.006c.55 0 .997.453.997.997v6.006c0 .55-.453.997-.997.997H8.997C8.447 8 8 7.547 8 7.003V.997zM10 2h4v4h-4V2z"
|
|
35
|
+
fill={this.props.color}
|
|
36
|
+
/>
|
|
37
|
+
</g>
|
|
38
|
+
</g>
|
|
39
|
+
</svg>
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export default FracInclusive;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An autogenerated component that renders the GEQ iconograpy in SVG.
|
|
3
|
+
*
|
|
4
|
+
* Generated with: https://gist.github.com/crm416/3c7abc88e520eaed72347af240b32590.
|
|
5
|
+
*/
|
|
6
|
+
import PropTypes from "prop-types";
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
|
|
9
|
+
class Geq extends React.Component {
|
|
10
|
+
static propTypes = {
|
|
11
|
+
color: PropTypes.string.isRequired,
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
render() {
|
|
15
|
+
return (
|
|
16
|
+
<svg width="48" height="48" viewBox="0 0 48 48">
|
|
17
|
+
<g fill="none" fillRule="evenodd">
|
|
18
|
+
<path fill="none" d="M0 0h48v48H0z" />
|
|
19
|
+
<path fill="none" d="M12 12h24v24H12z" />
|
|
20
|
+
<path
|
|
21
|
+
d="M16 33h16M16 30l16-6-16-6"
|
|
22
|
+
stroke={this.props.color}
|
|
23
|
+
strokeWidth="2"
|
|
24
|
+
strokeLinecap="round"
|
|
25
|
+
strokeLinejoin="round"
|
|
26
|
+
/>
|
|
27
|
+
</g>
|
|
28
|
+
</svg>
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export default Geq;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An autogenerated component that renders the GT iconograpy in SVG.
|
|
3
|
+
*
|
|
4
|
+
* Generated with: https://gist.github.com/crm416/3c7abc88e520eaed72347af240b32590.
|
|
5
|
+
*/
|
|
6
|
+
import PropTypes from "prop-types";
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
|
|
9
|
+
class Gt extends React.Component {
|
|
10
|
+
static propTypes = {
|
|
11
|
+
color: PropTypes.string.isRequired,
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
render() {
|
|
15
|
+
return (
|
|
16
|
+
<svg width="48" height="48" viewBox="0 0 48 48">
|
|
17
|
+
<g fill="none" fillRule="evenodd">
|
|
18
|
+
<path fill="none" d="M0 0h48v48H0z" />
|
|
19
|
+
<path fill="none" d="M12 12h24v24H12z" />
|
|
20
|
+
<path
|
|
21
|
+
stroke={this.props.color}
|
|
22
|
+
strokeWidth="2"
|
|
23
|
+
strokeLinecap="round"
|
|
24
|
+
strokeLinejoin="round"
|
|
25
|
+
d="M16 30l16-6-16-6"
|
|
26
|
+
/>
|
|
27
|
+
</g>
|
|
28
|
+
</svg>
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export default Gt;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A directory of autogenerated icon components.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
export {default as COS} from "./cos.js";
|
|
6
|
+
export {default as LOG} from "./log.js";
|
|
7
|
+
export {default as EQUAL} from "./equal.js";
|
|
8
|
+
export {default as BACKSPACE} from "./backspace.js";
|
|
9
|
+
export {default as SQRT} from "./sqrt.js";
|
|
10
|
+
export {default as EXP} from "./exp.js";
|
|
11
|
+
export {default as NEQ} from "./neq.js";
|
|
12
|
+
export {default as GEQ} from "./geq.js";
|
|
13
|
+
export {default as LN} from "./ln.js";
|
|
14
|
+
export {default as DISMISS} from "./dismiss.js";
|
|
15
|
+
export {default as SIN} from "./sin.js";
|
|
16
|
+
export {default as LT} from "./lt.js";
|
|
17
|
+
export {default as CUBE_ROOT} from "./cube-root.js";
|
|
18
|
+
export {default as PLUS} from "./plus.js";
|
|
19
|
+
export {default as TAN} from "./tan.js";
|
|
20
|
+
export {default as LEFT} from "./left.js";
|
|
21
|
+
export {default as UP} from "./up.js";
|
|
22
|
+
export {default as DOWN} from "./down.js";
|
|
23
|
+
export {default as LEFT_PAREN} from "./left-paren.js";
|
|
24
|
+
export {default as RIGHT_PAREN} from "./right-paren.js";
|
|
25
|
+
export {default as GT} from "./gt.js";
|
|
26
|
+
export {default as DIVIDE} from "./divide.js";
|
|
27
|
+
export {default as PERIOD} from "./period.js";
|
|
28
|
+
export {default as PERCENT} from "./percent.js";
|
|
29
|
+
export {default as TIMES} from "./times.js";
|
|
30
|
+
export {default as EXP_3} from "./exp-3.js";
|
|
31
|
+
export {default as EXP_2} from "./exp-2.js";
|
|
32
|
+
export {default as RIGHT} from "./right.js";
|
|
33
|
+
export {default as CDOT} from "./cdot.js";
|
|
34
|
+
export {default as LOG_N} from "./log-n.js";
|
|
35
|
+
export {default as LEQ} from "./leq.js";
|
|
36
|
+
export {default as MINUS} from "./minus.js";
|
|
37
|
+
export {default as NEGATIVE} from "./minus.js";
|
|
38
|
+
export {default as RADICAL} from "./radical.js";
|
|
39
|
+
export {default as FRAC} from "./frac.js";
|
|
40
|
+
export {default as JUMP_OUT_PARENTHESES} from "./jump-out-parentheses.js";
|
|
41
|
+
export {default as JUMP_OUT_EXPONENT} from "./jump-out-exponent.js";
|
|
42
|
+
export {default as JUMP_OUT_BASE} from "./jump-out-base.js";
|
|
43
|
+
export {default as JUMP_INTO_NUMERATOR} from "./jump-into-numerator.js";
|
|
44
|
+
export {default as JUMP_OUT_NUMERATOR} from "./jump-out-numerator.js";
|
|
45
|
+
export {default as JUMP_OUT_DENOMINATOR} from "./jump-out-denominator.js";
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An autogenerated component that renders the JUMP_INTO_NUMERATOR iconograpy in SVG.
|
|
3
|
+
*
|
|
4
|
+
* Generated with: https://gist.github.com/crm416/3c7abc88e520eaed72347af240b32590.
|
|
5
|
+
*/
|
|
6
|
+
import * as React from "react";
|
|
7
|
+
|
|
8
|
+
const JumpIntoNumerator = () => {
|
|
9
|
+
return (
|
|
10
|
+
<svg width="48" height="48" viewBox="0 0 48 48">
|
|
11
|
+
<g fill="none" fillRule="evenodd">
|
|
12
|
+
<path fill="none" d="M0 0h48v48H0z" />
|
|
13
|
+
<path fill="none" d="M12 12h24v24H12z" />
|
|
14
|
+
<path
|
|
15
|
+
d="M13 16v16M17 22l6-6M23 20v-4h-4"
|
|
16
|
+
stroke="#78C008"
|
|
17
|
+
strokeWidth="2"
|
|
18
|
+
strokeLinecap="round"
|
|
19
|
+
strokeLinejoin="round"
|
|
20
|
+
/>
|
|
21
|
+
<path
|
|
22
|
+
d="M26 27.997c0-.55.453-.997.997-.997h6.006c.55 0 .997.453.997.997v6.006c0 .55-.453.997-.997.997h-6.006c-.55 0-.997-.453-.997-.997v-6.006zM28 29h4v4h-4v-4z"
|
|
23
|
+
fill="#888D93"
|
|
24
|
+
/>
|
|
25
|
+
<path
|
|
26
|
+
d="M35 24H25"
|
|
27
|
+
stroke="#888D93"
|
|
28
|
+
strokeWidth="2"
|
|
29
|
+
strokeLinecap="round"
|
|
30
|
+
strokeLinejoin="round"
|
|
31
|
+
/>
|
|
32
|
+
<path
|
|
33
|
+
d="M26 13.997c0-.55.453-.997.997-.997h6.006c.55 0 .997.453.997.997v6.006c0 .55-.453.997-.997.997h-6.006c-.55 0-.997-.453-.997-.997v-6.006zM28 15h4v4h-4v-4z"
|
|
34
|
+
fill="#78C008"
|
|
35
|
+
/>
|
|
36
|
+
</g>
|
|
37
|
+
</svg>
|
|
38
|
+
);
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export default JumpIntoNumerator;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An autogenerated component that renders the JUMP_OUT_BASE iconograpy in SVG.
|
|
3
|
+
*
|
|
4
|
+
* Generated with: https://gist.github.com/crm416/3c7abc88e520eaed72347af240b32590.
|
|
5
|
+
*/
|
|
6
|
+
import * as React from "react";
|
|
7
|
+
|
|
8
|
+
const JumpOutBase = () => {
|
|
9
|
+
return (
|
|
10
|
+
<svg width="48" height="48" viewBox="0 0 48 48">
|
|
11
|
+
<g fill="none" fillRule="evenodd">
|
|
12
|
+
<path fill="none" d="M0 0h48v48H0z" />
|
|
13
|
+
<path fill="none" d="M12 12h24v24H12z" />
|
|
14
|
+
<path
|
|
15
|
+
d="M12 28.997c0-.55.453-.997.997-.997h6.006c.55 0 .997.453.997.997v6.006c0 .55-.453.997-.997.997h-6.006c-.55 0-.997-.453-.997-.997v-6.006zM14 30h4v4h-4v-4z"
|
|
16
|
+
fill="#888D93"
|
|
17
|
+
/>
|
|
18
|
+
<path
|
|
19
|
+
d="M35 13v16M23 29l8-8M27 21h4v4"
|
|
20
|
+
stroke="#78C008"
|
|
21
|
+
strokeWidth="2"
|
|
22
|
+
strokeLinecap="round"
|
|
23
|
+
strokeLinejoin="round"
|
|
24
|
+
/>
|
|
25
|
+
</g>
|
|
26
|
+
</svg>
|
|
27
|
+
);
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export default JumpOutBase;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An autogenerated component that renders the JUMP_OUT_DENOMINATOR iconograpy in SVG.
|
|
3
|
+
*
|
|
4
|
+
* Generated with: https://gist.github.com/crm416/3c7abc88e520eaed72347af240b32590.
|
|
5
|
+
*/
|
|
6
|
+
import * as React from "react";
|
|
7
|
+
|
|
8
|
+
const JumpOutDenominator = () => {
|
|
9
|
+
return (
|
|
10
|
+
<svg width="48" height="48" viewBox="0 0 48 48">
|
|
11
|
+
<g fill="none" fillRule="evenodd">
|
|
12
|
+
<path d="M0 0h48v48H0z" />
|
|
13
|
+
<path d="M12 12h24v24H12z" />
|
|
14
|
+
<path
|
|
15
|
+
d="M35 16v16m-4-4v-4h-4m-2 6l6-6"
|
|
16
|
+
stroke="#78C008"
|
|
17
|
+
strokeWidth="2"
|
|
18
|
+
strokeLinecap="round"
|
|
19
|
+
strokeLinejoin="round"
|
|
20
|
+
/>
|
|
21
|
+
<path
|
|
22
|
+
d="M14 27.997c0-.55.453-.997.997-.997h6.006c.55 0 .997.453.997.997v6.006c0 .55-.453.997-.997.997h-6.006c-.55 0-.997-.453-.997-.997v-6.006zM16 29h4v4h-4v-4z"
|
|
23
|
+
fill="#888D93"
|
|
24
|
+
/>
|
|
25
|
+
<path
|
|
26
|
+
d="M23 24H13"
|
|
27
|
+
stroke="#888D93"
|
|
28
|
+
strokeWidth="2"
|
|
29
|
+
strokeLinecap="round"
|
|
30
|
+
strokeLinejoin="round"
|
|
31
|
+
/>
|
|
32
|
+
<path
|
|
33
|
+
d="M14 13.997c0-.55.453-.997.997-.997h6.006c.55 0 .997.453.997.997v6.006c0 .55-.453.997-.997.997h-6.006c-.55 0-.997-.453-.997-.997v-6.006zM16 15h4v4h-4v-4z"
|
|
34
|
+
fill="#888D93"
|
|
35
|
+
/>
|
|
36
|
+
</g>
|
|
37
|
+
</svg>
|
|
38
|
+
);
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export default JumpOutDenominator;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An autogenerated component that renders the JUMP_OUT_EXPONENT iconograpy in SVG.
|
|
3
|
+
*
|
|
4
|
+
* Generated with: https://gist.github.com/crm416/3c7abc88e520eaed72347af240b32590.
|
|
5
|
+
*/
|
|
6
|
+
import * as React from "react";
|
|
7
|
+
|
|
8
|
+
const JumpOutExponent = () => {
|
|
9
|
+
return (
|
|
10
|
+
<svg width="48" height="48" viewBox="0 0 48 48">
|
|
11
|
+
<g fill="none" fillRule="evenodd">
|
|
12
|
+
<path fill="none" d="M0 0h48v48H0z" />
|
|
13
|
+
<path fill="none" d="M12 12h24v24H12z" />
|
|
14
|
+
<path
|
|
15
|
+
d="M35 19v16M23 19l8 8M31 23v4h-4"
|
|
16
|
+
stroke="#78C008"
|
|
17
|
+
strokeWidth="2"
|
|
18
|
+
strokeLinecap="round"
|
|
19
|
+
strokeLinejoin="round"
|
|
20
|
+
/>
|
|
21
|
+
<path
|
|
22
|
+
d="M12 12.997c0-.55.453-.997.997-.997h6.006c.55 0 .997.453.997.997v6.006c0 .55-.453.997-.997.997h-6.006c-.55 0-.997-.453-.997-.997v-6.006zM14 14h4v4h-4v-4z"
|
|
23
|
+
fill="#888D93"
|
|
24
|
+
/>
|
|
25
|
+
</g>
|
|
26
|
+
</svg>
|
|
27
|
+
);
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export default JumpOutExponent;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An autogenerated component that renders the JUMP_OUT_NUMERATOR iconograpy in SVG.
|
|
3
|
+
*
|
|
4
|
+
* Generated with: https://gist.github.com/crm416/3c7abc88e520eaed72347af240b32590.
|
|
5
|
+
*/
|
|
6
|
+
import * as React from "react";
|
|
7
|
+
|
|
8
|
+
const JumpOutNumerator = () => {
|
|
9
|
+
return (
|
|
10
|
+
<svg width="48" height="48" viewBox="0 0 48 48">
|
|
11
|
+
<g fill="none" fillRule="evenodd">
|
|
12
|
+
<path fill="none" d="M0 0h48v48H0z" />
|
|
13
|
+
<path fill="none" d="M12 12h24v24H12z" />
|
|
14
|
+
<path
|
|
15
|
+
stroke="#78C008"
|
|
16
|
+
strokeWidth="2"
|
|
17
|
+
strokeLinecap="round"
|
|
18
|
+
strokeLinejoin="round"
|
|
19
|
+
d="M33 29l-3 3-3-3M30 18v14"
|
|
20
|
+
/>
|
|
21
|
+
<path
|
|
22
|
+
d="M16 27.997c0-.55.453-.997.997-.997h6.006c.55 0 .997.453.997.997v6.006c0 .55-.453.997-.997.997h-6.006c-.55 0-.997-.453-.997-.997v-6.006zM18 29h4v4h-4v-4z"
|
|
23
|
+
fill="#78C008"
|
|
24
|
+
/>
|
|
25
|
+
<path
|
|
26
|
+
d="M25 24H15"
|
|
27
|
+
stroke="#888D93"
|
|
28
|
+
strokeWidth="2"
|
|
29
|
+
strokeLinecap="round"
|
|
30
|
+
strokeLinejoin="round"
|
|
31
|
+
/>
|
|
32
|
+
<path
|
|
33
|
+
d="M16 13.997c0-.55.453-.997.997-.997h6.006c.55 0 .997.453.997.997v6.006c0 .55-.453.997-.997.997h-6.006c-.55 0-.997-.453-.997-.997v-6.006zM18 15h4v4h-4v-4z"
|
|
34
|
+
fill="#888D93"
|
|
35
|
+
/>
|
|
36
|
+
</g>
|
|
37
|
+
</svg>
|
|
38
|
+
);
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export default JumpOutNumerator;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An autogenerated component that renders the JUMP_OUT_PARENTHESES iconograpy in SVG.
|
|
3
|
+
*
|
|
4
|
+
* Generated with: https://gist.github.com/crm416/3c7abc88e520eaed72347af240b32590.
|
|
5
|
+
*/
|
|
6
|
+
import * as React from "react";
|
|
7
|
+
|
|
8
|
+
const JumpOutParentheses = () => {
|
|
9
|
+
return (
|
|
10
|
+
<svg width="48" height="48" viewBox="0 0 48 48">
|
|
11
|
+
<g fill="none" fillRule="evenodd">
|
|
12
|
+
<path fill="none" d="M0 0h48v48H0z" />
|
|
13
|
+
<path fill="none" d="M12 12h24v24H12z" />
|
|
14
|
+
<path
|
|
15
|
+
d="M24 18c3 3 3 9 0 12M18 18c-3 3-3 9 0 12"
|
|
16
|
+
stroke="#888D93"
|
|
17
|
+
strokeWidth="2"
|
|
18
|
+
strokeLinecap="round"
|
|
19
|
+
strokeLinejoin="round"
|
|
20
|
+
/>
|
|
21
|
+
<path
|
|
22
|
+
stroke="#78C008"
|
|
23
|
+
strokeWidth="2"
|
|
24
|
+
strokeLinecap="round"
|
|
25
|
+
strokeLinejoin="round"
|
|
26
|
+
d="M32 27l3-3-3-3M22 24h12"
|
|
27
|
+
/>
|
|
28
|
+
</g>
|
|
29
|
+
</svg>
|
|
30
|
+
);
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export default JumpOutParentheses;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An autogenerated component that renders the LEFT_PAREN iconograpy in SVG.
|
|
3
|
+
*
|
|
4
|
+
* Generated with: https://gist.github.com/crm416/3c7abc88e520eaed72347af240b32590.
|
|
5
|
+
*/
|
|
6
|
+
import PropTypes from "prop-types";
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
|
|
9
|
+
class LeftParen extends React.Component {
|
|
10
|
+
static propTypes = {
|
|
11
|
+
color: PropTypes.string.isRequired,
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
render() {
|
|
15
|
+
return (
|
|
16
|
+
<svg width="48" height="48" viewBox="0 0 48 48">
|
|
17
|
+
<g fill="none" fillRule="evenodd">
|
|
18
|
+
<path fill="none" d="M0 0h48v48H0z" />
|
|
19
|
+
<path fill="none" d="M12 12h24v24H12z" />
|
|
20
|
+
<path
|
|
21
|
+
d="M26 14c-4 6-4 14 0 20"
|
|
22
|
+
stroke={this.props.color}
|
|
23
|
+
strokeWidth="2"
|
|
24
|
+
strokeLinecap="round"
|
|
25
|
+
strokeLinejoin="round"
|
|
26
|
+
/>
|
|
27
|
+
</g>
|
|
28
|
+
</svg>
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export default LeftParen;
|