@pie-lib/math-toolbar 3.0.3-next.38 → 3.0.3-next.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/done-button.js +13 -12
- package/dist/editor-and-pad.js +2 -2
- package/dist/index.js +2 -2
- package/dist/math-preview.js +1 -1
- package/package.json +9 -4
package/dist/done-button.js
CHANGED
|
@@ -1,34 +1,35 @@
|
|
|
1
1
|
import "react";
|
|
2
2
|
import e from "prop-types";
|
|
3
3
|
import { styled as t } from "@mui/material/styles";
|
|
4
|
-
import {
|
|
5
|
-
import r from "
|
|
6
|
-
import i from "@mui/
|
|
4
|
+
import { color as n } from "@pie-lib/render-ui";
|
|
5
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
6
|
+
import i from "@mui/material/IconButton";
|
|
7
|
+
import a from "@mui/icons-material/Check";
|
|
7
8
|
//#region src/done-button.tsx
|
|
8
|
-
var
|
|
9
|
+
var o = t(i)(({ hideBackground: e }) => ({
|
|
9
10
|
verticalAlign: "top",
|
|
10
11
|
width: "28px",
|
|
11
12
|
height: "28px",
|
|
12
13
|
color: "#00bb00",
|
|
13
|
-
...
|
|
14
|
-
backgroundColor:
|
|
15
|
-
"&:hover": { backgroundColor:
|
|
14
|
+
...e && {
|
|
15
|
+
backgroundColor: n.white(),
|
|
16
|
+
"&:hover": { backgroundColor: n.backgroundDark() }
|
|
16
17
|
},
|
|
17
18
|
"& .MuiIconButton-label": {
|
|
18
19
|
position: "absolute",
|
|
19
20
|
top: "2px"
|
|
20
21
|
}
|
|
21
|
-
})),
|
|
22
|
+
})), s = ({ onClick: e, hideBackground: t }) => /* @__PURE__ */ r(o, {
|
|
22
23
|
"aria-label": "Done",
|
|
23
24
|
onClick: e,
|
|
24
25
|
hideBackground: t,
|
|
25
26
|
size: "large",
|
|
26
|
-
children: /* @__PURE__ */
|
|
27
|
+
children: /* @__PURE__ */ r(a, {})
|
|
27
28
|
});
|
|
28
|
-
|
|
29
|
+
s.propTypes = {
|
|
29
30
|
onClick: e.func,
|
|
30
31
|
hideBackground: e.bool
|
|
31
32
|
};
|
|
32
|
-
var
|
|
33
|
+
var c = s;
|
|
33
34
|
//#endregion
|
|
34
|
-
export {
|
|
35
|
+
export { c as DoneButton, s as RawDoneButton };
|
package/dist/editor-and-pad.js
CHANGED
|
@@ -184,7 +184,7 @@ var { commonMqFontStyles: _, commonMqKeyboardStyles: v, longdivStyles: y, supsub
|
|
|
184
184
|
};
|
|
185
185
|
}
|
|
186
186
|
componentDidMount() {
|
|
187
|
-
this.input && this.props.autoFocus && this.input.focus();
|
|
187
|
+
this.input && this.props.autoFocus && setTimeout(() => this.input.focus(), 0);
|
|
188
188
|
}
|
|
189
189
|
onClick = (e) => {
|
|
190
190
|
let { noDecimal: t, noLatexHandling: n, onChange: r } = this.props, i = M(e);
|
|
@@ -349,4 +349,4 @@ var { commonMqFontStyles: _, commonMqKeyboardStyles: v, longdivStyles: y, supsub
|
|
|
349
349
|
}
|
|
350
350
|
};
|
|
351
351
|
//#endregion
|
|
352
|
-
export { N as default };
|
|
352
|
+
export { N as EditorAndPad, N as default };
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import e from "./editor-and-pad.js";
|
|
1
|
+
import { EditorAndPad as e } from "./editor-and-pad.js";
|
|
2
2
|
import { DoneButton as t } from "./done-button.js";
|
|
3
|
-
import n from "./math-preview.js";
|
|
3
|
+
import { RawMathPreview as n } from "./math-preview.js";
|
|
4
4
|
import r from "react";
|
|
5
5
|
import i from "prop-types";
|
|
6
6
|
import { styled as a } from "@mui/material/styles";
|
package/dist/math-preview.js
CHANGED
package/package.json
CHANGED
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-lib/math-toolbar",
|
|
3
|
-
"version": "3.0.3-next.
|
|
3
|
+
"version": "3.0.3-next.40",
|
|
4
4
|
"description": "Math toolbar for editing math equations",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/pie-framework/pie-elements-ng.git",
|
|
8
|
+
"directory": "packages/lib-react/math-toolbar"
|
|
9
|
+
},
|
|
5
10
|
"dependencies": {
|
|
6
11
|
"@emotion/react": "^11.14.0",
|
|
7
|
-
"@emotion/
|
|
12
|
+
"@emotion/styled": "^11.14.1",
|
|
8
13
|
"@mui/icons-material": "^7.3.4",
|
|
9
14
|
"@mui/material": "^7.3.4",
|
|
10
|
-
"@pie-lib/math-input": "8.1.1-next.
|
|
11
|
-
"@pie-lib/render-ui": "6.
|
|
15
|
+
"@pie-lib/math-input": "8.1.1-next.5",
|
|
16
|
+
"@pie-lib/render-ui": "6.2.0-next.40",
|
|
12
17
|
"debug": "^4.1.1",
|
|
13
18
|
"prop-types": "^15.7.2",
|
|
14
19
|
"@pie-element/shared-lodash": "0.1.1-next.1"
|