@pie-lib/math-toolbar 3.0.3-next.37 → 3.0.3-next.39

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.
@@ -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 { jsx as n } from "react/jsx-runtime";
5
- import r from "@mui/material/IconButton";
6
- import i from "@mui/icons-material/Check";
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 a = t(r)(({ theme: e, hideBackground: t }) => ({
9
+ var o = t(i)(({ hideBackground: e }) => ({
9
10
  verticalAlign: "top",
10
11
  width: "28px",
11
12
  height: "28px",
12
13
  color: "#00bb00",
13
- ...t && {
14
- backgroundColor: e.palette.common.white,
15
- "&:hover": { backgroundColor: e.palette.grey[200] }
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
- })), o = ({ onClick: e, hideBackground: t }) => /* @__PURE__ */ n(a, {
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__ */ n(i, {})
27
+ children: /* @__PURE__ */ r(a, {})
27
28
  });
28
- o.propTypes = {
29
+ s.propTypes = {
29
30
  onClick: e.func,
30
31
  hideBackground: e.bool
31
32
  };
32
- var s = o;
33
+ var c = s;
33
34
  //#endregion
34
- export { s as DoneButton };
35
+ export { c as DoneButton, s as RawDoneButton };
@@ -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";
@@ -122,4 +122,4 @@ var { commonMqFontStyles: c, longdivStyles: l, supsubStyles: u } = a.CommonMqSty
122
122
  }
123
123
  };
124
124
  //#endregion
125
- export { m as default };
125
+ export { m as RawMathPreview, m as default };
package/package.json CHANGED
@@ -1,17 +1,22 @@
1
1
  {
2
2
  "name": "@pie-lib/math-toolbar",
3
- "version": "3.0.3-next.37",
3
+ "version": "3.0.3-next.39",
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/style": "^0.8.0",
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.2",
11
- "@pie-lib/render-ui": "6.1.1-next.37",
15
+ "@pie-lib/math-input": "8.1.1-next.4",
16
+ "@pie-lib/render-ui": "6.1.1-next.39",
12
17
  "debug": "^4.1.1",
13
18
  "prop-types": "^15.7.2",
14
- "@pie-element/shared-lodash": "0.1.1-next.0"
19
+ "@pie-element/shared-lodash": "0.1.1-next.1"
15
20
  },
16
21
  "type": "module",
17
22
  "main": "./dist/index.js",