@pie-element/math-inline 12.1.1-next.15 → 12.1.1-next.16

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.
@@ -111,4 +111,4 @@ var m = i("@pie-element:math-inline:configure"), { Panel: h, toggle: g, radio: _
111
111
  }
112
112
  };
113
113
  //#endregion
114
- export { x as default };
114
+ export { x as Configure, x as default };
@@ -56,5 +56,6 @@ export default class MathInlineConfigure extends HTMLElement {
56
56
  insertSound(handler: any): void;
57
57
  onDeleteSound(src: any, done: any): void;
58
58
  _render(): void;
59
+ connectedCallback(): void;
59
60
  disconnectedCallback(): void;
60
61
  }
@@ -1,4 +1,4 @@
1
- import e from "./configure.js";
1
+ import { Configure as e } from "./configure.js";
2
2
  import t from "./defaults.js";
3
3
  import n from "react";
4
4
  import { createRoot as r } from "react-dom/client";
@@ -69,8 +69,11 @@ var d = i("pie-elements:math-inline:configure"), f = class i extends HTMLElement
69
69
  this._root ||= r(this), this._root.render(t);
70
70
  }
71
71
  }
72
+ connectedCallback() {
73
+ this._render();
74
+ }
72
75
  disconnectedCallback() {
73
- this._root && this._root.unmount();
76
+ this._root &&= (this._root.unmount(), null);
74
77
  }
75
78
  };
76
79
  //#endregion
@@ -19,7 +19,7 @@ var _ = a(d)(({ theme: e }) => ({
19
19
  marginBottom: e.spacing(2.5),
20
20
  width: "100%",
21
21
  minWidth: "548px",
22
- border: `1px solid ${e.palette.grey[700]}`,
22
+ border: `1px solid ${n.borderDark()}`,
23
23
  display: "flex",
24
24
  flexDirection: "column",
25
25
  justifyContent: "space-between",
@@ -56,13 +56,13 @@ var _ = a(d)(({ theme: e }) => ({
56
56
  fontSize: e.typography.fontSize - 2,
57
57
  color: e.palette.error.main,
58
58
  paddingTop: e.spacing(1)
59
- })), E = a(g)({ color: `${n.tertiary()} !important` }), D = a(p)(({ theme: e }) => ({
60
- border: `1px solid ${e.palette.grey.A400}`,
59
+ })), E = a(g)({ color: `${n.tertiary()} !important` }), D = a(p)(() => ({
60
+ border: `1px solid ${n.border()}`,
61
61
  color: n.text()
62
62
  })), O = a(p)(({ theme: e }) => ({
63
63
  marginLeft: e.spacing(2),
64
- border: `1px solid ${e.palette.grey.A400}`,
65
- color: "gray",
64
+ border: `1px solid ${n.border()}`,
65
+ color: n.disabled(),
66
66
  fontSize: "0.8rem"
67
67
  })), k = class extends e.Component {
68
68
  static propTypes = {